.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);
  }
}

* {
  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_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;
  }
}

.breadcumbs {
  height: 50px;
  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;
  }
}

.brands_alphabet {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 1em;
  list-style-type: none;
  border-bottom: 1px solid var(--color-black);
}

.brands_alphabet__title {
  margin-right: 5px;
}

.brands_alphabet__hover {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-wrap: wrap;
  width: 100%;
  padding: 1em;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-black);

  &::before {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 15px;
    content: '';
  }

  &:hover {
    display: flex;
  }
}

.brands_alphabet__letter {
  position: relative;
  width: 28px;
  height: 28px;
  font-size: 1.2em;
  text-align: center;
  text-transform: uppercase;
  border-radius: 4px;

  &:hover {
    background: var(--color-pink);
    cursor: pointer;
  }

  &:hover ~ .brands_alphabet__hover {
    display: flex;
  }
}

.brands_alphabet__item {
  display: flex;
  flex-direction: column;
  align-items: center;
/*  width: 100px;*/
/*  height: 90px;*/
  padding: 10px;
  font-size: 1em;
  border-radius: 8px;

  &:hover {
    background: var(--color-main-medium);
  }

  & img {
    width: auto;
    height: 50px;
    pointer-events: none;
  }
}

.shop-description {
  padding: 1.5rem;
  background: var(--color-bg-text-block);

  & article {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
  }

  & h1 {
    display: inline-block;
    padding-bottom: 1rem;
    text-transform: uppercase;
  }
}

.dropdown_body {
  position: absolute;
  top: 100%;
  z-index: 2;
  display: none;
  gap: 1px;
  width: auto;
  height: auto;
  max-height: 400px;

  /* margin-top: 0.5rem; */
  padding: 6px;
  padding: 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  font-size: 1rem;
  white-space: nowrap;
  background: inherit;
  border: var(--color-black) 1px solid;
  border-radius: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgb(0 0 0 / 50%);

  /* & span {
    padding: 0 0.5em;
  } */

  & .revert {
    display: inline-block;
    all: revert;
  }

  &::-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;
  }

  &.active {
    visibility: visible;
  }

  &.right {
    right: 0;
  }

  /* & input {
    display: inline-block;
    all: revert;
  } */
}

.dropdown__title {
  display: flex;
  align-items: center;
  padding: 0 1em;
  pointer-events: none;

  &::before,
  &::after {
    order: 2;
    width: 0.5em;
    height: 1px;
    background-color: var(--color-black);
    transition: all 100ms ease-in-out;
    content: '';
  }

  &::before {
    margin-left: 0.5em;
    transform: translateX(2px) rotate(45deg);
  }

  &::after {
    transform: rotate(-45deg);
  }

  /* &::after {
    --size: 0.3em;

    width: 0;
    height: 0;
    margin-left: 1em;
    border-top: var(--size) solid transparent;
    border-bottom: var(--size) solid transparent;
    border-left: var(--size) solid var(--color-black);
    content: '';
  } */

  /* &.active {
    &::after {
      border-top: var(--size) solid var(--color-black);
      border-right: var(--size) solid transparent;
      border-bottom: none;
      border-left: var(--size) solid transparent;
    }
  } */

  /* &:hover ~ .dropdown_body {
    display: grid;
  } */
}

.dropdown {
  --offset: 10px;

  position: relative;
  display: inline-grid;
  width: auto;
  background: var(--color-white);
  cursor: pointer;

  &:hover {
    &::after {
      position: absolute;
      top: 100%;
      width: 100%;
      height: var(--offset);
      content: '';
    }

    & .dropdown_body {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: var(--offset);
    }

    & .dropdown__title {
      &::before {
        transform: translateX(2px) rotate(-45deg);
      }

      &::after {
        transform: rotate(45deg);
      }
    }
  }

  /* &.active,
  &:hover {
    &::after {
      position: absolute;
      top: 100%;
      width: 100%;
      height: var(--offset);
      content: '';
    }

    & .dropdown_body {
      display: grid;
      gap: 10px;
      margin-top: var(--offset);
    }

    & .dropdown__title {
      &::after {
        border-top: var(--size) solid var(--color-black);
        border-right: var(--size) solid transparent;
        border-bottom: none;
        border-left: var(--size) solid transparent;
      }
    }
  } */
}

#addProductColor,
#addProductSize {
  background: none;
  border-radius: 6px;
  box-shadow: rgb(255 255 255 / 20%) 0 0 0 1px inset, rgb(0 0 0 / 90%) 0 0 0 1px;

  & .dropdown__title {
    padding: 2px 5px;
  }

  @media (max-width: 768px) {
    display: none;
  }
}

