/* CUSTOM-PROPS */
:root {
  --text-color:#69707d;
  --text-dark:#1d2026;
  --accent-color:#ff7e1b;
  --accent-color-hover:#ffab6a;
  --accent-color-light:#ffeee2;
  --light-bg:#f6f8fd;
  --divider-bg:#e4e9f2;

  --font-family:'Kumbh Sans', "Arial", sans-serif;
}

/* FONTS */
@font-face {
  font-family: 'Kumbh Sans';
  src: url('../fonts/KumbhSans-Regular.woff2') format('woff2'),
      url('../fonts/KumbhSans-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kumbh Sans';
  src: url('../fonts/KumbhSans-Bold.woff2') format('woff2'),
      url('../fonts/KumbhSans-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}


/* GLOBAL STYLES */

html {
  height: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
::before,
::after {
  box-sizing:inherit;
}

body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  margin: 0;
  font-family:var(--font-family);
  font-size: 16px;
  line-height: 26px;
  background-color: #fff;
  color: var(--text-color);
}

img {
  max-width: 100%;
  height: auto;
}

/* VISUALLY-HIDDEN */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* AUTOFILL-STYLES */
/* input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  border-color: transparent;
  -webkit-text-fill-color: inherit;
  -webkit-box-shadow: 0 0 0px 1000px #fff inset;
  transition: background-color 5000s ease-in-out 0s;
} */

/* PLACEHOLDER COLOR */
/* ::-webkit-input-placeholder,
::-moz-placeholder,
:-ms-input-placeholder,
:-moz-placeholder {
  color: rgb(52, 49, 61);
  opacity: 1;
} */


/* CONTAINER */

.container {
  width: 100%;
  max-width: 1148px;
  padding-left: 24px;
  padding-right: 24px;
  margin-left: auto;
  margin-right: auto;
}

/* LOGO */

.logo {
  display: inline-block;
}

.logo:hover {
  opacity: 0.8;

}

.logo:active {
  opacity: 0.6;
}

.logo__img {
  display: block;
  width: 137px;
  height: 20px;
  object-fit: contain;
}

/* BUTTON */
.button {
  display: inline-block;
  padding: 0;
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  font-weight: bold;
  background-color: var(--accent-color);
  color: #fff;
  overflow: hidden;
  text-align: center;
}

.button--block {
  display: flex;
  width: 100%;

}

.button--wide {
  min-width: 272px;

}

.button:hover {
  background-color: var(--accent-color-hover);

}

.button:active {
  transform: translateY(2px);

}

.button__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 22px 20px 18px;

}


.button__prepend {
  margin-right: 16px;
}

/* BADGE */

.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 16px;
  line-height: normal;
  font-weight: bold;
  color: var(--accent-color);
  border-radius: 6px;
  background-color: var(--accent-color-light);
}

/* MAIN-CONTENT */

.main-content {
  flex-grow: 1;
}

/* SITE-HEADER */

.site-header__container {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--divider-bg);

}

.site-header__toggler {
  display: none;

}

.site-header__logo {
  flex-shrink: 0;
  margin-right: 56px;

}

.site-header__sitenav {
  margin-right: auto;
}

.sitenav__list {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}
.sitenav__item {
  position: relative;
  padding-top: 41px;
  padding-bottom: 45px;

}
.sitenav__item:not(:last-child) {
  margin-right: 32px;
}

.sitenav__link {
  display: block;
  font-size: 15px;
  line-height: 26px;
  color: var(--text-color);
  text-decoration: none;
}

.sitenav__link:hover {
  color: var(--text-dark);
}

.sitenav__link:hover::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent-color);
  content: "";
}

/* SITE-HEADER-CART */

.site-header__cart {
  margin-right: 46px;
  margin-left: 24px;
}

.site-header__cart-link {
  position: relative;
  display: flex;
  color: var(--text-color);

}

.site-header__cart-link:hover {
  color: var(--text-dark);
}

.site-header__cart-link:active {
  opacity: 0.6;
}

.site-header__cart-product-count {
  position: absolute;
  left: calc(100% - 13px);
  top: -6px;
  padding: 1px 6px;
  border-radius: 7px;
  font-size: 10px;
  line-height: normal;
  font-weight: bold;
  background-color: var(--accent-color);
  color: #fff;
}

.site-header__cart--empty .site-header__cart-product-count {
  display: none;
}

.site-header__cart-icon {
  width: 22px;
  height: 20px;
  object-fit: contain;
}


