/* Общие стили */
:root {
    --primary-color: #E85A1A;   /* было #4CAF50 (зелёный) */
    --primary-hover: #D24F12;   /* было #45a049 */
    --secondary-color: #4ECDC4;
    --text-dark: #241C14;       /* тёплый тёмный вместо холодного синего */
    --text-light: #8A8478;      /* тёплый серый */
    --bg-white: #FFFFFF;
    --bg-gray: #F7F2EA;         /* тёплый фон */
    --border-color: #ECE5D8;    /* тёплая граница */
    --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;
    /* ===== НОВЫЕ ТОКЕНЫ (редизайн) ===== */
    --brand: #E85A1A; --brand-700: #B8400E; --brand-soft: #FDEDE2;
    --espresso: #2A211A;            /* активные категории (вариант B) */
    --cream: #FAF6EE; --cream-line: #EFE6D6;
    --hot: #E8423A;                 /* остро / скидка */
    --gold: #F5A623;                /* коины / за баллы */
    --new: #2E9E5B;                 /* бейдж новинка */
    --case: #6B3FA0; --case-700: #4A2A7A;  /* кейсы */
    --font-display: 'Unbounded', sans-serif;
    --font-ui: 'Onest', sans-serif;
}

* {
    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, #E85A1A 0%, #D24F12 50%, #B8400E 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: 128px;
    height: 128px;
    margin: 0 auto 1.5rem;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 28px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.22);
    animation: gentleFloat 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    padding: 4px;
}

.loader__logo svg,
.loader__logo img {
    width: 116px;
    height: 116px;
    object-fit: contain;
    border-radius: 22px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
    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 .container {
    padding-left: 12px;
}

@media (max-width: 768px) {
    .header .container {
        padding-left: 12px;
    }
}

.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;
    margin-left: 0;
    outline: none;
}

.header__logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
}

.header__logo-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
}

/* Кнопка «Войти» рядом с лого — только мобилка, только для гостей */
.header-mobile-login {
    display: none; /* скрыта на десктопе и управляется JS */
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 36px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.header-mobile-login:active {
    background: var(--primary-hover);
    transform: scale(0.95);
}
@media (max-width: 768px) {
    .header-mobile-login {
        display: flex;
        margin-right: 0;
    }
    /* скрываем при авторизации — JS добавляет класс body.user-logged-in */
    body.user-logged-in .header-mobile-login {
        display: none !important;
    }
    .header .container {
        padding-right: 10px;
    }
}

.logo-icon {
    height: 40px;
    width: auto;
    max-width: 180px;
    flex-shrink: 0;
    object-fit: contain;
}

.logo-texts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    height: 64px;
    line-height: 1;
}

.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: 30px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo-pizza {
    font-family: 'Oswald', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #ff8000;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo-texts {
    display: flex;
    flex-direction: row;
    align-items: center;
    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;
}

/* ---------- Пилюля авторизованного пользователя ---------- */
.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 5px;
    height: 44px;
    background: #fff;
    border: 1.5px solid #EBEBEB;
    border-radius: 22px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    max-width: 210px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.user-pill:hover {
    border-color: #D0CEC9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.user-pill__avatar {
    width: 34px;
    min-width: 34px;
    max-width: 34px;
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E85A1A 0%, #c94400 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.user-pill__text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    text-align: left;
    min-width: 0;
}

.user-pill__name {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.user-pill__balance {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #999;
    font-weight: 500;
    white-space: nowrap;
}

.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: 4px;
}

.cart-dropdown__item-cust {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 5px;
    cursor: pointer;
    user-select: none;
}

.cdi-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.cdi-chevron {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.cdi-detail {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0 2px;
}

.cdi-detail.open {
    display: flex;
}

.cdi-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #555;
}

.cdi-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cdi-dot--rm { background: #C62828; }
.cdi-dot--add { background: #B8400E; }
.cdi-row--rm { color: #C62828; }
.cdi-row--add { color: #B8400E; }

.cart-dropdown__item-cust:has(.cdi-detail.open) .cdi-chevron {
    transform: rotate(180deg);
}

.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: #E85A1A; }
.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: #D24F12;
    border-color: #D24F12;
    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 - env(safe-area-inset-bottom, 0px));  /* оставляем место для нижнего меню + safe area */
        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 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    background: #f0f0f0;
    border: none;
    color: #5a5a5a;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .18s, color .18s;
    outline: none;
}

.subcategory-btn:hover {
    background: #e4e4e4;
    color: var(--text-dark);
}

.subcategory-btn.active {
    background: #2A211A;
    color: #fff;
    box-shadow: 0 2px 8px rgba(44,62,80,.25);
    font-weight: 600;
}

/* Основной контент */
.main {
    padding-top: 0;
}

/* === Дизайн: серая hero-зона (инфо-бар + шапка + сторис) → белый контент === */
@media (min-width: 769px) {
    body {
        background-color: #f0f0f0;
    }

    .stories-section {
        background: #fff !important;
        padding: 12px 0 40px !important;
    }

    .main {
        background: #fff;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -4px 32px rgba(0,0,0,0.10);
        overflow: visible;
        margin-top: -24px;
        position: relative;
        z-index: 1;
    }

    /* Шапка категорий внутри main */
    .categories-nav {
        border-radius: 24px 24px 0 0;
    }
}

/* === Верхняя инфо-строка (только ПК) === */
.top-info-bar {
    display: none;
}

@media (min-width: 769px) {
    .top-info-bar {
        display: flex;
        align-items: center;
        background: #fff;
        height: 36px;
        position: relative;
        z-index: 102;
    }
}

.top-info-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.top-info-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: rgba(26,26,26,0.1);
}

.top-info-bar__links {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    margin-left: -10px;
}

.top-info-bar__link {
    color: #939393;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    padding: 3px 10px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.top-info-bar__link:hover {
    color: #1a1a1a;
}

.top-info-bar__phone {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: -0.3px;
    transition: color 0.15s;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.top-info-bar__phone:hover {
    color: #555;
}

/* Закрепленная навигация категорий */
.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: #2A211A;
    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: #2A211A;
    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: #2A211A;
    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 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    background: #f0f0f0;
    border: none;
    color: #5a5a5a;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .18s, color .18s;
}

.subcategory-btn:hover {
    background: #e4e4e4;
    color: var(--text-dark);
}

.subcategory-btn.active {
    background: #2A211A;
    color: #fff;
    box-shadow: 0 2px 8px rgba(44,62,80,.25);
    font-weight: 600;
    color: white;
    border-color: #2A211A;
}

/* Сетка товаров */
.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;
    position: relative;
}

/* Бесплатная карточка — без обводки */
.cases-section__card--free {
}

.cases-section__btn {
    background: linear-gradient(135deg, #FFA000, #FF6F00) !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.cases-section__btn:hover {
    background: linear-gradient(135deg, #FFB300, #F57C00) !important;
}

/* Зелёная кнопка для бесплатного */
.cases-section__btn--free {
    background: linear-gradient(135deg, #1e8449, #27ae60) !important;
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.35) !important;
}
.cases-section__btn--free:hover {
    background: linear-gradient(135deg, #196f3d, #1e8449) !important;
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.5) !important;
}

/* Кнопка доступного бесплатного кейса — пульсация */
.cases-section__btn--ready {
    background: linear-gradient(135deg, #1e8449, #27ae60) !important;
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.4) !important;
    animation: cases-btn-pulse 2s ease-in-out infinite;
    will-change: box-shadow;
}
.cases-section__btn--ready:hover {
    background: linear-gradient(135deg, #196f3d, #1e8449) !important;
    animation: none;
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.65) !important;
}
@keyframes cases-btn-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3); }
    50% { box-shadow: 0 2px 22px rgba(39, 174, 96, 0.75); }
}

/* Серая кнопка таймера кулдауна */
.cases-section__btn--cd {
    background: linear-gradient(135deg, #ffb74d, #fb8c00) !important;
    color: #fff !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    font-size: 13px !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.cases-section__btn--cd:hover {
    background: linear-gradient(135deg, #ffb74d, #fb8c00) !important;
    transform: none !important;
}

.cases-section__btn--cd .case-cd-text,
.cases-section__btn--cd .case-cd-val {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.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, 960px);
    width: 95vw;
    height: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    background: #f7f8fa;
}

/* Шапка модала — такая же как у мобилки */
#deliveryModal .modal__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

#deliveryModal .modal__close {
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ebebeb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

#deliveryModal .modal__close svg {
    width: 16px;
    height: 16px;
}

/* Заголовок */
#deliveryModal .modal__title {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    padding: 16px 20px 0;
    margin: 0;
}

/* Мобильный вид: 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);
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        background: #f7f8fa;
    }

    @keyframes deliverySheetUp {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }

    /* Ручка-драгер сверху */
    #deliveryModal .modal__content::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
        margin: 10px auto 0;
        flex-shrink: 0;
    }

    /* Заголовок */
    #deliveryModal .modal__title {
        font-size: 17px;
        font-weight: 700;
        text-align: center;
        padding: 12px 48px 0;
        margin: 0;
        color: #111;
        flex-shrink: 0;
    }

    /* Кнопка закрытия */
    #deliveryModal .modal__close {
        position: absolute;
        top: 10px;
        right: 14px;
        width: 32px;
        height: 32px;
        background: #ebebeb;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        color: #555;
    }

    #deliveryModal .modal__close svg {
        width: 16px;
        height: 16px;
    }

    /* Скроллируемое тело */
    #deliveryModal .delivery-content {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 16px 16px;
        min-height: 0;
    }

    /* Табы — компактный переключатель-пилюля */
    #deliveryModal .delivery-tabs {
        display: flex;
        gap: 0;
        margin: 14px 16px 16px;
        background: #ebebeb;
        border-radius: 12px;
        padding: 4px;
        flex-shrink: 0;
    }

    #deliveryModal .delivery-tab {
        flex: 1;
        padding: 9px 8px;
        border: none;
        background: transparent;
        border-radius: 9px;
        font-size: 14px;
        font-weight: 600;
        color: #666;
        gap: 6px;
        transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    }

    #deliveryModal .delivery-tab svg {
        width: 18px;
        height: 18px;
    }

    #deliveryModal .delivery-tab.active {
        background: #fff;
        color: var(--primary-color);
        box-shadow: 0 1px 6px rgba(0,0,0,0.12);
        border: none;
    }

    #deliveryModal .delivery-tab:hover:not(.active):not(.disabled) {
        background: rgba(255,255,255,0.5);
        color: #333;
        border: none;
    }

    /* Шаги — компактнее */
    #deliveryModal .step-header {
        margin-bottom: 10px;
    }

    #deliveryModal .step-number {
        width: 22px;
        height: 22px;
        font-size: 12px;
        flex-shrink: 0;
    }

    #deliveryModal .step-header h4 {
        font-size: 14px;
    }

    #deliveryModal .delivery-step {
        margin-bottom: 14px;
    }

    /* Инпуты */
    #deliveryModal .form-group {
        margin-bottom: 10px;
    }

    #deliveryModal .form-input,
    #deliveryModal .form-textarea {
        border-radius: 10px;
        padding: 10px 12px;
        font-size: 15px;
        background: #fff;
        border: 1.5px solid #e5e7eb;
    }

    #deliveryModal .form-input:focus,
    #deliveryModal .form-textarea:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(39,174,96,0.1);
    }

    #deliveryModal label {
        font-size: 12px;
        font-weight: 600;
        color: #888;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    #deliveryModal label svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    /* Кнопка подтверждения */
    #deliveryModal .btn-full {
        border-radius: 14px;
        padding: 14px;
        font-size: 15px;
        margin-top: 6px;
    }

    /* Карту скрываем */
    #deliveryModal .delivery-map-column {
        display: none;
    }

    #deliveryModal .delivery-two-column {
        grid-template-columns: 1fr;
        height: auto;
    }

    #deliveryModal .delivery-form-column {
        max-height: none;
        overflow-y: visible;
    }
}

@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;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 20;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.product-detail-modal .modal__close:hover {
    background: #fff;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-detail-modal .modal__close svg {
    stroke: #333;
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.product-detail-modal .modal__close:hover svg {
    stroke: #FF5252;
}

.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;
}

/* Вкладки доставки */
/* ── Segmented tabs — как на мобилке ── */
.delivery-tabs {
    display: flex;
    padding: 12px 20px 0;
    margin-bottom: 0;
    flex-shrink: 0;
}

.delivery-tabs-inner-wrap {
    display: flex;
    flex: 1;
    background: #ebebeb;
    border-radius: 12px;
    padding: 4px;
    gap: 0;
}

.delivery-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 9px 8px;
    border: none;
    background: transparent;
    border-radius: 9px;
    cursor: pointer;
    transition: background .2s, color .2s, box-shadow .2s;
    font-weight: 600;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    font-family: inherit;
}

.delivery-tab svg { width: 16px; height: 16px; flex-shrink: 0; }

.delivery-tab:hover:not(.active):not(.disabled) {
    color: #333;
}

.delivery-tab.active {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 1px 6px rgba(0,0,0,0.12);
}

.delivery-tab.disabled {
    opacity: 0.45;
    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-form-column .form-input {
    height: 48px;
    border-radius: 14px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    padding: 0 14px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color .18s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    width: 100%;
    box-sizing: border-box;
}

.delivery-form-column .form-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.delivery-form-column .form-group {
    margin-bottom: 10px;
}

.delivery-form-column label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 5px;
    display: block;
}

.delivery-form-column .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.delivery-form-column .confirm-from-list-btn,
.delivery-form-column .btn-primary.btn-full {
    height: 50px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    margin-top: 12px;
}

.delivery-form-column .add-address-btn {
    border-radius: 12px;
    border: 1.5px dashed #d1d5db;
    background: transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 14px;
    cursor: pointer;
    transition: border-color .15s, color .15s;
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.delivery-form-column .add-address-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Сохранённые адреса */
.delivery-form-column .saved-addresses-section {
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    padding: 0;
    overflow: hidden;
    margin-bottom: 10px;
}

.delivery-form-column .saved-address-item {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
}

.delivery-form-column .saved-address-item:last-child {
    border-bottom: none;
}

.delivery-form-column .saved-addresses-header {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.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: 0;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
}

/* Форма — первая (левая) */
.delivery-form-column {
    order: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: visible;
    padding: 14px 20px 20px;
    background: #f7f8fa;
    border-radius: 0 0 0 24px;
}

/* Карта — вторая (правая) */
.delivery-map-column {
    order: 2;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 0 24px 24px 0;
    margin: 12px 12px 12px 0;
    border-radius: 16px;
}

/* Карта доставки заполняет всю высоту колонки */
#deliveryModal .map-container-full,
#deliveryModal .delivery-map-column .map-container-full {
    flex: 1;
    min-height: 0;
    height: 100%;
    position: relative;
}

/* Явная высота для карт */
#deliveryMap, #pickupMap {
    min-height: 400px;
    height: 100%;
}

/* Пин по центру карты */
.delivery-map-column::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -100%);
    width: 24px;
    height: 34px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 34' fill='none'%3E%3Cellipse cx='12' cy='32' rx='6' ry='2' fill='rgba(0,0,0,0.15)'/%3E%3Cpath d='M12 1C7.03 1 3 5.03 3 10c0 7 9 21 9 21s9-14 9-21c0-4.97-4.03-9-9-9z' fill='%234CAF50' stroke='%23fff' stroke-width='1.5'/%3E%3Ccircle cx='12' cy='10' r='3.5' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat;
    pointer-events: none;
    z-index: 100;
}

/* ===== СОХРАНЁННЫЕ АДРЕСА ===== */
.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, #E85A1A);
    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, #E85A1A);
    background: var(--primary-color, #E85A1A);
    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, #E85A1A);
}

.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, #E85A1A);
    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, #E85A1A);
}

/* Подтвердить из списка */
.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, #E85A1A);
    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, #E85A1A); background: #f0faf0; }
.saved-address-chip.active { border-color: var(--primary-color, #E85A1A); 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: #2A211A;
}

.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, #E85A1A, #D24F12);
    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: #2A211A;
}

.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, #E85A1A, #D24F12);
    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: #2A211A;
}

.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: #B8400E;
    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: 400px;
    overflow: hidden;
    padding: 28px 24px 24px;
}

.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) {
    #authModal {
        padding: 24px 20px;
        align-items: center;
        justify-content: center;
    }
    .modal__content--auth {
        width: 100% !important;
        max-width: 420px !important;
        max-height: fit-content !important;
        margin: 0 auto !important;
        border-radius: 20px !important;
        padding: 28px 20px 24px !important;
        box-shadow: 0 8px 40px rgba(0,0,0,0.25) !important;
    }
}

.auth-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.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);
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: auto;
    caret-color: transparent;
    user-select: none;
}

