main.main {
  padding-top: 80px;
  @media (min-width: 768px) {
    padding-top: 100px;
  }
  @media (min-width: 1440px) {
    padding-top: 120px;
  }
}
.fs-h1,
.page-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 130%;
  text-transform: uppercase;
  @media (min-width: 1200px) {
    font-size: 20px;
  }
  @media (min-width: 1440px) {
    font-size: 24px;
  }
}

.fs-h2 {
  font-size: 14px;
  font-weight: 600;
  line-height: 130%;
  text-transform: uppercase;
  @media (min-width: 1200px) {
    font-size: 16px;
  }
  @media (min-width: 1440px) {
    font-size: 18px;
  }
}
.products .price,
.fs-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 120%;
  @media (min-width: 1440px) {
    font-size: 18px;
  }
}

.header {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 99;
}
.header__wrapper {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: space-between;
  @media (max-width: 1023px) {
    display: none;
  }
}
.header .logo {
  flex: 1;
  max-width: 160px;
}

.mobile-header__panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  height: 40px;
  background: rgb(255 255 255 / 90%);
  transition: all 275ms ease-in;
  @media (min-width: 1200px) {
    padding-inline: 20px;
  }
}
header.header.active .mobile-header__panel {
  background-color: #fff;
}
.mobile-header.is-open .mobile-header__panel {
  background-color: var(--color-white);
}
.header__action.header__wishlist {
  @media (max-width: 767px) {
    display: none;
  }
}

/* Бургер */
.mobile-burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  padding: 6px 3px;
  cursor: pointer;
  @media (min-width: 1200px) {
    display: none;
  }
}

.mobile-burger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-black);
  transition: 0.3s;
}

/* Анимация бургера в крестик */
.mobile-burger.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-burger.is-active span:nth-child(2) {
  opacity: 0;
}
.mobile-burger.is-active span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Выпадающее меню */
#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 50px;
  transform: translateY(-200%); /* Прячем сверху */
  transition: transform 0.4s ease-in-out;
  z-index: -1;
  max-height: calc(100vh - 50px);
  overflow-y: auto;
  background-color: var(--color-white);
}

.is-open #mobile-menu {
  transform: translateY(0);
}

.mobile-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu__list li .mobile-menu__link {
  display: block;
  padding: 16px 0;
  font-size: 16px;
  text-decoration: none;
  color: var(--color-black);
}
.mobile-menu__list li.mobile-menu__item--active .mobile-menu__link {
  color: var(--color-yellow);
}
.mobile-header .logo__img {
  max-width: 98px;
  @media (min-width: 1200px) {
    max-width: 110px;
  }
}

.mobile__footer {
  padding: 15px;
}
.s-about__labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  color: var(--color-white);
  width: 100%;
}
.s-about__content {
  position: absolute;
  inset: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: rgb(0 0 0 / 80%);
  @media (min-width: 1200px) {
    padding: 40px;
  }
}
.s-about__description {
  max-width: 1320px;
  margin-inline: auto;
  color: var(--color-white);
  text-align: center;
}
@media (min-width: 768px) {
  .s-about__label {
    width: 200px;
  }
  .s-about__label--center {
    text-align: center;
  }
  .s-about__label--right {
    text-align: right;
  }
}
.s-about__bg {
  width: 100%;
  height: 600px;
  object-fit: cover;
  @media (min-width: 768px) {
    height: 500px;
  }
  @media (min-width: 1200px) {
    height: 750px;
  }
  @media (min-width: 1440px) {
    height: 900px;
  }
}
.s-about__image {
  width: 226px;
}
.section {
  margin-block: 90px;
  @media (min-width: 1400px) {
    margin-block: 180px;
  }
}
.section__header {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 20px;
  @media (max-width: 767px) {
    flex-direction: column;
  }
}
.journal .section__header {
  @media (min-width: 767px) {
    align-items: flex-end;
  }
}
.section__header-link {
  font-size: 16px;
  line-height: 120%;
  color: var(--color-black);
  text-decoration: underline;
}

.realphotos {
  overflow: hidden;
}
.realphotos .swiper {
  overflow: visible;
}
.realphotos__item.swiper-slide {
  width: auto;
}

