.breadcumbs {
  padding-top: 10px;
  padding-bottom: 10px;
  border-top: 1px solid rgb(0 0 0 / 20.5%);
  border-bottom: 1px solid rgb(0 0 0 / 20.5%);

  & ol {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1em;
    list-style-type: none;
  }

  & li {
    margin-right: 1rem;

    &.active {
      opacity: 0.6;
    }

    &::first-letter {
      text-transform: uppercase;
    }
  }

  & a {
    display: inline-block;
    color: unset;
    text-transform: lowercase;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }

    &::first-letter {
      text-transform: uppercase;
    }
  }

  & span {
    margin-left: 0.5rem;
  }
}
.product_new {
  position: absolute;
  z-index: 1;
  padding: 6px;
  color: var(--color-white);
  background: var(--color-bg-new);
  border-radius: 8px 0;
  box-shadow: rgb(255 255 255 / 20%) 0 0 0 1px inset, rgb(0 0 0 / 90%) 0 0 0 1px;

  &.active {
    display: flex;
  }
}

.product_sale {
  position: absolute;
  right: 0;
  z-index: 1;
  padding: 6px;
  background: var(--color-bg-sale);
  border-radius: 0 8px;
  box-shadow: rgb(255 255 255 / 20%) 0 0 0 1px inset, rgb(0 0 0 / 90%) 0 0 0 1px;

  &.active {
    display: flex;
  }
}

.product_best {
  position: absolute;
  right: 0;
  z-index: 1;
  height: 32px;
  padding: 0 6px;
  background: var(--color-main-light);
  border-radius: 0 8px;
  box-shadow: rgb(255 255 255 / 20%) 0 0 0 1px inset, rgb(0 0 0 / 90%) 0 0 0 1px;

  &.active {
    display: flex;
    align-items: center;

    & svg {
      height: 60%;
      margin-left: 5px;
    }
  }
}

.product_imgs {
/*  display: grid;*/
  grid-area: imgs;
  grid-template-areas:
    '. .'
    '. .';
  grid-template-columns: auto 1fr;

  @media (max-width: 767px) {
    align-self: center;
    margin-bottom: 2em;
  }
}

.product_imgMain {
  position: relative;
  z-index: 1;
  width: 330px;
  height: 500px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  border-radius: 0 5em;
  box-shadow: rgb(255 255 255 / 20%) 0 0 0 1px inset, rgb(0 0 0 / 90%) 0 0 0 1px;

  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 5rem;
    box-shadow: rgb(255 255 255 / 20%) 0 0 0 1px inset, rgb(0 0 0 / 90%) 0 0 0 1px;
  }

  & .product_new {
    border-radius: 0 8px;
  }

  & .product_sale {
    bottom: 0;
  }
}

.product_imgList {
/*  display: grid;*/
  align-content: start;
/*  height: 500px;*/
  margin-left: 0.5rem;
  padding-left: 3px;
  margin-top: 0.5rem;
  padding-top: 3px;
  overflow: auto;
  row-gap: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgb(0 0 0 / 50%);

  &::-webkit-scrollbar {
    width: 6px;
  }

  &::-webkit-scrollbar-track {
    border-radius: 10px;
  }

  &::-webkit-scrollbar-thumb {
    background: rgb(0 0 0 / 50%);
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgb(0 0 0 / 50%);
    opacity: 0.1;
  }
}

.product_imgSmall-edit {
  display: grid;

  & button {
    height: 0;
    color: red;
    font-weight: bold;
    transition: all 100ms ease-in;
  }

/*  &:hover {*/
/*    & button {*/
/*      height: 1em;*/
/*      margin-bottom: 5px;*/
/*    }*/
/*  }*/

  & svg {
    height: 100%;
  }
}

.product_imgSmall {
  width: 67px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  margin-bottom: 10px;
  transition: border 100ms;
  
  &:hover,
  &.active {
    border: 2px solid var(--color-main-dark);
  }
}

#addFotoToProduct {
  position: relative;
  width: 100%;
  height: 100px;
  background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='black' stroke-width='4' stroke-dasharray='10' stroke-dashoffset='0' stroke-linecap='butt'/%3e%3c/svg%3e");

  & label {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 100%;
    cursor: pointer;
  }

  & [name='picture'] {
    display: none;
    width: 100%;
    height: 100%;
  }

  & svg {
    height: 35px;
    margin: auto;
    fill: var(--color-main-dark);
  }
}

.product__colors-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;

  & span {
    line-height: 1;
  }
}

