/* product-grid catalog cards styles start */
/* product-grid.php + product-card.php: Product Grid and Product Cards */
.wt-prodbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--wt-black);
  padding-bottom: 14px;
}
.wt-prodbar__left,
.wt-prodbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.wt-dd {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wt-dd__label {
  font-size: 14px;
}
.wt-dd__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  font-size: 12px;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-black);
}

.wt-dd__btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px 18px 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1;
  color: inherit;
}
.wt-dd__btn:focus {
  outline: none;
}
.wt-dd__text {
  white-space: nowrap;
  font-size: 21px;
}

.wt-dd::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--wt-black);
  border-bottom: 2px solid var(--wt-black);
  transform: rotate(45deg);
  margin-left: -12px;
  pointer-events: none;
}
.wt-dd.is-open::after {
  transform: rotate(225deg);
}

.wt-dd__panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  min-width: 360px;
  margin-top: 8px;
  background: var(--wt-bg-base);
  border: 1px solid var(--wt-black);
  border-radius: 22px !important;
  box-shadow: var(--wt-shadow-strong);
  padding: 12px;
  display: none;
  overflow: hidden;
}
.wt-dd.is-open .wt-dd__panel {
  gap: 5px;
  display: flex;
  flex-direction: column;
}

.wt-dd__item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  font-size: 21px;
}
.wt-dd__item:hover {
  background: var(--wt-black);
}
.wt-dd__item.is-active {
  background: var(--wt-black);
  font-weight: 600;
}

.wt-prodgrid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
}

.wt-prodgrid__divider {
  grid-column: 1 / -1;
  width: 100%;
  margin: 63px 0;
}

.wt-prodgrid__divider img {
  display: block;
  width: 100%;
  height: auto;
}

.wt-prodgrid .wt-cartQty {
  width: 100%;
}
.wt-searchpage {
  padding: 28px 30px 72px;
}

.wt-searchpage__form {
  margin-bottom: 30px;
}

.wt-searchpage__field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  align-items: stretch;
  border: 1px solid rgba(45, 42, 45, 0.16);
  background: var(--wt-bg-base);
}

.wt-searchpage__input {
  width: 100%;
  min-height: 64px;
  padding: 0 22px;
  border: 0 !important;
  background: transparent !important;
  color: var(--wt-color-text) !important;
  font-size: 20px;
  line-height: 1;
}

.wt-searchpage__input::placeholder {
  color: rgba(45, 42, 45, 0.34);
}