@media (min-width: 1200px) {
  .realphotos__wrapper.swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    transform: none !important;
  }

  .realphotos__item.swiper-slide {
    width: 100% !important;
    display: flex;
    align-items: flex-end;
  }

  /* Прячем полоску прокрутки на десктопе */
  .realphotos__scrollbar {
    display: none !important;
  }
}
.realphotos__wrapper {
  align-items: flex-end;
}
.realphotos .section__header {
  margin-bottom: 40px;
  @media (min-width: 768px) {
    text-align: center;
    justify-content: center;
  }
  @media (min-width: 1200px) {
    margin-bottom: 90px;
  }
  @media (min-width: 1440px) {
    margin-bottom: 140px;
  }
}
#footer {
  background-color: var(--color-black);
  padding-block: 40px;
}
.prefooter__wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 60px;
  @media (min-width: 768px) {
    flex-direction: row;
    justify-content: space-between;
  }
}
.prefooter__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.prefooter__form-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-yellow);
}
.prefooter__form-desc {
  color: var(--color-white);
}
.footer__cols {
  display: flex;
  flex-direction: column;
  gap: 40px;
  @media (min-width: 768px) {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    & .footer__logo,
    .footer__copyright {
      flex: 1;
    }
  }
}
.footer__copyright {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  line-height: 16px;
  color: var(--color-white);
  opacity: 0.6;
  @media (min-width: 768px) {
    flex-direction: row;
    gap: 20px;
  }
}
.footer__logo {
  @media (min-width: 1200px) {
    display: flex;
    justify-content: flex-end;
  }
}
.footer__logo svg {
  width: 100%;
  height: auto;
  max-width: 642px;
}

.screen-reader-response {
  display: none;
}
input.newsletter__input {
  background: transparent;
  color: var(--color-white);
  padding: 0;
  height: 34px;
  border: 0;
  border-radius: 0;
  opacity: 0.6;
  padding-bottom: 10px;
  @media (min-width: 1440px) {
    height: 50px;
  }
}
.form__input {
  position: relative;
  border-bottom: 1px solid var(--color-white);
}
input.newsletter__submit {
  color: transparent;
  font-size: 0;
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: var(--color-yellow);
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='14' viewBox='0 0 8 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.649994 12.6499L6.64999 6.6499L0.649994 0.649902' stroke='%23222222' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 8px;
  @media (min-width: 1440px) {
    width: 40px;
    height: 40px;
    background-size: 16px;
  }
}
.prefooter__form-copyright {
  font-size: 12px;
  line-height: 14px;
  color: var(--color-white);
  opacity: 0.6;
  @media (min-width: 1200px) {
    font-size: 14px;
    line-height: 120%;
  }
}
.wpcf7-form-control-wrap {
  position: relative;
  display: block;
}
.wpcf7-spinner {
  display: none;
}
.wpcf7-response-output {
  color: #e69999;
  font-size: 12px;
  margin-top: 24px;
}
.wpcf7-response-output:empty {
  display: none;
}
.wpcf7-not-valid-tip {
  color: #e69999;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  font-size: 12px;
  line-height: 100%;
}
.footer-menu {
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  @media (min-width: 1440px) {
    font-size: 16px;
    line-height: 120%;
  }
}
.footer-menu a {
  color: var(--color-white);
  opacity: 0.6;
}
.col__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  @media (min-width: 768px) {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.prefooter__col {
  @media (min-width: 768px) {
    max-width: 300px;
  }
  @media (min-width: 1200px) {
    max-width: 450px;
    grid-template-columns: repeat(2, 1fr);
  }
}
.prefooter__contacts {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--color-white);
  @media (min-width: 768px) {
    max-width: max-content;
  }
}
.prefooter__contacts a {
  color: var(--color-white);
}
.prefooter__social {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
  padding: 0;
  margin: 0;
}
.header__action {
  position: relative;
  display: inline-flex;
  align-items: start;
  text-decoration: none;
  gap: 2px;
}

.header__action-icon {
  width: 28px;
  height: 28px;
  display: block;
}

.header__action-count {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--color-black);
  color: var(--color-white);

  font-size: 7px;
  font-weight: 400;
  line-height: 1;
}

/* Опционально: если товаров 0, можно скрыть кружок */
.header__action-count:empty,
.header__action-count:contains("0") {
  /* display: none; */
}

/* Базовый контейнер меню */
.mobile-menu {
  width: 100%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-top: 1px solid var(--color-gray-light);
  padding-block: 10px 40px;
}