.site-header__profile-link {
  display: flex;
  width: 50px;
  height: 50px;
  border-radius:50%;
  overflow: hidden;
  border: 2px solid transparent;
}

.site-header__profile-link:hover {
  border-color: var(--accent-color);
}

.site-header__profile-link:active {
  opacity: 0.6;
}

.site-header__profile-avatar {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* LOGIN PAGE */

.forms {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: #e4e9f2;
  column-gap: 30px;

}

.forms__form.forms__signup {
  opacity: 0;
  pointer-events: none;
}

.forms.show-signup .forms__form.forms__signup {
  opacity: 1;
  pointer-events: auto;

}

/* .forms__signup {
  display: none;
}

.show-signup {
  display: block;
} */

.forms__form {
  position: absolute;
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  padding: 30px;
  border-radius:6px;
  background-color: #fff;
}

.forms__title {
  font-size: 28px;
  font-weight: 600;
  color:#232836;
  text-align: center;

}

form {
  margin-top: 30px;
}

form .forms__field {
  position: relative;
  height: 50px;
  width: 100%;
  margin-top: 20px;
}

.forms__field input, .forms__button {
  width: 100%;
  height: 100%;
  border: none;
  font-size: 16px;
  font-weight: 400;
  border-radius: 6px;
}

.forms__field input {
  outline: none;
  padding: 0 15px;
  border: 1px solid #cacaca;

}

.forms__field input:focus {
  border-bottom-width: 2px;
}

.fa-eye-slash {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  padding: 5px;
  font-size: 18px;
  color:#8b8b8b;
  cursor: pointer;

}

.forms__button {
  color: #fff;
  background-color: #0171d3;
  transition: all 0.3 ease;
  cursor: pointer;
}

.forms__button:hover {
  background-color: #016dcb;
}

.forms__link {
  margin-top: 10px;
  text-align: center;

}

.forms__link span, .forms__link  a {
  font-size: 14px;
  font-weight: 400;
  color: #232836;

}

.forms__link a {
  color: #0171d3;
  text-decoration: none;
}

.forms__link a:hover {
  text-decoration: underline;
}

.line {
  position: relative;
  width: 100%;
  height: 1px;
  margin: 36px 0;
  background-color: #d4d4d4;
}


.line::before {
  content: "Or";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  color: #232836;
}

.media-options {
  position: relative;
}

.media-options a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  width: 100%;
  margin-top: 20px;
  border-radius: 6px;
  text-decoration: none;

}

.media-options a:hover {
  text-decoration: underline;

}


a.field-facebook {
  color: #fff;
  background-color: #4267b2;
}

a.field-facebook .facebook-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  color: #0171d3;
  font-size: 20px;
  border-radius: 50%;
  background-color: #fff;
}

.facebook-icon, img.google-img {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
}


img.google-img {
  width: 20px;
  height: 20px;
  object-fit: cover;
}

a.field-google {
  border: 1px solid #cacaca;
}

a.field-google span {
  color: #232836;
  font-weight: 500;
  opacity: 0.6;
}







/* SHOPPING-CART-CONTENT */
.shopping-cart-products {
  padding: 0;
  margin: 0;
  list-style: none;
}

.shopping-cart-products__item:not(:last-child) {
  margin-bottom: 16px;

}

/* ITEM-SHOPPING-CART-PRODUCTS */
.item-shopping-cart-products {
  display: flex;
  align-items: flex-start;
}

.item-shopping-cart-products__img {
  flex-shrink: 0;
  margin-right: 16px;
  width: 50px;
  height: 50px;
  border-radius:4px;
  object-fit: cover;

}

.item-shopping-cart-products__info {
  flex-grow: 1;
  width: 100%;
  margin-right: 18px;
  overflow: hidden;
}

.item-shopping-cart-products__name {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  text-transform: capitalize;
}


.item-shopping-cart-products__subtotal {
  color: var(--text-dark);
}

.item-shopping-cart-products__remove-button {
  border: 0;
  padding: 0;
  background-color: transparent;
  align-self: center;
  color: #c3cad9;
}

.item-shopping-cart-products__remove-button:hover {
  color: var(--text-dark);

}

.item-shopping-cart-products__remove-button:active {
  opacity: 0.6;
}

.item-shopping-cart-products__remove-icon {
  display: block;
  width: 14px;
  height: 16px;

}


/* SHOOPING-CART */
.site-header__cart-modal {
  display: none;
}

.site-header__cart-modal--open {
  position: absolute;
  right: -76px;
  top: 94px;
  display: block;
  width: 360px;

}