.product__color {
  display: flex;
  align-items: center;
  padding: 2px 5px;
  white-space: nowrap;
  background: var(--color);
  border-radius: 6px;
  box-shadow: rgb(255 255 255 / 20%) 0 0 0 1px inset, rgb(0 0 0 / 90%) 0 0 0 1px;
  cursor: pointer;

  & span {
    display: flex;
    justify-content: center;
    width: 100%;
    pointer-events: none;
  }

  &:hover {
    transform: scale(1.05);
  }

  & input {
    display: none;
  }

  &.active {
    position: relative;

    &::after {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 100%;
      height: 100%;
      border: var(--color-white) solid 3px;
      border-radius: 8px;
      box-shadow: black 0 0 0 1px inset, var(--color-main-dark) 0 0 0 2px;
      transform: translate(-50%, -50%);
      content: '';
    }

    & input {
      display: inline-block;
      margin-right: 0.5em;
    }
  }

  &[data-color='DeepPink'],
  &[data-color='OliveDrab'],
  &[data-color='Black'],
  &[data-color='DarkBlue'],
  &[data-color='Red'],
  &[data-color='Blue'],
  &[data-color='MediumVioletRed'],
  &[data-color='MediumOrchid'],
  &[data-color='Brown'],
  &[data-color='DarkRed'],
  &[data-color='FireBrick'],
  &[data-color='RoyalBlue'],
  &[data-color='Maroon'],
  &[data-color='PaleVioletRed'] {
    & span {
      color: white;
    }
  }

  &[data-color-description*='синий'],
  &[data-color-description*='серый-красный'],
  &[data-color-description*='красный'],
  &[data-color-description*='графит'],
  &[data-color-description*='серый'],
  &[data-color-description*='бургундское вино'],
  &[data-color-description*='кофейно-розовый'],
  &[data-color-description*='бордовый'],
  &[data-color-description*='антрацит'],
  &[data-color-description*='малиновый'],
  &[data-color-description*='лиловый'],
  &[data-color-description*='мокка'],
  &[data-color-description*='оливковый'],
  &[data-color-description*='джинс'],
  &[data-color-description*='зеленый'],
  &[data-color-description*='хаки'],
  &[data-color-description*='баклажан'],
  &[data-color-description*='слива'],
  &[data-color-description*='золото'],
  &[data-color-description*='фиолетовый'],
  &[data-color-description*='леопард'],
  &[data-color-description*='iron'],
  &[data-color-description*='navy'],
  &[data-color-description*='nero'],
  &[data-color-description*='кофе'],
  &[data-color-description*='коричневый'],
  &[data-color-description*='black'],
  &[data-color-description*='fumo'],
  &[data-color-description*='bronzo'],
  &[data-color-description*='shade'],
  &[data-color-description*='grafit'],
  &[data-color-description*='mocca'],
  &[data-color-description*='moka'],
  &[data-color-description*='londra'],
  &[data-color-description*='caramello'],
  &[data-color-description*='lola'],
  &[data-color-description*='cioccolato'],
  &[data-color-description*='visone'],
  &[data-color-description*='camoscio'],
  &[data-color-description*='daino'],
  &[data-color-description*='бордо'],
  &[data-color-description*='dark blu'],
  &[data-color-description*='dark green'],
  &[data-color-description*='металл'],
  &[data-color-description*='черный'] {
    & span {
      color: white;
    }
  }

  &[data-color-description*='бежевый-красный'],
  &[data-color-description*='лиловый-розовый'],
  &[data-color-description*='красный-белый'],
  &[data-color-description*='серый-белый'],
  &[data-color-description*='белый-коричневый'],
  &[data-color-description*='белый-серый'],
  &[data-color-description*='белый-красный'],
  &[data-color-description*='зеленый-белый'],
  &[data-color-description*='желтый-серый'],
  &[data-color-description*='графит-белый'],
  &[data-color-description*='шампань-красный'],
  &[data-color-description*='шампань-серый'],
  &[data-color-description*='коричневый-белый'],
  &[data-color-description*='белый-фиолетовый'],
  &[data-color-description*='морской-зеленый'],
  &[data-color-description*='cветло-серый'] {
    & span {
      color: black;
    }
  }

  &[data-color-description*='черный-бежевый'],
  &[data-color-description*='бежевый-черный'],
  &[data-color-description*='т.синий-бежевый'],
  &[data-color-description*='т.синий-белый'],
  &[data-color-description*='синий-белый'],
  &[data-color-description*='черный-желтый'],
  &[data-color-description*='белый-черный'],
  &[data-color-description*='телесный-черный'],
  &[data-color-description*='белый-синий '],
  &[data-color-description*='бежевый-синий'],
  &[data-color-description*='шампань-синий'],
  &[data-color-description*='черный-шампань'],
  &[data-color-description*='синий-шампань'],
  &[data-color-description*='черный-белый'] {
    & span {
      mix-blend-mode: difference;
      mix-blend-mode: exclusion;
    }
  }

  & [name='deleteDictionaryColor'] {
    display: flex;
    width: 14px;
    height: 14px;
    margin-left: 5px;
    background: var(--color-main-dark);
    border-radius: 50%;

    & * {
      pointer-events: none;
    }

    & svg {
      padding: 3px;
    }
  }
}

.product__sizes-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-top: 1em;

  & span {
    line-height: 1;
  }

  & input {
    display: none;
  }

  & [name='addProductSize'] {
    padding: 0 0.5em;
  }
}

.product__size {
  display: inline-flex;
  align-items: center;
  width: auto;
  padding: 2px 5px;
  font-size: 14px;
  background: var(--color-tag);
  border-radius: 0 5px;
  box-shadow: rgb(255 255 255 / 20%) 0 0 0 1px inset, rgb(0 0 0 / 90%) 0 0 0 1px;
  cursor: pointer;

  & input {
    display: none;
  }

  &:hover {
    background: var(--color-main-medium);
    transform: scale(1.05);
  }

  &.active {
    background: var(--color-main-medium);
    transform: scale(1.05);

    & input {
      display: inline-block;
      margin-right: 3px;
    }
  }

  & [name='deleteDictionarySize'] {
    display: flex;
    width: 1em;
    height: 1em;
    margin-left: 5px;
    background: var(--color-main-dark);
    border-radius: 50%;

    & * {
      pointer-events: none;
    }

    & svg {
      padding: 3px;
    }
  }
}

.add_to_wishlist {
  width: 25px;
  height: 25px;
  background-image: url('../../../../../Public/img/svg/cool_heart.svg');
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;

  &:hover {
    transform: scale(1.07);
  }

  &.active {
    width: 35px;
    background-image: url('../../../../../Public/img/svg/cool_heart2.svg');
    background-position: bottom center;
    background-size: 30px;
  }
}

#productToCartForm {
  display: grid;
}

.product_cart__actions {
  position: relative;
  display: flex;
  gap: 1em;
  align-items: center;
  width: auto;
  height: 40px;
  margin-top: 1em;

  & [name='addToWishlist'] {
    padding: 6px;
  }
}

.product-alert {
  position: absolute;
  top: calc(100% + 17px);
  right: 50%;
  z-index: 1;
  display: flex;
  gap: 1em;
  padding: 1em;
  color: var(--color-black);
  white-space: nowrap;
  background: var(--color-main-medium);
  border-radius: 8px;
  box-shadow: rgb(255 255 255 / 20%) 0 0 0 1px inset, rgb(0 0 0 / 90%) 0 0 0 1px;
  transform: translate(50%, -1em);
  visibility: hidden;
  opacity: 0;
  transition: all 100ms ease-in-out;

  &.active {
    transform: translate(50%, 0);
    visibility: visible;
    opacity: 1;
  }

  &::after {
    position: absolute;
    right: 50%;
    bottom: calc(100% - 0.5em);
    width: 1em;
    height: 1em;
    background: var(--color-main-medium);
    border-top: var(--color-black) solid 1px;
    border-left: var(--color-black) solid 1px;
    transform: translateX(50%) rotate(45deg);
    content: '';
  }
}