/* Сброс списков */
.mobile-menu__list,
.mobile-menu__sublist,
.mobile-menu__socials {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Элементы главного меню */
.mobile-menu__item {
  border-bottom: 1px solid var(--color-gray-light);
}

/* Главные ссылки и кнопки-тогглы */
.mobile-menu__toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px;
  font-size: 18px;
  color: #111;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s ease;
}

/* Состояние активного (открытого) пункта меню */
.mobile-menu__item--active > .mobile-menu__toggle {
  color: #ffbc00; /* Желтый цвет из макета */
}

/* Иконка стрелочки */
.mobile-menu__icon {
  transition: transform 0.3s ease;
}

/* Переворачиваем стрелочку, когда аккордеон открыт */
.mobile-menu__item--active .mobile-menu__icon {
  transform: rotate(180deg);
}

/* --- МАГИЯ АНИМАЦИИ ВЫПАДАЮЩЕГО СПИСКА --- */
.mobile-menu__dropdown {
  display: grid;
  grid-template-rows: 0fr; /* Скрыто по умолчанию */
  transition: grid-template-rows 0.3s ease-out;
}

.mobile-menu__dropdown-inner {
  overflow: hidden; /* Скрываем контент, пока высота 0 */
}

.mobile-menu__item--active .mobile-menu__dropdown {
  grid-template-rows: 1fr;
}

.mobile-menu__sublist {
  padding: 0 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu__sublink {
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.2s ease;
}

.mobile-menu__sublink--active,
.mobile-menu__sublink:hover {
  color: #ffbc00; /* Желтый цвет для активной подкатегории */
}

/* --- ПОДВАЛ МЕНЮ --- */
.mobile-menu__footer {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  @media (min-width: 768px) {
    flex-direction: row;
    justify-content: space-between;
  }
}

.mobile-menu__email {
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.mobile-menu__socials {
  display: flex;
  gap: 20px;
}

.mobile-menu__social-link {
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-menu__social-link:hover {
  color: var(--color-yellow);
}

/* Обертка для пункта с подменю */
.mobile-menu__header {
  display: flex;
  align-items: center;
  width: 100%;
}

/* Ссылка внутри обертки (чтобы кнопка поместилась сбоку) */
.mobile-menu__header .mobile-menu__link {
  flex-grow: 1; /* Ссылка занимает все свободное место */
  padding-right: 0; /* Убираем правый отступ, так как там стоит кнопка */
}

/* Отдельная кнопка-стрелка */
.mobile-menu__toggle-btn {
  background: none;
  border: none;
  width: 20px;
  height: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* Запрещаем кнопке сжиматься */
}

/* Подсветка желтым цветом (и ссылки, и стрелки) для открытого пункта */
.mobile-menu__item--active .mobile-menu__link,
.mobile-menu__item--active .mobile-menu__toggle-btn {
  color: var(--color-yellow);
}

/* Анимация переворота стрелки остается прежней */
.mobile-menu__toggle-btn {
  transition: transform 0.3s ease;
}

.mobile-menu__item--active .mobile-menu__toggle-btn {
  transform: rotate(180deg);
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: var(--color-yellow);
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  @media (hover: hover) {
    &:hover {
      background-color: var(--color-yellow-hover);
    }
  }
  @media (min-width: 1440px) {
    width: 40px;
    height: 40px;
    & svg {
      width: 10px;
      height: 20px;
    }
  }
}

.unical__link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  background-color: var(--color-yellow);
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  @media (min-width: 1440px) {
    width: 40px;
    height: 40px;
  }
}

.unical__link:hover {
  background-color: var(--color-yellow-hover);
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.desktop__nav {
  @media (max-width: 1199px) {
    display: none;
  }
}
.desktop-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 16px;
  line-height: 120%;
}
.mobile-header__left,
.mobile-header__right {
  flex: 1;
}
.mobile-header__right {
  display: flex;
  justify-content: flex-end;
}

.desktop-nav__list {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.desktop-nav__link {
  transition: color 0.3s;
}

.desktop-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

/* Открываем при наведении на родителя */
.desktop-nav__item--has-dropdown:hover .desktop-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Внутренний контейнер для сетки */
.desktop-nav__dropdown-inner {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 20px;
  gap: 20px;
}

.desktop-nav__sublist {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.desktop-nav__subitem {
  width: 130px;
}

.desktop-nav__sublink {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #111;
  text-align: center;
}

/* Серый квадрат с иконкой */
.desktop-nav__icon-wrap {
  width: 100%;
  aspect-ratio: 1 / 1; /* Идеальный квадрат */
  background-color: var(--color-gray-light);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  transition: background-color 0.3s;
}

.desktop-nav__icon {
  height: 70px;
  object-fit: contain;
  opacity: 0.4;
  transition: all 0.3s;
}

.desktop-nav__subtext {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.3s;
}

/* Эффекты при наведении на подкатегорию */
.desktop-nav__sublink:hover .desktop-nav__subtext,
.desktop-nav__subitem--active .desktop-nav__subtext {
  color: var(--color-yellow);
}
.desktop-nav__sublink:hover .desktop-nav__icon {
  opacity: 1;
}

/* --- Фотография родительской категории (Справа) --- */
.desktop-nav__parent-image {
  flex-shrink: 0;
  width: 160px; /* Ширина большого фото */
  display: flex;
}

.desktop-nav__parent-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Чтобы фото красиво заполняло блок */
}
.mobile-header__right .desktop-nav {
  margin-right: 20px;
}
@media (max-width: 1199px) {
  .desktop-nav {
    display: none;
  }
}
.rank-math-breadcrumb {
  font-size: 12px;
  line-height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--color-gray-dark);
  margin-bottom: 25px;
  & a {
    color: var(--color-gray-dark);
  }
}
.product__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 38px;
  margin-block: 0 !important;
  @media (min-width: 1200px) {
    min-height: 48px;
  }
}
.woocommerce-ordering,
.woocommerce-result-count {
  display: none;
}
.page__header {
  margin-bottom: 40px;
}
.category-description {
  margin-block: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--color-gray-dark);
}
h2:not(:first-child),
h3:not(:first-child),
h4:not(:first-child) {
  margin-top: 2rem;
}
/* --- Контейнер пагинации --- */
.woocommerce-pagination {
  margin-top: 48px; /* Отступ от сетки товаров */
  margin-bottom: 24px;
}