.shopping-cart {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 256px;
  border-radius: 6px;
  background-color: #fff;

}
.shopping-cart--modal {
  box-shadow: 0px 20px 50px -20px rgba(29, 32, 38, 0.50);

}

.shopping-cart__header {
  padding: 24px 24px 27px;
  border-bottom:1px solid var(--divider-bg);
}

.shopping-cart__title {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  color: var(--text-dark);
}

.shopping-cart__inner {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;


}

.shopping-cart__empty {
  display: none;
}



.shopping-cart--empty .shopping-cart__empty {
  flex-grow: 1;
  display:flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

.shopping-cart__empty .shopping-cart__content {
  display: none;
}

.shopping-cart__products {
  margin-bottom: 24px;
}

/* IMG-SHOWCASE */

.img-showcase--lightbox  {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.img-showcase__showcase {
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
}

.img-showcase__lightbox-toggle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 15px;
  background-color: transparent;
  cursor:zoom-in;

}

.img-showcase__control {
  position:absolute;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
  border: 0;
  background-color: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-dark);

}

.img-showcase__control:hover {
  color: var(--accent-color);
}

.img-showcase__control:active {
  opacity: 0.6;
}

.img-showcase__control--prev {
  left: -28px;

}

.img-showcase__control--next {
  right: -28px;
}

.img-showcase__control-inner {
  display: flex;
  justify-content: center;
  align-items:center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #fff;

}

.img-showcase__control-icon {
  display: block;
  width: 13px;
  height: 20px;
}



.img-showcase__active-img {
  display: block;
  width: 445px;
  height: 445px;
  border-radius: 15px;
  object-fit: cover;
}

.img-showcase--lightbox .img-showcase__active-img {
  width: 550px;
  height: 550px;
  border-radius: 20px;
}

.img-showcase__thumbnails {
  display: flex;
  padding: 0;
  padding-bottom: 10px;
  margin: 0;
  list-style: none;
  overflow: auto;

  /* Foreground, Background */
  scrollbar-color: var(--accent-color) var(--divider-bg);
}

.img-showcase--lightbox .img-showcase__thumbnails {
  max-width: 550px;
}




.img-showcase__thumbnails::-webkit-scrollbar {
  width: 10px; /* Mostly for vertical scrollbars */
  height: 10px; /* Mostly for horizontal scrollbars */
}
.img-showcase__thumbnails::-webkit-scrollbar-thumb { /* Foreground */
  border-radius:5px;
  background: var(--accent-color);
}
.img-showcase__thumbnails::-webkit-scrollbar-track { /* Background */
  border-radius: 5px;
  background: var(--divider-bg);
}

.img-showcase__thumbnail {
  flex-shrink: 0;
}

.img-showcase__thumbnail:not(:last-child) {
  margin-right: 31px;

}

.img-showcase__thumbnail-button {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background-color: transparent;
  overflow: hidden;
  cursor: pointer;

}

.img-showcase__thumbnail-button::after {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  content: "";
  opacity: 0;

}

.img-showcase__thumbnail-button:hover::after {
  opacity: 1;
}

.img-showcase__thumbnail-button:active {
  opacity: 0.6;
}

.img-showcase__thumbnail--active .img-showcase__thumbnail-button::after {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.75);
  border: 2px solid var(--accent-color);

}

.img-showcase__thumbnail-img {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  object-fit: cover;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  overflow: auto;
}

.lightbox--open {
  display: block;
}

.lightbox__inner {
  width: 100%;
  max-width: 550px;
  margin: 90px auto;
}

.lightbox__close {
  display: block;
  width: 20px;
  height: 20px;
  padding: 0;
  margin-left: auto;
  margin-bottom: 24px;
  border: 0;
  background-color: transparent;
  cursor: pointer;
  color: #fff;
}

.lightbox__close:hover {
  color: var(--accent-color);
}

.lightbox__close:active {
  opacity: 0.6;
}


.lightbox__close-icon {
  display: block;
  width: 20px;
  height: 20px;

}





/* PRODUCT-PAGE */

.product-page {
  padding-top: 90px;
  padding-bottom: 90px;
}

.product-page__container {
  display: flex;
  justify-content: space-between;
  max-width: 1063px;
}

.product-page__gallery {
  width: 100%;
  max-width: 445px;
  margin-right: 48px;
}

.product-page__info {
  width: 100%;
  max-width: 445px;
  padding-top: 62px;
}



.product-info__manufacturer {
  margin-bottom: 27px;
  font-size: 13px;
  line-height: normal;
  font-weight: bold;
  letter-spacing: 2px;
  color: var(--accent-color);
  text-transform: uppercase;
}

