/* =====================================================
   HEADER
===================================================== */

/* Верхняя полоса */
.header .upper__nav {
  background: var(--header-top-bg);
  padding: 8px 0;
}

.header .upper__nav .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.upper__nav_left_list,
.upper__nav_middle_list {
  display: flex;
  gap: 26px;
  align-items: center;
}

.upper__nav_left_list li a,
.upper__nav_middle_list li a {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 12px;
  color: #fff;
}

.upper_nav_right {
  display: flex;
  align-items: center;
  gap: 7px;
}

a.upper__nav_right_chut {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  border-radius: 5px;
  width: 116px;
  height: 22px;
  background: var(--light-yellow);
  font-size: 8px;
  font-family: var(--font-family);
  font-weight: 400;
  color: #121212;
  padding-left: 6px;
}

a.upper__nav_right_whatsup {
  display: flex;
  color: #fff;
}

/* Основная навигация */
.main__nav {
  background: var(--header-main-bg);
  padding: 16px 0 0;
}

.global__nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1200;
}

.middle__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
}

.middle__nav-div {
  display: flex;
  align-items: center;
}

/* Логотип */
.site-logo {
  display: flex;
  align-items: center;
  margin-right: 32px;
}

.site-logo img,
.custom-logo {
  max-height: 56px;
  width: auto;
  margin-right: 32px;
}

.site-logo__text {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  white-space: nowrap;
}

/* Кнопка "Каталог" */
.btn__middle_nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  color: var(--brown);
  border-radius: 5px;
  width: 120px;
  height: 40px;
  background: var(--accent);
  cursor: pointer;
  margin-right: 10px;
  white-space: nowrap;
}

.btn__middle_nav:hover { opacity: 1; }

.catalog-icon { fill: var(--brown); }

/* Поисковая форма */
.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-form label { display: none; }

.search-field {
  border-radius: 5px;
  width: 480px;
  height: 40px;
  background: #fff;
  border: none;
  padding: 0 54px 0 90px;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--temnyy-tekst);
}

.search-field::placeholder { color: var(--seryy-tekst); }

.search-scope-btn {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 13px;
  color: var(--brown);
  border-radius: 5px;
  width: 74px;
  height: 31px;
  background: var(--bright-yellow);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  position: absolute;
  top: 4.5px;
  left: 5px;
  cursor: pointer;
  white-space: nowrap;
  border: none;
}

.search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  width: 46px;
  height: 40px;
  background: var(--accent);
  position: absolute;
  right: 0;
  top: 0;
  cursor: pointer;
  border: none;
  color: var(--brown);
}

/* Иконки пользователя */
.middle__nav_links {
  display: flex;
  gap: 18px;
  margin-left: 24px;
  align-items: center;
}

.middle_nav_link a.a-page {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 13px;
  color: #fff;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  white-space: nowrap;
  position: relative;
}

