/* ========================================================
   EDITORIAL BOUTIQUE — CART & CHECKOUT (LUXURY V4.5)
   ======================================================== */

   :root {
    --wine-primary: #3E101D;
    --wine-hover: #5A162B;
    --wine-soft: #F9F3F5;
    --text-main: #1C1917;
    --text-muted: #78716C;
    --gold-accent: #9A7B56;
    --gold-subtle: #FAF6F0;
    --card-border: rgba(62, 16, 29, 0.08);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
    --page-bg: #FAF9F6;
}

/* 1. БАЗОВАЯ СТРУКТУРА: Защита от бокового скролла */
.cart-page {
    width: 100%;
    min-height: 100vh;
    padding-top: 105px;
    padding-bottom: 90px;
    background-color: var(--page-bg);
}

.cart-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. НАВИГАЦИЯ КОРЗИНЫ */
.cart-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.cart-step-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
}

.step-badge {
    color: var(--text-muted);
}

.step-badge.active {
    color: var(--wine-primary);
}

.step-sep {
    color: rgba(62, 16, 29, 0.2);
    font-size: 11px;
}

/* 3. ДВУХКОЛОНОЧНЫЙ МАКЕТ */
.cart-main-layout {
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 28px;
    align-items: start;
}

/* ========================================================
   ЛЕВАЯ КОЛОНКА (СПИСОК ТОВАРОВ)
   ======================================================== */
.cart-items-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.cart-main-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 600;
    color: var(--wine-primary);
    margin: 0;
}

.cart-count-pill {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--gold-accent);
    background: #FFFFFF;
    border: 1px solid rgba(154, 123, 86, 0.2);
    padding: 4px 14px;
    border-radius: 100px;
}

/* ШКАЛА ДОСТАВКИ */
.delivery-goal-card {
    background: #FFFFFF;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 14px 18px;
    box-shadow: var(--card-shadow);
}

.delivery-goal-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.delivery-track {
    height: 7px;
    background: var(--gold-subtle);
    border-radius: 100px;
    overflow: hidden;
}

.delivery-fill-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-accent), var(--wine-primary));
    border-radius: 100px;
    transition: width 0.4s ease;
}

/* КАРТОЧКА ТОВАРА В КОРЗИНЕ */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-item-card {
    background: #FFFFFF;
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 16px;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cart-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(62, 16, 29, 0.06);
}

.cart-item-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(62, 16, 29, 0.05);
}



.item-meta-info {
    flex: 1;
    min-width: 0;
}

.item-name-link {
    font-family: 'Playfair Display', serif;
    font-size: 16.5px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    display: block;
    line-height: 1.25;
    margin-bottom: 2px;
    transition: color 0.2s;
}

.item-name-link:hover {
    color: var(--wine-primary);
}

.item-unit-pricing {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.item-group-total {
    text-align: right;
    flex-shrink: 0;
}

.item-group-sum {
    font-size: 18px;
    font-weight: 800;
    color: var(--wine-primary);
    letter-spacing: -0.3px;
}

.item-group-count {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
}

/* СТЕКИ СПЕЛОСТИ И ВАРИАЦИЙ */
.cart-variants-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.cart-variant-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--page-bg);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(62, 16, 29, 0.04);
}

.variant-mini-select {
    font-size: 12px !important;
    padding: 6px 10px;
    background: #FFFFFF;
    border-radius: 8px;
    border: 1px solid rgba(62, 16, 29, 0.1);
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
}

.standard-ripeness-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.variant-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.variant-price-val {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    min-width: 65px;
    text-align: right;
}

.btn-item-delete {
    background: none;
    border: none;
    color: #A8A29E;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.btn-item-delete:hover {
    color: #D93838;
    transform: scale(1.15);
}

.add-variant-panel {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.add-variant-select {
    padding: 5px 10px;
    font-size: 12px !important;
    border-radius: 8px;
}

.btn-add-variant-pill {
    background: transparent;
    border: 1.5px dashed var(--wine-primary);
    color: var(--wine-primary);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-variant-pill:hover {
    background: var(--wine-soft);
    border-style: solid;
}

/* УМНЫЙ РЕЦЕПТ */
.recipe-concierge-card {
    background: #FFFFFF;
    border: 1px solid rgba(154, 123, 86, 0.25);
    border-radius: 20px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--card-shadow);
}

.recipe-concierge-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.recipe-concierge-body {
    flex: 1;
}

.concierge-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gold-accent);
}

.recipe-concierge-title {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--wine-primary);
    margin: 2px 0;
}

.recipe-concierge-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0;
}

.btn-recipe-add {
    background: var(--wine-primary);
    color: #FFFFFF;
    border: none;
    padding: 9px 16px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(62, 16, 29, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-recipe-add:hover {
    background: var(--wine-hover);
    transform: translateY(-1px);
}

/* КРОСС-СЕЙЛ БЛОК */
.cross-sell-box {
    margin-top: 10px;
}

.cross-sell-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.cross-sell-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--wine-primary);
    margin: 0;
}

