/*
Mobile styles for Studio Bags theme
*/

/* CSS variables for mobile layout */
:root {
  --header-mobile-height: 79px; /* высота header-mobile__bar */
}
/* [FIX 2025-08-26] Убраны тестовые красные рамки у мобильных карточек товаров */
/* [2025-08-26] Mobile stacking fix:
   - Normalize .ticker-mobile z-index to 100 !important (remove conflicting 1/2)
   - body.is-menu-open: lower [class*="ticker"] to z-index: 100 !important
   - .mobile-menu: top: 49px; height: calc(100vh - 49px); z-index: 11000
   Rollback: restore previous values: .mobile-menu top/height/z-index to 79px/calc(100vh - 79px)/9999,
   body.is-menu-open [class*="ticker"] to 10800, and previous ticker z-index declarations.
*/

/* Unified responsive shell: desktop header is present but hidden on phone/tablet. */
@media (max-width: 1199px) {
  body > .header {
    display: none !important;
  }

  .about__text--desktop {
    display: none !important;
  }

  .about__text--mobile {
    display: inline;
  }

  /* Collections at the bottom, right before the About block */
  .front-page--responsive .home-reviews {
    order: 2;
  }

  .front-page--responsive .collections {
    order: 3;
  }

  .front-page--responsive .section-divider {
    order: 4;
  }

  .front-page--responsive .about {
    order: 5 !important;
  }
}

/* Tablet layout for the canonical (desktop) product template.
   Keep both columns fluid so fixed gallery/badge widths cannot leave the viewport. */