.auth-phone__input:focus {
    outline: none;
    border-color: var(--border-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 {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-privacy__link:hover {
    text-decoration: underline;
}

/* =============================================
   Модалы: Политика и Оферта
   ============================================= */
.legal-modal__content {
    max-width: 720px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.legal-modal__body {
    padding: 40px 48px;
    overflow-y: auto;
    max-height: 80vh;
    scrollbar-width: thin;
    scrollbar-color: #D0D0D0 transparent;
}

.legal-modal__body::-webkit-scrollbar { width: 5px; }
.legal-modal__body::-webkit-scrollbar-track { background: transparent; }
.legal-modal__body::-webkit-scrollbar-thumb { background: #D0D0D0; border-radius: 10px; }

.legal-modal__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px;
    padding-right: 36px;
}

.legal-modal__date {
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 28px;
}

.legal-modal__body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 24px 0 8px;
}

.legal-modal__body p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary, #555);
    margin: 0 0 10px;
}

.legal-modal__body ul {
    padding-left: 20px;
    margin: 0 0 10px;
}

.legal-modal__body ul li {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary, #555);
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .legal-modal__content {
        max-height: calc(100dvh - 40px);
        margin: 20px 12px !important;
        width: calc(100% - 24px) !important;
        border-radius: 20px;
    }

    .legal-modal__body {
        padding: 28px 20px 32px;
        max-height: calc(100dvh - 100px);
    }

    .legal-modal__title {
        font-size: 18px;
    }
}

/* Проверка кода 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;
    flex-direction: column;
    gap: 4px;
    margin: 4px 0 0;
    font-size: 11px;
    cursor: pointer;
    user-select: none;
}

.cust-summary {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.cust-chips {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.cust-chevron {
    color: #9e9e9e;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 2px;
}

.cart-item__customization.open .cust-chevron {
    transform: rotate(180deg);
}

.cust-detail {
    display: none;
    flex-direction: column;
    gap: 3px;
    padding: 6px 8px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 11px;
    color: #555;
    line-height: 1.5;
}

.cart-item__customization.open .cust-detail {
    display: flex;
}

.cust-detail__group {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.cust-detail__label {
    font-weight: 700;
    white-space: nowrap;
}

.cust-detail__label--rm  { color: #C62828; }
.cust-detail__label--add { color: #B8400E; }

.cart-item__customization span {
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 600;
}

.customization-removed {
    background: #FFEBEE !important;
    color: #C62828 !important;
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 11px;
    display: inline-block !important;
}

.customization-added {
    background: #E8F5E9 !important;
    color: #B8400E !important;
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 11px;
    display: inline-block !important;
}

.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: #E85A1A;
    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: #E85A1A;
    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: #D24F12;
    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: #E85A1A;
}

.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;
    object-fit: contain;
    display: block;
}

.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, #E85A1A, #B8400E);
    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: #C2410C;
    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: #2A211A;
}

.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;
    }
    
    /* Добавляем отступ снизу для контента (70px меню + safe area) */
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }

    /* ---- Кейсы на мобильном ---- */
    .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: 50%;
        right: auto;
        top: 108px;
        bottom: auto;
        transform: translateX(-50%);
        max-width: 70vw;
        width: max-content;
        align-items: center;
        gap: 8px;
        pointer-events: none;
    }

    .notification {
        padding: 9px 14px 9px 10px;
        border-radius: 50px;
        background: rgba(24, 24, 24, 0.88);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 4px 18px rgba(0,0,0,0.28);
        border-left: none !important;
        gap: 7px;
        white-space: nowrap;
        pointer-events: auto;
    }

    .notification--success .notification__icon svg path { fill: #4CD964; }
    .notification--error   .notification__icon svg path { fill: #FF453A; }
    .notification--warning .notification__icon svg path { fill: #FFD60A; }

    .notification__icon {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .notification__message {
        font-size: 13px;
        font-weight: 500;
        color: #fff;
        line-height: 1;
    }

    @keyframes notificationSlideIn {
        from { opacity: 0; transform: translateY(-14px) scale(0.94); }
        to   { opacity: 1; transform: translateY(0)     scale(1);    }
    }
    
    .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: 38px;
    }
    
    .logo-icon {
        height: 34px;
        width: auto;
        max-width: 180px;
    }
    
    .logo-sushi, .logo-pizza {
        font-size: 15px;
        letter-spacing: 2px;
    }
    
    .header__logo span {
        font-size: 26px;
    }

    .header__logo-text {
        font-size: 15px;
    }
    
    .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 {
        height: 36px;
        font-size: 16px;
    }
    
    .logo-icon {
        height: 32px;
        width: auto;
        max-width: 160px;
    }
    
    .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;
        height: 46px;
    }

    .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: 0 0 16px 0;
    background: var(--bg-white);
    margin-bottom: 0;
}

.stories-wrap {
    position: relative;
    overflow: visible;
}

/* Стрелки навигации сторис */
.stories-arrow {
    position: absolute;
    top: 50%;
    z-index: 20;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1a1a1a;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 0;
    pointer-events: none;
    padding: 0;
}

/* Показываем стрелки только при наведении на область сторис */
.stories-wrap:hover .stories-arrow:not(.stories-arrow--hidden) {
    opacity: 1;
    pointer-events: auto;
}

.stories-arrow--left {
    left: 0;
    transform: translate(-50%, -50%);
}

.stories-arrow--right {
    right: 0;
    transform: translate(50%, -50%);
}

.stories-arrow--hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

.stories-wrap:hover .stories-arrow--left:not(.stories-arrow--hidden):hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.08);
    background: #f8f8f8;
}

.stories-wrap:hover .stories-arrow--right:not(.stories-arrow--hidden):hover {
    transform: translate(50%, -50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.08);
    background: #f8f8f8;
}

.stories-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stories-container::-webkit-scrollbar {
    display: none;
}

.stories-track {
    display: flex;
    gap: 16px;
    padding: 4px 0;
}

.story-item {
    flex-shrink: 0;
    /* 5 карточек + 4 зазора 16px в ширине 1160px: (1160−64)/5 = 219.2px */
    width: 219px;
    height: 307px;
    cursor: pointer;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, filter 0.2s ease;
    z-index: 1;
}

.story-item:hover {
    filter: brightness(1.10);
    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: 100px;
    left: 0;
    right: 0;
    padding: 20px;
    color: white;
    text-align: center;
}

.story-viewer__btn-wrap {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.story-viewer__btn {
    display: inline-block;
    background: #fff;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: transform 0.15s, box-shadow 0.15s;
}

.story-viewer__btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 28px rgba(0,0,0,0.35);
}

.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__close {
        top: max(20px, env(safe-area-inset-top, 20px));
        right: 16px;
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.6);
    }
    
    .story-viewer__nav {
        width: 40px;
        height: 40px;
    }
    
    .story-viewer__prev {
        left: 10px;
    }
    
    /* Адаптация сторис под мобильные */
    .stories-section {
        padding: 15px 0;
    }

    .stories-arrow {
        display: none !important;
    }
    
    .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 #E85A1A;
    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 #E85A1A;
    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: #B8400E;
}

@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: #E85A1A;
}

.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: #B8400E;
    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: #E85A1A;
    margin-top: 1px;
    flex-shrink: 0;
}

.dzp__card--error .dzp__address svg {
    color: #EF5350;
}

/* Название зоны */
.dzp__zone {
    font-size: 12px;
    font-weight: 700;
    color: #B8400E;
    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, #E85A1A, #D24F12);
    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, #D24F12, #C2410C);
    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: #E85A1A; box-shadow: 0 0 0 3px rgba(76,175,80,0.2); }
    50% { border-color: #B8400E; 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, #E85A1A, #D24F12);
    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: #E85A1A;
    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: #E85A1A;
    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: #D24F12;
}

/* Пустая корзина */
.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: #E85A1A;
    border-color: #E85A1A;
}

.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: #E85A1A;
    box-shadow: none;
}

.cart-promo__input::placeholder {
    text-transform: none;
    color: #BDBDBD;
    font-weight: 400;
}

.cart-promo__btn {
    padding: 11px 16px;
    background: #E85A1A;
    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: #D24F12;
    transform: none;
    box-shadow: none;
}

.cart-promo__btn:active {
    background: #C2410C;
    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: #B8400E;
    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, #E85A1A, #D24F12);
    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: #2A211A;
}

.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, #E85A1A, #D24F12);
    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;
    border-radius: 20px 0 0 20px;
    overflow: hidden;
}

.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: #E85A1A;
}

.composition-item.removed {
    opacity: 0.5;
    text-decoration: line-through;
    text-decoration-color: #E85A1A;
    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: #E85A1A;
}

.composition-item.removed .composition-item__remove:hover {
    background: #D24F12;
}

.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: #2A211A;
    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: #E85A1A;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.2);
}

.ingredient-card.selected {
    background: #E8F5E9;
    border-color: #E85A1A;
    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: #E85A1A;
    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;
    margin-top: auto;
}

.ingredient-card.selected .ingredient-card__quantity {
    display: flex;
}

.ingredient-quantity-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #E85A1A;
    background: white;
    color: #E85A1A;
    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: #E85A1A;
    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;
    flex: 1;
    min-height: 0;
}

.ingredient-card__name {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.ingredient-card__weight {
    font-size: 11px;
    color: #9e9e9e;
    margin: 1px 0 0;
}

.ingredient-card__price {
    font-size: 12px;
    font-weight: 700;
    color: #E85A1A;
    margin: 0;
}

.ingredient-card.selected .ingredient-card__price {
    color: #D24F12;
}

/* Футер с кнопкой */
.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, #E85A1A 0%, #D24F12 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, #D24F12 0%, #C2410C 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;
        /* Вычитаем высоту нава + safe area (полоса домой на iPhone) */
        height: calc(100dvh - 62px - env(safe-area-inset-bottom, 0px)) !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 0 24px;
        max-height: none;
        background: #F4F5F7;
    }

    #profileModal .modal__body::-webkit-scrollbar {
        display: none;
    }

    /* ================================================================
       ГЕРОЙ-СЕКЦИЯ: зелёный градиент, аватар, имя, коины
       ================================================================ */
    #profileModal .profile-info {
        background: linear-gradient(160deg, #E85A1A 0%, #B8400E 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: #E85A1A;
    }

    .profile-tab-btn.active::after {
        content: '';
        position: absolute;
        bottom: -1.5px;
        left: 20%;
        width: 60%;
        height: 2.5px;
        background: #E85A1A;
        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: #B8400E;
    }

    #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: #E85A1A;
    }

    #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;
        min-height: 194px;
    }

    .ingredient-card__image-wrapper {
        min-height: 52px;
        border-radius: 8px;
    }

    .ingredient-card__image {
        width: 80%;
        height: 80%;
    }

    .ingredient-card__name {
        font-size: 11px;
        min-height: 2.4em;
    }

    .ingredient-card__price {
        font-size: 11px;
    }

    .ingredient-card__quantity {
        gap: 6px;
    }

    .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: #E85A1A;
    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 — стили перенесены в основной блок выше */
.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: #E85A1A;
    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: #E85A1A; }
.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: #E85A1A;
    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: #E85A1A; color: #fff; border-color: #E85A1A; }

/* Доставка */
.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: #E85A1A;
    background: #F1FBF1;
    color: #B8400E;
}
.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: #E85A1A;
}

/* ---- 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: #E85A1A;
    color: #B8400E;
    background: #F6FBF6;
}
.cpanel-rp-card__btn svg { flex-shrink: 0; }
/* Счётчик */
.cpanel-rp-card__counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #E85A1A;
    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: #E85A1A;
    border-color: #E85A1A;
}
.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: #E85A1A; }

/* Кнопки кол-ва приборов */
.uqb {
    width: 22px;
    height: 22px;
    background: #E85A1A;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}
.uqb:hover { background: #D24F12; }

/* Промокод */
.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: #E85A1A; }
.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: #E85A1A;
    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: #D24F12; }

/* Время */
.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: #E85A1A;
    opacity: 0;
    transition: opacity 0.18s;
}
.cex-radio input:checked ~ .cex-radio__dot { border-color: #E85A1A; }
.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: #E85A1A; }

/* Итоги */
.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: #E85A1A !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: #E85A1A !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: #E85A1A;
}
.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: #E85A1A;
}

/* 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, #E85A1A, #D24F12);
    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, #D24F12, #C2410C);
}

/* Заглушка пустой правой панели */
.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: #E85A1A;
        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;
        flex-direction: column;
        gap: 4px;
        margin: 4px 0 6px;
        cursor: pointer;
    }
    .cust-summary {
        display: flex;
        align-items: center;
        gap: 5px;
        flex-wrap: wrap;
    }
    .cust-detail {
        display: none;
        flex-direction: column;
        gap: 3px;
        padding: 6px 8px;
        background: #f8f9fa;
        border-radius: 8px;
        font-size: 11px;
        color: #555;
    }
    .cart-item__customization.open .cust-detail {
        display: flex;
    }

    /* Нижняя строка: количество + редактировать + цена */
    .cart-item__foot {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-top: 6px;
    }

    /* Счётчик */
    .cart-item__qty {
        display: inline-flex;
        align-items: center;
        background: #E85A1A;
        border-radius: 50px;
        padding: 3px 4px;
        height: 36px;
        gap: 0;
    }

/* === Временно отключён вход по телефону === */
#authPhoneBtn {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: auto;
}

.auth-phone-disabled-tip {
    display: none;
    background: #fff8e1;
    border: 1.5px solid #f5a623;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #6b4c00;
    line-height: 1.5;
    margin-top: 2px;
}

.auth-phone-disabled-tip--visible {
    display: block;
    animation: fadeInTip 0.2s ease;
}

@keyframes fadeInTip {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(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: #E85A1A; }

    /* Цена */
    .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: #E85A1A;
        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: #E85A1A; color: #fff; border-color: #E85A1A; }

    /* Доставка */
    .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: #E85A1A;
        background: #F1FBF1;
        color: #B8400E;
    }
    .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: #E85A1A; }
    .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: #E85A1A;
        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: #E85A1A;
        opacity: 0;
        transition: opacity 0.15s;
    }
    .cex-radio input:checked ~ .cex-radio__dot { border-color: #E85A1A; }
    .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: #E85A1A !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: #E85A1A !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, #E85A1A, #D24F12);
        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: #f7f8fa;
        border-radius: 20px 20px 0 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-panel::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
        margin: 10px auto 0;
        flex-shrink: 0;
    }

    /* Заголовок */
    .mab-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px 8px;
        flex-shrink: 0;
    }
    .mab-city {
        font-size: 17px;
        font-weight: 700;
        color: #111;
    }
    .mab-close {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #ebebeb;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        color: #555;
    }

    /* Вкладки — iOS segmented control */
    .mab-tabs {
        display: flex;
        padding: 0 16px 12px;
        gap: 0;
        flex-shrink: 0;
    }
    .mab-tabs-inner {
        display: flex;
        flex: 1;
        background: #ebebeb;
        border-radius: 12px;
        padding: 4px;
        gap: 0;
    }
    .mab-tab {
        flex: 1;
        padding: 9px 8px;
        border: none;
        background: transparent;
        border-radius: 9px;
        font-size: 14px;
        font-weight: 600;
        color: #666;
        cursor: pointer;
        transition: background 0.2s, color 0.2s, box-shadow 0.2s;
        font-family: inherit;
    }
    .mab-tab:first-child { border-radius: 9px; }
    .mab-tab:last-child  { border-radius: 9px; }
    .mab-tab.active {
        background: #fff;
        color: var(--primary-color);
        box-shadow: 0 1px 6px rgba(0,0,0,0.12);
    }
    .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 #e5e7eb;
        border-radius: 14px;
        display: flex;
        align-items: center;
        padding: 0 12px;
        background: #fff;
        flex-shrink: 0;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }
    .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: #B8400E;
    }
    /* Обёртка значение + подсказка */
    .mab-zone-row__val-wrap {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 1px;
    }
    /* Подсказка «бесплатно от ...» */
    .mab-zone-row__hint {
        font-size: 11px;
        color: #B8400E;
        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, #D24F12, #B8400E);
        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, #B8400E, #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);
    }
}