.wt-searchpage__submit {
  width: 68px;
  min-height: 64px;
  padding: 0 !important;
  border: 0 !important;
  border-left: 1px solid rgba(45, 42, 45, 0.16) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.wt-searchpage__submit img {
  width: 28px;
  height: 28px;
  display: block;
  margin: 0 auto;
}

.wt-searchpage__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.wt-searchpage__title {
  margin: 0;
}

.wt-searchpage__meta {
  margin: 0;
  color: rgba(45, 42, 45, 0.72);
  text-align: right;
}

.wt-searchpage__empty {
  padding: 36px 0 12px;
}

.wt-searchpage__empty h2 {
  margin: 0 0 12px;
}

.wt-searchpage__empty p {
  margin: 0;
  color: rgba(45, 42, 45, 0.72);
}

.wt-searchpage__pagination,
.wt-prodgrid__pagination {
  margin-top: 36px;
  padding-top: 8px;
  display: flex;
  justify-content: center;
}

.wt-searchpage__pagination .page-numbers,
.wt-prodgrid__pagination .page-numbers {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.wt-searchpage__pagination .page-numbers a,
.wt-searchpage__pagination .page-numbers span,
.wt-prodgrid__pagination .page-numbers a,
.wt-prodgrid__pagination .page-numbers span {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(45, 42, 45, 0.24);
  border-radius: 999px !important;
  text-decoration: none;
  color: var(--wt-color-text);
  background: var(--wt-bg-base);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  box-sizing: border-box;
}

.wt-searchpage__pagination .page-numbers .current,
.wt-prodgrid__pagination .page-numbers .current {
  border-color: var(--wt-color-accent);
  color: var(--wt-color-accent);
}

.wt-searchpage__pagination .page-numbers .dots,
.wt-prodgrid__pagination .page-numbers .dots {
  pointer-events: none;
}

.wt-searchpage__pagination .page-numbers .prev,
.wt-searchpage__pagination .page-numbers .next,
.wt-prodgrid__pagination .page-numbers .prev,
.wt-prodgrid__pagination .page-numbers .next {
  font-size: 0;
  line-height: 0;
  color: transparent;
  background: transparent
    url("http://cosmetics.webtwin.ru/wp-content/uploads/2026/04/Arrow.svg")
    center/24px 24px no-repeat;
}

.wt-searchpage__pagination .page-numbers .prev,
.wt-prodgrid__pagination .page-numbers .prev {
  transform: rotate(180deg);
}

.wt-prodcard {
  position: relative;
  background: transparent;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}

.wt-prodcard__top {
  position: relative;
}
.wt-prodcard__img {
  aspect-ratio: 1 / 1;
  background-color: var(--wt-bg-base);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  display: block;
}

.wt-prodcard__badgesTop {
  position: absolute;
  left: 18px;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.wt-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 18px;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-bg-base);
  border: 1px solid var(--wt-black);
}

.wt-prodcard__badgeDiscount {
  position: absolute;
  left: 18px;
  bottom: 18px;
  height: 34px;
  padding: 0 18px;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-black);
  color: var(--wt-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  pointer-events: none;
}

.wt-prodcard__body {
  padding: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.wt-prodcard__title {
  height: 2em;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.2px;
}
.wt-prodcard__title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  min-height: calc(1.25em * 2);
  max-height: calc(1.25em * 2);
  text-decoration: none;
  color: inherit;
  height: 2.5em;
}

.wt-prodcard__subtitle {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  font-size: 18px;
  opacity: 1;
  font-style: normal;
  line-height: 1.25;
  min-height: 0;
}

.wt-prodcard__subtitle li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 28px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(45, 42, 45, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wt-prodcard__price {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 500;
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
}

.wt-prodcard__price.wt-price-display {
  align-items: center;
  gap: 12px;
}

.wt-prodcard__price.wt-price-display .wt-price-display__current {
  font-size: 1em;
}

.wt-prodcard__price.wt-price-display .wt-price-display__base {
  font-size: 18px;
}
.wt-prodcard__price del {
  opacity: 0.55;
  font-weight: 400;
  font-size: 18px;
}
.wt-prodcard__price ins {
  text-decoration: none;
}

.wt-prodcard__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: auto;
  padding-top: 12px;
}
.wt-btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  padding: 13.5px 26px;
  border-radius: var(--wt-radius-pill) !important;
  border: 1px solid var(--wt-color-accent) !important;
  background: var(--wt-color-accent) !important;
  color: var(--wt-white) !important;
  font-family: var(--wt-font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}
.wt-btn:hover {
  background: transparent !important;
  border-color: var(--wt-color-accent) !important;
  color: var(--wt-color-accent) !important;
}
.wt-btn--dark {
  background: var(--wt-color-text) !important;
  color: var(--wt-white) !important;
  border-color: var(--wt-color-text) !important;
}
.wt-btn--dark:hover {
  background: transparent !important;
  color: var(--wt-color-text) !important;
  border-color: var(--wt-color-text) !important;
}

.wt-prodgrid__pagination {
  margin-top: 24px;
}

@media (max-width: 1440px) {
  .wt-prodgrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .wt-prodcard__body {
    padding-top: 20px;
  }
  .wt-prodgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wt-searchpage {
    padding: 28px 20px 72px;
  }
}

/* product-grid catalog cards styles end */
/* favorites and action-icons styles start */
/* favorites.php + action-icons.php: Favorites and Heart Buttons */
.wt-fav-heart {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.35;
  padding: 6px 0;
  line-height: 1;
}
.wt-fav-heart.is-active {
  opacity: 1;
}

.wt-prodcard__top {
  position: relative;
}

.wt-prodcard__top .wt-fav-heart--img {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: var(--wt-black);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
  z-index: 4;
  line-height: 1;
}

.wt-prodcard__top:hover .wt-fav-heart--img,
.wt-prodcard__img:hover + .wt-fav-heart--img {
  opacity: 1;
  transform: translateY(0);
}

.wt-prodcard__top .wt-fav-heart--img.is-active {
  opacity: 1;
  transform: translateY(0);
}

.wt-fav {
  position: relative;
}
.wt-fav .wt-fav-heart--img {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-black);
  display: grid;
  place-items: center;
  opacity: 1;
  z-index: 4;
  line-height: 1;
  transition: background 0.15s ease;
}
.wt-fav .wt-fav-heart--img:hover {
  background: var(--wt-black);
}