.cross-sell-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}
.cross-sell-scroll::-webkit-scrollbar { display: none; }

.mini-product-card {
    flex: 0 0 150px; /* Сделали карточку чуть шире */
    background: #FFFFFF;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease;
}


.mini-product-card:hover {
    border-color: var(--wine-primary);
    transform: translateY(-3px);
}

/* Увеличиваем превью и делаем cover */
.mini-img {
    width: 100%;
    height: 110px; /* Увеличено (было 54px) */
    border-radius: 10px;
    object-fit: cover; /* 👈 Заполняет всю область */
    margin: 0 auto 8px;
    display: block;
}

.mini-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 4px;
    height: 28px;
    overflow: hidden;
}

.mini-price {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--wine-primary);
}

.mini-add-btn {
    background: var(--page-bg);
    color: var(--wine-primary);
    border: 1px solid rgba(62, 16, 29, 0.1);
    border-radius: 8px;
    padding: 5px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 6px;
    transition: all 0.2s ease;
}

.mini-add-btn:hover {
    background: var(--wine-primary);
    color: #FFFFFF;
}

/* ========================================================
   ПРАВАЯ КОЛОНКА (СТИЛЬНЫЙ ЧЕКАУТ-ЧЕК)
   ======================================================== */
.checkout-aside-section {
    position: sticky;
    top: 100px;
    z-index: 10;
}

.checkout-card-receipt {
    background: #FFFFFF;
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--card-shadow);
}

.receipt-header-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--wine-primary);
    margin: 0 0 16px;
}

.form-field-group {
    margin-bottom: 14px;
}

.field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.field-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.field-action-btn {
    background: none;
    border: none;
    color: var(--wine-primary);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.field-action-btn:hover {
    text-decoration: underline;
}

/* СТИЛИЗОВАННЫЕ ИНПУТЫ И СЕЛЕКТЫ (СТРОГО 16px ПРОТИВ ЗУМА НА iOS) */
.receipt-input,
.receipt-select {
    width: 100%;
    font-size: 16px !important;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-main);
    background: var(--page-bg);
    border: 1.5px solid rgba(62, 16, 29, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    outline: none;
    transition: all 0.2s ease;
}

.receipt-input:focus,
.receipt-select:focus {
    border-color: var(--wine-primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(62, 16, 29, 0.06);
}

.cutoff-notice-pill {
    background: var(--wine-soft);
    border: 1px solid rgba(62, 16, 29, 0.12);
    color: var(--wine-primary);
    font-size: 11.5px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
}

/* ПРОМОКОД */
.promo-input-row {
    display: flex;
    gap: 6px;
}

.promo-field {
    text-transform: uppercase;
}

.btn-promo-apply {
    background: var(--text-main);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-promo-apply:hover {
    background: var(--wine-primary);
}

.promo-feedback-text {
    font-size: 11.5px;
    font-weight: 600;
    margin-top: 4px;
}

/* БОНУСНЫЙ БАЛАНС */
.wallet-balance-card {
    background: var(--gold-subtle);
    border: 1px solid rgba(154, 123, 86, 0.2);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.wallet-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
}

.wallet-input-check {
    width: 17px;
    height: 17px;
    accent-color: var(--wine-primary);
}

.wallet-info-text {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
}

/* СВОДКА СТОИМОСТИ (ЧЕК) */
.receipt-summary-table {
    background: var(--page-bg);
    border-radius: 16px;
    padding: 16px;
    margin-top: 14px;
    border: 1px solid rgba(62, 16, 29, 0.05);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.summary-line.discount {
    color: #D93838;
    font-weight: 700;
}

.summary-line-val {
    font-weight: 700;
    color: var(--text-main);
}

.summary-divider {
    height: 1px;
    background: rgba(62, 16, 29, 0.08);
    margin: 10px 0;
}

.summary-total-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.total-label {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--wine-primary);
}

.total-price-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--wine-primary);
    letter-spacing: -0.4px;
}

/* ГАРАНТИЯ ОПЛАТЫ */
.payment-guarantee-note {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid rgba(154, 123, 86, 0.2);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 11.5px;
    color: #6E6763;
    margin: 14px 0;
    line-height: 1.35;
}

.note-icon {
    font-size: 14px;
}

/* ГЛАВНАЯ КНОПКА ЗАКАЗА */
.btn-main-checkout {
    width: 100%;
    padding: 14px;
    background: var(--wine-primary);
    color: #FFFFFF;
    border: none;
    border-radius: 100px;
    font-size: 15.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(62, 16, 29, 0.25);
    transition: all 0.25s ease;
}

.btn-main-checkout:hover {
    background: var(--wine-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(62, 16, 29, 0.3);
}

/* ========================================================
   МОДАЛЬНОЕ ОКНО АДРЕСОВ
   ======================================================== */
.boutique-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.boutique-modal-overlay.active {
    display: flex;
}

.boutique-modal-window {
    background: #FFFFFF;
    border-radius: 26px;
    padding: 30px 26px;
    max-width: 480px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--page-bg);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-subtitle-tag {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-accent);
}

.modal-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--wine-primary);
    margin: 4px 0 16px;
}