/* Сброс стилей списка */
.woocommerce-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Центрируем пагинацию */
  align-items: center;
  gap: 8px; /* Расстояние между кнопками */
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --- Базовые стили для всех кнопок (цифры и стрелки) --- */
.woocommerce-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-black);
  background-color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* --- Стили для ссылок при наведении --- */
.woocommerce-pagination a.page-numbers:hover {
  border-color: var(--color-black); /* Делаем рамку контрастной */
  background-color: var(--color-gray-light);
  color: var(--color-black);
}

/* --- Активная (текущая) страница --- */
.woocommerce-pagination .page-numbers.current {
  background-color: var(--color-yellow); /* Ваш фирменный желтый */
  border-color: var(--color-yellow);
  pointer-events: none; /* Запрещаем кликать на уже открытую страницу */
}

/* --- Стрелки "Вперед" (next) и "Назад" (prev) --- */
.woocommerce-pagination a.next,
.woocommerce-pagination a.prev {
  font-size: 18px; /* Чуть увеличиваем саму стрелочку */
  border-color: transparent; /* Убираем рамку для визуальной чистоты */
  background-color: transparent;
}

/* Наведение на стрелки */
.woocommerce-pagination a.next:hover,
.woocommerce-pagination a.prev:hover {
  border-color: transparent;
  background-color: transparent;
  color: var(--color-yellow); /* Перекрашиваем стрелку в желтый вместо фона */
  transform: translateX(2px); /* Легкий эффект движения вправо */
}