[name='addProductToCart'] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1em;
  background: var(--color-main-medium);
  border-radius: 8px;
  cursor: pointer;

  & span {
    transform: translateX(0);
    transition: all 100ms ease-in-out;
  }

  &:disabled {
    opacity: 0.5;
  }
}

.product_cart__button {
  position: relative;
  width: 200px;
  height: 100%;

  /* background: var(--color-main-medium); */
  border-radius: 8px;
  box-shadow: rgb(255 255 255 / 20%) 0 0 0 1px inset, rgb(0 0 0 / 90%) 0 0 0 1px;

  &:hover {
    & label {
      transform: translateX(0);
      visibility: visible;
      opacity: 1;
    }

    & [name='addProductToCart'] > span {
      transform: translateX(-1em);
    }

    & .product-alert {
      transform: translate(50%, 0);
      visibility: visible;
      opacity: 1;
    }
  }
}

.product_cart__count {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 65px;
  height: 100%;
  padding-right: 1em;
  transform: translateX(1em);
  visibility: hidden;
  opacity: 0;
  transition: all 100ms ease-in-out;

  & input {
    width: 100%;
    height: auto;
    margin-left: 0.5em;
    font-weight: bold;
    font-size: 1em;
    text-align: center;
    background: var(--color-main-light);
    border: none;
    border-radius: 8px;
    box-shadow: rgb(255 255 255 / 20%) 0 0 0 1px inset, rgb(0 0 0 / 90%) 0 0 0 1px;
  }
}

.product_wishlist {
  position: relative;
  height: 25px;
  cursor: pointer;
  transition: all 100ms ease-out;

  &:hover {
    transform: scale(1.1);
  }

  & * {
    pointer-events: none;
  }

  & svg {
    height: 100%;
  }

  & .heart2 {
    display: none;
  }

  &.active {
    & .heart2 {
      display: block;
    }

    & .heart {
      display: none;
    }
  }

  & .animate {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

.product__details {
  position: relative;
  grid-area: product-big__details;

  & select {
    display: flex;
    align-items: center;
    height: 20px;
    padding: 0 0.5em;
    white-space: nowrap;
    border-radius: 6px;
    box-shadow: rgb(255 255 255 / 20%) 0 0 0 1px inset, rgb(0 0 0 / 90%) 0 0 0 1px;
    cursor: pointer;
  }

  & .product_cart__actions {
    display: flex;
    gap: 1em;
    align-items: center;
    width: auto;
    height: 40px;
    margin-top: 1em;

    & [name='addToWishlist'] {
      padding: 6px;
    }
  }
}

.product__title {
  display: inline-block;
  font-weight: normal;
  line-height: 1;
/*  text-transform: lowercase;*/

/*  &::first-letter {*/
/*    text-transform: uppercase;*/
/*  }*/
}

.product__price-container {
  display: flex;
  align-items: flex-start;
  margin: 1rem 0;
  font-size: 2em;
  line-height: 1;
}

.product__price {
  &::after {
    padding-left: 7px;
    font-weight: normal;
    font-size: 0.9em;
    content: '₽';
  }
}

.product__old-price {
  margin-left: 10px;
  font-size: 0.7em;

  &::after {
    padding-left: 7px;
    font-weight: normal;
    font-size: 0.9em;
    content: '₽';
  }
}

.product__sostav {
  margin-top: 1.5em;
}

.product__attribut-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5em;
}

.product__attribut {
  padding: 3px 0.5em;
  white-space: nowrap;
  border: var(--color-main-dark) solid 1px;
  border-radius: 1em;
}

.rating_star {
  display: flex;
  gap: 5px;
  height: 18px;

  & .icon {
    width: 18px;
    height: 100%;
    fill: var(--color-grey);

    &.active {
      fill: var(--color-rating);
    }
  }
}

[name='addToWishList'],
[name='deleteFromWishlist'] {
  height: 100%;

  & .icon {
    width: 25px;
    height: 25px;
    pointer-events: none;
    fill: var(--color-grey);
  }

  &.active {
    & .icon {
      fill: var(--color-pink);
    }
  }
}

.product__colors-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;

  & span {
    line-height: 1;
  }
}

