     /* === ЛЮКСОВАЯ ПАЛИТРА === */
        :root {
            --color-primary: #22281d; 
            --color-gold: #c5a85f;    
            --color-bg: #fbfaf8;      
            --color-surface: #ffffff;
            --color-text-main: #1a1a1a;
            --color-text-muted: #888888;
            --color-border: #eaeaea;
        }

        /* === БАЗОВЫЕ НАСТРОЙКИ === */
        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
        body { font-family: 'Montserrat', sans-serif; background-color: var(--color-surface); color: var(--color-text-main); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
        h1, h2, h3, .serif { font-family: 'Cormorant Garamond', serif; font-weight: 600; }
        a { text-decoration: none; color: inherit; transition: 0.3s ease; }
        a:hover { color: var(--color-gold); }
        .container { max-width: 1400px; margin: 0 auto; padding: 0 40px; animation: fadeInOpacity 0.8s ease-out; }

        @keyframes fadeInOpacity { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }
        @keyframes slideOut { 0% { opacity: 1; transform: translateX(0); } 100% { opacity: 0; transform: translateX(-50px); height: 0; padding: 0; margin: 0; border: none; } }

        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: var(--color-bg); }
        ::-webkit-scrollbar-thumb { background: #dcd7ce; }
        ::-webkit-scrollbar-thumb:hover { background: var(--color-gold); }

        /* === ПРЕМИУМ ШАПКА === */
        .top-header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border); padding: 18px 0; position: sticky; top: 0; z-index: 100; transition: box-shadow 0.3s; }
        .top-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
        .header-content { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; padding: 0 40px; }
        .logo { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 700; color: var(--color-primary); letter-spacing: 3px; text-transform: uppercase; }
        .header-icons { display: flex; gap: 30px; font-size: 18px; color: var(--color-primary); cursor: pointer; }
        .header-icons i:hover { color: var(--color-gold); transform: scale(1.1); }

        .breadcrumbs { padding: 30px 0 20px; font-size: 11px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 1.5px; }
        .breadcrumbs span { margin: 0 10px; color: #ccc; }

        /* === ЗАГОЛОВОК СТРАНИЦЫ === */
        .page-title { font-size: 42px; color: var(--color-primary); margin-bottom: 40px; border-bottom: 1px solid var(--color-border); padding-bottom: 20px; display: flex; justify-content: space-between; align-items: baseline; }
        .cart-count { font-family: 'Montserrat', sans-serif; font-size: 14px; color: var(--color-text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

        /* === МАКЕТ КОРЗИНЫ === */
        .cart-layout { display: grid; grid-template-columns: 1fr 400px; gap: 60px; padding-bottom: 100px; align-items: start; }

        /* === СПИСОК ТОВАРОВ === */
        .cart-items-list { display: flex; flex-direction: column; }

        .cart-item { display: flex; gap: 30px; padding: 30px 0; border-bottom: 1px solid var(--color-border); position: relative; transition: all 0.4s ease; }
        .cart-item.removing { animation: slideOut 0.5s forwards; overflow: hidden; }

        .item-image { width: 140px; flex-shrink: 0; background: var(--color-bg); overflow: hidden; }
        .item-image img { width: 100%; aspect-ratio: 3/4; object-fit: cover; mix-blend-mode: multiply; transition: 0.5s ease; }
        .item-image:hover img { transform: scale(1.05); }

        .item-details { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 5px 0; }
        .item-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
        .item-category { font-size: 10px; color: var(--color-gold); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; margin-bottom: 5px; }
        .item-title { font-size: 18px; color: var(--color-primary); font-weight: 500; line-height: 1.3; margin-bottom: 10px; max-width: 80%; }
        .item-attributes { font-size: 12px; color: var(--color-text-muted); display: flex; flex-direction: column; gap: 5px; }

        .item-remove { background: none; border: none; color: #ccc; font-size: 18px; cursor: pointer; transition: 0.3s; padding: 5px; }
        .item-remove:hover { color: #A33327; transform: scale(1.1); }

        .item-actions { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; }

        /* Счетчик количества */
        .quantity-selector { display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: 2px; width: fit-content; }
        .qty-btn { width: 36px; height: 36px; background: transparent; border: none; font-size: 16px; color: var(--color-primary); cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
        .qty-btn:hover { background: var(--color-bg); color: var(--color-gold); }
        .qty-input { width: 40px; text-align: center; border: none; font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 500; color: var(--color-primary); background: transparent; pointer-events: none; }

        .item-price { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 700; color: var(--color-primary); }

        /* === БЛОК ИТОГОВ (ORDER SUMMARY) === */
        .cart-summary { background: var(--color-bg); padding: 40px; position: sticky; top: 120px; border-radius: 2px; }
        .summary-title { font-size: 24px; color: var(--color-primary); margin-bottom: 30px; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 15px; }

        /* Промокод */
        .promo-code-block { margin-bottom: 30px; position: relative; }
        .promo-input { width: 100%; padding: 15px 20px; border: 1px solid var(--color-border); background: #fff; font-family: inherit; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; outline: none; transition: 0.3s; }
        .promo-input:focus { border-color: var(--color-gold); }
        .promo-btn { position: absolute; right: 5px; top: 5px; bottom: 5px; padding: 0 20px; background: transparent; border: none; color: var(--color-primary); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: 0.3s; }
        .promo-btn:hover { color: var(--color-gold); }

        /* Строки расчетов */
        .summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--color-text-main); margin-bottom: 15px; }
        .summary-row.muted { color: var(--color-text-muted); }
        .summary-row.discount { color: #A33327; }
        .summary-row.total { margin-top: 25px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.05); font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 700; color: var(--color-primary); align-items: center; }
        .summary-row.total span:first-child { font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

        .btn-checkout { width: 100%; padding: 20px; background: var(--color-primary); color: var(--color-gold); border: 1px solid var(--color-primary); font-family: inherit; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: all 0.4s ease; margin-top: 10px; }
        .btn-checkout:hover { background: #1a1f16; color: #fff; }

        /* Состояние пустой корзины (скрыто по умолчанию) */
        .empty-cart-message { display: none; text-align: center; padding: 80px 0; }
        .empty-cart-message h2 { font-size: 36px; color: var(--color-primary); margin-bottom: 20px; }
        .empty-cart-message p { color: var(--color-text-muted); margin-bottom: 40px; }
        .btn-continue { padding: 15px 40px; background: transparent; border: 1px solid var(--color-primary); color: var(--color-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 12px; display: inline-block; transition: 0.3s; }
        .btn-continue:hover { background: var(--color-primary); color: var(--color-gold); }

        /* === ВИДЖЕТ СВЯЗИ === */
        .contact-widget { position: fixed; bottom: 40px; right: 40px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 15px; }
        .widget-menu { display: flex; flex-direction: column; gap: 12px; opacity: 0; visibility: hidden; transform: translateY(20px); transition: 0.4s; }
        .widget-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }
        .widget-btn { width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; cursor: pointer; border: none; box-shadow: 0 10px 25px rgba(0,0,0,0.15); transition: 0.3s; }
        .btn-main { background: var(--color-gold); width: 65px; height: 65px; font-size: 26px; z-index: 2; }
        .btn-tg { background: #2AABEE; } .btn-wa { background: #25D366; } .btn-phone { background: var(--color-primary); }

        /* === ПЛАВАЮЩАЯ ПАНЕЛЬ ОФОРМЛЕНИЯ (МОБАЙЛ) === */
      /* =========================================================
   ЛИПКАЯ ПАНЕЛЬ ОФОРМЛЕНИЯ ЗАКАЗА НА МОБИЛЬНЫХ (В КОРЗИНЕ)
========================================================= */
/* Делаем саму панель чуть тоньше */
.mobile-sticky-checkout { 
    display: flex; /* На скрине она видна, так что flex */
    position: fixed; 
    top: auto !important; 
    bottom: 85px !important; /* Высота над меню (оставляем) */
    left: 15px; 
    width: calc(100% - 30px); 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px); 
    
    /* ИЗМЕНИЛИ: Сделали отступы меньше (было 15px, стало 10px сверху/снизу) */
    padding: 10px 15px; 
    
    z-index: 990; 
    align-items: center; 
    justify-content: space-between; 
    border-radius: 14px; 
    border: 1px solid rgba(0,0,0,0.08); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.12); 
}



.sticky-total-label { 
    font-size: 10px; 
    color: var(--color-text-muted, #888); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-weight: 600; 
    margin-bottom: 2px; 
    display: block; 
}

.sticky-price { 
    font-family: 'Cormorant Garamond', serif; 
    font-size: 26px; 
    font-weight: 700; 
    color: var(--color-primary, #1A1A1A); 
    line-height: 1; 
}

.sticky-btn { 
    /* ИЗМЕНИЛИ: Уменьшили padding кнопки (было 16px 30px) */
    padding: 12px 24px; 
    
    background: var(--color-primary, #1A1A1A); 
    color: var(--color-gold, #D4AF37); 
    border: none; 
    font-family: 'Montserrat', sans-serif; 
    font-size: 12px; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    border-radius: 8px; 
    text-decoration: none;
    display: inline-block;
    text-align: center;
}


   
  /* Базовые стили */
/* ================= ПРЕМИУМ ТИПОГРАФИКА ================= */

/* Базовый шрифт для всего сайта (чистый, геометрический) */
body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased; /* Делает шрифты тоньше и четче на экранах Mac/iPhone */
    -moz-osx-font-smoothing: grayscale;
}

/* Класс для заголовков и акцентов (элегантный, с засечками) */
.serif { 
    font-family: 'Playfair Display', serif; 
    font-weight: 400;
}

/* Настройка заголовка корзины */
.title-minimal-main { 
    font-weight: 500; 
    letter-spacing: 0.5px; 
}
.cart-count { 
    font-family: 'Playfair Display', serif; /* Счетчик делаем тоже изящным */
    font-style: italic; 
    font-weight: 400;
    color: #888;
}

/* Названия товаров */
.item-title-link { 
    font-family: 'Montserrat', sans-serif;
    font-weight: 500; 
    letter-spacing: 0.3px;
}
.cs-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

/* Кнопки, ярлыки, капс (ОЧЕНЬ ВАЖНО ДЛЯ ЛЮКСА - широкий межбуквенный интервал) */
.item-category, 
.action-btn, 
.btn-undo-premium, 
.btn-checkout-premium, 
.promo-premium input, 
.promo-premium button, 
.sticky-total-label, 
.badge,
.tg-link-premium {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px; /* Широкий интервал делает текст "дорогим" */
    font-weight: 500;
}

/* Цены (Делаем их классическими с засечками) */
.item-price, 
.cs-price, 
.summary-row.total span, 
.sticky-price {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Текст отмены удаления */
.undo-content span { 
    font-family: 'Playfair Display', serif;
    font-style: italic; 
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Мелкий текст (размеры, пояснения) */
.item-attributes, 
.delivery-motivator p, 
.manager-contact-premium p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300; /* Тонкое начертание */
}


/* Сетка Десктоп */
.cart-layout { display: flex; align-items: flex-start; gap: 60px; }
.cart-items-list { flex: 1; min-width: 0; }
.cart-summary { width: 340px; flex-shrink: 0; background: #fff; }
.sticky-sidebar { position: sticky; top: 40px; }

/* Карточка товара */
.cart-item-wrapper { position: relative; border-bottom: 1px solid #eaeaea; padding-bottom: 30px; margin-bottom: 30px; }
.cart-item { display: flex; gap: 30px; transition: filter 0.4s ease; }
.item-image { flex-shrink: 0; }
.item-image img { width: 120px; height: 160px; object-fit: cover; background: #f8f8f8; }
.item-details { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.item-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px;}
.item-info-group { min-width: 0; }
.item-category { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #999; margin-bottom: 5px; }
.item-title-link { font-size: 16px; color: #111; text-decoration: none; transition: color 0.3s; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.item-title-link:hover { color: #666; }
.item-attributes { margin-top: 10px; font-size: 12px; color: #555; display: flex; flex-direction: column; gap: 5px;}

/* Кнопки действий (текст + иконки) */
.item-actions-top { display: flex; gap: 15px; flex-shrink: 0;}
.action-btn { background: none; border: none; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #999; cursor: pointer; transition: 0.3s; padding: 0; display: flex; align-items: center; gap: 5px;}
.action-btn:hover { color: #111; }
.remove-btn:hover { color: #c0392b; }
.action-icon { display: none; font-size: 16px;} /* Скрыты на десктопе */
.editable-attr { cursor: pointer; border-bottom: 1px dotted #ccc; padding-bottom: 1px; transition: border-color 0.3s; display: inline-block;}
.editable-attr:hover { border-color: #111; color: #111; }

/* Кол-во и Цена */
.item-actions { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 20px;}
.item-price { font-size: 18px; color: #111; }
.quantity-selector-premium { display: flex; align-items: center; border: 1px solid #eaeaea; }
.qty-btn { background: none; border: none; width: 30px; height: 30px; cursor: pointer; color: #555; font-size: 14px; transition: background 0.3s;}
.qty-btn:hover { background: #f8f8f8; color: #111;}
.qty-input { width: 30px; text-align: center; border: none; outline: none; font-size: 13px; pointer-events: none;}

/* Удаление (Бегущая полоса) */
.undo-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.95); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 10; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.undo-overlay.active { opacity: 1; pointer-events: auto; }
.undo-content { display: flex; align-items: center; gap: 20px; margin-bottom: 15px; }
.undo-content span { font-size: 18px; font-style: italic; color: #111; }
.btn-undo-premium { background: transparent; border: 1px solid #111; padding: 6px 16px; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: 0.3s; color: #111;}
.btn-undo-premium:hover { background: #111; color: #fff; }
.undo-progress { width: 200px; height: 1px; background: #eee; position: relative; overflow: hidden; }
.undo-progress-bar { position: absolute; left: 0; top: 0; height: 100%; background: #111; width: 100%; }
.shrinking { animation: runOut 4s linear forwards; }
@keyframes runOut { from { width: 100%; } to { width: 0%; } }

/* Кросс-селл */
.premium-cross-sell { margin-top: 60px; border-top: 1px solid #111; padding-top: 40px; }
.title-minimal { font-size: 22px; font-weight: 400; margin-bottom: 30px; color: #111; }
.cs-grid-premium { display: flex; gap: 30px; }
.cs-item-premium { flex: 1; display: flex; flex-direction: column; position: relative; }
.cs-img-link { display: block; overflow: hidden; background: #f8f8f8; aspect-ratio: 3/4; }
.cs-img-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.cs-item-premium:hover .cs-img-link img { transform: scale(1.05); } 
.cs-info { margin-top: 15px; display: flex; justify-content: space-between; align-items: flex-start; }
.cs-name { font-size: 13px; color: #111; text-decoration: none; max-width: 65%; line-height: 1.4; transition: color 0.3s; font-family: sans-serif;}
.cs-price { font-size: 14px; color: #111;}
.cs-add-btn-premium { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.9); border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(10px); transition: all 0.4s ease; font-size: 18px; font-weight: 300; color: #111;}
.cs-item-premium:hover .cs-add-btn-premium { opacity: 1; transform: translateY(0); }

/* Правая колонка */
.summary-title { font-size: 24px; font-weight: normal; margin-bottom: 30px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 14px; color: #111; }
.summary-row.muted { color: #888; font-size: 13px; }
.summary-row.total { border-top: 1px solid #111; padding-top: 20px; margin-top: 10px; font-size: 18px; }
.btn-checkout-premium { display: block; width: 100%; background: #111; color: #fff; text-align: center; padding: 18px 0; text-decoration: none; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; transition: background 0.3s; margin-top: 30px; cursor: pointer; border: 1px solid #111;}
.btn-checkout-premium:hover { background: #fff; color: #111; }
.promo-premium { display: flex; align-items: flex-end; border-bottom: 1px solid #111; margin-bottom: 35px; padding-bottom: 8px; }
.promo-premium input { flex: 1; border: none; background: transparent; outline: none; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; padding: 0;}
.promo-premium button { border: none; background: transparent; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; padding: 0 0 0 15px; color: #111;}
.delivery-motivator { margin: 25px 0; }
.delivery-motivator p { font-size: 11px; color: #888; margin-bottom: 10px; font-family: sans-serif; letter-spacing: 0.5px; text-transform: uppercase;}
.delivery-motivator b { color: #111; font-weight: normal; font-family: serif; font-size: 13px; font-style: italic;}
.progress-bar-premium { height: 1px; background: #eaeaea; width: 100%; position: relative; }
.progress-premium { height: 1px; background: #111; position: absolute; left: 0; top: 0; transition: width 0.6s; }

/* Гарантии и стилист */
.trust-badges-premium { margin-top: 35px; display: flex; flex-direction: column; gap: 15px;}
.badge { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #888; display: flex; align-items: center;}
.badge i { margin-right: 15px; font-size: 14px; opacity: 0.5;}
.manager-contact-premium { margin-top: 35px; border-top: 1px solid #eaeaea; padding-top: 25px; }
.manager-contact-premium p { font-size: 12px; color: #888; margin: 0 0 10px 0; font-style: italic; font-family: serif;}
.tg-link-premium { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #111; text-decoration: none; border-bottom: 1px solid #111; padding-bottom: 2px;}

/* Плавающая кнопка для мобильных (скрыта на десктопе) */
.mobile-sticky-checkout { display: none; }


/* ================= МЕДИАЗАПРОСЫ (ПОЛНАЯ АДАПТАЦИЯ) ================= */

/* Планшеты */
@media (max-width: 991px) {
    .cart-layout { flex-direction: column; gap: 40px; }
    .cart-summary { width: 100%; position: static; margin-bottom: 60px;}
    .cs-grid-premium { flex-wrap: wrap; }
    .cs-item-premium { flex: 0 0 calc(50% - 15px); }
}

/* ========================================================= */
/* === АДАПТАЦИЯ ДЛЯ ПЛАНШЕТОВ И МОБИЛЬНЫХ (до 900px) === */
/* ========================================================= */
@media (max-width: 900px) {
    /* Общие настройки страницы и сетки */
    .top-header { display: none; }
    .container { padding: 0 20px; }
    .page-title { font-size: 32px; flex-direction: column; gap: 10px; border-bottom: none; margin-bottom: 20px; }
    .title-minimal-main { font-size: 26px; margin-bottom: 25px; padding-bottom: 15px; }

    /* Перестраиваем сетку корзины в одну колонку */
    .cart-layout { grid-template-columns: 1fr; gap: 40px; padding-bottom: 120px; } /* Отступ под sticky bar */
    .cart-summary { padding: 25px 20px; position: static; }
    .summary-title { font-size: 20px; }
    .btn-checkout { display: none; } /* Прячем обычную кнопку */

    /* Плавающая кнопка оплаты на мобильных */
    .mobile-sticky-checkout { display: flex; }
    .contact-widget { bottom: 110px; right: 20px; }
}

/* ========================================================= */
/* === СТРОГО МОБИЛЬНАЯ ВЕРСИЯ КАРТОЧКИ ТОВАРА (до 768px)=== */
/* ========================================================= */
@media (max-width: 768px) {
    .cart-item-wrapper { 
        padding-bottom: 20px; 
        margin-bottom: 20px; 
    }

    /* 1. Главный контейнер карточки */
    .cart-item { 
        display: flex;
        gap: 15px; 
        width: 100%; /* Жестко растягиваем на весь экран */
        padding: 0;
    }

    /* 2. Левая колонка - Фото */
    .item-image { 
        flex-shrink: 0; 
    }
    .item-image img { 
        width: 90px; 
        height: 120px; 
        object-fit: cover; 
    }

    /* 3. Правая колонка - Секрет растягивания здесь */
    .item-details { 
        flex: 1; /* Заставляет блок занять все свободное место до правого края */
        min-width: 0; /* Не дает длинному тексту сломать верстку */
        display: flex; 
        flex-direction: column; 
        justify-content: space-between; 
    }

    /* 4. Верхняя часть: Текст слева, Иконки справа */
    .item-header { 
        display: flex; 
        justify-content: space-between; 
        align-items: flex-start; 
        gap: 10px; 
        width: 100%; 
    }

    /* Тексты товара */
    .item-info-group {
        flex: 1; /* Текст занимает максимум места слева */
        min-width: 0;
    }
    .item-category { font-size: 9px; margin-bottom: 4px; }
    .item-title { margin: 0 0 5px 0; }
    .item-title-link { font-size: 15px; white-space: normal; line-height: 1.3; display: block; }
    .item-attributes { font-size: 11px; }

    /* Иконки действий (сердечко, крестик) */
    .item-actions-top { 
        display: flex; 
        flex-direction: column; /* Ставим столбиком */
        gap: 15px; /* Расстояние между сердечком и крестиком */
        align-items: flex-end; /* Прижимаем вправо */
        flex-shrink: 0; 
    }
    .action-text { display: none; } /* Прячем слова "В избранное" и "Удалить" */
    .action-icon { display: block; font-size: 20px; color: #999; } /* Показываем иконки */

    /* 5. Нижняя часть: Счетчик слева, Цена справа */
    .item-actions { 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        width: 100%; 
        margin-top: 15px; 
    }

    /* Элементы управления и цена */
    .quantity-selector-premium { height: 32px; }
    .qty-btn { width: 30px; height: 32px; font-size: 16px; } /* Увеличил для удобства нажатия пальцем */
    .qty-input { width: 30px; font-size: 14px; }

    .item-price { 
        font-size: 18px; 
        white-space: nowrap; /* Запрещает цене разбиваться на 2 строки */
        margin: 0; 
        font-weight: 600;
    }
}

    /* Плашка отмены удаления */
    .undo-content { flex-direction: column; gap: 10px; text-align: center; }
    .undo-content span { font-size: 15px; }

    /* КРОСС-СЕЛЛ: Свайп-карусель (Горизонтальный скролл) */
    .premium-cross-sell { margin-top: 40px; padding-top: 30px; }
    .scroll-mobile { 
        display: flex; 
        flex-wrap: nowrap; 
        overflow-x: auto; 
        scroll-snap-type: x mandatory; 
        padding-bottom: 15px; 
        -webkit-overflow-scrolling: touch; 
        gap: 15px;
        margin-right: -15px; /* Убираем отступ контейнера, чтобы уходило за край экрана */
        padding-right: 15px;
    }
    .scroll-mobile::-webkit-scrollbar { display: none; } /* Скрываем ползунок */
    .scroll-mobile .cs-item-premium { 
        flex: 0 0 140px; /* Фиксированная ширина карточки */
        scroll-snap-align: start; 
    }
    .cs-add-btn-premium { opacity: 1; transform: translateY(0); width: 30px; height: 30px; font-size: 16px; top: 10px; right: 10px;} /* Кнопка всегда видна на тач-экранах */

    /* Сайдбар (Итоги) */
    .summary-title { font-size: 20px; margin-bottom: 20px;}
    .promo-premium input { font-size: 12px; } /* Чуть крупнее, чтобы не было зума в iOS */
    .desktop-checkout-btn { display: none; } /* Скрываем обычную кнопку, так как будет плавающая */

    /* ПЛАВАЮЩАЯ ПАНЕЛЬ ОФОРМЛЕНИЯ ВНИЗУ */
    body { padding-bottom: 80px; } /* Место под плавающую панель */
    .mobile-sticky-checkout {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 15px 20px;
        border-top: 1px solid #eaeaea;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
        z-index: 999;
    }
    .sticky-info { display: flex; flex-direction: column; }
    .sticky-total-label { font-size: 10px; text-transform: uppercase; color: #888; letter-spacing: 1px;}
    .sticky-price { font-size: 18px; color: #111; font-weight: bold;}
    .sticky-btn { 
        background: #111; 
        color: #fff; 
        text-decoration: none; 
        padding: 12px 30px; 
        text-transform: uppercase; 
        font-size: 11px; 
        letter-spacing: 1px;
        border: 1px solid #111;
    }
}
    
    @media (max-width: 768px) {
    /* 1. Заставляем сам товар занять 100% */
    .cart-item {
        width: 100% !important;
        display: flex !important;
    }

    /* 2. Заставляем правую часть (детали) тянуться */
    .item-details {
        flex: 1 1 auto !important; /* Принудительно заставляет блок расти */
        width: 100% !important;
    }

    /* 3. Заставляем верхнюю строку (название + иконки) занять 100% */
    .item-header {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
    }

    /* 4. ЖЕСТКО ТОЛКАЕМ ИКОНКИ ВПРАВО */
    .item-actions-top {
        margin-left: auto !important; /* Это правило 100% прижмет блок к правому краю */
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
    }

    /* 5. Заставляем нижнюю строку (кол-во + цена) занять 100% */
    .item-actions {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
    }

    /* 6. ЖЕСТКО ТОЛКАЕМ ЦЕНУ ВПРАВО */
    .item-price {
        margin-left: auto !important; /* Толкает цену максимально вправо */
    }
}