.input_menu {
  padding: 0.5em;

  & label {
    padding: 6px;

    &:hover {
      background: var(--color-main-medium);
      border-radius: 0.5rem;
    }
  }
}

#addProductColor {
  & .dropdown_body {
    transform: translateX(-6px);
  }
}

#addProductSize {
  background: var(--color-white);

  & .dropdown_body {
    padding: 0;
    box-shadow: rgb(255 255 255 / 20%) 0 0 0 1px inset, rgb(0 0 0 / 90%) 0 0 0 1px;

    & label {
      padding: 0 5px;

      &:hover,
      &.active {
        background: var(--color-main-light);
      }
    }
  }
}

.dropdown__list-item {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 0.5rem;

  &:hover {
    background: var(--color-main-medium);
  }
}

.dropdown_body {
  position: absolute;
  top: 100%;
  z-index: 2;
  display: none;
  gap: 1px;
  width: auto;
  height: auto;
  max-height: 400px;

  /* margin-top: 0.5rem; */
  padding: 6px;
  padding: 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  font-size: 1rem;
  white-space: nowrap;
  background: inherit;
  border: var(--color-black) 1px solid;
  border-radius: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgb(0 0 0 / 50%);

  /* & span {
    padding: 0 0.5em;
  } */

  & .revert {
    display: inline-block;
    all: revert;
  }

  &::-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;
  }

  &.active {
    visibility: visible;
  }

  &.right {
    right: 0;
  }

  /* & input {
    display: inline-block;
    all: revert;
  } */
}

.dropdown__title {
  display: flex;
  align-items: center;
  padding: 0 1em;
  pointer-events: none;

  &::before,
  &::after {
    order: 2;
    width: 0.5em;
    height: 1px;
    background-color: var(--color-black);
    transition: all 100ms ease-in-out;
    content: '';
  }

  &::before {
    margin-left: 0.5em;
    transform: translateX(2px) rotate(45deg);
  }

  &::after {
    transform: rotate(-45deg);
  }

  /* &::after {
    --size: 0.3em;

    width: 0;
    height: 0;
    margin-left: 1em;
    border-top: var(--size) solid transparent;
    border-bottom: var(--size) solid transparent;
    border-left: var(--size) solid var(--color-black);
    content: '';
  } */

  /* &.active {
    &::after {
      border-top: var(--size) solid var(--color-black);
      border-right: var(--size) solid transparent;
      border-bottom: none;
      border-left: var(--size) solid transparent;
    }
  } */

  /* &:hover ~ .dropdown_body {
    display: grid;
  } */
}

.dropdown {
  --offset: 10px;

  position: relative;
  display: inline-grid;
  width: auto;
  background: var(--color-white);
  cursor: pointer;

  &:hover {
    &::after {
      position: absolute;
      top: 100%;
      width: 100%;
      height: var(--offset);
      content: '';
    }

    & .dropdown_body {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: var(--offset);
    }

    & .dropdown__title {
      &::before {
        transform: translateX(2px) rotate(-45deg);
      }

      &::after {
        transform: rotate(45deg);
      }
    }
  }

  /* &.active,
  &:hover {
    &::after {
      position: absolute;
      top: 100%;
      width: 100%;
      height: var(--offset);
      content: '';
    }

    & .dropdown_body {
      display: grid;
      gap: 10px;
      margin-top: var(--offset);
    }

    & .dropdown__title {
      &::after {
        border-top: var(--size) solid var(--color-black);
        border-right: var(--size) solid transparent;
        border-bottom: none;
        border-left: var(--size) solid transparent;
      }
    }
  } */
}

#addProductColor,
#addProductSize {
  background: none;
  border-radius: 6px;
  box-shadow: rgb(255 255 255 / 20%) 0 0 0 1px inset, rgb(0 0 0 / 90%) 0 0 0 1px;

  & .dropdown__title {
    padding: 2px 5px;
  }

  @media (max-width: 768px) {
    display: none;
  }
}

.input_menu {
  padding: 0.5em;

  & label {
    padding: 6px;

    &:hover {
      background: var(--color-main-medium);
      border-radius: 0.5rem;
    }
  }
}

#addProductColor {
  & .dropdown_body {
    transform: translateX(-6px);
  }
}

#addProductSize {
  background: var(--color-white);

  & .dropdown_body {
    padding: 0;
    box-shadow: rgb(255 255 255 / 20%) 0 0 0 1px inset, rgb(0 0 0 / 90%) 0 0 0 1px;

    & label {
      padding: 0 5px;

      &:hover,
      &.active {
        background: var(--color-main-light);
      }
    }
  }
}

.dropdown__list-item {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 0.5rem;

  &:hover {
    background: var(--color-main-medium);
  }
}