.woocommerce-pagination a.prev:hover {
  transform: translateX(-2px); /* Эффект движения влево для "Назад" */
}
.woocommerce-no-products-found {
  margin-bottom: 40px;
}
.wp-block-columns {
  gap: 40px;
}
.wp-block-separator {
  margin-block: 40px;
  border: 1px solid var(--color-gray-light);
}
.page__content {
  max-width: 1440px;
  margin-inline: auto;
  margin-bottom: 40px;
}
.page__content a:not(.product__link) {
  color: var(--color-yellow);
}
.page__header--fullwidth {
  position: relative;
  margin-bottom: 40px;
  @media (max-width: 639px) {
    aspect-ratio: 1;
  }
  @media (min-width: 768px) {
    height: 500px;
  }
  & img {
    height: 100%;
    object-fit: cover;
  }
}
.page__header-hero {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  padding: 0 20px;
}
.page__header-title--light {
  color: var(--color-white);
}
.wp-block-image {
  margin-block: 40px;
}
.wp-block-image img {
  width: 100%;
  object-fit: cover;
}
.merchant-variations-wrapper .merchant-variation-type-button > a,
.merchant-variations-wrapper .merchant-variation-type-select > a {
  font-weight: 600;
  font-size: 18px;
  line-height: 100%;
}
.reset_variations {
  display: none !important;
}
.merchant-wishlist-text {
  display: none;
}
.product-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.merchant-wishlist-button.merchant-wishlist-link {
  width: 40px;
  height: 40px;
  display: grid !important;
  place-items: center;
}
#review_form_wrapper {
  width: 100%;
  max-width: 600px;
  padding: 32px;
  background: #fff;
  border-radius: 4px; /* По желанию */
}
.section__title {
  margin: 0;
}

/* --- Стили для кнопки "В избранное" --- */

/* Базовый стиль кнопки */
.wishlist-button {
  background-color: transparent; /* Прозрачный фон */
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  vertical-align: middle;
}

/* Стили иконки внутри кнопки */
.wishlist-button svg {
  width: 24px;
  height: auto;
}
.wishlist-button svg path {
  transition: all 0.3s ease;
  stroke: var(--color-white); /* Цвет контура по умолчанию (темный) */
  fill: none; /* Без заливки по умолчанию */
  @media (max-width: 1199px) {
    stroke: var(--color-black);
  }
}
.product__link .wishlist-button svg path {
  stroke: var(--color-black);
}
/* Состояние при наведении */
.wishlist-button:hover svg path {
  stroke: #ff1010;
}

/* Активное состояние (товар в избранном) */
.wishlist-button.is-active svg path {
  stroke: #ff1010; /* Цвет контура в активном состоянии */
  fill: #ff1010; /* Заливка в активном состоянии */
}
.wishlist-button.is-active,
.wishlist-button.is-active:hover {
  border-color: #ff1010;
  background-color: transparent;
}

/* Состояние загрузки (анимация) */
.wishlist-button.is-loading {
  cursor: wait;
  opacity: 0.7;
}

@keyframes spin {
  100% {
    transform: scale(1.2);
  }
}
.wishlist-button.is-loading svg {
  animation: spin 1s linear infinite;
}

/*
--- ОБНОВЛЕННЫЕ стили для страницы "Избранное" ---
*/

/* Стили для пустого состояния остаются без изменений */
.wishlist-empty-state {
  text-align: center;
  background-color: var(--color-gray-light);
  padding: 40px 16px;
  margin-bottom: 40px;
}
.wishlist-empty-state__icon {
  color: #e0e0e0;
  margin-bottom: 20px;
}
.wishlist-empty-state__title {
  font-size: 28px;
  margin: 0 0 10px;
  color: #333;
}
.wishlist-empty-state__text {
  font-size: 16px;
  color: var(--color-gray-dark);
  margin-bottom: 24px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}
.product__link .wishlist-button {
  position: absolute;
  top: 8px;
  right: 8px;
}

/*
--- Анимация для счетчика в шапке ---
*/

@keyframes wishlist-counter-pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
    background-color: #ff4136; /* Ярко-красный для привлечения внимания */
  }
  100% {
    transform: scale(1);
  }
}

/* Применяем анимацию, когда JS добавляет класс .is-updated */
.header__action-count.is-updated {
  animation: wishlist-counter-pop 0.6s ease-in-out;
}

/* Базовые стили для бейджа, чтобы все выглядело хорошо */
.header__action-count {
  display: grid;
  place-items: center;
  transition: background-color 0.3s ease;
}
.wishlist__content {
  margin-bottom: 40px;
}
.page__header--fullwidth {
  position: relative;
}
.page__header--fullwidth::before {
  background: #000;
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.4;
}

.page__content--single {
  line-height: 140%;
}
.wp-block-gallery {
  margin: 24px 0;
}
figure.wp-block-gallery.has-nested-images {
  gap: 24px;
}
@media (min-width: 600px) {
  .wp-block-gallery.has-nested-images.columns-default
    figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2),
  .wp-block-gallery.has-nested-images.columns-default
    figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2)
    ~ figure.wp-block-image:not(#individual-image) {
    width: calc(50% - 12px);
  }
}
.category {
  padding: 80px 0;
}

