html {
    scroll-behavior: smooth;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background: #f9f9f9;
}
:root {
    --primary-color: #5499e1;
    --price-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --sb-track: #f1f3f7;
    --sb-thumb: #c7cdd9;
    --sb-thumb-hover: #9aa5b5;
    /*      --primary-color-dark: #7f0fa6;*/
    /*      --primary-color-light: #e6ccf0;*/
}

.logo {
  display: inline-flex;
  align-items: center;
}

/* цветная (бывшая синяя) часть */
.logo-icon {
  width: 48px;          /* подгони под свой размер */
  height: 48px;
  background-color: var(--primary-color);
  -webkit-mask: url('/images/logo-white.png') no-repeat center / contain;
  mask: url('/images/logo-white.png') no-repeat center / contain;
}

/* чёрная часть + текст */
.logo-black-text {
  display: block;
  height: 48px;         /* чтобы по высоте совпало с иконкой */
    margin-left: -42px;
    margin-top: -3px;
}


/* если хочешь, чтобы логотип был только на мобилке (на всякий случай) */
@media (min-width: 769px) {
  .footer-logo {
    display: none;
  }
}

/* ========= Global tap-highlight reset (iOS/Android) ========= */
:where(a, button, input, select, textarea, label, summary, [role="button"], [tabindex]) {
  -webkit-tap-highlight-color: transparent; /* mobile Safari & Chrome */
}

/* ========= Remove default outlines WHEN NOT keyboard-focused ========= */
/* Keep accessibility: we only hide the outline for mouse/touch focus */
:where(a, button, input, select, textarea, [role="button"], [tabindex]) {
  outline: none;
}
:where(a, button, input, select, textarea, [role="button"], [tabindex]):focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* ========= Custom pretty focus ring (keyboard-only) ========= */
:root{
  --focus-color: var(--primary-color, #4f46e5);  /* your brand color */
  --focus-radius: 12px;                           /* matches your rounded UI */
}
:where(a, button, input, select, textarea, [role="button"], [tabindex]):focus-visible {
  outline: 0;
  border-radius: var(--focus-radius);
  /* soft dual ring */
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--primary-color) 55%, transparent),
    0 0 0 6px color-mix(in srgb, var(--primary-color) 18%, transparent);
  transition: box-shadow .15s ease;
}

/* ========= Firefox inner focus artifact fix ========= */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner {
  border: 0;
}

/* ========= Optional: subtle pressed state (no blue flash) ========= */
:where(button, [role="button"], .btn) {
  transition: transform .04s ease, box-shadow .15s ease, background-color .15s ease;
}
:where(button, [role="button"], .btn):active {
  transform: translateY(1px);
}

/* ========= Optional: opt-out per element ========= */
/* Add data-focus="native" to keep the browser default for specific items */
*[data-focus="native"] { -webkit-tap-highlight-color: auto; }
*[data-focus="native"]:focus-visible { box-shadow: none; outline: revert; }