.shop_filters1 {
  border-bottom: 1px solid var(--color-line);
}

.filters {
  padding: 1rem 0;
  background: var(--color-main-dark);

  & .wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;

    @media (max-width: 675px) {
      justify-content: center;
    }
  }

  & .dropdown {
    height: 35px;
    border-radius: 6px;
  }
}

.common {
  display: flex;
}

.basic {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

#filterSearch {
  display: none;
}

.tags_filter {
  display: flex;
  gap: 0.5em;
  align-items: center;
  height: auto;
  min-height: 45px;
  padding: 0.5em 1em;
}

.tag1,
.default_tag,
.tag2 {
  display: none;
  align-items: center;
  padding: 0.2rem 0.4rem;
  background: var(--color-main-medium);
  border-radius: 5px;

  &.active {
    display: inline-flex;
  }

  & button {
    display: flex;
    cursor: pointer;

    & * {
      pointer-events: none;
    }
  }

  & svg {
    height: 0.95rem;
    margin-left: 0.4rem;
    padding: 2px;
    background: var(--color-main-dark);
    border-radius: 50%;
  }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: center;
}

.tags_filter__price_result {
  width: 0;
  font-size: 1em;
  background: none;
  border: none;
}

#colorFilterForm,
#sizeFilterForm {
  gap: 6px;
  align-items: flex-start;

  & label {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 15px;
  }

  & input {
    position: absolute;
    left: -20px;
    display: inline-block;
  }
}

#sizeFilterForm,
#colorFilterForm,
#priceFilterForm {
  max-height: 500px;
  overflow: auto;
  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;
  }
}

#priceFilterForm {
  width: 300px;
  overflow: hidden;
}

input[type='range'] {
  width: 100%;
  margin: auto;
  background-color: transparent;
  outline: none;
  appearance: none;
  pointer-events: none;

  &::-webkit-slider-runnable-track {
    height: 0.5rem;
    appearance: none;
  }

  &::-moz-range-track {
    height: 0.5rem;
    appearance: none;
  }

  &::-ms-track {
    height: 0.5rem;
    appearance: none;
  }

  &::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    margin-top: -4px;
    background-color: var(--color-main-dark);
    border-radius: 10px;
    cursor: pointer;
    appearance: none;
    pointer-events: auto;
  }

  &::-ms-thumb {
    width: 16px;
    height: 16px;
    margin-top: -4px;
    background-color: var(--color-main-dark);
    border-radius: 50%;
    cursor: pointer;
    appearance: none;
    pointer-events: auto;
  }

  &::-moz-range-thumb {
    width: 16px;
    height: 16px;
    margin-top: -4px;
    background-color: var(--color-main-dark);
    border-radius: 50%;
    cursor: pointer;
    appearance: none;
    pointer-events: auto;
  }

  &:active::-webkit-slider-thumb {
    background-color: var(--color-main-medium);
    border: 2px solid var(--color-main-dark);
  }
}

.dual_range {
  position: relative;
  height: 1em;

  & input[type='range'] {
    position: absolute;
    top: 0;
    bottom: 0;
  }
}

.price_result {
  display: flex;
  gap: 10px;
}

.price_result__item {
  display: grid;
  width: 100%;
}

.price_result__tilte {
  margin-bottom: 5px;
  font-size: 0.9em;
}

/* .price_result__input {
  display: none;
} */

.price_result__input {
  width: 100%;
  height: 35px;
  padding: 8px;
  font-size: 0.95em;
  background: var(--color-main-light);
  border: var(--color-black) 1px solid;
  border-radius: 6px;
}

.slider_track {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 0.5rem;
  margin: auto;
  background-color: var(--color-main-medium);
  border-radius: 5px;
}

.brafitting__result {
  display: grid;
  row-gap: 1em;
  padding-top: 2rem;
}

[name='tagRemove'] {
  position: relative;
  width: 15px;
  height: 15px;
  margin-right: 3px;
  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 {
      transform: translate(-50%, -50%) rotate(45deg) scale(1.25);
    }

    &::after {
      transform: translate(-50%, -50%) rotate(135deg) scale(1.25);
    }
  }
}

.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 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;

  &.active {
    background: var(--color-main-light);
    border-radius: 4px;
    box-shadow: 0 0 0 2px var(--color-white), 0 0 0 4px var(--color-main-dark);
  }
}