.product__color {
  display: flex;
  align-items: center;
  padding: 2px 5px;
  white-space: nowrap;
  background: var(--color);
  border-radius: 6px;
  box-shadow: rgb(255 255 255 / 20%) 0 0 0 1px inset, rgb(0 0 0 / 90%) 0 0 0 1px;
  cursor: pointer;

  & span {
    display: flex;
    justify-content: center;
    width: 100%;
    pointer-events: none;
  }

  &:hover {
    transform: scale(1.05);
  }

  & input {
    display: none;
  }

  &.active {
    position: relative;

    &::after {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 100%;
      height: 100%;
      border: var(--color-white) solid 3px;
      border-radius: 8px;
      box-shadow: black 0 0 0 1px inset, var(--color-main-dark) 0 0 0 2px;
      transform: translate(-50%, -50%);
      content: '';
    }

    & input {
      display: inline-block;
      margin-right: 0.5em;
    }
  }

  &[data-color='DeepPink'],
  &[data-color='OliveDrab'],
  &[data-color='Black'],
  &[data-color='DarkBlue'],
  &[data-color='Red'],
  &[data-color='Blue'],
  &[data-color='MediumVioletRed'],
  &[data-color='MediumOrchid'],
  &[data-color='Brown'],
  &[data-color='DarkRed'],
  &[data-color='FireBrick'],
  &[data-color='RoyalBlue'],
  &[data-color='Maroon'],
  &[data-color='PaleVioletRed'] {
    & span {
      color: white;
    }
  }

  &[data-color-description*='синий'],
  &[data-color-description*='серый-красный'],
  &[data-color-description*='красный'],
  &[data-color-description*='графит'],
  &[data-color-description*='серый'],
  &[data-color-description*='бургундское вино'],
  &[data-color-description*='кофейно-розовый'],
  &[data-color-description*='бордовый'],
  &[data-color-description*='антрацит'],
  &[data-color-description*='малиновый'],
  &[data-color-description*='лиловый'],
  &[data-color-description*='мокка'],
  &[data-color-description*='оливковый'],
  &[data-color-description*='джинс'],
  &[data-color-description*='зеленый'],
  &[data-color-description*='хаки'],
  &[data-color-description*='баклажан'],
  &[data-color-description*='слива'],
  &[data-color-description*='золото'],
  &[data-color-description*='фиолетовый'],
  &[data-color-description*='леопард'],
  &[data-color-description*='iron'],
  &[data-color-description*='navy'],
  &[data-color-description*='nero'],
  &[data-color-description*='кофе'],
  &[data-color-description*='коричневый'],
  &[data-color-description*='black'],
  &[data-color-description*='fumo'],
  &[data-color-description*='bronzo'],
  &[data-color-description*='shade'],
  &[data-color-description*='grafit'],
  &[data-color-description*='mocca'],
  &[data-color-description*='moka'],
  &[data-color-description*='londra'],
  &[data-color-description*='caramello'],
  &[data-color-description*='lola'],
  &[data-color-description*='cioccolato'],
  &[data-color-description*='visone'],
  &[data-color-description*='camoscio'],
  &[data-color-description*='daino'],
  &[data-color-description*='бордо'],
  &[data-color-description*='dark blu'],
  &[data-color-description*='dark green'],
  &[data-color-description*='металл'],
  &[data-color-description*='черный'] {
    & span {
      color: white;
    }
  }

  &[data-color-description*='бежевый-красный'],
  &[data-color-description*='лиловый-розовый'],
  &[data-color-description*='красный-белый'],
  &[data-color-description*='серый-белый'],
  &[data-color-description*='белый-коричневый'],
  &[data-color-description*='белый-серый'],
  &[data-color-description*='белый-красный'],
  &[data-color-description*='зеленый-белый'],
  &[data-color-description*='желтый-серый'],
  &[data-color-description*='графит-белый'],
  &[data-color-description*='шампань-красный'],
  &[data-color-description*='шампань-серый'],
  &[data-color-description*='коричневый-белый'],
  &[data-color-description*='белый-фиолетовый'],
  &[data-color-description*='морской-зеленый'],
  &[data-color-description*='cветло-серый'] {
    & span {
      color: black;
    }
  }

  &[data-color-description*='черный-бежевый'],
  &[data-color-description*='бежевый-черный'],
  &[data-color-description*='т.синий-бежевый'],
  &[data-color-description*='т.синий-белый'],
  &[data-color-description*='синий-белый'],
  &[data-color-description*='черный-желтый'],
  &[data-color-description*='белый-черный'],
  &[data-color-description*='телесный-черный'],
  &[data-color-description*='белый-синий '],
  &[data-color-description*='бежевый-синий'],
  &[data-color-description*='шампань-синий'],
  &[data-color-description*='черный-шампань'],
  &[data-color-description*='синий-шампань'],
  &[data-color-description*='черный-белый'] {
    & span {
      mix-blend-mode: difference;
      mix-blend-mode: exclusion;
    }
  }

  & [name='deleteDictionaryColor'] {
    display: flex;
    width: 14px;
    height: 14px;
    margin-left: 5px;
    background: var(--color-main-dark);
    border-radius: 50%;

    & * {
      pointer-events: none;
    }

    & svg {
      padding: 3px;
    }
  }
}

.product__sizes-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-top: 1em;

  & span {
    line-height: 1;
  }

  & input {
    display: none;
  }

  & [name='addProductSize'] {
    padding: 0 0.5em;
  }
}

.product__size {
  display: inline-flex;
  align-items: center;
  width: auto;
  padding: 2px 5px;
  font-size: 14px;
  background: var(--color-tag);
  border-radius: 0 5px;
  box-shadow: rgb(255 255 255 / 20%) 0 0 0 1px inset, rgb(0 0 0 / 90%) 0 0 0 1px;
  cursor: pointer;

  & input {
    display: none;
  }

  &:hover {
    background: var(--color-main-medium);
    transform: scale(1.05);
  }

  &.active {
    background: var(--color-main-medium);
    transform: scale(1.05);

    & input {
      display: inline-block;
      margin-right: 3px;
    }
  }

  & [name='deleteDictionarySize'] {
    display: flex;
    width: 1em;
    height: 1em;
    margin-left: 5px;
    background: var(--color-main-dark);
    border-radius: 50%;

    & * {
      pointer-events: none;
    }

    & svg {
      padding: 3px;
    }
  }
}

.cart_button__container {
  display: flex;
  width: 100%;
  max-width: 370px;
  height: 45px;
}

[name='addProductToCart'] {
  position: relative;
  display: flex;
  width: 100%;
  color: var(--color-white);
  font-size: 1em;

  /* background: var(--color-main-dark); */
  border-radius: 8px;

  & > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--color-main-dark);
    border-radius: 8px;
    pointer-events: none;
  }

  &.disabled > span {
    opacity: 0.5;
  }
}

.cart_button__count {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: 10px;

  & button {
    --size: 15px;

    position: relative;
    display: flex;
    align-items: center;
    width: auto;
    height: 100%;

    &::before {
      width: var(--size);
      height: 2px;
      background: var(--color-black);
      content: '';
    }

    &[name='countPlus'] {
      &::after {
        position: absolute;
        width: var(--size);
        height: 2px;
        background: var(--color-black);
        transform: rotate(90deg);
        content: '';
      }
    }
  }

  & input {
    width: 30px;
    height: 30px;
    margin: 0 5px;
    font-size: 1em;
    text-align: center;
    border: 1px solid var(--color-black);
    border-radius: 4px;
  }
}

.cart_button__alert {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  display: none;
  width: auto;
  padding: 1em;
  color: var(--color-black);
  white-space: nowrap;
  background: var(--color-white);
  border: 1px solid var(--color-black);
  border-radius: 8px;
  transform: translateX(-50%);

  &::before {
    position: absolute;
    bottom: 100%;
    left: 50%;
    z-index: -1;
    width: 0;
    height: 0;
    border-right: 11px solid transparent;
    border-bottom: 11px solid var(--color-black);
    border-left: 11px solid transparent;
    transform: translateX(-50%);
    content: '';
  }

  &::after {
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 0;
    height: 0;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--color-white);
    border-left: 10px solid transparent;
    transform: translateX(-50%);
    content: '';
  }
}

[name='addProductToCart']:hover .cart_button__alert {
  display: flex;
  gap: 10px;
  align-items: center;
}

.product_card {
  position: relative;
  display: grid;
  grid-template-rows: 350px 1fr;
  width: 100%;
  max-width: 400px;
  height: 460px;
  border: 1px solid var(--color-black);
  border-radius: 8px;

  &.add_to_cart {
    position: absolute;
    z-index: 99;
  }
}

