/* Общие стили */
:root {
    --primary-color: #4CAF50;
    --primary-hover: #45a049;
    --secondary-color: #4ECDC4;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-white: #FFFFFF;
    --bg-gray: #F8F9FA;
    --border-color: #E0E0E0;
    --success-color: #27AE60;
    --warning-color: #F39C12;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Блокировка скролла при открытых модалах */
body.scroll-locked {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Экран загрузки */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 50%, #2E7D32 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader__content {
    text-align: center;
    animation: fadeIn 1s ease-out;
    padding: 2rem;
    max-width: 400px;
}

.loader__logo {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.5rem;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 22px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    animation: gentleFloat 4s ease-in-out infinite;
    position: relative;
}

.loader__logo svg,
.loader__logo img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 18px;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.2));
    transition: transform 0.2s ease;
}

.loader__title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.loader__subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.loader__spinner {
    margin: 1.5rem auto;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: smoothSpin 1.2s linear infinite;
    margin: 0 auto;
}

.loader__progress {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
    overflow: hidden;
    margin: 1.5rem 0 1rem;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
}

.loader__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,1));
    border-radius: 2px;
    transition: width 0.4s ease-out;
    width: 0%;
    position: relative;
}

.loader__progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: gentleShimmer 3s ease-in-out infinite;
}

.loader__text {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    min-height: 1.2rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.pulse {
    animation: softPulse 3s ease-in-out infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes smoothSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes softPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 10px 25px rgba(0,0,0,0.2));
    }
    50% {
        transform: scale(1.02);
        filter: drop-shadow(0 12px 30px rgba(0,0,0,0.25));
    }
}

@keyframes gentleShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .loader__content {
        padding: 1.5rem;
        max-width: 320px;
    }
    
    .loader__title {
        font-size: 1.75rem;
    }
    
    .loader__subtitle {
        font-size: 0.9rem;
    }
    
    .loader__logo {
        width: 88px;
        height: 88px;
        border-radius: 18px;
    }

    .loader__logo svg,
    .loader__logo img {
        width: 72px;
        height: 72px;
        border-radius: 15px;
    }
    
    .spinner {
        width: 40px;
        height: 40px;
    }
}

/* Шапка */
.header {
    background: var(--bg-white);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 101;
    transition: transform 0.35s ease;
}

.header--hidden {
    transform: translateY(-100%);
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    height: 44px;
    padding: 0 4px;
    outline: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 18px;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-sushi {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.logo-pizza {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #3aaa42;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.logo-texts {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0;
}

.logo-city {
    display: none;
}

.header__nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--bg-gray);
    color: var(--text-dark);
}

.nav-btn.active {
    background: var(--primary-color);
    color: white;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Баланс коинов в шапке */
.header-coins {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    background: linear-gradient(135deg, #FFA000, #FF6F00);
    color: #fff;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(255,160,0,0.3);
}
.header-coins:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,160,0,0.45);
}

/* ── Бонус-баланс (только мобилка) ── */
.header-bonus {
    display: none; /* управляется JS */
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 40px;
    background: #fff;
    border: 1.5px solid #eee;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    white-space: nowrap;
    transition: box-shadow 0.18s, transform 0.18s;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.header-bonus:active {
    transform: scale(0.95);
}

/* Тултип бонусов */
.header-bonus-tooltip {
    position: fixed;
    top: 70px;
    right: 12px;
    width: 260px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.16), 0 2px 8px rgba(58,170,66,0.12);
    padding: 20px 18px 16px;
    z-index: 9999;
    animation: bonusTooltipIn 0.22s ease;
    border: 1px solid #e8f5e9;
}
@keyframes bonusTooltipIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.header-bonus-tooltip__close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 16px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.header-bonus-tooltip__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}
.header-bonus-tooltip__title {
    margin: 0 0 6px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #1b5e20;
}
.header-bonus-tooltip__text {
    margin: 0 0 14px;
    text-align: center;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}
.header-bonus-tooltip__cta {
    display: block;
    width: 100%;
    padding: 11px 0;
    background: #3aaa42;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.header-bonus-tooltip__cta:active {
    background: #2e8b35;
}

/* Тултип на десктопе — справа под шапкой */
@media (min-width: 769px) {
    .header-bonus-tooltip {
        top: 70px;
        right: 20px;
    }
}

.delivery-info,
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-btn,
.auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 44px;
    border: none;
    background: #f8f9fa;
    color: var(--text-dark);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    overflow: hidden;
    max-width: 280px;
}

.delivery-btn span,
.auth-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.delivery-btn:hover,
.auth-btn:hover {
    background: #e9ecef;
}

.delivery-btn svg,
.auth-btn svg {
    color: #6b7280;
    flex-shrink: 0;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    height: 44px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--primary-hover);
}

/* ===== CART DRAWER (БОКОВАЯ ПАНЕЛЬ) ===== */
.cart-btn-wrapper {
    position: relative;
}

/* Затемнение фона */
.cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.cart-backdrop.open {
    opacity: 1;
    pointer-events: all;
}
@media (max-width: 768px) {
    .cart-backdrop {
        bottom: 62px; /* не перекрывать нижнее меню */
    }
}

/* Сама боковая панель */
.cart-dropdown {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100vw;
    height: 100dvh;
    background: #fff;
    box-shadow: -6px 0 40px rgba(0,0,0,0.18);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* скролл перенесён в .cart-dropdown__scroll */
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; /* не перехватывать клики когда вне экрана */
}

.cart-dropdown.open {
    transform: translateX(0);
    pointer-events: auto;
}

/* Шапка панели */
.cart-dropdown__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 16px;
    border-bottom: 1px solid #F0F0F0;
    flex-shrink: 0;
    background: #fff;
    z-index: 1;
}

.cart-dropdown__title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
}

.cart-dropdown__count {
    font-size: 13px;
    font-weight: 500;
    color: #999;
    background: #F5F5F5;
    padding: 3px 10px;
    border-radius: 20px;
}

.cart-dropdown__close {
    width: 34px;
    height: 34px;
    border: none;
    background: #F5F5F5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}
.cart-dropdown__close:hover {
    background: #E8E8E8;
    color: #111;
}

/* Кнопка назад (только мобильная) — по умолчанию скрыта */
.cart-drawer-back-btn {
    display: none;
}
/* Спейсер для центрирования заголовка (только мобильный) — по умолчанию скрыт */
.cart-drawer-spacer {
    display: none;
}

/* Прокручиваемая область (тело + секции) */
.cart-dropdown__scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #E0E0E0 transparent;
    -webkit-overflow-scrolling: touch;
}

/* Тело */
.cart-dropdown__body {
    flex: none;
}

.cart-dropdown__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 10px;
    color: #999;
    height: 100%;
}

.cart-dropdown__empty p {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin: 0;
}

.cart-dropdown__empty span {
    font-size: 13px;
    color: #aaa;
}

.cart-dropdown__items {
    padding: 8px 0;
}

.cart-dropdown__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    transition: background 0.15s;
}

.cart-dropdown__item:hover {
    background: #FAFAFA;
}

.cart-dropdown__item-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #F5F5F5;
}

.cart-dropdown__item-info {
    flex: 1;
    min-width: 0;
}

.cart-dropdown__item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.cart-dropdown__item-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-dropdown__item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #F5F5F5;
    border-radius: 10px;
    padding: 4px 8px;
}

.cart-dropdown__qty-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #555;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}

.cart-dropdown__qty-btn:hover {
    background: #E8E8E8;
    color: #111;
}

.cart-dropdown__qty-val {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    min-width: 18px;
    text-align: center;
}

.cart-dropdown__item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: auto;
    white-space: nowrap;
}

.cart-dropdown__item-del {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CCC;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}

.cart-dropdown__item-del:hover {
    background: #FFF0F0;
    color: #E53935;
}

/* Футер панели — всегда прилипает ко дну (flex-shrink: 0 достаточно, т.к. scroll внутри) */
.cart-dropdown__footer {
    padding: 16px 20px 24px;
    border-top: 1px solid #F0F0F0;
    background: #fff;
    flex-shrink: 0;
}

.cart-dropdown__total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    color: #666;
    margin-bottom: 14px;
}

.cart-dropdown__total-row strong {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
}

.cart-dropdown__checkout-btn {
    width: 100%;
    height: 52px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.15s;
}

.cart-dropdown__checkout-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.cart-dropdown__checkout-btn:active {
    transform: translateY(0);
}
/* --- Промокод в панели --- */
.cdd-promo {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F7F7F7;
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 6px;
}
.cdd-promo svg { flex-shrink: 0; }
.cdd-promo__input {
    flex: 1;
    border: none;
    background: none;
    font-size: 14px;
    color: #333;
    outline: none;
}
.cdd-promo__input::placeholder { color: #BDBDBD; }
.cdd-promo__btn {
    height: 28px;
    padding: 0 12px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.cdd-promo__btn:hover { background: var(--primary-hover); }
.cdd-promo__msg {
    font-size: 12px;
    min-height: 0;
    margin-bottom: 4px;
    padding: 0 2px;
}
.cdd-promo__msg.success { color: #4CAF50; }
.cdd-promo__msg.error { color: #E53935; }

/* --- Строки итогов --- */
.cdd-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    padding: 5px 0;
}
.cdd-row--discount { color: #E53935; }
.cdd-row--total {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 6px 0 2px;
    margin-bottom: 14px;
}
.cdd-row--total strong {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
}
.cdd-divider {
    height: 1px;
    background: #F0F0F0;
    margin: 8px 0;
}

/* --- Секции в боковой панели (призы, приборы, ещё) --- */
.cdd-sections {
    background: #F5F6F8;
    border-top: 1px solid #EBEBEB;
    padding: 2px 0 4px;
}
.cdd-section {
    padding: 14px 16px 16px;
    border-bottom: none;
}
.cdd-section + .cdd-section {
    border-top: 1px solid #EAEBEC;
}
.cdd-section__head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 10px;
}
.cdd-section__head svg { flex-shrink: 0; }
.cdd-section__badge {
    background: var(--primary-color);
    color: #fff;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
}
.cdd-section__toggle {
    margin-left: auto;
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.15s;
}
.cdd-section__toggle:hover { opacity: 0.82; background: var(--primary-color); }
.cdd-inv-popup {
    animation: fadeIn 0.15s ease;
}

/* Карточки приборов и "добавьте ещё" внутри drawer */
.cart-dropdown .cpanel-rp-card {
    background: #fff;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    border-radius: 16px;
    width: 112px;
}
.cart-dropdown .cpanel-rp-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}
.cart-dropdown .cpanel-rp-card__img {
    height: 90px;
    border-radius: 16px 16px 0 0;
}
.cart-dropdown .cpanel-rp-card__btn {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
}
.cart-dropdown .cpanel-rp-card__btn:hover {
    background: #43A047;
    border-color: #43A047;
    color: #fff;
}
.cart-dropdown .cpanel-rp-card__counter {
    border-radius: 10px;
}
.cart-dropdown .cpanel-featured__scroll {
    gap: 8px;
    padding: 2px 0 4px;
    scrollbar-width: none;
}
.cart-dropdown .cpanel-featured__scroll::-webkit-scrollbar { display: none; }

/* Обёртка со стрелками */
.cdd-scroll-wrap {
    position: relative;
}
.cdd-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 4;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    color: #333;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s, background 0.15s;
    flex-shrink: 0;
}
.cdd-arrow:hover { background: #F5F5F5; }
.cdd-arrow--left  { left: -6px; }
.cdd-arrow--right { right: -6px; }
.cdd-scroll-wrap:hover .cdd-arrow { opacity: 1; pointer-events: all; }
.cdd-arrow.hidden { opacity: 0 !important; pointer-events: none !important; }
/* ===== END CART DRAWER ===== */

/* ===== CART DRAWER MOBILE ===== */
@media (max-width: 768px) {

    /* === Корзина — выезжает снизу, не перекрывает нижнюю навигацию === */
    .cart-dropdown {
        width: 100%;
        max-width: 100%;
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        height: calc(100dvh - 62px);  /* оставляем место для нижнего меню */
        border-radius: 20px 20px 0 0;
        z-index: 10001;
        transform: translateY(100%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;         /* скролл только внутри .cart-dropdown__scroll */
    }
    .cart-dropdown.open {
        transform: translateY(0);
    }

    /* === Шапка в стиле профиля === */
    .cart-dropdown__header {
        z-index: 2;
        background: #fff;
        display: flex;
        align-items: center;
        height: 56px;
        padding: 0 8px 0 4px;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 20px 20px 0 0;
        gap: 0;
    }
    /* Убираем ползунок */
    .cart-dropdown__header::before {
        display: none;
    }

    /* Кнопка «назад» — показываем */
    .cart-drawer-back-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        color: #333;
        border-radius: 50%;
        transition: background 0.15s;
        flex-shrink: 0;
        padding: 0;
    }
    .cart-drawer-back-btn:active { background: #f0f0f0; }

    /* Заголовок — по центру */
    .cart-dropdown__title {
        flex: 1;
        text-align: center;
        font-size: 18px;
        font-weight: 700;
        color: #222;
    }

    /* Счётчик и X-кнопка — скрываем */
    .cart-dropdown__count { display: none; }
    .cart-dropdown__close { display: none; }

    /* Правый спейсер — ровно 44px, чтобы заголовок был строго по центру */
    .cart-drawer-spacer {
        display: block;
        width: 44px;
        flex-shrink: 0;
    }

    /* === Товары === */
    .cart-dropdown__item {
        padding: 12px 16px;
        gap: 10px;
    }
    .cart-dropdown__item-img {
        width: 58px;
        height: 58px;
        border-radius: 10px;
    }
    .cart-dropdown__item-name {
        font-size: 13px;
        margin-bottom: 4px;
    }
    .cart-dropdown__qty-btn {
        width: 28px;
        height: 28px;
    }
    .cart-dropdown__qty-val {
        font-size: 15px;
        min-width: 22px;
    }
    .cart-dropdown__item-del {
        width: 34px;
        height: 34px;
    }

    /* === Секции === */
    .cdd-section {
        padding: 12px 16px 14px;
    }

    /* === Футер — не нужен sticky, он уже вне области скролла === */
    .cart-dropdown__footer {
        padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        border-top: 2px solid #f0f0f0;
    }
    .cart-dropdown__checkout-btn {
        height: 50px;
        font-size: 16px;
        border-radius: 14px;
    }
}
/* ===== END CART DRAWER MOBILE ===== */

.cart-count {
    background: rgba(255,255,255,0.3);
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.cart-total {
    font-weight: 700;
}

.icon {
    flex-shrink: 0;
}

/* Баннер-карусель */
.banner-carousel {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-wrapper {
    position: relative;
    height: 400px;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: all;
}

.carousel-slide .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.slide-content {
    flex: 1;
    max-width: 500px;
}

.slide-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--text-dark);
}

.slide-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 25px;
}

.slide-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

/* Основной контент */
.main {
    padding: 40px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* Подкатегории */
.subcategories {
    margin-bottom: 30px;
}

.subcategories__list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.subcategory-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.subcategory-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.subcategory-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Основной контент */
.main {
    padding-top: 0;
}

/* Закрепленная навигация категорий */
.categories-nav {
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 0;
    transition: top 0.35s ease;
}

.categories-nav__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-nav__wrapper::-webkit-scrollbar {
    display: none;
}

.categories-nav__list {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    width: max-content;
}

.category-nav-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #5a5a5a;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition);
}

.category-nav-btn:hover {
    background: #e4e4e4;
    color: var(--text-dark);
}

.category-nav-btn.active {
    background: #2c3e50;
    color: white;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.25);
}

/* Панель адреса для мобилки (под шапкой) */
.mobile-address-bar {
    display: none;
}

.mobile-address-bar__tabs {
    display: flex;
    gap: 6px;
    padding: 12px 14px 0;
}

.mob-addr-tab {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 12px;
    background: #f2f3f5;
    font-size: 15px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    font-family: inherit;
}

.mob-addr-tab.active {
    background: #2c3e50;
    color: #fff;
}
.mob-addr-tab.mob-tab--disabled {
    opacity: 0.55;
    cursor: not-allowed;
    position: relative;
}
.mob-tab-lock {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    vertical-align: middle;
    opacity: 0.8;
}
.mab-method-disabled-banner {
    margin: 0 14px 10px;
    padding: 9px 14px;
    background: #fff8e1;
    border: 1.5px solid #fbbf24;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 7px;
    line-height: 1.4;
}
.tab-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.mobile-address-bar__addr {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 14px 12px;
    padding: 11px 14px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    width: calc(100% - 28px);
    text-align: left;
    font-family: inherit;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: border-color 0.18s;
}

.mobile-address-bar__addr:active {
    border-color: #4680C2;
}

.mob-addr-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mob-addr-main {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
    word-break: break-word;
}

.mob-addr-meta {
    font-size: 12px;
    color: #999;
    line-height: 1.3;
    word-break: break-word;
    margin-top: 1px;
}

.mob-addr-action {
    background: #f0f4ff;
    color: #4680C2;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
@keyframes mab-hint-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232,66,58,0.45); }
    55% { transform: scale(1.05); box-shadow: 0 0 0 7px rgba(232,66,58,0); }
}
.mab-no-addr-hint {
    background: #e8423a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.01em;
    animation: mab-hint-pulse 2s ease-in-out infinite;
    font-family: inherit;
}

/* Мобильная строка поиска (только мобайл) */
.mobile-search-bar {
    display: none;
}

.mobile-search-bar__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f2f3f5;
    border-radius: 14px;
    padding: 11px 14px;
}

.mobile-search-bar__inner svg {
    flex-shrink: 0;
}

.mobile-search-bar__inner input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 15px;
    color: #1a1a1a;
    font-family: inherit;
}

.mobile-search-bar__inner input::placeholder {
    color: #9ca3af;
}

.search-toggle {
    width: 42px;
    height: 42px;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    margin-right: 14px;
    transition: var(--transition);
    color: #6b7280;
}

.search-toggle:hover {
    background: #e9ecef;
    color: var(--text-dark);
}

.search-toggle.active {
    background: #2c3e50;
    color: white;
}

.search-panel {
    display: none;
    padding: 0 0 16px 0;
    animation: slideDown 0.3s ease;
    position: relative;
}

.search-panel.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--text-dark);
}