/* favorites and action-icons styles end */
.wt-prodcard {
  gap: 0;
}

.wt-prodcard__top {
  min-height: 0;
}

.wt-prodcard__img {
  aspect-ratio: 0.96 / 1;
  background-size: contain;
  background-position: center top;
}

.wt-prodcard__badgesTop {
  top: 2px;
  left: 0;
  transform: none;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  z-index: 2;
  justify-content: flex-start;
  width: calc(100% - 52px);
}

.wt-prodcard__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 7px 12px;
  border-radius: var(--wt-radius-pill) !important;
  font-family: var(--wt-font);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wt-white);
}

.wt-prodcard__badge--new {
  background: #7f8164;
}

.wt-prodcard__badge--sale {
  min-width: 78px;
  padding: 0;
  background: #8d2630;
  font-size: 28px;
  letter-spacing: 0;
  transform: translateY(-1px);
  border-radius: var(--wt-radius-pill) !important;
}

.wt-prodcard__badgeDiscount,
.wt-pill {
  display: none !important;
}

.wt-prodcard__top .wt-fav-heart--img {
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: url("/wp-content/uploads/2026/04/Fav_inactive.svg") center/contain
    no-repeat !important;
  box-shadow: none !important;
  opacity: 1;
  transform: none !important;
  font-size: 0;
  color: transparent;
  margin: 0 !important;
  left: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: 0 !important;
}

.wt-prodcard__top .wt-fav-heart--img.is-active {
  background-image: url("/wp-content/uploads/2026/04/Fav2.svg") !important;
}

.wt-prodcard:hover .wt-fav-heart--img,
.wt-prodcard__top:hover .wt-fav-heart--img,
.wt-prodcard__img:hover + .wt-fav-heart--img,
.wt-prodcard .wt-fav-heart--img:hover,
.wt-prodcard .wt-fav-heart--img:focus,
.wt-prodcard .wt-fav-heart--img:active {
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  margin: 0 !important;
  transform: none !important;
}

.wt-prodcard__body {
  padding-top: 34px;
  gap: 18px;
  min-width: 0;
}

.wt-prodcard__title {
  height: auto;
  min-height: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0;
}

.wt-prodcard__title a {
  min-height: 0;
  max-height: none;
}

.wt-prodcard__subtitle {
  min-height: 0;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0;
  opacity: 1;
  color: var(--wt-color-text);
}

.wt-prodcard__price {
  margin-top: 0;
  gap: 16px;
  align-items: center;
}

.wt-prodcard__priceCurrent {
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  color: var(--wt-color-text);
}

.wt-prodcard__priceInfo {
  width: 24px;
  height: 24px;
  border: 2px solid #8d2630;
  border-radius: var(--wt-radius-round) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8d2630;
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  line-height: 1;
}

.wt-prodcard__priceOld {
  color: #9ca0a3;
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
}

.wt-prodcard__actions {
  grid-template-columns: 1fr;
  gap: 12px;
  padding-top: 0;
}

.wt-prodcard__cartAction {
  display: flex;
  width: 100%;
}