@media (min-width: 769px) and (max-width: 1199px) {
  body.single-product .product-page .container {
    width: 100% !important;
    max-width: none !important;
    padding-right: 24px !important;
    padding-left: 24px !important;
    box-sizing: border-box !important;
  }

  body.single-product .product-page .product-grid {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 24px !important;
  }

  body.single-product .product-page .product-gallery {
    flex: 1 1 52% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 52% !important;
  }

  body.single-product .product-page .product-info {
    flex: 1 1 48% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
  }

  body.single-product .studio-bags-gallery,
  body.single-product .woocommerce-product-gallery,
  body.single-product .studio-bags-main-image {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.single-product .studio-bags-main-image {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 588 / 800;
  }

  body.single-product .studio-bags-main-img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  body.single-product .product-info__title,
  body.single-product .product-info__stock,
  body.single-product .product-info__price,
  body.single-product .product-info__attributes {
    width: auto !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.single-product .product-info__badges {
    width: 100% !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }

  body.single-product .product-info__badges .service-badge {
    flex: 1 1 calc(33.333% - 7px) !important;
    min-width: 0 !important;
    padding-right: 5px !important;
    padding-left: 5px !important;
    box-sizing: border-box !important;
  }

  body.single-product .product-tab__toggle {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  body.single-product .single-qty-wrapper,
  body.single-product .single-qty-controls,
  body.single-product .product-info__add-btn {
    min-width: 0 !important;
  }

  body.single-product .single-qty-controls {
    flex-basis: 36% !important;
  }

  body.single-product .product-info__add-btn {
    flex: 1 1 auto !important;
  }

  body.single-product .product-recommendations .swiper-slide {
    justify-content: center !important;
  }
}

.single-product-mobile-breadcrumbs {
  display: none !important;
}

/* Canonical product template: reproduce the existing mobile content layout. */
@media (max-width: 768px) {
  .header-mobile__bar .header__logo {
    width: 168px !important;
  }

  .header-mobile__bar .header__logo-img {
    height: 20px !important;
    max-height: 20px !important;
  }

  body.single-product .single-product-mobile-breadcrumbs {
    display: block !important;
  }

  body.single-product .product-page,
  body.single-product .product-page > .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  body.single-product .product-page .product-grid {
    width: 100% !important;
    min-width: 0 !important;
    gap: 24px !important;
    align-items: stretch !important;
  }

  body.single-product .product-page .product-gallery,
  body.single-product .studio-bags-gallery,
  body.single-product .studio-bags-main-image {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.single-product .studio-bags-main-image {
    height: 150vw !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  body.single-product .studio-bags-main-img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  body.single-product .product-page .product-info {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  body.single-product .product-info__title {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100% !important;
    margin: 0 0 4px !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }

  body.single-product .product-info__stock {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }

  body.single-product .product-info__price {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    width: auto !important;
    margin: 10px 0 20px 12px !important;
    padding: 0 !important;
    text-align: left !important;
  }

  body.single-product .product-info__price .price {
    margin: 0 !important;
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

  body.single-product .product-info > .sb-swatch-bar {
    grid-column: 2;
    grid-row: 3;
    align-self: end;
    justify-self: end;
    margin: 10px 12px 20px 0 !important;
  }

  body.single-product .product-info__attributes {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  body.single-product .product-info__tabs {
    grid-column: 1 / -1;
    grid-row: 5;
    margin: 0 12px 20px !important;
    border: 1px solid #f3d1dc !important;
    border-radius: 4px !important;
    overflow: hidden !important;
  }

  body.single-product .product-tab {
    border-bottom: 1px solid #f3d1dc !important;
  }

  body.single-product .product-tab:last-child {
    border-bottom: 0 !important;
  }

  body.single-product .product-tab__toggle {
    padding: 14px 16px !important;
    font-size: 15px !important;
  }

  body.single-product .product-bonuses--mobile {
    grid-column: 1 / -1;
    grid-row: 6;
    display: block !important;
    margin: 0 12px 20px !important;
  }

  body.single-product .product-info__cart {
    grid-column: 1 / -1;
    grid-row: 7;
    margin: 0 12px 20px !important;
  }

  body.single-product .single-qty-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  body.single-product .single-qty-controls {
    flex: none !important;
    width: 100% !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 4px !important;
  }

  body.single-product .product-info__add-btn {
    flex: none !important;
    width: 100% !important;
    padding: 14px 20px !important;
    background: var(--color-pink, #f3d1dc) !important;
    color: #101828 !important;
    border: 0 !important;
    border-radius: 4px !important;
  }

  body.single-product .product-info__badges {
    grid-column: 1 / -1;
    grid-row: 8;
    display: flex !important;
    flex-direction: row !important;
    width: calc(100% - 24px) !important;
    margin: 0 12px 20px !important;
    gap: 6px !important;
    overflow: hidden !important;
  }

  body.single-product .product-info__badges .service-badge {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: calc((100% - 12px) / 3) !important;
    padding: 8px 4px !important;
    gap: 4px !important;
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
  }

  body.single-product .product-info__badges .service-badge img {
    width: 20px !important;
    height: 20px !important;
    margin: 0 auto 4px !important;
  }

  body.single-product .product-info__badges .service-badge span {
    font-size: 12px !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }

  body.single-product .product-recommendations .product-card__footer {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 36px !important;
    margin-top: 0 !important;
    gap: 8px !important;
  }

  body.single-product .product-recommendations .product-card__stock {
    align-items: flex-start !important;
    margin-bottom: 0 !important;
  }

  body.single-product .product-recommendations .sb-swatch-bar--card {
    margin-bottom: 0 !important;
  }

  body.single-product .product-recommendations .product-card__price {
    flex: 0 0 auto !important;
    align-self: center !important;
    margin: 0 !important;
    text-align: left !important;
  }

  body.single-product .product-recommendations .product-card__add {
    position: relative !important;
    flex: 0 0 auto !important;
    min-width: 129px !important;
    margin-left: auto !important;
    justify-content: center !important;
    text-align: center !important;
  }

  body.single-product .product-recommendations .product-card__add span {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }

  body.single-product .product-recommendations .product-card__add-icon {
    position: absolute !important;
    left: 12px !important;
    margin-right: 0 !important;
  }

  body.single-product .product-recommendations-swiper .swiper-slide,
  body.single-product .product-recommendations .product-card {
    width: 100% !important;
    max-width: none !important;
  }
}

/* [2025-08-26] Mobile catalog base styles */
@media (max-width: 768px) {
  /* STEP 1: Commenting out old catalog-layout styles
  .catalog-layout { display: block !important; }
  .catalog-products { display: flex !important; flex-direction: column !important; gap: 16px !important; }
  */
  
  /* [NEW] Фоновый оверлей для мобильного фильтра */
  #catalog-filters-mobile {
    position: fixed !important;
    top: 48px !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(6px) !important;
    z-index: 9999 !important;
    display: none !important;
  }

  #catalog-filters-mobile.filters-open {
    display: block !important;
  }
  
  /* [NEW] Внутренний блок фильтров */
  #catalog-filters-mobile .shop-filters-form {
    position: absolute !important;
    left: 0 !important;
    top: 46 !important;
    background: #fff !important;
    width: 100% !important;
    max-width: auto !important;
    height: 100% !important;
    overflow-y: auto !important;
    z-index: 10000 !important;
  }
  
  .catalog-filters-mobile[hidden] { display: none !important; }
  body.filters-open .catalog-filters-mobile {
    position: fixed !important;
    inset: 0 !important; /* top:0; right:0; bottom:0; left:0 */
    width: 100% !important;
    height: 100% !important;
    background: #fff !important;
    z-index: 11000 !important;
    overflow: auto !important;
    padding: 0 !important; /* Убираем padding, так как теперь есть header и footer */
  }

  /* Стили для заголовка фильтров */
  .catalog-filters__header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid #eee !important;
    position: sticky !important;
    top: 0 !important;
    background: #fff !important;
    z-index: 5 !important;
  }

  .catalog-filters__title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333 !important;
  }

  .catalog-filters__close {
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    cursor: pointer !important;
    color: #666 !important;
    padding: 4px !important;
    line-height: 1 !important;
    transition: color 0.2s ease !important;
  }

  .catalog-filters__close:hover {
    color: #333 !important;
  }

  /* Стили для футера фильтров */
  .catalog-filters__footer {
    position: sticky !important;
    bottom: 0 !important;
    padding: 12px 16px !important;
    background: #fff !important;
    border-top: 1px solid #eee !important;
  }

  .catalog-filters__apply {
    width: 100% !important;
    background: #f3c1d2 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
  }

  .catalog-filters__apply:hover {
    background: #e8a8c0 !important;
  }

  /* Стили для новой кнопки "Застосувати" внутри фильтров */
  .catalog-filters__apply-button {
    width: 100% !important;
    padding: 12px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: white !important;
    background-color: #f3c1d2 !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
  }

  .catalog-filters__apply-button:hover {
    background-color: #e6b3c1 !important;
  }

  /* Стили для футера фильтров */
  .catalog-filters__footer {
    padding: 16px !important;
    background: #ffffff !important;
    border-top: 1px solid #eee !important;
    margin-top: 20px !important;
  }
}

/* Предотвращение горизонтального скролла */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

/* Базовые стили для всех элементов */
* {
  box-sizing: border-box;
  max-width: 100%;
}

/* Контейнеры не должны выходить за границы */
.container,
.header__hero-bg-mobile,
.front-page--mobile,
.footer--mobile {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

/* Медиа внутри мобильного слайдера - КРИТИЧНО: фиксированные размеры */
.header-hero--mobile .header-hero__video,
.header-hero--mobile .header-hero__image {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  background-size: cover !important;
  background-position: center !important;
  z-index: -1 !important;
  will-change: auto !important; /* отключаем для стабильности */
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

/* Overlay для каждого мобильного слайда */
.header-hero--mobile .header-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Принудительное применение dvh для современных браузеров */
.header__hero-bg-mobile {
  min-height: 100dvh !important;
}

/* Fallback для старых браузеров */
@supports not (height: 100dvh) {
  .header__hero-bg-mobile {
    min-height: 100vh !important;
  }
}

/* Мобильный слайдер должен иметь позиционирование для медиа */
.header-hero--mobile .swiper-slide {
  position: relative;
  will-change: transform; /* оптимизация для плавности */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Контент слайда поверх overlay */
.header-hero--mobile .header-hero__content {
  position: relative;
  z-index: 1;
}

/* Правильная высота мобильного слайдера */
.header-hero--mobile .header-hero__swiper {
  /* По умолчанию используем svh как базовый расчёт */
  height: calc(100svh - var(--sb-mobile-header-height) - var(--sb-ticker-height));
  min-height: calc(100svh - var(--sb-mobile-header-height) - var(--sb-ticker-height));
  max-height: calc(100svh - var(--sb-mobile-header-height) - var(--sb-ticker-height));
  will-change: auto; /* отключаем для стабильности */
  transition: none !important; /* отключаем переходы */
}

/* КРИТИЧНО: Когда высота зафиксирована через JavaScript - используем только inline стили */
.header-hero--mobile .header-hero__swiper[data-height-locked="true"] {
  /* JavaScript установит точную высоту в пикселях через inline style */
  /* Это правило просто для дополнительной защиты */
  height: attr(data-locked-height px) !important;
  min-height: attr(data-locked-height px) !important;
  max-height: attr(data-locked-height px) !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Fallback для браузеров без поддержки svh - используем dvh */
@supports not (height: 100svh) {
  .header-hero--mobile .header-hero__swiper:not([data-height-locked="true"]) {
    height: calc(100dvh - var(--sb-mobile-header-height) - var(--sb-ticker-height));
    min-height: calc(100dvh - var(--sb-mobile-header-height) - var(--sb-ticker-height));
    max-height: calc(100dvh - var(--sb-mobile-header-height) - var(--sb-ticker-height));
  }
}

/* Fallback для старых браузеров без поддержки новых viewport единиц */
@supports not (height: 100dvh) {
  .header-hero--mobile .header-hero__swiper:not([data-height-locked="true"]) {
    height: calc(100vh - var(--sb-mobile-header-height) - var(--sb-ticker-height));
    min-height: calc(100vh - var(--sb-mobile-header-height) - var(--sb-ticker-height));
    max-height: calc(100vh - var(--sb-mobile-header-height) - var(--sb-ticker-height));
  }
}

/* Слои поверх overlay */
.header--mobile,
.hero--mobile {
  position: relative;
  z-index: 2;
}

/* Burger menu - базовые стили */
.header-mobile__bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
}

.header-mobile__bar .header__logo-img {
  filter: brightness(0) invert(1); /* Делаем логотип белым */
  max-height: 40px;
  width: auto;
}

.header-mobile__burger {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}

/* Мобильные стили переопределяют цвета */
@media (max-width: 1199px) {
  .header-mobile__bar .header__logo-img {
    filter: none !important; /* Убираем белый фильтр для черного логотипа */
  }
  
  .header-mobile__burger {
    color: #111 !important; /* Черный бургер */
  }
  
  /* Явный приоритет dvh для мобильных устройств - фиксит растягивание слайдера при скролле */
  .header__hero-bg-mobile {
    min-height: 100dvh !important;
    will-change: transform; /* оптимизация для плавности */
  }
}

.mobile-menu[hidden] {
  display: none;
}

/* Мобильное меню - предотвращение переполнения */
.mobile-menu {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

.mobile-menu .header__catalog,
.mobile-menu .header-search,
.mobile-menu .header__icons {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}





/* Мобильный слайдер */
.header__slider--mobile {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 20px 15px;
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

.slider__wrapper--mobile {
  max-width: 100% !important;
  width: 100% !important;
  overflow-x: hidden !important;
}

.slider__content--mobile {
  color: white;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.slider__pretitle {
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.slider__title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
}

.slider__subtitle {
  font-size: 16px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.slider__btn {
  display: inline-block;
  padding: 12px 24px;
  background: #f3d1dc;
  color: #333;
  text-decoration: none;
  border-radius: 0px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.slider__btn:hover {
  background: #e8c1cc;
}

/* Основной контент должен идти на белом фоне */
.front-page--mobile {
  background: white;
}

/* Additional mobile-specific styles can be added below */
/* This file is loaded only on mobile devices */

/* === Mobile horizontal slider for Top Sales === */
@media (max-width: 768px) {
  /* Контейнер-скроллер - ТОЛЬКО для главной страницы */
  body.home .products.products--mobile .products__grid.products__grid--mobile,
  body.home .products.products--mobile .products__grid--mobile {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    /* критично для первого кадра с отступами: */
    scroll-padding-inline-start: 20px !important;
    scroll-padding-left: 20px !important; /* на случай старых браузеров */
    scroll-padding-inline-end: 20px !important;
    scroll-padding-right: 20px !important; /* на случай старых браузеров */
    /* никаких отступов, которые сдвинут первый слайд: */
    padding: 0 !important;
    gap: 0 !important;
    justify-content: flex-start !important; /* чтобы не было центровки ряда */
    -webkit-overflow-scrolling: touch !important;
    margin-bottom: 32px !important;
    margin-top: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Разрешаем горизонтальный скролл в родительских контейнерах - ТОЛЬКО для главной */
  body.home .products.products--mobile {
    overflow-x: visible !important;
  }

  /* Каждая карточка = весь экран с отступами 20px слева и справа - ТОЛЬКО для главной */
  body.home .products.products--mobile .product-card {
    flex: 0 0 calc(100% - 40px) !important;
    min-width: calc(100% - 40px) !important;
    width: calc(100% - 40px) !important;
    margin: 0 20px !important;
    scroll-snap-align: start !important;
    max-width: none !important;
  }

  /* Правильное позиционирование первого и последнего элемента с отступами - ТОЛЬКО для главной */
  body.home .products.products--mobile .products__grid--mobile > :first-child {
    margin-left: 20px !important;
    scroll-margin-left: 20px !important;
  }
  
  body.home .products.products--mobile .products__grid--mobile > :last-child {
    margin-right: 20px !important;
    scroll-margin-right: 20px !important;
  }

  /* Скрываем скроллбар для красивого вида - ТОЛЬКО для главной */
  body.home .products.products--mobile .products__grid--mobile::-webkit-scrollbar {
    display: none !important;
  }
  
  body.home .products.products--mobile .products__grid--mobile {
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;     /* Firefox */
  }

  /* Жёстко убираем остатки «грида» для мобилы - ТОЛЬКО для главной */
  body.home .products.products--mobile .products__grid--mobile {
    display: flex !important;
    /* любые grid-свойства должны быть нейтрализованы: */
    grid-template-columns: unset !important;
    grid-auto-flow: unset !important;
    justify-items: unset !important;
    align-items: unset !important;
  }
}

/* Десктоп - возвращаем к grid для десктопной версии */
@media (min-width: 769px) {
  /* Главная страница - горизонтальный слайдер остается */
  body.home .products.products--mobile .products__grid--mobile {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 16px !important;
    padding: 0 16px !important;
    margin-bottom: 32px !important;
    margin-top: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Каталог товаров - grid для десктопа */
  .products.products--mobile:not(body.home .products.products--mobile) .products__grid--mobile {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    padding: 0 16px !important;
    margin-bottom: 32px !important;
    margin-top: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }
}

.product-card.product-card--mobile {
  width: 100% !important;
  box-sizing: border-box;
  padding: 16px;
  max-width: none;
  margin: 0;
}

/* Мобильный футер - предотвращение переполнения */
.footer--mobile {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

.footer__container--mobile {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
  padding: 0 16px;
}

.footer__mobile-content {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

/* Модальные окна - предотвращение переполнения */
.auth-modal--mobile {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

.auth-modal__content--mobile {
  width: 90% !important;
  max-width: 400px !important;
  margin: 0 auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

/* Contacts Modal Mobile Styles */
.contacts-modal--mobile {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

.contacts-modal__content--mobile {
  width: 90% !important;
  max-width: 400px !important;
  margin: 0 auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}



/* === Mobile product cards unified markup === */
@media (max-width: 768px) {

/* Сетка каталога - переопределена на горизонтальный слайдер выше */
/* Стили для карточек - переопределены в основном блоке слайдера */

/* Третий столбец при скрытом фильтре — переопределен на слайдер */
.catalog--filters-hidden .products.products--mobile .products__grid--mobile {
  /* Используем стили слайдера из основного блока */
}

/* STEP 1: Commenting out old base product-card styles
.product-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: auto;
  min-height: 320px;
}
*/

/* STEP 1: Commenting out old base styles for image wrapper
.product-card__image-wrapper {
  width: 100%;
  height: auto;
  position: relative;
  overflow: visible;
}

.product-card__image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
*/

/* Бейджи - базовые стили (десктоп) */
.product-card__badges {
  position: absolute;
  inset: 8px auto auto 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

/* Мобильные бейджи - переопределяем z-index */
@media (max-width: 768px) {
  .product-card__badges {
    z-index: 10 !important;
  }
}

.product-card__badge {
  padding: 4px 6px;
  font-size: 10px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.product-card__badge--sale {
  background: #f3d1dc;
  color: rgb(0, 0, 0);
}

.product-card__badge--featured {
  background: #ffaa00;
  color: white;
}

/* STEP 1: Commenting out old base info styles
.product-card__info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
*/

.product-card__title {
  font-size: 14px;
  line-height: 1.3;
  margin: 0;
  font-weight: 600;
  color: #333;
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
}

.product-card__title a:hover {
  color: #f3c1d2;
}

.product-card__desc {
  font-size: 12px;
  line-height: 1.4;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.product-card__stock { 
  margin-top: 4px; 
}

.product-card__stock-status {
  font-size: 11px;
  font-weight: 500;
  padding: 0;
  border-radius: 0;
}

.product-card__stock-status--in-stock {
  background: transparent;
  color: #f3c1d2;
  border: none;
  padding: 0;
}

.product-card__stock-status--out-of-stock {
  background: transparent;
  color: #999;
  border: none;
  padding: 0;
}

.product-card__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;

}

.product-card__price {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #333;
}

.product-card__price del { 
  font-size: 12px; 
  color: #999; 
  font-weight: 400;
}

.product-card__price ins { 
  text-decoration: none; 
  color: #ff4444;
}

.product-card__add,
.product-card__view {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.product-card__add {
  background: #f3c1d2;
  color: white;
}

.product-card__add:hover,
.product-card__add:focus-visible {
  background: #e8a8c0;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(243, 193, 210, 0.3);
}

.product-card__add-icon {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
  margin-right: 8px;
}

.product-card__view {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #e0e0e0;
}

.product-card__view:hover,
.product-card__view:focus-visible {
  background: #e8e8e8;
  color: #333;
}

/* Цветовые свачи (если есть) */
.product-card__swatches {
  margin: 6px 0;
}

.product-card__swatches .swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  margin-right: 4px;
  display: inline-block;
}

}

@media (max-width: 480px) {
/* Главная страница - горизонтальный слайдер */
body.home .products.products--mobile .products__grid--mobile { 
  /* Переопределено на горизонтальный слайдер выше */
}

/* Карточки товаров с отступами 20px для экранов ≤480px - ТОЛЬКО для главной */
body.home .products.products--mobile .product-card {
  flex: 0 0 calc(100% - 40px) !important;
  min-width: calc(100% - 40px) !important;
  width: calc(100% - 40px) !important;
  margin: 0 20px !important;
  scroll-snap-align: start !important;
  max-width: none !important;
  min-height: 280px;
}

/* STEP 1: Commenting out old catalog product card styles
.products.products--mobile:not(body.home .products.products--mobile) .product-card {
  width: calc(100% - 32px) !important;
  margin: 12px 16px !important;
  min-height: 280px;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 8px !important;
  overflow: visible !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}
*/

/* STEP 1: Commenting out old general styles
.product-card__image-wrapper {
  height: auto;
}

.product-card__info {
  padding: 10px;
}

.product-card__title {
  font-size: 13px;
}

.product-card__price {
  font-size: 15px;
}

.product-card__add,
.product-card__view {
  min-height: 32px;
  font-size: 12px;
}
*/
}

/* === Временное отключение прелоадера на мобиле === */
@media (max-width: 768px) {
  /* Временное отключение прелоадера на мобиле */
  #sb-preloader,
  .sb-preloader {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  html.is-loading, 
  body.is-loading {
    /* не блокируем рендер */
    overflow: auto !important;
  }
}

/* === Mobile overrides for home-mobile === */
@media (max-width: 768px) {

  /* Универсальная обертка: всё внутри страницы home-mobile наследует эти правила */
  body.home .products.products--mobile {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  /* Секция "Топ продажів" */
  body.home section.products.products--mobile {
    padding: 0 !important;           /* сброс паддингов секции */
    margin: 0 0 16px 0 !important;   /* нижний отступ секции */
    background: transparent !important;
  }

  /* Хедер блока */
  body.home .products.products--mobile .products__header {
    max-width: none !important;
    margin: 40px 16px 28px 16px !important;   /* компактный внутренний отступ */
    padding: 0 !important;
  }

  /* Сетка карточек - переопределена на горизонтальный слайдер выше */
  /* Если в проекте есть флаг "фильтр скрыт" — переопределен на слайдер */

  /* Футер секции (кнопка "Каталог") */
  body.home .products.products--mobile .products__footer {
    text-align: center !important;
    margin: 28px 0 32px !important;  /* корректный внешний отступ */
    margin-bottom: 0px !important;  /* перебиваем десктопный margin-bottom: 96px */
  }

  /* Карточка */
  body.home .products.products--mobile .product-card {
    width: calc(100% - 40px) !important;
    max-width: none !important;
    margin: 12px 20px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  }
  
  body.home .products.products--mobile .product-card__image-wrapper {
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    overflow: visible !important;
  }

  body.home .products.products--mobile .product-card__image-wrapper img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }
  
  /* Переопределяем размеры карточек для мобильной сетки */
  body.home .products.products--mobile .product-card__img {
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  body.home .products.products--mobile .product-card__img img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }
  
  /* Информационный блок карточки */
  body.home .products.products--mobile .product-card__info {
    padding: 10px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    flex: 1 !important;
  }
  
  /* Заголовок карточки */
  body.home .products.products--mobile .product-card__title {
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    font-weight: 600 !important;
    color: #333 !important;
  }

  /* Footer - горизонтальное расположение цены и кнопки */
  body.home .products.products--mobile .product-card__footer {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
  }

  /* Цена карточки */
  body.home .products.products--mobile .product-card__price {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #333 !important;
    flex-shrink: 0 !important;
  }

  /* Кнопка добавления в корзину */
  body.home .products.products--mobile .product-card__add {
    min-height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
    border: none !important;
    cursor: pointer !important;
    background: #f3d1dc !important;
    color: white !important;
  }
  
  body.home .products.products--mobile .product-card__add:hover,
  body.home .products.products--mobile .product-card__add:focus-visible {
    background: #e8a8c0 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(243, 193, 210, 0.3) !important;
  }
  
  /* Иконка корзины */
  body.home .products.products--mobile .product-card__add-icon {
    width: 14px !important;
    height: 14px !important;
    filter: brightness(0) invert(1) !important;
    margin-right: 8px !important;
  }
}

@media (max-width: 480px) {
  body.home .products.products--mobile .products__grid.products__grid--mobile { 
    /* Переопределено на горизонтальный слайдер выше */
  }

  body.home .products.products--mobile .product-card {
    width: calc(100% - 40px) !important;
    max-width: none !important;
    margin: 12px 20px !important;
    min-height: 280px !important;
  }

  body.home .products.products--mobile .product-card__image-wrapper {
    height: auto !important;
  }

  body.home .products.products--mobile .product-card__img {
    height: auto !important;
  }

  body.home .products.products--mobile .product-card__info {
    padding: 10px !important;
  }

  /* Footer - горизонтальное расположение */
  body.home .products.products--mobile .product-card__footer {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
  }

  body.home .products.products--mobile .product-card__title {
    font-size: 13px !important;
  }

  body.home .products.products--mobile .product-card__price {
    font-size: 15px !important;
    flex-shrink: 0 !important;
  }

  body.home .products.products--mobile .product-card__add {
    min-height: 32px !important;
    font-size: 12px !important;
    padding: 6px 10px !important;
  }

  /* Стили для каталога на маленьких экранах */
  .products.products--mobile:not(body.home .products.products--mobile) .product-card__title {
    font-size: 13px !important;
  }

  .products.products--mobile:not(body.home .products.products--mobile) .product-card__price {
    font-size: 15px !important;
  }

  .products.products--mobile:not(body.home .products.products--mobile) .product-card__add {
    min-height: 32px !important;
    font-size: 12px !important;
    padding: 6px 10px !important;
  }

  .products.products--mobile:not(body.home .products.products--mobile) .product-card__info {
    padding: 10px !important;
  }
}

/* === Mobile typography & buttons === */
@media (max-width: 768px) {

  /* Заголовки блоков (Топ продажів, Акции, Отзывы и т.д.) */
  .products__title,
  .features__title,
  .reviews__title,
  .collections__title,
  .about__title,
  .section-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0 0;
  }

  /* Унификация кнопок на моб версии */
  .button,
  .btn,
  .products__button,
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button {
    border-radius: 4px !important;
  }
}

/* === Mobile catalog products - vertical list (not home page) === */
@media (max-width: 768px) {
  /* Для страниц каталога (не главная) - вертикальный список */
  .products.products--mobile:not(body.home .products.products--mobile) .products__grid--mobile {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 0 !important;
    margin-bottom: 32px !important;
    margin-top: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    /* Убираем все свойства горизонтального слайдера */
    flex-wrap: unset !important;
    scroll-snap-type: unset !important;
    scroll-padding: unset !important;
    justify-content: unset !important;
    -webkit-overflow-scrolling: unset !important;
  }

  /* STEP 1: Commenting out ALL old catalog product card styles
  .products.products--mobile:not(body.home .products.products--mobile) .product-card {
    flex: unset !important;
    min-width: unset !important;
    width: calc(100% - 32px) !important;
    margin: 12px 16px !important;
    scroll-snap-align: unset !important;
    max-width: none !important;
    border-radius: 8px !important;
    overflow: visible !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .products.products--mobile:not(body.home .products.products--mobile) .product-card__image-wrapper {
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .products.products--mobile:not(body.home .products.products--mobile) .product-card__image-wrapper img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  .products.products--mobile:not(body.home .products.products--mobile) .product-card__img {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .products.products--mobile:not(body.home .products.products--mobile) .product-card__info {
    padding: 10px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    flex: 1 !important;
    position: relative !important;
    z-index: 1 !important;
  }

  .products.products--mobile:not(body.home .products.products--mobile) .product-card__title {
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    font-weight: 600 !important;
    color: #333 !important;
  }

  .products.products--mobile:not(body.home .products.products--mobile) .product-card__stock {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 4px !important;
  }

  .products.products--mobile:not(body.home .products.products--mobile) .product-card__footer {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: auto !important;
  }

  .products.products--mobile:not(body.home .products.products--mobile) .product-card__price {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #333 !important;
    flex-shrink: 0 !important;
  }

  .products.products--mobile:not(body.home .products.products--mobile) .product-card__add {
    min-height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
    border: none !important;
    cursor: pointer !important;
    background: #f3d1dc !important;
    color: white !important;
  }

  .products.products--mobile:not(body.home .products.products--mobile) .product-card__add:hover {
    background: #e8a8c0 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(243, 193, 210, 0.3) !important;
  }

  .products.products--mobile:not(body.home .products.products--mobile) .product-card__add-icon {
    width: 14px !important;
    height: 14px !important;
    filter: brightness(0) invert(1) !important;
    margin-right: 8px !important;
  }
  */

  /* ===== STEP 2: NEW CLEAN CATALOG STYLES BASED ON HOMEPAGE ===== */

  /* Base styles for ALL mobile product cards */
  .product-card {
    display: flex !important;
    flex-direction: column !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    height: auto !important;
    min-height: auto !important; /* Remove min-height restriction */
  }

  .product-card__image-wrapper {
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    overflow: visible !important;
  }

  .product-card__image-wrapper img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  .product-card__info {
    padding: 10px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    flex: 1 !important;
    background: transparent !important; /* Ensure no separate background */
  }

  /* Basic catalog layout - minimal container styles */
  .catalog-layout {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .catalog-products {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important; /* Cards will have their own margins */
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Copy exact styles from homepage mobile cards */
  .products.products--mobile:not(body.home .products.products--mobile) .product-card {
    /* Same dimensions as homepage */
    width: calc(100% - 40px) !important;
    max-width: none !important;
    margin: 12px 20px !important;

    /* Same visual appearance as homepage */
    border-radius: 8px !important;
    overflow: hidden !important; /* Important: same as homepage for unified shadow */
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;

    /* Flexbox structure */
    display: flex !important;
    flex-direction: column !important;
  }

  /* Image wrapper - exact copy from homepage */
  .products.products--mobile:not(body.home .products.products--mobile) .product-card__image-wrapper {
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    overflow: visible !important;
  }

  .products.products--mobile:not(body.home .products.products--mobile) .product-card__image-wrapper img,
  .products.products--mobile:not(body.home .products.products--mobile) .product-card__img img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  .products.products--mobile:not(body.home .products.products--mobile) .product-card__img {
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* Info section - exact copy from homepage */
  .products.products--mobile:not(body.home .products.products--mobile) .product-card__info {
    padding: 10px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    flex: 1 !important;
  }

  /* Title - exact copy from homepage */
  .products.products--mobile:not(body.home .products.products--mobile) .product-card__title {
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    font-weight: 600 !important;
    color: #333 !important;
  }

  .products.products--mobile:not(body.home .products.products--mobile) .product-card__title a {
    color: inherit !important;
    text-decoration: none !important;
  }

  /* Stock status */
  .products.products--mobile:not(body.home .products.products--mobile) .product-card__stock {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 4px !important;
  }

  /* Footer - exact copy from homepage */
  .products.products--mobile:not(body.home .products.products--mobile) .product-card__footer {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: auto !important;
  }

  /* Price - exact copy from homepage */
  .products.products--mobile:not(body.home .products.products--mobile) .product-card__price {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #333 !important;
    flex-shrink: 0 !important;
  }

  /* Add to cart button - exact copy from homepage */
  .products.products--mobile:not(body.home .products.products--mobile) .product-card__add,
  .products.products--mobile:not(body.home .products.products--mobile) .product-card__view {
    min-height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
    border: none !important;
    cursor: pointer !important;
    background: #f3d1dc !important;
    color: white !important;
  }

  .products.products--mobile:not(body.home .products.products--mobile) .product-card__add:hover,
  .products.products--mobile:not(body.home .products.products--mobile) .product-card__add:focus-visible,
  .products.products--mobile:not(body.home .products.products--mobile) .product-card__view:hover,
  .products.products--mobile:not(body.home .products.products--mobile) .product-card__view:focus-visible {
    background: #e8a8c0 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(243, 193, 210, 0.3) !important;
  }

  /* Cart icon - exact copy from homepage */
  .products.products--mobile:not(body.home .products.products--mobile) .product-card__add-icon {
    width: 14px !important;
    height: 14px !important;
    filter: brightness(0) invert(1) !important;
    margin-right: 8px !important;
  }

  /* ===== END OF STEP 2 ===== */
}

/* === Mobile sections override - перебиваем все десктопные стили === */
@media (max-width: 768px) {

  /* === MAIN CONTAINER === */
  .front-page.front-page--mobile {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    display: flex;
    flex-direction: column;
  }

  /* === FEATURES SECTION === */
  .features.features--mobile {
    padding: 0px 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }

  .features.features--mobile .container {
    max-width: none !important;
    margin: 0 16px !important;
    padding: 0 !important;
  }

  .features__title {
    font-size: 28px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin: 0 0 16px !important;
  }

  /* === PRODUCTS SECTION === */
  .products.products--mobile {
    padding: 0 !important;
    margin: 0 0 16px 0 !important;
    background: transparent !important;
    max-width: none !important;
  }

  .products.products--mobile .products__header {
    max-width: none !important;
    margin: 40px 16px 28px 16px !important;
    padding: 0 !important;
  }

  .products.products--mobile .products__title {
    font-size: 28px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  .products.products--mobile .products__grid.products__grid--mobile {
    /* Переопределено на горизонтальный слайдер выше */
  }

  .products.products--mobile .products__footer {
    text-align: center !important;
    margin: 28px 0 32px !important;
    margin-bottom: 0px !important;
  }

  /* === COLLECTIONS SECTION === */
  .collections.collections--mobile {
    padding: 24px 0 !important;
    margin: 0 !important;
    background: transparent !important;
    order: 3;
  }

  .collections.collections--mobile .collections__container {
    max-width: none !important;
    margin: 0 16px !important;
    padding: 0 !important;
  }

  .collections.collections--mobile .collections__header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 24px !important;
  }

  .collections.collections--mobile .collections__title {
    font-size: 28px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  .collections.collections--mobile .collections__grid.collections__grid--mobile {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 20px !important;
    padding: 0 20px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .collections.collections--mobile .collections__item {
    flex: 0 0 calc(100% - 40px) !important;
    min-width: calc(100% - 40px) !important;
    margin: 0 !important;
    scroll-snap-align: start !important;
    position: relative !important;
    background: #f2f2f2 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    height: 320px !important;
  }

  .collections.collections--mobile .collections__img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
  }

  .collections.collections--mobile .collections__caption {
    position: absolute !important;
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .collections.collections--mobile .collections__name {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #FFFFFF !important;
  }

  .collections.collections--mobile .collections__grid.collections__grid--mobile > :first-child {
    margin-left: 0 !important;
    scroll-margin-left: 20px !important;
  }

  .collections.collections--mobile .collections__grid.collections__grid--mobile > :last-child {
    margin-right: 0 !important;
    scroll-margin-right: 20px !important;
  }

  .collections.collections--mobile .collections__grid.collections__grid--mobile::-webkit-scrollbar {
    display: none !important;
  }

  /* === ABOUT SECTION === */
  .about.about--mobile {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    margin: 0 auto !important;
    max-width: none !important;
    padding: 20px 36px !important;
    background: transparent !important;
    order: 3;
  }

  .about.about--mobile .about__col {
    flex: none !important;
  }

  .about.about--mobile .about__col--logo {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .about.about--mobile .about__logo {
    width: 150px !important;
    height: auto !important;
    margin-bottom: 18px !important;
  }

  .about.about--mobile .about__subtitle {
    font-size: 18px !important;
    text-align: center !important;
    margin: 0 !important;
  }

  .about.about--mobile .about__col--text {
    text-align: center !important;
  }

  .about.about--mobile .about__title {
    font-size: 28px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin: 0 0 16px !important;
    text-align: center !important;
  }

  .about.about--mobile .about__desc {
    font-size: 16px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
  }

  /* === SECTION DIVIDER === */
  .section-divider {
    border: none !important;
    border-top: 1px solid #F3C1D2 !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  /* === UNIVERSAL BUTTON STYLES === */
  .btn,
  .btn--pink,
  .products__catalog-btn,
  .collections__all-btn,
  .about-more__link,
  .button,
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button {
    border-radius: 4px !important;
    font-size: 14px !important;
  }

  /* === REVIEWS SECTION (если есть) === */
  .reviews {
    padding: 24px 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }

  .reviews__title {
    font-size: 28px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin: 0 0 16px !important;
    text-align: center !important;
  }

  .reviews__subtitle {
    font-size: 16px !important;
    margin: 0 0 24px !important;
    text-align: center !important;
  }

  .reviews__container {
    max-width: none !important;
    margin: 0 16px !important;
    padding: 0 !important;
  }
}

/* === Мобильная адаптация для очень маленьких экранов === */
@media (max-width: 480px) {
  
  .products.products--mobile .products__grid.products__grid--mobile {
    /* Переопределено на горизонтальный слайдер выше */
  }

  .collections.collections--mobile .collections__grid.collections__grid--mobile {
    /* Слайдер уже настроен выше, не переопределяем */
  }

  .about.about--mobile {
    padding: 36px 20px !important;
  }

  .about.about--mobile .about__logo {
    width: 120px !important;
  }

  .about.about--mobile .about__title {
    font-size: 24px !important;
  }

  .about.about--mobile .about__subtitle {
    font-size: 16px !important;
  }
}

/* === Mobile: reviews image seam fix === */
@media (max-width: 768px) {
  /* Обёртка изображения в карточке отзыва */
  .sbr-review-card__media {
    overflow: hidden !important;
    border-radius: 0px !important;
    background: #fff !important;
  }

  /* Сами картинки */
  .sbr-review-card__img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    vertical-align: top !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    border: none !important;
    outline: none !important;
  }

  /* Слайд в этой секции (только для reviews!) */
  .sbr-reviews-swiper .swiper-slide {
    -webkit-transform: translate3d(0,0,0) !important;
    transform: translate3d(0,0,0) !important;
    will-change: transform !important;
    order: 1;
  }

  /* На всякий случай: убрать возможные псевдо-элементы-бордеры */
  .sbr-review-card__media::before,
  .sbr-review-card__media::after {
    content: none !important;
  }

  /* Убрать все возможные красные границы */
  .sbr-review-card__media,
  .sbr-review-card__img,
  .sbr-reviews-swiper .swiper-slide {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  /* [FIX] Динамическая высота для изображений в отзывах - убрано фиксированное значение */
  .sbr-review-card__media {
    height: auto !important; /* Изменено с 240px для динамической подстройки */
  }

  .sbr-review-card__img {
    height: auto !important; /* Изменено с 100% для сохранения пропорций */
    max-height: none !important; /* Убрано ограничение максимальной высоты */
    object-fit: contain !important; /* Изменено с cover для показа полного изображения */
  }

  /* Стили для видео контейнеров в отзывах */
  .sbr-review-card__video-container {
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    background: #fff !important;
  }

  .sbr-review-card__video-container iframe,
  .sbr-review-card__video-container video {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 200px !important; /* Минимальная высота для видимости плеера */
    object-fit: contain !important;
    background: #fff !important;
    border: none !important;
    display: block !important;
  }

  /* Ensure proper aspect ratio for YouTube videos */
  .sbr-review-card__video-container iframe {
    aspect-ratio: 16/9 !important;
  }
}

/* === Mobile: hide debug buttons (fallback) === */
@media (max-width: 768px) {
  /* Скрываем отладочные кнопки на мобильных устройствах */
  button[style*="position: fixed"][style*="z-index: 99999"],
  button[style*="position: fixed"][style*="top: 10px"],
  button[style*="position: fixed"][style*="top: 50px"],
  button[style*="position: fixed"][style*="top: 90px"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  /* Дополнительно скрываем по содержимому кнопок */
  button[style*="position: fixed"]:contains("Debug"),
  button[style*="position: fixed"]:contains("Test") {
    display: none !important;
  }
}

/* === Responsive burger menu (phone and tablet) === */
@media (max-width: 1199px) {
  /* Mobile Menu Panel - Popup under header and ticker */
  .mobile-menu {
    position: fixed !important;
    top: 49px !important; /* высота только header */
    left: 0 !important;
    width: 100% !important;
    height: calc(100dvh - var(--sb-mobile-header-height)) !important; /* всё доступное пространство экрана */
    background: #fff !important;
    border-top: 2px solid #F3D1DC !important;
    z-index: 11000 !important;
    overflow-y: auto !important; /* включаем вертикальный скролл */
    -webkit-overflow-scrolling: touch !important; /* плавный скролл на iOS */
    transform: translateY(-100%) !important;
    transition: transform .28s ease !important;
  }
  
  body.is-menu-open .mobile-menu {
    transform: translateY(0) !important;
  }

  /* Block scroll when menu is open */
  body.is-menu-open {
    overflow: hidden !important;
    touch-action: none !important;
  }

  /* Top section with title and SALE button */
  .mobile-menu__top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid #eee !important;
  }

  .mobile-menu__title {
    font-family: Montserrat, sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    color: #000 !important;
  }

  .mobile-menu__sale-btn {
    display: inline-block !important;
    padding: 6px 16px !important;
    background: #000 !important;
    color: #fff !important;
    border-radius: 4px !important;
    font-family: Montserrat, sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    margin-left: 50% !important;
  }

  .mobile-menu__close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    background: none !important;
    border: none !important;
    color: #666 !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    margin-left: auto !important;
  }

  .mobile-menu__close:hover {
    background: #f0f0f0 !important;
    color: #333 !important;
  }

  .mobile-menu__close svg {
    width: 20px !important;
    height: 20px !important;
  }

  /* Mobile menu overlay */
  .mobile-menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 10999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.28s ease, visibility 0.28s ease !important;
  }

  body.is-menu-open .mobile-menu-overlay {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Categories list */
  .mobile-menu__list {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 16px 20px !important;
    list-style: none !important;
    height: auto !important; /* сброс фиксированной высоты */
    max-height: none !important;
    overflow: visible !important; /* чтобы не обрезало элементы */
  }

  .mobile-menu__link {
    text-decoration: none !important;
    font-family: Montserrat, sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    color: #000 !important;
    background: none !important;
    border: none !important;
  }
}

/* Безопасная зона под вырез экрана (iOS) */
@supports (padding: env(safe-area-inset-bottom)) {
  .mobile-menu {
    padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
  }
}

/* === Mobile Menu Z-Index Fix === */
@media (max-width: 1199px) {
  /* Ограничиваем z-index тикеров, чтобы они оставались под меню */
  .ticker,
  .ticker-mobile {
    position: relative !important;
    z-index: 100 !important;
  }
  
  /* Опустить любые фикс-виджеты/тикеры/дебаг-кнопки ниже меню, когда оно открыто */
  body.is-menu-open [class*="debug"],
  body.is-menu-open #sb-preloader,
  body.is-menu-open #sb-chat-icon,
  body.is-menu-open .tawk-widget,
  body.is-menu-open .dialog-buttons-container,
  body.is-menu-open .auth-modal,
  body.is-menu-open .wishlist-modal,
  body.is-menu-open .mini-cart {
    z-index: 10800 !important;
  }
  body.is-menu-open [class*="ticker"] {
    z-index: 100 !important;
  }
}

/* Десктопные кнопки каталога */
.header__catalog-btn,
.btn--sale,
.products__catalog-btn,
.collections__all-btn,
.slider__btn {
  border-radius: 4px !important;
}

/* === Girls title styling === */
.girls-title {
  font-family: 'Qwitcher Grypen', cursive;
  font-weight: 400;
  line-height: 1;
  display: inline-block;
  text-transform: none;
  margin-bottom: -5px;
  margin-left: 4px;
}

/* === Footer Social Icons - Mobile === */
.footer__social-link {
  display: inline-block;
  margin: 0;
}

.footer__social-link:first-child {
  margin-left: 0;
}

.footer__social-icon {
  width: 24px;
  height: 24px;
  display: block;
  transition: opacity 0.3s ease;
}

.footer__social-link:hover .footer__social-icon {
  opacity: 0.7;
}

/* ===== Мобильный тикер (без CSS-анимации) ===== */
.ticker-mobile {
  overflow: hidden;
  width: 100%;
  color: #111;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  position: relative !important;
  z-index: 100 !important; /* ограничиваем z-index, чтобы тикер оставался под меню */
}

.ticker-mobile__track {
  display: inline-flex !important;          /* ИСПРАВЛЕНО: inline-flex для естественной ширины */
  white-space: nowrap !important;
  will-change: transform;        /* подготовка к GPU */
  transform: translate3d(0,0,0); /* стартовое положение */
  backface-visibility: hidden;
  min-width: max-content !important;        /* ДОБАВЛЕНО: гарантируем полную ширину контента */
}

.ticker-mobile__item,
.ticker-mobile__divider {
  flex: 0 0 auto;                /* фиксируем ширину, чтобы не схлопывалось */
}

.ticker-mobile__item { padding: 0 12px; }
.ticker-mobile__divider { margin: 0 6px; opacity: .6; user-select: none; }

/* === Mobile/tablet header white background and black elements === */
@media (max-width: 1199px) {
  /* Белый фон для хедера */
  .header--mobile {
    background: #fff !important;
    /* position и z-index переопределены в финальном блоке РЕШЕНИЕ ПРОБЛЕМЫ STACKING CONTEXT */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  }

  /* Белый фон для тикера */
  .ticker-mobile {
    background: #fff !important;
    position: relative !important;
    z-index: 100 !important;
    color: #111 !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
  }

  /* Черный логотип в хедере */
  .header-mobile__bar .header__logo-img {
    filter: none !important; /* Убираем белый фильтр */
  }

  /* Черный бургер */
  .header-mobile__burger {
    color: #111 !important;
  }

  /* Убираем overlay для хедера и тикера */
  .header--mobile,
  .ticker-mobile {
    position: relative !important;
    z-index: 100 !important;
  }

  /* Overlay только для hero секции */
  .header__hero-bg-mobile__overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(20,20,20,0.3) !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  /* Hero секция остается поверх overlay */
  .hero--mobile {
    position: relative !important;
    z-index: 2 !important;
  }
}

/* === Mobile/tablet header structure and icons === */
@media (max-width: 1199px) {
  /* Структура хедера: бургер | логотип | иконки */
  .header-mobile__bar {
    /* position, z-index переопределены в финальном блоке РЕШЕНИЕ ПРОБЛЕМЫ STACKING CONTEXT */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 24px !important;
    height: 49px !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  }

  /* Бургер слева */
  .header-mobile__burger {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 8px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    color: #000000 !important;
    z-index: 2 !important;
  }

  .header-mobile__burger svg {
    width: 100% !important;
    height: auto !important;
  }

  .burger-line {
    width: 100% !important;
    height: 2px !important;
    background: #000000 !important;
    border-radius: 1px !important;
  }

  /* Логотип по центру */
  .header__logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 189px !important;
  }

  .header__logo-img {
    height: 23px !important;
    width: auto !important;
    max-width: 100% !important;
  }

  /* Иконки справа */
  .header-mobile__icons {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    z-index: 2 !important;
  }

  .header-mobile__icon-link {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    color: #101828 !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease !important;
  }

  .header-mobile__icon-link:hover,
  .header-mobile__icon-link:focus {
    opacity: 0.7 !important;
    outline: none !important;
  }

  .header-mobile__icon {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
  }
}

/* === Fixed header compensation === */
@media (max-width: 1199px) {
  /* Отступ только для основного контента */
  body.front-page--mobile,
  body .front-page--mobile,
  body main {
    padding-top: 49px !important;
  }

  /* Убираем отступ у hero-контейнера */
  .header__hero-bg-mobile {
    padding-top: 0 !important;
  }

  /* Тикер идет сразу после фиксированного хедера */
  .ticker-mobile {
    margin-top: 49px !important;
    position: relative !important;
    z-index: 100 !important;
  }

  /* Hero секция под тикером */
  .hero--mobile {
    position: relative !important;
    z-index: 2 !important;
  }
}

/* === Fix hero slider overlay on fixed header === */
@media (max-width: 1199px) {
  .header-mobile__bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000 !important;
  }

  .ticker-mobile {
    
    position: relative !important;
    z-index: 100 !important;
  }

  .header__hero-bg-mobile {
    position: relative !important;
    padding-top: 0 !important;
    z-index: 1 !important;
  }

  .hero--mobile,
  .slider__content--mobile,
  .slider__wrapper--mobile {
    position: relative !important;
    z-index: 1 !important;
  }

  .header__hero-bg-mobile__overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(20,20,20,0.3) !important;
    z-index: 1 !important;
  }

  body.front-page--mobile,
  body .front-page--mobile,
  body main {
    padding-top: 0px !important;
  }
}

/* === РЕШЕНИЕ ПРОБЛЕМЫ STACKING CONTEXT === */
@media (max-width: 1199px) {
  
  /* 1. УБИРАЕМ STACKING CONTEXT У РОДИТЕЛЯ ХЕДЕРА */
  .header--mobile {
    position: static !important;  /* убираем relative */
    z-index: auto !important;     /* убираем z-index */
    /* Остальные стили остаются */
  }
  
  .header__hero-bg-mobile {
    position: relative !important;  /* восстанавливаем relative для overlay */
    z-index: auto !important;     /* убираем z-index */
    will-change: transform; /* оптимизация для плавности */
  }
  
  /* 2. ХЕДЕР ПОЛУЧАЕТ СОБСТВЕННЫЙ ВЕРХНИЙ КОНТЕКСТ */
  .header-mobile__bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;  /* упрощенный z-index */
    /* Создаем новый stacking context поверх всего */
  }

  /* 3. ВОССТАНАВЛИВАЕМ АНИМАЦИЮ ТИКЕРА */
  .ticker-mobile__track {
    will-change: transform !important;           /* подготовка к анимации */
    /* Анимация тикера работает через JS с GPU ускорением */
  }

  /* 4. ОГРАНИЧИВАЕМ Z-INDEX КАРТОЧЕК И ИХ ЭЛЕМЕНТОВ */
  .products.products--mobile .product-card,
  body.home .products.products--mobile .product-card,
  .product-card.product-card--mobile {
    position: relative !important;
    z-index: 1 !important;          /* низкий приоритет */
  }

  .products.products--mobile .product-card__image-wrapper,
  body.home .products.products--mobile .product-card__image-wrapper,
  .product-card.product-card--mobile .product-card__image-wrapper {
    position: relative !important;
    z-index: auto !important;
  }

  /* 5. БЕЙДЖИ И ВИШЛИСТ - ЛОКАЛЬНЫЙ ПОРЯДОК ВНУТРИ КАРТОЧКИ */
  .products.products--mobile .product-card__badges,
  body.home .products.products--mobile .product-card__badges,
  .product-card.product-card--mobile .product-card__badges,
  .products.products--mobile .wishlist-btn,
  body.home .products.products--mobile .wishlist-btn,
  .product-card.product-card--mobile .wishlist-btn {
    position: absolute !important;
    z-index: 10 !important;         /* выше картинки, но внутри карточки */
  }

  /* Контейнер бейджей - правильное позиционирование */
  .products.products--mobile .product-card__badges,
  body.home .products.products--mobile .product-card__badges,
  .product-card.product-card--mobile .product-card__badges {
    top: 8px !important;
    left: 8px !important;
    display: flex !important;
    gap: 0 !important; /* так как бейдж всегда один */
  }

  .products.products--mobile .product-card__badge,
  body.home .products.products--mobile .product-card__badge,
  .product-card.product-card--mobile .product-card__badge {
    position: static !important; /* убираем absolute у самого бейджа */
    z-index: 10 !important;
    /* Улучшенные стили бейджа */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    background: #f3d1dc !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    width: auto !important;
    height: auto !important;
    white-space: nowrap !important;
    margin-top: 8px !important;
    margin-left: 8px !important;
  }

  /* 6. УБИРАЕМ OVERFLOW ЕСЛИ МЕШАЕТ */
  .header__hero-bg-mobile {
    overflow: visible !important;
  }
  
 

/* === ДОПОЛНИТЕЛЬНАЯ ЗАЩИТА ОТ МАГИЧЕСКИХ ПРАВИЛ === */
@media (max-width: 768px) {
  /* Убираем любые глобальные правила для элементов карточек */
  .product-card * {
    z-index: auto !important;
  }
  
  /* Восстанавливаем только необходимые z-index */
  .product-card__badges,
  .product-card__badge,
  .wishlist-btn {
    z-index: 10 !important;
  }
  
  /* Дополнительные стили для бейджей на мобильных */
  .product-card__badges {
    top: 8px !important;
    left: 8px !important;
    display: flex !important;
    gap: 0 !important;
  }
  
  .product-card__badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    background: #f3d1dc !important;
    color: #000 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    width: auto !important;
    height: auto !important;
  }
}

/* === CATALOG CATEGORIES MOBILE STYLES === */
@media (max-width: 768px) {
  .catalog-categories--mobile { 
    display: block !important; 
    margin: 12px 0 8px !important; 
  }
  
  .catalog-categories__grid--mobile {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    padding: 0 16px !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    /* Убираем overflow-x: auto - скролл только на wrapper */
  }
  
  .catalog-categories__item { 
    flex: 0 0 auto !important; 
    scroll-snap-align: start !important; 
  }
  
  .catalog-categories__link {
    display: inline-block !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(0,0,0,.12) !important;
    border-radius: 999px !important;
    background: #fff !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    color: #333 !important;
    transition: all 0.2s ease !important;
  }
  
  .catalog-categories__link:hover {
    background: #f5f5f5 !important;
    border-color: rgba(0,0,0,.2) !important;
  }
  
  .catalog-categories__link--current {
    background: #f3c1d2 !important;
    border-color: #f3c1d2 !important;
    color: #fff !important;
  }
  
  /* На всякий — убиваем любые display:none; от десктопа */
  .catalog-categories, .catalog-categories__grid { 
    display: block !important; 
  }
  
  /* Убираем скроллбар для красивого вида */
  .catalog-categories__scroll-wrapper::-webkit-scrollbar {
    display: none !important;
  }
  
  .catalog-categories__scroll-wrapper {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
  }
}

.catalog-header{
  padding: 40px 0px;
}

/* [2025-08-26] Мобильные стили для каталога - исправление отступов */
@media (max-width: 768px) {
  /* Боковые отступы для хлебных крошек и сортировки */
  .catalog-header,
  .catalog-toolbar {
    padding: 20px 16px !important;
  }
  
  /* STEP 1: Commenting out old catalog-products styles
  .catalog-products {
    padding: 0 !important;
    margin: 0 auto !important;
  }
  */
  
  /* Горизонтальный скролл категорий */
  .catalog-categories__grid--mobile {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    padding: 0 16px !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    /* Убираем overflow-x: auto - скролл только на wrapper */
  }

  .catalog-categories__item {
    flex: 0 0 auto !important;
    scroll-snap-align: start !important;
  }

  .catalog-categories__link {
    display: inline-block !important;
    padding: 6px 16px !important;
    border: 1px solid #000 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #000 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    background: #fff !important;
  }

  .catalog-categories__link--current {
    background: #000 !important;
    color: #fff !important;
  }

  /* Убираем скроллбар с grid - скролл теперь на wrapper */
}

.catalog-categories__empty {
  display: inline-block !important;
  padding: 8px 12px !important;
  color: #6b7280 !important;
  font-style: italic !important;
}

/* [FIX 2025-08-27] Force show filters button on mobile */
@media (max-width: 1024px) {
  .catalog-filters-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center !important;
    gap: 8px;
    padding: 12px 16px !important;
    background: #000000 !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: none !important;
  }

  .catalog-filters-btn:hover {
    background: #e8c4d0 !important;
    border-color: #e8c4d0 !important;
  }

  .catalog-toolbar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px !important;
    border-bottom: 1px solid #e5e5e5 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .catalog-toolbar__filters {
    flex: 1 1 50% !important;
    max-width: 50% !important;
  }

  .catalog-toolbar__sorting {
    flex: 1 1 50% !important;
    max-width: 50% !important;
    display: flex !important;
    align-items: center !important;
  }
}

/* [FIX 2025-08-27] Mobile categories horizontal ribbon */
.catalog-categories--mobile {
  display: block !important;
  margin: 12px 0 12px !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  background: #fff !important;
  border-bottom: 1px solid #e5e5e5 !important;
}

.catalog-categories__grid--mobile {
  display: flex !important;
  gap: 12px !important;
  padding: 4px 2px 18px !important;
  min-height: 40px !important;
}

.catalog-categories__item { 
  flex: 0 0 auto !important; 
}

.catalog-categories__link {
  display: inline-block !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
  border: 1px solid #e5e5e5 !important;
  background: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  color: #101828 !important;
  transition: all 0.2s ease !important;
}

.catalog-categories__link:hover {
  border-color: #d1d5db !important;
  background: #f9fafb !important;
}

.catalog-categories__link--current {
  border-color: #000000 !important;
  background: #000000 !important;
  color: #ffffff !important;
}

/* [FIX 2025-08-27] Mobile breadcrumbs styling */
.mobile-breadcrumbs {
  font-size: 14px;
  padding: 40px 20px 20px;
}

.mobile-breadcrumbs .woocommerce-breadcrumb {
  margin: 0;
  padding: 0;
}

.mobile-breadcrumbs .woocommerce-breadcrumb a {
  color: #666;
  text-decoration: none;
}

.mobile-breadcrumbs .woocommerce-breadcrumb a:hover {
  color: #f3d1dc;
}

/* [FIX 2025-08-27] Mobile product count styling */
.mobile-product-count {
  font-weight: 500;
  font-size: 15px;
  margin: 10px 15px;
  padding: 8px 0;
  color: #333;
}

/* [FIX 2025-08-27] Scroll indicator for mobile categories - FIXED STRUCTURE */
.catalog-categories__scroll-wrapper {
  position: relative;
  overflow: hidden;
}

.catalog-categories__scroll-inner {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.catalog-categories__scroll-inner::-webkit-scrollbar {
  display: none;
}

.catalog-categories__scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 0;
  background-color: #e5b3c0; /* мягкорозовый */
  border-radius: 2px;
  opacity: 0;
  transition: width 0.2s ease, opacity 0.4s ease, left 0.2s ease;
  z-index: 2;
}

/* [FIX 2025-08-27] Mobile toolbar fixes - prevent overflow and ensure proper layout */
@media (max-width: 768px) {
  .catalog-toolbar {
    /* Force mobile layout - HORIZONTAL */
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 6px 0 16px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    border-bottom: 1px solid #e5e5e5 !important;
    border-top: 0px;
  }

  .catalog-toolbar__filters {
    flex: 1 1 34% !important;
    max-width: 50% !important;
    min-width: 0 !important;
    flex-shrink: 0 !important;
  }

  .catalog-toolbar__sorting {
    flex: 1 1 50% !important;
    max-width: 50% !important;
    min-width: 0 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .catalog-toolbar__controls {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
  }

  /* Ensure WooCommerce select doesn't overflow */
  .catalog-toolbar__sorting select,
  .catalog-toolbar__sorting .woocommerce-ordering select {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* Ensure select takes full width of its container */
  .catalog-toolbar__sorting .woocommerce-ordering {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Override any desktop flexbox conflicts */
  .catalog-toolbar > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* Additional mobile-specific overrides */
  .catalog-toolbar {
    /* Reset any potential desktop styles */
    position: static !important;
    float: none !important;
    clear: both !important;
    overflow: visible !important;
  }

  /* Ensure proper spacing and prevent horizontal overflow */
  .catalog-toolbar__filters,
  .catalog-toolbar__sorting {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
  }

  /* Force mobile select styling */
  .catalog-toolbar__sorting select {
    height: 44px !important;
    padding: 8px 12px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    font-size: 14px !important;
    color: #333333 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* === Mobile WooCommerce pagination styles === */
@media (max-width: 768px) {
  /* Стили для пагинации в каталоге товаров */
  .catalog-pagination {
    padding: 20px 16px !important;
    text-align: center !important;
    overflow-x: hidden !important; /* Предотвращаем горизонтальное переполнение */
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* WooCommerce пагинация */
  .woocommerce-pagination {
    margin: 0 !important;
    padding: 0 !important;
  }

  .woocommerce-pagination ul {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .woocommerce-pagination li {
    margin: 0 !important;
    padding: 0 !important;
  }

  .woocommerce-pagination a,
  .woocommerce-pagination span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 8px 12px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
  }

  .woocommerce-pagination a:hover {
    background: #f5f5f5 !important;
    border-color: #d1d5db !important;
  }

  .woocommerce-pagination span.current {
    background: #f3c1d2 !important;
    border-color: #f3c1d2 !important;
    color: #fff !important;
  }

  .woocommerce-pagination .prev,
  .woocommerce-pagination .next {
    font-weight: 600 !important;
  }

  /* Адаптация для очень маленьких экранов */
  @media (max-width: 480px) {
    .woocommerce-pagination ul {
      gap: 4px !important;
      flex-wrap: wrap !important; /* Разрешаем перенос на новую строку */
      justify-content: center !important;
    }

    .woocommerce-pagination a,
    .woocommerce-pagination span {
      min-width: 36px !important;
      height: 36px !important;
      padding: 6px 8px !important;
      font-size: 13px !important;
    }
    
    /* Дополнительная защита от переполнения */
    .catalog-pagination {
      padding: 16px 12px !important;
    }
  }
}

/* === Mobile Product Gallery Styles === */
@media (max-width: 768px) {
  /* Убираем все ограничения у main на странице товара */
  main.product-page-mobile {
    width: 100% !important;
    max-width: 100vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: visible !important;
  }

  /* Основной контейнер мобильной галереи - максимальная специфичность */
  .product-page-mobile > .product-gallery-mobile,
  main.product-page-mobile > .product-gallery-mobile,
  main > .product-gallery-mobile,
  .product-gallery-mobile {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    margin: 0 !important;
    margin-bottom: 24px !important;
    padding: 0 !important;
    background: #fff !important;
    border-radius: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
  }

  /* Swiper контейнер */
  .product-gallery-mobile .product-gallery-swiper,
  .product-gallery-swiper {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* Swiper wrapper - гарантуємо 100% ширину */
  .product-gallery-mobile .swiper-wrapper,
  .product-gallery-swiper .swiper-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Слайды - МАКСИМАЛЬНА специфічність */
  .product-page-mobile .product-gallery-mobile .swiper-slide[style],
  .product-gallery-mobile .product-gallery-swiper .swiper-slide[style],
  .product-gallery-swiper .swiper-slide[style],
  .product-gallery-swiper .swiper-slide {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Изображения в слайдах */
  .product-gallery-swiper .studio-bags-main-img-mobile,
  .product-gallery-swiper .studio-bags-gallery-img-mobile,
  .product-gallery-swiper .studio-bags-placeholder-img-mobile {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* Пагинация */
  .product-gallery-swiper .swiper-pagination {
    position: relative !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    padding: 16px 0 !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 20px !important;
    min-width: 120px !important;
  }

  .product-gallery-swiper .swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    margin: 0 4px !important;
    background: #d4d4d4 !important;
    opacity: 0.5 !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
  }

  .product-gallery-swiper .swiper-pagination-bullet-active {
    background: #f3d1dc !important;
    opacity: 1 !important;
    transform: scale(1.3) !important;
  }

  /* Hover эффекты для пагинации */
  .product-gallery-swiper .swiper-pagination-bullet:hover {
    background: #f3d1dc !important;
    opacity: 0.8 !important;
  }

  /* Адаптация для очень маленьких экранов */
  @media (max-width: 480px) {
    .product-gallery-mobile {
      margin-bottom: 0px !important;
      border-radius: 0 !important;
    }

    .product-gallery-swiper .studio-bags-main-img-mobile,
    .product-gallery-swiper .studio-bags-gallery-img-mobile,
    .product-gallery-swiper .studio-bags-placeholder-img-mobile {
      max-height: none !important;
    }

    .product-gallery-swiper .swiper-pagination {
      padding: 20px 0 20px !important;
      min-width: 100px !important;
    }

    .product-gallery-swiper .swiper-pagination-bullet {
      width: 8px !important;
      height: 8px !important;
      margin: 0 3px !important;
    }
  }

  /* Адаптация для планшетов */
  @media (min-width: 769px) and (max-width: 1024px) {
    .product-gallery-mobile {
      margin-bottom: 32px !important;
      border-radius: 0 !important;
    }

    .product-gallery-swiper .studio-bags-main-img-mobile,
    .product-gallery-swiper .studio-bags-gallery-img-mobile,
    .product-gallery-swiper .studio-bags-placeholder-img-mobile {
      max-height: none !important;
    }

    .product-gallery-swiper .swiper-pagination {
      padding: 20px 0 !important;
      min-width: 140px !important;
    }
  }
}

/* Mobile styles for single product page */
/* ====================================== */

/* Основные стили для мобильной страницы товара */
.product-page-mobile {
  background: #fff;
  min-height: 100vh;
}

/* Заголовок товара */
.product-info__title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  
  color: var(--color-gray-900);
  font-family: var(--font-family-primary);
}

/* Статус наличия */
.product-info__stock {
  display: inline-block;
  border-radius: var(--border-radius-md);
  font-size: 14px;
  font-weight: 600;
  
  font-family: var(--font-family-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-info__stock.in-stock {
  color: #f3d1dc!important;
}

.product-info__stock.out-of-stock {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Цена товара */
.product-info__price {
  margin: 0 15px 20px 15px;
  font-family: var(--font-family-primary);
}

.product-info__price .price {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-gray-900);
  line-height: 1.2;
}

.product-info__price .price del {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-gray-500);
  text-decoration: line-through;
  margin-right: 12px;
  opacity: 0.7;
}

.product-info__price .price ins {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-gray-900);
  text-decoration: none;
}

.product-info__price .price .amount {
  font-weight: 700;
}

/* Атрибуты товара (для вариативных товаров) */
.product-info__attributes {
  margin: 0 15px 20px 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: var(--border-radius-lg);
  border: 1px solid #e9ecef;
}

.product-info__attributes .variations {
  margin: 0;
}

.product-info__attributes .variations td {
  padding: 8px 0;
  border: none;
  background: none;
}

.product-info__attributes .variations label {
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 8px;
  display: block;
}

.product-info__attributes .variations select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: var(--border-radius-md);
  background: #fff;
  font-family: var(--font-family-primary);
  font-size: 16px;
  color: var(--color-gray-900);
}

.product-info__attributes .variations select:focus {
  outline: none;
  border-color: var(--color-pink);
  box-shadow: 0 0 0 3px rgba(243, 209, 220, 0.1);
}

/* Сервисные бейджи */
.product-info__badges-mobile {
  margin: 0 15px 24px 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  overflow: hidden; /* Предотвращаем переполнение */
  width: calc(100% - 30px); /* Учитываем margin по бокам */
}

/* Мобильная версия: плашки в один ряд */
@media (max-width: 768px) {
  .product-info__badges-mobile {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    /* Убираем padding, так как уже есть margin: 0 15px */
    overflow: hidden; /* Предотвращаем переполнение */
    width: calc(100% - 30px); /* Учитываем margin по бокам */
  }
  
  .product-info__badges-mobile .service-badge {
    flex: 1 1 0;
    max-width: calc((100% - 12px) / 3); /* учёт двух gap по 6px */
    flex-direction: column;
    text-align: center;
    padding: 8px 4px;
    gap: 4px;
    box-sizing: border-box;
  }
  
  .product-info__badges-mobile .service-badge img {
    display: block;
    margin: 0 auto;
    width: 20px;
    height: 20px;
    margin-bottom: 4px;
  }
  
  .product-info__badges-mobile .service-badge span {
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
  }
}

.service-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: var(--border-radius-lg);
  border: 1px solid #e9ecef;
  transition: all var(--transition-normal);
  box-sizing: border-box;
}

.service-badge:hover {
  background: #f1f3f4;
  border-color: var(--color-pink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.service-badge img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.service-badge span {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-900);
  line-height: 1.4;
  font-family: var(--font-family-primary);
}

/* Табы товара */
.product-info__tabs-mobile {
  margin: 0 15px 24px 15px;
  border: 1px solid #f3d1dc;
  border-radius: 4px;
  
  overflow: hidden;
  background: #fff;
}

.product-tab-mobile {
  border-bottom: 1px solid #f3d1dc;
}

.product-tab-mobile:last-child {
  border-bottom: none;
}

.product-tab__toggle-mobile {
  width: 100%;
  padding: 16px 20px;
  background: #fff;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-gray-900);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: var(--font-family-primary);
  position: relative;
}

.product-tab__toggle-mobile:hover {
  background: #f8f9fa;
  color: var(--color-gray-900);
}

.product-tab__toggle-mobile.active {
  background: #f3d1dc75;
  color: var(--color-gray-900);
}

.product-tab__toggle-mobile::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform var(--transition-normal);
}

.product-tab__toggle-mobile.active::after {
  transform: translateY(-50%) rotate(180deg);
}

.product-tab__content-mobile {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-normal);
  background: #f8f9fa;
}

.product-tab__content-mobile.active {
  padding: 20px;
  max-height: none;
}

.product-tab__content-mobile p {
  margin: 0 0 16px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-gray-900);
  font-family: var(--font-family-primary);
}

.product-tab__content-mobile p:last-child {
  margin-bottom: 0;
}

.product-tab__content-mobile strong {
  font-weight: 600;
  color: var(--color-gray-900);
}

/* Contact links styling for mobile */
.product-tab__content-mobile .contact-link {
  color: #F3C1D2;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.product-tab__content-mobile .contact-link:hover {
  color: #E8A4B8;
  text-decoration: underline;
}

/* Product Parameters Mobile Styles */
.product-tab__content-mobile .sb-parameters-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-tab__content-mobile .sb-parameter-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f3d1dc;
}

.product-tab__content-mobile .sb-parameter-item:last-child {
  border-bottom: none;
}

.product-tab__content-mobile .sb-parameter-name {
  font-weight: 600;
  color: var(--color-gray-900);
  flex: 1;
  font-size: 14px;
}

.product-tab__content-mobile .sb-parameter-value {
  color: var(--color-gray-600);
  text-align: right;
  flex: 1;
  font-size: 14px;
}

/* Кнопка добавления в корзину */
.product-info__cart-mobile {
  margin: 0 15px 24px 15px;
}

.product-info__add-btn-mobile {
  width: 100%;
  padding: 16px 24px;
  background: var(--color-pink);
  color: var(--color-gray-900);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: var(--font-family-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-info__add-btn-mobile:hover {
  background: var(--color-pink-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.product-info__add-btn-mobile:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Форма добавления в корзину для простых товаров */
.product-add-to-cart-mobile {
  margin: 0;
}

.single-qty-wrapper-mobile {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.single-qty-controls-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #e9ecef;
}

.single-qty-minus-mobile,
.single-qty-plus-mobile {
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: var(--border-radius-md);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-gray-900);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-qty-minus-mobile:hover,
.single-qty-plus-mobile:hover {
  background: var(--color-pink);
  border-color: var(--color-pink);
  color: var(--color-gray-900);
}

.single-qty-input-mobile {
  width: 80px;
  height: 40px;
  text-align: center;
  border: 1px solid #d1d5db;
  border-radius: var(--border-radius-md);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-gray-900);
  background: #fff;
  font-family: var(--font-family-primary);
}

.single-qty-input-mobile:focus {
  outline: none;
  border-color: var(--color-pink);
  box-shadow: 0 0 0 3px rgba(243, 209, 220, 0.1);
}

/* Рекомендуемые товары */
.product-recommendations-mobile {
  margin: 0 15px 32px 15px;
}

.product-recommendations__header-mobile {
  margin-bottom: 20px;
  text-align: center;
}

.product-recommendations__title-mobile {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

.product-recommendations-swiper-mobile {
  overflow: visible;
  padding: 0 20px 50px;
  position: relative;
}

.product-recommendations-swiper-mobile .swiper-slide {
  height: auto;
  margin-bottom: 20px;
}

/* Pagination for recommended products */
.product-recommendations-pagination {
  bottom: 10px !important;
  left: 0 !important;
  width: 100% !important;
  position: absolute !important;
}

.product-recommendations-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #d1d5db;
  opacity: 1;
  transition: all 0.3s ease;
}

.product-recommendations-pagination .swiper-pagination-bullet-active {
  background: #f3d1dc;
  width: 24px;
  border-radius: 4px;
}

/* Стили карточек в рекомендованных товарах - приводим к виду главной */
.product-recommendations-mobile .product-card__image-wrapper {
  width: 100% !important;
  height: auto !important;
  position: relative !important;
  overflow: visible !important;
}

.product-recommendations-mobile .product-card__image-wrapper img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

/* Footer - горизонтальное расположение цены и кнопки */
.product-recommendations-mobile .product-card__footer {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: auto !important;
}

/* Цена */
.product-recommendations-mobile .product-card__price {
  font-size: 16px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: #333 !important;
  flex-shrink: 0 !important;
}

/* Кнопка добавления в корзину */
.product-recommendations-mobile .product-card__add {
  min-height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  background: #f3d1dc !important;
  color: white !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.product-recommendations-mobile .product-card__add:hover {
  background: #e8a8c0 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(243, 193, 210, 0.3) !important;
}

/* Иконка корзины */
.product-recommendations-mobile .product-card__add-icon {
  width: 14px !important;
  height: 14px !important;
  filter: brightness(0) invert(1) !important;
  margin-right: 8px !important;
}

/* Адаптация для маленьких экранов */
@media (max-width: 480px) {
  .product-info__title {
    font-size: 22px;
    
  }
  
  .product-info__stock {
    
    font-size: 14px;
    
  }
  
  .product-info__price {
    margin: 0 12px 16px 12px;
  }
  
  .product-info__price .price {
    font-size: 24px;
    margin: 0;
  }
  
  .product-info__price .price del {
    font-size: 16px;
  }
  
  .product-info__attributes {
    margin: 0 12px 16px 12px;
    padding: 16px;
  }
  
  .product-info__badges-mobile {
    margin: 0 12px 20px 12px;
    gap: 10px;
    flex-direction: row;
    justify-content: space-between;
  }
  
  .product-info__badges-mobile .service-badge {
    flex: 1 1 0;
    max-width: calc((100% - 12px) / 3); /* учёт двух gap по 6px */
    flex-direction: column;
    text-align: center;
    padding: 8px 4px;
    gap: 4px;
    box-sizing: border-box;
  }
  
  .product-info__badges-mobile .service-badge img {
    display: block;
    margin: 0 auto;
    width: 20px;
    height: 20px;
    margin-bottom: 4px;
  }
  
  .product-info__badges-mobile .service-badge span {
    text-align: center;
    font-size: 14px;
  }
  
  .service-badge {
    padding: 12px;
    gap: 10px;
  }
  
  .service-badge img {
    width: 20px;
    height: 20px;
  }
  
  .service-badge span {
    font-size: 13px;
  }
  
  .product-info__tabs-mobile {
    margin: 0 12px 20px 12px;
  }
  
  .product-tab__toggle-mobile {
    padding: 14px 16px;
    font-size: 15px;
  }
  
  .product-tab__content-mobile.active {
    padding: 16px;
  }
  
  .product-info__cart-mobile {
    margin: 0 12px 20px 12px;
  }
  
  .product-info__add-btn-mobile {
    padding: 14px 20px;
    font-size: 15px;
  }
  
  .single-qty-controls-mobile {
    padding: 12px;
    gap: 12px;
  }
  
  .single-qty-minus-mobile,
  .single-qty-plus-mobile {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .single-qty-input-mobile {
    width: 70px;
    height: 36px;
    font-size: 15px;
  }
  
  .product-recommendations-mobile {
    margin: 0 12px 24px 12px;
  }
  
  .product-recommendations__title-mobile {
    font-size: 18px;
  }
}

/* Адаптация для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
  .product-info__title {
    font-size: 28px;
    margin: 24px 20px 20px 20px;
  }
  
  .product-info__stock {
    padding: 10px 20px;
    font-size: 16px;
    margin: 0 20px 24px 20px;
  }
  
  .product-info__price {
    margin: 0 20px 24px 20px;
  }
  
  .product-info__price .price {
    font-size: 32px;
  }
  
  .product-info__price .price del {
    font-size: 16px;
  }
  
  .product-info__attributes {
    margin: 0 20px 24px 20px;
    padding: 24px;
  }
  
  .product-info__badges-mobile {
    margin: 0 20px 32px 20px;
    gap: 16px;
    flex-direction: row;
    justify-content: space-between;
  }
  
  .product-info__badges-mobile .service-badge {
    flex: 1 1 0;
    max-width: calc((100% - 12px) / 3); /* учёт двух gap по 6px */
    flex-direction: column;
    text-align: center;
    padding: 12px 8px;
    gap: 6px;
    box-sizing: border-box;
  }
  
  .product-info__badges-mobile .service-badge img {
    display: block;
    margin: 0 auto;
    width: 20px;
    height: 20px;
    margin-bottom: 6px;
  }
  
  .product-info__badges-mobile .service-badge span {
    text-align: center;
    font-size: 11px;
  }
  
  .service-badge {
    padding: 20px;
    gap: 16px;
  }
  
  .service-badge img {
    width: 28px;
    height: 28px;
  }
  
  .service-badge span {
    font-size: 16px;
  }
  
  .product-info__tabs-mobile {
    margin: 0 20px 32px 20px;
  }
  
  .product-tab__toggle-mobile {
    padding: 20px 24px;
    font-size: 18px;
  }
  
  .product-tab__content-mobile.active {
    padding: 24px;
  }
  
  .product-info__cart-mobile {
    margin: 0 20px 32px 20px;
  }
  
  .product-info__add-btn-mobile {
    padding: 20px 32px;
    font-size: 18px;
  }
  
  .single-qty-controls-mobile {
    padding: 20px;
    gap: 20px;
  }
  
  .single-qty-minus-mobile,
  .single-qty-plus-mobile {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  
  .single-qty-input-mobile {
    width: 90px;
    height: 44px;
    font-size: 18px;
  }
  
  .product-recommendations-mobile {
    margin: 0 20px 40px 20px;
  }
  
  .product-recommendations__title-mobile {
    font-size: 24px;
  }
}

/* Перераспределение блоков на мобильной странице товара */
/* ================================================== */

/* Контейнер заголовка, наличия, цены и цвета */
.product-info__summary-mobile {
  text-align: center;
  margin-bottom: 24px;
}

.product-info__summary-mobile .product-info__title {
  font-weight: 600;
  margin-bottom: 4px;
  margin-left: 0;
  margin-right: 0;
}

.product-info__summary-mobile .product-info__stock {
  font-size: 13px;
  color: var(--color-green);
  margin-bottom: 12px;
  margin-left: 0;
  margin-right: 0;
}

/* Ряд: цена + цвет (базовые стили) */
.product-info__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 15px;
  margin-bottom: 24px;
}

.product-info__row .product-info__price {
  flex: 0 0 50%;
  text-align: left;
  margin: 0;
  padding: 0;
}

/* Адаптация для маленьких экранов */
@media (max-width: 480px) {
  .product-info__summary-mobile .product-info__title {
    font-size: 24px;
  }
  
  .product-info__summary-mobile .product-info__stock {
    font-size: 12px;
  }
  
  .product-info__row {
    padding: 0 12px;
    margin-bottom: 20px;
  }
}

/* Адаптация для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
  .product-info__summary-mobile .product-info__title {
    font-size: 24px;
  }
  
  .product-info__summary-mobile .product-info__stock {
    font-size: 14px;
  }
  
  .product-info__row {
    padding: 0 20px;
    margin-bottom: 28px;
  }
}

/* [MOBILE ONLY] Price + Color Switches Row */
/* ========================================== */

/* Обновленные стили для ряда цена + свитчи */
.product-info__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 15px;
  margin-top: 10px;
}

.product-info__price {
  flex: 0 0 50%;
  text-align: left;
  margin: 0;
  padding: 0;
}

.product-info__row .sb-swatch-bar {
  flex: 0 0 50%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 8px;
  margin: 0;
}

.product-info__row .sb-swatch {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.product-info__row .sb-swatch:hover {
  transform: scale(1.1);
  border-color: var(--color-pink);
}

.product-info__row .sb-swatch.is-active {
  border: 2px solid var(--color-pink);
  transform: scale(1.15);
}

.product-info__row .sb-swatch span {
  width: 18px;
  height: 18px;
  display: block;
  border-radius: 2px;
}

/* Adaptive: smaller for narrow devices */
@media (max-width: 480px) {
  .product-info__row .sb-swatch {
    width: 18px;
    height: 18px;
  }

  .product-info__row .sb-swatch span {
    width: 16px;
    height: 16px;
  }

  .product-info__row .sb-swatch-bar {
    gap: 6px;
  }
}

/* ===== FIX cart counter position for mobile header ===== */
@media (max-width: 768px) {
  .header-mobile__icon-link .cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #f3d1dc;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    border-radius: 50%;
    text-align: center;
    z-index: 1;
  }
}

/* ===== Mobile header height and mini-cart positioning ===== */
.header-mobile__bar {
  height: var(--header-mobile-height);
}

@media (max-width: 768px) {
  .mini-cart {
    top: var(--header-mobile-height);
    height: calc(100% - var(--header-mobile-height));
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 2147483000; /* ниже хедера, но выше контента */
    margin-top: -29px;
  }

  .mini-cart__bonuses {
    font-size: 13px;
    margin-top: 8px;
  }

  .mini-cart__bonuses-row {
    gap: 8px;
    position: relative; /* создаём широкий containing block */
  }

  /* 1) Ширина и привязка к широкой строке */
  .mini-cart__info { position: static; }          /* убираем позиционированный предок-узкий якорь */

  /* 2) Сам tooltip — по центру экрана, широкий */
  .mini-cart__tooltip,
  .bonuses-tip__tooltip {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 32px);
    max-width: 320px;
    box-sizing: border-box;
    margin: 0;
    padding: 16px;
    white-space: normal;
    word-break: break-word;
    z-index: 2147483000; /* выше кнопок и карусели */
    text-align: left;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  }

  /* 3) Защитные меры от overflow */
  .mini-cart__header,
  .mini-cart__bonuses,
  .mini-cart__bonuses-row {
    overflow: visible !important;
  }

  /* ===== UNIVERSAL BONUS TOOLTIP MOBILE STYLES ===== */
  /* Мобильные стили для универсальных подсказок бонусов */
  .bonuses-tip { 
    position: static; 
  }
  
  .bonuses-tip__tooltip { 
    position: absolute; 
    right: 16px; 
    left: 16px;
    top: calc(100% + 8px);
    z-index: 1001; /* выше мобильных элементов */
  }

  /* Для профиля - используем те же стили центрирования */
  .sb-profile__bonuses-row .mini-cart__tooltip,
  .sb-profile__bonuses-row .bonuses-tip__tooltip {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 32px);
    max-width: 320px;
    z-index: 2147483000; /* выше мобильных элементов */
  }
}
@media (max-width: 768px) {
  /* STEP 1: Commenting out old catalog-container styles
  .catalog-container {
    margin: 0;
    padding: 0 16px;
    max-width: 100%;
  }
  */
  
  /* Search form wrapper */
  .search-form-wrapper {
    margin: 16px 0;
    padding: 0 16px;
  }

  /* Search form */
  .search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    border: 2px solid #f3c1d2;
    border-radius: 8px;
    overflow: hidden;
  }

  .search-form .search-field {
    flex: 1 !important;
    width: auto !important;
    max-width: none !important;
    padding: 12px 16px !important;
    font-size: 16px;
    border: none;
    background: #fff;
    outline: none;
    box-sizing: border-box;
  }

  .search-form .search-submit {
    flex-shrink: 0 !important;
    width: 44px !important;
    height: 44px !important;
    padding: 12px !important;
    border: none;
    background: #f3c1d2 !important;
    color: #333;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: background-color 0.2s;
  }

  .search-form .search-submit:hover {
    background: #e8a8c0;
  }

  .search-form .search-submit span {
    display: none; /* скрыть текст "Поиск", если он выводится */
  }

  /* Search page products grid */
  .search-page .products.products--mobile .products__grid--mobile {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 0 16px !important;
  }
  
  .search-page .product-card {
    width: 100% !important;
    margin: 0 !important;
  }

  /* Search result cards */
  .search-result-card {
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 16px;
    background: #fff;
  }

  .search-result-title {
    margin: 0 0 8px;
    font-size: 16px;
  }

  .search-result-title a {
    color: #333;
    text-decoration: none;
  }

  .search-result-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
  }

  .search-result-meta {
    font-size: 12px;
    color: #999;
  }

  /* No results state */
  .no-results {
    text-align: center;
    padding: 32px 16px;
  }

  .search-suggestions {
    margin-top: 24px;
  }

  .search-suggestions .button {
    display: inline-block;
    padding: 12px 24px;
    background: #f3c1d2;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s;
  }

  .search-suggestions .button:hover {
    background: #e8a8c0;
  }

  /* Empty search state */
  .search-empty-state {
    text-align: center;
    padding: 32px 16px;
    color: #666;
  }

  .search-empty-state p {
    font-size: 16px;
    margin: 0;
  }
}

/* Desktop search styles */
@media (min-width: 769px) {
  .search-page .products.products--mobile .products__grid--mobile {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    padding: 0 16px !important;
  }
}
.about-more {
  margin: 20px 0 0 0
}

/* ========================================
   МОБИЛЬНЫЙ ПРОФИЛЬ ПОЛЬЗОВАТЕЛЯ
   ======================================== */

.account-mobile {
  min-height: 100vh;
  background-color: #f8f9fa;
}

/* Хедер мобильного профиля */
.account-mobile__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: #fff;
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 0;
  z-index: 100;
}

.account-mobile__back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.account-mobile__back-btn:hover {
  background-color: #f8f9fa;
}

.account-mobile__title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.account-mobile__logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.account-mobile__logout-btn:hover {
  background-color: #f8f9fa;
  color: #c82333;
}

/* Навигация вкладок */
.account-mobile__nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 4px;
  background-color: #fff;
  border-bottom: 1px solid #e9ecef;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}

.account-mobile__nav::-webkit-scrollbar {
  display: none;
}

.account-mobile__nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 8px;
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  scroll-snap-align: center;
}

.account-mobile__nav-btn.active {
  color: #ffffff;
  background: #000000;
}

.account-mobile__nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background-color: #f3d1dc;
  border-radius: 1px;
}

.account-mobile__nav-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 4px;
}

.account-mobile__nav-btn span {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

/* Контент вкладок */
.account-mobile__content {
  flex: 1;
  padding: 0;
}

.account-mobile__tab {
  display: none;
  min-height: calc(100vh - 140px);
}

.account-mobile__tab.active {
  display: block;
  background-color: #fff!important;
}

.account-mobile__tab-content {
  padding: 40px 20px;
}

/* Unified account template: desktop and mobile class names share the same
   elements, so functionality is initialized only once. */
.account-mobile .my-account-spa__header {
  display: block;
  padding: 0;
  background: #fff;
}

.account-mobile .my-account-tab-btn--logout {
  display: none;
}

/* Недавно просмотренные товары */
.account-mobile__recently-viewed {
  margin-top: 24px;
}

.account-mobile__recently-viewed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.account-mobile__recently-viewed-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.account-mobile__recently-viewed-nav {
  display: flex;
  gap: 8px;
}

.account-mobile__recently-viewed-prev,
.account-mobile__recently-viewed-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.2s ease;
}

.account-mobile__recently-viewed-prev:hover,
.account-mobile__recently-viewed-next:hover {
  background-color: #f8f9fa;
  color: #333;
}

.account-mobile__recently-viewed-carousel {
  overflow: hidden;
}

.account-mobile__recently-viewed-swiper {
  overflow: visible;
}

.account-mobile__recently-viewed-swiper .swiper-slide {
  width: auto !important; /* Перекрываем style.css:3107-3112 */
  min-width: auto !important;
  max-width: none !important;
  transform: none !important;
}

/* Фиксируем ширину карточек в recently-viewed - перекрываем style.css с !important */
.account-mobile__recently-viewed-swiper .swiper-slide .mini-card {
  width: 160px !important;
  min-width: 160px !important;
  max-width: 160px !important;
}

.account-mobile__recently-viewed-swiper .mini-card__img-link {
  width: 160px !important;
  height: 160px !important;
}

.account-mobile__recently-viewed-swiper .mini-card__img {
  width: 160px !important;
  height: 160px !important;
}

.account-mobile__empty-message {
  text-align: center;
  color: #6c757d;
  font-size: 14px;
  margin: 20px 0;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

/* Адаптация контента WooCommerce для мобильного */
.account-mobile .woocommerce-MyAccount-content {
  padding: 0;
}

.account-mobile .woocommerce-MyAccount-content h2 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #333;
}

.account-mobile .woocommerce-MyAccount-content h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #333;
}

.account-mobile .woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.account-mobile .woocommerce-orders-table th,
.account-mobile .woocommerce-orders-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.account-mobile .woocommerce-orders-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.account-mobile .woocommerce-orders-table td {
  font-size: 14px;
  color: #666;
}

.account-mobile .woocommerce-orders-table tr:last-child td {
  border-bottom: none;
}

/* Формы в настройках */
.account-mobile .edit-account-form {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.account-mobile .edit-account-form__fields {
  margin-bottom: 20px;
}

.account-mobile .woocommerce-form-row {
  margin-bottom: 16px;
}

.account-mobile .woocommerce-form-row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.account-mobile .woocommerce-Input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.account-mobile .woocommerce-Input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

.account-mobile .woocommerce-Button {
  background-color: #000000;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.account-mobile .woocommerce-Button:hover {
  background-color: #0056b3;
}

/* Сообщения об ошибках и успехе */
.account-mobile .woocommerce-error,
.account-mobile .woocommerce-message {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

.account-mobile .woocommerce-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.account-mobile .woocommerce-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Wishlist контент */
.account-mobile .wishlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 16px 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.account-mobile .wishlist-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.account-mobile .wishlist-refresh-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.account-mobile .wishlist-refresh-btn:hover {
  background-color: #0056b3;
}

.account-mobile .wishlist-carousel {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
}

.account-mobile .wishlist-swiper {
  padding: 20px;
}

.account-mobile .wishlist-navigation {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  background-color: #f8f9fa;
}

.account-mobile .wishlist-prev,
.account-mobile .wishlist-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.2s ease;
}

.account-mobile .wishlist-prev:hover,
.account-mobile .wishlist-next:hover {
  background-color: #f8f9fa;
  color: #333;
}

/* Мобильные стили для wishlist (аналогично recently-viewed) */
.account-mobile__wishlist {
  margin-top: 24px;
}

.account-mobile__wishlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 20px;
}

.account-mobile__wishlist-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.account-mobile__wishlist-nav {
  display: flex;
  gap: 8px;
}

.account-mobile__wishlist-prev,
.account-mobile__wishlist-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.2s ease;
}

.account-mobile__wishlist-prev:hover,
.account-mobile__wishlist-next:hover {
  background-color: #e9ecef;
  color: #333;
}

.account-mobile__wishlist-carousel {
  padding: 0 20px;
}

.account-mobile__wishlist-swiper {
  overflow: visible;
  padding-bottom: 8px;
}

.account-mobile__wishlist-swiper .swiper-wrapper {
  display: flex;
  /* gap убран - Swiper сам управляет отступами через spaceBetween */
}

.account-mobile__wishlist-swiper .swiper-slide {
  flex-shrink: 0;
  width: auto !important; /* Позволяем Swiper управлять шириной - перекрываем style.css */
  min-width: auto !important;
  max-width: none !important;
  height: auto;
  transform: none !important; /* Отключаем трансформации из style.css */
}

/* Фиксируем ширину карточек в слайдах wishlist - перекрываем style.css с !important */
.account-mobile__wishlist-swiper .swiper-slide .mini-card {
  width: 160px !important; /* Фиксированная ширина карточки */
  min-width: 160px !important;
  max-width: 160px !important;
}

.account-mobile__wishlist-swiper .mini-card__img-link {
  width: 160px !important;
  height: 160px !important;
}

.account-mobile__wishlist-swiper .mini-card__img {
  width: 160px !important;
  height: 160px !important;
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 360px) {
  .account-mobile__header {
    padding: 12px 16px;
  }
  
  .account-mobile__title {
    font-size: 16px;
  }
  
  .account-mobile__nav-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 6px;
  }
  
  .account-mobile__nav-btn span {
    font-size: 11px;
  }
  
  .account-mobile__tab-content {
    padding: 16px;
    background-color: #fff!important;
  }
}

/* === Профиль: мобильные оверрайды для тултипа бонусов === */
/* Мобайл */
@media (max-width: 768px) {
  .woocommerce-account .mini-cart__tooltip,
  .woocommerce-account .bonuses-tip__tooltip {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: calc(100vw - 32px) !important;
    max-width: 320px !important;
    z-index: 2147483000 !important;
  }
}

/* === МОБИЛЬНЫЙ ФУТЕР С АККОРДЕОНАМИ === */
@media (max-width: 1199px) {
  /* Скрыть десктопный футер на мобиле */
  .footer:not(.footer-mobile) {
    display: none !important;
  }

  /* Показать мобильный футер */
  .footer-mobile {
    display: block;
    background: #f8f9fa;
    border-top: 1px solid #e5e5e5;
  }

  /* Бренд-блок (лого + соцсети) */
  .footer-mobile__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid #e5e5e5;
  }

  .footer-mobile__logo img {
    height: 32px;
    width: auto;
  }

  .footer-mobile__socials {
    display: flex;
    gap: 12px;
  }

  .footer-mobile__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
  }

  .footer-mobile__social-link:hover {
    transform: translateY(-2px);
  }

  .footer-mobile__social-icon {
    width: 20px;
    height: 20px;
  }

  /* Секции аккордеона */
  .footer-mobile__section {
    border-bottom: 1px solid #e5e5e5;
  }

  .footer-mobile__section:last-child {
    border-bottom: none;
  }

  /* Кнопки-переключатели */
  .footer-mobile__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    min-height: 48px;
    transition: background-color 0.2s ease;
  }

  .footer-mobile__toggle:hover {
    background: rgba(0,0,0,0.02);
  }

  .footer-mobile__toggle:focus {
    outline: 2px solid #f3c1d2;
    outline-offset: -2px;
  }

  .footer-mobile__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  /* Стрелка */
  .footer-mobile__chevron {
    color: #666;
    transition: transform 0.3s ease;
    flex-shrink: 0;
  }

  .footer-mobile__toggle[aria-expanded="true"] .footer-mobile__chevron {
    transform: rotate(180deg);
  }

  /* Панели контента */
  .footer-mobile__panel {
    padding: 0 16px 16px 16px;
    background: #fff;
  }

  .footer-mobile__panel[hidden] {
    display: none;
  }

  /* Списки */
  .footer-mobile__list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .footer-mobile__list li {
    margin-bottom: 8px;
  }

  .footer-mobile__list li:last-child {
    margin-bottom: 0;
  }

  .footer-mobile__list a {
    display: block;
    padding: 8px 0;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.2px;
  }

  .footer-mobile__list a:hover {
    color: #f3c1d2;
  }

  /* Контакты */
  .footer-mobile__contacts {
    padding: 8px 0;
  }

  .footer-mobile__contact-item {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
  }

  .footer-mobile__contact-item:last-child {
    margin-bottom: 0;
  }
}

/* ===== About Page (Mobile) ===== */
.about-page-mobile {
  display: block;
}

/* Canonical About template: preserve the former mobile layout responsively. */
.about-page--responsive .about-grid {
  display: block;
}

.about-page--responsive .about-left,
.about-page--responsive .about-right {
  display: block;
}

.about-page--responsive .about-content--desktop {
  display: none;
}

.about-page--responsive .about-content--mobile {
  display: block;
}

.about-page--responsive .about-mobile__image picture {
  display: block;
}

.about-page-mobile .container {
  max-width: 100%;
  padding: 20px 16px 72px;
}

/* Изображение сверху */
.about-mobile__image {
  margin-bottom: 24px;
}

.about-mobile__img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

/* Контентная область */
.about-mobile__content {
  text-align: left;
}

.about-mobile__title {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: #000000;
  text-align: center;
}

.about-mobile__content p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 16px 0;
  color: #333;
  text-align: justify;
}

.about-mobile__content p:last-child {
  margin-bottom: 0;
}

.about-mobile__content h1,
.about-mobile__content h2,
.about-mobile__content h3 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: #000;
}

.about-mobile__content ul,
.about-mobile__content ol {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.about-mobile__content li {
  margin-bottom: 8px;
}

.about-mobile__content li:last-child {
  margin-bottom: 0;
}

/* Fix: показать футер фильтров только внутри мобильного офф-канваса */
#catalog-filters-mobile .catalog-filters__footer {
  display: block !important;
}

#catalog-filters-mobile .catalog-filters__apply-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
#catalog-filters-mobile .shop-filters, .catalog-sidebar .shop-filters {
  border: none !important;
}
#catalog-filters-mobile .shop-filters__title {
  display: none !important;
}
#catalog-filters-mobile .shop-filters, .catalog-sidebar .shop-filters {
  width: auto !important;
}

/* ===== ADDED TO CART POPUP — MOBILE ===== */
@media (max-width: 768px) {
  .popup-added-to-cart__content {
    margin: 0 16px;
    max-width: calc(100% - 32px);
    width: 100%;
    padding: 24px;
  }
  
  .popup-added-to-cart__buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .popup-btn-checkout,
  .popup-btn-continue {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
  }
}

/* === Product bonuses (mobile) === */
@media (max-width: 1024px) {
  .product-bonuses--mobile {
    display: block !important;
    margin: 0 15px 20px;
  }
  
  .product-bonuses--mobile .product-bonuses__title {
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 10px;
    text-transform: uppercase;
  }
  
  .product-bonuses--mobile .product-bonuses__lead {
    margin: 0 0 14px;
    text-transform: uppercase;
  }
  
  .product-bonuses--mobile .product-bonuses__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 12px;
  }
  
  .product-bonuses--mobile .product-bonuses__card {
    border: 1px solid #F3C1D2;
    border-radius: 0;
    background: #fff;
    color: #000;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .product-bonuses--mobile .product-bonuses__text {
    margin: 0 0 8px;
    text-transform: uppercase;
  }
  
  .product-bonuses--mobile .product-bonuses__cta {
    font-weight: 700;
    text-decoration: underline;
    text-transform: uppercase;
  }
  
  .product-bonuses--mobile .product-bonuses__note {
    margin: 10px 0 0;
    text-transform: uppercase;
  }
  
  .product-bonuses--mobile a {
    color: #f3c1d2;
    text-decoration: underline;
    font-weight: 600;
  }
  
  .product-bonuses--mobile a:hover {
    text-decoration: none;
  }
  
  /* На всякий случай убираем возможные глобальные скрывающие правила */
  .product-bonuses--mobile[hidden] {
    display: block !important;
  }
}

/* === Product bonuses (mobile) — 2 columns === */
@media (max-width: 1024px) {
  /* по умолчанию уже 1 колонка — оставляем для очень узких экранов */
  /* c ~360px и шире — ставим в один ряд */
  @media (min-width: 360px) {
    .product-bonuses--mobile .product-bonuses__grid { 
      grid-template-columns: 1fr 1fr; 
      gap: 10px; 
    }
    .product-bonuses--mobile .product-bonuses__card { 
      height: 100%; 
      display: flex; 
      flex-direction: column; 
      justify-content: space-between; 
    }
    .product-bonuses--mobile .product-bonuses__cta { 
      margin-top: 8px; 
      align-self: flex-start; 
    }
  }
  /* подстрахуемся для популярных ширин 390/414/430 */
  @media (min-width: 390px) {
    .product-bonuses--mobile .product-bonuses__grid { 
      gap: 12px; 
    }
  }
}

/* === Loyalty Page (mobile) === */
.loyalty-page--mobile { padding: 56px 16px 80px; }

.loyalty-page--mobile .loyalty-hero { text-align: center; margin-bottom: 20px; }
.loyalty-page--mobile .loyalty-title { font-weight: 700; font-size: 28px; line-height: 1.2; margin: 0 0 6px; }
.loyalty-page--mobile .loyalty-subtitle { font-size: 16px; line-height: 24px; color: #667085; margin: 0 0 20px; }

.loyalty-page--mobile .loyalty-mobile-cards {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 12px;
  justify-items: center;
  margin-bottom: 28px;
}
.loyalty-page--mobile .product-bonuses__card {
  width: 300px;            /* допустимо 280–320; выбрал 300 для баланса */
  max-width: 90vw;
  border: 1px solid #F3C1D2;
  border-radius: 0;
}

.loyalty-page--mobile .loyalty-section-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 16px;
}

.loyalty-page--mobile .loyalty-steps { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 12px; }
.loyalty-page--mobile .loyalty-step { display: grid; grid-template-columns: 24px 1fr; column-gap: 10px; align-items: start; }
.loyalty-page--mobile .loyalty-step__index {
  width: 24px; height: 24px; border-radius: 50%; background: #000; color: #fff;
  display: inline-flex; justify-content: center; align-items: center; font-weight: 700; font-size: 14px;
}
.loyalty-page--mobile .loyalty-step__body p { margin: 0; }

.loyalty-page--mobile .loyalty-list { list-style: disc; padding-left: 18px; margin: 0 0 12px; }

.loyalty-page--mobile .loyalty-pill {
  width: 300px; max-width: 90vw;
  border: 1px solid #F3C1D2; border-radius: 0;
  padding: 10px 14px; text-align: center; font-weight: 700; text-transform: uppercase;
  margin: 18px;
}

.loyalty-page--mobile .loyalty-link { color: #F3C1D2; text-decoration: underline; font-weight: 700; }
.loyalty-page--mobile .loyalty-link:hover { text-decoration: none; }

.loyalty-page--mobile .loyalty-support { margin-top: 28px; }
.loyalty-page--mobile .loyalty-support__title { text-align: left; margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.loyalty-page--mobile .loyalty-support__text { margin: 0; font-size: 14px; line-height: 20px; }

/* === Policy Pages (mobile) === */
.policy-page--mobile { padding: 56px 16px 80px; }
.policy-page--mobile .policy-hero { text-align: center; margin-bottom: 16px; }
.policy-page--mobile .policy-title { font-weight: 700; font-size: 28px; line-height: 1.2; margin: 0; }

.policy-page--mobile .policy-section { margin: 20px 0 0; }
.policy-page--mobile .policy-h2 { font-size: 20px; font-weight: 700; margin: 16px 0 10px; }
.policy-page--mobile .policy-h3 { font-size: 16px; font-weight: 700; margin: 12px 0 6px; }

.policy-page--mobile p { margin: 0 0 10px; }
.policy-page--mobile .policy-list { padding-left: 18px; margin: 0 0 10px; }
.policy-page--mobile .policy-sign { margin-top: 16px; text-align: center; }

/* === SB CHAT MOBILE STYLES ================================================ */

/* Chat Title Mobile */
#sb-chat .chat-title {
  text-align: center;
  padding: 6px 0 6px 0;
  color: #f3d1dc;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid #f3d1dc;
  flex-shrink: 0;
}

/* Mobile Chat Form Adjustments */
@media (max-width: 768px) {
  #sb-chat form {
    position: relative;
  }

  #sb-chat .char-counter {
    font-size: 10px;
    right: 55px;
    padding: 1px 4px;
  }

  #sb-chat .send-btn {
    width: 45px;
  }

  #sb-chat input {
    padding: 10px 12px;
    font-size: 13px;
  }

  #sb-chat .msg.error {
    font-size: 12px;
    max-width: 95%;
  }
}


/* ===== MINI-CART BONUSES MOBILE - STYLED LIKE PROFILE ===== */
@media (max-width: 768px) {
  .mini-cart__bonuses-info {
    display: inline-block;
  }

  .mini-cart__bonuses-row {
    gap: 8px;
  }
}

/* ===== MOBILE FOOTER UPPERCASE STYLES ===== */
@media (max-width: 768px) {
  /* Mini-cart buttons uppercase */
  .mini-cart__actions .button {
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  
  /* Mini-cart title uppercase */
  .mini-cart__title {
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Mini-cart carousel title uppercase */
  .mini-cart-carousel__title {
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
}

/* ========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ ЧЕКАУТА
   ======================================== */

@media (max-width: 768px) {
  /* Контейнер чекаута */
  .checkout_container {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-sm);
  }
  
  /* Заголовки шагов */
  .checkout-field-heading__title {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .checkout-field-heading__title h3 {
    font-size: 18px;
    gap: var(--spacing-sm);
  }
  
  .checkout-field-heading__title h3::before {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  /* Шаги чекаута */
  .checkout-step[data-step="1"],
  .checkout-step[data-step="2"],
  .checkout-step[data-step="3"],
  .checkout-step[data-step="4"] {
    padding: var(--spacing-md);
    margin: 0;
  }
  
  /* Поля ввода */
  .checkout-step input[type="text"],
  .checkout-step input[type="email"],
  .checkout-step input[type="tel"],
  .checkout-step input[type="password"],
  .checkout-step input[type="number"],
  .checkout-step select,
  .checkout-step textarea {
    font-size: 16px; /* Предотвращает зум на iOS */
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
  }
  
  /* Половинные поля становятся полными */
  .checkout-step .form-row.form-row-first,
  .checkout-step .form-row.form-row-last {
    width: 100%;
    margin-right: 0;
    margin-bottom: var(--spacing-md);
  }
  
  /* Кнопки навигации */
  .checkout-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
  }
  
  /* Чекбокс согласия */
  .sb-terms-checkbox {
    padding: var(--spacing-sm);
    margin-top: var(--spacing-sm);
  }
  
  .sb-terms-checkbox label {
    font-size: 13px;
    gap: var(--spacing-xs);
  }
  
  .sb-terms-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }
  
  /* Отображение данных на шаге 4 */
  .checkout-review-data {
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  .review-data {
    grid-template-columns: 1fr;
    gap: var(--spacing-xs);
  }
  
  .review-section h5 {
    font-size: 14px;
  }
  
  .order-confirmation-header {
    padding: var(--spacing-sm);
  }
  
  .order-confirmation-header h4 {
    font-size: 14px;
  }
  
  .btn-prev,
  .btn-next,
  .btn-submit,
  .button.alt {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 16px;
    justify-content: center;
    min-width: auto;
  }
  
  /* Способы оплаты */
  .checkout-step .wc_payment_methods li {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
  }
  
  .checkout-step .wc_payment_methods li label {
    font-size: 15px;
  }
  
  /* Правая колонка (корзина) */
  .checkout-cart {
    order: -1; /* Показываем корзину сверху на мобилке */
    position: static;
    margin-bottom: var(--spacing-md);
  }
  
  /* Панели */
  .panel {
    margin-bottom: var(--spacing-md);
  }
  
  /* Радио кнопки и чекбоксы */
  .checkout-step input[type="radio"],
  .checkout-step input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .checkout_container {
    padding: 0 var(--spacing-xs);
  }
  
  .checkout-field-heading__title {
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .checkout-field-heading__title h3 {
    font-size: 16px;
  }
  
  .checkout-field-heading__title h3::before {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .checkout-step[data-step="1"],
  .checkout-step[data-step="2"],
  .checkout-step[data-step="3"],
  .checkout-step[data-step="4"] {
    padding: var(--spacing-sm);
  }
  
  .checkout-step input[type="text"],
  .checkout-step input[type="email"],
  .checkout-step input[type="tel"],
  .checkout-step input[type="password"],
  .checkout-step input[type="number"],
  .checkout-step select,
  .checkout-step textarea {
    padding: var(--spacing-sm) var(--spacing-md);
  }
}

/* ========== Floating Wishlist Icon (Mobile) ========== */
@media (max-width: 768px) {
  #sb-wishlist-icon {
    position: fixed;
    bottom: 40px;
    right: 110px; /* Слева от кнопки чата (chat на right: 40px, ширина 60px + отступ 10px = 110px) */
    width: 60px;
    height: 60px;
    background: #f3d1dc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(243, 209, 220, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
  }

  #sb-wishlist-icon:hover {
    background: #e8bfc9;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(243, 209, 220, 0.6);
  }

  #sb-wishlist-icon svg {
    width: 24px;
    height: 24px;
  }

  /* Скрываем кнопки когда открыто меню */
  body.is-menu-open #sb-wishlist-icon {
    z-index: 10800 !important;
  }
}

/* ========== Mobile Wishlist Modal ========== */
@media (max-width: 768px) {
  .wishlist-modal--mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
  }

  .wishlist-modal--mobile.open {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .wishlist-modal--mobile .wishlist-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
  }

  .wishlist-modal--mobile .wishlist-modal__content {
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    z-index: 1;
  }

  .wishlist-modal--mobile .wishlist-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  .wishlist-modal--mobile .wishlist-modal__title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin: 0;
  }

  .wishlist-modal--mobile .wishlist-modal__close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .wishlist-modal--mobile .wishlist-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    min-height: 0;
  }

  /* Empty state */
  .wishlist-modal--mobile .wishlist-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
  }

  .wishlist-modal--mobile .wishlist-empty__icon {
    margin-bottom: 20px;
    opacity: 0.5;
  }

  .wishlist-modal--mobile .wishlist-empty__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
  }

  .wishlist-modal--mobile .wishlist-empty__text {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px 0;
    line-height: 1.5;
  }

  .wishlist-modal--mobile .wishlist-empty__button {
    display: inline-block;
    padding: 12px 24px;
    background: #f3d1dc;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
  }

  .wishlist-modal--mobile .wishlist-empty__button:hover {
    background: #e8bfc9;
  }

  /* Wishlist items list */
  .wishlist-modal--mobile .wishlist-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* Wishlist item in mobile modal */
  .wishlist-modal--mobile .wishlist-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    position: relative;
  }

  .wishlist-modal--mobile .wishlist-item__image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
  }

  .wishlist-modal--mobile .wishlist-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .wishlist-modal--mobile .wishlist-item__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .wishlist-modal--mobile .wishlist-item__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
  }

  .wishlist-modal--mobile .wishlist-item__title a {
    text-decoration: none;
    color: inherit;
  }

  .wishlist-modal--mobile .wishlist-item__price {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  /* Price with discount styling */
  .wishlist-modal--mobile .wishlist-item__price ins {
    text-decoration: none;
    font-weight: 700;
    color: #333;
  }

  .wishlist-modal--mobile .wishlist-item__price del {
    font-size: 14px;
    font-weight: 400;
    color: #f3d1dc;
    text-decoration: line-through;
    order: -1; /* Старая цена сверху */
  }

  .wishlist-modal--mobile .wishlist-item__price .woocommerce-Price-amount {
    text-decoration: none;
  }

  .wishlist-modal--mobile .wishlist-item__actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
  }

  .wishlist-modal--mobile .wishlist-item__add-to-cart {
    flex: 1;
    padding: 8px 16px;
    border: 1px solid #f3d1dc;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s ease;
    cursor: pointer;
  }

  .wishlist-modal--mobile .wishlist-item__add-to-cart:hover {
    background: #e8bfc9;
  }

  .wishlist-modal--mobile .wishlist-item__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #666;
    transition: all 0.3s ease;
  }

  .wishlist-modal--mobile .wishlist-item__remove:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
  }

  /* Loading state */
  .wishlist-modal--mobile .wishlist-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
  }

  /* Auth Modal - Mobile Specific Styles */
  @media (max-width: 768px) {
    /* Forgot password link */
    .auth-form__forgot-link {
      font-size: 12px;
      margin-top: -4px;
    }

    /* Back to login link */
    .auth-form__back-link {
      font-size: 12px;
      margin-top: 12px;
    }

    /* Form description */
    .auth-form__description {
      font-size: 13px;
      margin: 0 0 12px 0;
    }

    /* Adjust modal content padding on mobile */
    .auth-modal__content {
      padding: 24px 20px;
    }

    /* Adjust input padding */
    .auth-form input {
      padding: 10px 14px;
      font-size: 13px;
    }

    /* Adjust button padding */
    .auth-form button {
      padding: 10px 14px;
      font-size: 13px;
    }
  }

  /* End mobile wishlist modal scope. */
}