.product_card__img_container {
  position: relative;
  width: 100%;

  /* height: 360px; */

  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
  }
}

.product_card__hover_img {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 100%;

  &:hover {
    box-shadow: 0 -5px 0 var(--color-grey) inset;
  }

  & span {
    width: 100%;

    &:hover {
      border-bottom: 5px solid var(--color-main-dark);
    }
  }
}

.product_card__details {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 5px 1em 1em;
}

.product_card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 25px;
}

.product_card__title {
  /* stylelint-disable-next-line value-no-vendor-prefix */
  display: -webkit-box;
  overflow: hidden;
  line-height: 1;
  text-decoration: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product_card__price_container {
  font-weight: bold;
  font-size: 1.3em;
  line-height: 1;
}

.product_card__hover {
  position: absolute;
  top: calc(100% - 1em);
  left: -1px;
  z-index: +2;
  display: none;
  width: calc(100% + 2px);
  padding: 1em;
  background: var(--color-white);
  border: 1px solid var(--color-black);
  border-top: none;
  border-radius: 0 0 8px 8px;

  & .cart_button__container {
    margin-top: 1em;
  }

  &:hover {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}

.product_card__details:hover .product_card__hover {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

[data-currency] {
  &::after {
    margin-left: 0.2em;
    font-weight: normal;
    font-size: 0.9em;
    content: attr(data-currency);
  }
}

.product_new {
  position: absolute;
  z-index: +1;
  padding: 6px;
  color: var(--color-white);
  background: var(--color-bg-new);
  border-right: 1px solid var(--color-black);
  border-bottom: 1px solid var(--color-black);
  border-radius: 6px 0;

  &.active {
    display: flex;
  }
}

.product_sale {
  position: absolute;
  right: 0;
  z-index: +1;
  padding: 6px;
  background: var(--color-bg-sale);
  border-bottom: 1px solid var(--color-black);
  border-left: 1px solid var(--color-black);
  border-radius: 0 6px;

  &.active {
    display: flex;
  }
}

.review_stars {
  pointer-events: none;

  &.active {
    pointer-events: all;
  }

  & svg {
    height: 25px;
    cursor: pointer;
    transition: all 200ms ease-in-out;
    fill: var(--color-rating);

    & > .icon_star-fill {
      transition: all 200ms ease-in-out;
      fill: none;
    }

    &.active {
      & .icon_star-fill {
        fill: var(--color-rating);
      }
    }

    &:hover {
      & > .icon_star-fill {
        fill: var(--color-rating);
      }
    }
  }
}

.review {
  display: grid;
  grid-template: auto 1fr / 150px 1fr;
  grid-template-areas:
    'user rating'
    'user body';
  height: auto;
  min-height: 150px;
  margin-top: 1rem;
  padding: 1em;
  column-gap: 1em;
  border-radius: 8px;
  box-shadow: rgb(0 0 0 / 35%) 0 5px 15px;
  box-shadow: rgb(255 255 255 / 20%) 0 0 0 1px inset, rgb(0 0 0 / 90%) 0 0 0 1px;

  @media (max-width: 768px) {
    display: block;
  }
}

.review__user {
  display: grid;
  grid-area: user;
  grid-template-rows: auto auto;
  width: 100%;
  height: auto;
  max-height: 200px;

  & img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
  }

  @media (max-width: 768px) {
    display: flex;
    gap: 1em;
    align-items: center;
    margin-bottom: 1em;

    & img {
      width: 80px;
      height: 80px;
    }
  }
}

.review_agree {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1em;
  background: var(--color-main-medium);
  border-radius: 8px;
  box-shadow: rgb(255 255 255 / 20%) 0 0 0 1px inset, rgb(0 0 0 / 90%) 0 0 0 1px;
}

.review_rating {
  display: flex;
  grid-area: rating;
  align-self: center;
  justify-content: space-between;
  height: 25px;

  & .review_actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1em;
    width: auto;

    & .toggle_switch1 {
      --content-before: 'Не согласован';
      --content-after: 'Согласован';
    }

    & .review_del {
      width: 100%;
      height: 100%;
      background: none;
      border: none;
      cursor: pointer;
      fill: rgb(243 129 129);

      & * {
        pointer-events: none;
      }

      svg {
        height: 100%;
      }
    }

    & .review_agree {
      & svg {
        fill: rgb(243 129 129);

        &:hover {
          fill: rgb(109 224 94);
        }
      }

      &::before {
        margin-right: 0.5em;
        font-size: 1.5em;
        content: attr(data-review-agree);
      }
    }

    @media (max-width: 768px) {
      display: none;
    }
  }

  & span {
    padding-right: 1rem;
  }
}

.review__body {
  display: grid;
  grid-area: body;
  padding: 1rem 1rem 1rem 0;

  & h4 {
    margin-bottom: 1em;
  }
}

.review_container {
  grid-area: review_container;
  width: 100%;
  margin-top: 2em;
}

.review-list {
  width: 100%;
}

#reviewCreate {
  grid-area: add_review;
  width: 100%;
  margin-top: 2em;

  & textarea {
    width: 100%;
    margin: 1em 0;
    padding: 0.5em;
  }

  & input {
    width: 100%;
    padding-bottom: 5px;
    font-weight: bold;
    font-size: 1em;
    border: none;
    border-bottom: 1px solid var(--color-black);
  }

  & button {
    padding: 0.5em 0;
    font-size: 1em;
    text-align: center;
    background: var(--color-main-medium);
    border: none;
    border-radius: 8px;
    box-shadow: rgb(255 255 255 / 20%) 0 0 0 1px inset, rgb(0 0 0 / 90%) 0 0 0 1px;
    cursor: pointer;
  }
}

#footer {
  display: grid;
  width: 100%;
  height: 50px;
  height: auto;
  margin-top: auto;
  padding: 2em 2em 1em;
  color: var(--color-white);
  background: var(--color-main-dark);
}

.footer__title {
  margin-bottom: 1.5em;
  font-weight: normal;
  font-size: 1.2rem;
}

.footer_body {
  grid-template-areas: 'social links app';
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  justify-content: space-around;
  width: 100%;
  padding-bottom: 80px;
}

.footer_social {
  display: grid;
  grid-area: social;
  grid-template-rows: auto 1fr;
}