.address-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    max-height: 220px;
    overflow-y: auto;
}

.address-item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--page-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 10px 14px;
}

.address-info-col {
    display: flex;
    flex-direction: column;
}

.addr-tag-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
}

.addr-full-text {
    font-size: 11.5px;
    color: var(--text-muted);
}

.btn-addr-icon {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
}

.btn-toggle-new-addr {
    width: 100%;
    padding: 10px;
    background: var(--gold-subtle);
    border: 1.5px dashed var(--gold-accent);
    color: var(--gold-accent);
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 14px;
}

.modal-input-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.form-group-block {
    margin-bottom: 10px;
}

.modal-address-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.textarea-field {
    resize: none;
    border-radius: 10px;
}

/* ========================================================
   TOAST & ПУСТЫЕ СОСТОЯНИЯ
   ======================================================== */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.boutique-toast {
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

.cart-empty-box,
.cart-unauth-box {
    text-align: center;
    padding: 60px 20px;
    background: #FFFFFF;
    border-radius: 24px;
    border: 1px solid var(--card-border);
}

.empty-basket-icon,
.unauth-icon {
    font-size: 44px;
    margin-bottom: 10px;
}

.empty-basket-title,
.unauth-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--wine-primary);
    margin: 0 0 6px;
}

.empty-basket-desc,
.unauth-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
}

/* ========================================================
   АДАПТИВНОСТЬ (TABLET & SMARTPHONE)
   ======================================================== */

@media (max-width: 1024px) {
    .cart-main-layout {
        grid-template-columns: 1fr 340px;
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .cart-page {
        padding-top: 75px;
        padding-bottom: 50px;
    }

    .cart-container {
        padding: 0 12px;
    }

    .cart-main-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .checkout-aside-section {
        position: static;
    }

    .cart-item-card {
        padding: 12px;
        border-radius: 18px;
    }

    .item-media-frame {
        width: 52px;
        height: 52px;
    }

    .item-name-link {
        font-size: 14.5px;
    }

    .item-group-sum {
        font-size: 16px;
    }

    .cart-variant-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 10px;
    }

    .variant-right {
        justify-content: space-between;
        width: 100%;
    }

    .recipe-concierge-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px;
    }

    .btn-recipe-add {
        width: 100%;
        text-align: center;
    }
}
/* ========================================================
   EDITORIAL BOUTIQUE — CLEAN LUXURY RECEIPT SIDEBAR
   ======================================================== */

   .checkout-aside-section {
    position: sticky;
    top: 95px;
    z-index: 10;
}

.checkout-card-receipt {
    background: #FFFFFF;
    border: 1px solid rgba(62, 16, 29, 0.08);
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: 0 8px 32px rgba(62, 16, 29, 0.04);
}

/* Шапка чекаута */
.checkout-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.receipt-header-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--wine-primary, #3E101D);
    margin: 0;
}

.secure-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-accent, #9A7B56);
}

/* 1. Единый блок параметров доставки */
.checkout-group-card {
    background: var(--page-bg, #FAF9F6);
    border: 1px solid rgba(62, 16, 29, 0.06);
    border-radius: 16px;
    padding: 6px 14px;
    margin-bottom: 16px;
}

.checkout-row {
    padding: 10px 0;
    border-bottom: 1px solid rgba(62, 16, 29, 0.05);
}

.checkout-row:last-child {
    border-bottom: none;
}

.checkout-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.row-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted, #78716C);
}