.category__header {
  margin-bottom: 48px;
}

.category__title {
  margin: 0 0 16px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
}

.category__description {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.6;
}

.category__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  @media (min-width: 768px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  @media (min-width: 1200px) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.category__pagination {
  margin-top: 60px;
}

/* ==========================
   Card
========================== */

.category-card {
  display: flex;
  flex-direction: column;
}

.category-card__image {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 0.72;
}

.category-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-card__image:hover img {
  transform: scale(1.05);
}

.category-card__content {
  margin-top: 24px;
}

.category-card__title {
  margin: 0 0 16px;
}

.category-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.category-card__excerpt p:last-child {
  margin-bottom: 0;
}

/* ==========================
   Responsive
========================== */

@media (max-width: 991px) {
  .category {
    padding: 60px 0;
  }

  .category__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .category__title {
    font-size: 36px;
  }

  .category-card__title {
    font-size: 28px;
  }

  .category-card__excerpt {
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .category {
    padding: 40px 0;
  }

  .category__header {
    margin-bottom: 32px;
  }

  .category__title {
    font-size: 28px;
  }

  .category-card__image {
    border-radius: 16px;
  }

  .category-card__content {
    margin-top: 18px;
  }

  .category-card__title {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .category-card__excerpt {
    font-size: 16px;
    line-height: 1.5;
  }
}
.comment-form-cookies-consent {
  display: none !important;
}
.wc-block-checkout__billing-fields .wc-block-components-address-form,
.wc-block-checkout__shipping-fields .wc-block-components-address-form {
  gap: 24px;
}
.wc-blocks-components-select .wc-blocks-components-select__label {
  top: 5px;
  line-height: 100%;
  color: var(--color-text);
}
.wc-block-components-form .wc-block-components-text-input,
.wc-block-components-text-input {
  margin: 0;
}
.sticky-cart {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #555555; /* Темно-серый фон */
  color: #ffffff;
  z-index: 9999;
  transform: translateY(100%);
  transition:
    transform 0.3s ease-in-out,
    visibility 0.3s;
  visibility: hidden;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.sticky-cart--visible {
  transform: translateY(0);
  visibility: visible;
}

.sticky-cart__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0 auto;
  padding: 8px 16px;
  gap: 40px;
  @media (min-width: 768px) {
    padding: 15px 30px;
  }
}

.sticky-cart__title,
.sticky-cart__price {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-white);
  text-align: right; /* Прижимает текст к блоку цены */
  @media (max-width: 767px) {
    display: none;
  }
}

/* Фикс для перечеркнутой старой цены WooCommerce */
.sticky-cart__price del {
  opacity: 0.6;
  margin-right: 8px;
  font-weight: 400;
  font-size: 0.9em;
}

.sticky-cart__price ins {
  text-decoration: none;
}

.sticky-cart__button {
  @media (min-width: 768px) {
    max-width: max-content;
  }
}
.products .price {
  align-items: flex-end;
  & del {
    font-size: 16px;
  }
}
.price {
  display: flex;
  gap: 8px;
}
.price del {
  text-decoration: line-through;
  font-weight: 400;
  text-align: right;
  order: 2;
}
.wp-block-contact-form-7-contact-form-selector {
  background-color: #656565;
  color: #fff;
  padding: 40px 20px;
  & form {
    max-width: 680px;
    margin-inline: auto;
    & input:not([type="submit"]),
    textarea {
      border: 0;
      background: #747474;
      color: #fff;
      font-size: 14px;
      font-weight: 400;
      line-height: 100%;
      border-radius: 0;
    }
    & [type="submit"] {
      font-weight: 600;
      font-size: 20px;
      letter-spacing: 0;
      text-align: center;
      line-height: 100%;
    }
  }
  & h2 {
    text-align: center;
    font-weight: 600;
    margin: 0 0 24px;
  }
}
.custom-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.wpcf7-acceptance label {
  display: flex;
  gap: 8px;
  font-size: 14px;
  & input {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
  }
}
figure.wp-block-gallery.has-nested-images.columns-4 {
  gap: 8px;
}

.checkout-page__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

/* На десктопе делаем 2 колонки (форма шире, корзина чуть уже) */
@media (min-width: 992px) {
  .checkout-page__layout {
    grid-template-columns: 6fr 4fr;
  }
}

.checkout-page__review {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
}
table.variations.wpcvs-initialized tr .label {
  width: 100%;
  flex: auto;
}

/* 1. Сбрасываем стандартный список WooCommerce */
ul.payment_methods {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px; /* Расстояние между карточками оплаты */
}

/* 2. ПОЛНОСТЬЮ УДАЛЯЕМ ОПИСАНИЕ У ВСЕХ МЕТОДОВ */
.wc_payment_method .payment_box {
  display: none !important;
}

/* 3. Прячем системный radio-input, но оставляем его доступным для клика */
.wc_payment_method > input[type="radio"] {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

/* 4. Оформляем label как кликабельную карточку */
.wc_payment_method > label {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  margin: 0;
  border: 2px solid #eef0f2;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  color: #111;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

/* 5. Иконки банков (Яндекс, Т-Банк) аккуратно уводим в правый край */
.wc_payment_method > label img {
  margin: 0 0 0 auto !important; /* Перебиваем инлайновые отступы плагинов */
  max-height: 22px;
  object-fit: contain;
}

/* 6. Кастомный чекбокс (кружок) с левой стороны */
.wc_payment_method > label::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin-right: 16px;
  border: 2px solid #d1d5db;
  border-radius: 50%; /* Если нужен квадратный чекбокс — измени на 6px */
  background: #fff;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

/* Ховер-эффект при наведении на неактивную карточку */
.wc_payment_method > label:hover {
  border-color: #d1d5db;
  background: #fafafb;
}

/* 7. АКТИВНОЕ СОСТОЯНИЕ (Когда метод выбран) */
.wc_payment_method > input[type="radio"]:checked + label {
  border-color: #111;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06); /* Мягкая тень */
  transform: translateY(-2px); /* Карточка чуть приподнимается */
}

/* Микроанимация: кружок закрашивается черным с белой точкой внутри */
.wc_payment_method > input[type="radio"]:checked + label::before {
  border-color: #111;
  background-color: #111;
  box-shadow: inset 0 0 0 5px #fff; /* Белая точка через внутреннюю тень */
  transform: scale(1.1); /* Легкий "поп"-эффект увеличения кружка */
}

/* Микроанимация: физика вдавливания при клике мышкой */
.wc_payment_method > label:active {
  transform: scale(0.98);
}
.woocommerce-terms-and-conditions-wrapper {
  font-size: 14px;
  line-height: 18px;
  color: var(--color-gray-dark);
  margin: 24px 0;
}

/* ==========================================================================
   Оформление способов доставки (СДЭК и др.)
   ========================================================================== */

/* 1. Сбрасываем стандартный список */
ul#shipping_method {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px; /* Расстояние между карточками */
}

/* Убираем отступы у элементов списка */
ul#shipping_method li {
  margin: 0;
  padding: 0;
}

/* 2. Прячем системный radio-input */
ul#shipping_method input[type="radio"] {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

/* 3. Оформляем label как кликабельную карточку (идентично оплате) */
ul#shipping_method label {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  margin: 0;
  border: 2px solid #eef0f2;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  color: #111;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  width: 100%;
  box-sizing: border-box;
}

/* 4. Кастомный чекбокс (кружок) с левой стороны */
ul#shipping_method label::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin-right: 16px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

/* Ховер-эффект для неактивной карточки */
ul#shipping_method label:hover {
  border-color: #d1d5db;
  background: #fafafb;
}