/* End shared phone/tablet stacking-context scope. */
}

/* Keep the centered header logo clear of the icon group on narrow phones. */
@media (max-width: 480px) {
  .header-mobile__bar .header__logo {
    left: 43% !important;
    width: 140px !important;
  }
}

/* Product category archives: keep the shared responsive grid centered. */
@media (max-width: 1199px) {
  body.tax-product_cat ul.products.catalog-products {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    grid-template-columns: none !important;
  }

  body.tax-product_cat .products__grid--mobile.catalog-products {
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: repeat(2, minmax(0, 392px)) !important;
    justify-content: center !important;
    align-items: start !important;
    gap: 24px !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    overflow: visible !important;
  }

  body.tax-product_cat .products__grid--mobile > .product-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 392px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    justify-self: center !important;
  }

  body.tax-product_cat .products__grid--mobile > .product-card .product-card__image-wrapper,
  body.tax-product_cat .products__grid--mobile > .product-card .product-card__img,
  body.tax-product_cat .products__grid--mobile > .product-card .product-card__img img {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {
  body.tax-product_cat .products__grid--mobile.catalog-products {
    grid-template-columns: minmax(0, 392px) !important;
  }
}

/* Mobile header product search. */
@media (max-width: 1199px) {
  .header-mobile__search-btn {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    font: inherit !important;
    cursor: pointer !important;
  }

  .mobile-search-panel[hidden] {
    display: none !important;
  }

  .mobile-search-panel {
    position: fixed;
    top: 73px;
    right: 0;
    left: 0;
    z-index: 999;
    padding: 12px 16px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(16, 24, 40, 0.14);
    box-sizing: border-box;
  }

  .mobile-search-panel .mobile-search-form {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    border: 1px solid #101828;
    border-radius: 0;
    background: #fff;
    overflow: visible !important;
  }

  .mobile-search-panel .mobile-search-form__label {
    position: relative;
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
  }

  .mobile-search-panel .mobile-search-field {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 44px;
    padding: 10px 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #101828;
    font-size: 16px;
    line-height: 24px;
    outline: 0;
    box-sizing: border-box;
  }

  .mobile-search-panel .search-submit {
    display: flex !important;
    flex: 0 0 44px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #101828 !important;
    color: #fff !important;
    cursor: pointer;
  }

  .mobile-search-panel .search-suggest {
    right: auto;
    left: 0;
    width: calc(100vw - 78px);
    min-width: 0 !important;
    max-width: 720px;
    box-sizing: border-box;
  }
}