/* ===== ПОПАП "МЫ НЕ РАБОТАЕМ" ===== */
.closed-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: cpFadeIn 0.25s ease;
}
@keyframes cpFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.closed-popup {
    background: #fff;
    border-radius: 24px;
    padding: 36px 28px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    animation: cpSlideUp 0.28s cubic-bezier(.34,1.56,.64,1);
    position: relative;
}
@keyframes cpSlideUp {
    from { opacity: 0; transform: translateY(32px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.closed-popup__icon {
    margin-bottom: 16px;
}
.closed-popup__title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.2;
}
.closed-popup__message {
    font-size: 15px;
    color: #ef4444;
    font-weight: 500;
    margin: 0 0 18px;
    line-height: 1.4;
}
.closed-popup__schedule {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 22px;
    text-align: left;
}
.closed-popup__schedule-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}
.closed-popup__schedule-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.closed-popup__schedule-label {
    color: #6b7280;
    font-size: 13px;
}
.closed-popup__schedule-value {
    font-weight: 600;
    color: #1a1a1a;
}
.closed-popup__schedule-title {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.closed-popup__btn {
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.closed-popup__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}
.closed-popup__btn:active {
    transform: translateY(0);
}
/* Мобильные */
@media (max-width: 480px) {
    .closed-popup {
        padding: 28px 18px 22px;
        border-radius: 20px;
    }
    .closed-popup__title {
        font-size: 20px;
    }
    .closed-popup__btn {
        padding: 13px;
        font-size: 15px;
    }
}
/* ===== END ПОПАП "МЫ НЕ РАБОТАЕМ" ===== */

/* ===== Баннер-ссылка на посадочные страницы ===== */
.cat-lp-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding: 14px 18px;
    background: #f0faf1;
    border: 1.5px solid #c8eaca;
    border-radius: 14px;
    color: var(--text-dark);
    text-decoration: none;
    transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.cat-lp-banner:hover {
    background: #e4f5e6;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.14);
}
.cat-lp-banner__emoji {
    font-size: 26px;
    flex-shrink: 0;
    line-height: 1;
}
.cat-lp-banner__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.cat-lp-banner__body strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}
.cat-lp-banner__body span {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}
.cat-lp-banner__arr {
    color: var(--primary-color);
    flex-shrink: 0;
}
/* ===== END Баннер-ссылка на посадочные страницы ===== */

/* ===== Баннер-ссылка на посадочные страницы ===== */
.cat-lp-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding: 14px 18px;
    background: #f0faf1;
    border: 1.5px solid #c8eaca;
    border-radius: 14px;
    color: var(--text-dark);
    text-decoration: none;
    transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.cat-lp-banner:hover {
    background: #e4f5e6;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.14);
}
.cat-lp-banner__emoji {
    font-size: 26px;
    flex-shrink: 0;
    line-height: 1;
}
.cat-lp-banner__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.cat-lp-banner__body strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}
.cat-lp-banner__body span {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}
.cat-lp-banner__arr {
    color: var(--primary-color);
    flex-shrink: 0;
}
/* ===== END Баннер-ссылка на посадочные страницы ===== */