/* 5. АКТИВНОЕ СОСТОЯНИЕ (Когда метод выбран) */
ul#shipping_method input[type="radio"]:checked + label {
  border-color: #111;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* Микроанимация кружка: заливка черным с белой точкой */
ul#shipping_method input[type="radio"]:checked + label::before {
  border-color: #111;
  background-color: #111;
  box-shadow: inset 0 0 0 5px #fff;
  transform: scale(1.1);
}

/* 6. Физика вдавливания при клике мышкой */
ul#shipping_method label:active {
  transform: scale(0.98);
}

/* 7. БОНУС: Если WooCommerce выведет цену доставки (span.amount), 
      прижимаем её к правому краю карточки */
ul#shipping_method label .woocommerce-Price-amount {
  margin-left: auto;
  font-weight: 600;
  color: #111;
}
tr.woocommerce-shipping-totals.shipping {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: 24px;
  margin-block: 24px;
  border-top: 1px solid var(--color-gray-dark);
  border-bottom: 1px solid var(--color-gray-dark);
}
.woocommerce-checkout-review-order-table {
  display: flex;
  flex-direction: column;
}
.woocommerce-checkout-review-order-table thead tr {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  line-height: 100%;
  font-weight: 600;
}
.woocommerce-checkout-review-order-table tbody {
  margin-block: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.woocommerce-checkout-review-order-table tfoot {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 100%;
  font-weight: 600;
}
.order-total,
.cart-subtotal {
  display: flex;
  width: 100%;
  justify-content: space-between;
  font-weight: 600;
}
/* ==========================================================================
   Миниатюры товаров в таблице заказа
   ========================================================================== */

/* Выстраиваем картинку и название в одну линию */
.woocommerce-checkout .checkout-item-with-img {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Стилизуем саму миниатюру */
.woocommerce-checkout .checkout-product-img {
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block; /* Убираем лишний отступ снизу от строчных элементов */
}

/* Выравниваем ячейку таблицы по центру по вертикали */
.woocommerce-checkout td.product-name {
  vertical-align: middle;
}

/* Стилизуем количество товара (крестик и цифру), чтобы не сливалось с названием */
.woocommerce-checkout .product-quantity {
  font-weight: 600;
  color: #888;
  margin-left: 5px;
  white-space: nowrap;
}
span.woocommerce-Price-amount.amount {
  white-space: nowrap;
}

/* ==========================================================================
   Оформление полей ввода (Контакты и Адрес)
   ========================================================================== */

/* 1. Создаем современную сетку для полей */
.woocommerce-billing-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px; /* Отступ между полями */
  margin-bottom: 30px;
}

/* На экранах от 768px ставим телефон и email в один ряд */
@media (min-width: 768px) {
  .woocommerce-billing-fields__field-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Город и Имя занимают всю ширину (две колонки) */
  #billing_city_field {
    order: -2;
  }
  #billing_first_name_field {
    grid-column: span 2;
  }

  /* Телефон и Email автоматически встанут рядом по 1 колонке */
  #billing_phone_field {
    grid-column: span 2;
  }
  #billing_email_field {
    grid-column: span 2;
  }
}