.footer_social__link {
  display: flex;
  align-items: center;
  width: auto;
  height: 25px;
  margin-bottom: 0.5em;
  color: var(--color-white);
  font-weight: bold;
  font-size: 1em;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  background-repeat: no-repeat;
  background-size: 25px;

  & .icon {
    width: 25px;
    height: 25px;
    margin-right: 5px;
  }
}

/* .footer_social__vk {
  background-image: url('../../../../Public/img/svg/vk_logo.svg');
}

.footer_social__telegram {
  background-image: url('../../../../Public/img/svg/telegram_logo.svg');
} */

.footer_links {
  display: grid;
  grid-area: links;
  grid-template-rows: auto 1fr;
  align-items: start;
}

.footer_links__container {
  display: grid;
  gap: 0.5em;
}

.footer_links__link {
  color: var(--color-white);
}

.footer_app {
  grid-area: app;
  width: auto;
}

.footer_app__container {
  display: flex;
  gap: 1em;
  width: auto;
  height: auto;
}

.footer_app__link {
  /* display: grid; */
  display: flex;
  align-items: center;
  width: 50%;
  min-width: 160px;
  height: auto;
  padding: 1em;
  color: var(--color-black);
  font-size: 0.8em;
  text-decoration: none;
  background-color: var(--color-main-light);
  background-repeat: no-repeat;
  background-position: 1em;
  background-size: 30px;
  border-radius: 8px;
  box-shadow: rgb(255 255 255 / 20%) 0 0 0 1px inset, rgb(0 0 0 / 90%) 0 0 0 1px;

  & strong {
    font-size: 1.1em;
  }

  & span {
    display: grid;
  }

  & .icon {
    width: 30px;
    height: 30px;
    margin-right: 8px;
    fill: var(--color-black);
  }
}

/* .footer_app__apple {
  background-image: url('../../../../Public/img/svg/apple_logo.svg');
}

.footer_app__android {
  background-image: url('../../../../Public/img/svg/android_logo.svg');
} */

.footer_bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 1em;
  font-size: 0.8em;
  border-top: var(--color-main-light) solid 1px;
}

.footer_bottom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.footer_bottom__link {
  color: var(--color-white);
}

.footer__social {
  grid-area: footer__social;
}

#productBig {
  position: relative;
  display: grid;
  grid-template: 1fr auto / auto 1fr;
  grid-template-areas:
    'imgs product-big__details'
    'description description'
    'similar similar'
    'add_review add_review'
    'review_container review_container';
  gap: 0 3em;
  padding: 2rem 1em;

  @media (max-width: 767px) {
    display: flex;
    flex-direction: column;
  }
}

.product_description {
  display: flex;
  flex-direction: column;
  grid-area: description;
  width: 100%;
  margin-top: 2em;

  & h2 {
    margin-bottom: 1em;
  }
}

.product_collection_slider_container {
  padding: 1em;
}

.product_collection_slider {
  display: flex;
  gap: 20px;
  margin-top: 20px;

  & .product_card {
    grid-template-rows: 200px 1fr;
    width: 220px;
    height: 300px;
    font-size: 0.9em;
  }

  & .product_colors__container {
    margin-bottom: 0;
  }

  & .cart_button__container {
    height: auto;
    margin-top: 0;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: 0;
}

html * {
  font-family: 'Open Sans', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

main {
  width: 100%;
  height: auto;
}

a {
  color: var(--color-black);
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

.wrapper {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.icon {
  fill: var(--color-white);
}

:root {
  --color-white: white;
  --color-black: black;
  --color-grey: #d7d7d7;
  --color-pink: #f8c3d2;
  --color-main-dark: #634d7f;
  --color-main-medium: #fceaff;
  --color-main-light: #fdf7ff;
  --color-icon: white;
  --color-bg-new: #0078ae;
  --color-bg-sale: #f9f871;
  --color-tag: #d7d7d7;
  --color-line: rgb(0 0 0 / 20.5%);
  --color-rating: #ffc364;
  --color-bg-text-block: #f6f6f6;
  --color-confirm: rgb(49 172 33);
  --color-error: rgb(236 110 110);
  --bg-header: var(--color-main-dark);
  --bg-footer: var(--color-main-dark);
}


#subheader {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  background: var(--color-main-medium);
  box-shadow: inset 0 0 0 1px hsl(0deg 0% 100% / 20%), 0 0 0 1px rgb(0 0 0 / 90%);
}

.subheader_menu {
  z-index: 3;
  width: 100%;
  list-style-type: none;
}

.subheader_menu__item {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 1em;
  color: var(--color-black);
  text-decoration: none;
  box-shadow: 0px 1px 0px black;
}

[data-edit='baseCatalog'] {
  display: flex;
  align-items: center;
  padding: 0 1em;
  color: var(--color-white);
  cursor: pointer;
}

[data-edit='baseCatalog'] .icon {
  width: 23px;
  margin-right: 1em;
}

.navigation_menu__container {
  position: relative;
  background-color: var(--color-main-dark);
  box-shadow: 0px 1px 0px black;
}

.navigation_menu__container::after {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 2px;
  content: '';
}

.open_navigation {
  display: flex;
  gap: 0.5em;
  font-size: 1em;
}

.burger_icon {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 23px;
  height: 2px;
  background: var(--color-white);
}

.burger_icon::before,
.burger_icon::after {
  position: absolute;
  width: 23px;
  height: 2px;
  background: var(--color-white);
  transition: all 200ms;
  content: '';
}

.burger_icon::before {
  top: -6px;
}

.burger_icon::after {
  bottom: -6px;
}

#navigation, #navigation2 {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  z-index: 3;
  display: flex;
  height: auto;
  padding: 1em;
  color: var(--color-black);
  background: var(--color-white);
  box-shadow: rgb(255 255 255 / 20%) 0 0 0 1px inset, rgb(0 0 0 / 90%) 0 0 0 1px;
  transition: all 100ms ease-in-out;

  &::before {
    position: absolute;
    top: -50px;
    right: 0;
    width: 100%;
    height: 50px;
    cursor: pointer;
    content: '';
  }

  &:hover {
    transform: translateY(0);
  }
}

.navigation_menu__container:hover .burger_icon {
  height: 0;
}

.navigation_menu__container:hover .burger_icon::before {
  transform: translateY(5px) rotate(45deg);
}

.navigation_menu__container:hover .burger_icon::after {
  transform: translateY(-5px) rotate(-45deg);
}

#header2 {
  position: sticky;
  top: 0;
  z-index: 9;
  align-items: center;
  padding: 0 1em;
  color: var(--color-white);
  column-gap: 1em;
  background: var(--color-main-dark);
  -ms-grid-columns: auto 1em 1fr 1em auto;
}

.logo-big {
  display: flex;
  width: 100%;
  max-width: 200px;
  height: 60px;
}

.logo-big .icon {
  width: 100%;
  max-width: 200px;
  height: 60px;
}

.user_actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  justify-content: center;
  height: 100%;
  -ms-grid-columns: 1fr 1fr 1fr;
}