.row-link-btn {
    background: none;
    border: none;
    color: var(--wine-primary, #3E101D);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.row-link-btn:hover {
    color: var(--wine-hover, #5A162B);
}

.today-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    background: #E8F5E9;
    color: #2E7D32;
    padding: 2px 7px;
    border-radius: 6px;
}

/* Селекты (строго font-size: 16px против зума на iPhone) */
.select-clean-wrap {
    position: relative;
}

.clean-select {
    width: 100%;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-main, #1C1917);
    background: #FFFFFF;
    border: 1px solid rgba(62, 16, 29, 0.08);
    border-radius: 10px;
    padding: 9px 12px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.clean-select:focus {
    border-color: var(--wine-primary, #3E101D);
    box-shadow: 0 0 0 3px rgba(62, 16, 29, 0.05);
}

/* 2. Промокод и бонусы */
.promo-accordion-wrap {
    margin-bottom: 16px;
}

.promo-input-compact {
    display: flex;
    gap: 6px;
    background: #FFFFFF;
    border: 1px solid rgba(62, 16, 29, 0.1);
    border-radius: 12px;
    padding: 3px 4px 3px 12px;
    transition: border-color 0.2s ease;
}

.promo-input-compact:focus-within {
    border-color: var(--wine-primary, #3E101D);
}

.clean-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main, #1C1917);
}

.clean-input::placeholder {
    color: #A8A29E;
    font-weight: 500;
}

.btn-promo-apply {
    background: var(--wine-primary, #3E101D);
    color: #FFFFFF;
    border: none;
    border-radius: 9px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.btn-promo-apply:hover {
    background: var(--wine-hover, #5A162B);
}

.promo-feedback-text {
    font-size: 11.5px;
    font-weight: 600;
    margin-top: 4px;
    padding-left: 4px;
}

.wallet-balance-row {
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--page-bg, #FAF9F6);
    border-radius: 10px;
    border: 1px solid rgba(154, 123, 86, 0.2);
}

.wallet-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
}

.wallet-input-check {
    width: 16px;
    height: 16px;
    accent-color: var(--wine-primary, #3E101D);
}

.wallet-info-text {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main, #1C1917);
}

/* 3. Расчет стоимости */
.receipt-calculation {
    padding-top: 8px;
    margin-bottom: 14px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    color: var(--text-muted, #78716C);
    margin-bottom: 8px;
}

.calc-val {
    font-weight: 700;
    color: var(--text-main, #1C1917);
}

.calc-val.free-delivery {
    color: #2E7D32;
}

.calc-row.discount-row {
    color: #D93838;
    font-weight: 700;
}

.calc-row.discount-row .calc-val {
    color: #D93838;
}

.calc-divider {
    height: 1px;
    background: rgba(62, 16, 29, 0.08);
    margin: 12px 0;
}

.calc-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.total-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--wine-primary, #3E101D);
}

.total-price-number {
    font-size: 26px;
    font-weight: 800;
    color: var(--wine-primary, #3E101D);
    letter-spacing: -0.5px;
}

/* 4. Текст оплаты */
.payment-guarantee-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-muted, #78716C);
    margin: 0 0 16px;
    line-height: 1.4;
}

/* 5. Главная кнопка */
.btn-main-checkout {
    width: 100%;
    padding: 15px;
    background: var(--wine-primary, #3E101D);
    color: #FFFFFF;
    border: none;
    border-radius: 100px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(62, 16, 29, 0.22);
    transition: all 0.25s ease;
}

.btn-main-checkout:hover {
    background: var(--wine-hover, #5A162B);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(62, 16, 29, 0.3);
}

.btn-main-checkout:active {
    transform: translateY(0);
}

/* Мобильная адаптация инпутов */
@media (max-width: 768px) {
    .clean-select,
    .clean-input {
        font-size: 16px !important; /* 👈 защита от зума на айфонах */
    }
}



/* ========================================================
   EDITORIAL BOUTIQUE — CLEAN CART ITEMS (NO MORE CLUTTER)
   ======================================================== */

   .cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Монолитная карточка товара */
.cart-product-card {
    background: #FFFFFF;
    border: 1px solid rgba(62, 16, 29, 0.08);
    border-radius: 20px;
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.cart-product-card:hover {
    border-color: rgba(62, 16, 29, 0.16);
    box-shadow: 0 8px 24px rgba(62, 16, 29, 0.05);
}

.cart-product-main {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

/* Увеличиваем размер контейнера (с 76px до 88px) */
.cart-thumb-link,
.item-media-frame {
    width: 88px;
    height: 88px;
    border-radius: 16px;
    background: radial-gradient(circle at 50% 50%, #FAF8F5 0%, #EFEBE5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(62, 16, 29, 0.06);
}
/* Картинка заполняет 100% рамки и замощает её (cover) */
.cart-thumb-img,
.item-thumb-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; /* 👈 Растягивает на всю площадь без искажения */
    transition: transform 0.3s ease;
}
.cart-product-card:hover .cart-thumb-img {
    transform: scale(1.08);
}

/* Инфо-блок */
.cart-product-info {
    flex: 1;
    min-width: 0;
}

.cart-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.cart-item-title {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-main, #1C1917);
    text-decoration: none;
    line-height: 1.25;
    transition: color 0.2s ease;
}

.cart-item-title:hover {
    color: var(--wine-primary, #3E101D);
}

.cart-unit-rate {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted, #78716C);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Строки спелости */
.cart-variants-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-variant-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--page-bg, #FAF9F6);
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid rgba(62, 16, 29, 0.05);
}

/* Селектор спелости */
.variant-selector-pill {
    flex: 1;
    min-width: 0;
}

.clean-ripeness-select {
    background: #FFFFFF;
    border: 1px solid rgba(62, 16, 29, 0.1);
    border-radius: 8px;
    padding: 6px 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main, #1C1917);
    cursor: pointer;
    outline: none;
    max-width: 220px;
    transition: border-color 0.2s ease;
}

.clean-ripeness-select:focus {
    border-color: var(--wine-primary, #3E101D);
}

.standard-ripeness-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted, #78716C);
}

/* Блок управления: степпер + цена + удалить */
.variant-controls-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

/* Степпер */
.card-stepper-box {
    display: flex;
    align-items: center;
    background: var(--wine-primary, #3E101D);
    border-radius: 100px;
    padding: 3px;
    color: #FFFFFF;
    gap: 4px;
    box-shadow: 0 3px 10px rgba(62, 16, 29, 0.18);
}

.stepper-sub-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.stepper-sub-btn:hover {
    background: rgba(255, 255, 255, 0.32);
}

.stepper-val {
    font-size: 11.5px;
    font-weight: 800;
    padding: 0 6px;
    white-space: nowrap;
}

/* Стоимость конкретной строки */
.variant-cost {
    font-size: 16px;
    font-weight: 800;
    color: var(--wine-primary, #3E101D);
    min-width: 65px;
    text-align: right;
    letter-spacing: -0.3px;
}

/* Кнопка удаления */
.btn-clean-delete {
    background: none;
    border: none;
    color: #A8A29E;
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.btn-clean-delete:hover {
    color: #D93838;
    transform: scale(1.15);
}

/* Ссылка и форма добавления спелости */
.add-ripeness-wrapper {
    margin-top: 8px;
}

.btn-show-add-ripeness {
    background: none;
    border: none;
    color: var(--gold-accent, #9A7B56);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.btn-show-add-ripeness:hover {
    color: var(--wine-primary, #3E101D);
}

.add-ripeness-inline-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--page-bg, #FAF9F6);
    padding: 4px 8px;
    border-radius: 10px;
    border: 1px dashed rgba(154, 123, 86, 0.35);
}

.btn-confirm-add {
    background: var(--wine-primary, #3E101D);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}

.btn-confirm-add:hover {
    background: var(--wine-hover, #5A162B);
}

.btn-cancel-add {
    background: none;
    border: none;
    color: var(--text-muted, #78716C);
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
}

/* ========================================================
   АДАПТИВ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ======================================================== */
@media (max-width: 768px) {
    .cart-product-card {
        padding: 12px;
        border-radius: 16px;
    }

    .cart-product-main {
        gap: 12px;
    }

    .cart-thumb-link,
    .item-media-frame {
        width: 68px;
        height: 68px;
        border-radius: 14px;
    }
    .mini-img {
        height: 90px;
    }
    .cart-item-title {
        font-size: 14.5px;
    }

    .cart-unit-rate {
        font-size: 11px;
    }

    .cart-variant-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 10px;
    }

    .clean-ripeness-select {
        width: 100%;
        max-width: 100%;
        font-size: 16px !important; /* 👈 защита от зума на iOS */
    }

    .variant-controls-group {
        justify-content: space-between;
        width: 100%;
    }

    .stepper-sub-btn {
        width: 24px;
        height: 24px;
        font-size: 13px;
    }

    .variant-cost {
        font-size: 15px;
    }
}



/* ========================================================
   БЕЗУПРЕЧНЫЙ МОБИЛЬНЫЙ АДАПТИВ КОРЗИНЫ (SMARTPHONES & TABLETS)
   ======================================================== */

   @media (max-width: 1024px) {
    .cart-container {
        max-width: 100%;
        padding: 0 16px;
    }

    .cart-main-layout {
        grid-template-columns: 1fr 340px;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* 1. БАЗОВЫЕ ОТСТУПЫ */
    .cart-page {
        padding-top: 72px;
        padding-bottom: 50px;
        overflow-x: hidden;
    }

    .cart-container {
        padding: 0 10px;
    }

    .cart-top-nav {
        margin-bottom: 12px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .cat-back-link {
        font-size: 11.5px;
        padding: 4px 10px;
    }

    .cart-step-indicator {
        font-size: 11.5px;
    }

    /* 2. ЛЕЙАУТ В 1 КОЛОНКУ */
    .cart-main-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cart-section-header {
        margin-bottom: 4px;
    }

    .cart-main-title {
        font-size: 22px;
    }

    .cart-count-pill {
        font-size: 11px;
        padding: 3px 10px;
    }

    /* Шкала доставки */
    .delivery-goal-card {
        padding: 10px 14px;
        border-radius: 14px;
    }

    .delivery-goal-text {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .delivery-track {
        height: 6px;
    }

    /* 3. МОБИЛЬНАЯ КАРТОЧКА ТОВАРА */
    .cart-items-list {
        gap: 10px;
    }

    .cart-product-card {
        padding: 12px;
        border-radius: 16px;
    }

    .cart-product-main {
        gap: 12px;
        align-items: center;
    }

    /* Фото товара */
    .cart-thumb-link {
        width: 60px;
        height: 60px;
        border-radius: 12px;
    }

    .cart-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        margin-bottom: 6px;
    }

    .cart-item-title {
        font-size: 14.5px;
        line-height: 1.25;
    }

    .cart-unit-rate {
        font-size: 11px;
        color: var(--text-muted, #78716C);
    }

    /* Строка спелости и степпера */
    .cart-variants-container {
        gap: 6px;
    }

    .cart-variant-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 10px;
        border-radius: 10px;
    }

    .variant-selector-pill {
        width: 100%;
    }

    .clean-ripeness-select {
        width: 100%;
        max-width: 100%;
        font-size: 16px !important; /* Защита от зума на iOS */
        padding: 7px 10px;
        border-radius: 8px;
    }

    .standard-ripeness-label {
        font-size: 11.5px;
    }

    /* Нижняя панель строки: Степпер + Цена + Удаление */
    .variant-controls-group {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    /* Увеличенные кнопки степпера под палец */
    .card-stepper-box {
        padding: 2px 4px;
        gap: 3px;
    }

    .stepper-sub-btn {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }

    .stepper-val {
        font-size: 12px;
        padding: 0 5px;
    }

    .variant-cost {
        font-size: 15.5px;
        min-width: auto;
    }

    .btn-clean-delete {
        font-size: 15px;
        padding: 6px;
    }

    /* Форма добавления другой спелости */
    .btn-show-add-ripeness {
        font-size: 11.5px;
    }

    .add-ripeness-inline-form {
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-wrap: wrap;
    }

    .add-ripeness-inline-form .clean-ripeness-select {
        flex: 1;
        min-width: 140px;
    }

    /* 4. ЧЕКАУТ-БЛОК НА МОБИЛЕ */
    .checkout-aside-section {
        position: static;
        margin-top: 6px;
    }

    .checkout-card-receipt {
        padding: 16px 14px;
        border-radius: 18px;
    }

    .receipt-header-title {
        font-size: 20px;
    }

    .checkout-group-card {
        padding: 4px 10px;
        border-radius: 14px;
        margin-bottom: 12px;
    }

    .clean-select,
    .clean-input {
        font-size: 16px !important; /* Строго 16px против зума */
        padding: 9px 10px;
    }

    .promo-input-compact {
        padding: 2px 2px 2px 10px;
    }

    .btn-promo-apply {
        padding: 8px 12px;
        font-size: 12px;
    }

    .receipt-calculation {
        padding-top: 4px;
        margin-bottom: 12px;
    }

    .calc-row {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .total-title {
        font-size: 18px;
    }

    .total-price-number {
        font-size: 22px;
    }

    .btn-main-checkout {
        padding: 14px;
        font-size: 15px;
        border-radius: 100px;
    }

    /* 5. МОБИЛЬНАЯ МОДАЛКА АДРЕСОВ (BOTTOM SHEET) */
    .boutique-modal-overlay {
        align-items: flex-end; /* Выезжает снизу */
        padding: 0;
    }

    .boutique-modal-window {
        border-radius: 24px 24px 0 0;
        padding: 22px 16px 30px;
        max-height: 85vh;
        width: 100%;
    }

    .modal-main-title {
        font-size: 19px;
        margin-bottom: 12px;
    }

    .address-cards-stack {
        max-height: 180px;
    }

    .address-item-card {
        padding: 8px 12px;
    }

    .modal-address-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
}

/* ДЛЯ УЛЬТРАКОМПАКТНЫХ ЭКРАНОВ (iPhone SE / 320px - 360px) */
@media (max-width: 360px) {
    .cart-thumb-link {
        width: 52px;
        height: 52px;
    }

    .cart-item-title {
        font-size: 13.5px;
    }

    .stepper-sub-btn {
        width: 24px;
        height: 24px;
        font-size: 13px;
    }

    .total-price-number {
        font-size: 20px;
    }
}


/* ========================================================
   EDITORIAL BOUTIQUE — TILED CHECKOUT BLOCKS
   ======================================================== */

/* Стек карточек-виджетов */
.checkout-tiles-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

/* Отдельная карточка-виджет */
.checkout-tile-card {
    background: var(--page-bg, #FAF9F6);
    border: 1px solid rgba(62, 16, 29, 0.07);
    border-radius: 16px;
    padding: 12px 14px;
    transition: all 0.2s ease;
}

.checkout-tile-card:hover {
    border-color: rgba(62, 16, 29, 0.16);
    background: #FFFFFF;
    box-shadow: 0 4px 14px rgba(62, 16, 29, 0.03);
}

.checkout-tile-card:focus-within {
    border-color: var(--wine-primary, #3E101D);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(62, 16, 29, 0.05);
}

/* Шапка виджета */
.tile-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tile-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Круглая плашка под иконку */
.tile-icon-bubble {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid rgba(62, 16, 29, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.tile-title-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted, #78716C);
    letter-spacing: 0.2px;
}

.tile-action-link {
    background: none;
    border: none;
    color: var(--wine-primary, #3E101D);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.tile-action-link:hover {
    color: var(--wine-hover, #5A162B);
}

.tile-badge-today {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    background: #E8F5E9;
    color: #2E7D32;
    padding: 2px 7px;
    border-radius: 6px;
}

/* Селект внутри виджета */
.tile-select-wrap {
    position: relative;
}

.clean-tile-select {
    width: 100%;
    font-size: 13.5px;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-main, #1C1917);
    background: #FFFFFF;
    border: 1px solid rgba(62, 16, 29, 0.1);
    border-radius: 10px;
    padding: 8px 12px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.clean-tile-select:focus {
    border-color: var(--wine-primary, #3E101D);
}

/* ========================================================
   АДАПТИВ ПОД МОБИЛЬНЫЕ (768px и меньше)
   ======================================================== */
@media (max-width: 768px) {
    .checkout-tiles-stack {
        gap: 8px;
        margin-bottom: 12px;
    }

    .checkout-tile-card {
        padding: 10px 12px;
        border-radius: 14px;
    }

    .tile-icon-bubble {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .tile-title-text {
        font-size: 11.5px;
    }

    /* 👈 Строго 16px на мобильных, чтобы Safari на iPhone не зумил */
    .clean-tile-select {
        font-size: 16px !important;
        padding: 8px 10px;
        border-radius: 8px;
    }
}


/* ========================================================
   EDITORIAL BOUTIQUE — HAUTE COUTURE CHECKOUT (V5 LUXURY)
   ======================================================== */

   :root {
    --wine-dark: #320C17;
    --wine-rich: #481222;
    --wine-soft: #F7EFF2;
    --gold-champagne: #A6825B;
    --gold-subtle: #FAF6F0;
    --text-primary: #1A1617;
    --text-secondary: #746B68;
    --card-surface: #FFFFFF;
    --surface-tint: #FAF8F5;
    --luxury-border: rgba(62, 16, 29, 0.08);
}

.checkout-aside-section {
    position: sticky;
    top: 90px;
    z-index: 10;
}

/* Главная карточка-квитанция */
.luxury-receipt-card {
    background: var(--card-surface);
    border: 1px solid var(--luxury-border);
    border-radius: 28px;
    padding: 26px 22px;
    box-shadow: 0 16px 40px rgba(50, 12, 23, 0.04), 0 2px 8px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

/* Шапка с печатью бутика */
.receipt-brand-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(62, 16, 29, 0.06);
}

.receipt-eyebrow {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--gold-champagne);
    display: block;
    margin-bottom: 2px;
}

.receipt-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--wine-dark);
    margin: 0;
    letter-spacing: -0.3px;
}

.boutique-seal {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gold-subtle);
    border: 1px solid rgba(166, 130, 91, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-champagne);
    flex-shrink: 0;
}

.boutique-seal svg {
    width: 17px;
    height: 17px;
}

/* ========================================================
   КОНСЬЕРЖ-ЯЧЕЙКИ (ИНТЕРАКТИВНЫЙ ВЫБОР)
   ======================================================== */
.concierge-cells-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.concierge-cell {
    background: var(--surface-tint);
    border: 1px solid rgba(62, 16, 29, 0.07);
    border-radius: 16px;
    padding: 10px 12px;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.concierge-cell:hover {
    background: #FFFFFF;
    border-color: rgba(62, 16, 29, 0.18);
    box-shadow: 0 6px 18px rgba(50, 12, 23, 0.04);
    transform: translateY(-1px);
}

.concierge-cell:focus-within {
    background: #FFFFFF;
    border-color: var(--wine-dark);
    box-shadow: 0 0 0 3.5px rgba(50, 12, 23, 0.06);
}

.cell-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.cell-label-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
}

.cell-icon-box {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #FFFFFF;
    border: 1px solid rgba(62, 16, 29, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wine-dark);
    flex-shrink: 0;
}

.cell-icon-box svg {
    width: 13px;
    height: 13px;
}

.cell-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.cell-action-link {
    background: none;
    border: none;
    color: var(--gold-champagne);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.cell-action-link:hover {
    color: var(--wine-dark);
    text-decoration: underline;
}

.cell-status-badge {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #EAF5ED;
    color: #1F6E35;
    padding: 2px 7px;
    border-radius: 100px;
}

/* Кастомный селект со стрелочкой */
.cell-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.concierge-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: #FFFFFF;
    border: 1px solid rgba(62, 16, 29, 0.09);
    border-radius: 10px;
    padding: 8px 30px 8px 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.select-chevron {
    position: absolute;
    right: 10px;
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: transform 0.2s ease;
}

.concierge-select:focus + .select-chevron {
    color: var(--wine-dark);
    transform: rotate(180deg);
}

/* ========================================================
   ПРОМОКОД & БОНУСЫ
   ======================================================== */
.luxury-promo-box {
    margin-bottom: 18px;
}

.promo-field-row {
    display: flex;
    background: #FFFFFF;
    border: 1px solid rgba(62, 16, 29, 0.12);
    border-radius: 12px;
    padding: 3px 4px 3px 12px;
    transition: all 0.2s ease;
}

.promo-field-row:focus-within {
    border-color: var(--wine-dark);
    box-shadow: 0 0 0 3px rgba(50, 12, 23, 0.05);
}

.luxury-promo-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
}

.luxury-promo-input::placeholder {
    color: #A8A09D;
    font-weight: 500;
    text-transform: none;
}

.luxury-promo-btn {
    background: var(--wine-dark);
    color: #FFFFFF;
    border: none;
    border-radius: 9px;
    padding: 7px 14px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.luxury-promo-btn:hover {
    background: var(--wine-rich);
}

.promo-feedback-text {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    padding-left: 4px;
}

.wallet-tier-row {
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--gold-subtle);
    border: 1px solid rgba(166, 130, 91, 0.2);
    border-radius: 10px;
}

.wallet-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
}

.wallet-checkbox-native {
    width: 15px;
    height: 15px;
    accent-color: var(--wine-dark);
}

.wallet-balance-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========================================================
   ИТОГОВАЯ КВИТАНЦИЯ (LEDGER RECEIPT)
   ======================================================== */
.ledger-summary {
    background: var(--surface-tint);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(62, 16, 29, 0.05);
}

.ledger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.ledger-amount {
    font-weight: 700;
    color: var(--text-primary);
}

.ledger-amount.free-highlight {
    color: #1F6E35;
    font-weight: 800;
}

.ledger-row.discount-row {
    color: #C02626;
    font-weight: 700;
}
.ledger-row.discount-row .ledger-amount {
    color: #C02626;
}

/* Перфорированная линия чека */
.ledger-perforation {
    height: 1px;
    border-top: 1.5px dashed rgba(62, 16, 29, 0.12);
    margin: 12px 0 10px;
}

.ledger-total-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.total-label-stack {
    display: flex;
    flex-direction: column;
}

.total-main-text {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--wine-dark);
    line-height: 1.1;
}

.total-vat-hint {
    font-size: 10px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 2px;
}

.total-currency-display {
    font-size: 26px;
    font-weight: 900;
    color: var(--wine-dark);
    letter-spacing: -0.5px;
}

/* Гарантия свежести */
.concierge-guarantee {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding: 0 4px;
}

.guarantee-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22C55E;
    flex-shrink: 0;
}

/* ГЛАВНАЯ КНОПКА ПОДТВЕРЖДЕНИЯ */
.btn-haute-checkout {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--wine-dark) 0%, var(--wine-rich) 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 100px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 28px rgba(50, 12, 23, 0.28);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-arrow-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.btn-haute-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(50, 12, 23, 0.36);
}

.btn-haute-checkout:hover .btn-arrow-icon {
    transform: translateX(4px);
}

.btn-haute-checkout:active {
    transform: translateY(0);
}

/* ========================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (iOS 16px FONT-SIZE FIX)
   ======================================================== */
@media (max-width: 768px) {
    .luxury-receipt-card {
        padding: 18px 14px;
        border-radius: 22px;
    }

    .concierge-select,
    .luxury-promo-input {
        font-size: 16px !important; /* 👈 строгая защита от приближения на iPhone */
    }

    .concierge-cell {
        padding: 9px 10px;
    }

    .total-currency-display {
        font-size: 22px;
    }

    .btn-haute-checkout {
        padding: 14px 20px;
        font-size: 14.5px;
    }
}


/* БЛОК ДОПРОДАЖ И КОНСЬЕРЖ-ДОПОВ */
.order-addons-card {
    background: #FFFFFF;
    border: 1px solid #EFECE6;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.addons-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.addons-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2D2522;
    margin: 0;
}

.addon-row-item {
    padding: 14px 0;
    border-bottom: 1px dashed #E8E5DF;
    transition: all 0.2s ease;
}

.addon-row-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.addon-checkbox-label {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.addon-left {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.addon-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #3E101D;
    margin-top: 2px;
    cursor: pointer;
}

.addon-info-text {
    display: flex;
    flex-direction: column;
}

.addon-title {
    font-size: 14px;
    font-weight: 600;
    color: #1F1917;
}

.addon-desc {
    font-size: 12px;
    color: #78716C;
    margin-top: 2px;
}

.addon-price-badge {
    font-size: 13px;
    font-weight: 700;
    color: #3E101D;
    background: #FDF4F4;
    padding: 4px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

/* Поле ввода текста для открытки */
.postcard-expand-wrap {
    margin-top: 12px;
    padding-left: 32px;
    display: none;
    animation: fadeIn 0.25s ease;
}

.postcard-textarea {
    width: 100%;
    border: 1px solid #D6D0C7;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    background: #FAF8F5;
    color: #2D2522;
    resize: none;
    box-sizing: border-box;
    outline: none;
}
.postcard-textarea:focus {
    border-color: #3E101D;
    background: #FFF;
}

/* Умный блок вазы (Цветы) */
.flower-vase-box {
    background: linear-gradient(135deg, #FBF8F5 0%, #F5EFEB 100%);
    border: 1px solid #E6DCD2;
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 10px;
}
.flower-badge-pill {
    display: inline-flex;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #3E101D;
    color: #FFF;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 6px;
}