/* 2. Сбрасываем стандартные отступы WooCommerce */
.woocommerce-billing-fields__field-wrapper .form-row {
  margin: 0;
  padding: 0;
}

/* 3. Оформление заголовков полей (Лейблов) */
.woocommerce-billing-fields__field-wrapper label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #777;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

/* Красная звездочка обязательного поля */
.woocommerce-billing-fields__field-wrapper label abbr.required {
  color: #e53e3e;
  text-decoration: none;
  border: none;
  font-weight: 700;
}

/* 4. Дизайн самих полей ввода */
.woocommerce-billing-fields__field-wrapper input.input-text {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  color: #111;
  background: #fcfcfc;
  border: 2px solid #eef0f2;
  border-radius: 0;
  box-sizing: border-box;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 5. Ховер-эффект (при наведении) */
.woocommerce-billing-fields__field-wrapper input.input-text:hover {
  border-color: #d1d5db;
  background: #fff;
}

/* ==========================================================================
   МИКРОАНИМАЦИИ (Активное состояние поля)
   ========================================================================== */

/* 6. Анимация поля ввода: эффект всплытия, тень и черная рамка */
.woocommerce-billing-fields__field-wrapper input.input-text:focus {
  background: #fff;
  border-color: #111;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px); /* Поле слегка приподнимается */
}

/* 7. Магия CSS: подсвечиваем лейбл над полем, когда само поле активно */
.woocommerce-billing-fields__field-wrapper .form-row:focus-within label {
  color: #111;
}

.cdek-office-info {
  background: #ccc;
  border-radius: 6px;
  margin: 8px 0 0;
  padding: 8px 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  line-height: 24px;
  &::before {
    content: none;
  }
}

/* Прячем технические поля для доставки, оставляя только Город */
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #billing_state_field,
.woocommerce-checkout #billing_postcode_field {
  display: none !important;
}