body {
  background: linear-gradient(to bottom, #f9f9fc 0%, #eef2ff 100%);
  background-attachment: fixed;
}


.container {
    max-width: 1400px;
    margin: 0px auto;
    padding: 0 16px;
}
.logo-href
{
    text-decoration: none;
    color: black;
}
.cart-remove
{
    border: none;
    background: none;
}
header {
    background: #ffffff !important;
    backdrop-filter: none !important; /* сплошной белый фон */
    color: black;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e0e0e0;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

header.hide-on-scroll {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

header.show-on-scroll {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* Верхняя длинная полоса */
.top-promo-strip{
    margin-top: 16px;
  display:flex;
  gap:16px; padding:10px 16px;
  border-radius:16px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-color));
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  color:#3a3a3a; text-decoration:none;
  justify-content: center;
}
.top-promo-strip:hover{ filter:saturate(1.05); }
.top-promo-strip .tps-left{ font-weight:600; color: white; text-align: center;}
.top-promo-strip .tps-right{ opacity:.8; font-size:.85rem; }
@media (max-width:768px){
  .top-promo-strip{ padding:10px 40px; border-radius:12px; }
  .top-promo-strip .tps-right{ display:none; } /* по желанию — скрыть «мелкий шрифт» на мобилке */
}
/*.main-peek-carousel
{
    margin: 16px 0;
}*/
/* базовое "пилюля" */
/* размеры слайда + "ушки" (через slidesPerView/centeredSlides) */
.main-peek-swiper { padding: 16px 0; }
.swiper-slide { display:flex; justify-content:center; }

.main-slide{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
/*  aspect-ratio: 2.6/1;*/
  background: #f6f6f6;
  --dim: 0;                      /* сюда пишем степень затемнения 0..0.5 */
}
.main-link, .main-static{ display:block; width:100%; height:100%; }
.main-link img, .main-static img{ width:100%; height:100%; object-fit:cover; display:block; }

/* полупрозрачный слой, не ловит клики */
.main-slide::after{
  content:"";
  position:absolute; inset:0;
  background: rgba(0,0,0, var(--dim));
  pointer-events: none;
}
@media (max-width:991px){
  .main-slide{ border-radius:14px; 
/*    aspect-ratio:16/9;*/
     }
}



:root{
  --banner-bg1:#ffe5dd; --banner-bg2:#ffd8f0;
  --banner-txt:#4a3f3f; --banner-icon:#e94e3c;
}

/* Баннер */
.sale-info-banner{
  display:flex; align-items:center; gap:.75rem;
  padding:.65rem 1rem; border-radius:14px;
  background:linear-gradient(90deg,var(--banner-bg1),var(--banner-bg2));
  box-shadow:0 6px 24px rgba(0,0,0,.08);
  cursor:pointer; user-select:none; outline:none;
}
.sale-info-banner__icon{
  width:28px; height:28px; border-radius:8px;
  background:#fff; color:var(--banner-icon);
  display:grid; place-items:center; font-weight:800;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}
.sale-info-banner__text{ color:var(--banner-txt); font-weight:600 }

/* Модалка (без внешних библиотек) */
.modal{ position:fixed; inset:0; z-index:9999; display:none }
.modal.show{ display:block }
.modal__backdrop{
  position:absolute; inset:0;
  background:rgba(15,15,20,.35);
  backdrop-filter: blur(6px);
  opacity:0; animation: fadeIn .2s forwards;
}
.modal__dialog{
  position:relative; max-width:720px; margin:6vh auto;
  background:rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border:1px solid rgba(255,255,255,.4);
  border-radius:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.15);
  transform: translateY(12px); opacity:0;
  animation: popIn .22s ease forwards;
}
.modal__close{
  position:absolute; top:8px; right:10px;
  width:36px; height:36px; border-radius:10px;
  background:#fff; border:1px solid rgba(0,0,0,.06);
  box-shadow:0 6px 16px rgba(0,0,0,.08);
  font-size:20px; line-height:1; cursor:pointer;
}

.modal__header{ padding:20px 22px 0 }
.modal__title{ font-size:1.35rem; font-weight:800; color:var(--primary-color) }
.modal__subtitle{ color:#6b6b76; margin-top:4px }
.modal__content{ padding:16px 22px 8px }
.modal__footer{ padding:12px 22px 20px; display:flex; justify-content:flex-end; gap:8px }

.benefits{ margin:0; padding-left:1.1rem; color:#333 }
.benefits li{ margin:.35rem 0 }

.   
{
    color: var(--primary-color);
}

.tiers{
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:10px; margin:14px 0 6px;
}
.tier{
  background:linear-gradient(180deg,#fff,#f7f7fb);
  border:1px solid #eee; border-radius:14px;
  padding:14px; text-align:center;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}
.tier__h{ font-size:1.4rem; font-weight:800; color:#e94e3c }
.tier__p{ color:#666; margin-top:2px }

.note{ font-size:.9rem; color:#6b6b76; margin-top:10px }

.btn{ padding:.65rem 1rem; border-radius:12px; border:0; cursor:pointer }
.btn-primary{ background:var(--primary-color); color:#fff }
.btn-primary:hover{ filter:brightness(1.05) }

@keyframes fadeIn{ to{ opacity:1 } }
@keyframes popIn{ to{ opacity:1; transform:translateY(0) } }

/* Скролл-лок при открытой модалке */
.body-locked{ overflow:hidden }

.icon-link .icon {
  display: flex;
  width: 22px;   /* подгони под свой размер */
  height: 22px;
  background-color: var(--primary-color);
}

/* SEARCH */
.icon-link--search .icon {
  -webkit-mask: url('/icons/search.svg') no-repeat center / contain;
  mask: url('/icons/search.svg') no-repeat center / contain;
}

/* CART */
.icon-link--cart .icon {
  -webkit-mask: url('/icons/cart.svg') no-repeat center / contain;
  mask: url('/icons/cart.svg') no-repeat center / contain;
}

/* Ховер, активные состояния, тёмная тема и т.п. */
.icon-link:hover .icon,
.icon-link:focus .icon {
  background-color: var(--primary-color);
}

.catalog-href {
    text-decoration: none;
    color: black;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-nav {
    display: flex;
    justify-content: center;
    flex: 1;
    gap: 2rem;
}

.header-nav .headerButtons {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.5rem;
    transition: color 0.3s;
}

.header-nav .headerButtons:hover {
    color: #333;
}

.sub-item-link{
    text-decoration: none;
    color: #000000;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    white-space: nowrap;
}

.header-menu {
    display: none;
    gap: 1rem;
    white-space: nowrap;
}
.cart-link {
  position: relative;
  display: inline-block;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary-color);
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
/*  line-height: 1;*/
  font-weight: bold;
  display: none; /* скрываем, если 0 */
}


@media (min-width: 768px) {
    header {
        display: flex;
    }

    .header-menu {
        display: flex;
        margin-right: 10px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .mobile-footer {
        display: none;
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.owl-item .product-card
{
    margin: 0 0 16px 0;
}

.product-card {
    text-decoration: none !important;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
}

.product-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.product-info {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slider-product-info {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slider-product-info .product-title {
    color: black;
    font-size: 0.95rem;
    font-weight: 600;
    display: -webkit-box;          /* создаём флекс-бокс WebKit */
  -webkit-box-orient: vertical;  /* направление линий — вертикальное */
  -webkit-line-clamp: 2;         /* ограничиваем тремя строками */
  overflow: hidden;              /* обрезаем всё, что не влезает */
  
  /* Ну и для «…» */
  text-overflow: ellipsis;  
    min-height: calc(1.5*1.4 * 1.1rem); /* = 3.08rem */
}

.product-info .product-title {
    color: black;
    font-size: 0.95rem;
    font-weight: 600;
    display: -webkit-box;          /* создаём флекс-бокс WebKit */
  -webkit-box-orient: vertical;  /* направление линий — вертикальное */
  -webkit-line-clamp: 2;         /* ограничиваем тремя строками */
  overflow: hidden;              /* обрезаем всё, что не влезает */
  
  /* Ну и для «…» */
  text-overflow: ellipsis;  
    min-height: calc(2* 1.1rem); /* = 3.08rem */
}
.product-brand {
    font-size: 0.8rem;
    color: #555;
}
.product-rating {
    font-size: 0.8rem;
    color: #777;
}

.product-prices {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
}

.product-new {
    color: #e2001a;
    font-weight: bold;
    font-size: 1rem;
}
.product-old {
    text-decoration: line-through;
    font-size: 0.8rem;
    color: #999;
}

.product-button {
    margin-top: 0.5rem;
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 0.6rem;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-info {
        padding: 16px;
    }

    .slider-product-info {
        padding: 16px;
    }
}

.mobile-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: auto;
    background: #0000007d;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0;
    font-size: 0.75rem;
    margin: 0 4%;
    border-radius: 12px;
    z-index: 1000;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .24);
}

.mobile-footer a {
    color: #a215cc;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-footer a img {
    width: 24px;
    height: 24px;
}

@media (min-width: 768px) {
    .mobile-footer {
        display: none;
    }
}

.image-slider {
    text-decoration: none !important;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin: 1rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.image-slider::-webkit-scrollbar {
    display: none;
}

.image-slider img {
    /*      flex: 0 0 calc(100% / 6 - 12px);*/
    /*      max-width: calc(100% / 6 - 12px);*/
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    object-fit: cover;
    scroll-snap-align: start;
}

.title2{
  font-size: 24px;
  font-weight: 700;
}

.title-with-line{
  display: flex;
  margin: 0 0 .5rem 0;
  align-items: center;
  gap: 12px;                 /* отступ между текстом и линией */
}

/* зелёная полоса до конца контейнера */
.title-with-line::after{
  content: "";
  height: 3px;               /* толщина линии */
  background: var(--primary-color);       /* зелёный; можешь поставить var(--primary-color) */
  flex: 1;                   /* тянуться до края */
  border-radius: 2px;
  opacity: .8;               /* по желанию — полупрозрачность */
}


/* === Scroll-Slider: скрываем скроллбар и включаем flex === */
.scroll-slider {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding: 0.5rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

/* === Карточки в слайдере: по 5 в ряд на десктопе === */
.scroll-slider .scroll-product-card {
    flex: 0 0 calc(100% / 5 - 11px);
    max-width: calc(100% / 5 - 11px);
    scroll-snap-align: start;
}

.scroll-slider .product-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.scroll-slider::-webkit-scrollbar {
    display: none;
}

/* === На мобилке (<768px): по 3 карточки в ряд === */
@media (max-width: 767px) {
    .scroll-slider {
        gap: 15px;
    }
    .scroll-slider .product-card img {
        width: 100%;
        aspect-ratio: 3 / 4;
        object-fit: cover;
    }
    .scroll-slider .scroll-product-card {
        flex: 0 0 calc(100% / 3 - 10px);
        max-width: calc(100% / 3 - 10px);
        scroll-snap-align: start;
    }

    .image-slider img {
        /*        flex: 0 0 calc(100% / 3 - 12px);*/
        /*        max-width: calc(100% / 3 - 12px);*/
        aspect-ratio: 4 / 5;
        border-radius: 12px;
        object-fit: cover;
        scroll-snap-align: start;
    }

    .slider-product-info .product-title {
        color: black;
        font-size: 0.95rem;
        font-weight: 600;
        display: -webkit-box;          /* создаём флекс-бокс WebKit */
        -webkit-box-orient: vertical;  /* направление линий — вертикальное */
        -webkit-line-clamp: 3;         /* ограничиваем тремя строками */
        overflow: hidden;              /* обрезаем всё, что не влезает */
      
        /* Ну и для «…» */
        text-overflow: ellipsis;  
        min-height: calc(3 * 1.2 * 15px); /* = 3.08rem */
    }
    .container {
        margin: 14px auto 0;
    }
    .cart-count {
      position: absolute;
      top: -6px;
      right: -6px;
      background: var(--primary-color);
      color: white;
      font-size: 12px;
      padding: 2px 6px;
      border-radius: 50%;
    /*  line-height: 1;*/
      font-weight: bold;
      display: none; /* скрываем, если 0 */
    }
    .info-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
}

.site-info {
    background: #fff;
    color: #333;
    padding: 1rem 1rem;
    font-size: 0.9rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 12px 0px 60px 0px;
}

@media (min-width: 769px) {
    .info-container {
        max-width: 1240px;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: space-between;
    }
}





.info-block {
    flex: 1 1 100px;
    min-width: 200px;
}

.info-block h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.info-block p,
.info-block a {
    margin-bottom: 0.25rem;
    color: #444;
    text-decoration: none;
}

.category-list{
  flex: 1 1 auto;         /* чтобы занял всё свободное место в колонке */
  min-height: 0;          /* важно для scroll внутри flex-контейнера */
  overflow-y: auto;       /* скролл тут */
  padding-right: 6px;     /* чтобы не прилипал к правому краю */
  margin: 0;
}

/* Один элемент списка главной категории */
.cat-row{
  display: flex;
  align-items: center;
/*  gap: 10px;*/
  padding: 12px 0;
  border-bottom: 1px dotted rgba(0,0,0,.12);
  flex-wrap: wrap;   
}

/* Ссылка на главную категорию слева (иконка + текст) */
.cat-main-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  text-decoration: none;
}

.cat-item { color: var(--primary-color); } /* <-- тут задаём цвет сразу всей строке */

.catIcon, .subIcon{
  display: inline-block;
  width: 20px;
  height: 20px;
  /* Рисуем цветом текста (currentColor) поверх маски */
  background-color: currentColor;

  /* Маска из переменной --icon */
  -webkit-mask: var(--icon) no-repeat center / contain;
          mask: var(--icon) no-repeat center / contain;
}
.cat-title{
  font-size: 1rem;
  font-weight: 600;
  color: black;
}

/* Кнопка-стрелка справа */
.cat-arrow{
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  cursor: pointer;
}
.cat-arrow::after{
  content: '›';
  font-size: 20px;
  line-height: 1;
  transition: transform .2s ease;
  color: #111;
  opacity: .7;
}
.cat-item.open > .cat-arrow::after { transform: rotate(90deg); }

/* Список подкатегорий */
.subcategory-list{
    list-style-type: none;
  width: 100%;
  flex-basis: 100%;
/*  margin: 6px 0 0;*/
/*  padding: 0 0 0 40px;        /* отступ под иконку */*/
  display: none;                /* стартовое состояние */
  max-height: 0;                /* для анимации */
  overflow: hidden;
  transition: max-height .25s ease;
}
.cat-item.open > .subcategory-list{
  /* max-height задаёт JS; правило нужно лишь на случай отсутствия JS */
  display: block;
}

.category-list::-webkit-scrollbar{ width: 6px; }
.category-list::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.18); border-radius: 4px; }

.cat-arrow.is-hidden {
  display: none;               /* можно visibility:hidden; если нужен выравнивающий просвет */
  pointer-events: none;
}


.subcategory-list a{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
  padding: 6px 0;
  font-size: .95rem;
}

.sub-icon{ 
    width: 18px; 
    height: 18px; 
    opacity: .8; 
    mask: var(--icon) no-repeat center / contain;
    background-color: var(--primary-color);
}

.mainCatCopy a{
  color: var(--primary-color) !important;
  font-weight: 600;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1001;
    display: none;
}
.sidebar-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: white;
    z-index: 1002;
    padding: 1rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}
.sidebar-panel.open {
    left: 0;
}
.sidebar-overlay.show {
    display: block;
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: bold;
}
.sidebar-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}


/* (необязательно) убрать стандартные отступы в панели сайдбара */
.sidebar-panel{ gap: .5rem; }

/* Оверлей десктоп-корзины */
.desktop-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: none;
    justify-content: flex-end;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.desktop-cart-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

/* Панель десктоп-корзины */
.desktop-cart {
    background: #fff;
    width: 380px;
    max-width: 100%;
    height: 100%;
    padding: 1rem;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
}

.desktop-cart-overlay.active .desktop-cart {
    transform: translateX(0);
}

/* Оверлей мобильной корзины */
.mobile-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Мобильная корзина */
.mobile-cart {
    background: #fff;
    width: 100%;
    max-height: 70vh;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 1rem;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
/*    overflow-y: auto;*/
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.mobile-cart-overlay.active .mobile-cart {
    transform: translateY(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.cart-header button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.cart-items{
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:thin;
  scrollbar-color:var(--sb-thumb) var(--sb-track);
  scrollbar-gutter:stable;
  min-width:0;
}

.cart-item + .cart-item {
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto; /* thumb | info | remove */
  gap: 12px;
  align-items: start;
}

.cart-item .prPhoto {
  grid-column: 1;
  width: 64px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item .cart-info{ grid-column: 2; }
.cart-item .cart-remove{ grid-column: 3; align-self: start; }

/* Чуть компактнее заголовки/цены, чтобы освободить место */
.cart-item .cart-title{ font-weight: 700; margin: 0 0 2px; }
.cart-item .cart-price{ margin: 0 0 0px; }

.cart-info {
    flex: 1;
    min-width: 0;
}

.cart-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.checkout-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    text-decoration: none;
}

.cart-total
{
    font-weight: 600;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0rem;
}

.cart-quantity button {
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border: none;
    color: white;
    font-size: 15px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cart-quantity button:hover {
    background: #02b565; /* чуть темнее для наведения */
}

.qty-value {
    min-width: 24px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
}

/* Выпадающая панель категорий  */
.catalog-desktop-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 780px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    z-index: 100;
}

.catalog-wrapper {
    position: relative;
    padding: 0.5rem;
}

.catalog-column {
    width: 50%;
    padding: 1rem;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.catalog-column:last-child {
    border-right: none;
}

.category-item {
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: background 0.3s;
}

.category-item:hover {
    background: #f5f5f5;
}

.catIcon {
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
}

.sub-list {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
}



.sub-item {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: background 0.3s;
    cursor: pointer;
}

.sub-item:hover {
    background: var(--primary-color, #00cd72);
    color: white;
}

.thirdcat-item
{
    padding-left: 20px;
}

/* own corusel */
/* ===== Cross-sale carousel arrows ===== */

.home-block .owl-carousel {
    position: relative;
}

.home-block .owl-carousel .owl-nav {
    position: absolute !important;
    top: 50% !important;
    left: -5px !important;
    right: -5px !important;
    width: auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    padding: 0 !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;

    pointer-events: none !important;
    z-index: 20 !important;
}

.home-block .owl-carousel .owl-nav button.owl-prev,
.home-block .owl-carousel .owl-nav button.owl-next {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    margin: 0 !important;

    border: none !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: var(--primary-color, #4f98df) !important;

    font-size: 0 !important;
    line-height: 1 !important;

    box-shadow: 0 6px 16px rgba(6, 55, 74, 0.18);
    cursor: pointer;
    pointer-events: auto !important;
    transition: 0.2s ease;
}

.home-block .owl-carousel .owl-nav button.owl-prev:hover,
.home-block .owl-carousel .owl-nav button.owl-next:hover {
    background: var(--primary-color, #4f98df) !important;
    color: #fff !important;
}

.home-block .owl-carousel .owl-nav button.owl-prev::before,
.home-block .owl-carousel .owl-nav button.owl-next::before {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    font-size: 21px !important;
    font-weight: 800;
    line-height: 1 !important;

    position: relative;
    top: -4px;
}

.home-block .owl-carousel .owl-nav button.owl-prev::before {
    content: "‹";
}

.home-block .owl-carousel .owl-nav button.owl-next::before {
    content: "›";
}

.home-block .owl-carousel .owl-nav button span {
    display: none !important;
}

/* 1) Устанавливаем контейнеру карусели context для абсолютного позиционирования */
.owl-carousel {
  position: relative;
}

/* 2) Переносим точки внутрь картинки */
.owl-carousel .owl-dots {
  position: absolute;
  bottom: 10px;           /* отступ от низа слайда */
  left: 50%;              /* центр по горизонтали */
  transform: translateX(-50%);
  margin: 0;              /* убираем внешний отступ */
  display: flex;
  gap: 8px;
  z-index: 10;            /* поверх картинки */
}

/* 3) Подправляем сами точки */
.owl-carousel .owl-dot {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.6) !important;
  border-radius: 50%;
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}
.owl-carousel .owl-dot.active {
  background: var(--primary-color) !important;       /* или var(--primary-color) */
  transform: scale(1.2);
}
.owl-carousel .owl-dot:hover {
  background: rgba(255,255,255,0.8);
}
.cart-package{
  margin-top:8px;
  min-width:0;
  width:100%;
}

.cart-package-title{
  font-size:12px;
  font-weight:800;
  color:#0f172a;
  margin-bottom:6px;
}

.cart-package-list{
  display:flex;
  gap:8px;
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom:2px;
  width:100%;
  max-width:100%;
  min-width:0;
  scrollbar-width:thin;
}

.cart-package-item{
  flex:0 0 170px;
  display:flex;
  align-items:center;
  gap:8px;
  background:#f6f8fb;
  border-radius:12px;
  padding:8px;
}

.cart-package-thumb{
  flex:0 0 auto;
}

.cart-package-thumb img{
  width:42px;
  height:42px;
  border-radius:8px;
  object-fit:cover;
  display:block;
}

.cart-package-info{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.cart-package-name{
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  color:#0f172a;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.cart-package-qty{
  align-self:flex-start;
  font-size:10px;
  font-weight:800;
  background:var(--primary-color);
  color:#fff;
  padding:2px 7px;
  border-radius:999px;
}
/* SEARCH MODAL */
.search-modal{position:fixed;inset:0;z-index:9999;display:none}
.search-modal.show{display:block}
.search-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.35);backdrop-filter:saturate(120%) blur(2px)}
.search-panel{
  position:absolute;left:50%;transform:translateX(-50%);
  width:min(1200px, calc(100% - 24px)); border-radius:14px; overflow:hidden;
  background:#fff; box-shadow:0 20px 40px rgba(0,0,0,.18);
  top:12px; max-height:97%; display:flex; flex-direction:column;
}
.search-bar{display:flex;align-items:center;gap:8px;padding:12px;border-bottom:1px solid #eee}
.search-bar input{
  flex:1; padding:12px 14px; border:1px solid #e5e7eb; border-radius:10px;
  font-size:16px; outline:none;
}
.search-close{border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer;padding:6px 10px}
.search-fields-btn{border:1px solid #e5e7eb;background:#fff;border-radius:8px;padding:8px 10px;cursor:pointer}
.search-fields-popover{
  position:absolute; right:12px; top:56px; background:#fff; border:1px solid #e5e7eb;
  border-radius:10px; padding:10px; display:grid; grid-template-columns:1fr 1fr; gap:6px; box-shadow:0 10px 24px rgba(0,0,0,.12);
}
.search-fields-popover label{font-size:14px;color:#333;display:flex;gap:6px;align-items:center}

.search-meta{display:flex;justify-content:space-between;gap:8px;padding:8px 12px;color:#6b7280;font-size:14px}
/* Контейнер с результатами */
.search-results {
  padding: 0px 12px 12px 12px;

  display: flex;
  flex-wrap: wrap;          /* перенос */
  gap: 12px;

  overflow-y: auto;         /* скроллим только список */
  overflow-x: hidden;

  /* ---- ВАЖНО: фиксированная высота под две строки ---- */
  max-height: 97%; /* 2 строки карточек */

  /* если хочешь адаптив — можем позже вынести в media */
}

/* Карточка */
.search-results .search-card {
  flex: 0 0 calc(50% - 12px);   /* 2 карточки в ряд */
  max-width: calc(50% - 12px);
  height: auto;                /* фикс высота */
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
}
@media (min-width: 768px) {
  .search-results .search-card {
    flex: 0 0 calc(16.66% - 12px);
    max-width: calc(16.66% - 12px);
  }

  .search-results {
    max-height: 97%;
  }
}

@media (min-width: 1200px) {
  .search-results .search-card {
    flex: 0 0 calc(16.66% - 12px);
    max-width: calc(16.66% - 12px);
  }
}

.search-loader,.search-empty{padding:24px;text-align:center;color:#6b7280}



.search-results .search:hover{transform:translateY(-2px); box-shadow:0 8px 24px rgba(0,0,0,.08)}
.catalog-thumb{aspect-ratio:3/4;overflow:hidden}
.catalog-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.catalog-body{padding:10px}
.catalog-title{font-size:14px;line-height:1.25;margin:0 0 6px;height:2.5em;overflow:hidden}
.catalog-rating{font-size:12px;color:#555;margin-bottom:6px}
.catalog-prices{display:flex;gap:8px;align-items:center}
.catalog-price-new{font-weight:700}
.catalog-price-old{text-decoration:line-through;color:#9ca3af}

.product-new,
.product-old,
.product-prices,
.cart-price,
.catalog-price-new,
.catalog-price-old,
.catalog-prices,
.price,
[class*="price"],
[class*="Price"]{
  font-family: var(--price-font);
  font-variant-numeric: tabular-nums;
}

/* блокируем скролл страницы, когда открыта модалка */
body.no-scroll{overflow:hidden}

/* ==== СБРОС ДЕКОРАЦИЙ ДЛЯ ССЫЛОК В ХЕДЕРЕ/ФУТЕРЕ/КАРТОЧКАХ/ПОИСКЕ ==== */

/* Хедер и футер */
.header-nav a,
.mobile-footer a,
.catalog-desktop-dropdown a {
  color: inherit;
  text-decoration: none;
}
.header-nav a:hover,
.mobile-footer a:hover,
.catalog-desktop-dropdown a:hover {
  text-decoration: none;
}

/* Карточки товаров (и в слайдерах, и в поиске) */
.product-card,
.product-card:visited,
.catalog-card,
.catalog-card:visited {
  color: inherit;
  text-decoration: none;
}
.product-card:hover,
.catalog-card:hover {
  text-decoration: none;
}

/* Результаты модального поиска */
.search-results .search-card,
.search-results .search-card:visited,
.search-results .search-card:hover {
  color: inherit;
  text-decoration: none;
}

/* На всякий случай уберём подчёркивание у вложенных заголовков/текста внутри карточек */
.catalog-title,
.catalog-rating,
.catalog-prices span {
  text-decoration: none;
}
.search-fields-popover[hidden] { display: none !important; }

.policy-content {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
}

.policy-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
/*  margin-b/ottom: 1rem;*/
  color: var(--primary-color, #111);
}

.policy-section {
  margin-top: 1.8rem;
  padding: 1rem 1.2rem;
  background: rgba(0,0,0,0.03);
  border-radius: 10px;
}

.policy-section h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.policy-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.policy-list li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.3em;
}

.policy-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color, #e2001a);
  font-weight: bold;
}
/* изоляция: никаких .modal / .modal__dialog */
.pm-modal {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.5);
  z-index: 1065; /* выше bootstrap modal (1055/1060), при необходимости подними */
}
.pm-modal[hidden] { display: none !important; }

.pm__dialog {
    background:#fff;
  width:min(900px,92vw);
  max-height:85vh;
  border-radius:16px;
  padding:24px;
  position:relative;
  outline:none;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  overflow:hidden; /* ВАЖНО: переносим прокрутку в .pm__body */
}
.pm__close { position: absolute; top: 10px; right: 12px; font-size: 22px; background: none; border: 0; cursor: pointer; }

/* диалог не скроллится — без изменений */
.pm__dialog{
  overflow: hidden;
}

/* прокрутка только внутри тела */
.pm__body{
  max-height: calc(85vh - 48px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges; /* чтобы контент не прыгал при появлении скролла */

  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--pm-scroll-thumb, #c7c7cc)
                   var(--pm-scroll-track, #f1f1f3);
}

/* WebKit (Chrome/Safari/Edge) */
.pm__body::-webkit-scrollbar{
  width: 10px;
  height: 10px;
}
.pm__body::-webkit-scrollbar-track{
  background: var(--pm-scroll-track, #f1f1f3);
  border-radius: 999px;
}
.pm__body::-webkit-scrollbar-thumb{
  background: var(--pm-scroll-thumb, #c7c7cc);
  border-radius: 999px;
  border: 2px solid var(--pm-scroll-track, #f1f1f3); /* визуально тоньше */
}
.pm__body::-webkit-scrollbar-thumb:hover{
  background: var(--pm-scroll-thumb-hover, #b6b6bd);
}
.pm__body::-webkit-scrollbar-thumb:active{
  background: var(--pm-scroll-thumb-active, #9d9da3);
}

/* аккуратный фокус по табу */
.pm__body:focus-visible{
  outline: 2px solid var(--primary-color, #e2001a);
  outline-offset: 2px;
}
.catalog-desktop-dropdown {
  display: flex;
  align-items: flex-start;
}

.catalog-column {
  min-width: 260px;
  max-width: 260px;
}

.sub-list,
.third-list {
  display: none;
  flex-direction: column;
}

.third-categories {
  border-left: 1px solid rgba(0,0,0,0.05);
}

.category-item,
.sub-item,
.third-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

.category-item:hover,
.sub-item:hover,
.third-item:hover {
    background: var(--primary-color, #00cd72);
}

.third-item {
  padding-left: 20px;
}