.search-close {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.search-close:hover {
    background: #f5f5f5;
    color: var(--text-dark);
}

/* Категория с подкатегориями */
.category-section {
    margin-bottom: 48px;
    scroll-margin-top: 130px;
    padding-top: 24px;
}

.category-section:first-child {
    padding-top: 28px;
}

.category-section__header {
    margin-bottom: 18px;
}

.category-section__title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.subcategories {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.subcategory-btn {
    padding: 8px 16px;
    background: white;
    border: 1.5px solid #e5e7eb;
    color: #6b7280;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.subcategory-btn:hover {
    border-color: #9ca3af;
    background: #f9fafb;
    color: var(--text-dark);
}

.subcategory-btn.active {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ===== СЕКЦИЯ КЕЙСОВ НА ГЛАВНОЙ ===== */
.cases-section {
    padding-top: 28px;
    margin-bottom: 40px;
}

.cases-section__header {
    margin-bottom: 18px;
}

.cases-section__title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cases-section__title-wrap .category-section__title {
    margin-bottom: 0;
    line-height: 1;
}

.cases-info-wrap {
    position: relative;
    display: flex;
    align-items: center;
    align-self: center;
}

.cases-info-icon {
    cursor: pointer;
    flex-shrink: 0;
    display: block;
    transform: translateY(1px);
    transition: opacity 0.2s;
}

.cases-info-icon:hover {
    opacity: 0.7;
}

.cases-tooltip {
    display: none;
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
    background: #1f2937;
    color: #f9fafb;
    border-radius: 12px;
    padding: 14px 16px;
    width: 280px;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    font-size: 13px;
    line-height: 1.5;
    pointer-events: none;
}

.cases-tooltip__title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.cases-tooltip p {
    margin: 0 0 8px 0;
    color: #d1d5db;
}

.cases-tooltip ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cases-tooltip ul li {
    color: #d1d5db;
}

.cases-info-wrap:hover .cases-tooltip {
    display: block;
}

.cases-row-wrap {
    position: relative;
}

.cases-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.cases-arrow--left {
    left: -16px;
}

.cases-arrow--right {
    right: -16px;
}

.cases-section:hover .cases-arrow {
    opacity: 1;
    pointer-events: auto;
}

.cases-arrow:hover {
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    transform: translateY(-50%) scale(1.08);
}

.cases-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cases-row::-webkit-scrollbar {
    display: none;
}

.cases-section__card {
    flex: 0 0 calc((100% - 5 * 20px) / 6);
    width: calc((100% - 5 * 20px) / 6);
    scroll-snap-align: start;
}

.cases-section__btn {
    background: linear-gradient(135deg, #FFA000, #FF6F00) !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
}

.cases-section__btn:hover {
    background: linear-gradient(135deg, #FFB300, #F57C00) !important;
}

.cases-section__card .product-card__btn {
    margin-top: auto;
}

.cases-section__card .product-card__weight {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

/* Карточка товара */
.product-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: none;
    box-shadow: none;
}

.product-card__image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: var(--bg-white);
    border-radius: 16px;
    margin-bottom: 12px;
}

.product-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card__badge::before {
    content: '★';
    color: #FFD700;
}

.product-card__counter {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    z-index: 3;
}

.product-card__counter-value {
    background: transparent;
    color: white;
    padding: 0;
    border-radius: 0;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-dark);
    line-height: 1.3;
}

.product-card__weight {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.product-card__price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.product-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #e4e9ef;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.1s ease, opacity 0.15s ease;
    width: 100%;
    font-size: 16px;
    color: var(--text-dark);
    height: 48px;
    margin-top: auto;
}

.product-card__btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.product-card__btn span {
    font-size: 17px;
    font-weight: 700;
}

.product-card__btn:hover {
    background: #d4dae3;
}

.product-card__btn.in-cart {
    background: var(--primary-color);
    color: white;
}

.product-card__quantity {
    display: flex;
    align-items: stretch;
    background: var(--primary-color);
    border-radius: 12px;
    width: 100%;
    color: white;
    height: 48px;
    overflow: hidden;
    margin-top: auto;
}

.quantity-btn {
    flex: 1;
    height: 100%;
    background: transparent;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.quantity-btn:active {
    background: rgba(0, 0, 0, 0.1);
}

.quantity-btn svg {
    width: 14px;
    height: 14px;
}

.product-card__quantity span {
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    color: white;
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0 4px;
    pointer-events: none;
}

/* Кнопки */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-gray);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-delete-account {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    background: none;
    border: none;
    color: #bbb;
    font-size: 0.78rem;
    cursor: pointer;
    text-align: center;
}
.btn-delete-account:hover {
    color: #e53935;
    text-decoration: underline;
}

.btn-full {
    width: 100%;
}

/* Модальные окна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal__content {
    position: relative;
    background: var(--bg-white);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

/* Скроллируемая область внутри модала */
.modal__body {
    overflow-y: auto;
    max-height: 90vh;
    padding: 30px;
    scrollbar-width: thin;
    scrollbar-color: #D0D0D0 transparent;
}

.modal__body::-webkit-scrollbar {
    width: 5px;
}

.modal__body::-webkit-scrollbar-track {
    background: transparent;
}

.modal__body::-webkit-scrollbar-thumb {
    background: #D0D0D0;
    border-radius: 10px;
}

.modal__body::-webkit-scrollbar-thumb:hover {
    background: #BDBDBD;
}

/* Модалы без modal__body — padding на content */
.modal__content:not(:has(.modal__body)) {
    padding: 30px;
    overflow-y: auto;
}

/* Широкие окна для ПК */
@media (min-width: 768px) {
    .modal__content {
        max-width: 650px;
    }
}

@media (min-width: 1024px) {
    .modal__content {
        max-width: 850px;
    }
}

/* Модальное окно доставки - широкое для двух колонок */
#deliveryModal .modal__content {
    max-width: min(95vw, 1100px);
    width: 95vw;
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Мобильный вид: bottom sheet снизу экрана */
@media (max-width: 767px) {
    #deliveryModal {
        align-items: flex-end;
        padding: 0;
    }
    #deliveryModal .modal__content {
        width: 100%;
        max-width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        animation: deliverySheetUp 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    }
    @keyframes deliverySheetUp {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
    /* Карту скрываем на мобилке — только форма */
    #deliveryModal .delivery-map-column {
        display: none;
    }
    #deliveryModal .delivery-two-column {
        grid-template-columns: 1fr;
        height: auto;
    }
    #deliveryModal .delivery-form-column {
        max-height: calc(92vh - 130px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (min-width: 768px) {
    #deliveryModal .modal__content {
        width: 90vw;
        max-width: min(90vw, 1100px);
        padding: 25px;
    }
}

@media (min-width: 1024px) {
    #deliveryModal .modal__content {
        width: 90vw;
        max-width: 1100px;
    }
}

@media (min-width: 1400px) {
    #deliveryModal .modal__content {
        max-width: 1200px;
    }
}

/* Скроллируемая зона внутри модала доставки */
#deliveryModal .delivery-content {
    flex: 1;
    overflow: hidden;  /* НЕ скроллим весь блок — скроллит только правая колонка */
    overflow-x: hidden;
    min-height: 0;
}

.modal__content--large {
    max-width: 700px;
}

@media (min-width: 768px) {
    .modal__content--large {
        max-width: 750px;
    }
}

@media (min-width: 1024px) {
    .modal__content--large {
        max-width: 950px;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.modal__close:hover {
    background: #fff;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal__close svg {
    transition: all 0.3s ease;
}

.modal__close:hover svg {
    stroke: #FF5252;
}


/* Кнопка закрытия для модального окна товара */
.product-detail-modal .modal__close {
    position: absolute;
    background: rgba(30, 30, 30, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    width: 36px;
    height: 36px;
    top: 12px;
    right: 12px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    z-index: 20;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.product-detail-modal .modal__close:hover {
    background: #e81123;
    transform: scale(1.1);
    box-shadow: 0 4px 18px rgba(232, 17, 35, 0.45);
}

.product-detail-modal .modal__close svg {
    stroke: #ffffff;
    width: 15px;
    height: 15px;
    transition: transform 0.18s ease;
}

.product-detail-modal .modal__close:hover svg {
    stroke: #ffffff;
    transform: rotate(90deg);
}

.modal__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.modal__subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Вкладки доставки */
.delivery-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
    flex-shrink: 0;
}

.delivery-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.delivery-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.delivery-tab.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.delivery-tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.pc-tab-lock {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    opacity: 0.85;
    position: relative;
    cursor: help;
}
.pc-tab-lock::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30,30,30,0.92);
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 400;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 9999;
}
.pc-tab-lock:hover::after {
    opacity: 1;
}
.delivery-tab.disabled:hover {
    border-color: var(--border-color);
    color: inherit;
    background: var(--bg-white);
}

.delivery-panel {
    display: none;
}

.delivery-panel.active {
    display: block;
}

/* Компактные отступы для двухколоночного режима */
.delivery-two-column .form-group {
    margin-bottom: 10px;
}

.delivery-two-column .form-row {
    gap: 10px;
}

.delivery-two-column label {
    font-size: 13px;
    margin-bottom: 4px;
}

.delivery-two-column .form-input,
.delivery-two-column .form-textarea {
    padding: 10px 12px;
    font-size: 14px;
}

.delivery-two-column .btn-full {
    margin-top: 10px;
    padding: 12px 20px;
    font-size: 15px;
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,107,107,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.address-suggestions {
    position: relative;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.address-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-item:hover {
    background: var(--bg-gray);
}

/* Двухколоночный макет доставки */
.delivery-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex: 1;
    min-height: 0;
    align-items: start; /* колонки не растягиваются — каждая своей высоты */
}

.delivery-map-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 0;
    height: calc(88vh - 175px); /* фиксированная высота: max-height модала минус шапка+табы */
    min-height: 380px;
    overflow: hidden;
}

.delivery-form-column {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: calc(88vh - 175px);
    overflow-y: auto;
    overflow-x: visible;
    padding-right: 2px;
}

/* Карта доставки заполняет всю высоту колонки */
#deliveryModal .map-container-full,
#deliveryModal .delivery-map-column .map-container-full {
    flex: 1;
    min-height: 0;
    height: 100%;
}

/* Явная высота для карт когда flex-цепочка не работает */
#deliveryMap, #pickupMap {
    min-height: 350px;
}