/* ===== ПОПАП БЕСПЛАТНОГО КЕЙСА ДЛЯ НОВИЧКОВ (fncp) ===== */
.fncp{position:fixed;inset:0;z-index:9900;display:flex;align-items:center;justify-content:center;padding:12px}
.fncp__overlay{position:absolute;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(4px)}
.fncp__box{position:relative;z-index:1;width:100%;max-width:360px;background:linear-gradient(160deg,#1b4332 0%,#145a32 40%,#1a3c2a 100%);border:1.5px solid rgba(74,222,128,.35);border-radius:20px;padding:24px 20px 20px;text-align:center;box-shadow:0 8px 40px rgba(0,0,0,.45),0 0 60px rgba(74,222,128,.12);transform:translateY(30px) scale(.94);opacity:0;transition:transform .35s cubic-bezier(.34,1.56,.64,1),opacity .3s ease}
.fncp--visible .fncp__box{transform:translateY(0) scale(1);opacity:1}
.fncp__close{position:absolute;top:12px;right:12px;background:rgba(255,255,255,.1);border:none;border-radius:50%;width:32px;height:32px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.7);transition:background .2s}
.fncp__close:hover{background:rgba(255,255,255,.2)}
.fncp__badge{display:inline-block;background:linear-gradient(90deg,#16a34a,#22c55e);color:#fff;font-size:11px;font-weight:800;letter-spacing:.06em;border-radius:20px;padding:4px 12px;margin-bottom:14px;box-shadow:0 2px 10px rgba(34,197,94,.4)}
.fncp__case-wrap{position:relative;margin:0 auto 12px;width:120px;height:100px;display:flex;align-items:center;justify-content:center}
.fncp__case-glow{position:absolute;inset:-10px;border-radius:50%;background:radial-gradient(circle,rgba(74,222,128,.25) 0%,transparent 70%);animation:fncpPulse 2.5s ease-in-out infinite}
@keyframes fncpPulse{0%,100%{transform:scale(1);opacity:.7}50%{transform:scale(1.15);opacity:1}}
.fncp__case-img-wrap{position:relative;z-index:1;animation:fncpFloat 3s ease-in-out infinite}
@keyframes fncpFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
.fncp__case-img{width:110px;height:90px;object-fit:contain;filter:drop-shadow(0 4px 12px rgba(0,0,0,.4))}
.fncp__case-icon-fallback svg{width:90px;height:72px}
.fncp__title{font-size:18px;font-weight:700;color:#fff;margin:0 0 4px;line-height:1.3}
.fncp__sub{font-size:13px;color:rgba(255,255,255,.65);margin:0 0 14px}
.fncp__items{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-bottom:18px}
.fncp__item{display:flex;flex-direction:column;align-items:center;gap:4px;width:62px}
.fncp__item img{width:48px;height:48px;object-fit:contain;border-radius:10px;background:rgba(255,255,255,.08);padding:4px;border:1.5px solid rgba(255,255,255,.12)}
.fncp__item span{font-size:9px;color:rgba(255,255,255,.55);text-align:center;line-height:1.2;max-width:62px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.fncp__item--rare img{border-color:rgba(59,130,246,.5)}
.fncp__item--epic img{border-color:rgba(168,85,247,.5)}
.fncp__item--legendary img{border-color:rgba(234,179,8,.6)}
.fncp__cta{width:100%;padding:14px;background:linear-gradient(135deg,#16a34a,#22c55e);border:none;border-radius:12px;color:#fff;font-size:16px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 4px 20px rgba(34,197,94,.45);transition:transform .15s,box-shadow .15s}
.fncp__cta:hover{transform:translateY(-2px);box-shadow:0 6px 24px rgba(34,197,94,.55)}
.fncp__cta:active{transform:translateY(0)}
.fncp__hint{font-size:11px;color:rgba(255,255,255,.4);margin:10px 0 0}
/* ===== END ПОПАП БЕСПЛАТНОГО КЕЙСА ===== */

/* ===== Кейс для новичков — главная страница ===== */
.cases-section__card--free-new {
    border: 2px solid rgba(74,222,128,.5) !important;
    box-shadow: 0 0 0 3px rgba(74,222,128,.1);
}
.cases-section__btn--new-free {
    background: linear-gradient(135deg,#16a34a,#22c55e) !important;
    color: #fff !important;
    display: flex; align-items: center; gap: 6px;
    font-weight: 700;
}
.cases-section__btn--claimed {
    background: rgba(0,0,0,.06) !important;
    color: #aaa !important;
    cursor: default;
    display: flex; align-items: center; gap: 6px;
}
.cases-section__new-badge {
    position: absolute; top: 6px; left: 6px; z-index: 2;
    background: linear-gradient(90deg,#15803d,#22c55e);
    color: #fff; font-size: 9px; font-weight: 800;
    letter-spacing: .05em; padding: 3px 7px;
    border-radius: 20px;
    display: flex; align-items: center; gap: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
/* ===== END Кейс для новичков — главная ===== */

/* ===== override: кейс для новичков — без обводки, тёплый бейдж ===== */
.cases-section__card--free-new {
    border: none !important;
    box-shadow: none !important;
    animation: none !important;
}
.cases-section__new-badge {
    background: linear-gradient(90deg, #FF6B35, #FF8C42) !important;
    box-shadow: 0 2px 6px rgba(255,107,53,.35) !important;
}
/* ===== end override ===== */

/* ===== fix: кнопка free-new — зелёная, без оранжевого ховера ===== */
.cases-section__btn--new-free,
.cases-section__btn--new-free:hover {
    background: linear-gradient(135deg, #1e8449, #27ae60) !important;
    box-shadow: 0 2px 10px rgba(39,174,96,.4) !important;
    color: #fff !important;
}
.cases-section__btn--new-free:hover {
    background: linear-gradient(135deg, #196f3d, #1e8449) !important;
    box-shadow: 0 4px 16px rgba(39,174,96,.55) !important;
}
/* ===== end fix ===== */

/* ===== ПОПАП v2 — белая тема ===== */
.fncp { position:fixed;inset:0;z-index:9900;display:flex;align-items:center;justify-content:center;padding:12px; }
.fncp__overlay { position:absolute;inset:0;background:rgba(0,0,0,.45);backdrop-filter:blur(3px); }
.fncp__box {
    position:relative;z-index:1;width:100%;max-width:380px;
    background:#fff;
    border-radius:20px;overflow:hidden;
    box-shadow:0 12px 48px rgba(0,0,0,.22);
    transform:translateY(28px) scale(.95);opacity:0;
    transition:transform .35s cubic-bezier(.34,1.56,.64,1),opacity .3s ease;
}
.fncp--visible .fncp__box { transform:translateY(0) scale(1);opacity:1; }
.fncp__close {
    position:absolute;top:10px;right:10px;z-index:10;
    background:rgba(0,0,0,.07);border:none;border-radius:50%;
    width:30px;height:30px;cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    color:#555;transition:background .2s;
}
.fncp__close:hover { background:rgba(0,0,0,.13); }

/* Рулетка */
.fncp__roulette {
    position:relative;width:100%;height:116px;
    background:linear-gradient(180deg,#1a1a2e 0%,#16213e 100%);
    overflow:hidden;
}
.fncp__roulette-pointer {
    position:absolute;top:0;bottom:0;left:50%;transform:translateX(-50%);
    width:2px;background:linear-gradient(180deg,#E85A1A,#81C784);
    z-index:3;
}
.fncp__roulette-pointer::before,
.fncp__roulette-pointer::after {
    content:'';position:absolute;left:50%;transform:translateX(-50%);
    width:0;height:0;
}
.fncp__roulette-pointer::before { top:0;border-left:7px solid transparent;border-right:7px solid transparent;border-top:10px solid #E85A1A; }
.fncp__roulette-pointer::after  { bottom:0;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:10px solid #E85A1A; }
.fncp__roulette-track {
    display:flex;gap:6px;padding:8px 6px;
    animation:fncpScroll 12s linear infinite;
    width:max-content;
}
@keyframes fncpScroll {
    from { transform:translateX(0); }
    to   { transform:translateX(-50%); }
}
.fncp__roulette-fade {
    position:absolute;top:0;bottom:0;width:60px;z-index:2;pointer-events:none;
}
.fncp__roulette-fade--left  { left:0; background:linear-gradient(90deg,#16213e,transparent); }
.fncp__roulette-fade--right { right:0;background:linear-gradient(-90deg,#16213e,transparent); }

/* Ячейка рулетки в попапе */
.fncp__ri {
    flex-shrink:0;width:90px;height:100px;
    border-radius:8px;border:1px solid rgba(255,255,255,.08);
    background:linear-gradient(150deg,#242424,#2d2d2d);
    display:flex;flex-direction:column;align-items:center;
    justify-content:center;gap:4px;padding:6px 4px;
    position:relative;overflow:hidden;
}
.fncp__ri[data-rarity="rare"]      { background:linear-gradient(150deg,#0b1e33,#102840);border-color:rgba(52,152,219,.3); }
.fncp__ri[data-rarity="epic"]      { background:linear-gradient(150deg,#1e0a2e,#2d1040);border-color:rgba(155,89,182,.35); }
.fncp__ri[data-rarity="legendary"] { background:linear-gradient(150deg,#281200,#3a1a00);border-color:rgba(243,156,18,.4); }
.fncp__ri__stripe {
    position:absolute;top:0;left:0;right:0;height:3px;border-radius:8px 8px 0 0;
}
.fncp__ri[data-rarity="common"]    .fncp__ri__stripe { background:#95a5a6; }
.fncp__ri[data-rarity="rare"]      .fncp__ri__stripe { background:#3498db; }
.fncp__ri[data-rarity="epic"]      .fncp__ri__stripe { background:#9b59b6; }
.fncp__ri[data-rarity="legendary"] .fncp__ri__stripe { background:linear-gradient(90deg,#f39c12,#e67e22,#f39c12); }
.fncp__ri img { width:60px;height:60px;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.fncp__ri__name { font-size:9px;color:rgba(255,255,255,.65);text-align:center;line-height:1.2;max-width:82px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical; }

/* Инфо-строка */
.fncp__info-row {
    display:flex;align-items:center;gap:14px;
    padding:16px 18px 0;
}
.fncp__case-img-wrap { flex-shrink:0; }
.fncp__case-img { width:80px;height:68px;object-fit:contain; }
.fncp__info-text { flex:1; }
.fncp__badge {
    display:inline-block;
    background:linear-gradient(90deg,#16a34a,#22c55e);
    color:#fff;font-size:11px;font-weight:700;
    border-radius:20px;padding:3px 10px;margin-bottom:6px;
}
.fncp__title { font-size:17px;font-weight:700;color:#1a1a1a;margin:0 0 2px;line-height:1.2; }
.fncp__sub { font-size:12px;color:#888;margin:0; }

/* Кнопка */
.fncp__cta {
    display:flex;align-items:center;justify-content:center;gap:8px;
    width:calc(100% - 36px);margin:14px 18px 16px;
    padding:13px;
    background:linear-gradient(135deg,#16a34a,#22c55e);
    border:none;border-radius:12px;
    color:#fff;font-size:15px;font-weight:700;cursor:pointer;
    box-shadow:0 4px 16px rgba(34,197,94,.35);
    transition:transform .15s,box-shadow .15s;
}
.fncp__cta:hover  { transform:translateY(-2px);box-shadow:0 6px 20px rgba(34,197,94,.45); }
.fncp__cta:active { transform:translateY(0); }
/* ===== END ПОПАП v2 ===== */

/* ===== ПОПАП v3 — крестик в рулетке, содержимое ===== */
.fncp__close {
    position:absolute;top:8px;right:8px;z-index:10;
    background:rgba(0,0,0,.35);border:none;border-radius:50%;
    width:34px;height:34px;cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    color:#fff;transition:background .2s;
}
.fncp__close:hover { background:rgba(0,0,0,.55); }
.fncp__contents-label {
    font-size:12px;font-weight:600;color:#999;
    padding:0 18px 6px;text-transform:uppercase;letter-spacing:.04em;
}
.fncp__contents {
    display:flex;gap:8px;padding:0 18px 4px;overflow-x:auto;
    scrollbar-width:none;
}
.fncp__contents::-webkit-scrollbar { display:none; }
.fncp__ci {
    flex-shrink:0;width:72px;
    display:flex;flex-direction:column;align-items:center;gap:4px;
}
.fncp__ci-img {
    width:64px;height:64px;border-radius:10px;overflow:hidden;
    display:flex;align-items:center;justify-content:center;
    background:#f5f5f5;border:1.5px solid #eee;
}
.fncp__ci-img img { width:56px;height:56px;object-fit:contain; }
.fncp__ci-img--rare      { border-color:rgba(52,152,219,.4);background:#eaf4fd; }
.fncp__ci-img--epic      { border-color:rgba(155,89,182,.4);background:#f5eafd; }
.fncp__ci-img--legendary { border-color:rgba(243,156,18,.5);background:#fdf6ea; }
.fncp__ci-name { font-size:10px;color:#555;text-align:center;line-height:1.3;max-width:70px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical; }
/* ===== END ПОПАП v3 ===== */

/* ===== ПОПАП: содержимое кейса в стиле рулетки ===== */
.fncp__contents {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 0 14px 4px;
}
@media (max-width: 380px) {
    .fncp__contents { grid-template-columns: repeat(3, 1fr); }
}
.fncp__ci {
    border-radius: 8px;
    padding: 8px 4px 6px;
    display: flex; flex-direction: column;
    align-items: center; gap: 5px;
    position: relative; overflow: hidden;
    border: 1.5px solid transparent;
}
.fncp__ci[data-rarity="common"]    { background:linear-gradient(150deg,#242424,#2d2d2d); border-color:rgba(149,165,166,.2); }
.fncp__ci[data-rarity="rare"]      { background:linear-gradient(150deg,#0b1e33,#102840); border-color:rgba(52,152,219,.28); }
.fncp__ci[data-rarity="epic"]      { background:linear-gradient(150deg,#1e0a2e,#2d1040); border-color:rgba(155,89,182,.32); }
.fncp__ci[data-rarity="legendary"] { background:linear-gradient(150deg,#281200,#3a1a00); border-color:rgba(243,156,18,.38); }
.fncp__ci__stripe {
    position:absolute; top:0; left:0; right:0;
    height:3px; border-radius:8px 8px 0 0;
}
.fncp__ci[data-rarity="common"]    .fncp__ci__stripe { background:#95a5a6; }
.fncp__ci[data-rarity="rare"]      .fncp__ci__stripe { background:#3498db; }
.fncp__ci[data-rarity="epic"]      .fncp__ci__stripe { background:#9b59b6; }
.fncp__ci[data-rarity="legendary"] .fncp__ci__stripe { background:linear-gradient(90deg,#f39c12,#e67e22,#f39c12); }
.fncp__ci__img {
    width: 54px; height: 54px;
    display:flex; align-items:center; justify-content:center;
}
.fncp__ci__img img {
    width:54px; height:54px; object-fit:contain;
    filter:drop-shadow(0 2px 4px rgba(0,0,0,.5));
}
.fncp__ci__name {
    font-size: 9.5px; color: rgba(255,255,255,.85);
    text-align: center; line-height: 1.25;
    overflow: hidden; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    width: 100%;
}
.fncp__ci__value {
    font-size: 9px; color: #f39c12;
    font-weight: 700;
}
/* ===== END содержимое кейса ===== */

/* ===== ПОПАП: шапка ===== */
.fncp__header {
    position: relative;
    padding: 18px 18px 14px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}
.fncp__header .fncp__close {
    position: absolute;
    top: 12px; right: 12px;
    background: #f5f5f5; border: none; border-radius: 50%;
    width: 30px; height: 30px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #888; transition: background .2s;
}
.fncp__header .fncp__close:hover { background: #eaeaea; }
.fncp__header-title {
    font-size: 13px; font-weight: 600;
    color: #22c55e; margin: 0 0 4px;
    letter-spacing: .01em;
}
.fncp__header-name {
    font-size: 20px; font-weight: 700;
    color: #1a1a1a; margin: 0;
    line-height: 1.2;
}
/* ===== END шапка ===== */

/* ===== ПОПАП: содержимое в стиле co-item-card ===== */
.fncp__contents {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px;
    padding: 4px 14px 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.fncp__contents::-webkit-scrollbar { display: none; }
.fncp__ci {
    position: relative;
    border-radius: 10px;
    padding: 12px 8px 10px;
    display: flex; flex-direction: column;
    align-items: center; gap: 6px;
    flex-shrink: 0;
    width: 100px;
    border: 1.5px solid transparent;
    transition: transform .18s, box-shadow .18s;
    overflow: hidden;
    cursor: default;
}
.fncp__ci:hover { transform: translateY(-3px); }
.fncp__ci[data-rarity="common"]    { background:#fff;      border-color:rgba(149,165,166,.4); box-shadow:0 2px 8px rgba(0,0,0,.06); }
.fncp__ci[data-rarity="rare"]      { background:#f0f7ff;   border-color:rgba(52,152,219,.4);  box-shadow:0 2px 8px rgba(52,152,219,.08); }
.fncp__ci[data-rarity="epic"]      { background:#f8f0ff;   border-color:rgba(155,89,182,.4);  box-shadow:0 2px 8px rgba(155,89,182,.08); }
.fncp__ci[data-rarity="legendary"] { background:#fffbf0;   border-color:rgba(243,156,18,.5);  box-shadow:0 2px 8px rgba(243,156,18,.12); }
.fncp__ci__stripe {
    position: absolute; top:0; left:0; right:0;
    height: 3px; border-radius: 10px 10px 0 0;
}
.fncp__ci[data-rarity="common"]    .fncp__ci__stripe { background:#95a5a6; }
.fncp__ci[data-rarity="rare"]      .fncp__ci__stripe { background:#3498db; }
.fncp__ci[data-rarity="epic"]      .fncp__ci__stripe { background:#9b59b6; }
.fncp__ci[data-rarity="legendary"] .fncp__ci__stripe { background:linear-gradient(90deg,#f39c12,#e67e22,#f39c12); }
.fncp__ci__img {
    width: 68px; height: 68px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.fncp__ci__img img {
    width: 68px; height: 68px; object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.15));
    mix-blend-mode: multiply;
}
.fncp__ci__name {
    font-size: 11px; font-weight: 600;
    color: #2A211A; text-align: center;
    line-height: 1.25;
    overflow: hidden; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    width: 100%;
}
.fncp__ci__value {
    font-size: 11px; font-weight: 700; color: #f39c12;
}
/* ===== END содержимое кейса (светлые карточки) ===== */

/* ===== ПОПАП: fix изображений — убираем multiply, тёмный фон ===== */
.fncp__ci__img {
    background: #1a1a1a !important;
    border-radius: 8px !important;
}
.fncp__ci__img img {
    mix-blend-mode: normal !important;
    filter: none !important;
}
/* ===== END fix изображений ===== */

/* ===== ПОПАП v4 — заголовок, grid содержимого ===== */
.fncp__header {
    padding: 12px 16px 12px !important;
}
.fncp__header-title {
    color: #555 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin: 0 0 2px !important;
}
.fncp__header-name {
    font-size: 18px !important;
}
.fncp__contents-label {
    margin-top: 12px !important;
    padding: 0 14px 6px !important;
}
.fncp__contents {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 0 14px 4px !important;
    overflow-x: unset !important;
}
@media (min-width: 360px) {
    .fncp__contents { grid-template-columns: repeat(4, 1fr) !important; }
}
.fncp__ci { width: auto !important; }
/* ===== END ПОПАП v4 ===== */

/* ===== ПОПАП v5 — шапка в строку, выравнивание, фон картинок ===== */
.fncp__header { padding: 0 !important; border-bottom: 1px solid #f0f0f0; }
.fncp__header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 8px;
}
.fncp__header-top .fncp__close {
    position: static !important;
    flex-shrink: 0;
    background: #f0f0f0;
    color: #666;
    width: 28px; height: 28px;
}
.fncp__header-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    flex: 1;
    text-align: left;
    margin: 0 !important;
}
.fncp__header-name {
    font-size: 22px !important;
    padding: 0 14px 12px;
    text-align: left;
    margin: 0 !important;
}

/* Последний ряд по центру */
.fncp__contents {
    justify-content: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    grid-template-columns: unset !important;
}
.fncp__ci { width: calc(25% - 8px) !important; min-width: 78px; }

/* Убираем чёрный фон картинок */
.fncp__ci__img {
    background: transparent !important;
}
/* ===== END ПОПАП v5 ===== */

/* ===== ПОПАП: центрирование шапки ===== */
.fncp__header-top {
    position: relative !important;
    justify-content: center !important;
    padding: 14px 44px 6px !important;
}
.fncp__header-top .fncp__close {
    position: absolute !important;
    right: 12px; top: 50%; transform: translateY(-50%);
}
.fncp__header-title {
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #888 !important;
}
.fncp__header-name {
    text-align: center !important;
    padding: 0 14px 14px !important;
    font-size: 20px !important;
}
/* ===== END ===== */

/* ================================================================
   DELIVERY MODAL — ДЕСКТОП (min-width: 768px)
   ================================================================ */
@media (min-width: 768px) {

#deliveryModal .modal__content {
    max-width: min(95vw, 960px) !important;
    width: 95vw !important;
    height: min(94vh, 720px) !important;
    max-height: 94vh !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    padding: 0 !important;
}

#deliveryModal .modal__body {
    display: flex; flex-direction: column;
    flex: 1; min-height: 0; overflow: hidden; padding: 0;
}
#deliveryModal .modal__title { display: none; }
#deliveryModal .modal__close {
    top: 12px; right: 12px; width: 32px; height: 32px;
    border-radius: 50%; background: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 300; color: #333; position: absolute;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: background .15s, box-shadow .15s;
}
#deliveryModal .modal__close:hover { background: #f3f4f6; box-shadow: 0 3px 12px rgba(0,0,0,0.22); }
#deliveryModal .modal__close svg { width: 14px; height: 14px; }

/* Скрываем верхние табы — они теперь в форме */
#deliveryModal .delivery-tabs--top { display: none !important; }

/* Табы внутри формы */
#deliveryModal .delivery-tabs--form {
    padding: 0 0 10px; margin: 0;
    flex-shrink: 0; display: flex;
}
#deliveryModal .delivery-tabs--form .delivery-tabs-inner-wrap {
    flex: 1; background: #f0f0f0;
    border-radius: 9999px; padding: 4px; display: flex;
}
#deliveryModal .delivery-tab {
    flex: 1; height: 38px; padding: 0 12px;
    border: none; background: transparent; border-radius: 9999px;
    font-size: 14px; font-weight: 600; color: #666; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: background .18s, color .18s, box-shadow .18s;
    font-family: inherit; white-space: nowrap;
}
#deliveryModal .delivery-tab svg { width: 16px; height: 16px; flex-shrink: 0; }
#deliveryModal .delivery-tabs--form .delivery-tab.active {
    background: #E85A1A !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(76,175,80,.3) !important;
}
#deliveryModal .delivery-tabs--form .delivery-tab:not(.active) {
    background: transparent !important;
    color: #666 !important;
    border: none !important;
}
#deliveryModal .delivery-tab:hover:not(.active):not(.disabled) { color: #333; }
#deliveryModal .delivery-tab.disabled { opacity: .4; cursor: not-allowed; }

#deliveryModal .delivery-content { flex: 1; min-height: 0; overflow: hidden; }
#deliveryModal .delivery-panel { display: none; height: 100%; }
#deliveryModal .delivery-panel.active { display: flex; height: 100%; }

#deliveryModal .delivery-two-column {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0; flex: 1; min-height: 0; overflow: hidden; width: 100%;
}

#deliveryModal .delivery-form-column {
    order: 1; display: flex; flex-direction: column;
    height: 100%; min-height: 0; overflow-y: auto; overflow-x: visible;
    padding: 16px 24px 20px; background: #fff;
    scrollbar-width: none; -ms-overflow-style: none;
}
#deliveryModal .delivery-form-column::-webkit-scrollbar { display: none; }
#deliveryModal .delivery-section-title {
    font-size: 22px; font-weight: 700; color: #111;
    margin: 4px 0 14px; display: block;
}

#deliveryModal .step-number,
#deliveryModal .step-header { display: none !important; }
#deliveryModal .delivery-step { border: none !important; padding: 0 !important; }

#deliveryModal .delivery-form-column .form-input,
#deliveryModal .delivery-form-column input[type="text"]:not([readonly]),
#deliveryModal .delivery-form-column input[type="tel"],
#deliveryModal .delivery-form-column input[type="number"],
#deliveryModal .delivery-form-column textarea {
    height: 50px !important; border-radius: 12px !important;
    border: 1.5px solid #e5e7eb !important; background: #fff !important;
    padding: 0 14px !important; font-size: 15px !important;
    font-family: inherit !important; width: 100%; box-sizing: border-box;
    transition: border-color .18s; outline: none !important;
    color: #111 !important; box-shadow: none !important;
}
#deliveryModal .delivery-form-column textarea.form-input,
#deliveryModal .delivery-form-column textarea {
    height: 62px !important; padding: 10px 14px !important;
    resize: none !important;
}
#deliveryModal .delivery-form-column .form-input:focus,
#deliveryModal .delivery-form-column input[type="text"]:focus:not([readonly]),
#deliveryModal .delivery-form-column input[type="tel"]:focus,
#deliveryModal .delivery-form-column input[type="number"]:focus,
#deliveryModal .delivery-form-column textarea:focus {
    border-color: var(--primary-color) !important;
}
#deliveryModal #addressInput {
    height: 56px !important; border-radius: 14px !important;
    font-size: 16px !important; padding: 0 40px 0 16px !important;
}
#deliveryModal #addressInput:focus { border-color: var(--primary-color) !important; }

#deliveryModal .delivery-form-column label {
    font-size: 13px !important; font-weight: 600 !important;
    color: #6b7280 !important; margin-bottom: 6px !important;
    text-transform: none; letter-spacing: 0; display: block;
}

/* ── Плейсхолдер до выбора адреса ── */
#deliveryModal #deliveryFormPlaceholder {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 20px;
    padding: 8px 0 4px;
}
#deliveryModal .dfp-illustration {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    text-align: center;
}
#deliveryModal .dfp-title {
    font-size: 16px; font-weight: 700; color: #111; margin: 0;
}
#deliveryModal .dfp-sub {
    font-size: 13px; color: #9ca3af; margin: 0; line-height: 1.5;
}

/* ── Галочка "Частный дом" ── */
#deliveryModal .private-house-check {
    display: inline-flex !important; align-items: center !important;
    gap: 7px; cursor: pointer; user-select: none;
    margin-bottom: 9px !important; font-size: 13px !important;
    color: #374151 !important; font-weight: 600 !important;
}
#deliveryModal .private-house-check input { display: none; }
#deliveryModal .phc__box {
    width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0;
    border: 2px solid #d1d5db; background: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, border-color .15s;
}
#deliveryModal .phc__tick { opacity: 0; transition: opacity .15s; }
#deliveryModal .private-house-check.is-on .phc__box {
    background: #E85A1A; border-color: #E85A1A;
}
#deliveryModal .private-house-check.is-on .phc__tick { opacity: 1; }
#deliveryModal .phc__label { font-size: 13px; font-weight: 600; color: #374151; }

/* Серые disabled-поля при "Частный дом" */
#deliveryModal .form-group.field-disabled input,
#deliveryModal .form-group.field-disabled textarea {
    background: #f3f4f6 !important; color: #adb5bd !important;
    border-color: #e5e7eb !important; cursor: not-allowed !important;
    pointer-events: none;
}
#deliveryModal .form-group.field-disabled label { color: #c0c4cc !important; }
#deliveryModal .delivery-form-column .form-group { margin-bottom: 9px; }
#deliveryModal .delivery-form-column .form-group:last-of-type { margin-bottom: 0; }
#deliveryModal .delivery-form-column .form-row {
    display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important;
}

#deliveryModal .delivery-form-column .btn-primary,
#deliveryModal .delivery-form-column .confirm-from-list-btn {
    height: 52px !important; border-radius: 9999px !important;
    font-size: 16px !important; font-weight: 600 !important;
    margin-top: 12px !important; width: 100%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
#deliveryModal .delivery-form-column .add-address-btn {
    border-radius: 12px; border: 1.5px dashed #d1d5db;
    background: transparent; color: #6b7280;
    font-size: 14px; font-weight: 500; padding: 11px 14px; cursor: pointer;
    transition: border-color .15s, color .15s; width: 100%; margin-bottom: 10px;
    display: flex; align-items: center; justify-content: center; gap: 6px; font-family: inherit;
}
#deliveryModal .delivery-form-column .add-address-btn:hover {
    border-color: var(--primary-color); color: var(--primary-color);
}
#deliveryModal .delivery-form-column .saved-addresses-section {
    background: #fff; border: 1.5px solid #e5e7eb;
    border-radius: 14px; padding: 0; overflow: hidden; margin-bottom: 12px;
}
#deliveryModal .delivery-form-column .saved-addresses-header {
    padding: 10px 14px; border-bottom: 1px solid #f0f0f0;
    font-size: 12px; font-weight: 600; color: #888;
    display: flex; align-items: center; gap: 6px;
}
#deliveryModal .delivery-form-column .saved-address-item {
    border-radius: 0; border-bottom: 1px solid #f5f5f5; padding: 11px 14px; font-size: 14px;
}
#deliveryModal .delivery-form-column .saved-address-item:last-child { border-bottom: none; }
#deliveryModal .back-to-addresses-btn {
    font-size: 13px; color: var(--primary-color); background: none; border: none;
    cursor: pointer; padding: 0 0 10px; display: flex; align-items: center; gap: 4px; font-weight: 600;
}

#deliveryModal .delivery-map-column {
    order: 2; position: relative; height: 100%; overflow: hidden;
    margin: 0; border-radius: 0 20px 20px 0; background: #e8eaed;
}
#deliveryModal .delivery-map-column .map-container-full,
#deliveryModal #deliveryMap,
#deliveryModal #pickupMap {
    height: 100% !important; min-height: 0 !important;
    width: 100% !important; border-radius: 0 20px 20px 0; overflow: hidden;
}
/* ── Хинт до выбора адреса ── */
.map-hint-overlay {
    position: absolute;
    bottom: 62px; left: 12px; right: 64px;
    z-index: 140;
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    pointer-events: none;
}
.map-hint-overlay span {
    font-size: 13px; color: #6b7280; font-weight: 500; line-height: 1.3;
}

/* ── Зона-инфо на карте (внизу карты) ── */
#deliveryModal .dzp {
    position: absolute !important;
    bottom: 62px !important;
    left: 12px !important;
    right: 64px !important;
    top: auto !important;
    transform: none !important;
    z-index: 150;
    width: auto; max-width: none;
    pointer-events: none;
}
#deliveryModal .dzp__card {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(76,175,80,0.2);
    border-radius: 16px;
    padding: 12px 14px 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    pointer-events: auto;
    display: flex; flex-direction: column; gap: 5px;
}
#deliveryModal .dzp__address {
    font-size: 13px; font-weight: 600; color: #111;
    margin-bottom: 0; gap: 6px;
}
#deliveryModal .dzp__zone {
    font-size: 11px; font-weight: 700; color: #B8400E;
    letter-spacing: 0.5px; margin-bottom: 0;
    background: rgba(76,175,80,0.1);
    padding: 2px 8px; border-radius: 6px;
    display: inline-block; width: fit-content;
}
#deliveryModal .dzp__details {
    margin-bottom: 0; gap: 5px; flex-wrap: wrap;
}
#deliveryModal .dzp__detail {
    font-size: 12px; color: #444;
    background: #f5f6f8; padding: 3px 8px;
    border-radius: 7px; border: 1px solid #ebebeb;
    display: inline-flex; align-items: center; gap: 4px;
}
#deliveryModal .dzp__sep { display: none !important; }
#deliveryModal .dzp__btn {
    margin-top: 6px; border-radius: 10px;
    font-size: 13px; padding: 9px 14px;
}
#deliveryModal .dzp__card--error { border-color: rgba(239,83,80,0.3); }

/* ── Самовывоз десктоп ── */
#deliveryModal #pickupPanel .pickup-compact-row { display: none !important; }
#deliveryModal #pickupPanel .pickup-list-collapse { display: block !important; overflow: visible !important; max-height: none !important; }

#deliveryModal .pickup-point-card {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 13px; cursor: pointer;
    border: 1.5px solid #e5e7eb; background: #fff; margin-bottom: 8px;
    transition: border-color .15s, box-shadow .15s;
}
#deliveryModal .pickup-point-card:hover { border-color: #E85A1A; box-shadow: 0 2px 10px rgba(76,175,80,.1); }
#deliveryModal .pickup-point-card.active { border-color: #E85A1A; background: #f0faf0; }
#deliveryModal .pickup-point-icon {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    background: #e8f5e9; display: flex; align-items: center; justify-content: center;
    color: #E85A1A;
}
#deliveryModal .pickup-point-info { flex: 1; min-width: 0; }
#deliveryModal .pickup-point-info h5 { font-size: 14px; font-weight: 700; color: #111; margin: 0 0 2px; }
#deliveryModal .pickup-point-info p  { font-size: 13px; color: #555; margin: 0 0 4px; }
#deliveryModal .pickup-hours { font-size: 11px; color: #E85A1A; font-weight: 600; background: #e8f5e9; padding: 2px 7px; border-radius: 6px; display: inline-block; }
#deliveryModal .pickup-point-check { flex-shrink: 0; }

#deliveryModal #pickupPanel .btn-primary {
    height: 52px !important; border-radius: 9999px !important;
    font-size: 16px !important; font-weight: 600 !important;
    margin-top: 12px !important; width: 100%;
    display: flex; align-items: center; justify-content: center;
}

} /* end @media 768px */


/* ── Кастомные кнопки карты (любой размер экрана) ── */
.map-custom-controls {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.map-ctrl-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: background .15s, transform .1s, box-shadow .15s;
    pointer-events: all;
    flex-shrink: 0;
}
.map-ctrl-btn:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.map-ctrl-btn:active { transform: scale(.94); }

/* Кнопка геолокации — зелёная */
.map-ctrl-btn#deliveryGeoBtn {
    background: #E85A1A;
    color: #fff;
}
.map-ctrl-btn#deliveryGeoBtn:hover { background: #D24F12; }
.map-ctrl-btn#deliveryGeoBtn.loading {
    animation: geo-spin 1s linear infinite;
}
@keyframes geo-spin {
    to { transform: rotate(360deg); }
}

/* Скрываем стандартные контролы Яндекс.Карт в обоих картах модала */
#deliveryMap .ymaps-2-1-79-controls-pane,
#deliveryMap .ymaps-2-1-79-gotoymaps,
#deliveryMap .ymaps-2-1-79-gototaxi,
#deliveryMap .ymaps-2-1-79-float-button,
#deliveryMap .ymaps-2-1-79-zoom,
#deliveryMap .ymaps-2-1-79-gototech,
#pickupMap .ymaps-2-1-79-controls-pane,
#pickupMap .ymaps-2-1-79-gotoymaps,
#pickupMap .ymaps-2-1-79-gototaxi,
#pickupMap .ymaps-2-1-79-float-button,
#pickupMap .ymaps-2-1-79-zoom,
#pickupMap .ymaps-2-1-79-gototech {
    display: none !important;
}

/* ===== DELIVERY DESKTOP END ===== */


/* ============================================================================
   ███  REDESIGN LAYER — добавлено ботом, лежит в конце => перекрывает старое
   Палитра/токены уже изменены выше. Здесь: шрифты, категории (B),
   Топ-бенто, варианты карточек (акция/баллы/кейс), SVG-бейджи, тёплый фон.
   Подключи в <head>: Unbounded + Onest (см. index.html).
   ============================================================================ */

/* ---- Шрифты ---- */
body{font-family:var(--font-ui);}
.section-title,.category-section__title,.cases-section__title,
.modal__title,.divider__title h2{font-family:var(--font-display);letter-spacing:-.3px;}

/* ---- Тёплый фон страницы и hero-зоны ---- */
body{background:
  radial-gradient(1000px 460px at 88% -8%, #FCEFE5, transparent 60%),
  var(--bg-gray);}
@media (min-width:769px){
  .header{background:#FBF7F0 !important;}
}

/* ---- Категории: вариант B (эспрессо). Структуру не меняем. ---- */
.cat-nav-item, .subcategory-btn{font-family:var(--font-ui);}
.cat-nav-item.active, .subcategory-btn.active{background:var(--espresso) !important;color:#fff !important;}
/* неактивные пилюли — тёплый крем вместо холодного серого */
.cat-nav-item:not(.active), .subcategory-btn:not(.active){background:var(--cream);color:#6B6358;}

/* ============================================================
   БЕЙДЖИ (SVG, без эмодзи). Навешиваются на .product-card__image
   <span class="pc-badge pc-badge--top"><svg>…</svg>ХИТ</span>
   ============================================================ */
.pc-badge{position:absolute;top:10px;left:10px;z-index:3;display:inline-flex;align-items:center;gap:5px;
  font:800 12px var(--font-ui);letter-spacing:.4px;padding:5px 10px;border-radius:9px;color:#fff;
  box-shadow:0 4px 12px rgba(0,0,0,.18);}
.pc-badge svg{width:13px;height:13px;flex-shrink:0;}
.pc-badge--top{background:linear-gradient(135deg,#FF7A33,var(--brand-700));}
.pc-badge--new{background:var(--new);}
.pc-badge--sale{background:var(--hot);}
.pc-badge--excl{background:var(--espresso);}.pc-badge--excl svg{color:var(--gold);}
.pc-badge--points{background:var(--gold);color:#3A2700;}
.pc-badge--case{background:var(--case);}
/* чип скидки в правом верхнем углу картинки */
.pc-discount{position:absolute;top:10px;right:10px;z-index:3;background:var(--hot);color:#fff;
  font:800 13px var(--font-display);padding:5px 9px;border-radius:9px;box-shadow:0 4px 12px rgba(232,66,58,.4);}

/* ============================================================
   ВАРИАНТЫ КНОПКИ КАРТОЧКИ (структура карточки прежняя)
   ============================================================ */
/* акция: старая цена зачёркнута, новая красная — внутри той же кнопки */
.product-card__btn .pc-old{font-size:13px;font-weight:600;text-decoration:line-through;color:#A8A29A;margin-right:-2px;}
.product-card__btn .pc-new{color:var(--hot);}
/* за баллы: золотая кнопка */
.product-card__btn--points{background:linear-gradient(135deg,#FFC94D,#F5A623);color:#3A2700;}
.product-card__btn--points:hover{background:linear-gradient(135deg,#FFC94D,#F5A623);filter:brightness(1.03);}
/* кейс: фиолетовая кнопка */
.product-card__btn--case{background:linear-gradient(135deg,#7A4CB3,var(--case-700));color:#fff;}
.product-card__btn--case:hover{background:linear-gradient(135deg,#7A4CB3,var(--case-700));filter:brightness(1.05);}

/* ============================================================
   РАЗДЕЛ «ТОП» — бенто-сетка
   <section class="top-section"><div class="top-grid"> … ячейки … </div></section>
   Ячейка: <div class="tcell [tcell--prod] product-card" data-w="1|2" data-h="1|2">
   ============================================================ */
.top-section{margin-bottom:8px;}
.top-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;grid-auto-flow:dense;}
.tcell{position:relative;transition:transform .2s;}
.tcell:hover{transform:translateY(-3px);}
.tcell[data-w="2"]{grid-column:span 2;}
.tcell[data-h="2"]{grid-row:span 2;}
/* топ-товар = обычная карточка, но фото 1:1 + плашка ТОП */
.tcell--prod .product-card__image{padding-top:100%;}
.top-badge{position:absolute;top:10px;left:10px;z-index:4;display:inline-flex;align-items:center;gap:5px;
  background:linear-gradient(135deg,#FF7A33,var(--brand-700));color:#fff;font:800 12px var(--font-ui);
  letter-spacing:.5px;padding:5px 10px;border-radius:9px;box-shadow:0 4px 12px rgba(232,90,26,.4);}
.top-badge svg{width:13px;height:13px;}
/* промо-баннер 2×1 */
.tbnr{color:#fff;display:flex;align-items:flex-end;padding:20px;position:relative;border-radius:16px;
  overflow:hidden;box-shadow:var(--shadow-sm);height:100%;min-height:160px;cursor:pointer;}
.tbnr::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,rgba(0,0,0,.42));}
.tbnr>*{position:relative;z-index:1;}
.tbnr--sale{background:linear-gradient(135deg,var(--hot),#B8231C);}
.tbnr--combo{background:linear-gradient(135deg,#FF8A3D,var(--brand-700));}
.tbnr h3{font-family:var(--font-display);font-size:25px;line-height:1.05;}
.tbnr p{font-size:13px;opacity:.92;margin-top:5px;}
.tbnr .tbnr-arrow{position:absolute;top:16px;right:16px;width:32px;height:32px;border-radius:50%;
  background:rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center;z-index:1;}
/* баннер кейсов 2×2 */
.tcases{background:radial-gradient(120px 120px at 80% 20%,rgba(255,255,255,.18),transparent),
  linear-gradient(150deg,#2B1A4D,#4A2A7A 60%,#6B3FA0);color:#fff;display:flex;flex-direction:column;
  justify-content:space-between;padding:22px;border-radius:16px;overflow:hidden;box-shadow:var(--shadow-sm);
  height:100%;cursor:pointer;}
.tcases .tcases-pill{align-self:flex-start;background:rgba(255,255,255,.18);border-radius:20px;
  padding:5px 12px;font:700 11px var(--font-ui);letter-spacing:.5px;}
.tcases h3{font-family:var(--font-display);font-size:27px;}
.tcases p{font-size:13px;opacity:.85;margin-top:2px;}
.tcases .tcases-btn{margin-top:14px;background:#fff;color:var(--case-700);border:none;border-radius:12px;
  padding:12px;font:800 13.5px var(--font-ui);cursor:pointer;}

/* Топ — планшет/мобайл */
@media (max-width:768px){
  .top-grid{grid-template-columns:repeat(2,1fr);gap:12px;}
  .tbnr{min-height:104px;padding:16px;}
  .tbnr h3{font-size:20px;}
}
/* ===== /REDESIGN LAYER ===== */


/* ============================================================================
   ███  REDESIGN LAYER 2 — шапка · разделители · баннеры · карточка заказа
   Чистый CSS поверх существующих классов. Шапка/разделители/заказ
   применяются СРАЗУ к текущей разметке. Баннеры — новый компонент (см. COPILOT.md §7).
   ============================================================================ */

/* ---------- ШАПКА (полировка существующих элементов) ---------- */
.header__logo .logo-icon{border-radius:13px;}
.header-pill,.delivery-btn,.auth-btn,.user-pill,.cart-btn{font-family:var(--font-ui);}
/* кнопка корзины — фирменный градиент + тень */
.cart-btn{background:linear-gradient(135deg,var(--brand),var(--brand-700)) !important;
  box-shadow:0 6px 18px rgba(232,90,26,.30);border-radius:13px !important;}
.cart-btn:hover{box-shadow:0 10px 24px rgba(232,90,26,.40);transform:translateY(-1px);}
/* пилюли — тёплые границы */
.header-pill,.user-pill,.cases-header-inventory-btn{border-color:var(--cream-line) !important;}
.header-pill:hover,.user-pill:hover{background:#F5EFE2 !important;border-color:#E0D4BE !important;}
/* адресная пилюля — кремовая, как в палитре */
.delivery-btn{background:var(--cream) !important;border-color:var(--cream-line) !important;}

/* ---------- КРАСИВЫЙ РАЗДЕЛИТЕЛЬ МЕЖДУ РАЗДЕЛАМИ ---------- */
/* тонкая тёплая линия сверху каждой секции (кроме первой) */
.category-section + .category-section{position:relative;}
.category-section + .category-section::before{
  content:"";position:absolute;top:0;left:0;right:0;height:1px;
  background:linear-gradient(90deg,transparent,var(--cream-line) 25%,var(--cream-line) 75%,transparent);}
/* акцент-чёрточка перед заголовком раздела */
.category-section__title{display:flex;align-items:center;gap:12px;}
.category-section__title::before{
  content:"";width:6px;height:24px;border-radius:4px;flex-shrink:0;
  background:linear-gradient(180deg,var(--brand),var(--brand-700));}
/* у «Топа» и «Кейсов» акцент не нужен (там свой заголовок) */
.cases-section__title-wrap .category-section__title::before{display:none;}

/* ---------- ПРОМО-БАННЕРЫ (вместо историй) — новый компонент ---------- */
/* Разметка: см. COPILOT.md §7 / файл banners-snippet.html */
.promo-banners{margin:0 0 8px;}
.promo-banners__grid{display:grid;grid-template-columns:1.7fr 1fr;gap:16px;}
.promo-banners__col{display:flex;flex-direction:column;gap:16px;}
.promo-banner{position:relative;border-radius:16px;overflow:hidden;cursor:pointer;
  min-height:200px;display:flex;align-items:flex-end;padding:22px;color:#fff;
  box-shadow:var(--shadow-sm);transition:transform .2s,box-shadow .2s;isolation:isolate;}
.promo-banner:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);}
.promo-banner::after{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg,transparent 30%,rgba(0,0,0,.45));}
.promo-banner__bg{position:absolute;inset:0;z-index:-2;background-size:cover;background-position:center;}
.promo-banner--hero{min-height:200px;}
.promo-banner__col .promo-banner{min-height:92px;padding:16px;}
.promo-banner__tag{position:absolute;top:16px;left:16px;background:rgba(255,255,255,.22);
  backdrop-filter:blur(4px);border-radius:8px;padding:4px 10px;font:700 11px var(--font-ui);letter-spacing:.4px;}
.promo-banner h3{font-family:var(--font-display);font-size:26px;line-height:1.05;}
.promo-banner--hero h3{font-size:32px;}
.promo-banner__col h3{font-size:18px;}
.promo-banner p{font-size:13px;opacity:.92;margin-top:6px;}
/* мобайл — горизонтальный скролл широких карточек */
@media (max-width:768px){
  .promo-banners__grid{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;}
  .promo-banners__grid::-webkit-scrollbar{display:none;}
  .promo-banners__col{display:contents;}
  .promo-banner{flex:0 0 78%;min-height:130px !important;scroll-snap-align:start;padding:16px !important;}
  .promo-banner h3{font-size:20px !important;}
}

/* ---------- КАРТОЧКА ЗАКАЗА КЛИЕНТА (полировка + прогресс) ---------- */
.order-card{border:1px solid var(--cream-line);border-radius:16px;}
.order-card:hover{border-color:var(--brand);}
/* статусы — в палитре (success зелёный, готовка оранжевая, отмена красная) */
.order-status{font-family:var(--font-ui);}
.order-status--pending{background:#FFF3DF;color:#9A6B00;}
.order-status--preparing{background:var(--brand-soft);color:var(--brand-700);}
.order-status--delivery{background:#E3F0FF;color:#1A5FB4;}
.order-status--completed{background:var(--success-soft,#E7F5EC);color:var(--success-color);}
.order-status--cancelled{background:#FDECEA;color:#B8231C;}
/* статус «готовится» — пульсирующая точка (если в разметке есть .order-status .dot) */
.order-status .dot{display:inline-block;width:7px;height:7px;border-radius:50%;
  background:currentColor;margin-right:6px;vertical-align:middle;animation:tkPulse 1.6s infinite;}
@keyframes tkPulse{0%,100%{opacity:1}50%{opacity:.35}}

/* Прогресс-шаги заказа (новый компонент — app.js должен отрисовать, см. COPILOT.md §8)
   <div class="order-progress"><div class="ostep done">…</div>…</div> */
.order-progress{display:flex;align-items:flex-start;margin-top:14px;}
.ostep{flex:1;text-align:center;position:relative;font:600 11px var(--font-ui);color:var(--text-light);}
.ostep__dot{width:26px;height:26px;border-radius:50%;background:var(--cream);border:2px solid var(--cream-line);
  margin:0 auto 6px;display:flex;align-items:center;justify-content:center;font-size:12px;
  color:var(--text-light);position:relative;z-index:2;}
.ostep::before{content:"";position:absolute;top:13px;left:-50%;width:100%;height:2px;background:var(--cream-line);z-index:1;}
.ostep:first-child::before{display:none;}
.ostep.done{color:var(--text-dark);}
.ostep.done .ostep__dot{background:var(--success-color);border-color:var(--success-color);color:#fff;}
.ostep.done::before{background:var(--success-color);}
.ostep.active{color:var(--brand-700);}
.ostep.active .ostep__dot{background:var(--brand);border-color:var(--brand);color:#fff;
  box-shadow:0 0 0 3px rgba(232,90,26,.18);}
/* ===== /REDESIGN LAYER 2 ===== */


/* ============================================================================
   ███  REDESIGN LAYER 3 — нижнее меню · инвентарь · кнопка инвентаря в шапке · адрес
   Чистый CSS поверх существующих классов. Инвентарь/меню заработают сразу,
   доп. поля карточки инвентаря (мин.сумма/источник/кнопка) рисует app.js — см. COPILOT.md §10.
   ============================================================================ */

/* ---------- НИЖНЕЕ МЕНЮ (мобайл) ---------- */
.mobile-bottom-nav{background:rgba(255,255,255,.92);backdrop-filter:saturate(1.3) blur(12px);
  border-top:1px solid var(--cream-line);border-radius:22px 22px 0 0;
  box-shadow:0 -6px 24px rgba(60,40,20,.12);}
.mobile-nav-item{font-family:var(--font-ui);color:var(--text-light);gap:3px;}
.mobile-nav-item svg{margin-bottom:2px;border-radius:12px;padding:3px 10px;transition:background .18s,color .18s;box-sizing:content-box;width:22px;height:22px;}
.mobile-nav-item.active{color:var(--brand-700);}
.mobile-nav-item.active svg{background:var(--brand-soft);}
.mobile-nav-item__badge{background:var(--hot);border:2px solid #fff;}

/* ---------- КНОПКА «ИНВЕНТАРЬ» В ШАПКЕ (ПК, только авторизованным) ---------- */
.header-inventory-btn{display:none;align-items:center;gap:7px;background:transparent;
  border:1px solid var(--cream-line);border-radius:13px;height:44px;padding:0 14px;
  font:600 14px var(--font-ui);color:var(--text-dark);cursor:pointer;transition:.15s;position:relative;}
.header-inventory-btn:hover{background:#F5EFE2;border-color:#E0D4BE;color:var(--brand-700);}
.header-inventory-btn svg{width:19px;height:19px;flex-shrink:0;}
.header-inventory-count{background:var(--brand);color:#fff;border-radius:7px;padding:2px 7px;
  font:800 11px var(--font-ui);min-width:18px;text-align:center;}
/* показываем, когда шапка/пользователь в состоянии «авторизован»
   (auth.js должен выставить .header--authenticated — см. COPILOT.md §10) */
.header--authenticated .header-inventory-btn{display:inline-flex;}
/* на мобайле в шапке не нужна — инвентарь живёт в нижнем меню */
@media (max-width:768px){.header-inventory-btn{display:none !important;}}

/* ---------- ИНВЕНТАРЬ (профиль / модалка) ---------- */
.inventory-filter{font-family:var(--font-ui);border:none;background:var(--cream);color:#6B6358;border-radius:18px;}
.inventory-filter.active{background:var(--espresso);color:#fff;}
.inventory-hint{background:var(--brand-soft);border:none;border-radius:14px;color:#7A4A28;}
.inventory-hint svg{color:var(--brand);}
.inventory-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;}
.inventory-item{background:var(--paper);border-radius:14px;border:2px solid var(--line);}
.inventory-item.common{border-color:#DAD3C6;}
.inventory-item.rare{border-color:#BBDEFB;}
.inventory-item.epic{border-color:#E1BEE7;}
.inventory-item.legendary{border-color:#FFE0A3;}
.inventory-item::before{height:4px;}
.inventory-item.common::before{background:#B6AFA3;}
.inventory-item__photo{background:#FBF7F0;}
.inventory-item-image{width:84px;height:84px;}
.inventory-item-name{font-family:var(--font-ui);font-size:14px;color:var(--text-dark);}
.inventory-item-value{font-family:var(--font-display);font-size:15px;color:var(--brand-700);}
.inventory-item-rarity{font-family:var(--font-ui);}
.inventory-item-rarity.common{background:#EEE9DF;color:#7A7263;}
/* новые поля (app.js): мин.сумма заказа и источник приза */
.inventory-item-min{font-size:12px;color:var(--text-light);display:flex;align-items:center;gap:4px;margin-top:1px;}
.inventory-item-min svg{width:12px;height:12px;flex-shrink:0;}
.inventory-item-source{font-size:11px;color:#B6AFA3;margin-top:1px;}
/* кнопка «Добавить» в карточке инвентаря (была display:none — показываем) */
.inventory-item-btn{display:flex !important;align-items:center;justify-content:center;gap:6px;
  margin:8px 7px 9px;border:none;background:var(--brand-soft);color:var(--brand-700);border-radius:10px;
  padding:9px;font:700 13px var(--font-ui);cursor:pointer;transition:.15s;}
.inventory-item-btn:hover{background:var(--brand);color:#fff;}

/* подтверждение добавления приза (новый компонент — app.js, см. COPILOT.md §10) */
.inv-confirm-msg b{color:var(--brand-700);}

/* ---------- СТРАНИЦА АДРЕСА (полировка, структура та же) ---------- */
#deliveryModal .delivery-tab.active{background:var(--espresso) !important;color:#fff !important;}
#deliveryModal .delivery-form-column .form-input:focus,
#deliveryModal .delivery-form-column input[type="text"]:focus:not([readonly]),
#deliveryModal .delivery-form-column input[type="tel"]:focus,
#deliveryModal .delivery-form-column input[type="number"]:focus,
#deliveryModal .delivery-form-column textarea:focus{
  border-color:var(--brand) !important;box-shadow:0 0 0 3px rgba(232,90,26,.15) !important;}
/* кнопки подтверждения адреса/доставки — фирменный градиент */
.dzp__btn,.mab-extra-save-btn{background:linear-gradient(135deg,var(--brand),var(--brand-700)) !important;
  box-shadow:0 6px 18px rgba(232,90,26,.28);}
/* мобильный bottom-sheet адреса — тёплые поля */
.mab-extra-input:focus,.mab-addr-input:focus{border-color:var(--brand) !important;box-shadow:0 0 0 3px rgba(232,90,26,.15) !important;}
.mab-tab.active,.mob-addr-tab.active{background:var(--espresso) !important;color:#fff !important;}
/* ===== /REDESIGN LAYER 3 ===== */

/* ===== КНОПКА ИНВЕНТАРЬ В ШАПКЕ ===== */
.inv-icon{display:none;width:44px;height:44px;align-items:center;justify-content:center;border-radius:13px;background:linear-gradient(135deg,#2E241B,#1A130D);border:1px solid #5A4530;box-shadow:inset 0 0 0 1px rgba(245,166,35,.14),inset 0 1px 0 rgba(255,255,255,.05);cursor:pointer;transition:.18s;flex-shrink:0}
.inv-icon svg{width:21px;height:21px;color:#F5A623}
.inv-icon:hover{border-color:#7A5A36;box-shadow:inset 0 0 0 1px rgba(245,166,35,.45),0 6px 18px rgba(40,25,10,.3);transform:translateY(-1px)}
.inv-icon:hover svg{filter:drop-shadow(0 0 6px rgba(245,166,35,.5))}
body.user-logged-in .inv-icon{display:flex}
@media(max-width:768px){.inv-icon{display:none !important}}
/* ===== END КНОПКА ИНВЕНТАРЬ В ШАПКЕ ===== */

/* ===== ИНВЕНТАРЬ-МОДАЛКА ===== */
.inv-modal{position:fixed;inset:0;z-index:1400;display:none;align-items:center;justify-content:center;background:rgba(36,24,14,.5);backdrop-filter:blur(3px);padding:20px}
.inv-modal.open{display:flex}
.inv-modal *{box-sizing:border-box}
.inv-win{width:920px;max-width:100%;height:560px;max-height:calc(100dvh - 40px);background:#FAF8F4;border-radius:24px;box-shadow:0 40px 100px rgba(20,12,4,.45);display:flex;flex-direction:column;overflow:hidden;color:#241C14;animation:invPop .25s ease}
@keyframes invPop{from{transform:scale(.96);opacity:0}to{transform:none;opacity:1}}
.inv-bar{display:flex;align-items:center;gap:12px;padding:18px 20px;border-bottom:1px solid #EFE6D6;flex-shrink:0}
.inv-back{display:none;width:38px;height:38px;border-radius:11px;border:1px solid #EFE6D6;background:#fff;color:#241C14;cursor:pointer;align-items:center;justify-content:center}
.inv-bar h2{font-size:20px;margin:0}
.inv-bar .inv-cnt{font-size:12.5px;color:#9C9488;font-weight:600}
.inv-bar .sp{flex:1}
.inv-coins{display:flex;align-items:center;gap:6px;padding:0 14px;height:38px;background:#fff;border:1.5px solid #eee;border-radius:50px;font-weight:700;font-size:14px;color:#241C14;box-shadow:0 2px 8px rgba(0,0,0,.07);white-space:nowrap;flex-shrink:0}
.inv-coins svg{flex-shrink:0}
.inv-close{width:38px;height:38px;border-radius:11px;border:none;background:#FAF6EE;color:#241C14;cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center}
.inv-close:hover{background:#EAE3D5}
.inv-body{flex:1;min-height:0;display:grid;grid-template-columns:1fr 300px;position:relative;overflow:hidden}
.inv-col{padding:18px 16px 16px 18px;display:flex;flex-direction:column;min-height:0;border-right:1px solid #EFE6D6}
.inv-flts{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px;flex-shrink:0}
.inv-flt{border:none;background:#FBF7F0;color:#6B6358;border-radius:16px;padding:6px 13px;font-size:12px;font-weight:600;cursor:pointer}
.inv-flt.on{background:#2A211A;color:#fff}
.inv-slots{flex:1;min-height:0;overflow-y:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:16px;align-content:start;padding:2px 8px 12px 2px}
.inv-slots::-webkit-scrollbar{width:8px}.inv-slots::-webkit-scrollbar-thumb{background:#D9CDB8;border-radius:4px}
.inv-slot{aspect-ratio:1;border-radius:14px;background:#FBF7F0;border:2px solid #E6DDCB;position:relative;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:34px;transition:.15s;overflow:hidden}
.inv-slot img{max-width:62%;max-height:62%;object-fit:contain}
.inv-slot:hover{transform:translateY(-2px)}
.inv-slot.common{border-color:#D9CFBE}.inv-slot.rare{border-color:#BBDEFB}.inv-slot.epic{border-color:#E1BEE7}.inv-slot.legendary{border-color:#FFDF9E}
.inv-slot__c{position:absolute;top:5px;left:5px;width:7px;height:7px;border-radius:50%}
.inv-slot.common .inv-slot__c{background:#9aa0a6}.inv-slot.rare .inv-slot__c{background:#3B9DF8}.inv-slot.epic .inv-slot__c{background:#A661E8}.inv-slot.legendary .inv-slot__c{background:#F5A623}
.inv-slot__e{position:absolute;bottom:4px;right:5px;font-size:9px;font-weight:700;color:#fff;background:rgba(40,25,10,.55);border-radius:6px;padding:1px 5px}
.inv-slot.sel.common{box-shadow:0 0 0 2px #9aa0a6,0 8px 20px rgba(154,160,166,.3);transform:translateY(-2px)}
.inv-slot.sel.rare{box-shadow:0 0 0 2px #3B9DF8,0 8px 20px rgba(59,157,248,.3);transform:translateY(-2px)}
.inv-slot.sel.epic{box-shadow:0 0 0 2px #A661E8,0 8px 20px rgba(166,97,232,.3);transform:translateY(-2px)}
.inv-slot.sel.legendary{box-shadow:0 0 0 2px #F5A623,0 8px 20px rgba(245,166,35,.35);transform:translateY(-2px)}
.inv-empty{grid-column:1/-1;text-align:center;color:#9C9488;padding:40px 0;font-size:14px}
.inv-detail{padding:18px;display:flex;flex-direction:column;overflow:hidden;background:#fff}
.inv-detail.empty{align-items:center;justify-content:center;text-align:center;color:#9C9488;gap:10px}
.inv-detail.empty svg{opacity:.4}
.inv-d-img{width:100%;aspect-ratio:1;border-radius:14px;background:#FAF6EE;display:flex;align-items:center;justify-content:center;font-size:60px;margin-bottom:12px;flex-shrink:0;overflow:hidden;max-height:180px}
.inv-d-img img{width:100%;height:100%;object-fit:cover}
.inv-d-rarity{align-self:flex-start;font-size:10px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;padding:3px 10px;border-radius:12px;margin-bottom:6px}
.inv-d-rarity.common{background:#EEE9DF;color:#7A7263}.inv-d-rarity.rare{background:#E3F2FD;color:#1976D2}.inv-d-rarity.epic{background:#F3E5F5;color:#7B1FA2}.inv-d-rarity.legendary{background:linear-gradient(135deg,#FFD700,#FFA500);color:#fff}
.inv-d-name{font-size:15px;font-weight:700;line-height:1.2;margin-bottom:3px}
.inv-d-src{font-size:11px;color:#9C9488;margin-bottom:10px}
.inv-prices{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
.inv-pbox{background:#FAF6EE;border-radius:11px;padding:9px 11px}
.inv-pbox small{display:block;font-size:10px;color:#9C9488;font-weight:600;margin-bottom:2px}
.inv-pbox b{font-size:15px;font-weight:700}
.inv-pbox.add b{color:#2E9E5B}
.inv-min{display:flex;align-items:center;gap:6px;background:#FDEDE2;border-radius:10px;padding:8px 11px;font-size:11px;color:#7A4A28;margin-bottom:10px}
.inv-min svg{flex-shrink:0;color:#E85A1A}
.inv-add{margin-top:auto;border:none;background:linear-gradient(135deg,#E85A1A,#B8400E);color:#fff;border-radius:12px;padding:13px;font-size:14px;font-weight:800;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 6px 16px rgba(232,90,26,.3)}
.inv-add:hover{transform:translateY(-1px)}
.inv-sheet{position:absolute;left:0;right:0;bottom:0;background:#fff;border-radius:22px 22px 0 0;padding:18px;transform:translateY(110%);transition:.28s;box-shadow:0 -10px 40px rgba(40,25,10,.25);z-index:10}
.inv-sheet.open{transform:none}
.inv-sheet__h{width:40px;height:4px;border-radius:2px;background:#E0D6C4;margin:0 auto 14px}
.inv-sheet__over{position:absolute;inset:0;background:rgba(36,24,14,.4);opacity:0;visibility:hidden;transition:.25s;z-index:9}
.inv-sheet__over.open{opacity:1;visibility:visible}
@media(max-width:768px){.inv-modal{padding:0;background:none;backdrop-filter:none}.inv-win{width:100%;height:100dvh;max-height:none;border-radius:0}.inv-back{display:flex}.inv-close{display:none}.inv-body{grid-template-columns:1fr}.inv-col{border-right:none}.inv-detail{display:none}.inv-slots{grid-template-columns:repeat(3,1fr)}}
/* ===== END ИНВЕНТАРЬ-МОДАЛКА ===== */

/* ===== ДИАЛОГ ОШИБКИ ИНВЕНТАРЯ ===== */
.inv-err-modal{position:fixed;inset:0;z-index:1500;display:none;align-items:center;justify-content:center;background:rgba(36,24,14,.55);backdrop-filter:blur(3px);padding:20px}
.inv-err-modal.open{display:flex}
.inv-err-win{background:#fff;border-radius:22px;padding:28px 24px 24px;width:380px;max-width:100%;text-align:center;box-shadow:0 24px 60px rgba(20,12,4,.35);animation:invPop .22s ease}
.inv-err-img{width:100px;height:100px;border-radius:16px;background:#FAF6EE;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;overflow:hidden;font-size:48px}
.inv-err-img img{width:100%;height:100%;object-fit:cover}
.inv-err-title{font-size:17px;font-weight:700;color:#241C14;margin-bottom:10px}
.inv-err-body{font-size:14px;color:#6B6358;line-height:1.6;margin-bottom:22px}
.inv-err-need{color:#E85A1A;font-weight:800}
.inv-err-btns{display:flex;flex-direction:column;gap:8px}
.inv-err-btn{border:none;border-radius:12px;padding:14px;font-size:14px;font-weight:700;cursor:pointer;transition:.15s;width:100%}
.inv-err-btn--primary{background:linear-gradient(135deg,#E85A1A,#B8400E);color:#fff;box-shadow:0 6px 16px rgba(232,90,26,.3)}
.inv-err-btn--primary:hover{transform:translateY(-1px)}
.inv-err-btn:not(.inv-err-btn--primary){background:#FAF6EE;color:#241C14}
.inv-err-btn:not(.inv-err-btn--primary):hover{background:#EFE6D6}
/* ===== END ДИАЛОГ ОШИБКИ ИНВЕНТАРЯ ===== */


/* ===== SITE CSS (из прототипа) ===== */
/* ============================================================================
   ТОКО-ТОКО — site.css · единая дизайн-система (новый дизайн)
   Бренд оранжевый · категории эспрессо · Unbounded + Onest · фон near-white
   ============================================================================ */
:root{
  --brand:#E85A1A; --brand-600:#D24F12; --brand-700:#B8400E; --brand-soft:#FDEDE2; --brand-tint:#FCF4EE;
  --espresso:#2A211A;
  --paper:#FFFFFF;
  --bg:#FAF8F4;            /* near-white тёплый — фон смещён к белому */
  --surface:#F3EFE7;       /* чуть тёплее — для панелей/иерархии */
  --ink:#241C14; --ink-2:#5E584E; --muted:#9C9488;
  --line:#EEE9DF; --cream-line:#ECE6DA;
  --success:#2E9E5B; --success-soft:#E7F5EC;
  --hot:#E8423A; --hot-soft:#FDECEA;
  --gold:#F5A623;
  --common:#9aa0a6; --rare:#3B9DF8; --epic:#A661E8; --leg:#F5A623;
  --case:#6B3FA0; --case-700:#4A2A7A;
  --stage:#1A1410; --stage-2:#241B14;
  --font-ui:'Onest',-apple-system,sans-serif; --font-display:'Unbounded',sans-serif;
  --radius:16px; --radius-sm:12px;
  --shadow-sm:0 2px 10px rgba(60,40,20,.06);
  --shadow-md:0 10px 30px rgba(60,40,20,.10);
  --shadow-lg:0 20px 50px rgba(60,40,20,.14);
  --ring:0 0 0 3px rgba(232,90,26,.16);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font-ui);color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;
  /* очень слабый тёплый свет сверху, чтобы белые карточки всё же выделялись */
  background-image:radial-gradient(1200px 380px at 50% -12%, #FCF5EF, transparent 60%);
  padding-bottom:84px;}
.container{max-width:1200px;margin:0 auto;padding:0 20px}
a{color:inherit;text-decoration:none}
.font-display{font-family:var(--font-display)}

/* ============================ ШАПКА ============================ */
.header{position:sticky;top:0;z-index:100;background:rgba(250,248,244,.86);backdrop-filter:saturate(1.3) blur(10px);border-bottom:1px solid var(--cream-line)}
.header__in{display:flex;align-items:center;gap:14px;height:74px}
.logo{display:flex;align-items:center;gap:11px;cursor:pointer;flex-shrink:0}
.logo__ico{width:46px;height:46px;border-radius:13px;background:linear-gradient(145deg,var(--brand),var(--brand-700));display:flex;align-items:center;justify-content:center;color:#fff;font-size:22px;box-shadow:var(--shadow-sm)}
.logo__txt{display:flex;flex-direction:column;line-height:1.05}
.logo__name{font-family:var(--font-display);font-weight:700;font-size:19px;letter-spacing:.4px}
.logo__city{display:flex;align-items:center;gap:4px;font-size:11.5px;color:var(--muted);font-weight:600;margin-top:2px}
.logo__city svg{color:var(--brand)}
.addr{display:flex;align-items:center;gap:10px;background:var(--paper);border:1px solid var(--cream-line);border-radius:13px;padding:7px 14px 7px 11px;cursor:pointer;transition:.15s;max-width:270px}
.addr:hover{border-color:var(--brand);box-shadow:var(--ring)}
.addr__pin{color:var(--brand);flex-shrink:0}
.addr__col{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.addr__lbl{font-size:10.5px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.4px}
.addr__val{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.spacer{flex:1}
.coins{display:flex;align-items:center;gap:7px;background:linear-gradient(135deg,#FFF6E0,#FFEFC9);border:1px solid #F4E2B0;border-radius:12px;padding:8px 13px;font:700 13.5px var(--font-ui);color:#9A6B00;cursor:pointer}
.hbtn{display:inline-flex;align-items:center;gap:7px;background:transparent;border:1px solid var(--cream-line);border-radius:13px;height:44px;padding:0 14px;font:600 14px var(--font-ui);color:var(--ink);cursor:pointer;transition:.15s}
.hbtn:hover{background:#F5EFE2;border-color:#E0D4BE;color:var(--brand-700)}
.hbtn svg{width:19px;height:19px}
.hbtn__count{background:var(--brand);color:#fff;border-radius:7px;padding:2px 7px;font:800 11px var(--font-ui)}
.user{display:flex;align-items:center;gap:9px;background:var(--paper);border:1px solid var(--cream-line);border-radius:13px;padding:5px 13px 5px 5px;cursor:pointer}
.user__av{width:32px;height:32px;border-radius:9px;background:linear-gradient(145deg,var(--brand),var(--brand-700));color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px}
.user__name{font-size:13px;font-weight:700;line-height:1.1}
.user__sub{font-size:11px;color:var(--muted)}
.cart{background:linear-gradient(135deg,var(--brand),var(--brand-600));border:none;border-radius:13px;height:44px;padding:0 18px 0 15px;display:flex;align-items:center;gap:11px;color:#fff;cursor:pointer;font:700 14px var(--font-ui);box-shadow:0 6px 18px rgba(232,90,26,.3);transition:.15s}
.cart:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(232,90,26,.4)}
.cart__badge{background:rgba(0,0,0,.22);border-radius:7px;padding:2px 8px;font:800 12px var(--font-ui)}

/* ============================ БАННЕРЫ ============================ */
.banners{margin:22px 0 8px}
.banners__grid{display:grid;grid-template-columns:1.7fr 1fr;gap:16px}
.banners__col{display:flex;flex-direction:column;gap:16px}
.banner{position:relative;border-radius:var(--radius);overflow:hidden;cursor:pointer;min-height:210px;display:flex;align-items:flex-end;padding:22px;color:#fff;box-shadow:var(--shadow-sm);transition:.2s;isolation:isolate}
.banner:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}
.banner::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,transparent 30%,rgba(0,0,0,.45))}
.banner__bg{position:absolute;inset:0;z-index:-2;background-size:cover;background-position:center}
.banner__deco{position:absolute;right:-24px;top:-24px;font-size:150px;opacity:.16;z-index:-1;transform:rotate(-8deg)}
.banner__tag{position:absolute;top:16px;left:16px;background:rgba(255,255,255,.22);backdrop-filter:blur(4px);border-radius:8px;padding:4px 10px;font:700 11px var(--font-ui);letter-spacing:.4px}
.banner h3{font-family:var(--font-display);font-size:26px;line-height:1.05}
.banner--hero h3{font-size:32px}
.banner__col h3{font-size:18px}
.banner p{font-size:13px;opacity:.92;margin-top:6px}
.banner__col .banner{min-height:97px;padding:16px}

/* ============================ РАЗДЕЛИТЕЛЬ ============================ */
.sec{margin-top:18px}
.sec__head{display:flex;align-items:center;gap:12px;margin:30px 0 18px}
.sec__title{display:flex;align-items:center;gap:11px}
.sec__title h2{font-family:var(--font-display);font-size:26px;letter-spacing:.3px}
.sec__title::before{content:"";width:6px;height:24px;border-radius:4px;background:linear-gradient(180deg,var(--brand),var(--brand-700))}
.sec__chip{font:700 11px var(--font-ui);color:var(--brand);background:var(--brand-soft);padding:4px 10px;border-radius:20px;letter-spacing:.4px}
.sec__line{flex:1;height:1px;background:linear-gradient(90deg,var(--cream-line),transparent)}

/* ============================ КАТЕГОРИИ (эспрессо) ============================ */
.catnav{position:sticky;top:74px;z-index:90;background:var(--paper);border-radius:14px;padding:12px 14px;display:flex;align-items:center;gap:9px;box-shadow:var(--shadow-sm);overflow-x:auto;scrollbar-width:none;margin-top:14px}
.catnav::-webkit-scrollbar{display:none}
.cat{flex:0 0 auto;border:none;background:var(--surface);color:#6B6358;border-radius:22px;padding:10px 18px;font:600 14px var(--font-ui);cursor:pointer;white-space:nowrap;transition:.15s}
.cat:hover{background:#EAE3D5}
.cat.active{background:var(--espresso);color:#fff}
.catsearch{flex:0 0 auto;margin-left:auto;width:40px;height:40px;border-radius:50%;border:none;background:var(--surface);color:var(--espresso);cursor:pointer;display:flex;align-items:center;justify-content:center}
.subcats{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0 4px}
.subcat{border:none;background:var(--surface);color:#6B6358;border-radius:20px;padding:8px 16px;font:600 13.5px var(--font-ui);cursor:pointer}
.subcat.active{background:var(--espresso);color:#fff}

/* ============================ КАРТОЧКА ТОВАРА ============================ */
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.card{background:transparent;cursor:pointer;display:flex;flex-direction:column;position:relative}
.card__img{position:relative;width:100%;padding-top:75%;overflow:hidden;background:var(--paper);border-radius:16px;margin-bottom:12px;box-shadow:var(--shadow-sm);border:1px solid var(--line)}
.card__img .ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:60px}
.card:hover .card__img .ph{transform:scale(1.05);transition:.3s}
.card__title{font-size:17px;font-weight:500;margin-bottom:6px;line-height:1.3}
.card__weight{font-size:15px;color:var(--muted);margin-bottom:12px}
.card__btn{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;background:#EEEAE2;border:none;border-radius:12px;cursor:pointer;font-weight:600;width:100%;font-size:16px;color:var(--ink);height:48px;margin-top:auto;transition:.18s;font-family:var(--font-ui)}
.card__btn:hover{background:#E5DFD3}
.card__btn span{font-size:17px;font-weight:700}
.card__btn svg{width:20px;height:20px;flex-shrink:0}
.card__btn .old{font-size:13px;font-weight:600;text-decoration:line-through;color:#A8A29A}
.card__btn .new{color:var(--hot)}
.card__btn--points{background:linear-gradient(135deg,#FFC94D,#F5A623);color:#3A2700}
.card__btn--points:hover{background:linear-gradient(135deg,#FFC94D,#F5A623);filter:brightness(1.03)}
.card__btn--case{background:linear-gradient(135deg,#7A4CB3,var(--case-700));color:#fff}
.card__btn--case:hover{filter:brightness(1.05)}
.qty{display:flex;align-items:stretch;background:var(--brand);border-radius:12px;width:100%;color:#fff;height:48px;overflow:hidden;margin-top:auto}
.qty button{flex:1;background:transparent;color:#fff;border:none;cursor:pointer;font-size:22px;font-weight:700}
.qty button:hover{background:rgba(0,0,0,.12)}
.qty span{flex:1.4;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px}
.card__count{position:absolute;inset:0;height:75%;background:rgba(0,0,0,.5);border-radius:16px;display:flex;align-items:center;justify-content:center;color:#fff;font:700 32px var(--font-display);z-index:2}
/* бейджи */
.badge{position:absolute;top:10px;left:10px;z-index:3;display:inline-flex;align-items:center;gap:5px;font:800 12px var(--font-ui);letter-spacing:.4px;padding:5px 10px;border-radius:9px;color:#fff;box-shadow:0 4px 12px rgba(0,0,0,.18)}
.badge svg{width:13px;height:13px}
.badge--top{background:linear-gradient(135deg,#FF7A33,var(--brand-700))}
.badge--new{background:var(--new,#2E9E5B)}
.badge--sale{background:var(--hot)}
.badge--excl{background:var(--espresso)}.badge--excl svg{color:var(--gold)}
.badge--points{background:var(--gold);color:#3A2700}
.badge--case{background:var(--case)}
.badge--star{background:var(--paper);color:var(--ink);box-shadow:var(--shadow-sm)}.badge--star svg{color:var(--gold)}
.discount{position:absolute;top:10px;right:10px;z-index:3;background:var(--hot);color:#fff;font:800 13px var(--font-display);padding:5px 9px;border-radius:9px;box-shadow:0 4px 12px rgba(232,66,58,.4)}

/* ============================ ТОП-БЕНТО ============================ */
.top-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;grid-auto-flow:dense}
.tcell{position:relative;transition:transform .2s}
.tcell:hover{transform:translateY(-3px)}
.tcell[data-w="2"]{grid-column:span 2}
.tcell[data-h="2"]{grid-row:span 2}
.tcell--prod .card__img{padding-top:100%}
.tbnr{color:#fff;display:flex;align-items:flex-end;padding:20px;position:relative;border-radius:16px;overflow:hidden;box-shadow:var(--shadow-sm);height:100%;min-height:160px;cursor:pointer}
.tbnr::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,rgba(0,0,0,.42))}
.tbnr>*{position:relative;z-index:1}
.tbnr--sale{background:linear-gradient(135deg,var(--hot),#B8231C)}
.tbnr--combo{background:linear-gradient(135deg,#FF8A3D,var(--brand-700))}
.tbnr .deco{position:absolute;right:-16px;bottom:-24px;font-size:120px;opacity:.18;z-index:0}
.tbnr h3{font-family:var(--font-display);font-size:24px;line-height:1.05}
.tbnr p{font-size:12.5px;opacity:.92;margin-top:5px}
.tbnr .arr{position:absolute;top:16px;right:16px;width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center}
.tcases{background:radial-gradient(120px 120px at 80% 20%,rgba(255,255,255,.18),transparent),linear-gradient(150deg,#2B1A4D,#4A2A7A 60%,#6B3FA0);color:#fff;display:flex;flex-direction:column;justify-content:space-between;padding:22px;border-radius:16px;overflow:hidden;box-shadow:var(--shadow-sm);height:100%;cursor:pointer}
.tcases .pill{align-self:flex-start;background:rgba(255,255,255,.18);border-radius:20px;padding:5px 12px;font:700 11px var(--font-ui);letter-spacing:.5px}
.tcases .gift{font-size:64px;align-self:center;margin:auto 0;filter:drop-shadow(0 8px 16px rgba(0,0,0,.4))}
.tcases h3{font-family:var(--font-display);font-size:26px}
.tcases p{font-size:12.5px;opacity:.85;margin-top:2px}
.tcases .btn{margin-top:12px;background:#fff;color:var(--case-700);border:none;border-radius:12px;padding:12px;font:800 13.5px var(--font-ui);cursor:pointer}

/* ============================ ЗАКАЗ ============================ */
.order{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;box-shadow:var(--shadow-sm);display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.order__status{display:flex;flex-direction:column;gap:4px;min-width:170px}
.order__badge{display:inline-flex;align-items:center;gap:7px;align-self:flex-start;background:var(--brand-soft);color:var(--brand-700);font:700 12px var(--font-ui);padding:6px 12px;border-radius:20px}
.order__badge .dot{width:7px;height:7px;border-radius:50%;background:var(--brand);animation:pulse 1.6s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
.order__no{font-size:13px;color:var(--muted)}
.order__eta{font-family:var(--font-display);font-size:22px}
.order__steps{flex:1;display:flex;align-items:flex-start;min-width:260px}
.ostep{flex:1;text-align:center;position:relative;font:600 11px var(--font-ui);color:var(--muted)}
.ostep__dot{width:26px;height:26px;border-radius:50%;background:var(--surface);border:2px solid var(--line);margin:0 auto 6px;display:flex;align-items:center;justify-content:center;font-size:12px;position:relative;z-index:2}
.ostep::before{content:"";position:absolute;top:13px;left:-50%;width:100%;height:2px;background:var(--line);z-index:1}
.ostep:first-child::before{display:none}
.ostep.done{color:var(--ink)}.ostep.done .ostep__dot{background:var(--success);border-color:var(--success);color:#fff}.ostep.done::before{background:var(--success)}
.ostep.active{color:var(--brand-700)}.ostep.active .ostep__dot{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:var(--ring)}
.order__total{text-align:right;min-width:110px}.order__total small{display:block;font-size:11px;color:var(--muted)}.order__total b{font-family:var(--font-display);font-size:22px}

/* ============================ НИЖНЕЕ МЕНЮ ============================ */
.mbn{position:fixed;left:0;right:0;bottom:0;z-index:95;background:rgba(250,248,244,.94);backdrop-filter:blur(12px);border-top:1px solid var(--cream-line);border-radius:22px 22px 0 0;box-shadow:0 -6px 24px rgba(60,40,20,.1);display:none;grid-template-columns:repeat(4,1fr);padding:8px 6px}
.mbn-item{display:flex;flex-direction:column;align-items:center;gap:3px;border:none;background:none;cursor:pointer;color:var(--muted);font:600 11px var(--font-ui);padding:6px 4px;position:relative}
.mbn-item svg{width:22px;height:22px;border-radius:12px;padding:3px 10px;box-sizing:content-box;transition:.18s}
.mbn-item.active{color:var(--brand-700)}
.mbn-item.active svg{background:var(--brand-soft)}
.mbn-badge{position:absolute;top:2px;right:50%;transform:translateX(16px);background:var(--hot);color:#fff;font:800 10px var(--font-ui);padding:1px 6px;border-radius:9px;border:2px solid #fff}

/* ============================ ФУТЕР ============================ */
.footer{margin-top:40px;border-top:1px solid var(--cream-line);padding:28px 0;color:var(--muted);font-size:13px}
.footer__in{display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:space-between}
.footer a{color:var(--ink-2)}

/* ============================ АДАПТИВ ============================ */
@media (max-width:900px){
  .grid{grid-template-columns:repeat(2,1fr);column-gap:14px;row-gap:26px}
  .card__img{padding-top:100%}
  .top-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:768px){
  .header__in{height:60px;gap:8px}
  .logo__ico{width:40px;height:40px}.logo__name{font-size:16px}
  .addr,.coins span,.hbtn span{display:none}
  .coins{padding:8px 10px}
  .banners__grid{display:flex;gap:12px;overflow-x:auto;scrollbar-width:none}
  .banners__grid::-webkit-scrollbar{display:none}
  .banners__col{display:contents}
  .banner{flex:0 0 80%;min-height:130px !important;padding:16px !important}
  .banner h3{font-size:20px !important}
  .catnav{top:60px}
  .mbn{display:grid}
  body{padding-bottom:84px}
}
.reveal{opacity:0;transform:translateY(12px);animation:rise .55s ease forwards}
@keyframes rise{to{opacity:1;transform:none}}

/* ============================ ОТКРЫТИЕ КЕЙСА ============================ */
.co-page{min-height:100dvh}
.stage{position:relative;max-width:760px;margin:22px auto;border-radius:26px;overflow:hidden;color:#fff;
  background:radial-gradient(120% 80% at 50% -10%, #3A2A1E 0%, var(--stage-2) 45%, var(--stage) 100%);
  box-shadow:0 24px 60px rgba(40,25,10,.3);padding:26px}
.stage__rays{position:absolute;inset:-20%;background:conic-gradient(from 0deg at 50% 40%, transparent 0 8deg, rgba(255,255,255,.04) 9deg 11deg, transparent 12deg 28deg);opacity:.6;animation:coSpin 26s linear infinite}
@keyframes coSpin{to{transform:rotate(360deg)}}
.stage__glow{position:absolute;left:50%;top:32%;width:320px;height:320px;transform:translate(-50%,-50%);border-radius:50%;filter:blur(55px);opacity:.55;background:var(--leg);transition:.3s}
.stage[data-rarity="common"] .stage__glow{background:var(--common)}.stage[data-rarity="rare"] .stage__glow{background:var(--rare)}
.stage[data-rarity="epic"] .stage__glow{background:var(--epic)}.stage[data-rarity="legendary"] .stage__glow{background:var(--leg)}
.stage__top{display:flex;align-items:center;justify-content:space-between;position:relative;z-index:2}
.sback{width:40px;height:40px;border-radius:12px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.sbal{display:flex;align-items:center;gap:7px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:12px;padding:8px 13px;font:700 14px var(--font-ui)}
.coin{width:18px;height:18px}
.showcase{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;padding:6px 0}
.showcase__img{width:200px;height:200px;display:flex;align-items:center;justify-content:center;font-size:120px;filter:drop-shadow(0 18px 30px rgba(0,0,0,.5));animation:coFloat 3.6s ease-in-out infinite}
@keyframes coFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
.rbadge{display:inline-flex;align-items:center;gap:6px;font:800 11px var(--font-ui);letter-spacing:.6px;text-transform:uppercase;padding:5px 12px;border-radius:20px;margin-top:6px;background:rgba(255,255,255,.12)}
.rbadge.legendary{background:linear-gradient(135deg,#FFD700,#FF9800);color:#3A2700}
.ctitle{font-family:var(--font-display);font-size:30px;margin-top:10px;text-align:center}
.cactions{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;gap:12px;margin-top:18px}
.openbtn{border:none;cursor:pointer;border-radius:16px;padding:16px 42px;font:800 17px var(--font-ui);color:#fff;background:linear-gradient(135deg,var(--brand),var(--brand-700));box-shadow:0 10px 28px rgba(232,90,26,.45);display:inline-flex;align-items:center;gap:10px;transition:.15s}
.openbtn:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(232,90,26,.55)}
.openbtn--free{background:linear-gradient(135deg,#34C759,#1E9E4A);box-shadow:0 10px 28px rgba(46,158,91,.4)}
.balline{font-size:13px;color:rgba(255,255,255,.6)}.balline b{color:#fff}
.roulette{position:relative;z-index:2;margin:24px 0 6px;overflow:hidden;border-radius:16px;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.25);height:150px}
.rpointer{position:absolute;left:50%;top:0;bottom:0;width:3px;transform:translateX(-50%);background:linear-gradient(180deg,var(--gold),transparent);z-index:3}
.rpointer::before{content:'';position:absolute;left:50%;top:0;transform:translateX(-50%);border:7px solid transparent;border-top-color:var(--gold)}
.rpointer::after{content:'';position:absolute;left:50%;bottom:0;transform:translateX(-50%);border:7px solid transparent;border-bottom-color:var(--gold)}
.rtrack{display:flex;gap:10px;padding:15px 0;align-items:center;height:100%;animation:roll 4s cubic-bezier(.12,.7,.18,1) forwards}
@keyframes roll{from{transform:translateX(0)}to{transform:translateX(-1180px)}}
.rcell{flex:0 0 120px;height:120px;border-radius:12px;background:#FBF7F0;display:flex;align-items:center;justify-content:center;font-size:48px;border-bottom:4px solid var(--common)}
.rcell.rare{border-color:var(--rare)}.rcell.epic{border-color:var(--epic)}.rcell.legendary{border-color:var(--leg)}
.prize{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center}
.prize__card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);border-radius:20px;padding:24px 30px;text-align:center;backdrop-filter:blur(4px);max-width:300px}
.prize__win{font:800 11px var(--font-ui);letter-spacing:1.5px;color:var(--gold);text-transform:uppercase}
.prize__img{font-size:92px;margin:10px 0;filter:drop-shadow(0 14px 24px rgba(0,0,0,.5))}
.prize__name{font-family:var(--font-display);font-size:23px}
.prize__val{font-size:14px;color:rgba(255,255,255,.7);margin-top:4px}
.again{margin-top:16px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08);color:#fff;border-radius:14px;padding:13px 26px;font:700 14px var(--font-ui);cursor:pointer;display:inline-flex;gap:8px;align-items:center}
.contents{max-width:760px;margin:0 auto 30px;background:var(--paper);border:1px solid var(--cream-line);border-radius:20px;padding:20px}
.contents__head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:14px}
.contents__head h3{font-family:var(--font-display);font-size:18px}
.contents__head span{font-size:12.5px;color:var(--muted)}
.citems{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.citem{border:1.5px solid var(--cream-line);border-radius:14px;overflow:hidden;background:#FCFAF6}
.citem::before{content:'';display:block;height:3px}
.citem.common::before{background:var(--common)}.citem.rare::before{background:var(--rare)}.citem.epic::before{background:var(--epic)}.citem.legendary::before{background:linear-gradient(90deg,#FFD700,#FF9800)}
.citem__img{aspect-ratio:1;display:flex;align-items:center;justify-content:center;font-size:40px}
.citem__name{font-size:12px;font-weight:600;text-align:center;padding:0 8px 4px;line-height:1.2}
.citem__chance{font-size:10.5px;color:var(--muted);text-align:center;padding-bottom:8px}
@media(max-width:768px){
  .stage{margin:0;border-radius:0;min-height:100dvh;display:flex;flex-direction:column;padding:14px 16px}
  .showcase__img{width:140px;height:140px;font-size:88px}.ctitle{font-size:21px}
  .openbtn{width:100%}
  .citems{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}.citems::-webkit-scrollbar{display:none}
  .citem{flex:0 0 84px}
  .contents{margin:12px;border-radius:16px}
}

/* ============================ ИНВЕНТАРЬ (игровой) ============================ */
.invg{display:grid;grid-template-columns:1fr 340px;gap:18px;height:calc(100dvh - 200px);min-height:420px;margin-top:14px}
.invg__main{background:var(--surface);border:1px solid var(--cream-line);border-radius:20px;padding:16px;display:flex;flex-direction:column;min-height:0}
.invg__head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.invg__head h1{font-family:var(--font-display);font-size:22px;margin-right:auto}
.invg__count{font-size:12.5px;color:var(--muted);font-weight:600}
.invg__filters{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}
.iflt{border:none;background:#FBF7F0;color:#6B6358;border-radius:16px;padding:7px 14px;font:600 12.5px var(--font-ui);cursor:pointer}
.iflt.active{background:var(--espresso);color:#fff}
.islots{flex:1;min-height:0;overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:10px;padding-right:4px;align-content:start}
.islots::-webkit-scrollbar{width:8px}.islots::-webkit-scrollbar-thumb{background:#D9CDB8;border-radius:4px}
.islot{aspect-ratio:1;border-radius:14px;background:#FBF7F0;border:2px solid #E6DDCB;position:relative;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:38px;transition:.15s;overflow:hidden}
.islot:hover{transform:translateY(-2px)}
.islot.common{border-color:#D9CFBE}.islot.rare{border-color:#BBDEFB}.islot.epic{border-color:#E1BEE7}.islot.legendary{border-color:#FFDF9E}
.islot__c{position:absolute;top:5px;left:5px;width:7px;height:7px;border-radius:50%}
.islot.common .islot__c{background:var(--common)}.islot.rare .islot__c{background:var(--rare)}.islot.epic .islot__c{background:var(--epic)}.islot.legendary .islot__c{background:var(--gold)}
.islot__e{position:absolute;bottom:4px;right:5px;font:700 9px var(--font-ui);color:#fff;background:rgba(40,25,10,.55);border-radius:6px;padding:1px 5px}
.islot.sel.common{box-shadow:0 0 0 2px var(--common),0 8px 20px rgba(154,160,166,.3);transform:translateY(-2px)}
.islot.sel.rare{box-shadow:0 0 0 2px var(--rare),0 8px 20px rgba(59,157,248,.3);transform:translateY(-2px)}
.islot.sel.epic{box-shadow:0 0 0 2px var(--epic),0 8px 20px rgba(166,97,232,.3);transform:translateY(-2px)}
.islot.sel.legendary{box-shadow:0 0 0 2px var(--gold),0 8px 20px rgba(245,166,35,.35);transform:translateY(-2px)}
.idetail{background:#fff;border:1px solid var(--cream-line);border-radius:20px;padding:20px;display:flex;flex-direction:column;overflow:hidden}
.idetail--empty{align-items:center;justify-content:center;text-align:center;color:var(--muted);gap:10px}
.idetail--empty svg{opacity:.4}
.idetail__img{height:150px;border-radius:16px;background:var(--surface);display:flex;align-items:center;justify-content:center;font-size:84px;margin-bottom:14px}
.irar{align-self:flex-start;font:800 11px var(--font-ui);letter-spacing:.5px;text-transform:uppercase;padding:4px 11px;border-radius:14px;margin-bottom:8px}
.irar.common{background:#EEE9DF;color:#7A7263}.irar.rare{background:#E3F2FD;color:#1976D2}.irar.epic{background:#F3E5F5;color:#7B1FA2}.irar.legendary{background:linear-gradient(135deg,#FFD700,#FFA500);color:#fff}
.idetail__name{font-family:var(--font-display);font-size:20px;margin-bottom:4px;line-height:1.15}
.idetail__src{font-size:12.5px;color:var(--muted);margin-bottom:14px}
.iprices{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.ipbox{background:var(--surface);border-radius:13px;padding:11px 13px}
.ipbox small{display:block;font-size:11px;color:var(--muted);font-weight:600;margin-bottom:3px}
.ipbox b{font-family:var(--font-display);font-size:19px}
.ipbox--add b{color:var(--success)}
.imin{display:flex;align-items:center;gap:7px;background:var(--brand-soft);border-radius:11px;padding:10px 13px;font-size:12.5px;color:#7A4A28;margin-bottom:14px}
.imin svg{flex-shrink:0;color:var(--brand)}
.iadd{margin-top:auto;border:none;background:linear-gradient(135deg,var(--brand),var(--brand-700));color:#fff;border-radius:14px;padding:15px;font:800 15px var(--font-ui);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 8px 20px rgba(232,90,26,.3)}
.iadd:hover{transform:translateY(-1px)}
.isheet{position:fixed;left:0;right:0;bottom:0;z-index:1200;background:#fff;border-radius:22px 22px 0 0;padding:18px;transform:translateY(110%);transition:.28s;box-shadow:0 -10px 40px rgba(40,25,10,.25);max-width:520px;margin:0 auto}
.isheet.open{transform:none}.isheet__h{width:40px;height:4px;border-radius:2px;background:#E0D6C4;margin:0 auto 14px}
.iover{position:fixed;inset:0;background:rgba(30,20,10,.45);z-index:1199;opacity:0;visibility:hidden;transition:.25s}.iover.open{opacity:1;visibility:visible}
@media(max-width:768px){.invg{grid-template-columns:1fr;height:calc(100dvh - 150px)}.invg__main>.idetail{display:none}.islots{grid-template-columns:repeat(3,1fr)}}

/* ============================ CHECKOUT ============================ */
.ck{display:grid;grid-template-columns:1fr 380px;gap:24px;margin-top:18px;align-items:start}
.ckbox{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:20px;margin-bottom:16px}
.ckbox h3{font-family:var(--font-display);font-size:17px;margin-bottom:14px;display:flex;align-items:center;gap:9px}
.ckbox h3 .n{width:26px;height:26px;border-radius:50%;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;font:800 13px var(--font-ui)}
.cktabs{display:flex;gap:8px;margin-bottom:14px}
.cktab{flex:1;border:none;background:var(--surface);border-radius:12px;padding:11px;font:600 14px var(--font-ui);color:#6B6358;cursor:pointer}
.cktab.active{background:var(--espresso);color:#fff}
.field{margin-bottom:12px}.field label{display:block;font-size:12.5px;color:var(--muted);font-weight:600;margin-bottom:5px}
.field input,.field textarea{width:100%;border:1.5px solid var(--cream-line);border-radius:12px;padding:13px 14px;font:500 14px var(--font-ui);color:var(--ink);background:#FCFBF8;transition:.15s}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--brand);box-shadow:var(--ring);background:#fff}
.frow{display:flex;gap:10px}.frow .field{flex:1}
.paylist{display:flex;flex-direction:column;gap:10px}
.pay{display:flex;align-items:center;gap:12px;border:1.5px solid var(--cream-line);border-radius:12px;padding:13px 14px;cursor:pointer;transition:.15s}
.pay.sel{border-color:var(--brand);background:var(--brand-soft)}
.pay__r{width:20px;height:20px;border-radius:50%;border:2px solid var(--cream-line);flex-shrink:0;position:relative}
.pay.sel .pay__r{border-color:var(--brand)}.pay.sel .pay__r::after{content:'';position:absolute;inset:4px;border-radius:50%;background:var(--brand)}
.summary{position:sticky;top:90px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow-sm)}
.summary h3{font-family:var(--font-display);font-size:18px;margin-bottom:14px}
.sitem{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.sitem__img{width:48px;height:48px;border-radius:10px;background:var(--surface);display:flex;align-items:center;justify-content:center;font-size:24px;flex-shrink:0}
.sitem__n{flex:1;font-size:13.5px;font-weight:600}.sitem__n small{display:block;color:var(--muted);font-weight:500}
.sitem__p{font-family:var(--font-display);font-size:14px}
.srow{display:flex;justify-content:space-between;padding:7px 0;font-size:14px;color:var(--ink-2)}
.srow--total{border-top:1px solid var(--line);margin-top:8px;padding-top:14px;font-size:16px;color:var(--ink);font-weight:700}
.srow--total b{font-family:var(--font-display);font-size:24px}
.ckcta{width:100%;border:none;background:linear-gradient(135deg,var(--brand),var(--brand-700));color:#fff;border-radius:14px;padding:16px;font:800 16px var(--font-ui);cursor:pointer;margin-top:14px;box-shadow:0 8px 22px rgba(232,90,26,.32)}
.ckcta:hover{transform:translateY(-1px)}
.promo{display:flex;gap:8px;margin:6px 0 12px}
.promo input{flex:1;border:1.5px solid var(--cream-line);border-radius:11px;padding:11px 13px;font:500 14px var(--font-ui);background:#FCFBF8}
.promo button{border:none;background:var(--espresso);color:#fff;border-radius:11px;padding:0 18px;font:700 13px var(--font-ui);cursor:pointer}
@media(max-width:900px){.ck{grid-template-columns:1fr}.summary{position:static}}

