@font-face {
    font-family: 'Shelby';
    src: url('fonts/Shelby.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
  }

  @font-face {
    font-family: 'Idealist Sans';
    src: url('fonts/idealistsans.regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
  }

  @font-face {
    font-family: 'PT Sans Narrow';
    src: url('fonts/PTSansNarrow-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Asterisk Sans Variable';
    src: url('fonts/fonnts.com-Asterisk_Sans_Variable.otf') format('opentype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
  }

  :root{
    --card-w:clamp(18rem, 3vw + 22rem, 30rem);
    --img-h:clamp(23rem, 3.5vw + 28rem, 39rem);
    --content-h:clamp(6.5rem, 0.9vw + 7.5rem, 10rem);
    --detail-w:clamp(9rem, 1.4vw + 10rem, 14rem);
    --detail-h:clamp(2.8rem, 0.5vw + 3.2rem, 4rem);
    --callback-h:clamp(3.5rem, 0.8vw + 4rem, 5rem);
    --category-icon-size:clamp(2rem, 0.35vw + 2.4rem, 3rem);
    --inner-gutter:0rem;
    --cat-item-width:268px;
    --cat-gap:120px;
    --cat-strip-width:calc(var(--cat-item-width) * 3 + var(--cat-gap) * 2);
  }

  html{
    font-size: clamp(13px, 0.7vw + 12px, 18px);
  }

  *{box-sizing:border-box}
  
  /* Ensure scrolling is always allowed */
  html, body {
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
    overscroll-behavior-y: auto;
  }
  body{margin:0;font-family:"Idealist Sans", Arial, sans-serif;background:#EAEAEA;color:#111;-webkit-font-smoothing:antialiased;}

  /* Banner area with 10px side padding */
  .banner-wrap{padding:0 10px;background:#EAEAEA;}
  .banner{position:relative;margin:18px 0 7px 0;border-radius:18px;overflow:hidden;}
  .banner picture{display:block;width:100%;height:100%;}
  .banner img{display:block;width:100%;height:auto;object-fit:cover;}
  
.brand-guideline{
  position:absolute;
  right:40px;
  /* Отступ снизу как у кнопки .banner .cta */
  bottom: 2.25rem;
  /* Шрифт */
  font-family:"Idealist Sans", Arial, sans-serif;
  font-weight:400;
  font-style:normal;
  font-size:50px;
  line-height:90%;
  letter-spacing:0;
  text-align:right;
  color:#FFFFFF;
  pointer-events:none;
}

/* Логотип в левом верхнем углу (десктоп) */
.brand-logo{
  position:absolute;
  left:40px;
  top:40px;
  width:75.125px;
  height:101.99755859375px;
  object-fit:contain;
  z-index:10;
}

  .banner-text{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    bottom:199px;
    max-width:clamp(300px, 864px, 90%);
    width:864px;
    font-family:"Idealist Sans", Arial, sans-serif;
    font-weight:400;
    font-size:17px;
    line-height:20px;
    letter-spacing:0%;
    text-align:center;
    color:#fff;
    margin:0;
    padding:0 20px;
    z-index:10;
    opacity:1;
  }
  
  .banner .cta{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    bottom:2.25rem;
    width:37rem;
    height:8rem;
    border-radius:1.875rem;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    background:#fff;
    border:none;
    font-family:"Idealist Sans", Arial, sans-serif;
    font-weight:300;
    font-size:1.75rem;
    line-height:90%;
    letter-spacing:0;
    text-align:center;
    cursor:pointer;
    z-index:10;
    opacity:1;
    padding-bottom:5px;
    color:#111;
    -webkit-tap-highlight-color:transparent;
  }
  
  /* Стрелка в кнопке на десктопе - центрирована */
  .banner .cta::after{
    content: '';
    display:inline-block;
    width:38px;
    height:38px;
    background:url('images/banner_arrow.svg') no-repeat center;
    background-size:contain;
    flex-shrink:0;
    position:relative;
    top:0;
    margin-left:5px;
  }

  /* categories row */
  .categories-row{
    display:flex;
    align-items:center;
    padding:25px 120px 25px;
  gap:0;
    justify-content:space-between;
    max-width:100%;
    overflow:hidden;
  }

.categories-row--desktop{
  display:flex;
}

  .categories-mobile,
  .cat-dropdown--mobile{
    display:none;
  }

.categories-mobile__title{
  font-family:'Shelby', "PT Sans Narrow", Arial, sans-serif;
  font-weight:400;
  font-style:normal;
  font-size:48px;
  line-height:1;
  text-align:center;
  color:#7a1f2a;
  margin:0;
  padding:24px 0 12px;
  }

  .big-collection{
    margin-left:0;
    font-family:'Shelby', "PT Sans Narrow", Arial, sans-serif;
    font-weight:400;
    font-style:normal;
    font-size:70px;
    line-height:90%;
    letter-spacing:0%;
    text-align:right;
    color:#7a1f2a;
    white-space:nowrap;
    flex-shrink:0;
    transform:translateY(5px);
  }

  .categories-center{
    display:flex;
    justify-content:center;
    flex:1;
    position:relative;
    min-width:0;
    margin-left:48px;
  }

  .categories-list{
    display:flex;
    justify-content:center;
    gap:var(--cat-gap);
    align-items:center;
    font-family:"PT Sans Narrow", Arial, sans-serif;
    font-weight:400;
    font-size:clamp(1.2rem, 1.8vw, 2.1875rem);
    line-height:1.25rem;
    text-align:center;
    width:100%;
    max-width:var(--cat-strip-width);
  }
  .categories-list .seg-btn{
    color:#111; 
    text-decoration:none; 
    position:relative; 
    padding:1rem 0; 
    display:inline-block; 
    width:var(--cat-item-width);
    text-align:center;
    white-space:nowrap;
    flex-shrink:0;
    border:none;
    background:transparent;
    transition:all 0.3s ease;
    cursor:pointer;
    font:inherit;
  }
  .categories-list .seg-btn:hover{ text-decoration:none; }

  /* catalog arrows right side — use PNGs without circle */
  .cat-controls{ display:flex; gap:88px; align-items:center; flex-shrink:0; margin-left:48px; }
  .cat-arrow{ background:transparent; border:none; padding:0; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
  .cat-arrow img{ width:80px; height:20px; display:block; }
  .cart-icon{ width:56px; height:56px; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-left:88px; cursor:pointer; }
  .cart-icon svg{ width:100%; height:100%; display:block; color:#252525; }

  /* slider */
  .slider-wrap{ padding:0 clamp(0.5rem, 0.4vw + 0.6rem, 0.875rem) clamp(1.5rem, 1vw + 1.7rem, 2.5rem); position:relative; overflow-y:hidden; }
  
  /* Стрелки для мобильного заголовка скрыты на десктопе */
  .categories-mobile__header{ display:none; }
  .mobile-title-arrow{ display:none; }
  
  /* category dropdown - полностью переписанный */
  .cat-dropdown--desktop{ 
    position:relative;
    width:100%;
    height:0;
    overflow:hidden;
    transition:height 350ms ease;
  }
  .cat-dropdown--desktop.open{ 
    height:auto;
    min-height:200px; /* Минимальная высота для сдвига контента */
  }
  
  .cat-dd-panel--desktop{ 
    position:relative;
    width:100%;
    padding:24px 0;
    min-height:200px; /* Гарантируем минимальную высоту для сдвига */
  }
  
  .cat-dd-card{ 
    position:absolute; /* Возвращаем absolute для точного позиционирования */
    top:0;
    background:#fff; 
    color:#111; 
    border-radius:18px; 
    padding:clamp(20px, 3vw, 32px) clamp(24px, 4vw, 48px); 
    box-shadow:0 8px 32px rgba(0,0,0,0.12); 
    /* Убираем фиксированную ширину, делаем адаптивную под контент */
    width:auto;
    min-width:clamp(200px, 15vw, 300px);
    max-width:clamp(300px, 25vw, 450px);
    text-align:center;
    opacity:0; 
    visibility:hidden;
    transform:translateY(-20px);
    transition:opacity 280ms ease, visibility 280ms ease, transform 280ms ease; 
    left:0;
  }
  
  .cat-dd-card.active{ 
    opacity:1; 
    visibility:visible; 
    transform:translateY(0);
  }
  
  .cat-dd-card h4{ 
    display:none;
  }
  
  .cat-dd-item{ 
    font-family:"PT Sans Narrow", Arial, sans-serif;
    font-weight:400;
    font-size:clamp(1rem, 1.5vw, 1.75rem); 
    line-height:2.5rem; 
    margin:clamp(6px, 1vw, 12px) 0; 
    cursor:pointer;
    text-align:center;
    word-wrap:break-word; /* Разрешаем перенос длинных слов */
  }
  .cat-dd-item:hover{ text-decoration:underline; }

  /* anchor for absolute dropdown */
  .categories-row{ position:relative; }
  .slider{
    display:flex;
    gap:clamp(1rem, 0.6vw + 1.2rem, 1.75rem);
    overflow-x:auto;
    overflow-y:hidden;
    padding:clamp(0.5rem, 0.1vw + 0.55rem, 0.625rem) 0 clamp(2rem, 1vw + 2.2rem, 3rem);
    scroll-snap-type:x mandatory;
    scrollbar-gutter:stable both-edges;
    /* allow native vertical scroll through the horizontal slider */
    -webkit-overflow-scrolling: touch;
    touch-action: auto !important;
    overscroll-behavior: auto;
    -ms-touch-action: auto;
  }
  
  /* Убедимся, что дочерние элементы (карточки/картинки) не блокируют жесты */
  .slider, .slider * {
    touch-action: auto !important;
  }
  .slider::-webkit-scrollbar{ height:0.625rem }
  .slider::-webkit-scrollbar-thumb{ background:#ccc; border-radius:0.375rem }

  /* product card fixed sizes */
  .product-card{
    width:var(--card-w);
    min-height: calc(var(--img-h) + var(--content-h));
    background:transparent;
    border-radius:10px;
    padding:0;
    box-shadow:none;
    overflow:visible;
    flex:0 0 auto;
    scroll-snap-align:start;
    display:flex;
    flex-direction:column;
    box-sizing:border-box;
    position:relative;
  }

  .product-photo{
    width:100%;
    height:var(--img-h);
    object-fit:cover;
    display:block;
    border-radius:20px 20px 0 0;
  }

  /* content directly under image — no horizontal padding so edges align with image */
  .card-content{
    height:var(--content-h);
    padding:0;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    background:transparent;
    border-radius:0 0 10px 10px;
  }

  /* TITLE ROW: same horizontal inset as image edges (we use no gutter) */
  .title-row{
    display:flex;
    align-items:flex-start;
    gap:0.75rem;
    width:100%;
    padding:0.875rem var(--inner-gutter);
    box-sizing:border-box;
  }
  .product-title{
    font-family:"PT Sans Narrow", Arial, sans-serif;
    font-weight:400;
    font-size:clamp(1.1rem, 0.7vw + 1.2rem, 2rem);
    line-height:clamp(1.3rem, 0.7vw + 1.4rem, 2.25rem);
    margin:0;
    color:#111;
    flex:1 1 auto;
    white-space:pre-wrap;
    overflow:hidden;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    line-clamp:2;
    max-height:calc(clamp(1.3rem, 0.7vw + 1.4rem, 2.25rem) * 2.2);
    word-wrap:break-word;
    text-overflow:ellipsis;
  }

  /* detail button strictly to the right of title, on same height */
  .detail-btn{
    /* Пропорции: ширина/высота = 259/74 ≈ 3.5, шрифт/высота = 40/74 ≈ 0.54 */
    height:var(--detail-h);
    width:calc(var(--detail-h) * 3.5);
    border-radius:0.625rem;
    background:#252525;
    color:#fff;
    border:none;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-family:"PT Sans Narrow", Arial, sans-serif;
    font-weight:200;
    font-style:normal;
    font-size:calc(var(--detail-h) * 0.54);
    line-height:90%;
    letter-spacing:0%;
    text-align:center;
    flex:0 0 auto;
    text-transform:lowercase;
    padding:0 calc(var(--detail-h) * 0.2) 7px;
    margin-top:3px;
  }

  /* swatches aligned to full width */
  .swatch-row{
    display:flex;
    gap:0.625rem;
    padding:0 var(--inner-gutter);
    box-sizing:border-box;
    margin-top:0;
  }
  .card-swatch{ width:clamp(0.75rem, 0.3vw + 0.8rem, 1.125rem); height:clamp(0.75rem, 0.3vw + 0.8rem, 1.125rem); border-radius:50%; border:1px solid #ddd; cursor:pointer; }
  .card-swatch.active{ outline:0.1875rem solid rgba(0,0,0,0.06); }

  /* bottom row: price left, category icon exactly on right edge of card */
  .product-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:0.75rem;
    padding:0.875rem var(--inner-gutter);
    box-sizing:border-box;
  }
  .price{ font-family:"Idealist Sans", Arial, sans-serif; font-weight:400; font-size:clamp(1.5rem, 1vw + 1.6rem, 2.8125rem); line-height:1.25rem; margin:0; color:#111; }
  .price-actions{ display:flex; align-items:center; gap:0.75rem; margin-left:auto; }
  .category-img{ 
    width:var(--category-icon-size); 
    height:var(--category-icon-size); 
    object-fit:contain; 
    display:block; 
    cursor:pointer;
    transition:transform 0.2s ease, opacity 0.2s ease;
  }
  .category-img:hover{
    transform:scale(1.1);
    opacity:0.8;
  }
  .category-img:active{
    transform:scale(0.95);
  }
  
  /* Recommendations section in modal - десктоп */
  @media (min-width: 1051px) {
    #modalRecommendations {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      width: 100%;
      background: #fff;
      padding: 32px 28px 28px;
      border-top: 1px solid #eee;
      border-radius: 0 0 1.125rem 1.125rem;
      z-index: 1;
    }
    
    /* Модальне вікно має мінімальну висоту та паддінг знизу для рекомендацій */
    .modal .modal-content.has-recommendations {
      min-height: 900px !important;
      padding-bottom: 530px !important;
      position: relative;
    }
    
    /* Основний контент модалки не повинен перекривати рекомендації */
    .modal .modal-content.has-recommendations .modal-left,
    .modal .modal-content.has-recommendations .modal-right {
      z-index: 2;
      position: relative;
      background: #fff;
    }
  }
  
  /* Recommendations grid */
  .recommendations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 100%;
  }
  
  .recommendation-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  .recommendation-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
  }
  
  .recommendation-card-info {
    padding: 12px;
  }
  
  .recommendation-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .recommendation-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #111;
  }
  
  @media (max-width: 1050px) {
    #modalRecommendations {
      position: static !important;
      margin-top: 24px !important;
      padding-top: 24px !important;
      padding-bottom: 24px !important;
      width: 100% !important;
    }
    
    .recommendations-grid {
      grid-template-columns: 1fr;
      gap: 16px;
    }
    
    .recommendation-card {
      display: flex;
      flex-direction: column;
      height: auto;
    }
    
    .recommendation-card img {
      width: 100%;
      height: 300px;
      object-fit: cover;
    }
    
    .recommendation-card-info {
      padding: 12px;
    }
    
    .recommendation-card-title {
      font-size: 14px;
      margin-bottom: 6px;
    }
    
    .recommendation-card-price {
      font-size: 14px;
    }
  }

  /* Google Places API Autocomplete styles for mobile */
  .pac-container {
    z-index: 10000 !important;
    border-radius: 8px !important;
    margin-top: 4px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    font-family: inherit !important;
  }
  
  .pac-item {
    padding: 12px 16px !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    border-top: 1px solid #f0f0f0 !important;
    cursor: pointer !important;
  }
  
  .pac-item:first-child {
    border-top: none !important;
  }
  
  .pac-item:hover {
    background-color: #f8f9fa !important;
  }
  
  .pac-item-query {
    font-size: 15px !important;
    color: #111 !important;
  }
  
  .pac-matched {
    font-weight: 600 !important;
  }
  
  @media (max-width: 600px) {
    .pac-container {
      max-width: calc(100vw - 32px) !important;
    }
    
    .pac-item {
      padding: 14px !important;
      font-size: 16px !important;
      min-height: 48px !important;
    }
    
    .pac-item-query {
      font-size: 16px !important;
    }
  }

  /* modal: restored arrows and functionality */
  .modal{ position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,0.6); z-index:2000; padding:1.25rem; opacity:0; transition:opacity 0.4s ease; pointer-events:none; overflow-y:auto; }
  .modal.open{ opacity:1; pointer-events:auto; }
  .modal-content{ background:#fff; border-radius:1.125rem; padding:1.75rem; max-width:112.5rem; width:100%; display:flex; gap:1.5rem; align-items:flex-start; position:relative; opacity:0; --mc-t:-1rem; transition: transform 0.4s ease, opacity 0.4s ease; max-height:90vh; overflow-y:auto; }
  .modal.open .modal-content{ opacity:1; --mc-t:0; }
  .modal.closing .modal-content{ opacity:0; --mc-t:1rem; }

  /* ------- SCALE-ONLY modal (точный макет 1920x1080, масштабируется) ------- */
  /* принудительно делаем контейнер модалки «макетной» ширины 1920 */
  .modal .modal-content {
    width: 1920px;        /* макетная ширина */
    max-width: none;      /* отменяем ограничения */
    max-height: none;     /* убираем ограничение высоты для скейла */
    transform-origin: center center; /* масштабируем относительно центра */
    will-change: transform;
    /* объединяем scale и translate через переменные */
    transform: translateY(var(--mc-t, 0)) scale(var(--modal-scale, 1));
    transition: transform 0.4s ease, opacity 0.4s ease;
    touch-action: auto;
    overflow-y: visible;  /* убираем скролл внутри, скролл будет в overlay */
  }

  /* делаем сам overlay адаптивным и центрирующим */
  .modal {
    display: flex;
    align-items: flex-start; /* выравнивание по верху для прокрутки */
    justify-content: center;
    overflow-y: auto; /* скролл для модалки */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
    padding: 2rem 1.25rem; /* отступы сверху и снизу */
  }

  .close-btn{ 
    position: absolute; 
    right: 1.125rem; 
    top: 1.125rem; 
    background: #222; 
    color: #fff; 
    border-radius: 50%; 
    width: 2.75rem; 
    height: 2.75rem; 
    border: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 300;
    line-height: 1;
  }
  .close-btn:hover{
    background: #111;
    transform: scale(1.1);
  }

  /* Share button (desktop) - positioned to the left of the close button */
  .share-btn{
    background: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.2s ease;
  }
  .share-btn svg{ display:block; }
  .share-btn--desktop{
    position: absolute;
    /* sit to the left of the close button: close right=1.125rem + close width=2.75rem + gap */
    right: 4.375rem;
    top: 1.125rem;
    width: 2.75rem;
    height: 2.75rem;
    background: #222;
    color: #fff;
    border-radius: 50%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .share-btn--desktop svg{ width: 1.25rem; height: 1.25rem; }
  .share-btn--desktop:hover{
    background: #111;
    transform: scale(1.1);
  }
  /* Mobile share button is rendered inline inside the mobile column;
     hide it on desktop (the desktop column doesn't reach this element). */
  .share-btn--mobile{ display:none; }
  .modal-left{ display:flex; gap:0.75rem; align-items:flex-start; position:relative; flex-shrink:0; }
  .main-image{ 
    width:36.5625rem; 
    height:47.5625rem; 
    border-radius:1.25rem; 
    overflow:hidden; 
    background:#f6f6f6; 
    position:relative; 
  }
  .main-image img{ 
    width:100%; 
    height:100%; 
    object-fit:cover; 
    display:block;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  /* Анимация смены фото */
  .main-image img.fade-out{
    opacity: 0;
    transform: scale(0.95);
  }
  .main-image img.fade-in{
    animation: fadeInImage 0.4s ease forwards;
  }
  @keyframes fadeInImage {
    from {
      opacity: 0;
      transform: scale(1.05);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  /* Скрываем мобильные элементы на десктопе */
  .modal-thumbs-wrapper{ display:none; }
  .modal-right--mobile{ display:none; }

  /* Десктопные миниатюры - вертикально справа от фото с прокруткой */
  .thumbs-desktop{ 
    display:flex; 
    flex-direction:column; 
    gap:0.75rem; 
    width:10.1875rem; 
    align-items:center;
    max-height: calc(15.125rem * 3 + 0.75rem * 2 + 1rem); /* Видно только 3-4 миниатюры */
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 0.5rem;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Скрываем скроллбар */
    scrollbar-color: #ccc transparent;
  }
  .thumbs-desktop::-webkit-scrollbar{
    width: 0; /* Скрываем скроллбар */
    display: none;
  }
  .thumbs-desktop::-webkit-scrollbar-track{
    background: transparent;
  }
  .thumbs-desktop::-webkit-scrollbar-thumb{
    background: #ccc;
    border-radius: 3px;
  }
  .thumbs-desktop::-webkit-scrollbar-thumb:hover{
    background: #999;
  }
  .thumbs-desktop img{ 
    width:100%; 
    height:15.125rem; 
    flex: 0 0 15.125rem;
    object-fit:cover; 
    border-radius:1.25rem; 
    cursor:pointer; 
    border:2px solid transparent;
    transition: all 0.3s ease, transform 0.2s ease; /* Добавляем плавную анимацию */
  }
  .thumbs-desktop img.active{ 
    border-color:#111;
    transform: scale(1.05); /* Активная миниатюра чуть больше */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Добавляем тень для выделения */
  }
  .thumbs-desktop img:hover{
    transform: scale(1.02);
  }

  .modal-right{ flex:1; max-width:100%; overflow:visible; min-width:0; }
  .modal-right h2{ font-family:"PT Sans Narrow", Arial, sans-serif; font-size:3rem; margin:0 0 1.25rem 0; line-height:1; white-space: pre-wrap; }
  .modal-right p.desc{ font-family:"Idealist Sans", Arial, sans-serif; font-weight:400; font-size:1.5rem; line-height:2.1875rem; color:#333; margin-bottom:6.25rem; white-space: pre-wrap; }
  .modal-right > div[style*="width:100%"]{ width:100% !important; max-width:100% !important; }
  .modal-right img[alt="Розмірна сітка"]{ width:100% !important; max-width:100% !important; height:auto !important; display:block !important; }

  .bot-banner{ 
    margin-top:1.875rem; 
    position:relative;
  }
  .bot-banner img{ 
    display:block; 
    width:100%; 
    height:auto; 
  }
  .bot-banner-mobile-text{
    display:none;
  }
  .bot-banner-text{
    position:absolute;
    bottom:10.4167vw;
    right:5.2083vw;
    width:37.8646vw;
    height:10.9375vw;
    font-family:"Idealist Sans", Arial, sans-serif;
    font-weight:400;
    font-style:normal;
    font-size:1.5625vw;
    line-height:1.5625vw;
    letter-spacing:0%;
    opacity:1;
    color:#FFFFFF;
    display:block;
  }

  footer{ 
    padding:2rem 30px 2rem clamp(15px, 2vw, 40px); 
    background:#f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(20px, 3vw, 60px);
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  footer::-webkit-scrollbar {
    display: none;
  }
  
  .footer-payments{
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.2vw, 25px);
    flex-shrink: 0;
  }
  
  .payment-icon{
    display: block;
    opacity: 1;
    flex-shrink: 0;
    height: auto;
  }
  
  .payment-icon:nth-child(1){ width: clamp(60px, 6vw, 104px); }
  .payment-icon:nth-child(2){ width: clamp(50px, 5vw, 79px); }
  .payment-icon:nth-child(3){ width: clamp(45px, 4vw, 65px); }
  .payment-icon:nth-child(4){ width: clamp(50px, 5vw, 72px); }
  .payment-icon:nth-child(5){ width: clamp(70px, 7vw, 128px); }
  
  .footer-links{
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
  }
  
  .footer-link{
    font-family: "Idealist Sans", Arial, sans-serif;
    font-size: clamp(13px, 1vw, 16px);
    font-weight: 400;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    opacity: 1;
  }
  
  .footer-link:hover{
    text-decoration: underline;
  }
  
  .footer-social{
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.2vw, 20px);
    flex-shrink: 0;
  }
  
  .social-link{
    display: block;
    opacity: 1;
    transition: opacity 0.2s;
  }
  
  .social-link img{
    height: auto;
  }
  
  .footer-social a:nth-child(1) img{ width: clamp(45px, 3.5vw, 60px); }
  .footer-social a:nth-child(2) img{ width: clamp(45px, 3.5vw, 57px); }
  
  .social-link:hover{
    opacity: 0.8;
  }
  
  .footer-logo{
    flex-shrink: 0;
  }
  
  .footer-logo img{
    display: block;
    opacity: 1;
    width: clamp(40px, 3vw, 52px);
    height: clamp(55px, 4vw, 70px);
  }

  .callback-btn{
    background:transparent;
    color:#111;
    border:1px solid #111;
    width:clamp(200px, 15vw, 256px);
    height:clamp(50px, 4vw, 61px);
    padding:0;
    font-family:'Asterisk Sans Variable', Arial, sans-serif;
    font-size:clamp(16px, 1.2vw, 20px);
    font-weight:300;
    font-style:normal;
    line-height:1;
    letter-spacing:0%;
    border-radius:10px;
    cursor:pointer;
    transition:all 0.3s;
    flex-shrink: 0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    opacity:1;
    white-space: nowrap;
  }

  .callback-btn:hover{
    background:rgba(17,17,17,0.05);
  }

  /* Стили callback-btn будут переопределены в основном медиа-запросе @media (max-width:1050px) */

  /* modal additional styles */
  .big-price{ font-family:"Idealist Sans", Arial, sans-serif; font-weight:400; font-size:3.75rem; line-height:1; margin:1.25rem 0; color:#111; }
  .btn{ font-family:"Idealist Sans", Arial, sans-serif; font-weight:400; background:#111; color:#fff; border:1px solid #111; width:16.25rem; height:4.3125rem; border-radius:0.3125rem; font-size:1.125rem; cursor:pointer; }
  .ghost-btn{ font-family:"Idealist Sans", Arial, sans-serif; font-weight:400; background:transparent; color:#111; border:1px solid #111; width:16.25rem; height:4.3125rem; border-radius:0.3125rem; font-size:1.125rem; cursor:pointer; }
  .swatches{ display:flex; gap:0.75rem; margin:0 0 2.5rem 0; }
  .swatch{ width:4.4375rem; height:4.4375rem; border-radius:50%; border:2px solid #ddd; cursor:pointer; }
  .swatch.active{ border-color:#111; outline:2px solid rgba(0,0,0,0.1); }
  .controls{ margin:1.25rem 0; display:flex; align-items:center; flex-wrap:nowrap; gap:3rem; }
  .size-select{ font-family:"Idealist Sans", Arial, sans-serif; font-weight:400; width:12.0625rem; height:4.3125rem; border:1px solid #ddd; border-radius:0.3125rem; font-size:1rem; padding:0 0.75rem; box-sizing:border-box; }

  @media (max-width:1600px){
    :root{ --cat-item-width:200px; --cat-gap:70px; }
    .categories-row{
      padding:28px 72px 28px;
    }
    .big-collection{ font-size:3.5rem; width:230px; }
    .categories-center{ margin-left:36px; }
    .cat-controls{ gap:36px; margin-left:36px; }
    .cart-icon{ margin-left:66px; }
  }

  @media (max-width:1400px){
    :root{ --cat-item-width:160px; --cat-gap:45px; }
    .categories-row{
      padding:24px 40px 24px;
    }
    .big-collection{ font-size:3.1rem; width:210px; }
    .categories-center{ margin-left:28px; }
    .cat-controls{ gap:28px; margin-left:28px; }
    .cart-icon{ margin-left:52px; }
  }

  /* Специальный медиа-запрос для MacBook и средних разрешений */
  @media (max-width:1600px) and (min-width:1280px){
    :root{ 
      --card-w:19rem !important;
      --img-h:25rem !important;
      --content-h:7rem !important;
      --detail-w:10rem !important;
      --detail-h:2.8rem !important;
      --category-icon-size:2.2rem !important;
    }
    .product-title{ 
      font-size:1.2rem !important;
      line-height:1.4rem !important;
    }
    .price{ 
      font-size:1.6rem !important;
    }
    .detail-btn{
      transform:none !important;
    }
    .card-swatch{
      width:0.75rem !important;
      height:0.75rem !important;
    }
    .slider{
      gap:0.8rem !important;
      padding:0.4rem 0 1.5rem !important;
    }
    .slider-wrap{
      padding:0 0.4rem 1.5rem !important;
    }
  }

  /* Для MacBook Pro 14"/16" (1512-1728px широкие) */
  @media (max-width:1800px) and (min-width:1500px) and (max-height:1200px){
    :root{ 
      --card-w:20rem !important;
      --img-h:26rem !important;
      --content-h:7.5rem !important;
      --detail-w:10.5rem !important;
      --detail-h:3rem !important;
      --category-icon-size:2.3rem !important;
    }
    .product-title{ 
      font-size:1.25rem !important;
      line-height:1.45rem !important;
    }
    .price{ 
      font-size:1.7rem !important;
    }
    .detail-btn{
      transform:none !important;
    }
    .card-swatch{
      width:0.78rem !important;
      height:0.78rem !important;
    }
    .slider{
      gap:0.85rem !important;
      padding:0.4rem 0 1.5rem !important;
    }
    .slider-wrap{
      padding:0 0.45rem 1.5rem !important;
    }
  }

  /* Для MacBook Air/Pro 13" (эффективное разрешение ~1440x900) */
  @media (max-width:1500px) and (max-height:950px){
    :root{ 
      --card-w:17rem !important;
      --img-h:22rem !important;
      --content-h:6.5rem !important;
      --detail-w:9.5rem !important;
      --detail-h:2.7rem !important;
      --category-icon-size:2rem !important;
    }
    .product-title{ 
      font-size:1.1rem !important;
      line-height:1.3rem !important;
    }
    .price{ 
      font-size:1.5rem !important;
    }
    .detail-btn{
      transform:none !important;
    }
    .card-swatch{
      width:0.7rem !important;
      height:0.7rem !important;
    }
    .slider{
      gap:0.75rem !important;
      padding:0.35rem 0 1.4rem !important;
    }
    .slider-wrap{
      padding:0 0.4rem 1.4rem !important;
    }
  }

  /* Для небольших MacBook с разрешением 1280x800 */
  @media (max-width:1400px) and (max-height:900px){
    :root{ 
      --card-w:15rem !important;
      --img-h:19rem !important;
      --content-h:6rem !important;
      --detail-w:8.5rem !important;
      --detail-h:2.5rem !important;
      --category-icon-size:1.9rem !important;
    }
    .product-title{ 
      font-size:1rem !important;
      line-height:1.2rem !important;
    }
    .price{ 
      font-size:1.35rem !important;
    }
    .detail-btn{
      transform:none !important;
    }
    .card-swatch{
      width:0.68rem !important;
      height:0.68rem !important;
    }
    .slider{
      gap:0.7rem !important;
      padding:0.35rem 0 1.4rem !important;
    }
    .slider-wrap{
      padding:0 0.35rem 1.4rem !important;
    }
  }

  /* Для низких экранов типа 1200x600 */
  @media (max-width:1300px) and (max-height:650px){
    :root{ 
      --card-w:13rem !important;
      --img-h:16.5rem !important;
      --content-h:5.5rem !important;
      --detail-w:7.5rem !important;
      --detail-h:2.3rem !important;
      --category-icon-size:1.7rem !important;
    }
    .product-title{ 
      font-size:0.88rem !important;
      line-height:1.06rem !important;
    }
    .price{ 
      font-size:1.23rem !important;
    }
    .detail-btn{
      transform:none !important;
    }
    .card-swatch{
      width:0.62rem !important;
      height:0.62rem !important;
    }
    .slider{
      gap:0.6rem !important;
      padding:0.3rem 0 1.6rem !important;
      overflow-y:hidden !important;
    }
    .slider-wrap{
      padding:0 0.3rem 1.6rem !important;
      overflow-y:hidden !important;
    }
  }

  @media (max-width:1280px){
    :root{ --cat-item-width:150px; --cat-gap:36px; }
    .big-collection{
      font-size:2.7rem;
      width:200px;
      flex-shrink:0;
    }
    .categories-row{
      padding:20px 24px 20px;
    }
    .categories-center{ margin-left:24px; }
    .cat-controls{
      gap:22px;
      margin-left:24px;
    }
    .cart-icon{
      margin-left:44px;
      width:46px;
      height:46px;
    }
    .cart-icon svg{
      width:100%;
      height:100%;
      color:#252525;
    }
    .cat-arrow img{
      width:56px;
      height:16px;
    }
    .cat-dropdown--desktop{
      padding:0 12px;
    }
    .cat-dd-panel--desktop{
      padding:20px 0;
    }
    .cat-dd-card{
      position:absolute;
      padding:20px 30px;
      min-width:clamp(180px, 18vw, 250px);
      max-width:clamp(250px, 30vw, 380px);
    }
  }

  @media (max-width:1200px){
    :root{ --cat-item-width:138px; --cat-gap:28px; }
    .categories-row{
      padding:16px 20px 16px;
    }
    .big-collection{ font-size:2.4rem; width:180px; }
    .categories-center{ margin-left:20px; }
    .cat-arrow img{
      width:52px;
      height:14px;
    }
    .cart-icon{
      width:42px;
      height:42px;
      margin-left:36px;
    }
    .cart-icon svg{
      width:100%;
      height:100%;
      color:#252525;
    }
    .cat-controls{
      gap:18px;
      margin-left:20px;
    }
  }

  /* МОБИЛЬНАЯ ВЕРСИЯ для всех устройств < 1050px */
  @media (max-width:1050px){
    .brand-guideline{ display:none !important; }
    .brand-logo{ display:none !important; }
    .big-collection{ display:none; }
    :root{ 
      --card-w:26.25rem; 
      --img-h:34.0625rem; 
      --content-h:10.625rem; 
      --detail-w:12.5rem; 
      --detail-h:3.5rem; 
      --inner-gutter:0.75rem;
      --cat-item-width:140px; 
      --cat-gap:20px; 
    }
    .banner-wrap{
      padding:0;
    }
    .banner{
      margin:0;
      border-radius:0;
      min-height:100vh;
      display:flex;
      align-items:center;
      justify-content:center;
    }
    .banner picture{
      width:100%;
      height:100vh;
      display:flex;
      align-items:center;
      justify-content:center;
    }
    .banner img{
      width:100%;
      height:100vh;
      object-fit:cover;
    }
    .banner-text{
      width:calc(100% - 40px);
      max-width:90%;
      bottom:155px;
      font-size:14px;
      line-height:18px;
      padding:0 20px;
    }
    .banner .cta{
      width:calc(100% - 40px);
      max-width:350px;
      height:60px;
      font-size:1.2rem;
      bottom:80px;
    }

    .categories-row--desktop,
    .cat-dropdown--desktop{
      display:none !important;
    }

    .categories-mobile,
    .cat-dropdown--mobile{
      display:block;
    }

    .categories-mobile{
      border-top:none;
      overflow:visible;
      position:relative;
      padding:0;
      margin-bottom:0;
      margin-top:25px;
    }


    .mobile-categories-list{
      position:relative;
      display:flex;
      gap:6px;
      padding:6px 8px;
      background:transparent;
      user-select:none;
      width:100%;
      align-items:center;
    }
    
    .mobile-categories-list .seg-btn{
      position:relative;
      z-index:2;
      background:transparent;
      border:none;
      padding:10px 8px;
      border-radius:8px;
      font-family:"PT Sans Narrow", Arial, sans-serif;
      font-size:15px;
      color:#333;
      cursor:pointer;
      outline:none;
      white-space:nowrap;
      text-decoration:none;
      transition:color 0.2s ease;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:8px;
      flex:1 1 0;
      text-align:center;
    }

    .mobile-categories-list .seg-btn[aria-selected="true"]{
      color:#111;
      font-weight:600;
    }

    .mobile-categories-list .cart-btn{
      padding:10px 8px;
      position:relative;
    }

    .mobile-categories-list .cart-btn svg{
      width:18px;
      height:18px;
      display:block;
    }

    .mobile-categories-list .cart-badge{
      min-width:18px;
      height:18px;
      border-radius:999px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      background:#e53e3e;
      color:#fff;
      font-size:12px;
      padding:0 5px;
      margin-left:6px;
    }
    
    .mobile-categories-list .border-left,
    .mobile-categories-list .border-right{
      position:absolute;
      top:0;
      height:100%;
      pointer-events:none;
      box-sizing:border-box;
      border:2px solid #111;
      background:transparent;
      z-index:0;
      transition:width 220ms cubic-bezier(.2,.9,.3,1), left 220ms cubic-bezier(.2,.9,.3,1), right 220ms cubic-bezier(.2,.9,.3,1);
    }

    .mobile-categories-list .border-left{
      border-radius:0 12px 12px 0;
      left:0;
    }

    .mobile-categories-list .border-right{
      border-radius:12px 0 0 12px;
      right:0;
    }

    .mobile-categories-list .thumb{
      position:absolute;
      z-index:1;
      top:0;
      height:100%;
      left:0;
      width:0;
      background:#EAEAEA;
      border-radius:12px;
      transition:transform 200ms cubic-bezier(.2,.9,.3,1), width 200ms cubic-bezier(.2,.9,.3,1);
      pointer-events:none;
      box-shadow:0 1px 0 rgba(0,0,0,0.03);
    }
    
    .cat-controls{
      display:none !important;
    }

    .cat-dropdown--mobile{
      padding:0;
      width:100vw;
      margin-left:calc(-50vw + 50%);
      position:relative;
      left:0;
      right:0;
      max-height:0;
      overflow:hidden;
      transition:max-height 350ms ease;
      margin-bottom:0;
    }

    .cat-dropdown--mobile.open{
      max-height:700px; /* Увеличиваем для мобильных тоже */
      overflow-y:auto;
    }

    .cat-dropdown--desktop{
      margin-left:auto;
      margin-right:auto;
      max-height:0;
    }

    .cat-dd-panel--mobile{
      padding:20px 20px;
      min-height:0;
      margin-left:0 !important;
      width:100%;
      display:block;
      max-width:none;
      box-sizing:border-box;
    }

    .cat-dd-panel--mobile .cat-dd-card{
      position:relative !important;
      left:auto !important;
      top:auto !important;
      padding:0;
      width:100% !important;
      max-width:none !important;
      display:none;
      margin:0;
      background:transparent;
      box-shadow:none;
      border-radius:0;
    }

    .cat-dd-panel--mobile .cat-dd-card.active{
      display:block !important;
      width:100% !important;
    }

    .cat-dd-panel--mobile .cat-dd-item{
      text-align:center;
      font-size:1.2rem;
      line-height:2rem;
      margin:10px 0;
      padding:8px 0;
      width:100%;
    }

    :root{ 
      --card-w:calc(100vw - 40px);
      --img-h:auto;
      --content-h:140px; 
      --detail-w:120px; 
      --detail-h:40px; 
      --inner-gutter:12px; 
    }
    /* NEW COLLECTION с стрелками на мобилке */
    .categories-mobile__header{
      display:flex !important;
      align-items:center;
      justify-content:space-between;
      padding:16px 20px;
      margin:0;
    }
    .categories-mobile__title{
      font-family:'Shelby', "PT Sans Narrow", Arial, sans-serif;
      font-weight:400;
      font-size:2.5rem;
      text-align:center;
      flex:1;
      text-transform:lowercase;
    }
    .mobile-title-arrow{
      display:flex !important;
      background:transparent;
      border:none;
      padding:0;
      cursor:pointer;
      align-items:center;
      justify-content:center;
      width:45px;
      height:45px;
      flex-shrink:0;
    }
    .mobile-title-arrow img{
      width:45px;
      height:auto;
      display:block;
    }
    
    .slider-wrap{
      padding:0;
      margin-top:0;
      overflow:visible;
      position:relative;
    }
    .slider{
      gap:20px;
      padding:20px;
      padding-bottom:60px;
      touch-action:auto !important;
      -webkit-overflow-scrolling:touch;
      scrollbar-width:none;
      scroll-snap-type:x mandatory;
      scroll-padding:20px;
      margin:0;
      justify-content:flex-start;
      overflow-x:scroll;
    }
    .slider::-webkit-scrollbar{
      display:none;
    }
    .product-card{
      width:calc(100vw - 40px);
      min-height:auto;
      overflow:hidden;
      margin-bottom:0;
      scroll-snap-align:start;
      flex-shrink:0;
    }
    .product-photo{
      width:100%;
      height:auto;
      aspect-ratio:280 / 360;
      object-fit:cover;
    }
    .card-content{
      height:auto;
      min-height:var(--content-h);
      padding-bottom:30px;
    }
    .category-img{
      width:34px;
      height:34px;
    }
    .product-title{
      font-size:1.1rem;
      line-height:1.3rem;
    }
    .detail-btn{
      transform:none;
      width:auto !important;
      height:auto !important;
    }
    .price{
      font-size:1.5rem;
    }
  
    .detail-btn{
      transform:none !important;
      width:185.93px !important;
      height:50px !important;
      font-size:25px !important;
      font-family:"PT Sans Narrow", Arial, sans-serif !important;
      font-weight:400 !important;
      border-radius:10px !important;
      padding:0 12px !important;
    }
    
    .product-title{
      font-size:25px !important;
      line-height:26px !important;
      max-height:52px !important;
    }
    
    .title-row{
      padding:0 !important;
    }
    
    .product-bottom{
      padding:0 !important;
    }
    
    .swatch-row{
      padding:0 !important;
    }
    
    .card-content{
      padding-left:0 !important;
      padding-right:0 !important;
    }
    
    .category-img{
      margin-right:auto !important;
    }
    
    :root{ 
      --card-w:calc(100vw - 30px); 
      --img-h:auto; 
      --content-h:130px; 
    }
    .categories-mobile__title{
      font-size:1.6rem;
    }
    .mobile-title-arrow{
      width:45px;
      height:45px;
    }
    .mobile-title-arrow img{
      width:45px;
    }
    .product-card{
      width:var(--card-w);
      margin-bottom:0;
      scroll-snap-align:start;
      flex-shrink:0;
    }
    .product-photo{
      width:100%;
      height:auto;
      aspect-ratio:280 / 360;
      object-fit:cover;
    }
    .card-content{
      height:auto;
      min-height:var(--content-h);
      padding-bottom:25px;
    }
    .slider{
      gap:15px;
      padding:15px;
      padding-bottom:45px;
      scroll-padding:15px;
    }
    .product-card{
      width:calc(100vw - 30px);
    }
    .category-img{
      width:34px;
      height:34px;
    }
    .categories-list{
      font-size:0.9rem;
      padding:0;
    }
    .categories-list a{
      padding:0.7rem 1rem;
      font-size:0.9rem;
    }
    .cart-icon{
      width:32px;
      height:32px;
      margin:0;
      flex-shrink:0;
      z-index:2;
      position:relative;
      cursor:pointer;
      border:none;
      background:transparent;
      padding:0;
      display:flex;
      align-items:center;
      justify-content:center;
    }
    .cart-icon svg{
      width:18px;
      height:18px;
      display:block;
    }
    .slider-wrap{
      padding:0 15px 30px;
    }
    .cat-dd-panel{
      padding:12px 0;
    }
    .cat-dd-card{
      position:absolute;
      padding:14px 18px;
      min-width:auto;
      max-width:100%;
      width:auto;
    }
    .cat-dd-item{
      font-size:0.95rem;
      line-height:1.5rem;
    }
    .banner-text{
      bottom:130px;
      font-size:13px;
      line-height:17px;
    }
    .banner .cta{
      height:55px;
      font-size:1.1rem;
      bottom:60px;
    }
  
    /* Дополнительные стили для мобилок */
    :root{ 
      --card-w:calc(100vw - 30px); 
      --img-h:auto; 
      --content-h:auto; 
      --detail-h:53px;
      --inner-gutter:0;
    }
    
    /* Название товара в слайдере - увеличенный размер для мобилки */
    .product-title{
      font-family:"PT Sans Narrow", Arial, sans-serif !important;
      font-weight:400 !important;
      font-size:25px !important;
      line-height:26px !important;
      letter-spacing:0 !important;
      white-space:pre-wrap !important;
      overflow:hidden !important;
      display:-webkit-box !important;
      -webkit-box-orient:vertical !important;
      -webkit-line-clamp:2 !important;
      line-clamp:2 !important;
      max-height:52px !important;
      word-wrap:break-word !important;
      text-overflow:ellipsis !important;
    }
    
    /* Контент карточки без паддингов */
    .card-content{
      padding:0.875rem 0 25px 0 !important;
      height:auto !important;
      min-height:auto !important;
    }
    
    /* Выравнивание title-row в притык к краям фото */
    .title-row{
      padding:0 !important;
      align-items:center !important;
      gap:0.5rem !important;
    }
    
    /* Кнопка детальніше - 50px высота чтоб совпадала с 2 строками названия */
    .detail-btn{
      width:185.93px !important;
      height:50px !important;
      border-radius:10px !important;
      background:#252525 !important;
      font-size:25px !important;
      font-family:"PT Sans Narrow", Arial, sans-serif !important;
      font-weight:200 !important;
      font-style:normal !important;
      line-height:90% !important;
      letter-spacing:0% !important;
      text-align:center !important;
      margin-top:0 !important;
      padding:0 12px 7px !important;
      flex-shrink:0 !important;
      transform:none !important;
    }
    
    /* Нижний ряд (цена и корзина) тоже в притык */
    .product-bottom{
      padding:0 !important;
    }
    
    /* Ряд свотчей тоже в притык */
    .swatch-row{
      padding:0 !important;
      margin-top:0.5rem !important;
    }
    
    /* Увеличенные свотчи для мобилки */
    .card-swatch{
      width:1rem !important;
      height:1rem !important;
    }
    
    .price{
      font-size:1.5rem !important;
    }
    
    /* Увеличенная иконка корзины */
    .category-img{
      width:38px !important;
      height:38px !important;
    }
    
    .categories-list{
      font-size:0.85rem;
      padding:0;
    }
    .categories-list a{
      padding:0.6rem 0.8rem;
      font-size:0.85rem;
    }
    .cart-icon{
      width:26px;
      height:26px;
    }
    .slider-wrap{
      padding:0 10px 25px;
    }
    .banner-text{
      bottom:143px;
      font-size:12px;
      line-height:16px;
      padding:0 15px;
    }
    .banner .cta{
      width:calc(100% - 40px) !important;
      height:78px !important;
      font-family:"Idealist Sans", Arial, sans-serif !important;
      font-weight:300 !important;
      font-size:30px !important;
      line-height:90% !important;
      letter-spacing:0 !important;
      text-align:center !important;
      bottom:50px;
      max-width:none !important;
      padding-bottom:5px !important;
    }
    
    /* Стрелка в кнопке на мобилке - меньше и центрирована */
    .banner .cta::after{
      width:27px !important;
      height:27px !important;
      top:0 !important;
      margin-left:5px !important;
    }
    .cat-dd-item{
      font-size:0.9rem;
      line-height:1.4rem;
    }
    
  .bot-banner-text{
    display:none !important;
  }
  .bot-banner-mobile-text{
    display:block;
    position:absolute;
    left:50%;
    right:auto;
    transform:translateX(-50%);
    bottom:55px;
    width:340px;
    max-width:calc(100% - 30px);
    height:140px;
    font-family:"Idealist Sans", Arial, sans-serif;
    font-weight:400;
    font-style:normal;
    font-size:13px;
    line-height:20px;
    letter-spacing:0;
    text-align:center;
    color:#FFFFFF;
    white-space:pre-wrap;
    margin-left:-15px;
  }
  
  footer{
    display: grid !important;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto auto;
    gap: 0;
    padding: 15px 10px;
    position: relative;
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  .callback-btn{
    grid-column: 1;
    grid-row: 1;
    width: clamp(180px, 50vw, 256px) !important;
    height: clamp(50px, 12vw, 61px) !important;
    font-size: clamp(15px, 4vw, 18px) !important;
    border-radius: 10px !important;
    border-width: 1px !important;
    justify-self: start;
  }
  
  .footer-social{
    grid-column: 2;
    grid-row: 1;
    display: flex;
    gap: clamp(8px, 2vw, 15px);
    justify-content: flex-end;
    align-items: center;
    justify-self: end;
  }
  
  .footer-social a img{
    width: clamp(35px, 8vw, 44px) !important;
    height: clamp(35px, 8vw, 44px) !important;
  }
  
  footer::before {
    content: '';
    grid-column: 1 / -1;
    grid-row: 2;
    height: 1px;
    background: #d0d0d0;
    margin: 15px 0;
  }
  
  .footer-links{
    grid-column: 1;
    grid-row: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    text-align: left;
    align-self: start;
  }
  
  .footer-link{
    font-size: clamp(12px, 3vw, 14px);
    line-height: 1.4;
    white-space: normal;
    max-width: 100%;
  }
  
  .footer-payments{
    grid-column: 1;
    grid-row: 4;
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(5px, 1.5vw, 8px);
    align-items: center;
    margin-top: 8px;
    align-self: end;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .footer-payments::-webkit-scrollbar {
    display: none;
  }
  
  .payment-icon{
    flex-shrink: 0;
    display: block;
  }
  
  .payment-icon:nth-child(1){ width: clamp(45px, 12vw, 59px) !important; height: auto !important; max-height: 25px !important; }
  .payment-icon:nth-child(2){ width: clamp(35px, 9vw, 45px) !important; height: auto !important; max-height: 25px !important; }
  .payment-icon:nth-child(3){ width: clamp(28px, 7vw, 35px) !important; height: auto !important; max-height: 25px !important; }
  .payment-icon:nth-child(4){ width: clamp(33px, 8vw, 41px) !important; height: auto !important; max-height: 25px !important; }
  .payment-icon:nth-child(5){ width: clamp(55px, 14vw, 71px) !important; height: auto !important; max-height: 25px !important; }
  
  .footer-logo{
    grid-column: 2;
    grid-row: 3 / 5;
    justify-self: end;
    align-self: stretch;
    display: flex;
    align-items: stretch;
    margin-left: clamp(8px, 2vw, 15px);
  }
  
  .footer-logo img{
    width: auto !important;
    height: 100% !important;
    max-width: 75px !important;
    object-fit: contain;
    transform: scale(0.83);
  }
  
  /* ------------ MODAL: keep scale on wide, STACKED on narrow ------------- */
  /* отключаем масштаб и делаем вертикальную компоновку */
  .modal .modal-content{
    width: min(94vw, 960px) !important;
    transform: translateY(var(--mc-t, 0)) !important; /* отключаем scale, но сохраняем сдвиг */
    max-height: 94vh;
    overflow: auto;
    flex-direction: column;
    flex-wrap: nowrap !important; /* вимикаємо wrap на мобілках */
    gap: 24px;
    padding: 20px;
    border-radius: 20px;
    align-items: stretch;
  }

  .close-btn{
    width: 32px;
    height: 32px;
    font-size: 20px;
    right: 12px;
    top: 17px;
    z-index: 100;
  }

  /* левый блок: миниатюры сверху, главное фото под ними */
  .modal-left{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  /* Скрываем десктопные миниатюры на мобилке */
  .thumbs-desktop{
    display: none !important;
  }

  /* Показываем мобильные миниатюры */
  .modal-thumbs-wrapper{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 16px;
    margin-top: 20px;
    position: relative;
    padding: 0;
  }

  .modal-thumb-arrow{
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    flex-shrink: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  .modal-thumb-arrow.modal-thumb-prev{
    left: 0;
  }
  .modal-thumb-arrow.modal-thumb-next{
    right: 0;
  }
  .modal-thumb-arrow img{
    width: 45px;
    height: auto;
    display: block;
  }

  /* Миниатюры горизонтально на мобилке - видно только 3 */
  .thumbs{
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: scroll; /* Прокрутка управляется программно */
    overflow-y: hidden;
    padding: 0 8px;
    width: calc(33px * 3 + 12px * 2 + 16px + 10px); /* Ширина для 3 миниатюр + запас на большую активную */
    max-width: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    justify-content: flex-start; /* Выравниваем по левому краю для прокрутки */
    align-items: center;
    position: relative;
  }
  .thumbs::-webkit-scrollbar{
    display: none; /* Chrome/Safari */
  }
  .thumbs img{
    width: 33px;
    height: 50px;
    flex: 0 0 33px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease; /* Плавная анимация */
  }
  .thumbs img.active{
    border-color: #111;
    width: 40px; /* Активная миниатюра больше на 7px */
    height: 60px;
    flex: 0 0 40px;
    transform: scale(1.05); /* Дополнительное небольшое увеличение */
  }

  /* Главное фото */
  .main-image{
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    overflow: hidden;
    background: #f0f0f0;
  }
  .main-image img{ 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  /* Анимация смены фото на мобилке */
  .main-image img.fade-out{
    opacity: 0;
    transform: scale(0.95);
  }
  .main-image img.fade-in{
    animation: fadeInImageMobile 0.4s ease forwards;
  }
  @keyframes fadeInImageMobile {
    from {
      opacity: 0;
      transform: scale(1.05);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  /* Скрываем десктопную правую колонку на мобилке */
  .modal-right--desktop{
    display: none;
  }
  
  /* Показываем мобильную правую колонку */
  .modal-right--mobile{
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
  }

  /* Свотчи для мобилки */
  .modal-right--mobile .swatches{
    display: flex;
    gap: 8px;
    margin: 0;
    flex: 0 0 auto;
  }
  .modal-right--mobile .swatches .swatch{
    width: 43px;
    height: 43px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ddd;
  }
  .modal-right--mobile .swatches .swatch.active{
    border-color: #111;
  }

  /* Кнопка РОЗМІРНА СІТКА для мобилки */
  .modal-right--mobile .modal-size-chart-btn{
    font-family:"Idealist Sans", Arial, sans-serif;
    font-weight: 400;
    width: 110px !important;
    height: 33px !important;
    border: 1px solid #111;
    border-radius: 5px;
    background: transparent;
    color: #111;
    font-size: 12px !important;
    cursor: pointer;
    margin: 0;
    flex: 0 0 auto;
    /* margin-left: auto is now applied to the share button so it sits
       to the left of the size chart while both align to the right. */
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Hide desktop-only share button on mobile */
  .share-btn--desktop{ display: none !important; }

  /* Share button (mobile) — sits to the left of the size chart button */
  .modal-right--mobile .share-btn--mobile{
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    border: 1px solid #111;
    border-radius: 5px;
    background: transparent;
    color: #111;
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
    margin-left: auto; /* push share + size chart group to the right */
    box-sizing: border-box;
  }
  .modal-right--mobile .share-btn--mobile svg{
    width: 18px;
    height: 18px;
  }

  /* Название */
  .modal-right--mobile h2{ 
    font-family:"PT Sans Narrow", Arial, sans-serif;
    font-weight:400;
    font-size: 24px;
    line-height: 1.2;
    margin: 0;
    flex-basis: 100%;
    white-space: pre-wrap;
  }

  /* Описание */
  .modal-right--mobile p.desc{ 
    font-family:"Idealist Sans", Arial, sans-serif;
    font-weight:400;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: #333;
    flex-basis: 100%;
    white-space: pre-wrap;
  }

  /* Цена и селект размера в одной строке */
  .modal-right--mobile .big-price{
    font-family:"Idealist Sans", Arial, sans-serif;
    font-weight:400;
    font-size: 36px;
    line-height: 1;
    margin: 0;
    flex: 0 0 auto;
  }

  /* Кнопка закрытия для мобилки */
  .close-btn{
    width: 32px !important;
    height: 32px !important;
    font-size: 20px !important;
    right: 10px !important;
    top: 15px !important;
  }

  /* Контролы (селект + кнопка В КОРЗИНУ) для мобилки */
  .modal-right--mobile .modal-controls{
    display: contents;
  }

  .modal-right--mobile .modal-controls .size-select{
    font-family:"Idealist Sans", Arial, sans-serif;
    font-weight:400;
    width: 110px !important;
    height: 33px !important;
    border: 1px solid #111;
    border-radius: 5px;
    font-size: 12px !important;
    padding: 0 8px;
    appearance: none;
    background: white;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    cursor: pointer;
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111;
  }

  .modal-right--mobile .modal-controls .btn{
    font-family:"Idealist Sans", Arial, sans-serif;
    font-weight:400;
    width: 429px;
    max-width: 100%;
    height: 85px;
    background: #111;
    color: #fff;
    border: 1px solid #111;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    flex-basis: 100%;
    margin-right: 0;
  }
  
  /* Для очень маленьких экранов уменьшаем свотчи */
  /* Дополнительные стили для маленьких экранов - теперь в основном медиа-запросе */
    .modal-right--mobile .swatches{
      gap: 6px;
    }
    .modal-right--mobile .swatches .swatch{
      width: 24px;
      height: 24px;
    }
    
    .callback-btn {
      width:256px !important;
      height:61px !important;
      font-size:18px !important;
      font-weight:300 !important;
      font-family:'Asterisk Sans Variable', Arial, sans-serif !important;
      line-height:20px !important;
      letter-spacing:0% !important;
      border-radius:10px !important;
      border:1px solid #111 !important;
      background:transparent !important;
      color:#111 !important;
      text-align:center !important;
      padding:0 !important;
    }
    
    .callback-modal{
      padding: 0.5rem;
    }
    
    .callback-modal .modal-dialog{
      width: calc(100% - 1rem);
      padding: 24px;
    }
    
    .callback-modal #callbackTitle{
      font-size: 20px;
      line-height: 24px;
    }
    
    .callback-modal input[type="tel"],
    .callback-modal .btn{
      height: 44px;
      font-size: 15px;
    }
}
/* ЗАКРЫТИЕ ОСНОВНОГО МЕДИА-ЗАПРОСА @media (max-width:1050px) */

/* ========== CART MODAL STYLES ========== */

/* Cart modal dialog */
.cart-modal .modal-dialog{
  width: min(1200px, 98%);
  padding: 36px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  position: relative;
}

.cart-modal .close-btn{
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 101;
}

.cart-modal #cartTitle{
  font-family: "PT Sans Narrow", Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  text-transform: uppercase;
  margin: 12px 0 0 0;
  letter-spacing: 0%;
}

/* Cart list */
.cart-list{
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

/* Cart item */
.cart-item{
  display: grid;
  grid-template-columns: 180px 1fr 320px 200px;
  gap: 20px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f4f4f4;
}

.cart-item img{
  width: 160px;
  height: 160px;
  object-fit: contain;
  display: block;
  margin: auto;
}

.cart-item .title{
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0%;
  font-family: "PT Sans Narrow", Arial, sans-serif;
}

/* Cart swatches */
.cart-item-swatches{
  display: flex;
  gap: 8px;
  margin: 8px 0;
  flex-wrap: wrap;
}

.cart-item-swatches .swatch{
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.cart-item-swatches .swatch.active{
  border-color: #111;
  transform: scale(1.1);
}

.cart-item-swatches .swatch:hover{
  transform: scale(1.15);
}

/* Cart controls */
.cart-controls{
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  margin-right: 60px;
}

.qty-select, .small-select{
  width: 84px;
  height: 23px;
  padding: 0 8px;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-family: "PT Sans Narrow", Arial, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0%;
  opacity: 1;
  box-sizing: border-box;
  text-transform: uppercase;
  font-style: normal;
}

/* Remove button */
.remove-btn{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #f5f5f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #666;
  transition: all 0.2s;
}

.remove-btn:hover{
  background: #e0e0e0;
  color: #111;
}

/* Cart price and remove */
.cart-price-remove{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 80px;
}

.cart-price-remove .cart-price{
  order: 1;
}

.cart-price-remove .remove-btn{
  order: 2;
}

.cart-price{
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  letter-spacing: 0%;
  font-family: "PT Sans Narrow", Arial, sans-serif;
}

/* Cart bottom */
.cart-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 0 32px;
  gap: 20px;
}

@media (min-width: 1051px){
  .cart-bottom{
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: '. total' 'clear checkout';
    align-items: center;
    column-gap: 20px;
    row-gap: 10px;
    padding: 0 32px;
  }
  .clear-btn{
    grid-area: clear;
    justify-self: start;
  }
  .cart-total{
    grid-area: total;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
  }
  .checkout-btn{
    grid-area: checkout;
    justify-self: end;
  }
  .clear-btn, .checkout-btn{
    height: 48px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
}

.clear-btn, .checkout-btn{
  padding: 14px 20px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-family: "PT Sans Narrow", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  transition: all 0.2s;
}

.clear-btn{
  background: #bdbdbd;
  color: #fff;
}

.clear-btn:hover{
  background: #a0a0a0;
}

.checkout-btn{
  background: #111;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0%;
}

.checkout-btn:hover{
  background: #333;
}

.cart-total{
  font-size: 28px;
  font-weight: 600;
  display: flex;
  gap: 14px;
  align-items: center;
  letter-spacing: 0%;
  font-family: "PT Sans Narrow", Arial, sans-serif;
  margin-bottom: 40px !important;
}

/* Cart toggles */
.cart-toggle{
  display: flex;
  width: 100%;
  border: 1px solid #111;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #fff;
}

.cart-toggle:last-of-type{
  margin-bottom: 0;
}

.cart-toggle-btn{
  flex: 1 1 0;
  background: #fff;
  color: #111;
  border: none;
  outline: none;
  font-family: "PT Sans Narrow", Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0%;
  padding: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-transform: uppercase;
}

.cart-toggle-btn.active{
  background: #111;
  color: #fff;
}

.cart-toggle-divider{
  width: 2px;
  background: #111;
  height: 100%;
}

/* ========== CALLBACK MODAL STYLES ========== */

.callback-modal{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.callback-modal.open{
  opacity: 1;
  pointer-events: auto;
}

.callback-modal .modal-dialog{
  width: min(500px, 95%);
  padding: 32px;
  background: #fff;
  border-radius: 1.125rem;
  position: relative;
  opacity: 0;
  --mc-t: -1rem;
  transform: translateY(var(--mc-t));
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.callback-modal.open .modal-dialog{
  opacity: 1;
  --mc-t: 0;
}

.callback-modal.closing .modal-dialog{
  opacity: 0;
  --mc-t: 1rem;
}

.callback-modal .close-btn{
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 101;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, opacity 0.2s;
}

.callback-modal .close-btn:hover{
  opacity: 0.8;
  transform: scale(1.1);
}

.callback-modal #callbackTitle{
  font-family: "PT Sans Narrow", Arial, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 28px;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0%;
}

.callback-modal form{
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.callback-modal input[type="tel"]{
  height: 48px;
  padding: 12px 16px;
  font-size: 16px;
  font-family: "Idealist Sans", Arial, sans-serif;
  border-radius: 8px;
  border: 1px solid #ddd;
  transition: border-color 0.2s;
}

.callback-modal input[type="tel"]:focus{
  outline: none;
  border-color: #111;
}

.callback-modal .btn{
  width: 100%;
  height: 48px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-family: "PT Sans Narrow", Arial, sans-serif;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.callback-modal .btn:hover{
  opacity: 0.9;
}

/* Callback modal responsive - стили будут в основном медиа-запросе @media (max-width:1050px) */

/* Toasts */
#toasts{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast{
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  background: #111;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-family: "PT Sans Narrow", Arial, sans-serif;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.toast.show{
  opacity: 1;
  transform: translateY(0);
}

/* Mobile styles for cart */
@media (max-width: 1050px){
  .cart-modal .modal-dialog{
    width: 100%;
    padding: 22px 16px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
  }
  
  .cart-modal .close-btn{
    right: 12px !important;
    top: 17px !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 18px !important;
  }
  
  .cart-modal .modal-dialog #cartContent{
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  
  #cartTitle{
    font-size: 22px;
    letter-spacing: 0%;
  }
  
  .cart-list{
    gap: 16px;
  }
  
  .cart-item{
    grid-template-columns: 100px 1fr;
    grid-auto-rows: auto;
    gap: 14px;
    align-items: flex-start;
    position: relative;
    padding: 8px 0 16px 0;
  }
  
  .cart-item img{
    width: 100px;
    height: 100px;
  }
  
  .cart-item .title{
    font-size: 16px;
    line-height: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .cart-item .title .remove-btn{
    width: 36px;
    height: 36px;
    background: #f4f4f4;
    border: 1px solid #ddd;
    margin-left: 10px;
  }
  
  .cart-price-remove{
    display: none;
  }
  
  .cart-price{
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    letter-spacing: 0%;
  }
  
  .cart-controls{
    margin-right: 0;
    flex-wrap: nowrap;
    gap: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .cart-controls .price{
    font-family: "PT Sans Narrow", Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0%;
    white-space: nowrap;
  }
  
  .small-select, .qty-select{
    width: 84px;
    height: 23px;
    padding: 0 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-family: "PT Sans Narrow", Arial, sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 0%;
    opacity: 1;
    box-sizing: border-box;
    text-transform: uppercase;
  }
  
  .qty-select{
    width: 36px;
    min-width: 28px;
    padding-right: 2px;
  }
  
  .cart-bottom{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 'total total' 'clear checkout';
    gap: 5px;
    padding: 0;
    width: 100%;
    align-items: stretch;
    margin-top: auto;
  }
  
  .cart-total{
    grid-area: total;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    font-family: "PT Sans Narrow", Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 25px;
    line-height: 20px;
    letter-spacing: 0%;
    margin-bottom: 20px;
    text-align: center;
  }
  
  .cart-total #cartTotal{
    font-family: "PT Sans Narrow", Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 25px;
    line-height: 20px;
    letter-spacing: 0%;
  }
  
  .clear-btn{
    grid-area: clear;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
  }
  
  .checkout-btn{
    grid-area: checkout;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
  }

  #cartFormWrap{
    margin-bottom: 25px !important;
  }
  
  /* Мобільна адаптація для нових полів корзини */
  #cartRegion,
  #cartCity,
  #cartPhone {
    font-size: 16px !important; /* Запобігає zoom на iOS */
    min-height: 48px !important; /* Touch-friendly */
  }
}

/* ================== RETINA / MACBOOK TWEAK ==================
   Небольшой «шлиф» размеров для устройств с DPR >= 2
   Подкорректируй --retina-scale при необходимости (0.90 - 0.97)
============================================================ */
@media (min-resolution: 2dppx), (min-resolution: 192dpi) {
  :root{
    /* глобальный множитель — уменьшает основные переменные */
    --retina-scale: 0.92;

    /* пытаемся подогнать основные переменные карты/картинок/кнопок */
    --card-w: calc(var(--card-w) * var(--retina-scale));
    --img-h: calc(var(--img-h) * var(--retina-scale));
    --content-h: calc(var(--content-h) * var(--retina-scale));
    --detail-w: calc(var(--detail-w) * var(--retina-scale));
    --detail-h: calc(var(--detail-h) * var(--retina-scale));
    --category-icon-size: calc(var(--category-icon-size) * var(--retina-scale));
    --cat-gap: calc(var(--cat-gap) * var(--retina-scale));
  }

  /* чуть уменьшаем базовый размер шрифта, чтобы rem/em стали компактнее на ретине */
  /* значение 0.94 можно менять на 0.9–0.97 */
  html {
    font-size: calc( (clamp(13px, 0.7vw + 12px, 18px)) * 0.94 );
  }

  /* немного подточим размеры UI, которые часто дают «большой» эффект */
  .callback-btn,
  .btn,
  .ghost-btn {
    transform-origin: center center;
    /* небольшой визуальный сжатие для кнопок (без изменения layout) */
    /* можно отключить, если не нравится */
    transform: scale(0.98);
  }
  
  /* Для кнопки banner .cta используем комбинированную трансформацию */
  .banner .cta {
    transform: translateX(-50%) scale(0.98);
  }

  /* модалка: дефолтный немного меньший scale (будет скорректирован JS) */
  .modal .modal-content {
    /* сохраняем translateY, но ставим запасной scale */
    transform: translateY(var(--mc-t, 0)) scale(var(--modal-scale, 0.95));
  }
}

/* Доп. защитный вариант: если медиазапросы по width/height на маке срабатывают неправильно,
   можно добавить условие совмещённое c DPR — пример уже включён в медиазапрос выше. */

/* Стили для сообщения об успехе в модалке */
.modal-success-message {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-success-message > div {
  width: 100%;
  max-width: 100%;
}

/* На мобильных устройствах дополнительно центрируем */
@media (max-width: 1050px) {
  .modal-success-message {
    padding: 0 20px;
    box-sizing: border-box;
  }
  
  .modal-success-message > div {
    padding: 24px 0;
  }
  
  .modal-success-message svg {
    width: 60px;
    height: 60px;
  }
  
  .modal-success-message .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* Стили для рекомендаций в модалке */




/* Стили для цены со скидкой в рекомендациях - ТОЧНО КАК У ОБЫЧНОЙ ЦЕНЫ */
.discount-price {
  color: #f73f3d !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
}

/* Стили для плашки скидки */
.discount-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #f73f3d;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* На мобильных устройствах */
@media (max-width: 1050px) {
  .discount-price {
    font-size: 13px !important;
    font-weight: 500 !important;
  }
  
  .discount-badge {
    top: 6px;
    right: 6px;
    padding: 3px 6px;
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  .discount-price {
    font-size: 11px !important;
  }
}