/* ===== СОХРАНЁННЫЕ АДРЕСА ===== */
.saved-addresses-section {
    background: var(--bg-gray, #f5f5f5);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.saved-addresses-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light, #888);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.saved-addresses-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Новый стиль — строка адреса со списком */
.saved-address-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
    position: relative;
}

.saved-address-item:hover {
    border-color: #b2dfb4;
    background: #fafffe;
}

.saved-address-item.active {
    border-color: var(--primary-color, #4CAF50);
    background: #f0faf0;
}

/* Галочка выбора */
.saved-address-item__check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.18s;
    background: #fff;
    color: transparent;
}

.saved-address-item.active .saved-address-item__check {
    border-color: var(--primary-color, #4CAF50);
    background: var(--primary-color, #4CAF50);
    color: #fff;
}

.saved-address-item__info {
    flex: 1;
    min-width: 0;
}

.saved-address-item__street {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.saved-address-item__details {
    font-size: 11px;
    color: #888;
    margin-top: 1px;
}

.saved-address-item__actions {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.saved-address-item__edit,
.saved-address-item__delete {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #bbb;
    transition: background 0.15s, color 0.15s;
}

.saved-address-item__edit:hover {
    background: #e8f5e9;
    color: var(--primary-color, #4CAF50);
}

.saved-address-item__delete:hover {
    background: #ffe0e0;
    color: #e53935;
}

/* Кнопка "Добавить новый адрес" */
.add-address-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    margin-top: 8px;
    background: transparent;
    border: 1.5px dashed #c8e6c9;
    border-radius: 10px;
    color: var(--primary-color, #4CAF50);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
}

.add-address-btn:hover {
    background: #f0faf0;
    border-color: var(--primary-color, #4CAF50);
}

/* Подтвердить из списка */
.confirm-from-list-btn {
    margin-top: 10px;
}

/* Кнопка "Назад к адресам" */
.back-to-addresses-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    margin-bottom: 10px;
    background: none;
    border: none;
    color: var(--primary-color, #4CAF50);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.back-to-addresses-btn:hover {
    opacity: 0.75;
}

/* Старые chip-стили оставим для совместимости */
.saved-address-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
}

.saved-address-chip:hover { border-color: var(--primary-color, #4CAF50); background: #f0faf0; }
.saved-address-chip.active { border-color: var(--primary-color, #4CAF50); background: #f0faf0; }
.saved-address-chip__info { flex: 1; min-width: 0; }
.saved-address-chip__street { font-size: 13px; font-weight: 500; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved-address-chip__details { font-size: 11px; color: #888; margin-top: 1px; }
.saved-address-chip__delete { flex-shrink: 0; width: 26px; height: 26px; border: none; background: transparent; border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #aaa; transition: background 0.15s, color 0.15s; }
.saved-address-chip__delete:hover { background: #ffe0e0; color: #e53935; }

/* Карта фиксированной высоты */
.map-container-full {
    width: 100%;
    height: 100%;
    min-height: 480px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-gray);
}

/* Для ymaps контейнера */
.map-container-full ymaps,
.map-container-full [class*="ymaps"] {
    border-radius: 12px;
}

/* Старый стиль карты для совместимости */
.map-container {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin: 15px 0;
    background: var(--bg-gray);
}

.delivery-info-box,
.pickup-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 16px;
    margin: 20px 0;
    border: 2px solid #e8e8e8;
    display: flex;
    gap: 20px;
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .delivery-two-column {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .delivery-map-column {
        order: 2;
    }
    
    .delivery-form-column {
        order: 1;
        max-height: none;
        overflow-y: visible;
    }
    
    .map-container-full {
        height: 260px;
        min-height: 260px;
    }

    /* Перебиваем ID-специфичность для мобилки */
    #pickupMap, #deliveryMap {
        height: 260px;
        min-height: 260px;
    }
}

.info-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 4px;
}

.info-value {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.delivery-step {
    margin-bottom: 20px;
}

.delivery-two-column .delivery-step {
    margin-bottom: 10px;
}

.delivery-two-column .delivery-step:last-child {
    margin-bottom: 0;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.delivery-two-column .step-header {
    margin-bottom: 10px;
}

.delivery-two-column .step-number {
    width: 30px;
    height: 30px;
    font-size: 16px;
}

.delivery-two-column .step-header h4 {
    font-size: 16px;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-header h4 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
}

.pickup-points-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.delivery-two-column .pickup-points-list {
    gap: 10px;
    margin-bottom: 0;
}

.pickup-point-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delivery-two-column .pickup-point-card {
    padding: 12px;
    gap: 12px;
    border-radius: 12px;
}

.pickup-point-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.pickup-point-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(69, 160, 73, 0.05) 100%);
}

.pickup-point-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.delivery-two-column .pickup-point-icon {
    width: 40px;
    height: 40px;
}

.delivery-two-column .pickup-point-icon svg {
    width: 20px;
    height: 20px;
}

.pickup-point-info {
    flex: 1;
}

.pickup-point-info h5 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.delivery-two-column .pickup-point-info h5 {
    font-size: 14px;
    margin-bottom: 3px;
}

.pickup-point-info p {
    margin: 0 0 6px 0;
    font-size: 14px;
    color: #6c757d;
}

.delivery-two-column .pickup-point-info p {
    font-size: 13px;
    margin-bottom: 4px;
}

.pickup-hours {
    display: inline-block;
    padding: 4px 10px;
    background: #e8f5e9;
    border-radius: 12px;
    font-size: 12px;
    color: #2e7d32;
    font-weight: 500;
}

.delivery-two-column .pickup-hours {
    padding: 3px 8px;
    font-size: 11px;
}

.delivery-two-column .pickup-point-check svg {
    width: 20px;
    height: 20px;
}

.pickup-point-check {
    flex-shrink: 0;
}

.info-text {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.info-text:last-child {
    margin-bottom: 0;
}

/* Авторизация */
.modal__content--auth {
    max-width: 440px;
    overflow-y: auto;
}

.modal__content--auth .modal__title {
    text-align: center;
    font-size: 26px;
    margin-top: 8px;
}

.modal__content--auth .modal__subtitle {
    text-align: center;
}

@media (max-width: 768px) {
    .modal__content--auth {
        max-height: calc(100dvh - 90px);
        overflow-y: auto;
        margin: auto 10px 80px;
    }
}

.auth-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.auth-method {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    border: none;
    background: var(--bg-white);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.auth-method svg {
    flex-shrink: 0;
}

.auth-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.auth-method:active {
    transform: translateY(0);
}

.auth-method--vk {
    background: #0077FF;
    color: white;
}

.auth-method--vk:hover {
    background: #0066DD;
    box-shadow: 0 4px 12px rgba(0, 119, 255, 0.3);
}

.auth-method--telegram {
    background: #229ED9;
    color: white;
}

.auth-method--telegram:hover {
    background: #1A8CC4;
    box-shadow: 0 4px 12px rgba(34, 158, 217, 0.3);
}

.auth-method--max {
    background: #007AFF;
    color: white;
}

.auth-method--max:hover {
    background: #006AE0;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
    color: var(--text-light);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 1px;
    background: var(--border-color);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-phone {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.auth-phone__input {
    width: 100%;
    padding: 15px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition);
}

.auth-phone__input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-phone__input::placeholder {
    color: var(--text-light);
}

.auth-privacy {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

.auth-privacy__link {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-privacy__link:hover {
    text-decoration: underline;
}

/* Проверка кода SMS */
.code-verification {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.code-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.code-input {
    width: 60px;
    height: 60px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    transition: var(--transition);
}

.code-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #f0f7f4;
}

.resend-code {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

.resend-code:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Активные заказы пользователя */
.active-orders {
    padding: 15px 0 20px;
    background: #FAFBFC;
}

.active-orders .section-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

#activeOrdersContainer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-order-card {
    background: white;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: var(--transition);
    cursor: pointer;
    border-left: 4px solid;
    overflow: hidden;
    position: relative;
}

.user-order-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.user-order-card--pending          { border-left-color: #FFA500; background: linear-gradient(to right, rgba(255,165,0,0.04) 0%, white 50%); }
.user-order-card--cooking          { border-left-color: #FF6B6B; background: linear-gradient(to right, rgba(255,107,107,0.04) 0%, white 50%); }
.user-order-card--delivery         { border-left-color: #4ECDC4; background: linear-gradient(to right, rgba(78,205,196,0.04) 0%, white 50%); }
.user-order-card--done             { border-left-color: #27AE60; background: linear-gradient(to right, rgba(39,174,96,0.04) 0%, white 50%); }
.user-order-card--awaiting_payment { border-left-color: #7C5CFC; background: linear-gradient(to right, rgba(124,92,252,0.05) 0%, white 50%); cursor: default; }
.user-order-card--awaiting_payment:hover { transform: none; box-shadow: 0 2px 12px rgba(0,0,0,0.07); }

/* Карточка ожидания оплаты */
.payment-pending-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 6px;
}
.payment-pending-card__info { display: flex; flex-direction: column; gap: 3px; }
.payment-pending-card__number { font-size: 16px; font-weight: 700; color: var(--text-dark); }
.payment-pending-card__total  { font-size: 13px; color: #888; font-weight: 500; }
.payment-pending-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(124,92,252,0.12);
    color: #5B3FCC;
    white-space: nowrap;
}
.payment-pending-card__timer-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid #F0F2F4;
    border-bottom: 1px solid #F0F2F4;
    margin-bottom: 12px;
}
.payment-pending-card__timer-label {
    font-size: 12px;
    color: #888;
    flex: 1;
}
.payment-pending-card__timer {
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
    color: #7C5CFC;
    min-width: 52px;
    text-align: right;
}
.payment-pending-card__timer--urgent { color: #E53935; animation: timerPulse 1s ease-in-out infinite; }
@keyframes timerPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.payment-pending-card__timer-bar {
    height: 4px;
    background: #EAECEE;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}
.payment-pending-card__timer-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #7C5CFC, #A78BFA);
    transition: width 1s linear;
}
.payment-pending-card__timer-fill--urgent {
    background: linear-gradient(90deg, #E53935, #EF9A9A);
}

.payment-pending-card__actions {
    display: flex;
    gap: 8px;
}
.payment-pending-card__pay-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #7C5CFC, #9B7BFE);
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(124,92,252,0.35);
    text-decoration: none;
}
.payment-pending-card__pay-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(124,92,252,0.45); }
.payment-pending-card__pay-btn:active { transform: translateY(0); }
.payment-pending-card__cancel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid #EAECEE;
    background: white;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.payment-pending-card__cancel-btn:hover { border-color: #E53935; color: #E53935; background: #FFF5F5; }
.user-order-card__status--awaiting_payment { background: rgba(124,92,252,0.12); color: #5B3FCC; }

.user-order-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.user-order-card__title {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.user-order-card__number {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.user-order-card__time {
    font-size: 11px;
    color: #aaa;
    font-weight: 500;
    background: #F5F5F5;
    padding: 2px 7px;
    border-radius: 20px;
}

.user-order-card__status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.1px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.user-order-card__status--pending  { background: rgba(255,165,0,0.12);  color: #D98500; }
.user-order-card__status--cooking  { background: rgba(255,107,107,0.12); color: #D43A3A; }
.user-order-card__status--delivery { background: rgba(78,205,196,0.12);  color: #0E9E96; }
.user-order-card__status--done     { background: rgba(39,174,96,0.12);   color: #1E9456; }

/* Превью товаров */
.user-order-card__items-preview {
    display: flex;
    margin-bottom: 12px;
}

.order-item-preview {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    border: 2.5px solid white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-left: -10px;
}

.order-item-preview:first-child {
    margin-left: 0;
}

.order-item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-preview__badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--primary-color);
    color: white;
    font-size: 8px;
    font-weight: 700;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.order-item-preview--more {
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 700;
    border: 2.5px solid white;
}

.user-order-card__progress {
    margin-bottom: 10px;
}

.progress-bar {
    height: 5px;
    background: #EAECEE;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.progress-bar__fill {
    height: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.progress-bar__fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-bar__fill--pending  { background: linear-gradient(90deg, #FFA500, #FFB84D); }
.progress-bar__fill--cooking  { background: linear-gradient(90deg, #FF6B6B, #FF8787); }
.progress-bar__fill--delivery { background: linear-gradient(90deg, #4ECDC4, #6FDDD5); }
.progress-bar__fill--done     { background: linear-gradient(90deg, #27AE60, #2ECC71); }

.progress-steps {
    display: flex;
    justify-content: space-between;
    padding: 0;
}

.progress-step-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.progress-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #F0F0F0;
    color: #BDC3C7;
    transition: all 0.3s ease;
}

.progress-step svg {
    width: 11px;
    height: 11px;
}

.progress-step.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 2px 8px rgba(102,126,234,0.4);
}

.progress-step__label {
    font-size: 9px;
    color: #C5CDD5;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.progress-step-wrapper--active .progress-step__label {
    color: #667eea;
    font-weight: 700;
}

.user-order-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #F0F2F4;
}

.user-order-card__count {
    font-size: 12px;
    color: #B2BEC3;
    font-weight: 500;
}

.user-order-card__total {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

/* Модальное окно деталей заказа */
.modal__content.order-details-modal {
    max-width: 560px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Шапка с цветным градиентом */
.odm-header {
    padding: 22px 24px 18px;
    position: relative;
}

.odm-header--pending  { background: linear-gradient(135deg, #fff8eb, #fff3d6); }
.odm-header--cooking  { background: linear-gradient(135deg, #fff2f2, #ffe8e8); }
.odm-header--delivery { background: linear-gradient(135deg, #f0fffe, #e4faf9); }
.odm-header--done     { background: linear-gradient(135deg, #f0fff5, #e2faec); }

.odm-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.odm-header__number {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.odm-header__close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.07);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: background 0.2s;
}

.odm-header__close:hover { background: rgba(0,0,0,0.13); }

.odm-header__meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.odm-header__status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.odm-header__status--pending  { background: rgba(255,165,0,0.15);  color: #c47800; }
.odm-header__status--cooking  { background: rgba(255,107,107,0.15); color: #c0392b; }
.odm-header__status--delivery { background: rgba(78,205,196,0.15);  color: #0e9e96; }
.odm-header__status--done     { background: rgba(39,174,96,0.15);   color: #1a7a43; }

.odm-header__time {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

/* Прогресс-таймлайн */
.odm-timeline {
    padding: 18px 24px;
    border-bottom: 1px solid #F0F2F4;
}

.odm-timeline__steps {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.odm-timeline__line {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: #E8EAED;
    z-index: 0;
}

.odm-timeline__line-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
}

.odm-timeline__line-fill--pending  { background: #FFA500; width: 0%; }
.odm-timeline__line-fill--cooking  { background: #FF6B6B; width: 33%; }
.odm-timeline__line-fill--delivery { background: #4ECDC4; width: 66%; }
.odm-timeline__line-fill--done     { background: #27AE60; width: 100%; }

.odm-timeline__step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.odm-timeline__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E8EAED;
    color: #BDC3C7;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #E8EAED;
}

.odm-timeline__icon svg { width: 14px; height: 14px; }

.odm-timeline__step--completed .odm-timeline__icon {
    background: #E8F8F0;
    color: #27AE60;
    box-shadow: 0 0 0 2px #c3eeda;
}

.odm-timeline__step--active .odm-timeline__icon {
    background: white;
    box-shadow: 0 0 0 3px currentColor;
    animation: timelinePulse 2s ease-in-out infinite;
}

.odm-timeline__step--active.odm-step--pending  .odm-timeline__icon { color: #FFA500; }
.odm-timeline__step--active.odm-step--cooking  .odm-timeline__icon { color: #FF6B6B; }
.odm-timeline__step--active.odm-step--delivery .odm-timeline__icon { color: #4ECDC4; }
.odm-timeline__step--active.odm-step--done     .odm-timeline__icon { color: #27AE60; }

@keyframes timelinePulse {
    0%, 100% { box-shadow: 0 0 0 3px currentColor; }
    50% { box-shadow: 0 0 0 5px rgba(0,0,0,0.08); }
}

.odm-timeline__label {
    font-size: 10px;
    font-weight: 600;
    color: #BDC3C7;
    text-align: center;
    line-height: 1.3;
}

.odm-timeline__step--completed .odm-timeline__label { color: #27AE60; }
.odm-timeline__step--active    .odm-timeline__label { color: var(--text-dark); }

/* Тело модального окна */
.odm-body {
    padding: 16px 24px 24px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #D0D0D0 transparent;
}

.odm-body::-webkit-scrollbar {
    width: 5px;
}

.odm-body::-webkit-scrollbar-track {
    background: transparent;
}

.odm-body::-webkit-scrollbar-thumb {
    background: #D0D0D0;
    border-radius: 10px;
}

.odm-body::-webkit-scrollbar-thumb:hover {
    background: #BDBDBD;
}

.odm-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #B2BEC3;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    margin-top: 16px;
}

.odm-section-title:first-child { margin-top: 0; }

/* Товары */
.order-details-modal__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #F5F6F7;
}

.order-details-modal__item:last-child { border-bottom: none; }

.order-details-modal__item-image {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    background: #f0f0f0;
}

.order-details-modal__item-info {
    flex: 1;
    min-width: 0;
}

.order-details-modal__item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-details-modal__item-quantity {
    font-size: 12px;
    color: var(--text-light);
}

.odm-customization {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.odm-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
}

.odm-tag--removed { background: #ffeaea; color: #c0392b; }
.odm-tag--added   { background: #eafaf1; color: #1a7a43; }

.order-details-modal__item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Блок доставки */
.odm-delivery {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.odm-delivery__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: white;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
}

.odm-delivery__info { flex: 1; }

.odm-delivery__label {
    font-size: 11px;
    font-weight: 600;
    color: #B2BEC3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.odm-delivery__address {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
}

.odm-delivery__comment {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
    font-style: italic;
}

/* Оплата */
.odm-payment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8F9FA;
    border-radius: 12px;
    padding: 12px 14px;
}

.odm-payment__method {
    display: flex;
    align-items: center;
    gap: 10px;
}

.odm-payment__method-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: white;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #667eea;
}

.odm-payment__method-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.odm-payment__status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.odm-payment__status--paid {
    background: rgba(39,174,96,0.12);
    color: #1a7a43;
}

.odm-payment__status--pending {
    background: rgba(243,156,18,0.12);
    color: #b7770d;
}

/* Кнопка оплатить онлайн в деталях заказа */
.odm-pay-online-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #6A1B9A, #8E24AA);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(106,27,154,0.25);
    transition: opacity 0.15s;
}
.odm-pay-online-btn:hover { opacity: 0.9; }
.odm-pay-online-btn:disabled { opacity: 0.6; cursor: default; }

/* Итого */
.odm-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-top: 1px solid #F0F2F4;
    background: #FAFBFC;
}

.odm-total__label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.odm-total__price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.odm-created {
    font-size: 11px;
    color: #C5CDD5;
    text-align: right;
    padding: 6px 24px 10px;
    background: #FAFBFC;
}

@media (max-width: 600px) {
    #userOrderDetailsModal.modal {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }

    #userOrderDetailsModal .modal__content.order-details-modal {
        position: relative;
        inset: auto;
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        margin: 0;
    }

    #userOrderDetailsModal .odm-header {
        padding-top: max(22px, env(safe-area-inset-top));
    }

    #userOrderDetailsModal .odm-created {
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
}

/* Мета-строки в деталях заказа */
.order-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-detail-meta__row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.order-detail-meta__icon {
    display: flex;
    align-items: center;
    color: #9e9e9e;
    flex-shrink: 0;
}

.order-detail-meta__text {
    line-height: 1.4;
}

/* Корзина */
.cart-items {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: white;
    border-radius: 14px;
    margin-bottom: 0;
    border: 1.5px solid #F0F0F0;
    transition: border-color 0.2s;
}

.cart-item:hover {
    border-color: #E0E0E0;
    box-shadow: none;
    transform: none;
}

.cart-item__image {
    width: 78px;
    height: 78px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-item__title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 0;
    color: #1A1A1A;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inventory-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inventory-badge.common {
    background: #e0e0e0;
    color: #666;
}

.inventory-badge.rare {
    background: #E3F2FD;
    color: #1976D2;
}

.inventory-badge.epic {
    background: #F3E5F5;
    color: #7B1FA2;
}

.inventory-badge.legendary {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.cart-item__fixed-quantity {
    color: #999;
    font-size: 14px;
    font-style: italic;
}

.cart-item__weight {
    font-size: 12px;
    color: #9E9E9E;
    margin-bottom: 0;
    margin-top: 1px;
}

.cart-item__customization {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 4px 0 0;
    font-size: 11px;
}

.cart-item__customization span {
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 600;
}

.customization-removed {
    background: #FFEBEE;
    color: #C62828;
}

.customization-added {
    background: #E8F5E9;
    color: #2E7D32;
}

.cart-item__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    gap: 8px;
}

.cart-item__edit-btn {
    background: #F5F5F5;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    color: #9E9E9E;
    flex-shrink: 0;
}

.cart-item__edit-btn:hover {
    background: #EEEEEE;
    color: #4CAF50;
    transform: none;
}

.cart-item__edit-btn svg {
    width: 14px;
    height: 14px;
}

.cart-item__controls .product-card__quantity {
    background: var(--primary-color);
    padding: 5px 10px;
    border-radius: 8px;
    width: auto;
    min-width: 90px;
    height: 32px;
    gap: 6px;
}

.cart-item__controls .quantity-btn {
    width: 20px;
    height: 20px;
}

.cart-item__controls .quantity-btn svg {
    width: 10px;
    height: 10px;
}

.cart-item__controls .product-card__quantity span {
    font-size: 14px;
    font-weight: 600;
}

.cart-item__price {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
    white-space: nowrap;
}


/* ---- Компактная полоска инвентаря ---- */
.cart-inv-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFF8F0;
    border: 1.5px solid #FFE0B2;
    border-radius: 16px;
    padding: 12px 16px;
}
.cart-inv-bar__icon {
    width: 44px;
    height: 44px;
    background: #FFF3E0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cart-inv-bar__body {
    flex: 1;
    min-width: 0;
}
.cart-inv-bar__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 3px;
}
.cart-inv-bar__badge {
    background: #FF9800;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    line-height: 1.5;
}
.cart-inv-bar__hint {
    font-size: 11px;
    color: #9E9E9E;
    line-height: 1.4;
}
.cart-inv-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: #FF9800;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.cart-inv-bar__btn:hover { background: #F57C00; transform: translateY(-1px); }
.cart-inv-bar__btn svg { transition: transform 0.2s; }
.cart-inv-bar__btn.open svg { transform: rotate(180deg); }

/* ---- Попап инвентаря ---- */
.cart-inv-popup {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1.5px solid #F0F0F0;
    overflow: hidden;
}
.cart-inv-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1.5px solid #F5F5F5;
}
.cart-inv-popup__title {
    font-size: 15px;
    font-weight: 700;
    color: #1A1A1A;
}
.cart-inv-popup__close {
    width: 28px;
    height: 28px;
    background: #F5F5F5;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9E9E9E;
    transition: background 0.15s, color 0.15s;
}
.cart-inv-popup__close:hover { background: #FFEBEE; color: #E53935; }
.cart-inv-popup__items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 20px;
    max-height: 320px;
    overflow-y: auto;
}
.cart-inv-popup__empty {
    width: 100%;
    text-align: center;
    padding: 24px 16px;
    color: #9E9E9E;
    font-size: 13px;
    line-height: 1.6;
}

/* ---- Заголовок левой колонки ---- */
.cart-col-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: #BDBDBD;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* ---- Шапка правой панели ---- */
.cart-panel__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #1A1A1A;
    background: linear-gradient(135deg, #F1FBF1 0%, #fff 60%);
    border-bottom: 1.5px solid #E8F5E9;
}
.cart-panel__head-icon {
    width: 26px;
    height: 26px;
    background: #4CAF50;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(76,175,80,0.3);
}

/* ---- Попап инвентаря внутри секции призов ---- */
.cpanel-prizes .cart-inv-popup {
    margin-top: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1.5px solid #EDE7F6;
    background: #fff;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cpanel-prizes .cart-inv-popup__header {
    border-bottom: 1px solid #EDE7F6;
    padding: 10px 14px;
    background: #F9F6FF;
}
.cpanel-prizes .cart-inv-popup__items {
    padding: 10px 14px;
    max-height: 240px;
    overflow-y: auto;
}

/* Cart Inventory Section (OLD — kept for popup items styling) */
.cart-inventory {
    margin-bottom: 16px;
    padding: 14px;
    background: #FFFBF0;
    border-radius: 14px;
    border: 1.5px solid #FFE082;
}

.cart-inventory__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cart-inventory__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
}

.cart-inventory__text {
    flex: 1;
}

.cart-inventory__text h4 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.cart-inventory__items-wrapper {
    position: relative;
    width: 100%;
}

.cart-inventory__items {
    display: flex !important;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cart-inventory__items::-webkit-scrollbar {
    display: none;
}

.cart-inventory__scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 2px solid #FFB74D;
    color: #FF9800;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cart-inventory__scroll-btn:hover {
    background: #FFB74D;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.cart-inventory__scroll-left {
    left: 0;
}

.cart-inventory__scroll-right {
    right: 0;
}

.cart-inventory-item {
    background: white;
    border-radius: 12px;
    padding: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    flex-shrink: 0 !important;
    width: 120px !important;
    position: relative;
    overflow: hidden;
}

.cart-inventory-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #e0e0e0;
    transition: all 0.3s ease;
}

.cart-inventory-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.25);
    transform: translateY(-4px);
}

.cart-inventory-item.common::before {
    background: linear-gradient(90deg, #9E9E9E, #BDBDBD);
}

.cart-inventory-item.rare {
    border-color: #2196F3;
}

.cart-inventory-item.rare::before {
    background: linear-gradient(90deg, #2196F3, #64B5F6);
}

.cart-inventory-item.rare:hover {
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.cart-inventory-item.epic {
    border-color: #9C27B0;
}

.cart-inventory-item.epic::before {
    background: linear-gradient(90deg, #9C27B0, #BA68C8);
}

.cart-inventory-item.epic:hover {
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.3);
}

.cart-inventory-item.legendary {
    border-color: #FF9800;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    animation: legendary-glow 2s ease-in-out infinite;
}

.cart-inventory-item.legendary::before {
    background: linear-gradient(90deg, #FF9800, #FFB74D, #FFC107, #FFB74D, #FF9800);
    background-size: 200% 100%;
    animation: legendary-shine 2s linear infinite;
}

.cart-inventory-item.legendary:hover {
    box-shadow: 0 6px 24px rgba(255, 152, 0, 0.4);
}

@keyframes legendary-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 152, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 152, 0, 0.5); }
}

@keyframes legendary-shine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.cart-inventory-item__image {
    width: 100%;
    height: 70px;
    object-fit: contain;
    margin-bottom: 6px;
    border-radius: 6px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.cart-inventory-item:hover .cart-inventory-item__image {
    transform: scale(1.1);
}

.cart-inventory-item__name {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
    min-height: 32px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.cart-inventory-item__price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.cart-inventory-item__rarity {
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.cart-inventory-item.common .cart-inventory-item__rarity {
    background: #E0E0E0;
    color: #616161;
}

.cart-inventory-item.rare .cart-inventory-item__rarity {
    background: rgba(33, 150, 243, 0.15);
    color: #1976D2;
}

.cart-inventory-item.epic .cart-inventory-item__rarity {
    background: rgba(156, 39, 176, 0.15);
    color: #7B1FA2;
}

.cart-inventory-item.legendary .cart-inventory-item__rarity {
    background: rgba(255, 152, 0, 0.15);
    color: #E65100;
}

.cart-inventory-item__btn {
    width: 100%;
    padding: 6px 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.cart-inventory-item__btn:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.4);
}

.cart-inventory-item__btn:active {
    transform: translateY(0);
}

.cart-inventory-item__btn:disabled,
.cart-inventory-item__btn.btn--locked {
    background: #E0E0E0;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.cart-inventory-item__condition {
    font-size: 10px;
    color: #E53935;
    margin-bottom: 4px;
    text-align: center;
    font-weight: 600;
}
.cart-inventory-item__condition.condition--met {
    color: #4CAF50;
}

.cart-inventory-item.inv-locked {
    opacity: 0.8;
}

.cart-inventory-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 10px;
    width: 100%;
}

.cart-inventory-empty__content {
    flex: 1;
}

.cart-inventory-empty__text {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.cart-inventory-empty__btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #FF9800, #FFB74D);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.cart-inventory-empty__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.cart-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 15px;
    color: #495057;
}

.cart-summary__row:last-child {
    margin-bottom: 0;
}

.cart-summary__total {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    padding-top: 12px;
    border-top: 2px solid var(--border-color);
}

/* Детали товара */
.product-details__image {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 20px;
}

.product-details__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-details__weight {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-details__composition {
    margin-bottom: 20px;
}

.product-details__composition h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.composition-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-gray);
    border-radius: 10px;
    margin-bottom: 10px;
    position: relative;
}

.composition-item__image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.composition-item__info {
    flex: 1;
}

.composition-item__name {
    font-weight: 600;
    font-size: 14px;
}

.composition-item__details {
    font-size: 12px;
    color: var(--text-light);
}

.composition-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 5px;
    display: none;
    z-index: 10;
}

.composition-item:hover .composition-tooltip {
    display: block;
}

.product-details__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.product-details__price {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Профиль */
.profile-info {
    background: linear-gradient(135deg, #f0faf0, #e8f5e9);
    border: 1.5px solid #c8e6c9;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(76,175,80,0.35);
    letter-spacing: -1px;
}

.profile-details {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-phone {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.profile-coins-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #FFA000, #FF6F00);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(255,160,0,0.35);
}

.profile-info__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}

.profile-info__row:last-child {
    margin-bottom: 0;
}

.profile-info__label {
    color: var(--text-light);
}

.profile-section {
    margin-bottom: 25px;
}

.profile-section h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.order-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 6px;
    border-radius: 12px;
}

.order-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.order-tab:hover {
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
}

.order-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.order-card {
    background: white;
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
}

.order-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

/* Inventory Section */
.inventory-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.inventory-filter {
    padding: 6px 12px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #666;
    white-space: nowrap;
}

.inventory-filter:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.inventory-filter.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.inventory-item {
    background: #f7f8fa;
    border-radius: 10px;
    border: 2px solid #e4e6ea;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.inventory-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.inventory-item.common   { border-color: #9e9e9e; }
.inventory-item.rare     { border-color: #2196F3; box-shadow: 0 0 0 1px rgba(33,150,243,0.15); }
.inventory-item.epic     { border-color: #9C27B0; box-shadow: 0 0 0 1px rgba(156,39,176,0.18); }
.inventory-item.legendary { border-color: #FF9800; box-shadow: 0 0 0 1px rgba(255,152,0,0.25); }

/* Цветная полоска по редкости */
.inventory-item::before {
    content: '';
    display: block;
    height: 3px;
    flex-shrink: 0;
}
.inventory-item.common::before    { background: #9e9e9e; }
.inventory-item.rare::before      { background: #2196F3; }
.inventory-item.epic::before      { background: #9C27B0; }
.inventory-item.legendary::before { background: linear-gradient(90deg,#FFD700,#FF9800); }

/* Квадратная зона фото */
.inventory-item__photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

.inventory-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    pointer-events: none;
}

/* Текстовая часть */
.inventory-item__body {
    padding: 5px 7px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.inventory-item-name {
    font-weight: 600;
    font-size: 0.72rem;
    line-height: 1.25;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.inventory-item-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.inventory-item-expires {
    font-size: 0.6rem;
    color: #888;
    margin-top: 2px;
}
.inventory-item-expires--urgent {
    color: #e53935;
    font-weight: 600;
}

.inventory-item-rarity {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 0.62rem;
    font-weight: 600;
    align-self: flex-start;
    margin-bottom: 2px;
}

.inventory-item-rarity.common    { background: #e0e0e0; color: #666; }
.inventory-item-rarity.rare      { background: #E3F2FD; color: #1976D2; }
.inventory-item-rarity.epic      { background: #F3E5F5; color: #7B1FA2; }
.inventory-item-rarity.legendary { background: linear-gradient(135deg,#FFD700,#FFA500); color: white; }

.inventory-item-btn {
    display: none;
}

/* Карточка кликабельная */
.inventory-item {
    cursor: pointer;
}

.inventory-item:active {
    transform: scale(0.97);
}

.inventory-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f9f1;
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: 12px;
    color: #388e3c;
    line-height: 1.4;
}

.inventory-hint svg {
    flex-shrink: 0;
}

.inventory-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    color: #999;
    width: 100%;
}

.inventory-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.inventory-empty-text {
    font-size: 15px;
    color: #888;
    line-height: 1.5;
    max-width: 220px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-number {
    font-weight: 700;
    font-size: 16px;
    color: #2c3e50;
}

.order-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.order-status--pending {
    background: #fff3cd;
    color: #856404;
}

.order-status--preparing {
    background: #d1ecf1;
    color: #0c5460;
}

.order-status--delivery {
    background: #d4edda;
    color: #155724;
}

.order-status--completed {
    background: #e2e3e5;
    color: #383d41;
}

.order-status--cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6c757d;
    font-size: 14px;
}

.order-total {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
}

.order-time {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #495057;
}

.empty-orders {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-orders p {
    font-size: 15px;
}

.order-card__status--pending {
    background: #FFF3CD;
    color: #856404;
}

.order-card__status--preparing {
    background: #D1ECF1;
    color: #0C5460;
}

.order-card__status--delivery {
    background: #D4EDDA;
    color: #155724;
}

.order-card__status--completed {
    background: #E2E3E5;
    color: #383D41;
}

.order-card__items {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.order-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-card__date {
    font-size: 13px;
    color: var(--text-light);
}

.order-card__total {
    font-weight: 700;
    font-size: 18px;
}

/* Отзывы */
.review-items {
    margin-bottom: 20px;
}

.review-item {
    background: var(--bg-gray);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.review-item__header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.review-item__image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.review-item__info {
    flex: 1;
}

.review-item__name {
    font-weight: 600;
    margin-bottom: 5px;
}

.star-rating {
    display: flex;
    gap: 5px;
}

.star {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.star svg {
    width: 100%;
    height: 100%;
    fill: #DDD;
}

.star.active svg {
    fill: #FFD700;
}

.review-item__comment {
    margin-top: 10px;
}

.review-item__comment textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.delivery-rating {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.delivery-rating h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

/* Уведомления */
.notifications {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
    pointer-events: none; /* пустой контейнер не перехватывает клики */
}

.notification {
    background: var(--bg-white);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: notificationSlideIn 0.3s ease;
    pointer-events: auto; /* сами уведомления кликабельны */
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification--success {
    border-left: 4px solid var(--success-color);
}

.notification--error {
    border-left: 4px solid var(--primary-color);
}

.notification--warning {
    border-left: 4px solid var(--warning-color);
}

.notification__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.notification__message {
    flex: 1;
    font-size: 14px;
}

/* Нижнее мобильное меню */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1100;
    padding-bottom: env(safe-area-inset-bottom);
    pointer-events: auto;
}

.mobile-bottom-nav__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 12px;
    transition: var(--transition);
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
}

.mobile-nav-item:active {
    background: var(--bg-gray);
}

.mobile-nav-item.active {
    color: var(--primary-color);
}

.mobile-nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.mobile-nav-item__badge {
    position: absolute;
    top: 8px;
    right: 50%;
    transform: translateX(12px);
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Toast уведомления */
.toast {
    position: fixed;
    top: 80px;
    right: -400px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    min-width: 300px;
    transition: right 0.3s ease;
}

.toast.show {
    right: 20px;
}

.toast__icon {
    font-size: 32px;
    flex-shrink: 0;
}

.toast__content {
    flex: 1;
}

.toast__content strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.toast__content p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

.toast--success {
    border-left: 4px solid #27AE60;
}

.toast--info {
    border-left: 4px solid #3498DB;
}

.toast--warning {
    border-left: 4px solid #F39C12;
}

/* Уведомление о статусе заказа (компактное, современное) */
.order-status-notification {
    position: fixed;
    top: 80px;
    right: -350px;
    background: white;
    padding: 12px 16px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    min-width: 280px;
    max-width: 320px;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 3px solid var(--status-color);
}

.order-status-notification.show {
    right: 20px;
}

.order-status-notification__icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--status-color), var(--status-color));
    opacity: 0.15;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.order-status-notification__icon svg {
    color: var(--status-color);
    position: relative;
    z-index: 1;
    opacity: 1;
    filter: brightness(0.8);
}

.order-status-notification__content {
    flex: 1;
    min-width: 0;
}

.order-status-notification__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.order-status-notification__status {
    font-size: 13px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-status-notification__close {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.order-status-notification__close:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text-dark);
}

.order-status-notification__close svg {
    width: 14px;
    height: 14px;
}

/* Telegram Mini App — нижнее меню поднимается над кнопкой MainButton */
.tg-mainbutton-active .mobile-bottom-nav {
    bottom: 52px;
    transition: bottom 0.2s ease;
}

/* Telegram fullscreen — учитываем safe area сверху */
.tg-miniapp .mobile-bottom-nav {
    transition: bottom 0.2s ease;
}

/* Telegram fullscreen — хедер не перекрывается системной полоской (Dynamic Island / статус-бар) */
.tg-miniapp .header {
    padding-top: var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px));
}

.tg-miniapp body,
body.tg-miniapp {
    padding-top: 0 !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    /* Показываем нижнее меню */
    .mobile-bottom-nav {
        display: block;
    }
    
    /* Добавляем отступ снизу для контента */
    body {
        padding-bottom: 70px;
    }

    /* ---- Кейсы на мобильном ---- */
    .cases-section {
        padding-top: 20px;
        margin-bottom: 24px;
    }

    /* Скрываем стрелки — на мобильном свайпают сами */
    .cases-arrow {
        display: none;
    }

    .cases-row {
        gap: 8px;
        padding-bottom: 6px;
        padding-left: 0;
        padding-right: 0;
    }

    .cases-section__card {
        flex: 0 0 calc((100% - 16px) / 3);
        width: calc((100% - 16px) / 3);
    }

    /* Уменьшаем изображение */
    .cases-section__card .product-card__image {
        height: 110px;
        margin-bottom: 8px;
    }

    /* Не обрезаем текст двумя строками — одна строка */
    .cases-section__card .product-card__title {
        font-size: 13px;
        min-height: unset;
        -webkit-line-clamp: 2;
    }

    .cases-section__card .product-card__weight {
        font-size: 11px;
    }

    .cases-section__btn {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    /* Скрываем элементы шапки на мобильных */
    .header__nav {
        display: none;
    }
    
    .delivery-info,
    .user-info {
        display: none;
    }
    
    /* Скрываем кнопку корзины в шапке — на мобильном есть нижняя панель */
    .cart-btn-wrapper {
        position: static; /* оставляем враппер видимым — внутри него живёт dropdown */
    }
    .cart-btn {
        display: none; /* скрываем только саму кнопку */
    }

    .cart-total {
        display: none;
    }
    
    .header__content {
        padding: 12px 0;
    }
    
    /* Навигация категорий на мобильных */
    .categories-nav {
        top: 64px;
    }
    
    .categories-nav__wrapper {
        padding: 8px 0;
    }
    
    .category-nav-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .category-section {
        margin-bottom: 40px;
        scroll-margin-top: 120px;
    }
    
    .category-section__title {
        font-size: 24px;
    }
    
    .subcategories {
        gap: 6px;
    }
    
    .subcategory-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .carousel-wrapper {
        height: auto;
        min-height: 250px;
    }

    .carousel-slide .container {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .slide-content h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .slide-content p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .slide-image {
        max-width: 200px;
        margin: 0 auto;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }
    
    .carousel-dots {
        bottom: 10px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 10px;
        row-gap: 30px;
        padding: 0 14px;
    }

    .product-card {
        padding: 0;
        min-height: auto;
    }
    
    .product-card__image {
        padding-top: 100%;
        height: auto;
        border-radius: 12px;
        margin-bottom: 8px;
    }

    .product-card__content {
        padding: 0;
    }

    .product-card__title {
        font-size: 16px;
        font-weight: 500;
        line-height: 1.3;
        margin-bottom: 3px;
        min-height: unset;
    }
    
    .product-card__weight {
        font-size: 13px;
        color: #ABABAB;
        margin-bottom: 8px;
    }

    .product-card__price {
        font-size: 15px;
        font-weight: 700;
    }
    
    .product-card__badge {
        font-size: 10px;
        padding: 3px 7px;
        top: 6px;
        left: 6px;
        right: auto;
    }
    
    .product-card__btn {
        padding: 10px 8px;
        font-size: 13px;
        height: 42px;
        border-radius: 10px;
        white-space: nowrap;
    }
    
    .product-card__btn span {
        font-size: 15px;
        font-weight: 700;
    }
    
    .product-card__btn svg {
        width: 18px;
        height: 18px;
    }
    
    .product-card__quantity {
        height: 42px;
        border-radius: 10px;
    }
    
    .product-card__footer {
        margin-top: auto;
        gap: 8px;
    }

    .modal__content {
        padding: 20px;
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal__title {
        font-size: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cart-item__image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item__info {
        width: 100%;
    }
    
    .cart-item__actions {
        width: 100%;
        justify-content: space-between;
    }

    .notifications {
        left: 10px;
        right: 10px;
        bottom: 80px;
        top: auto; /* сбрасываем top, чтобы не растягивать на весь экран */
        max-width: none;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Навигация категорий на мобильных */
    .categories-nav {
        top: 64px;
        margin-bottom: 20px;
        position: -webkit-sticky;
        position: sticky;
        background: white;
        z-index: 100;
        border-top: 1px solid #F0F0F0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .categories-nav .container {
        padding: 0;
        max-width: none;
    }

    .categories-nav__wrapper {
        padding: 10px 0;
        display: flex;
        align-items: center;
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .categories-nav__wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .categories-nav__list {
        display: flex;
        padding: 0 14px;
        gap: 7px;
        flex-shrink: 0;
        width: max-content;
    }
    
    .category-nav-btn {
        padding: 8px 16px;
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: auto;
        border-radius: 12px;
        line-height: 1.25;
    }
    
    .category-section__title {
        font-size: 26px;
        font-weight: 800;
        padding: 0 14px;
        margin-bottom: 15px;
    }
    
    .subcategories {
        padding: 0 10px;
        margin-bottom: 15px;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .subcategories::-webkit-scrollbar {
        display: none;
    }
    
    .subcategory-btn {
        padding: 6px 14px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Шапка на мобильных */
    .header__content {
        padding: 10px 0;
        gap: 10px;
    }
    
    .header__logo {
        height: 40px;
    }
    
    .logo-icon {
        width: 34px;
        height: 34px;
    }
    
    .logo-sushi, .logo-pizza {
        font-size: 15px;
        letter-spacing: 2px;
    }
    
    .header__logo span {
        font-size: 26px;
    }
    
    .cart-btn {
        padding: 8px 14px;
        font-size: 14px;
        min-width: 50px;
    }
    
    .cart-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .categories-nav__wrapper {
        padding: 8px 0;
    }
    
    .category-nav-btn {
        padding: 8px 16px;
        font-size: 14px;
        font-weight: 600;
    }
    
    .search-toggle {
        display: none;
    }

    .search-panel {
        display: none;
    }

    .mobile-address-bar {
        display: block;
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-search-bar {
        display: block;
        padding: 10px 14px 12px;
    }
    
    .search-input {
        padding: 10px 45px 10px 12px;
        font-size: 14px;
    }
    
    .category-section {
        margin-bottom: 30px;
        scroll-margin-top: 100px;
    }
    
    .category-section__title {
        font-size: 26px;
        font-weight: 800;
        margin-bottom: 12px;
    }
    
    .subcategories {
        margin-bottom: 16px;
    }
    
    .subcategory-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    /* Адаптивность инвентаря в корзине */
    .cart-inv-bar { flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
    .cart-inv-bar__btn { width: 100%; justify-content: center; }
    .cart-inventory {
        padding: 12px;
    }
    
    .cart-inventory__icon {
        width: 34px;
        height: 34px;
    }
    
    .cart-inventory__icon svg {
        width: 19px;
        height: 19px;
    }
    
    .cart-inventory-item {
        width: 110px !important;
    }
    
    .cart-inventory-item__image {
        height: 65px;
    }
    
    .cart-inventory__scroll-btn {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .header__logo {
        font-size: 16px;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
    }
    
    .logo-sushi, .logo-pizza {
        font-size: 13px;
        letter-spacing: 1.5px;
    }

    .cart-btn {
        padding: 8px;
    }
    
    .cart-btn span {
        display: none;
    }

    .section-title {
        font-size: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 10px;
        row-gap: 30px;
    }
    
    .product-card {
        border-radius: 0;
        overflow: visible;
    }
    
    .product-card__image {
        padding-top: 100%;
        border-radius: 12px;
        overflow: hidden;
        background: var(--bg-white);
        margin-bottom: 8px;
    }
    
    .product-card__image img {
        object-fit: cover;
        object-position: center;
    }
    
    .product-card__badge {
        top: 6px;
        left: 6px;
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .product-card__content {
        padding: 0;
    }
    
    .product-card__title {
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 3px;
        min-height: unset;
    }
    
    .product-card__weight {
        font-size: 13px;
        color: #ABABAB;
        margin-bottom: 8px;
    }
    
    .product-card__btn {
        padding: 10px;
        font-size: 14px;
    }
    
    .product-card__btn svg {
        width: 18px;
        height: 18px;
    }
    
    .product-card__quantity {
        height: 46px;
    }
    
    .quantity-btn {
        font-size: 18px;
    }
    
    .slide-content h2 {
        font-size: 20px;
    }
    
    .slide-content p {
        font-size: 13px;
    }
    
    .btn-primary {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    /* Увеличиваем кнопку закрытия модального окна для удобства на мобильных */
    .modal__close {
        width: 44px;
        height: 44px;
        top: 10px;
        right: 10px;
        z-index: 10;
    }
    
    
    .modal__close svg {
        width: 28px;
        height: 28px;
    }
    
    /* Адаптивность инвентаря в корзине для маленьких экранов */
    .cart-inventory {
        padding: 10px;
    }
    
    .cart-inventory__header {
        margin-bottom: 10px;
    }
    
    .cart-inventory__icon {
        width: 32px;
        height: 32px;
    }
    
    .cart-inventory__icon svg {
        width: 18px;
        height: 18px;
    }
    
    .cart-inventory__text h4 {
        font-size: 12px;
    }
    
    .cart-inventory-item {
        width: 100px !important;
        padding: 8px;
    }
    
    .cart-inventory-item__image {
        height: 60px;
    }
    
    .cart-inventory-item__name {
        font-size: 10px;
        min-height: 28px;
    }
    
    .cart-inventory-item__rarity {
        font-size: 7px;
        padding: 2px 4px;
    }
    
    .cart-inventory-item__price {
        font-size: 12px;
    }
    
    .cart-inventory-item__btn {
        font-size: 10px;
        padding: 5px 6px;
    }
    
    .cart-inventory__scroll-btn {
        width: 26px;
        height: 26px;
    }
    
    .cart-inventory-empty {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .cart-inventory-empty__text {
        font-size: 11px;
    }
    
    .cart-inventory-empty__btn {
        padding: 8px 16px;
        font-size: 11px;
        width: 100%;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .carousel-wrapper {
        min-height: 200px;
    }
    
    .slide-content h2 {
        font-size: 20px;
    }
}

/* ===== STORIES (Dodo Style) ===== */
.stories-section {
    padding: 16px 0;
    background: var(--bg-white);
    margin-bottom: 0;
}

.stories-container {
    overflow-x: auto;
    overflow-y: visible;
    padding: 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.stories-container::-webkit-scrollbar {
    display: none;
}

.stories-track {
    display: flex;
    gap: 16px;
    will-change: transform;
    user-select: none;
    padding-right: 20px;
}

.story-item {
    flex-shrink: 0;
    width: 200px;
    height: 280px;
    cursor: pointer;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease;
    position: relative;
    z-index: 1;
}

.story-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.story-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-item__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.story-item__title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin: 0;
}

.story-item__subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    margin-top: 4px;
    line-height: 1.3;
}

.story-item__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Story Viewer */
.story-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-viewer__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
}

.story-viewer__container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    max-height: 900px;
    background: #000;
    border-radius: 0;
    overflow: hidden;
}

.story-viewer__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.story-viewer__close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.story-viewer__progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.story-viewer__progress-bar {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.1s linear;
}

.story-viewer__content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.story-viewer__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-viewer__text {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    padding: 20px;
    color: white;
    text-align: center;
}

.story-viewer__text h2 {
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.story-viewer__text p {
    font-size: 16px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.story-viewer__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.story-viewer__nav:hover {
    background: rgba(0, 0, 0, 0.6);
}

.story-viewer__prev {
    left: 20px;
}

.story-viewer__next {
    right: 20px;
}

@media (max-width: 768px) {
    .story-viewer__container {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .story-viewer__nav {
        width: 40px;
        height: 40px;
    }
    
    .story-viewer__prev {
        left: 10px;
    }
    
    /* Адаптация сторис под мобильные */
    .stories-section {
        padding: 15px 0;
    }
    
    .stories-track {
        gap: 12px;
    }
    
    .story-item {
        width: 160px;
        height: 220px;
        border-radius: 12px;
    }
    
    .story-item__overlay {
        padding: 15px 12px;
    }
    
    .story-item__title {
        font-size: 14px;
    }
    
    .story-item__subtitle {
        font-size: 12px;
    }
    
    .story-item__badge {
        top: 10px;
        left: 10px;
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .story-viewer__next {
        right: 10px;
    }
    
    .story-viewer__text h2 {
        font-size: 22px;
    }
    
    .story-viewer__text p {
        font-size: 14px;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 8px;
        row-gap: 28px;
        padding: 0 8px;
    }
    
    .product-card {
        padding: 0;
    }
    
    .product-card__image {
        height: auto;
    }
    
    .product-card__title {
        font-size: 16px;
        font-weight: 500;
        min-height: unset;
    }
    
    .category-nav-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .cart-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* Исправление для кликабельности элементов */
.product-card__btn,
.category-nav-btn,
.subcategory-btn,
.cart-btn,
button,
a {
    -webkit-tap-highlight-color: rgba(76, 175, 80, 0.1);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.product-card__btn:active,
.category-nav-btn:active,
.cart-btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* ============================================ */
/* Стили для автодополнения адресов (Яндекс.Карты) */
/* ============================================ */

.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
    display: none; /* По умолчанию скрыт */
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-dark);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: var(--bg-gray);
}

.suggestion-item--empty {
    cursor: default;
    color: var(--text-light);
    text-align: center;
}

/* ============================================ */
/* Мини-логотип в панели категорий (мобильный) */
/* ============================================ */

.cat-nav-logo {
    display: none;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    flex-shrink: 0;
    width: 0;
    height: 36px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-18px) scale(0.6);
    transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease,
                transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                margin 0.35s ease;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .categories-nav .container {
        display: flex;
        align-items: center;
    }

    .cat-nav-logo {
        display: flex;
    }

    .categories-nav.logo-visible .cat-nav-logo {
        width: 40px;
        opacity: 1;
        transform: translateX(0) scale(1);
        margin-left: 8px;
        margin-right: 4px;
    }

    .categories-nav.logo-visible .categories-nav__list {
        padding-left: 0;
    }
}

.suggestion-item--empty:hover {
    background-color: transparent;
}

/* Контейнер для формы с адресом должен быть position: relative */
.form-group {
    position: relative;
}

/* Контейнер для карты */
.map-container {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 16px;
    border: 1px solid var(--border-color);
}

/* Кастомный маркер на карте */
.custom-marker {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Загрузчик карты */
.map-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.map-loader__spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mapSpinnerRotate 1s linear infinite;
}

.map-loader__text {
    color: #fff;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
}

@keyframes mapSpinnerRotate {
    to {
        transform: rotate(360deg);
    }
}

/* Textarea для комментария */
.form-textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.custom-marker:hover {
    transform: scale(1.1);
}

.custom-marker svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Анимация появления маркера */
@keyframes markerBounce {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    50% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.custom-marker {
    animation: markerBounce 0.6s ease-out;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .address-suggestions {
        max-height: 200px;
    }

    .map-container {
        height: 250px;
    }
    
    .custom-marker svg {
        width: 40px;
        height: 48px;
    }
}

/* ============================================
   УЛУЧШЕННАЯ КОРЗИНА
   ============================================ */

/* Информация о зоне доставки */
.delivery-zone-info {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
    border: 2px solid #4CAF50;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

.delivery-two-column .delivery-zone-info {
    margin-top: 10px;
    padding: 10px 12px;
    border-width: 1px;
    border-radius: 8px;
}

/* Преимущества самовывоза */
.pickup-benefits {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
    border: 2px solid #4CAF50;
    border-radius: 12px;
}

.pickup-benefit-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pickup-benefit-label {
    font-size: 12px;
    color: #558B2F;
    margin-bottom: 2px;
}

.pickup-benefit-value {
    font-size: 15px;
    font-weight: 700;
    color: #2E7D32;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delivery-zone-info__icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.delivery-two-column .delivery-zone-info__icon {
    width: 32px;
    height: 32px;
}

.delivery-zone-info__icon svg {
    color: #4CAF50;
}

.delivery-two-column .delivery-zone-info__icon svg {
    width: 16px;
    height: 16px;
}

.delivery-zone-info__content {
    flex: 1;
}

.delivery-zone-info__title {
    font-size: 15px;
    font-weight: 700;
    color: #2E7D32;
    margin-bottom: 4px;
}

.delivery-two-column .delivery-zone-info__title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
}

.delivery-zone-info__details {
    font-size: 13px;
    color: #558B2F;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-two-column .delivery-zone-info__details {
    font-size: 12px;
    gap: 6px;
}

.delivery-zone-info__separator {
    color: #81C784;
}

/* Вариант для адреса вне зоны доставки */
.delivery-zone-info--error {
    background: linear-gradient(135deg, #FFEBEE 0%, #FCE4EC 100%);
    border-color: #F44336;
}

.delivery-zone-info--error .delivery-zone-info__icon {
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
}

.delivery-zone-info--error .delivery-zone-info__icon svg {
    color: #F44336;
}

.delivery-zone-info--error .delivery-zone-info__title {
    color: #C62828;
}

.delivery-zone-info--error .delivery-zone-info__details {
    color: #D32F2F;
}

/* Оверлей информации о зоне доставки на карте */
/* ===== ОВЕРЛЕЙ ЗОНЫ ДОСТАВКИ (delivery zone popup) ===== */
.dzp {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    animation: slideDown 0.25s ease;
    width: calc(100% - 28px);
    max-width: 400px;
    pointer-events: none;
}

.dzp__card {
    background: #fff;
    border: 1.5px solid #66BB6A;
    border-radius: 14px;
    padding: 14px 16px 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
    pointer-events: auto;
}

/* Ошибка: вне зоны */
.dzp__card--error {
    border-color: #EF5350;
    box-shadow: 0 6px 20px rgba(239,83,80,0.18);
}

/* Адресная строка */
.dzp__address {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 9px;
    line-height: 1.4;
}

.dzp__address svg {
    color: #4CAF50;
    margin-top: 1px;
    flex-shrink: 0;
}

.dzp__card--error .dzp__address svg {
    color: #EF5350;
}

/* Название зоны */
.dzp__zone {
    font-size: 12px;
    font-weight: 700;
    color: #2E7D32;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.dzp__card--error .dzp__zone {
    color: #C62828;
}

/* Детали: мин. заказ + стоимость */
.dzp__details {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.dzp__detail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #555;
    white-space: nowrap;
}

.dzp__detail svg {
    color: #66BB6A;
    flex-shrink: 0;
}

.dzp__card--error .dzp__detail {
    color: #999;
}

.dzp__sep {
    color: #ccc;
    font-size: 11px;
}

/* Кнопка выбора */
.dzp__btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin-top: 11px;
    padding: 9px 16px;
    background: linear-gradient(135deg, #4CAF50, #43A047);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(76,175,80,0.3);
}

.dzp__btn:hover {
    background: linear-gradient(135deg, #43A047, #388E3C);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(76,175,80,0.4);
}

.dzp__btn:active {
    transform: translateY(0);
}

/* Мигание поля адреса при выборе */
@keyframes addressFlash {
    0%, 100% { border-color: #4CAF50; box-shadow: 0 0 0 3px rgba(76,175,80,0.2); }
    50% { border-color: #2E7D32; box-shadow: 0 0 0 5px rgba(76,175,80,0.35); }
}

.address-input-flash {
    animation: addressFlash 0.35s ease 0s 2;
}

/* Заголовок корзины */
/* ===== ДВУХПАНЕЛЬНАЯ КОРЗИНА ===== */

.cart-modal .modal__content,
.cart-modal__content {
    display: flex;
    flex-direction: row;
    max-width: 960px;
    width: 92vw;
    max-height: 88vh;
    height: 88vh;
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
}

/* Левая панель — список товаров */
.cart-panel-left {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    min-width: 0;
    overflow: hidden;
}

.cart-panel-left__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 18px;
    border-bottom: 1px solid #F0F0F0;
    flex-shrink: 0;
}

.cart-panel-left__title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-panel-left__title {
    font-size: 22px;
    font-weight: 800;
    color: #1A1A1A;
    margin: 0;
}

.cart-panel-left__scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.cart-panel-left__scroll::-webkit-scrollbar { width: 6px; }
.cart-panel-left__scroll::-webkit-scrollbar-track { background: #F5F5F5; border-radius: 3px; }
.cart-panel-left__scroll::-webkit-scrollbar-thumb { background: #BDBDBD; border-radius: 3px; }
.cart-panel-left__scroll::-webkit-scrollbar-thumb:hover { background: #9E9E9E; }

/* Правая панель — оформление */
.cart-panel-right {
    flex: 0 0 340px;
    display: flex;
    flex-direction: column;
    background: #F7F7F7;
    border-left: 1px solid #EBEBEB;
    overflow: hidden;
}

.cart-panel-right__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 20px 20px 24px;
    background: #fff;
    border-bottom: 1px solid #EBEBEB;
    flex-shrink: 0;
    color: #555;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-panel-right__header > span {
    flex: 1;
}

/* Кнопка закрытия в правой панели */
.cart-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #F5F5F5;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.cart-close-btn:hover {
    background: #FFEBEE;
    color: #E53935;
    transform: rotate(90deg);
}

.cart-panel-right__scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.cart-panel-right__scroll::-webkit-scrollbar { width: 6px; }
.cart-panel-right__scroll::-webkit-scrollbar-track { background: #F5F5F5; border-radius: 3px; }
.cart-panel-right__scroll::-webkit-scrollbar-thumb { background: #BDBDBD; border-radius: 3px; }

.cart-panel-right__footer {
    padding: 16px 24px;
    border-top: 1px solid #F0F0F0;
    background: #fff;
    flex-shrink: 0;
}

.cart-panel-right__empty-placeholder {
    text-align: center;
    font-size: 13px;
    color: #BBBBBB;
    padding: 8px 0;
}

/* Закрытие корзины — в левом заголовке */
.cart-modal .modal__close {
    position: static;
    background: #F5F5F5;
    color: #666;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: none;
    transition: background 0.2s, transform 0.2s;
}

.cart-modal .modal__close:hover {
    background: #FFE5E5;
    transform: rotate(90deg);
    box-shadow: none;
}

.cart-modal .modal__close svg {
    stroke: #666;
}

.cart-modal .modal__close:hover svg {
    stroke: #E53935;
}

/* Убрать старый заголовок */
.cart-header {
    display: none;
}

.cart-badge {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}


/* Метка секции в правой панели */
.cart-section-label {
    font-size: 11px;
    font-weight: 700;
    color: #BDBDBD;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    margin-top: 4px;
}

/* Информация о доставке в корзине */
.cart-delivery-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: #F0FBF0;
    border-radius: 12px;
    border: 1.5px solid #C8E6C9;
}

.cart-delivery-info__icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(76, 175, 80, 0.15);
}

.cart-delivery-info__content {
    flex: 1;
    min-width: 0;
}

.cart-delivery-info__title {
    font-size: 10px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 1px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.cart-delivery-info__text {
    font-size: 13px;
    font-weight: 500;
    color: #2C2C2C;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-delivery-info__btn {
    padding: 7px 14px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.cart-delivery-info__btn:hover {
    background: #43A047;
}

/* Пустая корзина */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 0.3s ease;
}

.cart-empty__icon {
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.cart-empty__text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.cart-empty__subtext {
    color: var(--text-light);
    font-size: 14px;
}

/* Товары в корзине */
.cart-items {
    margin-bottom: 20px;
}

/* Дополнительные опции (приборы, промокод) */
.cart-extras {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cart-extra-item {
    margin-bottom: 0;
}

/* Кастомный чекбокс */
.cart-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 11px 14px;
    background: white;
    border-radius: 12px;
    border: 1.5px solid #EBEBEB;
    transition: border-color 0.2s;
    box-shadow: none;
}

.cart-checkbox:hover {
    border-color: #A5D6A7;
    box-shadow: none;
}

.cart-checkbox input {
    display: none;
}

.cart-checkbox__checkmark {
    width: 20px;
    height: 20px;
    border: 1.5px solid #D0D0D0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: #FAFAFA;
}

.cart-checkbox input:checked + .cart-checkbox__checkmark {
    background: #4CAF50;
    border-color: #4CAF50;
}

.cart-checkbox__checkmark svg {
    opacity: 0;
    transform: scale(0);
    transition: all 0.15s ease;
}

.cart-checkbox input:checked + .cart-checkbox__checkmark svg {
    opacity: 1;
    transform: scale(1);
}

.cart-checkbox__label {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #1A1A1A;
}

.cart-checkbox__price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 13px;
    margin-left: 8px;
}

/* Промокод */
.cart-promo {
    margin-top: 0;
}

.cart-promo__input-wrapper {
    display: flex;
    gap: 8px;
}

.cart-promo__input {
    flex: 1;
    padding: 11px 14px;
    border: 1.5px solid #EBEBEB;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    transition: border-color 0.2s;
    background: white;
    box-shadow: none;
}

.cart-promo__input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: none;
}

.cart-promo__input::placeholder {
    text-transform: none;
    color: #BDBDBD;
    font-weight: 400;
}

.cart-promo__btn {
    padding: 11px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    box-shadow: none;
}

.cart-promo__btn:hover {
    background: #43A047;
    transform: none;
    box-shadow: none;
}

.cart-promo__btn:active {
    background: #388E3C;
    transform: none;
    box-shadow: none;
}

.cart-promo__message {
    margin-top: 6px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    display: none;
}

.cart-promo__message.success {
    display: block;
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.cart-promo__message.error {
    display: block;
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

/* Время доставки */
.cart-delivery-time {
    margin-top: 0;
    background: white;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1.5px solid #EBEBEB;
    box-shadow: none;
}

.delivery-time-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.delivery-time-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0;
}

.delivery-time-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 8px 6px;
    border-radius: 8px;
    transition: background 0.15s;
    font-size: 13px;
    color: #333;
}

.delivery-time-radio:hover {
    background: #F5F5F5;
}

.delivery-time-radio input {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d1d1;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.delivery-time-radio input:checked + .radio-custom {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-color: var(--primary-color);
}

.delivery-time-radio input:checked + .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.delivery-time-picker {
    animation: slideDown 0.3s ease;
}

.time-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
}

.time-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.12);
}

/* Итоги корзины */
.cart-summary {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    margin-top: 16px;
    border: 1px solid #EBEBEB;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 15px;
}

.cart-summary__row span:first-child {
    color: var(--text-light);
    font-weight: 500;
}

.cart-summary__row span:last-child {
    color: var(--text-dark);
    font-weight: 600;
}

.cart-summary__discount {
    color: var(--success-color) !important;
}

.cart-summary__discount span:last-child {
    color: var(--success-color);
}

.promo-badge {
    display: inline-block;
    background: var(--success-color);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cart-summary__divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    margin: 12px 0;
}

.cart-summary__total {
    font-size: 18px;
    font-weight: 700;
    padding-top: 12px;
}

.cart-summary__total span:first-child {
    color: var(--text-dark);
}

.cart-summary__total span:last-child {
    color: var(--primary-color);
    font-size: 22px;
}

/* Кнопка оформления заказа */
.cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    font-size: 15px;
    font-weight: 700;
    padding: 16px 20px;
    margin-top: 0;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    border-radius: 14px;
    color: white;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
}

.cart-checkout-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cart-checkout-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.cart-checkout-btn:active {
    transform: translateY(0);
}

.cart-checkout-btn svg {
    transition: transform 0.3s ease;
}

.cart-checkout-btn:hover svg {
    transform: translateX(4px);
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   МОДАЛКА ДЕТАЛЬНОГО ПРОСМОТРА ТОВАРА
   ============================================ */

.product-detail-modal .modal__wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.product-detail-modal .modal__content {
    max-width: 960px !important;
    width: 92vw;
    max-height: 82vh;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    position: relative;
}

.product-detail-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-detail {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Режим без добавок: одна колонка, компактное окно */
.product-detail--no-ingredients .product-detail__info-section {
    display: none;
}

.product-detail--no-ingredients .product-detail__image-section {
    flex: 1;
    border-right: none;
}

.product-detail-modal.no-ingredients .modal__content {
    max-width: 520px !important;
}

/* Верхняя часть: Изображение */
.product-detail__image-section {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    position: relative;
    flex: 1 1 440px;
    overflow-y: auto;
}

.product-detail__image-container {
    width: 100%;
    max-width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    margin-bottom: 0;
}

.product-detail__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-detail__image:hover {
    transform: scale(1.05);
}

/* Нижняя часть: Информация */
.product-detail__info-section {
    display: flex;
    flex-direction: column;
    background: #FAFAFA;
    flex: 0 1 440px;
    min-height: 0;
    border-left: 1px solid #E8E8E8;
}

.product-detail__panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 22px 28px;
    background: #fff;
    border-bottom: 1px solid #EFEFEF;
    flex-shrink: 0;
    color: #444;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.product-detail__scroll {
    flex: 1;
    overflow-y: auto;
    padding: 32px 28px;
}

.product-detail__scroll::-webkit-scrollbar,
.product-detail__image-section::-webkit-scrollbar {
    width: 6px;
}

.product-detail__scroll::-webkit-scrollbar-track,
.product-detail__image-section::-webkit-scrollbar-track {
    background: #F5F5F5;
    border-radius: 3px;
}

.product-detail__scroll::-webkit-scrollbar-thumb,
.product-detail__image-section::-webkit-scrollbar-thumb {
    background: #BDBDBD;
    border-radius: 3px;
}

.product-detail__scroll::-webkit-scrollbar-thumb:hover,
.product-detail__image-section::-webkit-scrollbar-thumb:hover {
    background: #9E9E9E;
}

/* Скроллбар в модальных окнах (профиль, доставка и др.) */

.product-detail__header {
    margin-bottom: 24px;
}

.product-detail__left-info {
    width: 100%;
    text-align: left;
    flex: 1;
    padding: 20px 22px 22px;
}

.product-detail__left-info .product-detail__title {
    text-align: left;
    font-size: 24px;
    margin-bottom: 4px;
}

.product-detail__left-info .product-detail__weight {
    text-align: left;
    margin-bottom: 10px;
    font-size: 13px;
}

.product-detail__left-info .product-detail__rating {
    justify-content: flex-start;
    margin-bottom: 12px;
}

.product-detail__title {
    font-size: 26px;
    font-weight: 700;
    color: #000;
    margin: 0 0 8px 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.product-detail__description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 16px 0;
    font-weight: 400;
}

.product-detail__weight {
    font-size: 15px;
    color: #999;
    margin: 0 0 12px 0;
    font-weight: 500;
}

/* Рейтинг */
.product-detail__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.rating-stars {
    display: flex;
    gap: 2px;
    color: #FFB800;
}

.rating-value {
    font-size: 15px;
    font-weight: 700;
    color: #000;
}

.rating-count {
    font-size: 14px;
    color: #999;
}

/* Блок КБЖУ */
.product-detail__nutrition {
    margin-bottom: 0;
    border: 1px solid #EBEBEB;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}

.nutrition-toggle {
    width: 100%;
    padding: 11px 16px;
    background: #FAFAFA;
    border: none;
    border-bottom: 1px solid #EBEBEB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: default;
    pointer-events: none;
}

.nutrition-toggle__header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nutrition-toggle__title {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.nutrition-toggle__per100 {
    font-size: 11px;
    font-weight: 500;
    color: #AAAAAA;
}

.nutrition-toggle__icon {
    display: none;
}

.nutrition-content {
    padding: 14px 16px;
    display: block;
}

.nutrition-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.nutrition-table thead th {
    font-size: 10px;
    font-weight: 700;
    color: #AAAAAA;
    text-align: left;
    padding: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #F0F0F0;
}

.nutrition-table thead th:first-child {
    width: 34px;
}

.nutrition-table tbody th {
    font-size: 11px;
    font-weight: 600;
    color: #CCCCCC;
    padding: 10px 8px 0 0;
    vertical-align: top;
    white-space: nowrap;
}

.nutrition-table tbody td {
    padding: 10px 0 0 0;
    vertical-align: top;
    text-align: left;
}

.nutrition-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nutrition-value {
    font-size: 17px;
    font-weight: 800;
    color: #1A1A1A;
    line-height: 1;
}

.nutrition-unit {
    display: none;
}

.nutrition-ingredients {
    display: none;
}

.product-detail__section-title {
    font-size: 14px;
    font-weight: 700;
    color: #8A8A8A;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 12px 0;
}

/* Состав товара (уже включенные ингредиенты) */
.product-detail__composition {
    margin: 0 0 20px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #F0F0F0;
    text-align: left;
    background: none;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
}

.composition-hint {
    font-size: 11px;
    color: #aaa;
    margin-top: 8px;
    font-style: italic;
    line-height: 1.4;
}

.product-detail__composition .product-detail__section-title {
    margin-bottom: 10px;
}

.product-detail__composition .product-composition {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

.product-composition {
    font-size: 16px;
    line-height: 1.6;
    color: #000;
}

#productCompositionList {
    font-size: 15px;
    line-height: 1.8;
    color: #000;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.composition-item {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    color: #000;
    margin: 0;
    padding: 4px 0;
    white-space: nowrap;
}

.composition-item.removable {
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    padding: 4px 8px;
    border-radius: 6px;
}

.composition-item.removable:hover {
    background: #E8F5E9;
    color: #4CAF50;
}

.composition-item.removed {
    opacity: 0.5;
    text-decoration: line-through;
    text-decoration-color: #4CAF50;
    text-decoration-thickness: 2px;
    color: #999;
}

.composition-item__info {
    display: contents;
}

.composition-item__image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: #fff;
}

.composition-item__details {
    display: flex;
    flex-direction: column;
}

.composition-item__name {
    font-size: 14px;
    font-weight: 500;
    color: #212121;
    margin: 0;
}

.composition-item__weight {
    font-size: 12px;
    color: #9E9E9E;
    margin: 0;
}

.composition-item__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    cursor: pointer;
    opacity: 1;
    transition: all 0.2s;
    background: #E53935;
    border: none;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
}

.composition-item__remove:hover {
    transform: scale(1.1);
    background: #C62828;
}

.composition-item.removed .composition-item__remove {
    opacity: 1;
    background: #4CAF50;
}

.composition-item.removed .composition-item__remove:hover {
    background: #45a049;
}

.composition-item__remove svg {
    display: block;
    width: 10px;
    height: 10px;
}

.composition-item__remove svg path,
.composition-item__remove svg circle {
    stroke: white;
}

/* Добавляемые ингредиенты */
/* ===== PIZZA CUTTING SECTION ===== */
.pizza-cutting-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F0F0F0;
}

.pizza-cutting-section .product-detail__section-title {
    margin-bottom: 12px;
}

.pizza-cutting-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pizza-cut-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    background: #fff;
    border: 2px solid #E8E8E8;
    border-radius: 14px;
    padding: 14px 8px 12px;
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s, transform 0.12s;
    text-align: center;
    position: relative;
}

.pizza-cut-btn:hover {
    border-color: #FFA726;
    box-shadow: 0 4px 14px rgba(255, 167, 38, 0.18);
    transform: translateY(-1px);
}

.pizza-cut-btn:active {
    transform: translateY(0);
}

.pizza-cut-btn.active {
    border-color: #FF6B35;
    background: linear-gradient(135deg, #FFF8F3 0%, #FFF0E6 100%);
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.2);
}

/* Чекмарк у активной карточки */
.pizza-cut-btn.active::after {
    content: '';
    position: absolute;
    top: 7px;
    right: 7px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FF6B35 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12l4.5 4.5L19 7' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.4);
}

.pizza-cut-btn__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #FFF3E0;
    border: 2px solid transparent;
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.pizza-cut-btn:hover .pizza-cut-btn__icon {
    border-color: #FFD180;
    box-shadow: 0 2px 10px rgba(255, 167, 38, 0.2);
}

.pizza-cut-btn.active .pizza-cut-btn__icon {
    background: #FFE0CC;
    border-color: #FF6B35;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.25);
}

.pizza-cut-btn__label {
    font-size: 12px;
    font-weight: 700;
    color: #2C3E50;
    line-height: 1.3;
    text-align: center;
}

.pizza-cut-btn.active .pizza-cut-btn__label {
    color: #D84315;
}

.pizza-cut-btn__default {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: #FF6B35;
    border-radius: 20px;
    padding: 2px 7px;
    white-space: nowrap;
    margin-top: -2px;
}

/* ===== END PIZZA CUTTING SECTION ===== */

.product-detail__add-ingredients {
    margin-bottom: 0;
    padding-top: 0;
}

.product-detail__add-ingredients .product-detail__section-title {
    margin-bottom: 14px;
}

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ingredient-card {
    position: relative;
    padding: 8px;
    background: white;
    border: 2px solid #E8E8E8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.ingredient-card:hover {
    border-color: #4CAF50;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.2);
}

.ingredient-card.selected {
    background: #E8F5E9;
    border-color: #4CAF50;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.25);
}

.ingredient-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ingredient-card__image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F5;
    border-radius: 10px;
    position: relative;
    min-height: 70px;
    overflow: hidden;
}

.ingredient-card__image {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.ingredient-card:hover .ingredient-card__image {
    transform: scale(1.1);
}

.ingredient-card__check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    background: #4CAF50;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.4);
}

.ingredient-card.selected .ingredient-card__check {
    display: flex;
}

.ingredient-card__quantity {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.ingredient-card.selected .ingredient-card__quantity {
    display: flex;
}

.ingredient-quantity-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #4CAF50;
    background: white;
    color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 16px;
}

.ingredient-quantity-btn:hover {
    background: #4CAF50;
    color: white;
    transform: scale(1.1);
}

.ingredient-quantity-btn:active {
    transform: scale(0.95);
}

.ingredient-quantity-value {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: #000;
}

.ingredient-card__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ingredient-card__name {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    margin: 0;
    line-height: 1.3;
}

.ingredient-card__price {
    font-size: 12px;
    font-weight: 700;
    color: #4CAF50;
    margin: 0;
}

.ingredient-card.selected .ingredient-card__price {
    color: #45a049;
}

/* Футер с кнопкой */
.product-detail__footer {
    padding: 18px 24px;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #E8E8E8;
}

.btn-full {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 28px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-full:hover {
    background: linear-gradient(135deg, #45a049 0%, #388E3C 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(76, 175, 80, 0.4);
}

.btn-full:active {
    transform: translateY(0);
}

.btn-full svg {
    flex-shrink: 0;
}

/* ===== МОБИЛЬНЫЙ ПРОФИЛЬ ===== */

/* Мобильные элементы скрыты на десктопе */
.profile-mobile-header {
    display: none;
}

.profile-tabs-bar {
    display: none;
}

@media (max-width: 768px) {
    /* Профиль — полноэкранная страница */
    #profileModal {
        padding: 0 !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        top: 0 !important;
        /* height: calc перебивает базовый height:100% надёжнее чем bottom */
        height: calc(100dvh - 62px) !important;
        z-index: 5000 !important;
        background: transparent !important; /* серые края — от фона модала */
        pointer-events: none !important; /* Прозрачная зона не перехватывает тапы */
    }

    #profileModal .modal__overlay {
        display: none !important;
    }

    #profileModal .modal__content {
        border-radius: 0 !important;
        max-width: 100% !important;
        max-height: 100% !important;
        height: 100% !important;
        width: 100% !important;
        box-shadow: none !important;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        animation: none !important;
        background: #F4F5F7;
        padding: 0 !important;
        pointer-events: auto !important; /* Контент перехватывает тапы */
    }

    /* Скрыть десктопную кнопку закрытия */
    #profileModal .modal__close {
        display: none !important;
    }

    /* Скрыть десктоп-заголовок */
    #profileModal .modal__title {
        display: none;
    }

    /* ================================================================
       МОБИЛЬНАЯ ШАПКА ПРОФИЛЯ
       ================================================================ */
    .profile-mobile-header {
        display: flex;
        align-items: center;
        height: 54px;
        padding: 0 14px;
        background: #fff;
        border-bottom: 1px solid #F0F0F0;
        flex-shrink: 0;
        z-index: 2;
        gap: 10px;
    }

    .profile-back-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: #F2F2F2;
        border: none;
        cursor: pointer;
        color: #333;
        border-radius: 50%;
        transition: background 0.15s, transform 0.1s;
        flex-shrink: 0;
    }

    .profile-back-btn:active {
        background: #E0E0E0;
        transform: scale(0.93);
    }

    .profile-mobile-title {
        flex: 1;
        text-align: center;
        font-size: 17px;
        font-weight: 700;
        color: #111;
    }

    .profile-mobile-header__spacer {
        width: 36px;
        flex-shrink: 0;
    }

    /* ================================================================
       СКРОЛЛИРУЕМОЕ ТЕЛО
       ================================================================ */
    #profileModal .modal__body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0;
        max-height: none;
        background: #F4F5F7;
    }

    #profileModal .modal__body::-webkit-scrollbar {
        display: none;
    }

    /* ================================================================
       ГЕРОЙ-СЕКЦИЯ: зелёный градиент, аватар, имя, коины
       ================================================================ */
    #profileModal .profile-info {
        background: linear-gradient(160deg, #4CAF50 0%, #2E7D32 100%);
        border: none;
        border-radius: 0 0 32px 32px;
        padding: 32px 24px 36px;
        margin-bottom: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        box-shadow: 0 8px 28px rgba(46, 125, 50, 0.35);
        position: relative;
        overflow: hidden;
    }

    /* Декоративные круги (не кликабельны) */
    #profileModal .profile-info::before {
        content: '';
        position: absolute;
        width: 160px;
        height: 160px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 50%;
        top: -55px;
        right: -35px;
        pointer-events: none;
    }

    #profileModal .profile-info::after {
        content: '';
        position: absolute;
        width: 100px;
        height: 100px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
        bottom: -25px;
        left: 5px;
        pointer-events: none;
    }

    #profileModal .profile-avatar {
        width: 88px;
        height: 88px;
        font-size: 34px;
        background: rgba(255, 255, 255, 0.22);
        border: 3px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
        letter-spacing: -1px;
        margin-bottom: 6px;
        position: relative;
        z-index: 1;
    }

    #profileModal .profile-details {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        position: relative;
        z-index: 1;
    }

    #profileModal .profile-name {
        color: #fff;
        font-size: 22px;
        font-weight: 800;
        white-space: normal;
        text-overflow: unset;
        overflow: visible;
        margin-bottom: 0;
        text-shadow: 0 1px 4px rgba(0,0,0,0.15);
    }

    #profileModal .profile-phone {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 13px;
        margin-bottom: 0;
        background: rgba(0,0,0,0.12);
        padding: 4px 12px;
        border-radius: 20px;
    }

    #profileModal .profile-coins-badge {
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1.5px solid rgba(255, 255, 255, 0.4);
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        padding: 7px 20px;
        border-radius: 24px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        margin-top: 4px;
    }

    /* Бейдж провайдера (VK / Telegram / Телефон) — белый на зелёном */
    #profileModal .profile-provider-badge {
        display: inline-flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 20px;
        padding: 3px 12px;
        font-size: 12px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.92);
        margin-top: 2px;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    /* ================================================================
       ТАБ-ПАНЕЛЬ (Заказы / Инвентарь)
       ================================================================ */
    .profile-tabs-bar {
        display: flex;
        background: #fff;
        border-bottom: 1.5px solid #F0F0F0;
        position: sticky;
        top: 0;
        z-index: 5;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        margin-top: 2px;
    }

    .profile-tab-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 14px 8px;
        border: none;
        background: transparent;
        font-size: 14px;
        font-weight: 600;
        color: #ABABAB;
        cursor: pointer;
        position: relative;
        transition: color 0.2s;
    }

    .profile-tab-btn.active {
        color: #4CAF50;
    }

    .profile-tab-btn.active::after {
        content: '';
        position: absolute;
        bottom: -1.5px;
        left: 20%;
        width: 60%;
        height: 2.5px;
        background: #4CAF50;
        border-radius: 3px 3px 0 0;
    }

    /* ================================================================
       ПАНЕЛИ ПРОФИЛЯ
       ================================================================ */
    #profileModal .profile-section {
        margin-bottom: 0;
        padding: 14px 14px 8px;
    }

    #profileModal .profile-section[data-panel] {
        display: none;
    }

    #profileModal .profile-section[data-panel].ptab-active {
        display: block;
    }

    /* Заголовки секций скрыты */
    #profileModal .profile-section > h4 {
        display: none;
    }

    /* ================================================================
       УЛУЧШЕННЫЕ КАРТОЧКИ ЗАКАЗОВ
       ================================================================ */
    #profileModal .order-tabs {
        display: flex;
        background: #F0F0F0;
        border-radius: 12px;
        padding: 3px;
        margin-bottom: 14px;
        gap: 0;
    }

    #profileModal .order-tab {
        flex: 1;
        text-align: center;
        padding: 9px 12px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 600;
        color: #888;
        background: transparent;
        border: none;
        cursor: pointer;
        transition: all 0.2s;
    }

    #profileModal .order-tab.active {
        background: #fff;
        color: #111;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    /* Карточка заказа */
    #profileModal .order-card {
        background: #fff;
        border-radius: 16px;
        padding: 14px 16px;
        margin-bottom: 10px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        border: 1px solid #F0F0F0;
        cursor: pointer;
        transition: transform 0.1s, box-shadow 0.15s;
    }

    #profileModal .order-card:active {
        transform: scale(0.985);
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    }

    #profileModal .order-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
    }

    #profileModal .order-number {
        font-size: 15px;
        font-weight: 700;
        color: #111;
    }

    #profileModal .order-status {
        font-size: 11px;
        font-weight: 700;
        padding: 3px 10px;
        border-radius: 20px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    #profileModal .order-status--pending,
    #profileModal .order-status--new {
        background: #FFF3E0;
        color: #E65100;
    }

    #profileModal .order-status--cooking,
    #profileModal .order-status--preparing {
        background: #FFF8E1;
        color: #F57F17;
    }

    #profileModal .order-status--delivery {
        background: #E3F2FD;
        color: #1565C0;
    }

    #profileModal .order-status--completed,
    #profileModal .order-status--done {
        background: #E8F5E9;
        color: #2E7D32;
    }

    #profileModal .order-status--cancelled {
        background: #FFEBEE;
        color: #C62828;
    }

    #profileModal .order-info {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #profileModal .order-date {
        font-size: 12px;
        color: #AAAAAA;
    }

    #profileModal .order-total {
        font-size: 16px;
        font-weight: 800;
        color: #4CAF50;
    }

    #profileModal .order-time {
        font-size: 12px;
        color: #666;
        margin-top: 6px;
    }

    /* ================================================================
       ИНВЕНТАРЬ
       ================================================================ */
    #profileModal .inventory-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        margin-bottom: 14px;
    }

    #profileModal .inventory-filters::-webkit-scrollbar {
        display: none;
    }

    #profileModal .inventory-filters {
        display: none;
    }

    #profileModal .inventory-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    /* ================================================================
       КНОПКА ВЫЙТИ — с отступом от нижнего края
       ================================================================ */
    #profileModal #logoutBtn {
        display: block;
        margin: 16px 14px 24px;
        width: calc(100% - 28px);
        border-radius: 14px;
        font-size: 15px;
        font-weight: 700;
        padding: 15px;
    }

    /* ================================================================
       МОДАЛКА ДЕТАЛЕЙ ЗАКАЗА — поверх профиля (slide-up sheet)
       ================================================================ */
    #orderModal {
        z-index: 6000 !important;
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    #orderModal .modal__content {
        border-radius: 20px 20px 0 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        max-height: 85dvh !important;
        animation: orderSheetSlideUp 0.32s cubic-bezier(0.32, 1, 0.23, 1) !important;
        display: flex;
        flex-direction: column;
    }

    #orderModal .modal__body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 16px 24px;
        flex: 1;
    }

    #orderModal .modal__close {
        position: absolute;
        top: 12px;
        right: 14px;
        z-index: 1;
    }

    /* Ручка-индикатор вверху sheet */
    #orderModal .modal__content::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
        margin: 12px auto 4px;
        flex-shrink: 0;
    }
}

@keyframes orderSheetSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

#productDetailPrice {
    font-weight: 700;
}

/* ============================================================
   КАРТОЧКА ТОВАРА — МОБИЛЬНЫЙ РЕДИЗАЙН
   ============================================================ */

/* Мобильная шапка скрыта на десктопе */
.product-detail__mobile-header {
    display: none;
}

@media (max-width: 768px) {

    /* Геометрия выставляется через JS (_applyMobileModalFix) */
    .product-detail-modal .modal__overlay {
        display: none !important;
    }

    .product-detail-modal .modal__wrapper {
        position: static !important;
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        display: flex;
        flex-direction: column;
        background: #fff;
    }

    .product-detail-modal .modal__content,
    .product-detail-modal.no-ingredients .modal__content {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        animation: none;
        background: #fff;
    }

    .product-detail-content {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
        background: #fff;
    }

    /* X-кнопка скрыта */
    .product-detail-modal .modal__close {
        display: none !important;
    }

    /* ====================================================
       МОБИЛЬНАЯ ШАПКА
       ==================================================== */
    .product-detail__mobile-header {
        display: flex;
        align-items: center;
        height: 54px;
        flex-shrink: 0;
        background: #fff;
        border-bottom: 1px solid #F0F0F0;
        padding: 0 14px;
        gap: 10px;
        position: relative;
        z-index: 2;
    }

    .product-detail__back-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: none;
        background: #F2F2F2;
        border-radius: 50%;
        cursor: pointer;
        flex-shrink: 0;
        transition: background 0.15s, transform 0.1s;
    }

    .product-detail__back-btn:active {
        background: #E0E0E0;
        transform: scale(0.93);
    }

    .product-detail__back-btn svg {
        stroke: #333;
        display: block;
    }

    .product-detail__mobile-title {
        flex: 1;
        font-size: 16px;
        font-weight: 700;
        color: #111;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
    }

    .product-detail__mobile-spacer {
        width: 36px;
        flex-shrink: 0;
    }

    /* ====================================================
       СКРОЛЛ-ОБЛАСТЬ (всё между шапкой и кнопкой)
       ==================================================== */
    .product-detail {
        flex-direction: column !important;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        background: #fff;
    }

    .product-detail::-webkit-scrollbar {
        display: none;
    }

    /* ====================================================
       СЕКЦИЯ ИЗОБРАЖЕНИЯ — полоса от края до края
       ==================================================== */
    .product-detail__image-section {
        flex: 0 0 auto;
        overflow: visible;
        background: #fff;
        border-bottom: 1px solid #F2F2F2;
    }

    .product-detail__image-container {
        width: 100%;
        height: 270px;
        border-radius: 0;
        margin: 0;
        overflow: hidden;
        background: #0a0a0a;
        flex-shrink: 0;
        position: relative;
    }

    .product-detail__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* ====================================================
       БЛОК С НАЗВАНИЕМ, ВЕСОМ, РЕЙТИНГОМ, КБЖУ
       ==================================================== */
    .product-detail__left-info {
        padding: 18px 16px 16px;
        background: #fff;
    }

    .product-detail__title {
        font-size: 22px;
        font-weight: 800;
        color: #111;
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .product-detail__weight {
        font-size: 13px;
        color: #ABABAB;
        margin-bottom: 8px;
        font-weight: 500;
    }

    .product-detail__rating {
        margin-bottom: 16px;
    }

    .product-detail__description {
        font-size: 14px;
        color: #555;
        margin-bottom: 14px;
    }

    /* КБЖУ */
    .product-detail__nutrition {
        border: 1.5px solid #F0F0F0;
        border-radius: 14px;
        overflow: hidden;
        background: #FAFAFA;
        margin-bottom: 0;
    }

    .nutrition-toggle {
        padding: 10px 14px;
        background: #F5F5F5;
        border-bottom: 1px solid #EBEBEB;
    }

    .nutrition-content {
        padding: 10px 12px 12px;
        background: #fff;
    }

    /* ====================================================
       СЕКЦИЯ НАСТРОЕК (состав, нарезка, ингредиенты)
       ==================================================== */
    .product-detail__info-section {
        flex: 0 0 auto;
        border-left: none !important;
        border-top: none;
        background: #fff;
        min-height: 0;
    }

    .product-detail__panel-header {
        display: none;
    }

    .product-detail__scroll {
        overflow-y: visible;
        padding: 0;
    }

    /* Разделитель перед блоком настроек */
    .product-detail__info-section::before {
        content: '';
        display: block;
        height: 8px;
        background: #F4F5F7;
    }

    /* Состав */
    .product-detail__composition {
        padding: 18px 16px;
        border-bottom: 1px solid #F2F2F2;
    }

    /* Нарезка пиццы */
    .pizza-cutting-section {
        padding: 18px 16px;
        border-bottom: 1px solid #F2F2F2;
        margin-bottom: 0;
    }

    .pizza-cutting-section .product-detail__section-title {
        margin-bottom: 14px;
    }

    /* Доп. ингредиенты */
    .product-detail__add-ingredients {
        padding: 18px 16px 20px;
    }

    .product-detail__section-title {
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        color: #888;
        margin-bottom: 12px;
    }

    /* Ингредиенты — 3 колонки, компактные */
    .ingredients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .ingredient-card {
        padding: 6px;
        border-radius: 10px;
        gap: 4px;
    }

    .ingredient-card__image-wrapper {
        min-height: 52px;
        border-radius: 8px;
    }

    .ingredient-card__image {
        width: 80%;
        height: 80%;
    }

    .ingredient-card__name {
        font-size: 11px;
    }

    .ingredient-card__price {
        font-size: 11px;
    }

    .ingredient-card__check {
        width: 20px;
        height: 20px;
        font-size: 10px;
        top: 4px;
        right: 4px;
    }

    .ingredient-quantity-btn {
        width: 22px;
        height: 22px;
        font-size: 13px;
    }

    .ingredient-quantity-value {
        min-width: 20px;
        font-size: 13px;
    }

    /* Нарезка */
    .pizza-cutting-options { gap: 8px; }
    .pizza-cut-btn { padding: 10px 4px 9px; }
    .pizza-cut-btn__icon { width: 50px; height: 50px; }
    .pizza-cut-btn__label { font-size: 11px; }
    .pizza-cut-btn__default { font-size: 9px; padding: 2px 5px; }

    /* Состав — inline теги */
    .composition-item {
        font-size: 14px;
    }

    /* ====================================================
       КНОПКА «В КОРЗИНУ» — ВСЕГДА ПРИЛИПАЕТ К НИЗУ
       ==================================================== */
    .product-detail__footer {
        flex-shrink: 0;
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid #F0F0F0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.07);
    }

    .product-detail__footer .btn-full {
        font-size: 16px;
        font-weight: 700;
        padding: 16px 24px;
        border-radius: 14px;
    }
}

/* Планшеты */
@media (max-width: 1024px) and (min-width: 769px) {
    .product-detail-modal .modal__content {
        max-width: 95%;
        width: 95%;
        max-height: 85vh;
    }

    .product-detail__image-section {
        flex: 1 1 380px;
    }

    .product-detail__info-section {
        flex: 0 1 380px;
    }

    .ingredients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== АДАПТИВНОСТЬ: ДВУХПАНЕЛЬНАЯ КОРЗИНА ===== */
@media (max-width: 768px) {
    .cart-modal .modal__content,
    .cart-modal__content {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        max-height: 100dvh;
        height: 100dvh;
        border-radius: 0;
    }

    .cart-panel-left {
        flex: 1 1 0;
        min-height: 0;
        overflow: hidden;
    }

    .cart-panel-left__header {
        padding: 14px 16px 12px;
    }

    .cart-panel-left__scroll {
        padding: 12px 16px;
    }

    .cart-panel-right {
        flex: 0 0 auto;
        border-left: none;
        border-top: 2px solid #E8E8E8;
        max-height: 52vh;
        overflow: hidden;
    }

    .cart-panel-right__header {
        padding: 14px 16px;
    }

    .cart-panel-right__scroll {
        padding: 10px 16px;
    }

    .cart-panel-right__footer {
        padding: 10px 16px;
    }
}

/* ============================================================
   СТРАНИЦА КОРЗИНЫ — ПОЛНЫЙ РЕДИЗАЙН
   ============================================================ */

/* Базовый контейнер */
.cart-page {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: #F5F6F8;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: none;
}
.cart-page.active { transform: translateX(0); pointer-events: auto; }

/* ---- Топбар ---- */
.cart-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    background: #fff;
    border-bottom: 1.5px solid #EBEBEB;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    flex-shrink: 0;
}
.cart-topbar__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: #F4F4F4;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: background 0.18s;
    flex-shrink: 0;
    white-space: nowrap;
}
.cart-topbar__back:hover { background: #EBEBEB; }
.cart-topbar__back svg { transition: transform 0.2s; }
.cart-topbar__back:hover svg { transform: translateX(-3px); }
.cart-topbar__title {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cart-topbar__title h1 {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    margin: 0;
    letter-spacing: -0.4px;
}
.cart-topbar__count {
    background: #4CAF50;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    line-height: 1.5;
}
.cart-topbar__gap { width: 130px; flex-shrink: 0; }

/* ---- Тело страницы ---- */
.cart-page__body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 0 110px;
}

/* ---- Двухколоночный лэйаут ---- */
.cart-page__layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 24px;
    align-items: start;
}

/* ---- Левая колонка ---- */
.cart-page__col-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---- Правая колонка (sticky) ---- */
.cart-page__col-summary {
    position: sticky;
    top: 0;
}

/* ---- Пустая корзина ---- */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
}
.cart-empty__svg { display: block; margin: 0 auto 24px; }
.cart-empty__title {
    font-size: 22px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 8px;
}
.cart-empty__sub {
    font-size: 15px;
    color: #9E9E9E;
    margin: 0 0 28px;
}

/* ---- Список товаров ---- */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---- Карточка товара ---- */
.cart-item {
    display: flex;
    gap: 14px;
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1.5px solid transparent;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.cart-item:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
    border-color: #E8F5E9;
}
.cart-item__img {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #F5F5F5;
    align-self: flex-start;
}
.cart-item__img--emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: #F0FBF9;
    border: 1.5px solid #B2DFDB;
}
.cart-item__img--prize {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: linear-gradient(135deg, #F8F0FF, #EDE7F6);
    border: 1.5px solid #CE93D8;
    border-radius: 12px;
    flex-shrink: 0;
}
.cart-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.cart-item__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.cart-item__name {
    font-size: 15px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
    line-height: 1.3;
}
.cart-item__del {
    width: 26px;
    height: 26px;
    background: #F5F5F5;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
    color: #9E9E9E;
}
.cart-item__del:hover { background: #FFEBEE; color: #E53935; }
.cart-item__meta {
    font-size: 12px;
    color: #BDBDBD;
    margin: 0;
}
.cart-item__pizza-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #FFF3E0;
    color: #E65100;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    margin-top: 2px;
    align-self: flex-start;
}
.cart-item__customization {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.cart-item__customization .customization-removed {
    font-size: 11px;
    color: #E53935;
    background: #FFEBEE;
    padding: 2px 8px;
    border-radius: 10px;
}
.cart-item__customization .customization-added {
    font-size: 11px;
    color: #2E7D32;
    background: #E8F5E9;
    padding: 2px 8px;
    border-radius: 10px;
}
.cart-item__foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 0;
}
.cart-item__qty {
    display: flex;
    align-items: center;
    background: #4CAF50;
    border-radius: 50px;
    padding: 3px;
    height: 34px;
}
.cart-item__qty-btn {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.15s;
    flex-shrink: 0;
}
.cart-item__qty-btn:hover { background: rgba(255,255,255,0.35); }
.cart-item__qty > span {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    min-width: 26px;
    text-align: center;
}
.cart-item__edit {
    width: 34px;
    height: 34px;
    background: #F5F5F5;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9E9E9E;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.cart-item__edit:hover { background: #E8F5E9; color: #4CAF50; }
.cart-item__price {
    margin-left: auto;
    font-size: 17px;
    font-weight: 800;
    color: #1A1A1A;
    white-space: nowrap;
}

/* ---- Правая панель ---- */
.cart-panel {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ===== СЕКЦИИ ПРАВОЙ ПАНЕЛИ ===== */
.cpanel-section {
    border-bottom: 1.5px solid #F0F0F0;
    padding: 14px 18px;
}
.cpanel-section:last-of-type { border-bottom: none; }

/* Секции с горизонтальной лентой — убираем боковой padding под wrap */
.cpanel-featured .cpanel-featured__wrap,
.cpanel-utensils-sect .cpanel-featured__wrap {
    margin-left: -18px;
    margin-right: -18px;
}

.cpanel-section__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.cpanel-section__icon {
    display: flex;
    align-items: center;
    color: #BDBDBD;
    flex-shrink: 0;
}

.cpanel-section__label {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    color: #8A8A8A;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cpanel-section__action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: #F1FBF1;
    color: #4CAF50;
    border: 1.5px solid #C8E6C9;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    white-space: nowrap;
}
.cpanel-section__action:hover { background: #4CAF50; color: #fff; border-color: #4CAF50; }

/* Доставка */
.cpanel-delivery__value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    padding-left: 26px;
}

/* Оплата (блок после итогов) */
.cpanel-payment {
    padding: 10px 18px 16px;
    border-top: 1.5px solid #F0F0F0;
}
.cpanel-payment__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #8A8A8A;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}
.cpanel-payment__opts {
    display: flex;
    gap: 8px;
}
.cpanel-pay-opt { flex: 1; cursor: pointer; }
.cpanel-pay-opt input { display: none; }
.cpanel-pay-opt__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 11px 6px;
    background: #F8F8F8;
    border: 2px solid #EBEBEB;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    color: #777;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
    text-align: center;
    width: 100%;
}
.cpanel-pay-opt input:checked ~ .cpanel-pay-opt__box {
    border-color: #4CAF50;
    background: #F1FBF1;
    color: #2E7D32;
}
.cpanel-pay-opt__box svg { color: inherit; transition: color 0.18s; }

/* Вкусненькое + Приборы — скролл-лента */
.cpanel-featured__wrap {
    position: relative;
    overflow: hidden;
}
.cpanel-featured__scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 18px 10px;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.cpanel-featured__scroll::-webkit-scrollbar { display: none; }

/* Стрелки — абсолютные оверлеи */
.cpanel-featured__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 3;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.14);
    opacity: 0;
    transition: opacity 0.2s, background 0.15s;
    pointer-events: none;
}
.cpanel-featured__nav--left  { left: 8px; }
.cpanel-featured__nav--right { right: 8px; }

/* При наведении на секцию — все видимые (display:flex) кнопки появляются */
.cpanel-section:hover .cpanel-featured__nav {
    opacity: 1;
    pointer-events: auto;
}
.cpanel-featured__nav:hover {
    background: rgba(255,255,255,0.96);
    color: #4CAF50;
}

/* ---- Unified recommendation card (featured + utensils) ---- */
.cpanel-rp-card {
    flex-shrink: 0;
    width: 108px;
    background: #fff;
    border: 1.5px solid #EBEBEB;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.18s, border-color 0.18s;
}
.cpanel-rp-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    border-color: #C8E6C9;
}
.cpanel-rp-card__img {
    width: 100%;
    height: 88px;
    object-fit: cover;
    background: #F5F5F5;
    display: block;
}
/* Компактная карточка (приборы — без фото) */
.cpanel-rp-card--compact {
    width: 108px;
}
.cpanel-rp-card--compact .cpanel-rp-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px 6px;
    gap: 5px;
}
.cpanel-rp-card__emoji {
    font-size: 30px;
    line-height: 1;
}
.cpanel-rp-card__body {
    padding: 7px 8px 6px;
    flex: 1;
}
.cpanel-rp-card__name {
    font-size: 11.5px;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cpanel-rp-card__foot {
    padding: 0 7px 7px;
}
/* Кнопка добавить */
.cpanel-rp-card__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 8px;
    background: #fff;
    border: 1.5px solid #DEDEDE;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    white-space: nowrap;
}
.cpanel-rp-card__btn:hover {
    border-color: #4CAF50;
    color: #2E7D32;
    background: #F6FBF6;
}
.cpanel-rp-card__btn svg { flex-shrink: 0; }
/* Счётчик */
.cpanel-rp-card__counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #4CAF50;
    border-radius: 9px;
    padding: 3px 4px;
}
.cpanel-rp-card__cnt-btn {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 7px;
    background: rgba(255,255,255,0.22);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
}
.cpanel-rp-card__cnt-btn:hover { background: rgba(255,255,255,0.38); }
.cpanel-rp-card__cnt-num {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    min-width: 20px;
    text-align: center;
}

/* Призы */
.cpanel-prizes__badge {
    background: #9C27B0;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 20px;
    line-height: 1.6;
}
.cpanel-prizes__hint {
    font-size: 11px;
    color: #BDBDBD;
    padding-left: 40px;
    margin-top: -4px;
    margin-bottom: 4px;
}

/* Приборы — используют единый .cpanel-rp-card */

/* Extras (промокод + время) */
.cpanel-extras { padding-top: 4px; }

/* Extras (промокод + время внутри .cpanel-extras) */
.cart-panel .cart-extras {
    padding: 0;
}

/* Приборы */
.cex-utensils {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #F0F0F0;
    cursor: pointer;
    user-select: none;
}
.cex-utensils input[type="checkbox"] { display: none; }
.cex-utensils__check {
    width: 22px;
    height: 22px;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.18s, background 0.18s;
    background: #fff;
}
.cex-utensils input:checked ~ .cex-utensils__check {
    background: #4CAF50;
    border-color: #4CAF50;
}
.cex-utensils__body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}
.cex-utensils__left {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}
.cex-utensils__right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cex-utensils__price { font-size: 13px; font-weight: 600; color: #4CAF50; }

/* Кнопки кол-ва приборов */
.uqb {
    width: 22px;
    height: 22px;
    background: #4CAF50;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}
.uqb:hover { background: #43A047; }

/* Промокод */
.cex-promo { padding: 0 0 12px; border-bottom: 1px solid #F0F0F0; }
.cex-promo__wrap {
    display: flex;
    align-items: center;
    background: #F8F8F8;
    border: 1.5px solid #E8E8E8;
    border-radius: 12px;
    overflow: hidden;
    padding: 0 12px;
    transition: border-color 0.18s;
}
.cex-promo__wrap:focus-within { border-color: #4CAF50; }
.cex-promo__input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 11px 10px;
    font-size: 14px;
    color: #333;
    outline: none;
    min-width: 0;
}
.cex-promo__input::placeholder { color: #BDBDBD; }
.cex-promo__btn {
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s;
    flex-shrink: 0;
}
.cex-promo__btn:hover { background: #43A047; }

/* Время */
.cex-time { padding: 12px 0 0; }
.cex-time__lbl {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}
.cex-time__opts { display: flex; flex-direction: column; gap: 8px; }
.cex-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #444;
}
.cex-radio input { display: none; }
.cex-radio__dot {
    width: 18px;
    height: 18px;
    border: 2px solid #D0D0D0;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.18s;
}
.cex-radio__dot::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #4CAF50;
    opacity: 0;
    transition: opacity 0.18s;
}
.cex-radio input:checked ~ .cex-radio__dot { border-color: #4CAF50; }
.cex-radio input:checked ~ .cex-radio__dot::after { opacity: 1; }
.cex-time__picker input {
    margin-top: 10px;
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #E0E0E0;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    outline: none;
}
.cex-time__picker input:focus { border-color: #4CAF50; }

/* Итоги */
.cart-panel .cart-summary {
    background: #F8FBF8;
    border-top: 1.5px solid #EDF5ED;
    padding: 14px 20px 10px;
}
.cart-panel .cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 4px 0;
    color: #888;
}
.cart-panel .cart-summary__row span:last-child { color: #333; font-weight: 600; }
.cart-panel .cart-summary__discount span:last-child { color: #4CAF50 !important; }
.cart-panel .cart-summary__divider { height: 1px; background: #E0E0E0; margin: 10px 0 8px; }
.cart-panel .cart-summary__total {
    padding: 4px 0 2px !important;
}
.cart-panel .cart-summary__total span:first-child {
    font-size: 15px;
    font-weight: 700;
    color: #111 !important;
}
.cart-panel .cart-summary__total span:last-child {
    font-size: 22px;
    font-weight: 800;
    color: #4CAF50 !important;
    letter-spacing: -0.5px;
}

/* Иконка-подсказка у строки "Доставка" */
.cart-delivery-label {
    display: flex;
    align-items: center;
    gap: 4px;
}
.cart-delivery-hint {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: default;
    color: #aaa;
    flex-shrink: 0;
}
.cart-delivery-hint svg {
    display: block;
    transition: color 0.15s;
}
.cart-delivery-hint:hover svg,
.cart-delivery-hint:focus-within svg {
    color: #4CAF50;
}
.cart-delivery-tooltip {
    display: none;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #1f2937;
    color: #f9fafb;
    border-radius: 10px;
    padding: 9px 13px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    z-index: 300;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    pointer-events: none;
}
.cart-delivery-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #1f2937;
}
.cart-delivery-hint:hover svg,
.cart-delivery-hint:focus svg {
    color: #4CAF50;
}

/* Floating tooltip (position:fixed, создаётся через JS) */
.cart-delivery-float-tip {
    position: fixed;
    background: #1f2937;
    color: #f9fafb;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s, transform 0.15s;
}
.cart-delivery-float-tip.visible {
    opacity: 1;
    transform: translateY(0);
}
.cart-delivery-float-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f2937;
}

/* Кнопка оформить */
.cart-checkout-btn {
    margin: 12px 16px 16px;
    border-radius: 16px;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(76,175,80,0.35);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    width: calc(100% - 32px);
    background: linear-gradient(135deg, #4CAF50, #43A047);
    letter-spacing: 0.2px;
    color: #fff;
    border: none;
    cursor: pointer;
}
.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(76,175,80,0.45);
    background: linear-gradient(135deg, #43A047, #388E3C);
}

/* Заглушка пустой правой панели */
.cart-panel-right__empty-placeholder {
    padding: 40px 20px;
    text-align: center;
    color: #D0D0D0;
}
.cart-panel-right__empty-placeholder svg { margin-bottom: 12px; display: block; margin-left: auto; margin-right: auto; }
.cart-panel-right__empty-placeholder p { font-size: 13px; line-height: 1.6; margin: 0; color: #C8C8C8; }

/* ---- Мобильный фиксированный футер ---- */
.cart-fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    border-top: 1.5px solid #F0F0F0;
}
.cart-fixed-footer__info { display: flex; flex-direction: column; gap: 2px; }
.cart-fixed-footer__info > span:first-child { font-size: 12px; color: #9E9E9E; }
.cart-fixed-footer__total { font-size: 20px; font-weight: 800; color: #1A1A1A; }

/* ---- Адаптив ---- */
@media (max-width: 1100px) {
    .cart-page__layout { grid-template-columns: 1fr 380px; gap: 18px; }
}
@media (max-width: 900px) {
    .cart-page__layout { grid-template-columns: 1fr 320px; gap: 14px; }
}

/* ===============================================================
   МОБИЛЬНАЯ КОРЗИНА — полная перепись с нуля
   =============================================================== */
@media (max-width: 768px) {

    /* ---------- Обёртка страницы ---------- */
    .cart-page {
        background: #F5F6F8;
    }

    /* ---------- Топбар ---------- */
    .cart-topbar {
        display: flex;
        align-items: center;
        height: 56px;
        padding: 0 16px;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid #EBEBEB;
        box-shadow: 0 1px 6px rgba(0,0,0,0.06);
        flex-shrink: 0;
    }
    .cart-topbar__back {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #F5F5F5;
        border: none;
        border-radius: 50%;
        padding: 0;
        cursor: pointer;
        flex-shrink: 0;
        color: #333;
        transition: background 0.15s;
    }
    .cart-topbar__back span { display: none; }
    .cart-topbar__back:hover { background: #EBEBEB; }
    .cart-topbar__title {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
    }
    .cart-topbar__title h1 {
        font-size: 16px;
        font-weight: 700;
        color: #111;
        margin: 0;
        letter-spacing: -0.2px;
        line-height: 1;
    }
    .cart-topbar__count {
        background: #4CAF50;
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        padding: 2px 9px;
        border-radius: 20px;
        line-height: 1.4;
    }
    .cart-topbar__gap {
        width: 40px;
        flex-shrink: 0;
    }

    /* ---------- Тело страницы ---------- */
    .cart-page__body {
        flex: 1;
        overflow-y: auto;
        padding: 14px 0 170px;
        -webkit-overflow-scrolling: touch;
    }

    /* ---------- Одноколоночный лэйаут ---------- */
    .cart-page__layout {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .cart-page__col-items {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 0 14px;
    }
    .cart-page__col-summary {
        position: static;
        padding: 14px 14px 0;
    }

    /* ---------- Пустая корзина ---------- */
    .cart-empty {
        padding: 60px 24px 40px;
    }
    .cart-empty__svg { width: 90px; height: 90px; margin-bottom: 20px; }
    .cart-empty__title { font-size: 18px; }
    .cart-empty__sub { font-size: 14px; }

    /* ================================================================
       КАРТОЧКА ТОВАРА — ПОЛНЫЙ РЕДИЗАЙН
       ================================================================ */
    .cart-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        background: #fff;
        border-radius: 16px;
        padding: 12px;
        border: 1px solid #EFEFEF;
        box-shadow: 0 1px 4px rgba(0,0,0,0.05);
        transition: border-color 0.15s;
        position: relative;
    }
    .cart-item:active {
        border-color: #d0ead0;
    }

    /* Картинка */
    .cart-item__img {
        width: 72px;
        height: 72px;
        min-width: 72px;
        border-radius: 12px;
        object-fit: cover;
        background: #F5F5F5;
        align-self: flex-start;
    }
    .cart-item__img--emoji,
    .cart-item__img--prize {
        width: 72px;
        height: 72px;
        min-width: 72px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32px;
        flex-shrink: 0;
        align-self: flex-start;
    }
    .cart-item__img--emoji {
        background: #F0FBF9;
        border: 1.5px solid #B2DFDB;
    }
    .cart-item__img--prize {
        background: linear-gradient(135deg, #F8F0FF, #EDE7F6);
        border: 1.5px solid #CE93D8;
    }

    /* Правая часть (body) */
    .cart-item__body {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    /* Верхняя строка: название + крестик */
    .cart-item__top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 6px;
        margin-bottom: 2px;
    }
    .cart-item__name {
        font-size: 14px;
        font-weight: 700;
        color: #1A1A1A;
        margin: 0;
        line-height: 1.35;
        word-break: break-word;
    }

    /* Кнопка удалить */
    .cart-item__del {
        flex-shrink: 0;
        width: 26px;
        height: 26px;
        background: #F5F5F5;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #BDBDBD;
        transition: background 0.15s, color 0.15s;
        margin-top: 1px;
    }
    .cart-item__del:active { background: #FFEBEE; color: #E53935; }

    /* Мета (вес, вид) */
    .cart-item__meta {
        font-size: 12px;
        color: #BDBDBD;
        margin: 0 0 4px;
        line-height: 1.3;
    }

    /* Тег пиццы */
    .cart-item__pizza-tag {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: #FFF3E0;
        color: #E65100;
        font-size: 11px;
        font-weight: 600;
        padding: 2px 8px;
        border-radius: 20px;
        margin-bottom: 4px;
        align-self: flex-start;
    }

    /* Кастомизация */
    .cart-item__customization {
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
        margin-bottom: 6px;
    }
    .cart-item__customization .customization-removed {
        font-size: 11px;
        color: #C62828;
        background: #FFEBEE;
        padding: 2px 8px;
        border-radius: 10px;
        font-weight: 600;
    }
    .cart-item__customization .customization-added {
        font-size: 11px;
        color: #2E7D32;
        background: #E8F5E9;
        padding: 2px 8px;
        border-radius: 10px;
        font-weight: 600;
    }

    /* Нижняя строка: количество + редактировать + цена */
    .cart-item__foot {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-top: 6px;
    }

    /* Счётчик */
    .cart-item__qty {
        display: inline-flex;
        align-items: center;
        background: #4CAF50;
        border-radius: 50px;
        padding: 3px 4px;
        height: 36px;
        gap: 0;
    }
    .cart-item__qty-btn {
        width: 30px;
        height: 30px;
        min-width: 30px;
        background: rgba(255,255,255,0.18);
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #fff;
        transition: background 0.12s;
        flex-shrink: 0;
    }
    .cart-item__qty-btn:active { background: rgba(255,255,255,0.38); }
    .cart-item__qty > span {
        font-size: 14px;
        font-weight: 700;
        color: #fff;
        min-width: 24px;
        text-align: center;
    }

    /* Кнопка редактирования */
    .cart-item__edit {
        width: 36px;
        height: 36px;
        min-width: 36px;
        background: #F5F5F5;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #BDBDBD;
        transition: background 0.15s, color 0.15s;
        flex-shrink: 0;
    }
    .cart-item__edit:active { background: #E8F5E9; color: #4CAF50; }

    /* Цена */
    .cart-item__price {
        margin-left: auto;
        font-size: 16px;
        font-weight: 800;
        color: #1A1A1A;
        white-space: nowrap;
        letter-spacing: -0.3px;
    }

    /* ================================================================
       ПРАВАЯ ПАНЕЛЬ (ОФОРМЛЕНИЕ)
       ================================================================ */
    .cart-panel {
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        border: 1px solid #EBEBEB;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    /* Секции */
    .cpanel-section {
        border-bottom: 1px solid #F0F0F0;
        padding: 12px 14px;
    }
    .cpanel-section:last-of-type { border-bottom: none; }
    .cpanel-section__head {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
    }
    .cpanel-section__icon {
        color: #BDBDBD;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
    .cpanel-section__label {
        flex: 1;
        font-size: 11px;
        font-weight: 700;
        color: #BDBDBD;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .cpanel-section__action {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 4px 10px;
        background: #F1FBF1;
        color: #4CAF50;
        border: 1.5px solid #C8E6C9;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .cpanel-section__action:active { background: #4CAF50; color: #fff; border-color: #4CAF50; }

    /* Доставка */
    .cpanel-delivery__value {
        font-size: 13px;
        font-weight: 600;
        color: #333;
        padding-left: 24px;
    }

    /* Горизонтальные ленты */
    .cpanel-featured .cpanel-featured__wrap,
    .cpanel-utensils-sect .cpanel-featured__wrap {
        margin-left: -14px;
        margin-right: -14px;
    }
    .cpanel-featured__wrap { position: relative; overflow: hidden; }
    .cpanel-featured__scroll {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 4px 14px 10px;
        scrollbar-width: none;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    .cpanel-featured__scroll::-webkit-scrollbar { display: none; }
    .cpanel-featured__nav { display: none; }

    /* Карточки рекомендаций */
    .cpanel-rp-card { width: 110px; border-radius: 12px; }
    .cpanel-rp-card__img { height: 80px; }
    .cpanel-rp-card--compact { width: 100px; }

    /* Призы */
    .cpanel-prizes__badge {
        background: #9C27B0;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        padding: 1px 6px;
        border-radius: 20px;
        line-height: 1.6;
    }

    /* Выбор оплаты */
    .cpanel-payment {
        padding: 10px 14px 14px;
        border-top: 1px solid #F0F0F0;
    }
    .cpanel-payment__label {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 11px;
        font-weight: 700;
        color: #BDBDBD;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 10px;
    }
    .cpanel-payment__opts { display: flex; gap: 6px; }
    .cpanel-pay-opt { flex: 1; cursor: pointer; }
    .cpanel-pay-opt input { display: none; }
    .cpanel-pay-opt__box {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 9px 4px;
        background: #F8F8F8;
        border: 2px solid #EBEBEB;
        border-radius: 12px;
        font-size: 10px;
        font-weight: 600;
        color: #999;
        width: 100%;
        text-align: center;
        transition: border-color 0.15s, background 0.15s, color 0.15s;
    }
    .cpanel-pay-opt input:checked ~ .cpanel-pay-opt__box {
        border-color: #4CAF50;
        background: #F1FBF1;
        color: #2E7D32;
    }
    .cpanel-pay-opt__box svg { color: inherit; }

    /* Промокод */
    .cpanel-extras { padding-top: 6px; }
    .cex-promo { padding: 0 0 10px; border-bottom: 1px solid #F0F0F0; }
    .cex-promo__wrap {
        display: flex;
        align-items: center;
        background: #F8F8F8;
        border: 1.5px solid #E8E8E8;
        border-radius: 12px;
        overflow: hidden;
        padding: 0 10px;
        transition: border-color 0.18s;
    }
    .cex-promo__wrap:focus-within { border-color: #4CAF50; }
    .cex-promo__input {
        flex: 1;
        border: none;
        background: transparent;
        padding: 11px 8px;
        font-size: 14px;
        color: #333;
        outline: none;
        min-width: 0;
    }
    .cex-promo__btn {
        background: #4CAF50;
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 6px 14px;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        flex-shrink: 0;
    }

    /* Время */
    .cex-time { padding: 10px 0 0; }
    .cex-time__lbl {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        font-weight: 600;
        color: #555;
        margin-bottom: 8px;
    }
    .cex-time__opts { display: flex; flex-direction: column; gap: 7px; }
    .cex-radio {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        font-size: 13px;
        color: #444;
    }
    .cex-radio input { display: none; }
    .cex-radio__dot {
        width: 18px;
        height: 18px;
        min-width: 18px;
        border: 2px solid #D0D0D0;
        border-radius: 50%;
        position: relative;
        flex-shrink: 0;
        transition: border-color 0.15s;
    }
    .cex-radio__dot::after {
        content: '';
        position: absolute;
        inset: 3px;
        border-radius: 50%;
        background: #4CAF50;
        opacity: 0;
        transition: opacity 0.15s;
    }
    .cex-radio input:checked ~ .cex-radio__dot { border-color: #4CAF50; }
    .cex-radio input:checked ~ .cex-radio__dot::after { opacity: 1; }
    .cex-time__picker input {
        margin-top: 8px;
        width: 100%;
        padding: 9px 12px;
        border: 1.5px solid #E0E0E0;
        border-radius: 10px;
        font-size: 14px;
        color: #333;
        outline: none;
    }

    /* Итоги */
    .cart-panel .cart-summary {
        background: #F8FBF8;
        border-top: 1px solid #EDF5ED;
        padding: 12px 16px 10px;
    }
    .cart-panel .cart-summary__row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
        padding: 3px 0;
        color: #999;
    }
    .cart-panel .cart-summary__row span:last-child { color: #333; font-weight: 600; }
    .cart-panel .cart-summary__discount span:last-child { color: #4CAF50 !important; }
    .cart-panel .cart-summary__divider { height: 1px; background: #E8E8E8; margin: 8px 0; }
    .cart-panel .cart-summary__total { padding: 3px 0 2px !important; }
    .cart-panel .cart-summary__total span:first-child {
        font-size: 14px;
        font-weight: 700;
        color: #111 !important;
    }
    .cart-panel .cart-summary__total span:last-child {
        font-size: 22px;
        font-weight: 800;
        color: #4CAF50 !important;
        letter-spacing: -0.5px;
    }

    /* Кнопка оформить — скрыта в пользу fixed-footer */
    .cart-checkout-btn { display: none !important; }

    /* Заглушка пустой правой панели */
    .cart-panel-right__empty-placeholder {
        padding: 30px 16px;
        text-align: center;
        color: #D0D0D0;
    }
    .cart-panel-right__empty-placeholder svg { margin: 0 auto 10px; display: block; }
    .cart-panel-right__empty-placeholder p { font-size: 13px; color: #C8C8C8; margin: 0; }

    /* ---------- Фиксированный футер НАД mobile-nav ---------- */
    .cart-fixed-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        bottom: 62px;
        left: 0;
        right: 0;
        z-index: 1060;
        background: #fff;
        padding: 12px 16px 14px;
        border-top: 1px solid #EBEBEB;
        box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
        border-radius: 16px 16px 0 0;
    }
    .cart-fixed-footer__info {
        display: flex;
        flex-direction: column;
        gap: 1px;
    }
    .cart-fixed-footer__info > span:first-child {
        font-size: 11px;
        color: #BDBDBD;
        font-weight: 500;
    }
    .cart-fixed-footer__total {
        font-size: 22px;
        font-weight: 800;
        color: #1A1A1A;
        letter-spacing: -0.5px;
        line-height: 1.1;
    }
    .cart-fixed-footer .btn {
        flex-shrink: 0;
        height: 50px;
        min-width: 140px;
        font-size: 15px;
        font-weight: 700;
        border-radius: 14px;
        background: linear-gradient(135deg, #4CAF50, #43A047);
        color: #fff;
        border: none;
        box-shadow: 0 4px 16px rgba(76,175,80,0.35);
    }
    .cart-fixed-footer .btn:active {
        transform: scale(0.97);
        box-shadow: 0 2px 8px rgba(76,175,80,0.3);
    }

}
@media (min-width: 769px) {
    .cart-fixed-footer { display: none !important; }
}

/* ============================================================
   END СТРАНИЦА КОРЗИНЫ
   ============================================================ */

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Мобильный bottom-sheet выбора адреса (#mobileAddrSheet)
   ============================================================ */

.mab-sheet {
    display: none;
}

/* ---- Шит доп. информации о доставке ---- */
#mabExtraSheet {
    position: fixed;
    inset: 0;
    z-index: 10001;
    pointer-events: none;
    visibility: hidden;
}
#mabExtraSheet.active {
    pointer-events: all;
    visibility: visible;
}
#mabExtraSheet .mab-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
#mabExtraSheet.active .mab-overlay {
    opacity: 1;
    pointer-events: all;
}
.mab-panel--extra {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
}
#mabExtraSheet.active .mab-panel--extra {
    transform: translateY(0);
}
.mab-extra-body {
    padding: 0 16px calc(24px + env(safe-area-inset-bottom, 16px));
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mab-extra-addr {
    font-size: 14px;
    color: #555;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 10px 12px;
    line-height: 1.4;
}
.mab-extra-row {
    display: flex;
    gap: 10px;
}
.mab-extra-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.mab-extra-field--full {
    flex: unset;
}
.mab-extra-label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.mab-extra-input {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.18s;
}
.mab-extra-input:focus {
    border-color: #4680C2;
}
.mab-extra-textarea {
    resize: none;
    min-height: 80px;
}
.mab-extra-hint {
    font-size: 11px;
    color: #bbb;
    margin-top: -2px;
}
.mab-extra-save-btn {
    width: 100%;
    background: #e8423a;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}
.mab-extra-save-btn:active {
    opacity: 0.85;
}
.mab-back-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f2f3f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #333;
}

@media (max-width: 768px) {
    .mab-sheet {
        display: block;
        position: fixed;
        inset: 0;
        z-index: -1;           /* скрыт под всем: без оверлея */
        pointer-events: none;
        /* visibility:hidden скрывает, но сохраняет размеры — нужно для preload карты */
        visibility: hidden;
    }
    .mab-sheet.active {
        z-index: 10000;
        pointer-events: all;
        visibility: visible;
    }
    .mab-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
    }
    .mab-sheet.active .mab-overlay {
        opacity: 1;
        pointer-events: all;
    }
    .mab-panel {
        position: absolute;
        inset: 0;
        background: #fff;
        border-radius: 0;
        max-height: 100%;
        display: flex;
        flex-direction: column;
        transform: translateY(100%);
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    }
    .mab-sheet.active .mab-panel {
        transform: translateY(0);
    }

    /* Заголовок */
    .mab-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 16px 10px;
        flex-shrink: 0;
    }
    .mab-city {
        font-size: 18px;
        font-weight: 700;
        color: #e8423a;
    }
    .mab-close {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #f2f3f5;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    /* Вкладки */
    .mab-tabs {
        display: flex;
        padding: 0 16px 12px;
        gap: 8px;
        flex-shrink: 0;
    }
    .mab-tab {
        flex: 1;
        padding: 11px 0;
        border: 1.5px solid #e2e4e8;
        background: #fff;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        color: #888;
        cursor: pointer;
        transition: all 0.15s;
        font-family: inherit;
    }
    .mab-tab:first-child { border-radius: 10px; }
    .mab-tab:last-child  { border-radius: 10px; }
    .mab-tab.active {
        background: #2c3e50;
        color: #fff;
        border-color: #2c3e50;
    }
    .mab-tab.mab-tab--disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    .mab-tab .mab-tab-lock {
        display: inline-flex;
        align-items: center;
        margin-left: 5px;
        vertical-align: middle;
    }

    /* Контентная область */
    .mab-content {
        display: flex;
        flex-direction: column;
        flex: 1;
        overflow: visible; /* не обрезаем выпадающий список suggest */
        min-height: 0;
    }

    /* Поле ввода адреса */
    .mab-addr-wrap {
        position: relative;
        margin: 0 16px 10px;
        border: 1.5px solid #e2e4e8;
        border-radius: 12px;
        display: flex;
        align-items: center;
        padding: 0 12px;
        background: #fff;
        flex-shrink: 0;
    }
    .mab-addr-ico { flex-shrink: 0; }
    .mab-addr-input {
        flex: 1;
        border: none;
        outline: none;
        padding: 14px 8px;
        font-size: 15px;
        font-family: inherit;
        background: transparent;
        color: #1a1a1a;
    }
    .mab-addr-input::placeholder { color: #bbb; }

    /* Кнопка геолокации в поле ввода */
    .mab-geo-btn {
        flex-shrink: 0;
        width: 32px;
        height: 32px;
        border: none;
        background: none;
        color: #bbb;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border-radius: 50%;
        transition: color 0.15s, background 0.15s;
        -webkit-tap-highlight-color: transparent;
    }
    .mab-geo-btn:active,
    .mab-geo-btn.loading {
        color: #e8423a;
        background: rgba(232,66,58,0.08);
    }

    /* Список подсказок адресов */
    .mab-suggest-list {
        display: none;
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 6px 24px rgba(0,0,0,0.14);
        z-index: 20;
        overflow: hidden;
        max-height: 220px;
        overflow-y: auto;
    }
    .mab-suggest-item {
        padding: 13px 14px;
        font-size: 14px;
        color: #1a1a1a;
        cursor: pointer;
        border-bottom: 1px solid #f2f3f5;
    }
    .mab-suggest-item:last-child { border-bottom: none; }
    .mab-suggest-item:active { background: #f7f7f7; }
    .mab-suggest-empty {
        color: #999;
        cursor: default;
        font-style: italic;
    }

    /* Карточка зоны доставки внутри мобильного шита (сверху карты) */
    .dzp--mab {
        top: 10px;
        max-width: calc(100% - 24px);
        width: calc(100% - 24px);
        animation: slideDown 0.22s ease;
    }
    .dzp--mab .dzp__btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    /* ===== Новая карточка зоны доставки ===== */
    .mab-zone-card {
        position: absolute;
        bottom: max(32px, calc(16px + env(safe-area-inset-bottom)));
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 24px);
        max-width: 420px;
        background: #fff;
        border-radius: 16px;
        padding: 14px 16px 12px;
        box-shadow: 0 6px 24px rgba(0,0,0,0.14);
        z-index: 1000;
        animation: slideDown 0.22s ease;
        border: 1.5px solid #e8f5e9;
    }
    .mab-zone-card--error {
        border-color: #ffeaea;
    }

    /* Адрес */
    .mab-zone-addr {
        font-size: 13px;
        font-weight: 600;
        color: #333;
        margin-bottom: 10px;
        line-height: 1.4;
        padding-left: 2px;
    }

    /* Строки параметров */
    .mab-zone-rows {
        display: flex;
        flex-direction: column;
        gap: 7px;
        margin-bottom: 12px;
    }
    .mab-zone-row {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .mab-zone-row__ico {
        flex-shrink: 0;
        width: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #888;
    }
    .mab-zone-row__label {
        font-size: 13px;
        color: #888;
        flex: 1;
    }
    .mab-zone-row__val {
        font-size: 14px;
        font-weight: 700;
        color: #1a1a1a;
        text-align: right;
    }
    .mab-zone-row__val--free {
        color: #2e7d32;
    }
    /* Обёртка значение + подсказка */
    .mab-zone-row__val-wrap {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 1px;
    }
    /* Подсказка «бесплатно от ...» */
    .mab-zone-row__hint {
        font-size: 11px;
        color: #2e7d32;
        font-weight: 500;
        white-space: nowrap;
    }

    /* Ошибка */
    .mab-zone-error {
        font-size: 14px;
        font-weight: 600;
        color: #e8423a;
        margin-bottom: 4px;
        padding-left: 2px;
    }

    /* Кнопка выбора */
    .mab-zone-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 13px 16px;
        background: linear-gradient(135deg, #43a047, #2e7d32);
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        font-family: inherit;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        box-shadow: 0 3px 12px rgba(46,125,50,0.3);
        transition: background 0.15s;
    }
    .mab-zone-btn:active {
        background: linear-gradient(135deg, #2e7d32, #1b5e20);
    }

    /* Кнопка подтверждения */
    .mab-confirm-btn {
        margin: 0 16px 12px;
        padding: 16px;
        border-radius: 14px;
        border: none;
        font-size: 16px;
        font-weight: 700;
        font-family: inherit;
        flex-shrink: 0;
        background: #e2e4e8;
        color: #aaa;
        cursor: default;
        transition: background 0.15s, color 0.15s;
    }
    .mab-confirm-btn:not(:disabled) {
        background: #e8423a;
        color: #fff;
        cursor: pointer;
    }
    .mab-confirm-btn--red {
        background: #e8423a !important;
        color: #fff !important;
        cursor: pointer !important;
    }

    /* Область карты */
    .mab-map-area {
        position: relative;
        flex: 1;
        min-height: 260px;
        overflow: hidden; /* обрезаем только содержимое карты */
    }
    #mabDeliveryMap,
    #mabPickupMap {
        width: 100%;
        height: 100%;
        min-height: 260px;
    }

    /* Скрываем лишние элементы Яндекс.Карт (лого, "В Карты", копирайт) */
    #mabDeliveryMap [class*="copyrights"],
    #mabDeliveryMap [class*="gotoymaps"],
    #mabDeliveryMap [class*="copyright"],
    #mabPickupMap [class*="copyrights"],
    #mabPickupMap [class*="gotoymaps"],
    #mabPickupMap [class*="copyright"] {
        display: none !important;
    }

    /* Баллун над картой (ошибка / зона) */
    .mab-addr-error {
        position: absolute;
        top: 14px;
        left: 50%;
        transform: translateX(-50%);
        background: #e8423a;
        color: #fff;
        border-radius: 22px;
        padding: 9px 20px;
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
        pointer-events: none;
        z-index: 5;
        transition: background 0.2s;
        max-width: 90%;
        text-align: center;
    }

    /* Карточка точки самовывоза (снизу карты) */
    .dzp--mab-pickup {
        top: auto;
        bottom: 10px;
        max-width: calc(100% - 24px);
        width: calc(100% - 24px);
        animation: slideDown 0.22s ease;
    }
    /* Красная кнопка подтверждения */
    .dzp__btn--red {
        background: linear-gradient(135deg, #e8423a, #c0392b);
        box-shadow: 0 3px 10px rgba(232,66,58,0.3);
    }
    .dzp__btn--red:hover {
        background: linear-gradient(135deg, #c0392b, #a93226);
        box-shadow: 0 5px 14px rgba(232,66,58,0.4);
    }
    /* Часы работы внутри карточки */
    .mab-pickup-card-hours {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 13px;
        color: #555;
        margin-bottom: 2px;
    }
    .mab-pickup-card-hours::before {
        content: '🕐';
        font-size: 12px;
    }

    /* Список точек самовывоза */
    .mab-pickup-list {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 10px 16px 14px;
        flex-shrink: 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .mab-pickup-list::-webkit-scrollbar { display: none; }
    .mab-pickup-item {
        flex-shrink: 0;
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 11px 14px;
        border: 1.5px solid #e2e4e8;
        border-radius: 12px;
        background: #fff;
        cursor: pointer;
        min-width: 170px;
        max-width: 230px;
        transition: all 0.15s;
    }
    .mab-pickup-item.active {
        border-color: #e8423a;
        background: #fff5f5;
    }
    .mab-pickup-item__ico {
        flex-shrink: 0;
        color: #bbb;
        margin-top: 1px;
    }
    .mab-pickup-item.active .mab-pickup-item__ico { color: #e8423a; }
    .mab-pickup-item__info { flex: 1; min-width: 0; }
    .mab-pickup-item__addr {
        font-size: 13px;
        font-weight: 600;
        color: #1a1a1a;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 2px;
    }
    .mab-pickup-item.active .mab-pickup-item__addr { color: #e8423a; }
    .mab-pickup-item__hours {
        font-size: 11px;
        color: #999;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ===== Новый дизайн самовывоза: дропдаун + карта ===== */

    /* Обёртка с дропдауном */
    .mab-pickup-selector {
        margin: 0 16px 10px;
        flex-shrink: 0;
        position: relative;
        border: 1.5px solid #e2e4e8;
        border-radius: 14px;
        background: #fff;
        overflow: visible;
    }

    /* Строка-триггер: иконка + текст адреса + стрелка */
    .mab-pickup-sel-trigger {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 14px;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .mab-pickup-sel-text {
        flex: 1;
        font-size: 15px;
        color: #1a1a1a;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mab-pickup-sel-arrow {
        flex-shrink: 0;
        transition: transform 0.2s ease;
    }
    .mab-pickup-sel-arrow.open {
        transform: rotate(180deg);
    }

    /* Выпадающий список точек */
    .mab-pickup-dropdown {
        display: none;
        flex-direction: column;
        border-top: 1.5px solid #e2e4e8;
        border-radius: 0 0 12px 12px;
        overflow: hidden;
        background: #fff;
    }
    .mab-pickup-dropdown.open {
        display: flex;
    }

    /* Элементы списка внутри дропдауна — вертикальные, полная ширина */
    .mab-pickup-dropdown .mab-pickup-item {
        min-width: 0;
        max-width: none;
        border: none;
        border-bottom: 1px solid #f0f2f5;
        border-radius: 0;
        flex-shrink: 0;
    }
    .mab-pickup-dropdown .mab-pickup-item:last-child {
        border-bottom: none;
    }
    .mab-pickup-dropdown .mab-pickup-item.active {
        background: #fff5f5;
    }

    /* Кнопка «Заберу отсюда» (из дропдауна) */
    .mab-pickup-confirm-btn {
        display: block;
        width: calc(100% - 32px);
        margin: 0 16px 10px;
        flex-shrink: 0;
        padding: 15px 16px;
        background: linear-gradient(135deg, #e8423a, #c0392b);
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        font-family: inherit;
        border: none;
        border-radius: 14px;
        cursor: pointer;
        text-align: center;
        box-shadow: 0 3px 12px rgba(232,66,58,0.3);
        transition: background 0.15s, box-shadow 0.15s;
    }
    .mab-pickup-confirm-btn:active {
        background: linear-gradient(135deg, #c0392b, #a93226);
        box-shadow: 0 2px 8px rgba(232,66,58,0.25);
    }

    /* Попап-карточка на карте при клике на маркер */
    .mab-pickup-map-popup {
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 24px);
        max-width: 380px;
        background: #fff;
        border-radius: 14px;
        padding: 14px 16px 12px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        z-index: 1000;
        animation: slideDown 0.22s ease;
        pointer-events: auto;
    }
    .mab-pickup-map-popup__addr {
        font-size: 14px;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .mab-pickup-map-popup__addr::before {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        background: #e8423a;
        border-radius: 50%;
        flex-shrink: 0;
    }
    .mab-pickup-map-popup__hours {
        font-size: 12px;
        color: #888;
        margin-bottom: 10px;
        padding-left: 14px;
    }
    .mab-pickup-map-popup__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        width: 100%;
        padding: 12px 16px;
        background: linear-gradient(135deg, #e8423a, #c0392b);
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        font-family: inherit;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        box-shadow: 0 3px 10px rgba(232,66,58,0.3);
        transition: background 0.15s;
    }
    .mab-pickup-map-popup__btn:active {
        background: linear-gradient(135deg, #c0392b, #a93226);
    }
}