.user_actions2 {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: center;
  justify-content: center;
  height: 100%;
  -ms-grid-columns: 1fr 1fr 1fr 1fr;
}
#headerSearchForm {
  & input {
    width: 100%;
    height: 30px;
    font-size: 1em;
    border: none;
    border-radius: 8px;
  }
}

[data-label='search'] {
  display: flex;
  align-items: center;
  width: 100%;
  height: 35px;
  padding: 0 0.5em;
  background: var(--color-white);
  border-radius: 8px;
}

[data-label='search'] .icon {
  width: 1em;
  height: 1em;
  fill: var(--color-black);
}

.user_actions__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 50px;
  color: var(--color-white);
  font-size: 0.9em;
  text-decoration: none;
  cursor: pointer;
}

.user_actions__item .icon {
  width: 23px;
  height: 23px;
  pointer-events: none;
}

#iconWishlist {
  position: relative;
}

#iconWishlist .icon {
  width: 27px;
}

#iconWishlist.active .icon {
  fill: var(--color-main-light);
}

.icon_wishlist::before {
  position: absolute;
  top: 7px;
  color: var(--color-black);
  font-weight: 700;
  font-size: 0.9em;
  content: attr(data-wishlist-count);
}

#iconCart {
  position: relative;
}

.icon_cart::before {
  position: absolute;
  top: 10px;
  color: var(--color-black);
  font-weight: 700;
  font-size: 0.9em;
  content: attr(data-shopping-cart-count);
}

.icon_cart::after {
  position: absolute;
  top: 100%;
  width: 100%;
  height: 10px;
  content: '';
}

.cart_header1 {
  position: absolute;
  top: 100%;
  right: -1em;
  z-index: 3;
  display: grid;
  width: 370px;
  height: auto;
  background: var(--color-main-dark);
  border: 5px solid var(--color-main-medium);
  border-radius: 10px 0 0 10px;
  transform: translateY(-10px);
  visibility: hidden;
  opacity: 0;
  filter: drop-shadow(-5px 4px 4px rgb(0 0 0 / 25%));
  transition: opacity 200ms ease-in-out, transform 200ms ease-in-out;
}

.cart_header__container:hover .cart_header1 {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
}

#userCabinet {
  display: flex;
  justify-content: center;
}

#footer {
  display: grid;
  width: 100%;
  height: 50px;
  height: auto;
  margin-top: auto;
  padding: 2em 2em 1em;
  color: var(--color-white);
  background: var(--color-main-dark);
}

.footer__title {
  margin-bottom: 1.5em;
  font-weight: normal;
  font-size: 1.2rem;
}

.footer_body {
  grid-template-areas: 'social links app';
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  justify-content: space-around;
  width: 100%;
  padding-bottom: 80px;
}

.footer_social {
  display: grid;
  grid-area: social;
  grid-template-rows: auto 1fr;
}

.footer_social__link {
  display: flex;
  align-items: center;
  width: auto;
  height: 25px;
  margin-bottom: 0.5em;
  color: var(--color-white);
  font-weight: bold;
  font-size: 1em;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  background-repeat: no-repeat;
  background-size: 25px;

  & .icon {
    width: 25px;
    height: 25px;
    margin-right: 5px;
  }
}

/* .footer_social__vk {
  background-image: url('../../../../Public/img/svg/vk_logo.svg');
}

.footer_social__telegram {
  background-image: url('../../../../Public/img/svg/telegram_logo.svg');
} */

.footer_links {
  display: grid;
  grid-area: links;
  grid-template-rows: auto 1fr;
  align-items: start;
}

.footer_links__container {
  display: grid;
  gap: 0.5em;
}

.footer_links__link {
  color: var(--color-white);
}

.footer_app {
  grid-area: app;
  width: auto;
}

.footer_app__container {
  display: flex;
  gap: 1em;
  width: auto;
  height: auto;
}

.footer_app__link {
  /* display: grid; */
  display: flex;
  align-items: center;
  width: 50%;
  min-width: 160px;
  height: auto;
  padding: 1em;
  color: var(--color-black);
  font-size: 0.8em;
  text-decoration: none;
  background-color: var(--color-main-light);
  background-repeat: no-repeat;
  background-position: 1em;
  background-size: 30px;
  border-radius: 8px;
  box-shadow: rgb(255 255 255 / 20%) 0 0 0 1px inset, rgb(0 0 0 / 90%) 0 0 0 1px;

  & strong {
    font-size: 1.1em;
  }

  & span {
    display: grid;
  }

  & .icon {
    width: 30px;
    height: 30px;
    margin-right: 8px;
    fill: var(--color-black);
  }
}

/* .footer_app__apple {
  background-image: url('../../../../Public/img/svg/apple_logo.svg');
}

.footer_app__android {
  background-image: url('../../../../Public/img/svg/android_logo.svg');
} */

.footer_bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 1em;
  font-size: 0.8em;
  border-top: var(--color-main-light) solid 1px;
}

.footer_bottom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.footer_bottom__link {
  color: var(--color-white);
}

.footer__social {
  grid-area: footer__social;
}

#popup {
  display: none;

  &.active {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    width: 100%;
    height: 100%;
    background: hsl(0deg 0% 0% / 31%);
  }
}

[name='closePopup'] {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 17px;
  height: 17px;
  cursor: pointer;

  &::before,
  &::after {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-black);
    opacity: 0.7;
    content: '';
  }

  &::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  &::after {
    transform: translate(-50%, -50%) rotate(135deg);
  }

  &:hover {
    &::before,
    &::after {
      background-color: var(--color-main-dark);
    }

    &::before {
      transform: translate(-50%, -50%) rotate(45deg) scale(1.25);
    }

    &::after {
      transform: translate(-50%, -50%) rotate(135deg) scale(1.25);
    }
  }
}