.product-info__title {
  margin-top: 0;
  margin-bottom: 32px;
  font-size: 44px;
  line-height: 48px;
  color: var(--text-dark);

}

.product-info__description {
  margin-top: 0;
  margin-bottom: 24px;
}

.product-info__price-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 10px;

}

.product-info__price {
  margin-right: 16px;
  font-size: 28px;
  line-height: normal;
  font-weight: bold;
  color: var(--text-dark);
}

.product-info__old-price {
  display: block;
  margin-bottom: 32px;
  font-weight: bold;
  color: #b6bcc8;

}

.product-info__cart-actions {
  display: flex;

}

.product-info__quantity-wrapper {
  display: flex;
  width: 156px;
  margin-right: 16px;
  border-radius: 10px;
  background-color: var(--light-bg);
}

.product-info__quantity-button {
  width: 52px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  font-size: 24px;
  line-height: 24px;
  font-weight: bold;
  background-color: transparent;
  color: var(--accent-color);
  cursor: pointer;
}

.product-info__quantity-button:hover {
  color: var(--accent-color-hover);
}
.product-info__quantity-button:active {
  background-color: var(--accent-color-hover);
  color: #fff;
}

.product-info__quantity {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 52px;
  font-weight: bold;
  line-height: normal;
}



@media only screen and (max-width:960px) {
  .img-showcase__active-img {
    width: 400px;
    height: 400px;
  }
}


@media only screen and (max-width:890px) {
  /* .product-page__container{
    flex-direction: column;
    text-align: center;
  } */

  .img-showcase__showcase {
    margin-bottom: 0;

  }

  .img-showcase__active-img {
    width: 370px;
    height: 370px;
  }


  .img-showcase__thumbnails {
    display: none;
  }

  .product-info__title {
    font-size: 36px;
  }
  .product-info__cart-actions {
    flex-direction: column;

  }

  .product-info__quantity-wrapper {
    margin-right: 0;
    margin-bottom: 15px;
    padding: 12px 16px;
    width: 100%;

  }

  .product-info__quantity-button {
    margin-left: auto;
  }

  .product-info__quantity-button-mr {
    margin-right: auto;
    margin-left: 0;
  }


}


@media only screen and (max-width:768px) {

  .site-header__toggler {
    display: block;
    margin-right: 16px;
    width: 16px;
    height: 15px;
    border:0;
    background-color: transparent;
    background-image: url(../img/open-icon.svg);
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
  }
  .site-header__logo {
    margin-right: auto;
  }

  .sitenav__list {
    flex-direction: column;
    padding: 10px 15px;
  }

  .sitenav__item {
    padding-top: 0;
    padding-bottom: 0;
  }

  .sitenav__item:not(:last-child) {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .site-header--open .site-header__sitenav {
    display: block;
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 0;
    width: 250px;
    height: auto;
    color: #fff;
    background-color:#333;
  }

  .site-header--open .site-header__toggler {
    background-image: url(../img/close-icon.svg);

  }

  .site-header__sitenav {
    display: none;
  }

  .sitenav__link {
    color: #fff;
  }

  .sitenav__link:hover {
    color: #4267b2;
  }
  .sitenav__link:hover::after {
    position: static;
  }

  .img-showcase__active-img {
    height: 350px;
  }

  .product-info__price-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 12px;

  }

  .product-info__old-price {
    margin-bottom: 0;
    align-items: center;
    margin-left: auto;
  }
}

@media only screen and (max-width:690px) {
  .img-showcase__active-img {
    height: 300px;
  }

  .product-info__title {
    font-size: 36px;
  }
}

@media only screen and (max-width:615px) {
  .main-content {
    margin-left: auto;
    margin-right: auto;
  }

  .product-page__container {
    flex-direction: column;
    text-align: center;
  }

  .product-page__gallery {
    margin-right: 0;
  }
  .img-showcase__active-img {
    display: inline;
    height: 350px;

  }

}

@media only screen and (max-width:400px) {
  .forms {
    padding: 15px 10px;
  }
}

@media only screen and (max-width:375px) {
  .site-header {
    margin-top: 19px;
    margin-bottom: 25px;
  }

  .site-header__container {
    border-bottom:0;

  }

  .site-header__profile-link {
    width: 30px;
    height: 30px;
  }
  .site-header__profile-avatar {
    width: 30px;
    height: 30px;
    object-fit: contain;
  }

  .img-showcase__active-img {
    height: 280px;
  }


}