/* Корзина */
.cart-icon-wrap {
  position: relative;
  display: inline-flex;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--dark-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Счётчик: скрыт когда 0 товаров */
.cart-count--hidden {
  display: none;
}

/* Активная ссылка в шапке (страница корзины) */
.middle_nav_link a.a-page--active {
  color: var(--bright-yellow, #FFC74E);
}

.middle_nav_link a.a-page--active svg {
  fill: var(--bright-yellow, #FFC74E);
}

/* Нижняя полоса навигации */
.bottom__nav {
  display: flex;
  align-items: center;
  padding: 0 0 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.bottom__nav_link--sale {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  color: var(--brown);
  border-radius: 5px;
  width: 102px;
  height: 40px;
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 11px;
  padding-left: 11px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform .15s ease;
}

.bottom__nav_link--sale:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 174, 0, .35);
}

.bottom__nav_links {
  display: flex;
  gap: 10px 15px;
  margin-left: 50px;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
}

.bottom__nav_links li a {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
}

.bottom__nav_links li a:hover {
  color: var(--accent);
}

/* Анимация блика */
@keyframes shine {
  0%   { left: -60%; opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

@keyframes bg-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

.anim {
  overflow: hidden;
  position: relative;
  background: linear-gradient(120deg, #ffc74e, #ffb83b, #ffd66a);
  background-size: 200% 200%;
  animation: bg-shift 6s ease-in-out infinite;
}

.anim::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 60%;
  height: 200%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: shine 1.2s ease-in-out infinite;
}

/* Промо-баннер */
.header__promo { line-height: 0; }
.header__promo img { width: 100%; }
.header__promo-mobile { display: none; }


/* =====================================================
   СЕКЦИЯ: ПОПУЛЯРНЫЕ КАТЕГОРИИ
===================================================== */
.popular {
  padding: 80px 0;
}

h3.popular__title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 24px;
  color: var(--temnyy-tekst);
  margin-bottom: 40px;
}

.popular__block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: center;
}

.popular__item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
}

.popular__item img { display: block; }

h3.popular__item_title {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  position: absolute;
  top: 28px;
  width: 100%;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.popular__btn {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 15px;
  color: var(--temnyy-tekst);
  border-radius: 9px;
  min-width: 160px;
  height: 40px;
  background: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.popular__item.popular__item_second {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 570px;
  justify-content: space-between;
  align-items: flex-start;
}

a.popular__item_img {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 12px;
  color: #2d2d2d;
  text-align: center;
}

a.popular__item_img img {
  width: 174px;
  height: 156px;
  object-fit: cover;
  border-radius: 12px;
}

.popular__bottom {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

h3.popular__item_bottom_title { text-align: left; }

.popular__bottom_btn {
  left: 30px;
  transform: none;
  bottom: 160px;
}


/* =====================================================
   ОБЩИЕ СТИЛИ СЕКЦИЙ ТОВАРОВ
===================================================== */
.vitamins, .pink, .office, .gift, .awards, .child, .postcards, .kit {
  padding: 80px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-header h2,
.section-header h3 {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 24px;
  color: #2d2d2d;
}

.section-header a {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  color: var(--temnyy-tekst);
}

.section__block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.section__img-col {
  position: relative;
  flex-shrink: 0;
  border-radius: 15px;
  overflow: hidden;
  max-width: 260px;
}

.section__img-col img { display: block; width: 100%; }

.section__cat-title {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
  color: #fff;
  position: absolute;
  top: 24px;
  width: 100%;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.vitamins__bottom_link {
  display: none;
  margin-top: 20px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 15px;
  color: var(--brown);
  text-align: center;
}


/* =====================================================
   СЕТКА ТОВАРОВ
   Разметка повторяет легаси `<div class="list-products"><div class="product-card">…`
===================================================== */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none !important;
  display: none !important;
}

.products-grid {
  display: grid;
  gap: 12px;
  flex: 1;
}

.products-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }
.products-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.products-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }

/* WooCommerce рендерит <ul class="products …"> — добавляем list-products */
ul.products.list-products {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

ul.products.list-products > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1024px) {
  ul.products.list-products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  ul.products.list-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 480px) {
  ul.products.list-products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Карточка товара — повторяет .product-card из css/styles.css */
.product-card {
  border-radius: 10px;
  margin: 0;
  text-align: left;
  background-color: #fff;
  width: 100%;
  position: relative;
  display: block;
}

.product-card > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-card .icons-nav {
  position: absolute;
  top: 10px;
  left: 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  z-index: 3;
}

.product-card .icons-nav a {
  cursor: pointer;
  text-decoration: none;
}

.product-card .icons-nav a i {
  font-size: 24px;
  color: var(--bright-yellow);
  font-style: normal;
}

.product-card .icons-nav a.active i {
  font-variation-settings: 'FILL' 1;
}

.product-image {
  width: 100%;
  height: 180px;
  margin-bottom: 10px;
  border-radius: 15px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fafafa;
}

.product-image .percent_sale {
  background: var(--bright-yellow);
  padding: 1px 4px;
  display: table;
  font-weight: 700;
  font-size: 10px;
  color: #fff;
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  border-radius: 2px;
}

.product-image .dies {
  width: calc(100% - 60px);
  height: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  position: absolute;
  top: 35px;
  left: 15px;
  z-index: 2;
}

.product-image .dies span {
  background: var(--bright-yellow);
  padding: 1px 4px;
  display: table;
  font-weight: 700;
  font-size: 10px;
  color: #fff;
  border-radius: 2px;
}

.product-image .dies span.die-1 { background: var(--dark-blue); }
.product-image .dies span.die-2 { background: var(--orange); }
.product-image .dies span.die-5 { background: var(--pink); }
.product-image .dies span.die-6 { background: var(--violet); }

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-card .price {
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 5px;
  color: var(--temnyy-tekst);
  display: flex;
  align-items: center;
  gap: 9px;
}

.product-card .price .woocommerce-Price-amount,
.product-card .price ins .woocommerce-Price-amount {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 16px;
  color: var(--temnyy-tekst);
}

.product-card .price del { text-decoration: line-through; color: #afafaf; }
.product-card .price del .woocommerce-Price-amount {
  font-weight: 700;
  font-size: 10px;
  color: #afafaf;
}

.product-card .price ins { text-decoration: none; background: transparent; }

.product-card .product-title {
  line-height: 1.4;
  font-size: 14px;
  color: #333;
  height: 60px;
  margin-bottom: 10px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-card .rating {
  color: #ffd700;
  margin-bottom: 5px;
  font-size: 14px;
}

.product-card .rating.none { display: none; }

.product-card .rating-number {
  font-size: 14px;
  color: var(--grey);
  margin-right: 20px;
}

.product-card .reviews {
  color: #999;
  font-size: 12px;
}

.product-card .bottom_cart {
  margin-top: 10px;
  position: relative;
}

.product-card .add-to-cart {
  background-color: var(--bright-yellow);
  border: 0;
  color: var(--brown);
  padding: 10px 0;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-family);
}

.product-card .add-to-cart:hover { background-color: #e0b450; }
.product-card .add-to-cart.none  { display: none; }

.product-card .quantity {
  width: 100%;
  height: 37px;
  background-color: var(--transparent-grey);
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.product-card .quantity.none { display: none; }
.product-card .add_to_cart_button.none { display: none; }
.product-card a.added_to_cart { display: none !important; }

.product-card .quantity .value {
  color: var(--dark);
  font-size: 16px;
  width: 40px;
  min-width: 40px;
  text-align: center;
  background: transparent;
  outline: none;
  border: 0;
}

.product-card .quantity button {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--dark);
  font-size: 16px;
  font-weight: 600;
  width: 37px;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .quantity button:hover { opacity: 0.8; }


/* =====================================================
   ПРОМО БАННЕРЫ
===================================================== */
.promo_second { line-height: 0; }
.promo_second img { width: 100%; }
.promo_second-mobile { display: none; }


/* =====================================================
   ПРАЗДНИЧНЫЕ КАТЕГОРИИ
===================================================== */
.holiday {
  padding: 60px 0;
}

.main__holidays__block {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.main__holidays_item {
  position: relative;
  flex: 1;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
}

.main__holidays_item img {
  width: 100%;
  display: block;
}

.main__holidays_title {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  color: #fff;
  position: absolute;
  bottom: 50px;
  width: 100%;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.main__holidays_btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  color: var(--temnyy-tekst);
  background: #fff;
  border-radius: 8px;
  padding: 6px 20px;
  white-space: nowrap;
}


/* =====================================================
   ОБЛАКО КАТЕГОРИЙ
===================================================== */
.category {
  padding: 40px 0;
  background: #f8f6f2;
}

.category__block {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category__item {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 13px;
  color: var(--brown);
  border-radius: 20px;
  padding: 6px 16px;
  border: 1.5px solid var(--bright-yellow);
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.category__item:hover {
  background: var(--bright-yellow);
  color: var(--brown);
  opacity: 1;
}


/* =====================================================
   О КОМПАНИИ
===================================================== */
.original {
  padding: 80px 0;
}

.original__block {
  display: flex;
  gap: 48px;
  align-items: center;
}

.original__item { flex: 1; min-width: 0; }
.original__item:first-child { flex: 0 0 auto; max-width: 320px; }

.original__item img { max-width: 100%; height: auto; display: block; border-radius: 16px; }
.original__item img.original__mobile,
.original__item img.original__blanket { display: none; }

.original__title {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.3;
  color: var(--temnyy-tekst);
  margin-bottom: 20px;
}

.original__title span { color: #daa021 }

.original__subtitle {
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey);
  margin-bottom: 16px;
}

.original__list { margin: 16px 0; }

.original__list_item {
  font-family: var(--font-family);
  font-size: 14px;
  color: #daa021;
  padding: 6px 0 6px 20px;
  position: relative;
}

.original__list_item::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: #daa021;
  font-weight: 700;
}


/* =====================================================
   FOOTER
===================================================== */
.footer {
  background: url('../images/footer.png') no-repeat var(--header-main-bg);
  padding: 100px 0;
}

.footer__block {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer__item { flex: 1; min-width: 160px; }

.footer__title {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.footer__list { display: flex; flex-direction: column; }

.footer__list li,
.footer__list_item {
  margin-bottom: 15px;
}

.footer .footer__list li a,
.footer li.footer__list_item a {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  line-height: 1.4;
}

.footer .footer__list li a:hover,
.footer li.footer__list_item a:hover {
  color: var(--accent);
  opacity: 1;
}

a.footer__support {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-skip-ink: none;
  display: inline-block;
  margin-bottom: 16px;
}

a.footer__support:hover {
  color: var(--accent-hover);
}

.footer__text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.57);
  line-height: 1.7;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 48px;
  padding-top: 20px;
  text-align: center;
}

.footer__copy {
  font-family: var(--font-family);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}


/* =====================================================
   АДАПТИВ
===================================================== */
@media (max-width: 1200px) {
  .search-field { width: 360px; }
}

@media (max-width: 1024px) {
  .middle__nav_links { gap: 12px; margin-left: 12px; }
  .search-field { width: 280px; }
  .products-grid.columns-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .section__block { flex-direction: column; }
  .section__img-col { max-width: 100%; }
  .popular__block { flex-direction: column; align-items: center; }
  .popular__item.popular__item_second { max-width: 100%; }
  .original__block { flex-direction: column; }
  .products-grid.columns-4 { grid-template-columns: repeat(2, 1fr); }
  .main__holidays__block { flex-wrap: wrap; }
  .main__holidays_item { min-width: calc(50% - 8px); }
}

/* Планшет: вместо desktop-фото показываем blanket */
@media (max-width: 800px) {
  .original__item img.original__desktop { display: none; }
  .original__item img.original__blanket { display: block; }
  .original__block { flex-direction: row-reverse; }
}

/* Мобильный: вместо blanket показываем mobile-фото */
@media (max-width: 700px) {
  .original__item img.original__blanket { display: none; }
  .original__item img.original__mobile { display: block; }
  .original__block { flex-direction: column-reverse; gap: 16px; align-items: stretch; }
  .original__item:first-child { flex: 0 0 auto; max-width: 100%; }
  .original__item img { width: 100%; }
}

@media (max-width: 768px) {
  /* Верхняя полоса и чат поддержки скрыты */
  .upper__nav { display: none; }

  /* Средняя строка: логотип + иконки в одну строку, каталог+поиск ниже */
  .middle__nav {
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  /* Логотип не должен схлопываться, когда иконки занимают много места */
  .site-logo,
  .custom-logo-link {
    flex-shrink: 0;
    margin-right: 0;
  }
  .site-logo img,
  .custom-logo {
    flex-shrink: 0;
    margin-right: 0;
    max-width: 140px;
  }

  /* Каталог + поиск уходят на вторую строку */
  .middle__nav-div {
    order: 10;
    width: 100%;
    padding: 10px 0 14px;
  }

  /* Иконки — без текста, только значки */
  .middle__nav_links {
    display: flex;
    margin-left: auto;
    gap: 20px;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .middle_nav_link a.a-page {
    font-size: 0;
    gap: 0;
    padding: 4px 0;
  }

  /* Поле поиска растягивается */
  .search-form { flex: 1; }
  .search-field { width: 100%; padding-left: 14px !important; padding-right: 52px; }
  .search-scope-btn { display: none; }
  .bottom__nav { display: none; }

  .popular { padding: 40px 0; }
  .vitamins, .pink, .office, .gift { padding: 40px 0; }
  .holiday { padding: 30px 0; }
  .original { padding: 40px 0; }

  .header__promo-desktop { display: none; }
  .header__promo-mobile { display: block; }
  .promo_second-desktop { display: none; }
  .promo_second-mobile { display: block; }

  .footer__block { flex-direction: column; gap: 24px; }
}

@media (max-width: 480px) {
  .wrapper { padding: 0 12px; }
  .products-grid.columns-4,
  .products-grid.columns-3 { grid-template-columns: repeat(2, 1fr); }
  .popular__bottom { flex-direction: column; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .main__holidays__block { flex-direction: column; }
  .category__item { font-size: 12px; padding: 5px 12px; }
}


/* =====================================================
   WooCommerce: Дополнительные стили
===================================================== */
.woocommerce-content {
  padding: 40px 0;
}

.woocommerce ul.products:not(.list-products) {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start; /* не растягивать карточки по высоте строки */
}

@media (max-width: 1024px) {
  .woocommerce ul.products:not(.list-products) { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .woocommerce ul.products:not(.list-products) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .woocommerce ul.products:not(.list-products) { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.woocommerce ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
  border-radius: 0;
  overflow: visible;
}

/* Страница одиночного товара */
.woocommerce div.product .product_title {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 26px;
  color: var(--temnyy-tekst);
  margin-bottom: 12px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 24px;
  color: var(--temnyy-tekst);
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
  font-size: 18px;
  color: var(--seryy-tekst);
}

/* Уведомления */
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--accent);
  background: var(--light-yellow);
  font-family: var(--font-family);
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--brown);
}

.woocommerce-error {
  border-top-color: var(--red);
}

/* Хлебные крошки */
.woocommerce-breadcrumb {
  font-family: var(--font-family);
  font-size: 13px;
  color: var(--seryy-tekst);
  margin-bottom: 10px;
  display: block;
}

.woocommerce-breadcrumb a {
  color: var(--seryy-tekst);
  text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
  text-decoration: underline;
}

/* Корзина */
.woocommerce table.shop_table {
  font-family: var(--font-family);
  border-radius: 12px;
  overflow: hidden;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: var(--brown);
  color: #fff;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 15px;
  border-radius: 9px;
  padding: 14px 32px;
}

/* Форма оформления заказа */
.woocommerce form .form-row label {
  font-family: var(--font-family);
  font-size: 13px;
  color: var(--temnyy-tekst);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select {
  border-radius: 8px;
  border: 1.5px solid rgba(0,0,0,.15);
  font-family: var(--font-family);
  font-size: 14px;
  padding: 10px 12px;
  height: auto;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--bright-yellow);
  box-shadow: 0 0 0 3px rgba(240, 197, 104, 0.2);
}

#place_order {
  background: var(--brown) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 9px !important;
  padding: 14px 32px !important;
  width: 100% !important;
}

/* =====================================================
   TOAST: "Добавлено в корзину"
===================================================== */
.fgramota-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--header-main-bg);
  color: #fff;
  font-family: var(--font-family);
  font-size: 14px;
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  max-width: 300px;
}

.fgramota-notice--visible {
  opacity: 1;
  transform: translateY(0);
}

.fgramota-notice a {
  color: var(--accent);
  font-weight: 600;
  margin-left: 6px;
}

/* =====================================================
   STICKY HEADER
===================================================== */
.global__nav--sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}

/* =====================================================
   ВИДЖЕТ ПОИСКА СТАНДАРТНЫЙ
===================================================== */
.widget_search .search-form {
  flex-direction: column;
  gap: 8px;
}

.widget_search .search-field {
  width: 100%;
  position: static;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px solid rgba(0,0,0,.15);
}

.widget_search .search-submit {
  position: static;
  width: 100%;
  border-radius: 8px;
  background: var(--accent);
}

/* =====================================================
   СТРАНИЦА КАТЕГОРИИ 1-ГО УРОВНЯ: секционный макет
===================================================== */

/* Hero */
.cat-sections-page__hero {
  padding: 32px 0 16px;
  background: #f8f8f8;
  border-bottom: 1px solid #eee;
}

.cat-sections-page__heading {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
}

.cat-sections-page__desc {
  color: #555;
  margin: 0;
  font-size: 15px;
  max-width: 640px;
}

/* =====================================================
   СЛАЙДЕР ДОЧЕРНИХ КАТЕГОРИЙ
===================================================== */
.subcats-slider {
  padding: 0 0 8px;
}

.subcats-slider__heading {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px;
}

/* Обертка слайдера */
.subcats-slider__viewport {
  position: relative;
  overflow: hidden;
}

/* Owl сам строит .owl-stage и .owl-item */
.subcats-slider__track {
  display: block;
  width: 100%;
}

.subcats-slider .owl-stage-outer {
  overflow: hidden;
  padding: 0;
}

.subcat-card {
  position: relative;
  display: block;

  height: 180px;
  border-radius: 14px;
  padding: 16px 18px;

  text-decoration: none;
  color: #fff;

  background-color: var(--card-bg, #f2f2f2);
  background-image: var(--card-img);
  background-repeat: no-repeat;
  background-position: right 10px bottom 0;
  background-size: 118px auto;

  overflow: hidden;
  box-sizing: border-box;
}

/* Название в левом верхнем углу */
.subcat-card__title {
  position: relative;
  z-index: 2;

  display: block;
  max-width: 88%;

  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

/* Hover без агрессивных эффектов */
.subcat-card:hover {
  text-decoration: none;
  color: #fff;
}

.subcats-slider .owl-nav {
  pointer-events: none;
}

.subcats-slider .owl-nav button.owl-prev,
.subcats-slider .owl-nav button.owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;

  width: 42px;
  height: 42px;
  border-radius: 50%;

  background: #fff !important;
  border: 1px solid #e5e5e5 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);

  display: flex !important;
  align-items: center;
  justify-content: center;

  font-size: 0 !important;
  line-height: 1 !important;
  color: #333 !important;

  z-index: 10;
  cursor: pointer;
}

.subcats-slider .owl-nav button.owl-prev {
  left: 4px;
}

.subcats-slider .owl-nav button.owl-next {
  right: 4px;
}

.subcats-slider .owl-nav button.owl-prev::before,
.subcats-slider .owl-nav button.owl-next::before {
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
  color: #333;
}

.subcats-slider .owl-nav button.owl-prev::before {
  content: '←';
}

.subcats-slider .owl-nav button.owl-next::before {
  content: '→';
}

.subcats-slider .owl-nav button.disabled {
  opacity: 0.45;
  cursor: default;
}

/* Убираем текстовые span от navText, если Owl их вставляет */
.subcats-slider .owl-nav button span {
  display: none;
}

.subcats-slider .owl-dots {
  margin-top: 14px;
  text-align: center;
}

.subcats-slider .owl-dot span {
  width: 8px;
  height: 8px;
  margin: 4px;
  background: #d7d7d7;
  display: block;
  border-radius: 50%;
}

.subcats-slider .owl-dot.active span {
  background: #111;
}

@media (max-width: 767px) {
  .subcats-slider {
    padding: 0 0 8px;
  }

  .subcats-slider__heading {
    font-size: 22px;
    margin-bottom: 14px;
  }

  .subcat-card {
    height: 160px;
    border-radius: 12px;
    padding: 14px 16px;
    background-size: 90px auto;
    background-position: right 8px bottom 0;
  }

  .subcat-card__title {
    max-width: 92%;
    font-size: 14px;
    line-height: 1.25;
  }

  .subcats-slider .owl-nav {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .subcat-card {
    height: 170px;
    background-size: 105px auto;
  }
}

/* =====================================================
   LEFTBAR: навигация по дочерним категориям
===================================================== */
.headings__catalog {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.headings__catalog_title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 140%;
  color: var(--dark, #121212);
  margin-bottom: 2px;
}

.headings__catalog a {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 140%;
  color: var(--dark, #121212);
  text-decoration: none;
}

.headings__catalog a:hover {
  color: var(--bright-yellow, #f5c518);
}

/* =====================================================
   РЕКОМЕНДУЕМ
===================================================== */
.cat-recommendations {
  padding: 0;
}

.cat-recommendations__products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1024px) {
  .cat-recommendations__products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .cat-recommendations__products {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================
   СЕКЦИИ: баннер + товары по дочерней категории
===================================================== */

/* Внутри .cat-sections-main нет .wrapper — используем отступы headings */
.cat-sections-main .cat-section {
  padding: 24px 0;
  border-top: 1px solid #f0f0f0;
}

.cat-sections-main .cat-section__img-col {
  flex: 0 0 200px;
}

.cat-sections-main .cat-section__products {
  grid-template-columns: repeat(4, 1fr);
}

.cat-section {
  padding: 48px 0;
  border-top: 1px solid #f0f0f0;
}

.cat-section__inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.cat-section--reverse .cat-section__inner {
  flex-direction: row-reverse;
}

/* Колонка с баннером */
.cat-section__img-col {
  flex: 0 0 260px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.cat-section__img {
  display: block;
  width: 100%;
  border-radius: 16px;
}

.cat-section__img-title {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
  text-transform: uppercase;
  margin: 0;
  padding: 0 12px;
}

.cat-section__img-footer {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

.cat-section__img-btn {
  display: inline-block;
  padding: 9px 24px;
  background: #fff;
  color: #1f1f1f;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.cat-section__img-btn:hover {
  background: #1f1f1f;
  color: #fff;
}

/* Колонка с товарами */
.cat-section__products-col {
  flex: 1 1 0;
  min-width: 0;
}

.cat-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cat-section__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.cat-section__link {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--temnyy-tekst, #333);
  text-decoration: none;
}
.cat-section__link:hover { text-decoration: underline; }

.cat-section__products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cat-section__mobile-btn {
  display: none;
  margin-top: 16px;
  width: 100%;
  text-align: center;
  padding: 10px 24px;
  background: #f0f0f0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  box-sizing: border-box;
}

/* Адаптив */
@media (max-width: 1024px) {
  .cat-section__products {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .cat-section__inner,
  .cat-section--reverse .cat-section__inner {
    flex-direction: column;
  }
  .cat-section__img-col {
    flex: none;
    width: 100%;
  }
  .cat-section__products {
    grid-template-columns: repeat(2, 1fr);
  }
  .cat-section__link { display: none; }
  .cat-section__mobile-btn { display: block; }
  .subcat-card {
    flex: 0 0 150px;
    height: 170px;
  }
  .subcats-slider__track--products > li.product {
    flex: 0 0 180px;
  }
}

@media (max-width: 480px) {
  .cat-section__products {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}


/* Header mini-cart (hover) */
.middle_nav_link { position: relative; }
.open-basket {
  border: 1px solid var(--light-grey);
  border-radius: 6px;
  padding: 12px;
  width: 286px;
  box-shadow: 0 0 10px 0 rgba(139,138,138,.15);
  background: var(--white);
  position: absolute;
  top: 100%;
  right: 0;
  display: none;
  z-index: 30;
}
.middle_nav_link:hover .open-basket { display: block; }
.open-basket__top { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding-bottom: 10px; }
.open-basket__item { display: flex; gap: 12px; }
.open-basket__item picture { width: 52px; min-width: 52px; height: 52px; border-radius: 6px; overflow: hidden; }
.open-basket__item img { width: 100%; height: 100%; object-fit: cover; }
.item__content { display: flex; flex-direction: column; gap: 6px; }
.item__top { font-size: 10px; line-height: 1.4; font-weight: 700; color: var(--dark); }
.item__bottom { display: flex; align-items: center; gap: 16px; }
.open-basket__cost { font-size: 12px; color: var(--light-grey); }
.open-basket__count { display: flex; align-items: center; border: 1px solid var(--bright-yellow); border-radius: 6px; padding: 2px 6px; gap: 6px; }
.open-basket__count button { border: 0; background: transparent; cursor: pointer; }
.bottom__title_block { display: flex; justify-content: space-between; border-top: 1px solid var(--light-grey); padding: 12px 0; }
.open-basket__btn { display: flex; align-items: center; justify-content: center; border-radius: 6px; padding: 12px; background: var(--bright-yellow); color: var(--dark); font-weight: 600; }
.open-basket__empty { font-size: 14px; color: var(--light-grey); }

/* ===== Catalog modal ===== */
.catalog-modal[hidden] { display: none !important; }
.catalog-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
}
.catalog-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.catalog-modal__content {
  position: relative;
  max-width: 1180px;
  margin: 110px auto 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,.2);
  max-height: calc(100vh - 140px);
  overflow: auto;
}
.catalog-modal__header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #ececec;
  background: #fff;
}
.catalog-modal__title { margin: 0; font-size: 22px; color: #121212; }
.catalog-modal__close { border: 0; background: transparent; font-size: 24px; cursor: pointer; }
.catalog-modal__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
  padding: 20px;
}
.catalog-modal__section-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.catalog-modal__parent-link { font-weight: 700; color: #121212; }
.catalog-modal__toggle {
  width: 28px; height: 28px; border: 1px solid #ddd; border-radius: 7px; background:#fff;
  display:none; align-items:center; justify-content:center; cursor:pointer;
}
.catalog-modal__toggle-icon {
  width:8px;height:8px;border-right:2px solid #111;border-bottom:2px solid #111;transform:rotate(45deg);transition:transform .2s;
}
.catalog-modal__section.is-open .catalog-modal__toggle-icon { transform: rotate(-135deg); }
.catalog-modal__children { margin: 10px 0 0; padding: 0; list-style: none; display:grid; gap:8px; }
.catalog-modal__children a { color:#475569; }
.catalog-modal__mobile-list { display:none; }
.catalog-modal--open body { overflow: hidden; }

@media (max-width: 1024px) {
  .catalog-modal__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 768px) {
  .catalog-modal__content {
    margin: 0;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    overflow-y: auto;
  }
  .catalog-modal__grid { grid-template-columns: 1fr; padding: 14px; gap: 12px; }
  .catalog-modal__toggle { display: inline-flex; }
  .catalog-modal__children[hidden] { display: none !important; }

  .catalog-modal__columns { display: none; }
  .catalog-modal__mobile-list { display:block; padding:14px; }
  .catalog-modal__section { margin-bottom: 8px; }
}

@media (min-width: 769px) {
  .catalog-modal__children[hidden] { display: grid !important; }

  /* Absolute (not fixed) — scrolls away with the page when user scrolls */
  .catalog-modal {
    inset: auto;
    position: absolute;
    top: 0; /* JS sets correct document Y on open */
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 1099;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 8px 28px rgba(0,0,0,.14);
    overflow: visible;
  }

  /* No dark overlay on desktop */
  .catalog-modal__overlay { display: none; }

  /* No "Каталог" heading / close button on desktop */
  .catalog-modal__header { display: none; }

  /* Content fills the panel directly, full width */
  .catalog-modal__content {
    position: static;
    max-width: none;
    width: 100%;
    margin: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }

  /* 5-column flex layout */
  .catalog-modal__mobile-list { display:none; }

  .catalog-modal__columns {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 20px 32px 28px;
  }

  .catalog-modal__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 16px;
    border-right: 1px solid #f0f0f0;
  }

  .catalog-modal__col:first-child { padding-left: 0; }
  .catalog-modal__col:last-child  { border-right: none; padding-right: 0; }
}

/* =====================================================
   PRODUCT META — расширения страницы товара
===================================================== */

.product-meta-min-qty {
  margin: 8px 0 14px;
  padding: 8px 12px;
  background: #fff7e6;
  border: 1px solid #f0d28a;
  border-radius: 6px;
  color: #6b4a00;
  font-size: 14px;
}

.product-marketplaces {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
}

.product-marketplaces__label {
  font-size: 14px;
  color: #555;
  margin-right: 4px;
}

.product-marketplaces__btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.15s ease;
}

.product-marketplaces__btn:hover { opacity: 0.85; color: #fff; }

.product-marketplaces__btn--wb   { background: #cb11ab; }
.product-marketplaces__btn--ozon { background: #005bff; }

.product-video {
  margin: 12px 0;
}

.product-video iframe,
.product-video video {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 8px;
}

.product-video__link {
  display: inline-block;
  word-break: break-all;
  color: #005bff;
}

/* =====================================================
   КАТАЛОГ — ЛИСТОВЫЕ КАТЕГОРИИ (section.php / sales.php layout)
===================================================== */

.content {
  margin-top: 15px;
}

.content__wrapper {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.headings__nav {
  flex: 0 0 260px;
  width: 260px;
}

.headings__nav_title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 24px;
  line-height: 140%;
  color: var(--dark, #121212);
  margin-bottom: 32px;
}

/* Right column: product grid + filters inside */
.headings {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 52px;
}

/* Mobile breadcrumb + title row (hidden on desktop, shown on tablet) */
.headings__top {
  display: none;
}

/* Description block at bottom of leaf category page */
.cat-description {
  padding: 52px 0;
  margin-top: 52px;
  background: var(--light-bg, #f9f9f9);
}

.cat-description .wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
}

.cat-description__img {
  width: 320px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.cat-description__text {
  flex: 1 1 auto;
}

.cat-description__title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 24px;
  line-height: 140%;
  color: var(--dark, #121212);
  margin-bottom: 12px;
}

.cat-description__body {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 140%;
  color: var(--dark, #121212);
}

/* Pagination */
#fg-pagination {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

#fg-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

#fg-pagination .page-numbers a,
#fg-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  font-size: 14px;
  text-decoration: none;
  color: var(--dark, #121212);
  background: #fff;
}

#fg-pagination .page-numbers .current {
  background: var(--bright-yellow, #ffb516);
  border-color: var(--bright-yellow, #ffb516);
  font-weight: 600;
}

#fg-pagination .page-numbers a:hover {
  background: var(--light-yellow, #ffe5ae);
  border-color: var(--light-yellow, #ffe5ae);
}

/* ====== Responsive ====== */
@media (max-width: 1280px) {
  .headings__nav { flex: 0 0 220px; width: 220px; }
}

@media (max-width: 1024px) {
  .content__wrapper { flex-direction: column; }
  .headings__nav { width: 100%; flex: none; }
  .headings__top { display: flex; justify-content: space-between; align-items: center; }
  /* headings__top берёт на себя заголовок на мобильных — скрываем дубль в .wrapper */
  .content > .wrapper > .headings__nav_title { display: none; }
}

@media (max-width: 800px) {
  .cat-description { display: none; }
}

/* ── Wishlist badge ───────────────────────────────────────────── */
.wishlist-icon-wrap {
  position: relative;
  display: inline-flex;
}

.wishlist-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--dark-blue, #1e3a8a);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.wishlist-count--hidden {
  display: none;
}

/* ── Like button active state ────────────────────────────────── */
/* Product card: Material Icon (font) */
.button-add-like.active i[data-icon] {
  font-variation-settings: 'FILL' 1;
  color: var(--bright-yellow, #f0c568);
}

/* Single product: SVG heart */
.button-add-like.active .heart-path,
.button-add-like.active svg path {
  fill: var(--bright-yellow, #f0c568);
}

/* Cursor pointer for single product heart (it's now an <a>) */
.basket_top_right .button-add-like {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

/* ── Wishlist page ────────────────────────────────────────────── */
.fgramota-wishlist .section-title {
  margin-bottom: 24px;
}

.wishlist-empty {
  font-size: 16px;
  color: var(--grey, #888);
  padding: 40px 0;
}