.product_color {
  display: flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
  background: var(--color);
  border-radius: 6px;
  cursor: pointer;

  & input {
    display: none;
  }

  & span {
    position: relative;
    padding: 2px 5px;
    color: var(--color-black);
    border: 1px solid var(--color-main-dark);
    border-radius: 6px;
  }

  /*
  &[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*='синий'],
  &[data-color*='серый-красный'],
  &[data-color*='красный'],
  &[data-color*='графит'],
  &[data-color*='серый'],
  &[data-color*='бургундское вино'],
  &[data-color*='кофейно-розовый'],
  &[data-color*='бордовый'],
  &[data-color*='антрацит'],
  &[data-color*='малиновый'],
  &[data-color*='лиловый'],
  &[data-color*='мокка'],
  &[data-color*='оливковый'],
  &[data-color*='джинс'],
  &[data-color*='зеленый'],
  &[data-color*='хаки'],
  &[data-color*='баклажан'],
  &[data-color*='слива'],
  &[data-color*='золото'],
  &[data-color*='фиолетовый'],
  &[data-color*='леопард'],
  &[data-color*='iron'],
  &[data-color*='navy'],
  &[data-color*='nero'],
  &[data-color*='кофе'],
  &[data-color*='коричневый'],
  &[data-color*='black'],
  &[data-color*='fumo'],
  &[data-color*='bronzo'],
  &[data-color*='shade'],
  &[data-color*='grafit'],
  &[data-color*='mocca'],
  &[data-color*='moka'],
  &[data-color*='londra'],
  &[data-color*='caramello'],
  &[data-color*='lola'],
  &[data-color*='cioccolato'],
  &[data-color*='visone'],
  &[data-color*='camoscio'],
  &[data-color*='daino'],
  &[data-color*='бордо'],
  &[data-color*='dark blu'],
  &[data-color*='dark green'],
  &[data-color*='металл'],
  &[data-color*='черный'],
  &[data-color*='рубин'] {
    & span {
      color: white;
    }
  }

  &[data-color*='бежевый-красный'],
  &[data-color*='лиловый-розовый'],
  &[data-color*='красный-белый'],
  &[data-color*='серый-белый'],
  &[data-color*='белый-коричневый'],
  &[data-color*='белый-серый'],
  &[data-color*='белый-красный'],
  &[data-color*='зеленый-белый'],
  &[data-color*='желтый-серый'],
  &[data-color*='графит-белый'],
  &[data-color*='шампань-красный'],
  &[data-color*='шампань-серый'],
  &[data-color*='коричневый-белый'],
  &[data-color*='белый-фиолетовый'],
  &[data-color*='морской-зеленый'],
  &[data-color*='cветло-серый'] {
    & span {
      color: black;
    }
  }

  &[data-color*='черный-бежевый'],
  &[data-color*='бежевый-черный'],
  &[data-color*='т.синий-бежевый'],
  &[data-color*='т.синий-белый'],
  &[data-color*='синий-белый'],
  &[data-color*='черный-желтый'],
  &[data-color*='белый-черный'],
  &[data-color*='телесный-черный'],
  &[data-color*='белый-синий '],
  &[data-color*='бежевый-синий'],
  &[data-color*='шампань-синий'],
  &[data-color*='черный-шампань'],
  &[data-color*='синий-шампань'],
  &[data-color*='черный-белый'] {
    & span {
      mix-blend-mode: difference;
      mix-blend-mode: exclusion;
    }
  } */

  & input:checked ~ span {
    border: 1px solid var(--color-white);
    box-shadow: 0 0 0 2px var(--color-main-dark);
  }
}

.product_sizes__container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: flex-end;

  &.active {
    background: var(--color-main-light);
    border-radius: 4px;
    box-shadow: 0 0 0 4px var(--color-white), 0 0 0 6px var(--color-main-dark);
  }
}

.product_size {
  cursor: pointer;

  & span {
    padding: 2px 5px;
    font-size: 0.9em;
    white-space: nowrap;
    background: var(--color-grey);
    border-radius: 6px;

    &:hover {
      background: var(--color-pink);
    }
  }

  & input {
    display: none;

    &:checked ~ span {
      background: var(--color-pink);
      box-shadow: 0 0 0 2px var(--color-pink);
    }
  }
}

.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;
  }
}

.products_list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  justify-items: center;
  padding: 20px 1rem;
}

.products_list2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  justify-items: center;
  padding: 20px 1rem;
}

.subcategory {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 400px;
  height: 460px;

  & [name='deleteProduct'] {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    padding: 8px 8px 4px 6px;
    background: var(--color-white);
    border-radius: 0 1em 0 8px;

    & * {
      pointer-events: none;
    }

    & svg {
      width: 100%;
    }
  }

  & img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1em;
    box-shadow: rgb(0 0 0 / 35%) 0 5px 15px;
  }
}

.subcategory__title {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100px;
  margin: auto;
  padding: 0.5em 1em;
  text-align: center;
  background: var(--color-main-medium);

  & a {
    color: var(--color-black);
  }
}

#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;
}