/* #test {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  width: 100%;
  height: 100%;
  background: hsl(0deg 0% 0% / 31%);
} */

.loader {
  border: 8px solid #f3f3f3; /* Light grey */
  border-top: 8px solid var(--color-main-dark); /* Blue */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

[data-label='span'] {
  position: relative;
  display: flex;
  align-items: center;
  height: 2.5em;
  color: var(--color-black);
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: rgb(67 71 85 / 27%) 0 0 0.25em, rgb(90 125 188 / 5%) 0 0.25em 1em;

  & .icon {
    width: 100%;
    max-width: 31px;
    height: 100%;
    padding: 0 0.5em;
    border-radius: 0 8px 8px 0;
    box-shadow: rgb(67 71 85 / 27%) 0 0 0.25em, rgb(90 125 188 / 5%) 0 0.25em 1em;
    fill: var(--color-black);
  }

  & [name='showPassword'] {
    height: 15px;
    margin-right: 10px;

    & svg {
      height: 100%;
      pointer-events: none;
    }

    & line {
      display: none;
    }

    &.show {
      & line {
        display: block;
      }
    }
  }

  & span {
    position: absolute;
    top: 50%;
    padding: 0.2em 0.5em 0;
    font-size: 1em;
    background: inherit;
    border-radius: 8px 8px 0 0;
    transform: translateY(-55%);
    transition: all 80ms ease-out;
    pointer-events: none;

    &.active {
      top: 0;
      font-size: 0.8em;
    }

    & em {
      color: var(--color-error);
    }
  }

  & input {
    width: 100%;
    height: 100%;
    padding-left: 8px;
    font-size: 1em;
    background: var(--color-white);
    border: none;
    border-radius: 8px 0 0 8px;

    &:-webkit-autofill,
    &:-webkit-autofill:hover,
    &:-webkit-autofill:focus {
      box-shadow: 0 0 0 1000px var(--color-white) inset;
      transition: background-color 5000s ease-in-out 0s;
    }

    &:focus ~ span,
    &:valid ~ span,
    &:not(:placeholder-shown) ~ span {
      top: 0;
      font-size: 0.8em;
    }

    &:valid ~ .icon {
      background: var(--color-confirm);
      fill: var(--color-white);
    }

    &:valid ~ span em {
      color: var(--color-confirm);
    }
  }

  &.invalid {
    /* stylelint-disable-next-line no-descending-specificity */
    & input {
      border: 1px solid var(--color-error);

      &:valid ~ .icon {
        background: var(--color-error);
      }

      &:valid ~ span em {
        color: var(--color-error);
      }
    }
  }
}

#signInForm {
  position: relative;
  display: grid;
  grid-template: repeat(5, 1fr) / 1fr auto;
  grid-template-areas:
    'text text'
    '. lock'
    '. lock'
    'button button'
    'link link';
  gap: 14px 10px;
  transform: translateX(-100%);
  transition: all 100ms ease-in-out;

  &.active {
    transform: translateX(0);
  }

  &.forget {
    transform: translateY(-100%);
  }

  & p {
    grid-area: text;
  }

  & .error {
    grid-area: error;
    text-align: center;
  }

  & button {
    grid-area: button;
  }

  & [name='forget'] {
    grid-area: link;
    align-self: center;
    text-align: center;
    cursor: pointer;

    &:hover {
      text-decoration: underline;
    }
  }
}

.sign_in_lock {
  display: flex;
  grid-area: lock;
  align-items: center;
  padding: 1em;
  background: var(--color-main-medium);
  border-radius: 8px;
  box-shadow: rgb(67 71 85 / 27%) 0 0 0.25em, rgb(90 125 188 / 5%) 0 0.25em 1em;

  & svg {
    width: 1em;
  }

  &.active {
    background: var(--color-confirm);
  }
}

#registerForm {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 14px;
  align-items: center;
  transform: translateX(0);
  transition: all 100ms ease-in-out;

  &.active {
    transform: translateX(-100%);
  }
}

#forgetForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translate(-200%, 100%);
  transition: all 100ms ease-in-out;

  &.active {
    transform: translate(-200%, 0);
  }

  &.register {
    transform: translate(-300%, 0);
  }
}

#forgetError {
  display: none;
  text-align: center;

  &.active {
    display: block;
  }
}

#registerAndLogin {
  display: grid;
  width: 370px;
  margin: auto;
}

#registerAndLoginContainer {
  position: relative;
  display: flex;
  height: 100%;
  overflow: hidden;
  background: var(--color-main-light);
  border-radius: 0 0 1em 1em;
}

.login__header {
  --transform: 0;

  position: relative;
  z-index: 3;
  display: flex;
  height: 50px;
  background: var(--color-main-medium);
  border-radius: 1em 1em 0 0;
  transition: all 100ms ease-in-out;

  &::before {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    border-radius: 1em 1em 0 0;
    transform: translateX(var(--transform));
    transition: all 100ms ease-in-out;
    content: '';
  }
}

.login__menu {
  position: relative;
  width: 50%;
  font-weight: 600;
  font-size: 0.9em;
  text-align: center;
  cursor: pointer;

  &[name='signIn'] {
    border-radius: 1em 0 0;
  }

  &[name='register'] {
    border-radius: 0 1em;
  }
}

.login__item {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  padding: 2em;
  background: var(--color-main-light);
  border-radius: 0 0 1em 1em;
}

.login__button {
  width: 100%;
  height: 2.5em;
  color: var(--color-white);
  font-size: 1em;
  text-align: center;
  background: var(--color-main-dark);
  border: none;
  border-radius: 8px;

  &:disabled {
    cursor: not-allowed;
    opacity: 0.5;
  }
}

.spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.spinner::after {
  width: 48px;
  height: 48px;
  border: 5px solid var(--color-grey);
  border-bottom-color: var(--color-red);
  border-radius: 50%;
  animation: rotation 1s linear infinite;
  content: '';
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.spinner-params {
    width: 10px;
    height: 10px;
    border: 2px solid #FFF;
    border-bottom-color: var(--color-main-dark);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    }

    @keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