.wt-prodcard__btn {
  /* min-height: 68px; */
  padding: 13.5px 26px;
  border: 1px solid var(--wt-color-accent-soft-80);
  border-radius: var(--wt-radius-pill) !important;
  background: transparent;
  color: var(--wt-color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-decoration: none !important;
  font-family: var(--wt-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.1;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.wt-prodcard__btn:hover,
.wt-prodcard__btn:focus,
.wt-prodcard__btn:active,
.wt-prodcard__btn:visited {
  text-decoration: none !important;
}

.wt-prodcard__btn:hover {
  background: #8d2630;
  border-color: #8d2630;
  color: var(--wt-white);
}

.wt-prodcard__btnIcon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  background: url("/wp-content/uploads/2026/04/Cart.svg") center/contain
    no-repeat;
}

.wt-prodcard__btn:hover .wt-prodcard__btnIcon {
  filter: brightness(0) invert(1);
}

.wt-prodcard__installment {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.wt-prodcard__installmentBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--wt-color-text);
  color: var(--wt-white);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-transform: lowercase;
}

.wt-prodcard__installmentBadge img {
  display: block;
  width: 75px;
  height: auto;
  max-width: none;
}

.wt-prodcard__installmentText {
  margin: 0;
  color: var(--wt-color-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  text-align: right;
}

.wt-prodcard__installmentText span {
  color: #c69098;
}

.wt-sidebar {
  position: fixed;
  right: 24px;
  top: 55%;
  transform: translateY(calc(-100% - 27px));
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}
.wt-sidebar a {
  pointer-events: auto;
}
.wt-sidebar__stack {
  width: 50px;
  padding: 15px 0 14px;
  background: var(--wt-color-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border-radius: 25px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}
.wt-sidebar__btn {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--wt-white);
  text-decoration: none;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
  opacity: 0.95;
}
.wt-sidebar__btn:hover {
  transform: translateY(-1px);
  opacity: 1;
}
.wt-sidebar__btn:focus {
  outline: 2px solid var(--wt-focus-light);
  outline-offset: 3px;
}
.wt-sidebar__btn img {
  width: 100%;
  height: 100%;
  display: block;
}
.wt-sidebar__fav {
  width: 50px;
  height: 50px;
  border: 1px solid var(--wt-color-danger);
  border-radius: var(--wt-radius-round) !important;
  background: transparent !important;
  box-shadow: none;
}
.wt-sidebar__fav img {
  width: 24px;
  height: 24px;
}

@media (max-width: 767px) {
  .wt-prodcard__body {
    padding-top: 15px;
  }

  .wt-prodcard__subtitle li {
    max-width: calc((420px - (18px + 30px)) / 2);
  }

  .wt-searchpage {
    padding: 20px 15px 48px;
  }

  .wt-searchpage__field {
    grid-template-columns: minmax(0, 1fr) 54px;
  }

  .wt-searchpage__input {
    min-height: 54px;
    padding: 0 14px;
    font-size: 16px;
  }

  .wt-searchpage__submit {
    width: 54px;
    min-height: 54px;
  }

  .wt-searchpage__submit img {
    width: 22px;
    height: 22px;
  }

  .wt-searchpage__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }

  .wt-searchpage__pagination,
  .wt-prodgrid__pagination {
    margin-top: 28px;
  }

  .wt-searchpage__pagination .page-numbers,
  .wt-prodgrid__pagination .page-numbers {
    gap: 8px;
  }

  .wt-searchpage__pagination .page-numbers a,
  .wt-searchpage__pagination .page-numbers span,
  .wt-prodgrid__pagination .page-numbers a,
  .wt-prodgrid__pagination .page-numbers span {
    width: 36px;
    min-width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .wt-prodgrid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .wt-prodcard__btn {
    font-size: 14px;
    padding: 10px 18px;
  }

  .wt-prodcard__actions {
    grid-template-columns: 1fr;
  }

  .wt-prodcard__installment {
    flex-direction: column;
    align-items: flex-start;
  }

  .wt-prodcard__installmentText {
    text-align: left;
  }

  .wt-prodcard__top .wt-fav-heart--img {
    opacity: 1;
    transform: translateY(0);
  }

  .wt-fav .wt-fav-heart--img {
    width: 30px;
    height: 30px;
  }

  .wt-sidebar {
    right: 14px;
  }

  .wt-sidebar__stack {
    width: auto;
    padding: 20px 15px;
  }

  .wt-sidebar__fav {
    width: 54px;
    height: 54px;
  }
}
