/* Шрифты загружаются неблокирующе через <link> в index.php */
/* @import удалены для предотвращения блокировки рендеринга */

@font-face {
    font-family: 'Songer';
    src: url('https://cdn.jsdelivr.net/gh/nicktimko/font-songer/SONGER_SE_Bold.otf') format('opentype');
    font-weight: bold;
}

/* ===== SAFE AREA И TELEGRAM MINI APPS ===== */
:root {
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
    /* Посадка нижнего меню. Одно число на ВСЕ стили меню (float, glow, pill,
       glass, dock, minimal, bubble, ios, frosted, neon). Больше значение — выше меню. */
    --nav-bottom-gap: 6px;
    --tg-viewport-height: 100vh;
    --tg-viewport-stable-height: 100vh;
    /* КРИТИЧНО: НЕ задаём тут цвета - они придут из PHP/JS! */
}

/* Telegram Mini App - цвет берётся из inline-стилей или JS */
body.tg-webapp {
    background-color: var(--bg-color, inherit) !important;
}

html.tg-webapp,
body.tg-webapp,
body.tg-webapp .main-content,
body.tg-webapp .catalog-section,
body.tg-webapp .stories-section,
body.tg-webapp .categories-section,
body.tg-webapp .section-header {
    background-color: var(--bg-color, inherit) !important;
}

/* ===== ОПТИМИЗАЦИИ ДЛЯ ПРОИЗВОДИТЕЛЬНОСТИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    height: 100%;
    height: -webkit-fill-available;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    min-height: var(--tg-viewport-stable-height, 100vh);
    padding-top: var(--safe-area-top);
    padding-bottom: var(--safe-area-bottom);
    padding-left: var(--safe-area-left);
    padding-right: var(--safe-area-right);
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
}

/* Блокировка движения окна в Telegram */
html {
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* GPU ускорение для модалок и анимаций */
.cart-modal,
.checkout-modal,
.success-modal,
.upsell-modal,
.product-modal,
.modifiers-popup,
.bottom-nav,
.notification {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Быстрые переходы */
.product-card,
.category-chip,
.story-card,
.bottom-nav-item,
button,
.btn {
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

/* Активное нажатие */
.product-card:active,
.category-chip:active,
.story-card:active,
button:active {
    transform: scale(0.97);
}

/* Отключаем анимации для экономии батареи */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:root {
    /* ВСЕ цветовые переменные теперь задаются из PHP inline в index.php
       Это предотвращает флеш дефолтных цветов при загрузке.
       Здесь оставляем ТОЛЬКО те переменные, которые НЕ зависят от дизайна магазина */
    
    --neon-pink: #fbc3dc;
    --product-font-family: 'Montserrat', sans-serif;
    
    /* Категории - вспомогательные */
    --category-border: #333;
    --category-hover: #252525;
    
    /* Спецпредложения - вспомогательные */
    --stories-border-color: #ffffff;
    --stories-border-width: 0;
    
    /* Общие */
    --shadow-color: rgba(0, 0, 0, 0.8);
    --border-radius: 16px;
}

/* ===== КРАСИВАЯ ЗАГРУЗКА ===== */
.loading-screen {
    position: fixed;
    top: -50px;
    left: 0;
    right: 0;
    bottom: -50px;
    width: 100%;
    background: var(--bg-color, #0a0a0f);  /* Используем переменную! */
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Блокируем скролл пока идёт загрузка */
body:not(.loaded) {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* Скрываем контент пока не загрузится */
body:not(.loaded) .stories-section,
body:not(.loaded) .categories-section,
body:not(.loaded) .products-section,
body:not(.loaded) #bottomNav,
body:not(.loaded) .section-header:not(.loading-screen *) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Плавное появление контента (убирает "блик" при возврате из ЛК) */
body.loaded .stories-section,
body.loaded .categories-section,
body.loaded .products-section,
body.loaded #bottomNav,
body.loaded .section-header:not(.loading-screen *) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.15s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.loading-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

@keyframes bgShift {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.falling-emojis {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.falling-emoji {
    position: absolute;
    font-size: 30px;
    animation: fall linear forwards;
    opacity: 0.7;
    filter: blur(1px);
}

@keyframes fall {
    0% {
        transform: translateY(-50px) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
        transform: scale(1);
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) scale(0.3);
        opacity: 0;
    }
}

.loading-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.loading-stage {
    display: none;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.3s ease;
}

.loading-stage.active {
    display: flex;
}

/* Контейнер логотипа - всегда видимый */
.loading-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-emoji {
    font-size: 80px;
    filter: drop-shadow(0 0 30px rgba(251, 195, 220, 0.6));
}

/* Без свечения эмодзи */
.no-emoji-glow .loading-emoji,
.no-emoji-glow .falling-emoji {
    filter: none !important;
    text-shadow: none !important;
}

.no-emoji-glow .loading-emoji.pulse {
    animation: pulse-no-glow 1s ease-in-out infinite !important;
}

@keyframes pulse-no-glow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Анимация для логотипа загрузки */
.loading-logo-img {
    width: 150px;
    height: 150px;
    object-fit: contain !important;
    /* Размер задаётся динамически через loadingLogoScale в JS */
}

/* Для GIF - полностью отключаем CSS анимации */
.loading-logo-img.is-gif {
    animation: none !important;
}

/* CSS анимация только если включена */
.loading-emoji.with-css-animation .loading-logo-img {
    animation: logoFloat 2s ease-in-out infinite;
}

/* Для GIF в контейнере тоже отключаем анимацию */
.loading-emoji.with-css-animation .loading-logo-img.is-gif {
    animation: none !important;
}

/* Когда есть логотип - контейнер подстраивается под размер */
.loading-emoji.has-logo {
    font-size: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Скрытие текста этапов */
.hide-loading-text .loading-text,
.hide-loading-text .loading-dots {
    display: none !important;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

/* Отключение анимации движения */
.loading-emoji.no-animation,
.loading-emoji.no-animation .loading-logo-img {
    animation: none !important;
}

.loading-emoji.bounce {
    animation: bounce 1s ease-in-out infinite;
}

.loading-emoji.spin {
    animation: spinBounce 1.5s ease-in-out infinite;
}

.loading-emoji.pulse {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

@keyframes spinBounce {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(10deg) scale(1.1); }
    50% { transform: rotate(0deg) scale(1); }
    75% { transform: rotate(-10deg) scale(1.1); }
    100% { transform: rotate(0deg) scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 30px rgba(251, 195, 220, 0.6)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 50px rgba(251, 195, 220, 0.9)); }
}

.loading-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(251, 195, 220, 0.5);
}

.loading-dots {
    display: flex;
    gap: 5px;
}

.loading-dots span {
    font-size: 30px;
    color: inherit; /* Наследует цвет от родителя */
    animation: dotPulse 1.5s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-5px); }
}

.loading-progress {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== КНОПКА СМЕНЫ ТЕМЫ НА САЙТЕ ===== */
.theme-toggle-site {
    display: none;
    margin-left: auto;
}

.theme-toggle-site.hidden-theme-btn,
.hidden-theme-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.theme-toggle-site input {
    display: none;
}

.theme-toggle-site label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 34px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 34px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 
        0 0 20px rgba(251, 195, 220, 0.3),
        0 0 40px rgba(251, 195, 220, 0.15),
        inset 0 0 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(251, 195, 220, 0.3);
}

.theme-toggle-site label::before {
    content: '';
    position: absolute;
    left: 4px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #fbc3dc 0%, #ffffff 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(251, 195, 220, 0.6);
}

.theme-toggle-site label:hover {
    box-shadow: 
        0 0 30px rgba(251, 195, 220, 0.5),
        0 0 60px rgba(251, 195, 220, 0.3),
        inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.theme-toggle-site .theme-icon-dark,
.theme-toggle-site .theme-icon-light {
    position: absolute;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 1;
}

.theme-toggle-site .theme-icon-dark {
    left: 10px;
    opacity: 1;
}

.theme-toggle-site .theme-icon-light {
    right: 10px;
    opacity: 0.3;
}

.theme-toggle-site input:checked ~ label {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-color: rgba(255, 193, 7, 0.4);
    box-shadow: 
        0 0 25px rgba(255, 193, 7, 0.4),
        0 0 50px rgba(255, 193, 7, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.5);
}

.theme-toggle-site input:checked ~ label::before {
    transform: translateX(36px);
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.7);
}

.theme-toggle-site input:checked ~ label .theme-icon-dark {
    opacity: 0.3;
}

.theme-toggle-site input:checked ~ label .theme-icon-light {
    opacity: 1;
}

/* ===== ОНБОРДИНГ - КОСМОС ===== */
.onboarding {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color, #0a0a0f);  /* Используем переменную! */
    z-index: 50000;
    overflow: hidden;
}

.onboarding.hidden {
    display: none;
}

.onboarding-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.onboarding-step.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.onboarding-step.exit {
    opacity: 0;
    transform: scale(1.1);
}

/* ===== ПРИВЕТСТВИЕ ===== */
.welcome-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Фон модалки = выбранный цвет фона магазина (без пёстрых градиентов) */
    background: var(--bg-color, #0a0a0f);
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

.welcome-logo {
    font-size: 100px;
    margin-bottom: 30px;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(233, 30, 99, 0.5));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.welcome-title {
    font-family: var(--product-font-family, var(--font-family, 'Montserrat', sans-serif));
    font-size: 48px;
    font-weight: 800;
    color: var(--text-color, #fff);
    margin-bottom: 20px;
    -webkit-text-fill-color: currentColor;
}

.welcome-text {
    font-family: var(--product-font-family, var(--font-family, 'Montserrat', sans-serif));
    font-size: 16px;
    color: var(--text-color, rgba(255, 255, 255, 0.8));
    opacity: 0.75;
    line-height: 1.8;
    max-width: 300px;
    margin: 0 auto 40px;
}

.welcome-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color, var(--primary-color)));
    border: none;
    border-radius: 50px;
    color: white;
    font-family: var(--product-font-family, var(--font-family, 'Montserrat', sans-serif));
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    margin: 0 auto;
}

.welcome-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.32);
}

.welcome-btn:active {
    transform: scale(0.98);
}

.btn-arrow {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.welcome-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* ===== КОНТЕНТ ===== */
.onboarding-content {
    text-align: center;
    padding: 60px 20px 40px 20px;
    max-width: 420px;
    width: 100%;
    position: relative;
    z-index: 2;
    margin-top: auto;
    margin-bottom: auto;
}

.back-btn {
    position: fixed;
    top: 25px;
    left: 25px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 14px 24px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* ===== ИНДИКАТОР ШАГОВ ===== */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.step-dot.active {
    width: 30px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.step-dot.done {
    background: #4caf50;
}

/* ===== ЭМОДЗИ ===== */
.onboarding-emoji {
    font-size: 80px;
    margin-bottom: 20px;
}

.onboarding-emoji.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.onboarding-emoji.bounce {
    animation: bounce-soft 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes bounce-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.onboarding-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.onboarding-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 35px;
}

/* ===== ОПЦИИ ВЫБОРА ===== */
.onboarding-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    z-index: 5;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.option-card:active {
    transform: scale(0.98);
}

.option-card.delivery:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(233, 30, 99, 0.2);
}

.option-card.pickup:hover {
    border-color: #4caf50;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.2);
}

.option-icon {
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.option-content {
    flex: 1;
}

.option-title {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.option-desc {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.option-arrow {
    font-size: 30px;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.option-card:hover .option-arrow {
    color: white;
    transform: translateX(5px);
}

/* ===== СПИСОК ГОРОДОВ - ПРЕМИУМ КАРТОЧКИ ===== */
.cities-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: none;
    overflow-y: visible;
    overflow-x: hidden;
    padding: 10px 5px 40px 5px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.cities-list::-webkit-scrollbar {
    width: 0;
    display: none;
}

.city-card {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.9) 0%, rgba(20, 20, 35, 0.95) 100%);
    border-radius: 20px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Градиентная рамка при ховере */
.city-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, #ffffff, #666666, #673ab7);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.city-card:hover::before {
    opacity: 1;
}

/* Свечение */
.city-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.city-card:hover::after {
    opacity: 1;
}

.city-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 60px rgba(233, 30, 99, 0.25), 0 0 40px rgba(156, 39, 176, 0.15);
}

.city-card:active {
    transform: scale(0.98);
}

/* Контент карточки */
.city-card-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 18px;
}

.city-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.3), rgba(156, 39, 176, 0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
}

/* Анимированный дым для машинки */
.city-icon::after {
    content: '💨';
    position: absolute;
    right: -10px;
    font-size: 18px;
    opacity: 0;
    animation: smokePuff 2s ease-in-out infinite;
}

@keyframes smokePuff {
    0% {
        opacity: 0;
        transform: translateX(0) scale(0.5);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-15px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-30px) scale(1.2);
    }
}

.city-details {
    flex: 1;
    min-width: 0;
}

.city-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
    display: block;
}

.city-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.city-free {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #ffd54f;
    display: flex;
    align-items: center;
    gap: 4px;
}

.city-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.city-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.city-badge.price {
    color: #ffd54f;
    background: rgba(255, 213, 79, 0.15);
    border: 1px solid rgba(255, 213, 79, 0.3);
}

.city-badge.free {
    color: #69f0ae;
    background: rgba(105, 240, 174, 0.15);
    border: 1px solid rgba(105, 240, 174, 0.3);
}

.city-arrow {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.city-card:hover .city-arrow {
    background: linear-gradient(135deg, #ffffff, #666666);
    color: white;
    transform: translateX(4px);
}

/* ===== КАРТОЧКИ САМОВЫВОЗА ===== */
.pickups-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: none;
    overflow-y: visible;
    overflow-x: hidden;
    padding: 10px 5px 40px 5px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.pickups-list::-webkit-scrollbar {
    width: 0;
    display: none;
}

.pickup-card {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 50, 35, 0.9) 0%, rgba(20, 35, 25, 0.95) 100%);
    border-radius: 24px;
    padding: 22px 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    overflow: hidden;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.pickup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, #4caf50, #00c853, #69f0ae);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pickup-card:hover::before {
    opacity: 1;
}

.pickup-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.pickup-card:hover::after {
    opacity: 1;
}

.pickup-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 60px rgba(76, 175, 80, 0.25), 0 0 40px rgba(105, 240, 174, 0.15);
}

.pickup-card-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 18px;
}

.pickup-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(105, 240, 174, 0.2));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
}

.pickup-details {
    flex: 1;
}

.pickup-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
    display: block;
}

.pickup-address {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.pickup-hours {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #69f0ae;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pickup-arrow {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pickup-card:hover .pickup-arrow {
    background: linear-gradient(135deg, #4caf50, #00c853);
    color: white;
    transform: translateX(4px);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== ЗАГРУЗКА И СПИННЕР ===== */
.loading-container {
    padding: 40px;
}

.spinner-ring {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    position: relative;
    animation: spinnerRotate 2s linear infinite;
}

@keyframes spinnerRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinner-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-radius: 50%;
}

.spinner-segment:nth-child(1) {
    border-top-color: #ffffff;
    animation: spinnerPulse 1.5s ease-in-out infinite;
}

.spinner-segment:nth-child(2) {
    border-right-color: #666666;
    animation: spinnerPulse 1.5s ease-in-out infinite 0.2s;
}

.spinner-segment:nth-child(3) {
    border-bottom-color: #673ab7;
    animation: spinnerPulse 1.5s ease-in-out infinite 0.4s;
}

@keyframes spinnerPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.95); }
}

.loading-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ===== УСПЕХ ===== */
.success-container {
    animation: successAppear 0.5s ease-out;
}

.success-container.hidden {
    display: none;
}

@keyframes successAppear {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.success-check {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: white;
    box-shadow: 0 10px 40px rgba(76, 175, 80, 0.4);
    animation: checkBounce 0.5s ease-out;
}

@keyframes checkBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ===== КОНФЕТТИ ===== */
.confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.confetti-piece {
    position: absolute;
    width: 12px;
    height: 12px;
    top: -20px;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===== НОВЫЙ ОНБОРДИНГ - ИМЯ, ПОЛ, ДЕНЬ РОЖДЕНИЯ ===== */

/* Анимированные эмодзи */
.animated-emoji {
    display: inline-block;
}

.animated-emoji.wave {
    animation: wave 2s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60%, 100% { transform: rotate(0deg); }
}

/* Поле ввода имени */
.input-wrapper {
    margin-bottom: 30px;
}

.onboarding-input {
    width: 100%;
    padding: 18px 24px;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
}

.onboarding-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.onboarding-input:focus {
    border-color: #ffffff;
    background: rgba(233, 30, 99, 0.1);
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.3);
}

/* Выбор пола */
.gender-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.gender-card {
    flex: 1;
    max-width: 140px;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gender-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.gender-card:active {
    transform: scale(0.95);
}

.gender-card.selected {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.3), rgba(156, 39, 176, 0.2));
    border-color: #ffffff;
    box-shadow: 0 0 30px rgba(233, 30, 99, 0.4);
}

.gender-emoji {
    font-size: 50px;
    transition: transform 0.3s ease;
}

.gender-card:hover .gender-emoji {
    transform: scale(1.1);
}

.gender-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

/* Выбор дня рождения */
.birthday-picker {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.birthday-select {
    padding: 15px 20px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.birthday-select option {
    background: #1a1a2e;
    color: white;
}

.birthday-select:focus {
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.3);
}

/* Кнопка пропустить */
.skip-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.skip-btn:hover {
    color: white;
}

/* ===== ПЛАВАЮЩИЕ ЭМОДЗИ ===== */
.floating-emojis {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.floating-emoji {
    position: absolute;
    font-size: 30px;
    opacity: 0.4;
    animation: floatUp 5s ease-out forwards;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
        transform: translateY(90vh) rotate(30deg) scale(1);
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-50px) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* ===== ЧАСТИЦЫ ===== */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-30px) translateX(20px);
        opacity: 1;
    }
}

body.light-theme {
    --bg-color: var(--light-bg-color, #ffffff);
    --text-color: var(--light-text-color, #000000);
    --card-bg: var(--light-card-bg, #f5f5f5);
    --card-border: #e0e0e0;
    --header-bg: var(--light-bg-color, #ffffff);
    --category-bg: var(--light-bg-color, #ffffff);
    --category-border: #ddd;
    --category-hover: #f0f0f0;
    --category-active-bg: #000000;
    --category-active-text: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-color);
    min-height: 100vh;
    padding: 0;
    color: var(--text-color);
}

body.light-theme {
    background: var(--light-bg-color, #ffffff) !important;
    color: var(--light-text-color, #000000) !important;
}

body.light-theme .product-card,
body.light-theme .product-info {
    background: var(--light-card-bg, #f5f5f5) !important;
}

/* Светлая тема для каталога */
body.light-theme .product-name,
body.light-theme .product-price,
body.light-theme .header-fixed h1,
body.light-theme .category-btn,
body.light-theme .onboarding-title,
body.light-theme .onboarding-subtitle,
body.light-theme .city-name,
body.light-theme .pickup-name,
body.light-theme h1, body.light-theme h2, body.light-theme h3 {
    color: var(--light-text-color, #000000) !important;
}

body.light-theme .category-btn.active {
    background: #000000 !important;
    color: #ffffff !important;
}

body.light-theme .product-card {
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* Светлая тема - онбординг */
body.light-theme .onboarding-overlay {
    background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 100%) !important;
}

body.light-theme .welcome-bg {
    background: 
        radial-gradient(circle at 20% 80%, rgba(233, 30, 99, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(156, 39, 176, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%) !important;
}

body.light-theme .city-card,
body.light-theme .pickup-card {
    background: var(--light-card-bg, #f5f5f5) !important;
    border: 1px solid #e0e0e0 !important;
}

body.light-theme .city-card::before,
body.light-theme .pickup-card::before {
    background: linear-gradient(135deg, #ffffff, #666666, #673ab7) !important;
}

body.light-theme .city-name,
body.light-theme .pickup-name,
body.light-theme .city-price,
body.light-theme .pickup-address,
body.light-theme .city-free,
body.light-theme .pickup-hours {
    color: var(--light-text-color, #000000) !important;
}

body.light-theme .welcome-text,
body.light-theme .welcome-title,
body.light-theme .loading-text {
    color: var(--light-text-color, #000000) !important;
}

body.light-theme .back-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #000000 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .step-icon {
    background: var(--light-card-bg, #f5f5f5) !important;
    border: 2px solid #e0e0e0 !important;
}

body.light-theme .choice-btn {
    background: var(--light-card-bg, #f5f5f5) !important;
    color: var(--light-text-color, #000000) !important;
    border: 2px solid #e0e0e0 !important;
}

body.light-theme .choice-btn:hover {
    border-color: #ffffff !important;
}

/* Светлая тема - header */
body.light-theme .header-fixed {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

/* Светлая тема - категории */
body.light-theme .category-btn {
    background: var(--light-card-bg, #f5f5f5) !important;
    color: var(--light-text-color, #000000) !important;
    border: 1px solid #e0e0e0 !important;
}

/* Светлая тема - корзина */
body.light-theme .cart-popup,
body.light-theme .cart-content {
    background: var(--light-bg-color, #ffffff) !important;
    color: var(--light-text-color, #000000) !important;
}

body.light-theme .cart-item {
    background: var(--light-card-bg, #f5f5f5) !important;
    border: 1px solid #e0e0e0 !important;
}

body.light-theme .cart-item-name,
body.light-theme .cart-item-price,
body.light-theme .cart-total-label,
body.light-theme .cart-total-price {
    color: var(--light-text-color, #000000) !important;
}

body.light-theme .cart-empty-text {
    color: #888 !important;
}

body.light-theme .cart-quantity {
    border-color: #ccc !important;
    background: transparent !important;
}

body.light-theme .qty-btn {
    color: var(--light-text-color, #000000) !important;
    background: transparent !important;
}

body.light-theme .qty-value {
    color: var(--light-text-color, #000000) !important;
}

/* Светлая тема - расширенные стили */
body.light-theme .modal-content,
body.light-theme .modal-overlay .modal-content,
body.light-theme .checkout-modal,
body.light-theme .product-modal {
    background: var(--light-bg-color, #ffffff) !important;
    color: var(--light-text-color, #000000) !important;
}

body.light-theme .modal-title,
body.light-theme .product-modal-name,
body.light-theme .product-modal-price,
body.light-theme .product-modal-description,
body.light-theme .checkout-title,
body.light-theme .section-title {
    color: var(--light-text-color, #000000) !important;
}

/* Светлая тема - формы и инпуты */
body.light-theme input,
body.light-theme textarea,
body.light-theme select,
body.light-theme .input-field,
body.light-theme .form-input {
    background: var(--light-card-bg, #f5f5f5) !important;
    color: var(--light-text-color, #000000) !important;
    border: 1px solid #d0d0d0 !important;
}

body.light-theme input::placeholder,
body.light-theme textarea::placeholder {
    color: #888888 !important;
}

body.light-theme input:focus,
body.light-theme textarea:focus,
body.light-theme select:focus {
    border-color: #ffffff !important;
    outline: none;
}

/* Светлая тема - лейблы и текст */
body.light-theme label,
body.light-theme .label,
body.light-theme .input-label,
body.light-theme .form-label,
body.light-theme p,
body.light-theme span:not(.emoji):not(.loading-emoji) {
    color: var(--light-text-color, #000000) !important;
}

/* Светлая тема - секции оформления */
body.light-theme .checkout-section,
body.light-theme .order-section,
body.light-theme .delivery-section {
    background: var(--light-card-bg, #f5f5f5) !important;
    border: 1px solid #e0e0e0 !important;
}

body.light-theme .checkout-section-title,
body.light-theme .section-header {
    color: var(--light-text-color, #000000) !important;
}

/* Светлая тема - карточки доставки */
body.light-theme .delivery-option,
body.light-theme .payment-option,
body.light-theme .time-slot {
    background: var(--light-card-bg, #f5f5f5) !important;
    color: var(--light-text-color, #000000) !important;
    border: 1px solid #e0e0e0 !important;
}

body.light-theme .delivery-option.active,
body.light-theme .payment-option.active,
body.light-theme .time-slot.active {
    border-color: #ffffff !important;
    background: rgba(233, 30, 99, 0.1) !important;
}

/* Светлая тема - модификаторы */
body.light-theme .modifier-item,
body.light-theme .modifier-group,
body.light-theme .upsell-item {
    background: var(--light-card-bg, #f5f5f5) !important;
    color: var(--light-text-color, #000000) !important;
    border: 1px solid #e0e0e0 !important;
}

body.light-theme .modifier-name,
body.light-theme .modifier-price,
body.light-theme .upsell-name,
body.light-theme .upsell-price {
    color: var(--light-text-color, #000000) !important;
}

/* Светлая тема - навигация */
body.light-theme .nav-bottom,
body.light-theme .bottom-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    border-top: 1px solid #e0e0e0 !important;
}

body.light-theme .nav-item,
body.light-theme .nav-text {
    color: #666666 !important;
}

body.light-theme .nav-item.active,
body.light-theme .nav-item.active .nav-text {
    color: #ffffff !important;
}

/* Светлая тема - профиль */
body.light-theme .profile-container,
body.light-theme .profile-card,
body.light-theme .bonus-card,
body.light-theme .history-item,
body.light-theme .promo-card,
body.light-theme .referral-card,
body.light-theme .task-card {
    background: var(--light-card-bg, #f5f5f5) !important;
    color: var(--light-text-color, #000000) !important;
    border: 1px solid #e0e0e0 !important;
}

/* ===== СТИЛИ ЗАДАНИЙ ===== */
.task-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.task-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

.task-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,152,0,0.2), rgba(255,193,7,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.task-info {
    flex: 1;
    min-width: 0;
}

.task-title {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}

.task-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-reward {
    font-weight: 700;
    font-size: 14px;
    color: #4ade80;
    white-space: nowrap;
    padding: 8px 12px;
    background: rgba(74,222,128,0.15);
    border-radius: 20px;
}

/* Модальное окно задания */
.task-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.task-modal {
    background: linear-gradient(180deg, #1a1a2e 0%, #16162a 100%);
    border-radius: 20px;
    padding: 25px;
    max-width: 350px;
    width: 100%;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    max-height: 85vh;
    overflow-y: auto;
}

.task-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-modal-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, rgba(255,152,0,0.3), rgba(255,193,7,0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.task-modal h3 {
    text-align: center;
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.task-modal p {
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 15px;
    line-height: 1.5;
}

.task-modal-reward {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(74,222,128,0.1);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(74,222,128,0.2);
}

.task-modal-reward span {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.task-modal-reward strong {
    color: #4ade80;
    font-size: 18px;
}

.task-complete-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #e91e63, #c2185b);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-complete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233,30,99,0.4);
}

body.light-theme .profile-name,
body.light-theme .bonus-amount,
body.light-theme .bonus-label,
body.light-theme .history-title,
body.light-theme .history-date,
body.light-theme .history-price {
    color: var(--light-text-color, #000000) !important;
}

/* Светлая тема - сторис */
body.light-theme .stories-title {
    color: var(--light-text-color, #000000) !important;
}

/* Светлая тема - регистрация и онбординг */
body.light-theme .reg-container,
body.light-theme .reg-step,
body.light-theme .onboarding-container {
    background: var(--light-bg-color, #ffffff) !important;
}

body.light-theme .reg-title,
body.light-theme .reg-subtitle,
body.light-theme .reg-label,
body.light-theme .reg-hint {
    color: var(--light-text-color, #000000) !important;
}

body.light-theme .reg-input,
body.light-theme .onboarding-input {
    background: var(--light-card-bg, #f5f5f5) !important;
    color: var(--light-text-color, #000000) !important;
    border: 1px solid #d0d0d0 !important;
}

/* Светлая тема - промокоды */
body.light-theme .promo-input-container input,
body.light-theme .promo-code-input {
    background: var(--light-card-bg, #f5f5f5) !important;
    color: var(--light-text-color, #000000) !important;
    border: 1px solid #d0d0d0 !important;
}

/* Светлая тема - итого и кнопки */
body.light-theme .cart-summary,
body.light-theme .order-summary {
    background: var(--light-card-bg, #f5f5f5) !important;
    border: 1px solid #e0e0e0 !important;
}

body.light-theme .summary-row,
body.light-theme .summary-label,
body.light-theme .summary-value {
    color: var(--light-text-color, #000000) !important;
}

/* Светлая тема - бонусы */
body.light-theme .bonus-slider-container,
body.light-theme .bonus-info {
    background: var(--light-card-bg, #f5f5f5) !important;
}

body.light-theme .bonus-available,
body.light-theme .bonus-will-use {
    color: var(--light-text-color, #000000) !important;
}

/* Светлая тема - уведомления */
body.light-theme .notification {
    background: var(--light-card-bg, #f5f5f5) !important;
    color: var(--light-text-color, #000000) !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

/* Светлая тема - скролл */
body.light-theme ::-webkit-scrollbar-track {
    background: #f0f0f0 !important;
}

body.light-theme ::-webkit-scrollbar-thumb {
    background: #c0c0c0 !important;
}

body.light-theme ::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0 !important;
}

/* Светлая тема - загрузочный экран */
body.light-theme .loading-screen,
body.light-theme #loadingScreen {
    background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 100%) !important;
}

body.light-theme .loading-emoji,
body.light-theme .loading-stage {
    color: var(--light-text-color, #000000) !important;
}

/* Светлая тема - шапка с логотипом */
body.light-theme .shop-logo,
body.light-theme .header-title {
    color: var(--light-text-color, #000000) !important;
}

/* Светлая тема - пустые состояния */
body.light-theme .empty-state,
body.light-theme .empty-message {
    color: #666666 !important;
}

/* Светлая тема - подсказки */
body.light-theme .tooltip,
body.light-theme .hint {
    background: var(--light-card-bg, #f5f5f5) !important;
    color: var(--light-text-color, #000000) !important;
    border: 1px solid #e0e0e0 !important;
}

/* Светлая тема - разделители */
body.light-theme hr,
body.light-theme .divider {
    border-color: #e0e0e0 !important;
}

/* ===== СНЕЖИНКИ ===== */
.snowflakes,
.snowflakes-catalog {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 10;
}

.snowflakes-catalog {
    position: fixed;
    z-index: 9000;
}

.snowflake {
    position: absolute;
    top: -20px;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
    animation: snowfall linear infinite;
}

@keyframes snowfall {
    0% {
        transform: translateY(-20px) translateX(0);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) translateX(20px);
        opacity: 0.3;
    }
}

.snowflake:nth-child(1) { left: 3%; animation-duration: 8s; animation-delay: 0s; width: 4px; height: 4px; }
.snowflake:nth-child(2) { left: 8%; animation-duration: 12s; animation-delay: 0.5s; width: 6px; height: 6px; }
.snowflake:nth-child(3) { left: 13%; animation-duration: 10s; animation-delay: 1s; width: 3px; height: 3px; }
.snowflake:nth-child(4) { left: 18%; animation-duration: 14s; animation-delay: 1.5s; width: 5px; height: 5px; }
.snowflake:nth-child(5) { left: 23%; animation-duration: 9s; animation-delay: 2s; width: 7px; height: 7px; }
.snowflake:nth-child(6) { left: 28%; animation-duration: 11s; animation-delay: 2.5s; width: 4px; height: 4px; }
.snowflake:nth-child(7) { left: 33%; animation-duration: 13s; animation-delay: 3s; width: 6px; height: 6px; }
.snowflake:nth-child(8) { left: 38%; animation-duration: 8s; animation-delay: 3.5s; width: 3px; height: 3px; }
.snowflake:nth-child(9) { left: 43%; animation-duration: 10s; animation-delay: 4s; width: 5px; height: 5px; }
.snowflake:nth-child(10) { left: 48%; animation-duration: 12s; animation-delay: 4.5s; width: 8px; height: 8px; }
.snowflake:nth-child(11) { left: 53%; animation-duration: 9s; animation-delay: 5s; width: 4px; height: 4px; }
.snowflake:nth-child(12) { left: 58%; animation-duration: 14s; animation-delay: 5.5s; width: 6px; height: 6px; }
.snowflake:nth-child(13) { left: 63%; animation-duration: 11s; animation-delay: 6s; width: 3px; height: 3px; }
.snowflake:nth-child(14) { left: 68%; animation-duration: 8s; animation-delay: 6.5s; width: 7px; height: 7px; }
.snowflake:nth-child(15) { left: 73%; animation-duration: 13s; animation-delay: 7s; width: 5px; height: 5px; }
.snowflake:nth-child(16) { left: 78%; animation-duration: 10s; animation-delay: 7.5s; width: 4px; height: 4px; }
.snowflake:nth-child(17) { left: 83%; animation-duration: 12s; animation-delay: 0.2s; width: 6px; height: 6px; }
.snowflake:nth-child(18) { left: 88%; animation-duration: 9s; animation-delay: 0.7s; width: 3px; height: 3px; }
.snowflake:nth-child(19) { left: 93%; animation-duration: 11s; animation-delay: 1.2s; width: 5px; height: 5px; }
.snowflake:nth-child(20) { left: 98%; animation-duration: 14s; animation-delay: 1.7s; width: 7px; height: 7px; }

/* ===== ШАПКИ СЕКЦИЙ ===== */
.section-header {
    padding: 15px 20px;
    background: var(--bg-color, transparent) !important;
    display: flex;
    align-items: center;
    /* ИСПРАВЛЕНИЕ: Убираем любые тени и границы */
    box-shadow: none !important;
    border: none !important;
}

/* Заголовок спецпредложений (сторис) */
.section-header.stories-header .section-title,
.section-header:has(+ #storiesSection) .section-title,
.stories-section-header .section-title {
    color: var(--stories-title-color, var(--text-color));
}

/* ИСПРАВЛЕНИЕ: Фон для шапки сторис */
.stories-section-header {
    background: var(--bg-color) !important;
    box-shadow: none !important;
    border: none !important;
}

/* ИСПРАВЛЕНИЕ БАГА С ДЫРОЙ НАД "КАТЕГОРИИ":
   раньше тут был селектор .section-header:first-of-type, а :first-of-type
   считается ВНУТРИ каждого родителя. Шапка категорий - первый <header>
   внутри .categories-section, поэтому она ТОЖЕ получала
   calc(20px + safe-area-inset-top). В установленной PWA и в Telegram
   safe-area ~59px, отсюда огромный пустой отступ между сторис и "КАТЕГОРИИ".
   Теперь отступ под статус-бар несёт только верхняя шапка спецпредложений. */
.section-header.stories-section-header {
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
}

body.tg-webapp .section-header.stories-section-header {
    padding-top: calc(20px + var(--tg-safe-area-top, 0px));
}

/* Если шапка спецпредложений скрыта (стиль 0), отступ под статус-бар
   переезжает на первый видимый блок. Классы ставит script.js */
body.hdr-hidden:not(.stories-hidden) .stories-section {
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
}
body.tg-webapp.hdr-hidden:not(.stories-hidden) .stories-section {
    padding-top: calc(14px + var(--tg-safe-area-top, 0px));
}
/* Сторис скрыты вовсе - отступ достаётся секции категорий */
body.hdr-hidden.stories-hidden .categories-section {
    padding-top: calc(14px + env(safe-area-inset-top, 0px)) !important;
}
body.tg-webapp.hdr-hidden.stories-hidden .categories-section {
    padding-top: calc(14px + var(--tg-safe-area-top, 0px)) !important;
}
/* Скрыто вообще всё над каталогом - отступ достаётся сетке товаров */
body.hdr-hidden.stories-hidden.cats-hidden main.catalog-grid {
    padding-top: calc(14px + env(safe-area-inset-top, 0px)) !important;
}
body.tg-webapp.hdr-hidden.stories-hidden.cats-hidden main.catalog-grid {
    padding-top: calc(14px + var(--tg-safe-area-top, 0px)) !important;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
}

.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-header {
    display: none;
}

.stories-title {
    font-family: var(--tg-stories-title-font, 'Montserrat', sans-serif);
    font-size: var(--tg-stories-title-size, 18px);
    font-weight: 600;
    color: var(--stories-title-color, var(--text-color));
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== СТОРИС ===== */
.stories-section {
    background: var(--bg-color, transparent) !important;
    padding: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
}

/* Telegram WebApp */
body.tg-webapp .stories-section {
    background: var(--bg-color) !important;
    padding: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
}

.stories-scroll {
    display: flex;
    gap: 10px;
    padding: 5px 15px 6px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: var(--bg-color) !important;
}

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

.story-card {
    flex-shrink: 0;
    /* ИСПРАВЛЕНИЕ: Соотношение 9:16 для сторис */
    width: calc((100vw - 40px) / 2.5);
    max-width: 160px;
    /* 9:16 = height / width = 16/9 = 1.78 */
    height: calc(((100vw - 40px) / 2.5) * 1.78);
    max-height: 285px;
    min-height: 200px;
    border-radius: 16px;
    cursor: pointer;
    position: relative;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--card-bg, rgba(128,128,128,0.15));
    /* Рамка управляется через CSS переменную */
    border: var(--stories-border-width, 0) solid var(--stories-border-color, #e91e63);
    transform: translateY(0);
    /* overflow visible чтобы рамка была видна */
    overflow: visible;
}

/* Увеличенные сторис для Telegram Mini App - 9:16 */
body.tg-webapp .story-card {
    width: calc((100vw - 30px) / 2.2);
    max-width: 180px;
    /* 9:16 соотношение */
    height: calc(((100vw - 30px) / 2.2) * 1.78);
    max-height: 320px;
    min-height: 250px;
}

.story-card-img {
    width: 100%;
    height: 100%;
    /* ИСПРАВЛЕНИЕ: cover для красивого заполнения 9:16 */
    object-fit: cover;
    object-position: center;
    /* Радиус меньше чем у карточки чтобы рамка была видна */
    border-radius: calc(16px - var(--stories-border-width, 0));
    display: block;
}

.story-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.story-card:hover {
    transform: translateY(-6px) scale(1.03);
    /* ИСПРАВЛЕНИЕ: Минимальная тень только при hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.story-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    pointer-events: none;
}

.story-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    z-index: 2;
}

/* ===== ДИНАМИЧЕСКИЕ СТОРИС ИЗ АДМИНКИ ===== */
.dynamic-story {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.dynamic-story::after {
    display: none;
}

.story-title-overlay {
    position: absolute;
    bottom: 10px;
    left: 5px;
    right: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-align: center;
    text-shadow: 0 1px 5px rgba(0,0,0,0.8);
    z-index: 3;
}

/* ===== FULLSCREEN СТОРИС (как Instagram) ===== */
.story-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.story-fullscreen-inner {
    width: 100%;
    height: 100%;
    max-width: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-progress-container {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.story-progress-item {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-item.viewed {
    background: white;
}

.story-progress-item.active {
    background: white;
    animation: progressFill 5s linear forwards;
}

@keyframes progressFill {
    from { background: linear-gradient(to right, white 0%, rgba(255,255,255,0.3) 0%); }
    to { background: linear-gradient(to right, white 100%, rgba(255,255,255,0.3) 100%); }
}

.story-close-btn {
    position: absolute;
    top: calc(40px + env(safe-area-inset-top, 0px));
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
}

.story-fullscreen-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    touch-action: none;
    transform-origin: center center;
    transition: transform 0.1s ease-out;
    cursor: grab;
}

.story-fullscreen-img.zooming {
    cursor: grabbing;
}

.story-fullscreen-img.zoomed {
    cursor: move;
}

.story-fullscreen-placeholder {
    font-size: 100px;
    color: rgba(255,255,255,0.3);
}

.story-fullscreen-info {
    position: absolute;
    bottom: 100px;
    left: 20px;
    right: 20px;
    text-align: center;
    z-index: 10;
}

.story-fullscreen-info h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.story-fullscreen-info p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.story-action-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 50px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    z-index: 10;
}

.story-nav-areas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    z-index: 5;
}

.story-nav-prev,
.story-nav-next {
    flex: 1;
    cursor: pointer;
}

/* Убираем старые стили модалки */
    transform: scale(1.05);
}

/* ===== ПРОСМОТР СТОРИС НА ВЕСЬ ЭКРАН ===== */
.story-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.story-viewer.active {
    display: flex;
}

/* Скрываем ВСЕ кнопки story по умолчанию */
.story-close,
.story-prev,
.story-next {
    display: none !important;
}

/* Показываем кнопки ТОЛЬКО когда viewer активен */
.story-viewer.active .story-close,
.story-viewer.active .story-prev,
.story-viewer.active .story-next {
    display: flex !important;
}

.story-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.story-close {
    position: absolute;
    top: calc(20px + env(safe-area-inset-top, 0px));
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    align-items: center;
    justify-content: center;
}

.story-prev,
.story-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 32px;
    cursor: pointer;
}

.story-prev { left: 20px; }
.story-next { right: 20px; }

.story-progress {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
}

.story-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-bar.active {
    background: rgba(255, 255, 255, 0.9);
}

.story-progress-bar.viewed {
    background: rgba(255, 255, 255, 0.9);
}

/* ===== ШАПКА С КАТЕГОРИЯМИ (ЗАКРЕПЛЕНА) ===== */
.header-fixed {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    background: var(--header-bg);
    padding: 15px 20px;
    padding-top: calc(15px + env(safe-area-inset-top, 0px));
    z-index: 999999 !important;
    border-bottom: 1px solid var(--category-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    /* Для Telegram WebApp */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

body.tg-webapp .header-fixed {
    padding-top: calc(15px + var(--tg-safe-area-top, 0px));
}

.header-fixed h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--header-title-color, var(--text-color));
    letter-spacing: 2px;
    margin: 0;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ===== КНОПКИ В ШАПКЕ - ЧИСТЫЙ НЕОН ===== */
.header-btn {
    width: 56px;
    height: 56px;
    background: rgba(251, 195, 220, 0.15);
    border: none !important;
    outline: none !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 
        0 0 25px rgba(251, 195, 220, 0.5),
        0 0 50px rgba(251, 195, 220, 0.3),
        0 0 75px rgba(251, 195, 220, 0.15),
        inset 0 0 20px rgba(251, 195, 220, 0.2);
}

.header-btn:hover {
    transform: scale(1.15);
    box-shadow: 
        0 0 35px rgba(251, 195, 220, 0.7),
        0 0 70px rgba(251, 195, 220, 0.5),
        0 0 100px rgba(251, 195, 220, 0.3),
        inset 0 0 30px rgba(251, 195, 220, 0.3);
}

.header-btn:active {
    transform: scale(0.95);
}

.btn-emoji {
    font-size: 28px;
    filter: drop-shadow(0 0 12px rgba(251, 195, 220, 0.8));
}

/* Старые классы для совместимости */
.profile-btn,
.favorites-btn,
.cart-btn {
    border: none !important;
    outline: none !important;
}

.profile-btn:hover,
.favorites-counter:hover,
.cart-counter:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(251, 195, 220, 0.5), inset 0 0 20px rgba(251, 195, 220, 0.1);
    border-color: rgba(251, 195, 220, 0.6);
}

.profile-icon {
    font-size: 24px;
}

.heart-icon-big {
    font-size: 22px;
}

.favorites-label,
.cart-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 7px;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.9;
    letter-spacing: 0.5px;
    margin-top: 2px;
    text-transform: uppercase;
}

.cart-icon-big {
    font-size: 22px;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #e53935, #c62828);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.4);
}

.cart-badge:empty,
.cart-badge[data-count="0"] {
    display: none;
}

/* ===== МОДАЛКА КОРЗИНЫ ===== */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color, #1a1a2e);
    z-index: 9999999;
    justify-content: center;
    align-items: stretch;
}

.cart-modal.active {
    display: flex;
}

/* Блокировка скролла при открытой корзине */
body.cart-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

body.cart-open .bottom-nav {
    display: none !important;
}

.cart-content {
    background: transparent;
    width: 100%;
    max-width: 600px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0 auto;
}

.cart-header {
    padding: 20px;
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(128,128,128,0.06);
    border-bottom: 1px solid rgba(128,128,128,0.15);
    flex-shrink: 0;
}

/* В Telegram Mini App используем --tg-safe-area-top */
body.tg-webapp .cart-header {
    padding-top: calc(20px + var(--tg-safe-area-top, 0px));
}

.cart-header h2 {
    font-family: var(--cart-font-family, var(--font-family, 'Montserrat', sans-serif));
    font-size: 22px;
    font-weight: 700;
    color: var(--cart-text-color, var(--text-color, #333));
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close {
    width: 44px;
    height: 44px;
    background: rgba(128,128,128,0.12);
    border: 1px solid rgba(128,128,128,0.2);
    border-radius: 50%;
    color: var(--cart-text-color, var(--text-color));
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-close:hover {
    background: rgba(128,128,128,0.2);
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    -webkit-overflow-scrolling: touch;
}

.cart-item {
    display: grid;
    grid-template-columns: 70px 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    background: rgba(128,128,128,0.06);
    border: 1px solid rgba(128,128,128,0.15);
    border-radius: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: rgba(128,128,128,0.1);
    border-color: rgba(128,128,128,0.2);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.cart-item-name {
    font-family: var(--cart-font-family, var(--font-family, 'Montserrat', sans-serif));
    font-size: 14px;
    font-weight: 600;
    color: var(--cart-text-color, var(--text-color, #333));
    line-height: 1.3;
    word-wrap: break-word;
}

/* Вариант товара (цвет/размер) */
.cart-item-variant {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.cart-item-variant-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(128,128,128,0.3);
}

.cart-item-variant-size {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    background: rgba(128,128,128,0.1);
    border: 1px solid rgba(128,128,128,0.2);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-color, #333);
}

.cart-item-price {
    font-family: var(--cart-font-family, var(--font-family, 'Montserrat', sans-serif));
    font-size: 15px;
    font-weight: 700;
    color: var(--cart-text-color, var(--text-color, #333));
    margin-top: 4px;
}

/* Счётчик количества в корзине */
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(128,128,128,0.12);
    border: 1px solid rgba(128,128,128,0.2);
    border-radius: 12px;
    padding: 3px;
}

.cart-item-controls button {
    width: 32px;
    height: 32px;
    background: rgba(128,128,128,0.15);
    border: none;
    border-radius: 9px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-controls button:hover {
    background: rgba(128,128,128,0.25);
    transform: scale(1.05);
}

.cart-item-controls span {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--cart-text-color, var(--text-color, #333));
}

.cart-item-remove {
    width: 36px;
    height: 36px;
    background: rgba(128,128,128,0.1);
    border: 1px solid rgba(128,128,128,0.2);
    border-radius: 50%;
    color: var(--cart-text-color, var(--text-color, #333));
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.cart-item-remove:hover {
    background: rgba(255, 100, 100, 0.2);
    border-color: rgba(255, 100, 100, 0.3);
    opacity: 1;
}

/* Модификаторы в корзине */
.cart-modifier {
    font-size: 11px;
    color: var(--cart-text-color, var(--text-color, #333));
    opacity: 0.6;
    margin-top: 4px;
    padding: 3px 8px;
    background: rgba(0,0,0,0.15);
    border-radius: 8px;
    display: inline-block;
}

body.light-theme .cart-modifier {
    color: rgba(0, 0, 0, 0.6);
    background: rgba(0,0,0,0.08);
}

/* Апсел товары в корзине */
.cart-item-upsell {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(156, 39, 176, 0.1));
    border: 1px solid rgba(233, 30, 99, 0.2);
}

/* ===== ПОДАРОК ИЗ ВИКТОРИНЫ В КОРЗИНЕ ===== */
.cart-item-prize {
    grid-template-columns: 70px 1fr auto;
    background: rgba(128, 128, 128, 0.06);
    border: 1px solid var(--accent-color, #e91e63);
}

.cart-item-thumb {
    position: relative;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.cart-item-thumb .cart-item-emoji {
    width: 100%;
    height: 100%;
}

.cart-item-prize .cart-item-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.cart-gift-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 10px;
    background: var(--accent-color, #e91e63);
    color: var(--btn-text-color, #fff);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.2;
    white-space: nowrap;
}

.cart-gift-name {
    color: var(--cart-text-color, var(--text-color, #333));
}

.cart-item-prize .cart-item-price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cart-gift-old {
    text-decoration: line-through;
    color: var(--cart-text-color, var(--text-color, #333));
    opacity: 0.45;
    font-size: 13px;
    font-weight: 500;
}

.cart-gift-free {
    color: #22a35a;
    font-weight: 700;
}

/* Предупреждение по подарку */
.cart-gift-warning {
    margin: 15px 0;
    padding: 16px;
    border-radius: 16px;
    text-align: center;
    background: rgba(231, 76, 60, 0.10);
    border: 1px solid rgba(231, 76, 60, 0.35);
    font-family: var(--cart-font-family, var(--font-family, 'Montserrat', sans-serif));
}

.cart-gift-warning-icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.cart-gift-warning-title {
    font-weight: 700;
    font-size: 15px;
    color: #e74c3c;
    margin-bottom: 6px;
}

.cart-gift-warning-text {
    font-size: 13px;
    line-height: 1.4;
    color: var(--cart-text-color, var(--text-color, #333));
    opacity: 0.75;
}

.cart-gift-warning-text b {
    font-weight: 700;
}

.cart-gift-warning-need {
    color: #e74c3c;
}

.cart-item-emoji {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: rgba(128,128,128,0.06);
    border-radius: 12px;
}

.cart-empty {
    text-align: center;
    padding: 60px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.cart-empty-icon {
    font-size: 70px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.cart-empty-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: rgba(128,128,128,0.7);
    margin-bottom: 25px;
}

.cart-empty-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #ffffff, #666666);
    border: none;
    border-radius: 30px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}

.cart-empty-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255,255,255,0.5);
}

/* Апсел в корзине */
.cart-upsell {
    padding: 18px 20px;
    border-top: 1px solid rgba(128,128,128,0.15);
    background: rgba(128,128,128,0.03);
}

.cart-upsell-title {
    font-family: var(--upsell-font-family, var(--font-family, 'Montserrat', sans-serif));
    font-size: 15px;
    font-weight: 700;
    color: var(--cart-text-color, var(--text-color, #333));
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-upsell-items {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.cart-upsell-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(128,128,128,0.06);
    border: 1px solid rgba(128,128,128,0.15);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-upsell-item:hover {
    border-color: rgba(128,128,128,0.25);
    background: rgba(128,128,128,0.1);
}

.cart-upsell-item.added {
    border-color: #4caf50;
    background: linear-gradient(145deg, rgba(76, 175, 80, 0.15), rgba(56,142,60,0.1));
}

.cart-upsell-emoji {
    font-size: 28px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.cart-upsell-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-upsell-name {
    font-family: var(--upsell-font-family, var(--font-family, 'Montserrat', sans-serif));
    font-size: 14px;
    font-weight: 600;
    color: var(--cart-text-color, var(--text-color, #333));
}

.cart-upsell-price {
    font-family: var(--upsell-font-family, var(--font-family, 'Montserrat', sans-serif));
    font-size: 13px;
    color: var(--upsell-price-color, var(--accent-color, #e91e63));
    font-weight: 700;
}

.cart-upsell-add {
    width: 32px;
    height: 32px;
    background: var(--accent-color, #e91e63);
    border: none;
    border-radius: 50%;
    color: var(--btn-text-color, white);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-upsell-add:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.cart-upsell-item.added .cart-upsell-add {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    box-shadow: 0 4px 15px rgba(76,175,80,0.4);
}

.cart-footer {
    padding: 20px;
    padding-bottom: calc(25px + env(safe-area-inset-bottom, 20px));
    border-top: 1px solid rgba(128,128,128,0.15);
    background: var(--bg-color, #ffffff);
    position: sticky;
    bottom: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--cart-font-family, var(--font-family, 'Montserrat', sans-serif));
    margin-bottom: 18px;
}

.cart-total-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--cart-text-color, var(--text-color, #333));
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-total-price {
    font-size: 26px;
    font-weight: 900;
    color: var(--cart-text-color, var(--text-color, #333));
}

/* Кнопка оформить заказ - наследует стиль кнопок товаров */
.btn-checkout {
    width: 100%;
    padding: 18px 24px;
    background: rgba(255,255,255,0.1);
    border: 2px solid var(--btn-bg-color, var(--accent-color, #e91e63));
    border-radius: var(--btn-radius, 14px);
    color: var(--btn-text-color, #fff);
    font-family: var(--font-family, 'Montserrat', sans-serif);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 100;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: all 0.3s ease;
    overflow: hidden;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-checkout:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Стиль 8: Слайдер для кнопки оформления */
.btn-style-8 .btn-checkout {
    background: rgba(255,255,255,0.1) !important;
    border: 2px solid var(--btn-bg-color, var(--accent-color, #e91e63)) !important;
    padding-left: 60px !important;
    text-align: center;
}

.btn-style-8 .btn-checkout::before {
    content: '→';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: var(--btn-bg-color, var(--accent-color, #e91e63));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--btn-text-color, white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    pointer-events: none;
    z-index: 5;
}

/* ===== МОДАЛКА ОФОРМЛЕНИЯ ===== */
.checkout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 99999999;
    justify-content: center;
    align-items: stretch;
}

.checkout-modal.active {
    display: flex;
}

.checkout-content {
    background: rgba(0,0,0,0.65);
    width: 100%;
    max-width: 600px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0 auto;
}

.checkout-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
}

.checkout-header {
    padding: 20px 20px;
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

body.tg-webapp .checkout-header {
    padding-top: calc(20px + var(--tg-safe-area-top, 0px));
}

.checkout-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-close {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: rgba(255,255,255,0.6);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-close:hover {
    background: rgba(255,255,255,0.12);
    transform: rotate(90deg);
}

/* Секции формы */
.form-section {
    padding: 20px;
    margin: 0 15px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
}

.form-section:first-child {
    margin-top: 15px;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-group.half {
    flex: 1;
    min-width: 0;
}

.form-group.half input,
.form-group.half select {
    width: 100%;
    min-width: 0;
}

/* УЛУЧШЕННЫЕ Способы оплаты */
.payment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.payment-option {
    width: 100%;
}

.payment-option input {
    display: none;
}

.payment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 12px;
    min-height: 100px;
    background: linear-gradient(145deg, rgba(30,30,40,0.8), rgba(20,20,30,0.9));
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.payment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.03) 100%);
    pointer-events: none;
}

.payment-card:hover {
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.payment-option input:checked + .payment-card {
    border-color: #ffffff;
    background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(150,150,150,0.15));
    box-shadow: 0 0 25px rgba(255,255,255,0.3), inset 0 0 20px rgba(255,255,255,0.1);
}

.payment-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.payment-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-desc {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

#checkoutForm {
    padding: 0;
}

/* Улучшенные поля ввода в checkout */
.checkout-modal input[type="text"],
.checkout-modal input[type="tel"],
.checkout-modal input[type="date"],
.checkout-modal select,
.checkout-modal textarea {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    color: #fff;
    transition: all 0.3s ease;
}

.checkout-modal input:focus,
.checkout-modal select:focus,
.checkout-modal textarea:focus {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    outline: none;
    box-shadow: 0 0 15px rgba(255,255,255,0.08);
}

.checkout-modal label:not(.privacy-consent-label) {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
    display: block;
}

/* Итоговая сумма */
.checkout-summary {
    padding: 20px;
    margin: 0 15px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    margin-bottom: 12px;
}

#checkoutForm .form-group {
    margin-bottom: 15px;
}

#checkoutForm .form-group:last-child {
    margin-bottom: 0;
}

#checkoutForm label:not(.privacy-consent-label) {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#checkoutForm input,
#checkoutForm select,
#checkoutForm textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
}

#checkoutForm input::placeholder,
#checkoutForm textarea::placeholder {
    color: rgba(255,255,255,0.25);
}

#checkoutForm input:focus,
#checkoutForm select:focus,
#checkoutForm textarea:focus {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    outline: none;
    box-shadow: 0 0 15px rgba(255,255,255,0.08);
}

#checkoutForm textarea {
    min-height: 80px;
    resize: vertical;
}

/* ===== БОНУСЫ И ПРОМОКОД В ОФОРМЛЕНИИ ===== */
.bonus-promo-section {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 16px;
    margin: 0 15px 12px;
}

.bonus-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.bonus-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bonus-icon {
    font-size: 20px;
}

.bonus-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

.bonus-amount {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #4caf50;
}

.use-bonus-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.use-bonus-toggle input {
    display: none;
}

.toggle-slider {
    width: 44px;
    height: 24px;
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.use-bonus-toggle input:checked + .toggle-slider {
    background: #4caf50;
}

.use-bonus-toggle input:checked + .toggle-slider::after {
    left: 22px;
}

.toggle-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.bonus-discount-info {
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #4caf50;
}

.promo-code-row {
    display: flex;
    gap: 8px;
}

.promo-code-row input {
    flex: 1;
    padding: 13px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.promo-code-row input::placeholder {
    color: rgba(255,255,255,0.25);
}

.apply-promo-btn {
    padding: 13px 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.apply-promo-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.promo-result {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.promo-result.success {
    background: rgba(34,197,94,0.1);
    color: #22c55e;
}

.promo-result.error {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
}

.checkout-summary {
    background: rgba(12,12,20,0.92);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 16px;
    margin: 20px;
    margin-bottom: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 10px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ===== СОГЛАСИЕ НА ОБРАБОТКУ ПДн ===== */
.privacy-consent-box {
    margin: 12px 15px 4px;
    padding: 16px 18px;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    transition: all 0.3s ease;
}
.privacy-consent-box.checked {
    border-color: #27ae60 !important;
    background: rgba(39,174,96,0.08) !important;
}
.privacy-consent-box.shake {
    animation: privacyShake 0.5s ease;
    border-color: #e74c3c !important;
    background: rgba(231,76,60,0.12) !important;
}
.privacy-consent-box.error {
    border-color: #e74c3c !important;
    background: rgba(231,76,60,0.08) !important;
}
@keyframes privacyShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}
.privacy-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.privacy-consent-label input[type="checkbox"] {
    display: none;
}
.privacy-consent-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
    border: 2.5px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.12);
    position: relative;
    transition: all 0.25s ease;
    margin-top: 1px;
}
.privacy-consent-label input:checked + .privacy-consent-check {
    background: #27ae60 !important;
    border-color: #27ae60 !important;
    box-shadow: 0 0 16px rgba(39,174,96,0.5);
}
.privacy-consent-label input:checked + .privacy-consent-check::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 8px;
    width: 8px;
    height: 14px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
.privacy-consent-text {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}
.privacy-consent-text .consent-required {
    color: #e74c3c;
    font-weight: 700;
}
.privacy-consent-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255,255,255,0.4);
}
.privacy-consent-hint {
    display: none;
    margin-top: 10px;
    padding-left: 42px;
    font-size: 13px;
    color: #e74c3c;
    font-weight: 500;
}
.privacy-consent-hint.visible {
    display: block;
}
/* Light theme */
body.light-theme .privacy-consent-box {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.15);
}
body.light-theme .privacy-consent-check {
    border-color: rgba(0,0,0,0.3);
    background: rgba(0,0,0,0.06);
}
body.light-theme .privacy-consent-text {
    color: rgba(0,0,0,0.55);
}
body.light-theme .privacy-consent-link {
    color: rgba(0,0,0,0.8);
}
/* Checkout modal dark override */
.checkout-modal .privacy-consent-box,
body.light-theme .checkout-modal .privacy-consent-box {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.2) !important;
}
.checkout-modal .privacy-consent-box.checked,
body.light-theme .checkout-modal .privacy-consent-box.checked {
    border-color: #27ae60 !important;
    background: rgba(39,174,96,0.08) !important;
}
.checkout-modal .privacy-consent-box.error,
body.light-theme .checkout-modal .privacy-consent-box.error {
    border-color: #e74c3c !important;
    background: rgba(231,76,60,0.08) !important;
}
.checkout-modal .privacy-consent-check,
body.light-theme .checkout-modal .privacy-consent-check {
    border-color: rgba(255,255,255,0.5) !important;
    background: rgba(255,255,255,0.12) !important;
}
.checkout-modal .privacy-consent-label input:checked + .privacy-consent-check,
body.light-theme .checkout-modal .privacy-consent-label input:checked + .privacy-consent-check {
    background: #27ae60 !important;
    border-color: #27ae60 !important;
}
.checkout-modal .privacy-consent-text,
body.light-theme .checkout-modal .privacy-consent-text {
    color: rgba(255,255,255,0.7) !important;
}
.checkout-modal .privacy-consent-link,
body.light-theme .checkout-modal .privacy-consent-link {
    color: #fff !important;
}

.btn-submit-order {
    width: calc(100% - 30px);
    margin: 10px 15px 20px;
    padding: 18px;
    background: #fff;
    border: none;
    border-radius: 16px;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 6px 25px rgba(255,255,255,0.15);
}

/* ===== УСПЕШНЫЙ ЗАКАЗ ===== */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999999;
    justify-content: center;
    align-items: center;
}

.success-modal.active {
    display: flex;
}

.success-content {
    background: #111119;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 45px 35px;
    border-radius: 24px;
    text-align: center;
    max-width: 340px;
    width: calc(100% - 60px);
}

.success-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.success-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.success-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
}

.order-number {
    font-weight: 700 !important;
    color: rgba(255,255,255,0.7) !important;
    opacity: 1 !important;
}

.btn-success-close {
    margin-top: 24px;
    padding: 16px 50px;
    background: #fff;
    border: none;
    border-radius: 14px;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.btn-success-close:active {
    transform: scale(0.96);
    opacity: 0.9;
}

/* ===== КНОПКА В КОРЗИНУ ===== */
.btn-add-to-cart {
    display: none !important;
}

.btn-add-to-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.5);
}

.btn-add-to-cart:active {
    transform: scale(0.95);
}

/* Переключатель темы */
.theme-toggle-wrapper {
    width: 70px;
}

.theme-toggle-checkbox {
    display: none;
}

.theme-toggle-label {
    display: block;
    width: 70px;
    height: 35px;
    border-radius: 18px;
    position: relative;
    cursor: pointer;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.light-theme .theme-toggle-label {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #ffc3a0 100%);
}

.theme-toggle-button {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.theme-toggle-checkbox:checked + .theme-toggle-label .theme-toggle-button {
    transform: translateX(35px);
}

.theme-toggle-label::before {
    content: '🌙';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.theme-toggle-label::after {
    content: '☀️';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

/* ===== КАТЕГОРИИ ===== */

/* Секция категорий — общий фон от шапки */
.categories-section {
    background: var(--bg-color) !important;
    border-bottom: none;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    position: relative;
    z-index: 10;
}

/* Убираем любые разрывы между секциями */
.categories-section + *:not(.catalog-grid),
.categories-scroll + *:not(.catalog-grid) {
    margin-top: 0 !important;
}

/* Отступ между категориями и товарами как между stories и категориями */
.categories-section + .catalog-grid,
.categories-scroll + .catalog-grid,
main.catalog-grid {
    margin-top: 0 !important;
    padding-top: 6px !important;
}

.categories-section .section-header {
    background: var(--bg-color) !important;
}

.categories-scroll {
    background: var(--bg-color) !important;
    padding: 6px 0 6px 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

/* Уменьшенная шапка категорий для Telegram */
body.tg-webapp .categories-scroll {
    padding: 6px 0 6px 0;
    overflow-y: visible;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

/* ═══ ПОДСКАЗКА «КАТЕГОРИИ ЛИСТАЮТСЯ» ═══
   Сама подсказка теперь целиком в script.js: она листает ленту
   по-настоящему, меняя положение прокрутки, а не сдвигает строку
   через transform. Разница принципиальная. Сдвиг строки не расширяет
   область прокрутки: левые вкладки уезжали под край и обрезались, а
   справа появлялась пустота. Выглядело это как подёргивание, а не как
   листание. Настоящая прокрутка показывает те вкладки, что спрятаны
   за краем, ровно так, как если бы человек сам провёл пальцем.
   Здесь остаётся только запрет анимации у тех, кто выключил движение
   в системе: скрипт это правило читает и подсказку не запускает. */

.categories {
    display: flex;
    gap: 12px;
    padding: 0 20px;
    min-width: min-content;
}

/* Уменьшенные категории для Telegram */
body.tg-webapp .categories {
    gap: 6px;
    padding: 0 12px;
}

.category-btn {
    background: var(--category-bg);
    border: 2px solid var(--category-border);
    border-radius: 12px;
    /* база для остальных скинов: кегль поднят, отступы почти прежние,
       чтобы полоса категорий не толкала каталог вниз */
    padding: 12px 21px;
    color: var(--category-text, var(--text-color));
    font-family: var(--tg-category-font, 'Montserrat', sans-serif);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Убрана тень - не работает в Telegram из-за overflow:hidden на body */
}

/* Кнопки категорий для Telegram */
body.tg-webapp .category-btn {
    padding: 8px 17px;
    font-size: var(--tg-category-font-size, 14px);
    border-radius: 10px;
}

.category-btn:hover {
    background: var(--category-hover);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--category-active-bg);
    color: var(--category-active-text);
    font-weight: 600;
    border-color: var(--category-active-bg);
}

/* === СТИЛИ КАТЕГОРИЙ === */

/* Minimal - чистый минимализм */
.cat-style-minimal .category-btn {
    background: transparent !important;
    border: none !important;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
}
.cat-style-minimal .category-btn.active {
    background: transparent !important;
    color: #fff !important;
    font-weight: 700;
}

/* Gradient - градиентная подсветка */
.cat-style-gradient .category-btn {
    background: rgba(255,255,255,0.05) !important;
    border: none !important;
    color: rgba(255,255,255,0.7);
}
.cat-style-gradient .category-btn.active {
    background: linear-gradient(135deg, var(--category-neon-color, #e91e63), var(--cat-neon-glow-70, rgba(233,30,99,0.7))) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 20px var(--cat-neon-glow-50, rgba(233,30,99,0.5));
    transform: translateY(-2px);
}

/* Neon - неоновое свечение */
.cat-style-neon .category-btn {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: rgba(255,255,255,0.5);
}
.cat-style-neon .category-btn.active {
    background: transparent !important;
    border-color: var(--category-neon-color, #e91e63) !important;
    color: var(--category-neon-color, #e91e63) !important;
    box-shadow: 0 0 20px var(--cat-neon-glow-50, rgba(233, 30, 99, 0.5)), 
                inset 0 0 20px var(--cat-neon-glow-15, rgba(233, 30, 99, 0.15));
    text-shadow: 0 0 10px currentColor;
}

/* Chips - Material Design */
.cat-style-chips .category-btn {
    background: rgba(255,255,255,0.08) !important;
    border: none !important;
    border-radius: 8px !important;
    color: rgba(255,255,255,0.8);
}
.cat-style-chips .category-btn.active {
    background: var(--category-neon-color, #e91e63) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--cat-neon-glow-50, rgba(233,30,99,0.5));
}

/* Underline - элегантная линия */
.cat-style-underline .category-btn {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: rgba(255,255,255,0.5);
    padding-bottom: 10px !important;
    border-bottom: 2px solid transparent !important;
    box-shadow: none !important;
}
.cat-style-underline .category-btn.active {
    background: transparent !important;
    color: var(--category-neon-color, #e91e63) !important;
    border-bottom-color: var(--category-neon-color, #e91e63) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Bubble - мягкие пузырьки */
.cat-style-bubble .category-btn {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 25px !important;
    color: rgba(255,255,255,0.6);
}
.cat-style-bubble .category-btn.active {
    background: var(--cat-neon-glow-15, rgba(233,30,99,0.15)) !important;
    border-color: var(--category-neon-color, #e91e63) !important;
    color: var(--category-neon-color, #e91e63) !important;
    box-shadow: 0 0 20px var(--cat-neon-glow-40, rgba(233,30,99,0.4));
}

/* Tags - хештеги */
.cat-style-tag .category-btn {
    background: transparent !important;
    border: none !important;
    color: rgba(255,255,255,0.4);
    font-size: 13px !important;
}
.cat-style-tag .category-btn::before {
    content: '#';
}
.cat-style-tag .category-btn.active {
    background: transparent !important;
    color: #00bcd4 !important;
    font-weight: 600;
}

/* iOS - Apple стиль */
.cat-style-ios .categories-scroll {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 4px;
}
.cat-style-ios .category-btn {
    background: transparent !important;
    border: none !important;
    border-radius: 10px !important;
    color: rgba(255,255,255,0.7);
}
.cat-style-ios .category-btn.active {
    background: #fff !important;
    color: #000 !important;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* Circle - круглые кнопки как сторис */
/* Заголовок КАТЕГОРИИ для Circle/Square — управляется toggle hideCategoryTitle */
/* Больше НЕ скрываем принудительно — управление через body.hide-category-title */
/* Стили для categories-scroll когда класс на нем самом */
.categories-scroll.cat-style-circle,
.categories-scroll.cat-style-circle-neon,
.categories-scroll.cat-style-circle-gold,
.categories-scroll.cat-style-circle-rainbow,
.categories-scroll.cat-style-circle-glow,
.categories-scroll.cat-style-circle-minimal,
body.cat-style-circle .categories-scroll,
body.cat-style-circle-neon .categories-scroll,
body.cat-style-circle-gold .categories-scroll,
body.cat-style-circle-rainbow .categories-scroll,
body.cat-style-circle-glow .categories-scroll,
body.cat-style-circle-minimal .categories-scroll {
    /* ИСПРАВЛЕНО: горизонтальный паддинг был и тут (12px), и на .categories (20px),
       кружки уезжали на 32px от края. gap тут не работал вообще:
       flex-контейнер - это .categories, а не .categories-scroll */
    padding: 8px 0 6px !important;
    background: var(--bg-color) !important;
}
.cat-style-circle .categories,
.cat-style-circle-neon .categories,
.cat-style-circle-gold .categories,
.cat-style-circle-rainbow .categories,
.cat-style-circle-glow .categories,
.cat-style-circle-minimal .categories,
.categories-scroll.cat-style-circle .categories,
.categories-scroll.cat-style-circle-neon .categories,
.categories-scroll.cat-style-circle-gold .categories,
.categories-scroll.cat-style-circle-rainbow .categories,
.categories-scroll.cat-style-circle-glow .categories,
.categories-scroll.cat-style-circle-minimal .categories,
body.cat-style-circle .categories,
body.cat-style-circle-neon .categories,
body.cat-style-circle-gold .categories,
body.cat-style-circle-rainbow .categories,
body.cat-style-circle-glow .categories,
body.cat-style-circle-minimal .categories {
    gap: 15px;
    padding: 0 15px;
}
.cat-style-circle .category-btn,
.cat-style-circle-neon .category-btn,
.cat-style-circle-gold .category-btn,
.cat-style-circle-rainbow .category-btn,
.cat-style-circle-glow .category-btn,
.cat-style-circle-minimal .category-btn,
.categories-scroll.cat-style-circle .category-btn,
.categories-scroll.cat-style-circle-neon .category-btn,
.categories-scroll.cat-style-circle-gold .category-btn,
.categories-scroll.cat-style-circle-rainbow .category-btn,
.categories-scroll.cat-style-circle-glow .category-btn,
.categories-scroll.cat-style-circle-minimal .category-btn,
body.cat-style-circle .category-btn,
body.cat-style-circle-neon .category-btn,
body.cat-style-circle-gold .category-btn,
body.cat-style-circle-rainbow .category-btn,
body.cat-style-circle-glow .category-btn,
body.cat-style-circle-minimal .category-btn {
    width: 70px !important;
    height: auto !important;
    min-width: 70px !important;
    border-radius: 0 !important;
    padding: 0 !important;
    font-size: 9px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    margin-top: 0 !important;
}
/* Сброс стилей для active - эффекты должны быть на .category-icon, не на .category-btn */
.cat-style-circle .category-btn.active,
.cat-style-circle-neon .category-btn.active,
.cat-style-circle-gold .category-btn.active,
.cat-style-circle-rainbow .category-btn.active,
.cat-style-circle-glow .category-btn.active,
.cat-style-circle-minimal .category-btn.active,
.categories-scroll.cat-style-circle .category-btn.active,
.categories-scroll.cat-style-circle-neon .category-btn.active,
.categories-scroll.cat-style-circle-gold .category-btn.active,
.categories-scroll.cat-style-circle-rainbow .category-btn.active,
.categories-scroll.cat-style-circle-glow .category-btn.active,
.categories-scroll.cat-style-circle-minimal .category-btn.active,
body.cat-style-circle .category-btn.active,
body.cat-style-circle-neon .category-btn.active,
body.cat-style-circle-gold .category-btn.active,
body.cat-style-circle-rainbow .category-btn.active,
body.cat-style-circle-glow .category-btn.active,
body.cat-style-circle-minimal .category-btn.active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
/* Отключаем ::before на кнопке для circle стилей */
.cat-style-circle .category-btn.active::before,
.cat-style-circle-neon .category-btn.active::before,
.cat-style-circle-gold .category-btn.active::before,
.cat-style-circle-rainbow .category-btn.active::before,
.cat-style-circle-glow .category-btn.active::before,
.cat-style-circle-minimal .category-btn.active::before,
body.cat-style-circle .category-btn.active::before,
body.cat-style-circle-neon .category-btn.active::before,
body.cat-style-circle-gold .category-btn.active::before,
body.cat-style-circle-rainbow .category-btn.active::before,
body.cat-style-circle-glow .category-btn.active::before,
body.cat-style-circle-minimal .category-btn.active::before {
    display: none !important;
}
/* Иконка внутри кружка */
.cat-style-circle .category-btn .category-icon,
.cat-style-circle-neon .category-btn .category-icon,
.cat-style-circle-gold .category-btn .category-icon,
.cat-style-circle-rainbow .category-btn .category-icon,
.cat-style-circle-glow .category-btn .category-icon,
.cat-style-circle-minimal .category-btn .category-icon,
.categories-scroll.cat-style-circle .category-btn .category-icon,
.categories-scroll.cat-style-circle-neon .category-btn .category-icon,
.categories-scroll.cat-style-circle-gold .category-btn .category-icon,
.categories-scroll.cat-style-circle-rainbow .category-btn .category-icon,
.categories-scroll.cat-style-circle-glow .category-btn .category-icon,
.categories-scroll.cat-style-circle-minimal .category-btn .category-icon,
body.cat-style-circle .category-btn .category-icon,
body.cat-style-circle-neon .category-btn .category-icon,
body.cat-style-circle-gold .category-btn .category-icon,
body.cat-style-circle-rainbow .category-btn .category-icon,
body.cat-style-circle-glow .category-btn .category-icon,
body.cat-style-circle-minimal .category-btn .category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    background-size: cover;
    background-position: center;
    border: 3px solid rgba(255,255,255,0.15);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* УМЕНЬШЕНО: была 0 4px 15px */
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}
/* Текст под кружком */
.cat-style-circle .category-btn .category-text,
.cat-style-circle-neon .category-btn .category-text,
.cat-style-circle-gold .category-btn .category-text,
.cat-style-circle-rainbow .category-btn .category-text,
.cat-style-circle-glow .category-btn .category-text,
.cat-style-circle-minimal .category-btn .category-text,
.categories-scroll.cat-style-circle .category-btn .category-text,
.categories-scroll.cat-style-circle-neon .category-btn .category-text,
.categories-scroll.cat-style-circle-gold .category-btn .category-text,
.categories-scroll.cat-style-circle-rainbow .category-btn .category-text,
.categories-scroll.cat-style-circle-glow .category-btn .category-text,
.categories-scroll.cat-style-circle-minimal .category-btn .category-text,
body.cat-style-circle .category-btn .category-text,
body.cat-style-circle-neon .category-btn .category-text,
body.cat-style-circle-gold .category-btn .category-text,
body.cat-style-circle-rainbow .category-btn .category-text,
body.cat-style-circle-glow .category-btn .category-text,
body.cat-style-circle-minimal .category-btn .category-text {
    font-size: 11px !important;
    margin-top: 8px;
    max-width: 75px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--category-text, #fff);
    text-align: center;
}
/* Circle активная - используем переменную цвета */
.cat-style-circle .category-btn.active .category-icon,
.categories-scroll.cat-style-circle .category-btn.active .category-icon,
body.cat-style-circle .category-btn.active .category-icon {
    border: 3px solid var(--category-neon-color, #b51a00) !important;
    border-radius: 50% !important;
    box-shadow: 
        0 0 8px var(--cat-neon-glow-70, rgba(74, 222, 128, 0.7)),
        0 0 20px var(--cat-neon-glow-50, rgba(74, 222, 128, 0.5)),
        0 0 35px var(--cat-neon-glow-15, rgba(74, 222, 128, 0.15));
    transform: scale(1.05);
}
.cat-style-circle .category-btn.active .category-text,
body.cat-style-circle .category-btn.active .category-text {
    text-shadow: 0 0 10px var(--cat-neon-glow-70, rgba(74, 222, 128, 0.7));
    color: var(--category-active-text, var(--category-neon-color, #ffffff));
}
/* Отключаем ::before для circle - используем border */
.cat-style-circle .category-btn.active .category-icon::before,
body.cat-style-circle .category-btn.active .category-icon::before {
    display: none !important;
}

/* ===== SQUARE STYLE - КВАДРАТНЫЙ СТИЛЬ КАТЕГОРИЙ ===== */
.cat-style-square .categories-scroll,
body.cat-style-square .categories-scroll {
    /* ИСПРАВЛЕНО: горизонтальный паддинг дублировался с .categories (12+20=32px),
       gap на scroll-обёртке не работал - flex-контейнер это .categories */
    padding: 10px 0 15px !important;
    background: var(--bg-color) !important;
}
.cat-style-square .categories,
body.cat-style-square .categories {
    gap: 12px;
    padding: 0 15px;
}

.cat-style-square .category-btn,
body.cat-style-square .category-btn {
    width: 75px !important;
    height: auto !important;
    min-width: 75px !important;
    border-radius: 0 !important;
    padding: 0 !important;
    font-size: 9px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    margin-top: 0 !important;
}

.cat-style-square .category-btn.active,
body.cat-style-square .category-btn.active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.cat-style-square .category-btn.active::before,
body.cat-style-square .category-btn.active::before {
    display: none !important;
}

/* Квадратная иконка */
.cat-style-square .category-btn .category-icon,
body.cat-style-square .category-btn .category-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    background-size: cover;
    background-position: center;
    border: 3px solid rgba(255,255,255,0.15);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* УМЕНЬШЕНО: была 0 4px 15px */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Текст под квадратом */
.cat-style-square .category-btn .category-text,
body.cat-style-square .category-btn .category-text {
    font-size: 11px !important;
    margin-top: 8px;
    max-width: 75px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--category-text, #fff);
    text-align: center;
}

/* Активный квадрат */
.cat-style-square .category-btn.active .category-icon,
body.cat-style-square .category-btn.active .category-icon {
    border: 3px solid var(--category-neon-color, #b51a00) !important;
    border-radius: 16px !important;
    box-shadow: 
        0 0 8px var(--cat-neon-glow-70, rgba(74, 222, 128, 0.7)),
        0 0 20px var(--cat-neon-glow-50, rgba(74, 222, 128, 0.5)),
        0 0 35px var(--cat-neon-glow-15, rgba(74, 222, 128, 0.15));
    transform: scale(1.05);
}

.cat-style-square .category-btn.active .category-text,
body.cat-style-square .category-btn.active .category-text {
    text-shadow: 0 0 10px var(--cat-neon-glow-70, rgba(74, 222, 128, 0.7));
    color: var(--category-active-text, var(--category-neon-color, #ffffff));
}

.cat-style-square .category-btn.active .category-icon::before,
body.cat-style-square .category-btn.active .category-icon::before {
    display: none !important;
}

/* Circle Neon - неоновое свечение (для обратной совместимости) */
.cat-style-circle-neon .category-btn .category-icon,
body.cat-style-circle-neon .category-btn .category-icon {
    border: 3px solid rgba(0,255,136,0.3);
    background: rgba(0,20,10,0.5);
}
.cat-style-circle-neon .category-btn.active .category-icon,
body.cat-style-circle-neon .category-btn.active .category-icon {
    border: 3px solid #00ff88 !important;
    border-radius: 50% !important;
    /* ИСПРАВЛЕНО: Уменьшено свечение */
    box-shadow: 
        0 0 5px rgba(0,255,136,0.4),
        0 0 10px rgba(0,255,136,0.15);
    transform: scale(1.02);
}
.cat-style-circle-neon .category-btn.active .category-text,
body.cat-style-circle-neon .category-btn.active .category-text {
    text-shadow: 0 0 8px rgba(0,255,136,0.6);
    color: #00ff88;
}
/* Отключаем ::before для neon - используем только border */
.cat-style-circle-neon .category-btn.active .category-icon::before,
body.cat-style-circle-neon .category-btn.active .category-icon::before {
    display: none !important;
}

/* Circle Gold - золотой */
.cat-style-circle-gold .category-btn .category-icon,
body.cat-style-circle-gold .category-btn .category-icon {
    border-color: rgba(255,215,0,0.3);
}
.cat-style-circle-gold .category-btn.active .category-icon,
body.cat-style-circle-gold .category-btn.active .category-icon {
    border: 3px solid transparent;
    box-shadow: 0 0 12px rgba(255,215,0,0.4), 0 2px 6px rgba(0,0,0,0.2);
    transform: scale(1.02);
}
.cat-style-circle-gold .category-btn.active .category-icon::before,
body.cat-style-circle-gold .category-btn.active .category-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #ffd700, #ffb347, #ffd700);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 0;
}
.cat-style-circle-gold .category-btn.active .category-text,
body.cat-style-circle-gold .category-btn.active .category-text {
    color: #ffd700;
}

/* Circle Rainbow - радуга */
.cat-style-circle-rainbow .category-btn.active .category-icon,
body.cat-style-circle-rainbow .category-btn.active .category-icon {
    border: 3px solid transparent;
    box-shadow: 0 0 10px rgba(255,0,128,0.3), 0 2px 6px rgba(0,0,0,0.2);
    transform: scale(1.02);
}
.cat-style-circle-rainbow .category-btn.active .category-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(#ff0000, #ff8000, #ffff00, #00ff00, #00ffff, #0080ff, #8000ff, #ff0080, #ff0000);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 0;
    animation: rainbow-spin 3s linear infinite;
}
@keyframes rainbow-spin {
    to { transform: rotate(360deg); }
}

/* Circle Glow - свечение */
.cat-style-circle-glow .category-btn.active .category-icon {
    border-color: rgba(255,255,255,0.5);
    background: radial-gradient(circle at center, rgba(255,255,255,0.3), rgba(255,255,255,0.05));
    box-shadow: 0 0 40px rgba(255,255,255,0.6), 0 0 80px rgba(255,255,255,0.3);
    transform: scale(1.05);
}
.cat-style-circle-glow .category-btn.active .category-text {
    color: #ff6b9d;
}

/* Circle Minimal - минималистичный */
.cat-style-circle-minimal .category-btn .category-icon {
    border: 2px solid rgba(255,255,255,0.15);
    background: transparent;
    box-shadow: none;
}
.cat-style-circle-minimal .category-btn.active .category-icon {
    border-color: #fff;
    transform: scale(1.05);
}

/* С картинкой - для всех Circle - картинка на .category-icon */
.cat-style-circle .category-btn[data-image] .category-icon,
.cat-style-circle-neon .category-btn[data-image] .category-icon,
.cat-style-circle-gold .category-btn[data-image] .category-icon,
.cat-style-circle-rainbow .category-btn[data-image] .category-icon,
.cat-style-circle-glow .category-btn[data-image] .category-icon,
.cat-style-circle-minimal .category-btn[data-image] .category-icon {
    font-size: 0 !important;
    background-size: cover !important;
    background-position: center !important;
}

/* Скрытие заголовка "КАТЕГОРИИ" */
.hide-category-title .categories-section .section-header,
.hide-category-title .categories-section .section-title,
.hide-category-title .categories-section .categories-header,
.hide-category-title #categoriesSectionTitle,
.hide-category-title .categories-section h2,
body.hide-category-title .categories-section > .section-header,
body.hide-category-title .categories-section > header,
body.hide-category-title .categories-header {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

/* Скрытие текста под категориями (для Circle стилей) */
body.hide-category-text .category-btn .category-text {
    display: none !important;
}
body.hide-category-text .category-btn {
    margin-top: 5px !important;
}

/* Также скрываем для всех Circle стилей автоматически (опционально) */
.cat-style-circle .categories-section .categories-header,
.cat-style-circle-neon .categories-section .categories-header,
.cat-style-circle-gold .categories-section .categories-header,
.cat-style-circle-rainbow .categories-section .categories-header,
.cat-style-circle-glow .categories-section .categories-header {
    /* Закомментировано - включается отдельным чекбоксом */
}

/* === ВАРИАНТЫ СТИЛЕЙ CIRCLE === */

/* Circle Gradient - градиентная рамка */
.cat-style-circle-gradient .category-btn.active::before {
    background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3) !important;
}

/* Circle Neon - неоновое свечение */
.cat-style-circle-neon .category-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.cat-style-circle-neon .category-btn.active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.cat-style-circle-neon .category-btn.active::before {
    display: none !important;
}

/* Circle Gold - золотой */
.cat-style-circle-gold .category-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.cat-style-circle-gold .category-btn.active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.cat-style-circle-gold .category-btn.active::before {
    display: none !important;
}

/* Circle Rainbow - радуга */
.cat-style-circle-rainbow .category-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.cat-style-circle-rainbow .category-btn.active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.cat-style-circle-rainbow .category-btn.active::before {
    display: none !important;
}
@keyframes rainbow-spin {
    to { transform: rotate(360deg); }
}

/* Circle Minimal - минималистичный */
.cat-style-circle-minimal .category-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.cat-style-circle-minimal .category-btn.active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.cat-style-circle-minimal .category-btn.active::before {
    display: none !important;
}

/* Circle Glow - свечение */
.cat-style-circle-glow .category-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.cat-style-circle-glow .category-btn.active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.cat-style-circle-glow .category-btn.active::before {
    display: none !important;
}

/* Pill - капсулы */
.cat-style-pill .category-btn {
    border-radius: 50px !important;
    padding: 10px 20px !important;
    background: rgba(255,255,255,0.08) !important;
    border: none !important;
}
.cat-style-pill .category-btn.active {
    background: var(--category-active-bg, #fff) !important;
    color: var(--category-active-text, #000) !important;
}

/* Outline - только рамка */
.cat-style-outline .category-btn {
    background: transparent !important;
    border: 2px solid rgba(255,255,255,0.2) !important;
    border-radius: 20px !important;
}
.cat-style-outline .category-btn.active {
    background: transparent !important;
    border-color: var(--category-active-bg, #fff) !important;
    color: var(--category-active-bg, #fff) !important;
}

/* ===== КАТАЛОГ ===== */

/* Стильное уведомление "Нет в наличии" */
.out-of-stock-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    /* Фон/акцент/шрифт из дизайна магазина */
    background: var(--bg-color, #1a1a2e);
    border: 1px solid var(--text-color, rgba(255, 255, 255, 0.4));
    border-radius: var(--border-radius, 16px);
    padding: 16px 24px;
    z-index: 99999999999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    min-width: 280px;
    overflow: hidden;
    font-family: var(--product-font-family, var(--font-family, 'Montserrat', sans-serif));
}

.out-of-stock-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.oos-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.oos-icon {
    font-size: 32px;
    animation: oos-shake 0.5s ease-in-out;
}

@keyframes oos-shake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.oos-text {
    flex: 1;
}

.oos-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color, #fff);
    margin-bottom: 4px;
    font-family: var(--product-font-family, var(--font-family, 'Montserrat', sans-serif));
}

.oos-subtitle {
    font-size: 13px;
    color: var(--text-color, rgba(255, 255, 255, 0.7));
    opacity: 0.7;
    font-family: var(--product-font-family, var(--font-family, 'Montserrat', sans-serif));
}

.oos-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--text-color, #fff);
    opacity: 0.5;
    width: 100%;
    animation: oos-progress 2.5s linear forwards;
    border-radius: 0 0 var(--border-radius, 16px) var(--border-radius, 16px);
}

@keyframes oos-progress {
    from { width: 100%; }
    to { width: 0%; }
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
    padding: 6px 12px 50px;
    background: var(--bg-color);
    position: relative;
    z-index: 1;
    isolation: isolate;
    overflow: visible;
}

/* === СТИЛИ КАРТОЧЕК ТОВАРОВ === */

/* Default - стандартный */
/* ===== СТИЛИ КАРТОЧЕК ТОВАРОВ ===== */

/* Classic - классический (по умолчанию) */
.card-style-classic .product-card {
    border-radius: 12px;
    background: var(--card-bg, #15151f);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* Rounded - сильно скруглённые */
.card-style-rounded .product-card {
    border-radius: 24px;
    background: var(--card-bg, #15151f);
    overflow: hidden;
}
.card-style-rounded .product-card .card-image-container,
.card-style-rounded .product-card .product-image-container {
    border-radius: 20px 20px 0 0;
}

/* Sharp - острые углы */
.card-style-sharp .product-card {
    border-radius: 4px;
    background: var(--card-bg, #15151f);
}
.card-style-sharp .product-card .card-image-container,
.card-style-sharp .product-card .product-image-container {
    border-radius: 2px 2px 0 0;
}

/* Glass - стеклянный эффект */
.card-style-glass .product-card {
    border-radius: 16px;
    background: rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.card-style-glass .product-card .card-info {
    background: transparent;
}

/* Neon - неоновое свечение */
.card-style-neon .product-card {
    border-radius: 12px;
    background: var(--card-bg, #15151f);
    border: 2px solid var(--neon-color, #00ff88) !important;
    box-shadow: 
        0 0 15px var(--neon-glow-40, rgba(0, 255, 136, 0.4)),
        0 0 30px var(--neon-glow-20, rgba(0, 255, 136, 0.2)),
        inset 0 0 20px var(--neon-glow-10, rgba(0, 255, 136, 0.1));
    transition: all 0.3s ease;
}
.card-style-neon .product-card:hover {
    box-shadow: 
        0 0 25px var(--neon-glow-60, rgba(0, 255, 136, 0.6)),
        0 0 50px var(--neon-glow-30, rgba(0, 255, 136, 0.3)),
        inset 0 0 30px var(--neon-glow-15, rgba(0, 255, 136, 0.15));
}

/* Gradient Border - градиентная рамка */
.card-style-gradient-border .product-card {
    border-radius: 16px;
    background: var(--card-bg, #15151f);
    position: relative;
    overflow: visible;
}
.card-style-gradient-border .product-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #666666, #673ab7, #ffffff);
    background-size: 300% 300%;
    animation: gradient-move 4s ease infinite;
    z-index: -1;
}
@keyframes gradient-move {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.card-style-gradient-border .product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: var(--card-bg, #15151f);
    z-index: -1;
}

/* Minimal - минималистичный */
.card-style-minimal .product-card {
    border-radius: 12px;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}
.card-style-minimal .product-card .card-image-container,
.card-style-minimal .product-card .product-image-container {
    border-radius: 12px;
}
.card-style-minimal .product-card .card-info {
    background: var(--card-bg, #15151f);
    border-radius: 10px;
    padding: 12px;
    margin-top: 8px;
}

/* Shadow - глубокая тень */
.card-style-shadow .product-card {
    border-radius: 20px;
    background: var(--card-bg, #15151f);
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.4),
        0 20px 50px rgba(0,0,0,0.2);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card-style-shadow .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 15px 40px rgba(0,0,0,0.5),
        0 30px 70px rgba(0,0,0,0.3);
}

/* Outline - тонкая рамка */
.card-style-outline .product-card {
    border-radius: 12px;
    background: transparent !important;
    border: 2px solid rgba(255,255,255,0.2) !important;
    box-shadow: none;
    transition: all 0.3s ease;
}
.card-style-outline .product-card:hover {
    border-color: var(--primary-color, #ffffff) !important;
    background: rgba(255,255,255,0.03) !important;
}
.card-style-outline .product-card .card-info {
    background: transparent;
}

/* Polaroid - как фото Polaroid */
.card-style-polaroid .product-card {
    border-radius: 4px;
    background: #ffffff !important;
    padding: 8px 8px 0 8px;
    box-shadow: 
        0 4px 15px rgba(0,0,0,0.2),
        0 8px 30px rgba(0,0,0,0.1);
    transform: rotate(-1deg);
    transition: all 0.3s ease;
}
.card-style-polaroid .product-card:nth-child(even) {
    transform: rotate(1deg);
}
.card-style-polaroid .product-card:hover {
    transform: rotate(0deg) scale(1.02);
}
.card-style-polaroid .product-card .card-image-container,
.card-style-polaroid .product-card .product-image-container {
    border-radius: 0;
}
.card-style-polaroid .product-card .card-info {
    background: #ffffff;
    padding: 12px 8px 15px 8px;
}
.card-style-polaroid .product-card .card-title,
.card-style-polaroid .product-card .product-name {
    color: #333 !important;
}
.card-style-polaroid .product-card .card-price,
.card-style-polaroid .product-card .product-price {
    color: #ffffff !important;
}
.card-style-polaroid .product-card .add-to-cart-btn {
    background: #333 !important;
}

/* Светлая тема для карточек */
body.light-theme .card-style-neon .product-card {
    border-color: rgba(233, 30, 99, 0.4) !important;
    box-shadow: 
        0 0 15px rgba(233, 30, 99, 0.2),
        0 0 30px rgba(233, 30, 99, 0.1);
}
body.light-theme .card-style-neon .product-card .card-price,
body.light-theme .card-style-neon .product-card .product-price {
    color: #ffffff !important;
    text-shadow: none;
}
body.light-theme .card-style-outline .product-card {
    border-color: rgba(0,0,0,0.15) !important;
}
body.light-theme .card-style-outline .product-card:hover {
    background: rgba(0,0,0,0.02) !important;
}
body.light-theme .card-style-glass .product-card {
    background: rgba(255,255,255,0.7) !important;
    border-color: rgba(0,0,0,0.1) !important;
}

/* ===== ТАЙМЕР АКЦИЙ НА КАРТОЧКАХ ===== */
.product-timer {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    font-family: 'Roboto Mono', 'Montserrat', monospace;
}

/* Classic */
.timer-style-classic .product-timer {
    background: rgba(0,0,0,0.7);
    color: var(--timer-color, #ff4757);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

/* Boxes */
.timer-style-boxes .product-timer {
    display: flex;
    gap: 4px;
}
.timer-style-boxes .product-timer .timer-block {
    background: var(--timer-color, #ff4757);
    color: #fff;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

/* Neon */
.timer-style-neon .product-timer {
    background: rgba(0,0,0,0.8);
    color: var(--timer-color, #ff4757);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 0 10px var(--timer-color, #ff4757), 0 0 20px var(--timer-color, #ff4757);
    border: 1px solid var(--timer-color, #ff4757);
    box-shadow: 0 0 15px var(--timer-glow, rgba(255,71,87,0.4));
}

/* Gradient */
.timer-style-gradient .product-timer {
    background: linear-gradient(90deg, var(--timer-color, #ff4757), #ff6b81);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

/* Minimal */
.timer-style-minimal .product-timer {
    background: transparent;
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    padding: 4px 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Fire */
.timer-style-fire .product-timer {
    background: linear-gradient(135deg, #ff4757, #ff6b35);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}
.timer-style-fire .product-timer::before {
    content: '🔥 ';
}

/* Pill */
.timer-style-pill .product-timer {
    background: var(--timer-color, #ff4757);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Badge */
.timer-style-badge .product-timer {
    background: linear-gradient(135deg, var(--timer-color, #ff4757), #ff6b81);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--timer-glow, rgba(255,71,87,0.4));
}
.timer-style-badge .product-timer::before {
    content: '⏰ ';
}

/* Flip */
.timer-style-flip .product-timer {
    display: flex;
    gap: 3px;
}
.timer-style-flip .product-timer .timer-block {
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 50%, #2d2d2d 50%, #1a1a1a 100%);
    color: var(--timer-color, #ff4757);
    padding: 5px 7px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Urgent */
.timer-style-urgent .product-timer {
    background: var(--timer-color, #ff4757);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-timer 1s ease-in-out infinite;
}
.timer-style-urgent .product-timer::before {
    content: '⚡ ';
}

@keyframes pulse-timer {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.02); }
}

/* Timer text (если есть) */
.timer-promo-text {
    font-size: 10px;
    margin-top: 3px;
    opacity: 0.9;
}

/* ===== ФУТЕР ===== */
.shop-footer {
    background: var(--footer-bg, var(--bg-color));
    color: var(--footer-text-color, rgba(255,255,255,0.7));
    border-top: 1px solid var(--footer-border-color, rgba(255,255,255,0.06));
    padding: 40px 20px 30px;
    margin-top: 30px;
    font-family: var(--tg-footer-font, 'Montserrat', sans-serif);
    /* Скрываем до загрузки контента */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Показываем после загрузки */
body.loaded .shop-footer {
    opacity: 1;
}

.shop-footer a {
    color: var(--footer-link-color, var(--footer-text-color, rgba(255,255,255,0.5)));
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.shop-footer a:hover {
    opacity: 0.8;
}

/* Контакты - компактный блок */
.footer-contacts {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(0,0,0,0.15);
    border-radius: 16px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
    display: none; /* Скрыто по умолчанию, показывается через JS если есть данные */
}

.footer-address {
    font-size: 13px;
    margin-bottom: 10px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.footer-phone {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-phone a {
    color: inherit;
}

.footer-hours {
    font-size: 13px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Юридические ссылки - сетка 2x2 */
.footer-legal-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 320px;
    margin: 0 auto 25px;
}

.footer-legal-links a {
    font-size: 12px;
    opacity: 0.6;
    text-align: center;
    padding: 8px 12px;
    background: rgba(0,0,0,0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.footer-legal-links a:hover {
    opacity: 1;
    background: rgba(0,0,0,0.2);
}

/* Реквизиты - мелкий текст */
.footer-requisites {
    text-align: center;
    font-size: 10px;
    margin-bottom: 20px;
    line-height: 1.5;
    opacity: 0.4;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* Платёжные системы */
.footer-payments {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 25px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.footer-payments .payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer-payments svg {
    height: 24px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-payments svg:hover {
    opacity: 1;
}

.footer-payments img {
    height: 28px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.footer-payments img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Платформа NEOKODEGROUP */
.platform-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 14px 20px;
    border-top: 1px solid var(--footer-border-color, rgba(255,255,255,0.04));
}

.platform-powered {
    font-size: 8px;
    color: var(--text-color, #fff);
    opacity: 0.3;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.platform-brand {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #38bdf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.platform-tg {
    display: flex;
    align-items: center;
    color: #0088cc;
    opacity: 0.5;
    transition: opacity 0.2s;
    margin-left: 2px;
}
.platform-tg:active {
    opacity: 0.8;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--border-radius, 12px);
    overflow: hidden;
    box-shadow: 0 6px 20px var(--shadow-color);
    cursor: pointer;
    border: 1px solid var(--card-border);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 12px 30px var(--shadow-color),
        0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Отключаем hover эффекты в Telegram */
body.tg-webapp .product-card:hover {
    transform: none;
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* Уменьшаем карточки товаров в Telegram */
body.tg-webapp .catalog-grid {
    gap: 8px;
    padding: 6px 10px 50px 10px;
    margin-top: 0 !important;
}

body.tg-webapp .product-card {
    border-radius: 12px;
}

.card-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-hit {
    background: linear-gradient(135deg, #f5af19, #f12711);
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.badge-sale {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
}

.badge-premium {
    background: linear-gradient(135deg, #1a1a1a, #434343);
    color: #ffd700;
    border: 1px solid #ffd700;
}

.badge-exclusive {
    background: linear-gradient(135deg, #4a0080, #7b1fa2);
    color: #ffd700;
    border: 1px solid #ffd700;
}

.badge-fresh {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
}

.badge-bestseller {
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
    color: white;
}

.badge-gift {
    background: linear-gradient(135deg, #c62828, #e53935);
    color: white;
}

.badge-love {
    background: linear-gradient(135deg, #ec407a, #f48fb1);
    color: white;
}

.badge-newyear {
    background: linear-gradient(135deg, #1b5e20, #c62828);
    color: white;
}

.favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 2;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.favorite-btn:active {
    transform: scale(0.9);
}

body.light-theme .favorite-btn {
    background: rgba(255, 255, 255, 0.8);
}

.favorite-btn.active {
    background: rgba(255, 65, 108, 0.9);
}

.product-info {
    padding: 12px;
    background: var(--card-bg);
}

.product-title {
    font-family: var(--tg-product-title-font, 'Montserrat', sans-serif);
    font-size: var(--tg-product-title-size, 15px);
    font-weight: 600;
    color: var(--card-title-color, var(--text-color));
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.product-price {
    font-family: var(--tg-product-price-font, 'Montserrat', sans-serif);
    font-size: var(--tg-product-price-size, 16px);
    font-weight: 700;
    color: var(--card-price-color, var(--primary-color));
}

/* Кнопка В корзину на карточке товара */
/* Кнопка В корзину - базовые стили (стиль выбирается через класс body) */
.add-to-cart-btn {
    width: 100%;
    padding: 12px 15px;
    margin-top: 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn:active {
    transform: scale(0.97);
}

/* Дефолтный стиль если класс не задан */
body:not([class*="btn-style-"]) .add-to-cart-btn {
    background: var(--accent-color, #e91e63);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

body:not([class*="btn-style-"]) .product-modal-add-btn {
    background: var(--accent-color, #e91e63);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ===== ЛАЙТБОКС ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

/* Скрываем ВСЕ кнопки lightbox по умолчанию */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    display: none !important;
}

/* Показываем кнопки ТОЛЬКО когда lightbox активен */
.lightbox.active .lightbox-close,
.lightbox.active .lightbox-prev,
.lightbox.active .lightbox-next {
    display: flex !important;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: calc(20px + env(safe-area-inset-top, 0px));
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.lightbox-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.lightbox-dot.active {
    background: white;
}

/* ===== СНЕГОВИК С ПРОМОКОДОМ ===== */
.promo-animation {
    position: fixed;
    left: 30px;
    bottom: -300px;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    transition: bottom 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.promo-animation.show {
    bottom: 20px;
}

.promo-emoji {
    font-size: 100px;
    animation: snowmanJump 0.8s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

@keyframes snowmanJump {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.promo-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 50%, #e1f5fe 100%);
    padding: 20px 30px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid #4fc3f7;
}

.promo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #1565c0;
    line-height: 1.6;
    font-weight: 500;
}

.promo-text strong {
    color: #d32f2f;
    font-weight: 700;
    font-size: 22px;
}

/* ===== ДОПЫ (АПСЕЙЛ) ===== */
.upsell-popup {
    position: fixed;
    right: -400px;
    bottom: 80px;
    z-index: 9999;
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 20px 0 0 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: right 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-width: 300px;
}

body.light-theme .upsell-popup {
    background: #1a1a1a;
}

.upsell-popup.show {
    right: 0;
}

.upsell-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-align: center;
}

body.light-theme .upsell-title {
    color: #ffffff;
}

.upsell-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.upsell-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

body.light-theme .upsell-item {
    background: rgba(255, 255, 255, 0.1);
}

.upsell-item:hover {
    transform: translateX(-5px);
}

.upsell-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.upsell-item-emoji {
    font-size: 28px;
}

.upsell-item-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #000000;
}

body.light-theme .upsell-item-name {
    color: #ffffff;
}

.upsell-item-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
}

body.light-theme .upsell-item-price {
    color: #ffffff;
}

.upsell-footer {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .upsell-footer {
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Уменьшаем апсейл для смартфонов */
@media (max-width: 768px) {
    .upsell-popup {
        max-width: 240px;
        padding: 18px 20px;
        bottom: 70px;
    }
    
    .upsell-title {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .upsell-item {
        padding: 12px 15px;
    }
    
    .upsell-item-emoji {
        font-size: 24px;
    }
    
    .upsell-item-name {
        font-size: 13px;
    }
    
    .upsell-item-price {
        font-size: 14px;
    }
}

/* Адаптив */
@media (max-width: 600px) {
    .splash-logo {
        font-size: 70px;
    }
    
    .splash-text {
        font-size: 18px;
    }
    
    .catalog-grid {
        gap: 15px;
        padding: 20px 15px 40px;
    }
    
    .product-title {
        font-size: var(--tg-product-title-size, 18px);
    }
    
    .product-price {
        font-size: var(--tg-product-price-size, 18px);
    }
}

/* ===== НИЖНЯЯ НАВИГАЦИЯ ===== */
.bottom-nav {
    position: fixed;
    /* Меню сидит почти на нижнем крае, но остаётся парящей капсулой.
       Раньше было 20px + вся safe-area — на айфоне это давало ~54px и меню
       болталось в воздухе. Берём половину safe-area: home-indicator не задет,
       но и пустоты под меню нет. Регулируется через --nav-bottom-gap. */
    bottom: calc(var(--nav-bottom-gap, 6px) + var(--safe-area-bottom, 0px) * 0.5);
    left: calc(20px + var(--safe-area-left, 0px));
    right: calc(20px + var(--safe-area-right, 0px));
    height: 70px;
    z-index: 99997;
}

.nav-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--nav-bg-color, rgba(20, 20, 30, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 35px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.4);
}

.nav-items {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    width: 50px;
    height: 50px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.nav-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: transparent;
}

.nav-icon {
    width: 24px;
    height: 24px;
    color: var(--nav-icon-color, rgba(255, 255, 255, 0.5));
    transition: all 0.3s ease;
}

.nav-label {
    display: none;
}

/* ========== СТИЛЬ 1: FLOAT (по умолчанию) - активная кнопка поднимается ========== */
.nav-style-float .nav-item.active {
    transform: translateY(-20px);
}

.nav-style-float .nav-item.active .nav-icon-wrap {
    width: 54px;
    height: 54px;
    background: var(--nav-active-color, #4ade80);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--nav-active-color, #4ade80) 50%, transparent);
}

.nav-style-float .nav-item.active .nav-icon {
    /* ИСПРАВЛЕНИЕ: Используем CSS переменную вместо жёсткого цвета */
    color: var(--nav-icon-color, #000);
    width: 26px;
    height: 26px;
}

/* ========== СТИЛЬ 2: GLOW - неоновое свечение ========== */
.nav-style-glow .nav-bg {
    background: var(--nav-bg-color, rgba(10, 10, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-style-glow .nav-item.active .nav-icon-wrap {
    background: transparent;
    box-shadow: 0 0 20px var(--nav-active-color, #4ade80), 0 0 40px var(--nav-active-color, #4ade80), 0 0 60px var(--nav-active-color, #4ade80);
}

.nav-style-glow .nav-item.active .nav-icon {
    color: var(--nav-active-color, #4ade80);
    filter: drop-shadow(0 0 10px var(--nav-active-color, #4ade80));
    width: 28px;
    height: 28px;
}

/* ========== СТИЛЬ 3: PILL - активный элемент в капсуле ========== */
.nav-style-pill .nav-bg {
    border-radius: 20px;
    height: 65px;
}

.nav-style-pill .nav-items {
    gap: 15px;
}

.nav-style-pill .nav-item {
    padding: 0 15px;
    width: auto;
}

.nav-style-pill .nav-item.active {
    background: var(--nav-active-color, #4ade80);
    border-radius: 30px;
    padding: 10px 25px;
}

.nav-style-pill .nav-item.active .nav-icon-wrap {
    background: transparent;
    width: auto;
    height: auto;
}

.nav-style-pill .nav-item.active .nav-icon {
    color: #000;
}

.nav-style-pill .nav-label {
    display: none;
}

.nav-style-pill .nav-item.active .nav-label {
    display: block;
    color: #000;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

/* ========== СТИЛЬ 4: GLASS - стеклянный эффект ========== */
.nav-style-glass .nav-bg {
    background: var(--nav-bg-color, linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%));
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(30px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.nav-style-glass .nav-item.active .nav-icon-wrap {
    background: var(--nav-active-color, #4ade80);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--nav-active-color, #4ade80) 40%, transparent);
}

.nav-style-glass .nav-item.active .nav-icon {
    color: #000;
}

/* ========== СТИЛЬ 5: DOCK - как в macOS ========== */
.nav-style-dock .nav-bg {
    background: var(--nav-bg-color, rgba(30, 30, 40, 0.9));
    border-radius: 18px;
    height: 60px;
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-style-dock .nav-items {
    gap: 8px;
}

.nav-style-dock .nav-item {
    width: 44px;
    height: 44px;
    transition: all 0.2s ease;
}

.nav-style-dock .nav-item:hover {
    transform: translateY(-8px) scale(1.2);
}

.nav-style-dock .nav-item.active {
    transform: translateY(-8px) scale(1.2);
}

.nav-style-dock .nav-item.active .nav-icon-wrap {
    background: var(--nav-active-color, #4ade80);
    border-radius: 12px;
    width: 44px;
    height: 44px;
}

.nav-style-dock .nav-item.active .nav-icon {
    color: #000;
}

.nav-style-dock .nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    width: 4px;
    height: 4px;
    background: var(--nav-active-color, #4ade80);
    border-radius: 50%;
}

/* === MINIMAL STYLE === */
.nav-style-minimal .nav-bg {
    background: transparent !important;
    box-shadow: none !important;
}

.nav-style-minimal .nav-item.active .nav-icon-wrap {
    background: transparent !important;
    box-shadow: none !important;
}

.nav-style-minimal .nav-item.active .nav-icon {
    color: var(--nav-active-color, #4ade80);
}

.nav-style-minimal .nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 2px;
    background: var(--nav-active-color, #4ade80);
    border-radius: 2px;
}

/* === BUBBLE STYLE === */
.nav-style-bubble .nav-item.active .nav-icon-wrap {
    background: var(--nav-active-color, #4ade80) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    transform: scale(1.15);
    box-shadow: 0 0 20px var(--nav-active-color, #4ade80);
}

.nav-style-bubble .nav-item.active .nav-icon {
    color: #000;
}

/* === iOS STYLE === */
.nav-style-ios .nav-bg {
    background: var(--nav-bg-color, rgba(255,255,255,0.1)) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}

.nav-style-ios .nav-item.active .nav-icon-wrap {
    background: transparent !important;
    box-shadow: none !important;
}

.nav-style-ios .nav-item.active .nav-icon {
    color: var(--nav-active-color, #007aff);
}

.nav-style-ios .nav-item .nav-label {
    display: block !important;
    font-size: 10px;
    margin-top: 4px;
}

/* === FROSTED GLASS NAV === */
.nav-style-frosted .nav-bg {
    background: var(--nav-bg-color, rgba(255, 255, 255, 0.08)) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.nav-style-frosted .nav-item .nav-icon {
    color: var(--nav-inactive-color, rgba(255, 255, 255, 0.85));
}

.nav-style-frosted .nav-item.active .nav-icon-wrap {
    background: var(--nav-active-color, #4ade80);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-top: -8px;
}

.nav-style-frosted .nav-item.active .nav-icon {
    color: #fff;
    filter: none;
}

.nav-style-frosted .nav-item .nav-label {
    display: block !important;
    font-size: 9px;
    margin-top: 3px;
    color: var(--nav-inactive-color, rgba(255, 255, 255, 0.85));
}

.nav-style-frosted .nav-item.active .nav-label {
    color: var(--nav-active-color, #4ade80);
    font-weight: 600;
}

/* === NEON BAR NAV === */
.nav-style-neon-bar .nav-bg {
    background: var(--nav-bg-color, rgba(10, 10, 20, 0.95)) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 22px !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(var(--nav-active-r, 74), var(--nav-active-g, 222), var(--nav-active-b, 128), 0.1) !important;
}

.nav-style-neon-bar .nav-item.active .nav-icon-wrap {
    background: transparent;
    position: relative;
}

.nav-style-neon-bar .nav-item.active .nav-icon-wrap::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: var(--nav-active-color, #4ade80);
    box-shadow: 0 0 8px var(--nav-active-color, #4ade80), 0 0 16px var(--nav-active-color, #4ade80);
}

.nav-style-neon-bar .nav-item.active .nav-icon {
    color: var(--nav-active-color, #4ade80);
    filter: drop-shadow(0 0 8px var(--nav-active-color, #4ade80));
}

.nav-style-neon-bar .nav-item .nav-label {
    display: none !important;
}

/* Hover эффект общий */
.nav-item:not(.active):hover .nav-icon {
    color: rgba(255, 255, 255, 0.8);
}

/* Бейдж корзины */
.nav-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    background: var(--accent-color, #e91e63);
    color: var(--btn-text-color, white);
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-badge.show {
    opacity: 1;
    transform: scale(1);
    /* Без анимаций с переворотом! */
}

/* Bounce при добавлении товара - простая анимация БЕЗ переворота */
.nav-badge.bounce {
    animation: badge-add-bounce 0.35s ease-out !important;
}

@keyframes badge-add-bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Bounce для иконки корзины - тоже без переворота */
.nav-icon.cart-bounce {
    animation: cart-icon-bounce 0.4s ease-out;
}

@keyframes cart-icon-bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Отступ для контента снизу */
body {
    padding-bottom: 100px;
}

/* Светлая тема для навигации */
.light-theme .nav-bg {
    background: var(--nav-bg-color, rgba(255, 255, 255, 0.95));
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.1);
}

.light-theme .nav-icon {
    color: rgba(0, 0, 0, 0.4);
}

.light-theme .nav-label {
    color: rgba(0, 0, 0, 0.4);
}

.light-theme .nav-item:not(.active):hover .nav-icon {
    color: rgba(0, 0, 0, 0.7);
}

.light-theme .nav-item:not(.active):hover .nav-label {
    color: rgba(0, 0, 0, 0.7);
}

/* ===== МОДАЛЬНОЕ ОКНО ТОВАРА ===== */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.product-modal.show {
    display: flex;
}

.product-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.product-modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 92vh;
    /* ИСПРАВЛЕНИЕ: Используем цвет фона из настроек */
    background: var(--bg-color, #1a1a2e);
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

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

/* КРЕСТИК КАРТОЧКИ ТОВАРА. Одно правило на всё.
   Раньше их было три, и они спорили: в установленном приложении
   отдельное правило добавляло к отступу сверху всю высоту «чёлки»
   (~59px), и крестик съезжал на середину фото. Модалка выезжает
   снизу и до чёлки не достаёт, так что этот отступ был лишним.
   Сам знак ✕ из шрифта прячем: у каждого шрифта он сидит со своим
   смещением, отсюда и «кривизна». Крест рисуем двумя линиями,
   они встают ровно по центру круга на любом устройстве. */
.product-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
    font-size: 0;
    line-height: 0;
    color: transparent;
    cursor: pointer;
    z-index: 20;
    display: block;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-modal-close::before,
.product-modal-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2.5px;
    border-radius: 2px;
    background: #16161a;
}
.product-modal-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.product-modal-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.product-modal-close:active {
    transform: scale(0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* Галерея.
   Высота ФИКСИРОВАННАЯ. Раньше она подстраивалась под самое высокое фото
   в ряду, а пока новое фото грузилось, падала в ноль. При смене цвета
   галерея то сжималась, то растягивалась, и весь текст под ней прыгал.
   Теперь окно фото всегда одного размера, а каждое фото вписывается в
   него целиком и стоит по центру, вертикальное оно или горизонтальное. */
.product-modal-gallery {
    position: relative;
    width: 100%;
    height: 45vh;
    max-height: 45vh;
    overflow: hidden;
    /* ИСПРАВЛЕНИЕ: Фон из настроек вместо чёрного */
    background: var(--bg-color, #000);
    flex-shrink: 0;
}

.product-modal-images {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
    will-change: transform;
}

.product-modal-images img {
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
    cursor: zoom-in;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    /* ИСПРАВЛЕНИЕ: Фон для изображения из настроек */
    background: var(--bg-color, transparent);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    /* Скрываем стрелки - используем точки */
    display: none !important;
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.gallery-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s;
}

.gallery-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* Информация */
.product-modal-info {
    padding: 15px 20px 20px;
    overflow-y: auto;
    flex: 1;
    /* ИСПРАВЛЕНИЕ: Фон из настроек */
    background: var(--bg-color, #1a1a2e);
    color: var(--card-title-color, var(--text-color, #ffffff));
    -webkit-overflow-scrolling: touch;
    max-height: 50vh;
}

.product-modal-title {
    font-family: var(--tg-product-title-font, 'Montserrat', sans-serif) !important;
    font-size: var(--product-modal-title-size, 20px);
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.2;
    color: var(--card-title-color, var(--text-color, #ffffff));
}

.product-modal-price {
    font-family: var(--tg-product-price-font, 'Montserrat', sans-serif) !important;
    font-size: var(--product-modal-price-size, 24px);
    font-weight: 700;
    color: var(--card-price-color, #ffffff);
    margin-bottom: 10px;
}

.product-modal-desc {
    font-size: var(--product-modal-desc-size, 13px);
    color: var(--card-title-color, var(--text-color, #ffffff));
    opacity: 0.7;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Модификаторы в модальном */
.product-modal-modifiers {
    margin-bottom: 20px;
}

.modal-modifier-group {
    margin-bottom: 15px;
}

.modal-modifier-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color, #fff);
    opacity: 0.7;
}

.modal-modifier-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-modifier-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-color, #fff);
}

.modal-modifier-item:hover {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.25);
}

.modal-modifier-item.selected {
    background: var(--accent-color, #e91e63);
    border-color: var(--accent-color, #e91e63);
    color: var(--btn-text-color, #fff);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.modal-modifier-item-emoji {
    font-size: 16px;
}

.modal-modifier-item-name {
    font-size: 13px;
    font-weight: 500;
}

.modal-modifier-item-price {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.8;
}

/* Итого */
.product-modal-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    /* ИСПРАВЛЕНИЕ: Адаптивный фон */
    background: rgba(128, 128, 128, 0.15);
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--card-title-color, var(--text-color, #ffffff));
}

.product-modal-total span:last-child {
    color: var(--card-price-color, var(--text-color, #ffffff));
    font-size: 18px;
}

/* Ряд цены с единицей измерения */
.product-modal-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.product-modal-unit {
    font-size: 14px;
    opacity: 0.6;
}

/* Счётчик фото */
.gallery-counter {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

/* КБЖУ */
.product-modal-nutrition {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.nutrition-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.9;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    text-align: center;
}

.nutrition-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nutrition-value {
    font-size: 15px;
    font-weight: 700;
    color: #4caf50;
}

.nutrition-label {
    font-size: 10px;
    opacity: 0.6;
}

.nutrition-weight {
    margin-top: 8px;
    font-size: 11px;
    opacity: 0.7;
    text-align: center;
}

/* Размеры */
.product-modal-sizes {
    margin-bottom: 15px;
}

.sizes-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.sizes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-btn {
    min-width: 48px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.size-btn:hover {
    border-color: rgba(255,255,255,0.3);
}

.size-btn.selected {
    background: linear-gradient(135deg, #ffffff, #666666);
    border-color: #ffffff;
}

.size-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Количество в модалке */
.product-modal-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(128,128,128,0.15);
    border: 1px solid rgba(128,128,128,0.25);
    border-radius: 12px;
    margin-bottom: 12px;
}

.quantity-label {
    font-size: 13px;
    opacity: 0.9;
    color: var(--card-title-color, var(--text-color, #fff));
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Кнопки +/- контрастные - белые с тёмным текстом */
.quantity-controls .qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.95);
    color: #333;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.quantity-controls .qty-btn:hover {
    background: #fff;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.quantity-controls .qty-btn:active {
    transform: scale(0.95);
}

.quantity-controls .qty-value {
    min-width: 30px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color, #fff);
}

/* Зум фото */
.photo-zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.98);
    z-index: 99999999;
    align-items: center;
    justify-content: center;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.photo-zoom-modal.show {
    display: flex;
}

.photo-zoom-modal img {
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    touch-action: none;
    user-select: none;
    transform-origin: center center;
    transition: transform 0.05s ease-out;
}

.zoom-close {
    position: fixed;
    top: calc(20px + env(safe-area-inset-top, 0px));
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.zoom-nav {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.zoom-prev, .zoom-next {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

/* Кнопка добавить */
.product-modal-add-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    font-family: var(--btn-font-family, 'Montserrat'), sans-serif;
}

.product-modal-add-btn:active {
    transform: scale(0.98);
}

/* Базовые стили для кнопки в каталоге */
.add-to-cart-btn {
    width: 100%;
    padding: 12px 15px;
    margin-top: 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--btn-font-family, 'Montserrat'), sans-serif;
}

.add-to-cart-btn:active {
    transform: scale(0.97);
}

/* ===== СТИЛИ КНОПОК ===== */

/* Стиль 1: Залитая */
.btn-style-1 .product-modal-add-btn,
.btn-style-1 .add-to-cart-btn {
    background: var(--btn-bg-color, var(--accent-color, #e91e63));
    color: var(--btn-text-color, #ffffff);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Стиль 2: Рамка */
.btn-style-2 .product-modal-add-btn,
.btn-style-2 .add-to-cart-btn {
    background: transparent;
    color: var(--btn-text-color, var(--btn-border-color, #e91e63));
    border: 2px solid var(--btn-border-color, var(--accent-color, #e91e63));
    box-shadow: none;
}

/* Стиль 3: Pill */
.btn-style-3 .product-modal-add-btn,
.btn-style-3 .add-to-cart-btn {
    background: var(--btn-bg-color, var(--accent-color, #e91e63));
    color: var(--btn-text-color, #ffffff);
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Стиль 4: Градиент */
.btn-style-4 .product-modal-add-btn,
.btn-style-4 .add-to-cart-btn {
    background: linear-gradient(135deg, var(--btn-bg-color, var(--accent-color, #e91e63)), var(--btn-bg-color-2, #9c27b0));
    color: var(--btn-text-color, #ffffff);
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Стиль 5: Стекло */
.btn-style-5 .product-modal-add-btn,
.btn-style-5 .add-to-cart-btn {
    background: rgba(255,255,255,0.1);
    color: var(--btn-text-color, var(--text-color, #ffffff));
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    box-shadow: none;
}

/* Стиль 6: Минимал */
.btn-style-6 .product-modal-add-btn,
.btn-style-6 .add-to-cart-btn {
    background: transparent;
    color: var(--btn-text-color, var(--text-color, #ffffff));
    border: 1px solid var(--btn-border-color, rgba(255,255,255,0.3));
    box-shadow: none;
}

/* Стиль 7: 3D */
.btn-style-7 .product-modal-add-btn,
.btn-style-7 .add-to-cart-btn {
    background: linear-gradient(180deg, var(--btn-bg-color, var(--accent-color, #e91e63)) 0%, color-mix(in srgb, var(--btn-bg-color, var(--accent-color, #e91e63)) 70%, black) 100%);
    color: var(--btn-text-color, #ffffff);
    border: none;
    border-bottom: 4px solid color-mix(in srgb, var(--btn-bg-color, var(--accent-color, #e91e63)) 50%, black);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Стиль 8: Слайдер (свайп в корзину) - СНАЙПЕР! */
.btn-style-8 .product-modal-add-btn,
.btn-style-8 .add-to-cart-btn {
    background: rgba(255,255,255,0.1) !important;
    border: 2px solid var(--btn-bg-color, var(--accent-color, #e91e63)) !important;
    position: relative !important;
    overflow: hidden !important;
    padding-left: 50px !important;
    color: var(--btn-text-color, #ffffff) !important;
    cursor: default !important;
    touch-action: pan-y !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

/* Модалка - чуть больше отступ */
.btn-style-8 .product-modal-add-btn {
    padding-left: 60px !important;
}

/* Псевдо-элемент показываем только пока JS не создал реальный ползунок */
.btn-style-8 .add-to-cart-btn::before,
.btn-style-8 .product-modal-add-btn::before {
    content: '→';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--btn-bg-color, var(--accent-color, #e91e63));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--btn-text-color, white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    pointer-events: none;
    z-index: 5;
}

.btn-style-8 .product-modal-add-btn::before {
    width: 46px;
    height: 46px;
    left: 6px;
    font-size: 22px;
}

/* Скрываем псевдо-элемент когда есть реальный ползунок */
.btn-style-8 .add-to-cart-btn:has(.swipe-slider-handle)::before,
.btn-style-8 .product-modal-add-btn:has(.swipe-slider-handle)::before {
    display: none !important;
}

/* Стили для ползунка - делаем его круглым и красивым */
.btn-style-8 .swipe-slider-handle {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Светлая тема */
body.light-theme .product-modal-content {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    color: #333;
}

body.light-theme .modal-modifier-item {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
    color: #333;
}

body.light-theme .modal-modifier-item.selected {
    background: var(--accent-color, #e91e63);
    border-color: var(--accent-color, #e91e63);
    color: var(--btn-text-color, #fff);
}

body.light-theme .modal-modifier-group-title {
    color: #333;
}

body.light-theme .product-modal-total {
    background: rgba(0, 0, 0, 0.03);
}

/* Блокировка прокрутки */
body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* ===== POPUP МОДИФИКАТОРОВ ===== */
.modifiers-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modifiers-popup.show {
    display: flex;
}

.modifiers-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.modifiers-content {
    position: relative;
    z-index: 2;
    background: var(--modifiers-bg-color, var(--bg-color, #0a0a0f));
    border-radius: 28px;
    padding: 30px;
    max-width: 420px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: popupSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modifiers-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(128, 128, 128, 0.14);
    border-radius: 50%;
    color: var(--modifiers-text-color, var(--text-color, #fff));
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modifiers-close:hover {
    background: rgba(128, 128, 128, 0.22);
    transform: scale(1.1);
}

.modifiers-header {
    text-align: center;
    margin-bottom: 25px;
}

.modifiers-emoji {
    font-size: 55px;
    margin-bottom: 15px;
    display: inline-block;
    animation: bounce 2s infinite;
}

.modifiers-title {
    font-family: var(--modifiers-font-family, var(--font-family, 'Montserrat', sans-serif));
    font-size: 26px;
    font-weight: 700;
    color: var(--modifiers-text-color, var(--text-color, #fff));
    margin-bottom: 8px;
}

.modifiers-subtitle {
    color: var(--modifiers-text-color, var(--text-color, #fff));
    opacity: 0.6;
    font-size: 14px;
    font-family: var(--modifiers-font-family, var(--font-family, 'Montserrat', sans-serif));
}

.modifiers-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 25px;
}

.modifier-group-header {
    font-family: var(--modifiers-font-family, var(--font-family, 'Montserrat', sans-serif));
    color: var(--modifiers-text-color, var(--text-color, #fff));
}

.modifier-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(128, 128, 128, 0.10);
    border-radius: 18px;
    border: 1px solid rgba(128, 128, 128, 0.20);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modifier-item:hover {
    background: rgba(128, 128, 128, 0.16);
}

.modifier-item.selected {
    border-color: var(--accent-color, #e91e63);
    background: rgba(128, 128, 128, 0.10);
    background: color-mix(in srgb, var(--accent-color, #e91e63) 15%, transparent);
}

.modifier-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.modifier-item-emoji {
    font-size: 36px;
    flex-shrink: 0;
}

.modifier-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.modifier-item-name {
    color: var(--modifiers-text-color, var(--text-color, #fff));
    font-family: var(--modifiers-font-family, var(--font-family, 'Montserrat', sans-serif));
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 3px;
}

.modifier-item.selected .modifier-item-name {
    color: var(--modifiers-text-color, var(--text-color, #fff));
}

.modifier-item-desc {
    color: var(--modifiers-text-color, var(--text-color, #fff));
    opacity: 0.4;
    font-size: 12px;
}

.modifier-item-price {
    color: var(--modifiers-price-color, var(--accent-color, #e91e63));
    font-family: var(--modifiers-font-family, var(--font-family, 'Montserrat', sans-serif));
    font-weight: 600;
    font-size: 17px;
    margin-right: 12px;
    white-space: nowrap;
}

.modifier-item.selected .modifier-item-price {
    color: var(--modifiers-price-color, var(--accent-color, #e91e63));
}

.modifier-checkbox {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(128, 128, 128, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 10px;
    flex-shrink: 0;
}

.modifier-item.selected .modifier-checkbox {
    background: var(--accent-color, #e91e63);
    border-color: var(--accent-color, #e91e63);
}

.modifier-item.selected .modifier-checkbox::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.modifiers-actions {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 10;
}

.modifiers-skip {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(128, 128, 128, 0.25);
    background: rgba(128, 128, 128, 0.10);
    color: var(--modifiers-text-color, var(--text-color, #fff));
    font-family: var(--modifiers-font-family, var(--font-family, 'Montserrat', sans-serif));
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.modifiers-skip:hover {
    background: rgba(128, 128, 128, 0.18);
}

.modifiers-skip:active {
    background: rgba(128, 128, 128, 0.24);
    transform: scale(0.98);
}

.modifiers-add {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: var(--accent-color, #e91e63);
    color: var(--btn-text-color, #fff);
    font-family: var(--modifiers-font-family, var(--font-family, 'Montserrat', sans-serif));
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.modifiers-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modifiers-add:active {
    transform: scale(0.98);
}

/* ===== POPUP АПСЕЛ (МОДАЛЬНЫЙ) ===== */
.upsell-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.upsell-modal.show {
    display: flex;
}

.upsell-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.upsell-modal-content {
    position: relative;
    background: var(--upsell-bg-color, var(--bg-color, #0a0a0f));
    border-radius: 28px;
    padding: 30px;
    max-width: 420px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: popupSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.upsell-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: var(--upsell-text-color, var(--text-color, #333));
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upsell-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.upsell-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.upsell-modal-emoji {
    font-size: 55px;
    margin-bottom: 15px;
    display: inline-block;
    animation: pulse 2s infinite;
}

.upsell-modal-title {
    font-family: var(--upsell-font-family, var(--font-family, 'Montserrat', sans-serif));
    font-size: 26px;
    font-weight: 700;
    color: var(--upsell-text-color, var(--text-color, #333));
    margin-bottom: 8px;
}

.upsell-modal-subtitle {
    font-family: var(--upsell-font-family, var(--font-family, 'Montserrat', sans-serif));
    color: var(--upsell-text-color, var(--text-color, #333));
    opacity: 0.5;
    font-size: 14px;
}

.upsell-modal-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 25px;
}

.upsell-modal-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: rgba(128, 128, 128, 0.10);
    border-radius: 18px;
    border: 1px solid rgba(128, 128, 128, 0.20);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upsell-modal-item:hover {
    background: rgba(128, 128, 128, 0.16);
}

.upsell-modal-item.selected {
    background: color-mix(in srgb, var(--accent-color, #e91e63) 15%, transparent);
    border-color: var(--accent-color, #e91e63);
}

.upsell-modal-item.selected .upsell-modal-item-check .check-circle {
    background: var(--accent-color, #e91e63);
    border-color: var(--accent-color, #e91e63);
}

.upsell-modal-item.selected .upsell-modal-item-check .check-circle::after {
    content: '✓';
    color: white;
    font-size: 14px;
}

.upsell-modal-item-check {
    margin-left: 10px;
}

.upsell-modal-item-check .check-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(128, 128, 128, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.upsell-modal-item-emoji {
    font-size: 36px;
    margin-right: 15px;
}

.upsell-modal-item-info {
    flex: 1;
}

.upsell-modal-item-name {
    font-family: var(--upsell-font-family, var(--font-family, 'Montserrat', sans-serif));
    color: var(--upsell-text-color, var(--text-color, #333));
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 3px;
}

.upsell-modal-item-desc {
    font-family: var(--upsell-font-family, var(--font-family, 'Montserrat', sans-serif));
    color: var(--upsell-text-color, var(--text-color, #333));
    opacity: 0.4;
    font-size: 12px;
}

.upsell-modal-item-price {
    font-family: var(--upsell-font-family, var(--font-family, 'Montserrat', sans-serif));
    color: var(--upsell-price-color, var(--accent-color, #e91e63));
    font-weight: 600;
    font-size: 17px;
    margin-right: 12px;
}

.upsell-modal-item-add {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: none;
    background: var(--accent-color, #e91e63);
    color: var(--btn-text-color, white);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upsell-modal-item-add:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.4);
}

.upsell-modal-item-add.added {
    background: var(--accent-color, #e91e63);
}

.upsell-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.upsell-modal-skip {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.05);
    color: var(--upsell-text-color, #333);
    font-family: var(--upsell-font-family, var(--font-family, 'Montserrat', sans-serif));
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upsell-modal-skip:hover {
    background: rgba(0, 0, 0, 0.1);
}

.upsell-modal-confirm {
    flex: 1;
    padding: 14px 20px;
    border: none !important;
    background: var(--upsell-btn-color, var(--accent-color, #e91e63)) !important;
    color: var(--btn-text-color, #ffffff) !important;
    font-family: var(--upsell-font-family, var(--font-family, 'Montserrat', sans-serif));
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.upsell-modal-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Фикс для чёрной кнопки - явно переопределяем */
#upsellConfirmBtn {
    background: var(--accent-color, #e91e63) !important;
    color: #ffffff !important;
}

/* Светлая тема для модификаторов и апсел */
body.light-theme .modifiers-content,
body.light-theme .upsell-modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f5f5f5 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .modifiers-title,
body.light-theme .upsell-modal-title {
    color: #000000;
}

body.light-theme .modifiers-subtitle,
body.light-theme .upsell-modal-subtitle {
    color: rgba(0, 0, 0, 0.5);
}

body.light-theme .modifier-item,
html.light-theme .modifier-item {
    background: rgba(128, 128, 128, 0.10);
    border: 1px solid rgba(128, 128, 128, 0.20);
    border-radius: 18px;
}

body.light-theme .modifier-item:hover,
html.light-theme .modifier-item:hover {
    background: rgba(128, 128, 128, 0.16);
}

body.light-theme .modifier-item-name,
body.light-theme .upsell-modal-item-name {
    color: #000000;
}

body.light-theme .modifier-item-desc {
    color: rgba(0, 0, 0, 0.45);
}

body.light-theme .modifier-item-price {
    color: #333;
}

body.light-theme .modifier-group-header {
    color: #000;
}

body.light-theme .modifier-checkbox,
html.light-theme .modifier-checkbox {
    border-color: rgba(128, 128, 128, 0.4);
}

body.light-theme .modifier-item.selected,
html.light-theme .modifier-item.selected {
    border-color: var(--accent-color, #e91e63);
    background: color-mix(in srgb, var(--accent-color, #e91e63) 15%, transparent);
}

body.light-theme .modifiers-skip {
    background: rgba(0, 0, 0, 0.06);
    color: #333;
}

body.light-theme .upsell-modal-item {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .upsell-modal-item:hover {
    background: rgba(0, 0, 0, 0.06);
}

body.light-theme .modifiers-close,
body.light-theme .upsell-modal-close,
body.light-theme .modifiers-skip,
body.light-theme .upsell-modal-skip {
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
}

/* ========================================
   БОНУСНАЯ СИСТЕМА - ПОДАРОК
   ======================================== */

.bonus-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.bonus-modal.active {
    display: flex;
}

.bonus-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(233, 30, 99, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(156, 39, 176, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(103, 58, 183, 0.2) 0%, transparent 70%),
        linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    opacity: 0;
    animation: bonusBgFade 0.5s ease-out forwards;
}

@keyframes bonusBgFade {
    to { opacity: 1; }
}

.bonus-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bonus-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: titleSlide 0.6s ease-out 0.3s backwards;
}

.bonus-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    animation: titleSlide 0.6s ease-out 0.5s backwards;
}

@keyframes titleSlide {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.bonus-gift-box {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 30px;
    cursor: pointer;
    animation: giftFloat 2s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.bonus-gift-box:active {
    transform: scale(0.9) !important;
}

@keyframes giftFloat {
    0%, 100% { transform: translateY(0px) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.gift-emoji {
    font-size: 200px;
    position: relative;
    z-index: 2;
    animation: giftSpin 3s ease-in-out infinite;
    line-height: 1;
}

@keyframes giftSpin {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.gift-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

.tap-instruction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: tapBounce 1s ease-in-out infinite;
}

.tap-finger {
    font-size: 48px;
    animation: fingerTap 1.5s ease-in-out infinite;
}

@keyframes fingerTap {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

.tap-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

@keyframes tapBounce {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Результат открытия подарка */
.bonus-result {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    animation: resultAppear 0.5s ease-out forwards;
}

@keyframes resultAppear {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.bonus-result-emoji {
    font-size: 80px;
    margin-bottom: 20px;
    animation: emojiSpin 0.6s ease-out;
}

@keyframes emojiSpin {
    from { transform: rotate(-180deg) scale(0); }
    to { transform: rotate(0) scale(1); }
}

.bonus-result-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.bonus-result-amount {
    font-size: clamp(48px, 12vw, 64px);
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 4px 30px rgba(255, 215, 0, 0.8);
    margin-bottom: 10px;
    animation: amountPulse 1s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes amountPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.bonus-result-text {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.bonus-result-hint {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Уведомление о бонусе в каталоге */
.bonus-notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    animation: notifSlideDown 0.5s ease-out;
}

@keyframes notifSlideDown {
    from { transform: translate(-50%, -100%); opacity: 0; }
    to { transform: translateX(-50%); opacity: 1; }
}

.bonus-notif-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    max-width: 90vw;
}

.bonus-notif-icon {
    font-size: 40px;
    animation: iconWobble 2s ease-in-out infinite;
}

@keyframes iconWobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.bonus-notif-text {
    flex: 1;
}

.bonus-notif-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.bonus-notif-title span {
    color: #ffd700;
}

.bonus-notif-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.bonus-notif-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Конфетти для бонуса */
.bonus-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall 3s ease-out forwards;
}

.confetti-emoji {
    position: absolute;
    animation: emojiConfettiFall 4s ease-out forwards;
    pointer-events: none;
}

@keyframes emojiConfettiFall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(0);
    }
    10% {
        transform: translateY(10vh) rotate(30deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(360deg) scale(0.5);
    }
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}

@keyframes notifSlideUp {
    from { transform: translateX(-50%); opacity: 1; }
    to { transform: translate(-50%, -100%); opacity: 0; }
}

/* ========================================
   ШИКАРНЫЙ AUTH MODAL С ПАДАЮЩИМИ ЭМОДЗИ
   ======================================== */

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    touch-action: none;
    overscroll-behavior: contain;
}

.auth-modal.active {
    display: flex;
}

.auth-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(233, 30, 99, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(156, 39, 176, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(103, 58, 183, 0.2) 0%, transparent 70%),
        linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    opacity: 0;
    animation: authBgFade 0.5s ease-out forwards;
}

@keyframes authBgFade {
    to { opacity: 1; }
}

.auth-close-btn {
    position: fixed;
    top: calc(env(safe-area-inset-top, 20px) + 10px);
    right: 16px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.auth-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.auth-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.auth-step {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: stepFadeIn 0.5s ease-out;
    position: relative;
}

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-gift-box {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 15px;
    cursor: pointer;
    animation: giftFloat 2s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.auth-gift-box:active {
    transform: scale(0.9) !important;
}

.auth-gift-box .gift-emoji {
    font-size: 100px;
    position: relative;
    z-index: 2;
    animation: giftSpin 3s ease-in-out infinite;
    line-height: 1;
}

.auth-gift-box .gift-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    margin: -125px 0 0 -125px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
    z-index: 1;
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: titleSlide 0.6s ease-out backwards;
}

.auth-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.5;
    animation: titleSlide 0.6s ease-out 0.2s backwards;
}

.auth-icon-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconPop 0.5s ease-out;
}

.auth-icon-circle.pink {
    background: linear-gradient(135deg, #ffffff, #666666);
    box-shadow: 0 15px 50px rgba(233, 30, 99, 0.5);
}

.auth-icon-circle.purple {
    background: linear-gradient(135deg, #666666, #673ab7);
    box-shadow: 0 15px 50px rgba(156, 39, 176, 0.5);
}

.auth-icon-circle.gold {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    box-shadow: 0 15px 50px rgba(255, 193, 7, 0.5);
}

.auth-icon-circle.green {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    box-shadow: 0 15px 50px rgba(76, 175, 80, 0.5);
}

.auth-icon-circle.large {
    width: 140px;
    height: 140px;
}

.auth-icon-circle .animated-emoji {
    font-size: 60px;
    animation: emojiFloat 2s ease-in-out infinite;
}

.auth-icon-circle.large .animated-emoji {
    font-size: 70px;
}

@keyframes iconPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes emojiFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.auth-input {
    width: 100%;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: white;
    font-size: 18px;
    text-align: center;
    margin-bottom: 15px;
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s ease;
}

.auth-input:focus {
    border-color: rgba(233, 30, 99, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

.auth-input.code-input {
    font-size: 28px;
    letter-spacing: 10px;
    font-weight: bold;
}

.auth-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.auth-select {
    flex: 1;
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: white;
    font-size: 16px;
    outline: none;
}

.auth-select option {
    background: #1a1a24;
    color: white;
}

.auth-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-btn.pink {
    background: linear-gradient(135deg, #ffffff, #666666);
    color: white;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.4);
}

.auth-btn.purple {
    background: linear-gradient(135deg, #666666, #673ab7);
    color: white;
    box-shadow: 0 10px 30px rgba(156, 39, 176, 0.4);
}

.auth-btn.gold {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #000;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.4);
}

.auth-btn.green {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
}

.auth-btn:active {
    transform: scale(0.95);
}

.auth-error {
    display: none;
    color: #f44336;
    font-size: 14px;
    margin-bottom: 15px;
}

.auth-skip {
    display: block;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    text-decoration: none;
}

.auth-link-text {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.auth-link {
    color: #ffc107;
    text-decoration: none;
    font-weight: 600;
}

.auth-code-display {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
}

.auth-code-display span {
    font-size: 40px;
    font-weight: bold;
    letter-spacing: 12px;
    color: #000;
}

.auth-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* Падающие эмодзи для auth */
.auth-falling-emojis .falling-emoji {
    position: absolute;
    top: -50px;
    animation: authEmojisFall linear forwards;
    pointer-events: none;
    z-index: 0;
}

@keyframes authEmojisFall {
    to {
        transform: translateY(110vh) rotate(360deg);
    }
}

/* ========================================
   КРАСИВЫЙ AUTH MODAL - В СТИЛЕ ЗАГРУЗКИ
   ======================================== */

/* Контейнер замка/подарка с свечением */
.auth-lock-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-lock-emoji {
    font-size: 100px;
    animation: lockFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 193, 7, 0.5));
    transition: all 0.5s ease;
}

.auth-lock-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes lockFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Заголовок intro */
.auth-intro-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    animation: titleFadeIn 0.8s ease-out;
}

.auth-intro-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.auth-intro-subtitle strong {
    color: #ffc107;
    font-weight: 700;
}

/* Преимущества */
.auth-benefits {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    animation: benefitsFadeIn 0.8s ease-out 0.3s backwards;
}

.auth-benefit {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.auth-benefit:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
}

@keyframes benefitsFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Кнопки intro */
.auth-intro-buttons {
    opacity: 0;
    transform: translateY(20px);
    animation: buttonsAppear 0.5s ease-out 2s forwards;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Вторичная кнопка Войти */
.login-btn-secondary {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.login-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

@keyframes buttonsAppear {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes titleFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Обёртка для инпутов с отступами */
.auth-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.auth-input-wrapper .onboarding-input {
    width: 100%;
    box-sizing: border-box;
}

/* Кнопка с отступом сверху */
.auth-btn-spaced {
    margin-top: 15px;
}

/* Центрированные кнопки */
.auth-buttons-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

.auth-buttons-centered .welcome-btn {
    width: 100%;
    max-width: 350px;
}

.auth-buttons-centered .skip-btn {
    margin-top: 0;
}

/* Красивый выбор даты рождения */
.auth-birthday-wrapper {
    margin: 0 auto 30px auto;
    width: 100%;
    max-width: 350px;
}

.auth-birthday-select {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 15px 20px;
    backdrop-filter: blur(10px);
}

.auth-select {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 15px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.3s ease;
}

.auth-select:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.auth-select:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.3);
}

.auth-select option {
    background: #2d1b4e;
    color: white;
    padding: 10px;
}

/* Успешная регистрация - красивая анимация */

/* Индикатор шагов регистрации */
.auth-step-indicator {
    position: fixed !important;
    top: 25px !important;
    left: 130px !important;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.3), rgba(156, 39, 176, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 18px;
    border-radius: 25px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    z-index: 10;
}

/* Контейнер навигации - не анимируем */
.auth-nav-row {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    padding: 20px !important;
    z-index: 100 !important;
    pointer-events: none;
}

.auth-nav-row > * {
    pointer-events: auto;
}

/* Кнопка "Назад" */
.auth-back-btn {
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 14px 20px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.auth-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateX(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.auth-back-btn:active {
    transform: translateX(-5px) scale(0.98);
}

.auth-success-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-success-emoji {
    font-size: 100px;
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards,
               successFloat 2s ease-in-out 0.6s infinite;
    filter: drop-shadow(0 0 30px rgba(76, 175, 80, 0.5));
}

.auth-success-rings {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.auth-success-rings::before,
.auth-success-rings::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    border: 3px solid rgba(76, 175, 80, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: successRing 2s ease-out infinite;
}

.auth-success-rings::after {
    animation-delay: 1s;
}

@keyframes successPop {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes successFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

@keyframes successRing {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Бонус при успехе */
.auth-success-bonus {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.3), rgba(255, 193, 7, 0.3));
    border: 2px solid rgba(255, 193, 7, 0.5);
    border-radius: 20px;
    padding: 20px 40px;
    margin: 20px 0 30px;
    text-align: center;
    animation: bonusPulse 1s ease-in-out infinite;
}

.auth-success-bonus span {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #ffc107;
    text-shadow: 0 2px 10px rgba(255, 193, 7, 0.5);
}

.auth-success-bonus small {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

@keyframes bonusPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 193, 7, 0.3); }
    50% { transform: scale(1.02); box-shadow: 0 0 30px rgba(255, 193, 7, 0.5); }
}


/* Конфетти анимация */
@keyframes confettiExplode {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) rotate(var(--r)) scale(0);
        opacity: 0;
    }
}

#authConfetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 10;
}

/* ========================================
   PUSH-УВЕДОМЛЕНИЯ О СТАТУСЕ ЗАКАЗА
   ======================================== */

/* ===== ПЛАШКА СТАТУСА ЗАКАЗА (стиль cookie-панели) ===== */
.order-push-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 0;
    pointer-events: none;
}

body.tg-webapp .order-push-container {
    padding-top: calc(10px + var(--tg-safe-area-top, 0px));
}

.order-track {
    pointer-events: auto;
    width: 100%;
    max-width: 420px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.order-track-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.16);
    padding: 16px 18px;
    animation: orderTrackIn 0.35s ease-out;
}

@keyframes orderTrackIn {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

.order-track-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #f0f0f2;
    color: #8a8a8f;
    font-size: 13px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.order-track-close:active {
    background: #e4e4e8;
}

.order-track-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 32px;
}

.order-track-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.order-track-text {
    flex: 1;
    min-width: 0;
}

.order-track-title {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
    line-height: 1.25;
}

.order-track-message {
    font-size: 12px;
    color: #888888;
    margin-top: 3px;
    line-height: 1.35;
}

.order-track-id {
    margin-top: 12px;
    font-size: 11px;
    color: #9a9aa0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.order-track-id span {
    background: #f5f5f5;
    color: #6a6a70;
    padding: 3px 9px;
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    word-break: break-all;
}

/* Цепочка из пяти шагов: точки, соединённые линией */
.order-track-steps {
    display: flex;
    margin-top: 16px;
}

.trk-step {
    flex: 1;
    position: relative;
    text-align: center;
    min-width: 0;
}

.trk-step:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 8px;
    left: -50%;
    right: 50%;
    height: 2px;
    background: #ececef;
    transition: background 0.4s ease;
}

.trk-step.done::before,
.trk-step.active::before {
    background: var(--trk, #1a1a1a);
}

.trk-dot {
    position: relative;
    z-index: 2;
    display: block;
    width: 18px;
    height: 18px;
    margin: 0 auto;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #dcdce2;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.trk-step.done .trk-dot {
    background: var(--trk, #1a1a1a);
    border-color: var(--trk, #1a1a1a);
}

.trk-step.done .trk-dot::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

.trk-step.active .trk-dot {
    background: var(--trk, #1a1a1a);
    border-color: var(--trk, #1a1a1a);
    box-shadow: 0 0 0 4px var(--trk-soft, rgba(0, 0, 0, 0.12));
    animation: trkPulse 1.8s ease-in-out infinite;
}

@keyframes trkPulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--trk-soft, rgba(0, 0, 0, 0.12)); }
    50% { box-shadow: 0 0 0 7px var(--trk-soft, rgba(0, 0, 0, 0.12)); }
}

.trk-label {
    display: block;
    margin-top: 7px;
    font-size: 9.5px;
    line-height: 1.2;
    color: #b0b0b6;
    letter-spacing: -0.1px;
    transition: color 0.3s ease;
}

.trk-step.done .trk-label {
    color: #8a8a90;
}

.trk-step.active .trk-label {
    color: #1a1a1a;
    font-weight: 700;
}

/* Иконка красится под сферу бизнеса */
.order-track-icon {
    background: var(--trk-soft, #f5f5f5);
}

.order-track.cancelled .order-track-icon {
    background: rgba(229, 83, 75, 0.12);
}

/* Свёрнутая плашка: маленький кружок в углу, контент не перекрывает */
.order-track.collapsed {
    display: flex;
    justify-content: flex-end;
}

.order-track-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    background: #ffffff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16);
    animation: orderTrackIn 0.3s ease-out;
    -webkit-tap-highlight-color: transparent;
}

.order-track-chip:active {
    transform: scale(0.94);
}

.order-track-chip-icon {
    font-size: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--trk-soft, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 2px var(--trk, #1a1a1a);
}

.order-track-chip-text {
    display: none;
}

@media (max-width: 480px) {
    .order-track-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    .trk-label {
        font-size: 9px;
    }
}

@media (max-width: 340px) {
    .trk-label {
        font-size: 8px;
    }
}

/* === СПОСОБЫ ОПЛАТЫ - ИСПРАВЛЕНО === */
.payment-options {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    margin-top: 15px !important;
}

.payment-option {
    display: block;
    cursor: pointer !important;
}

.payment-option input[type="radio"] {
    display: none !important;
}

.payment-option .payment-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 20px 12px !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 16px !important;
    transition: all 0.3s ease !important;
    min-height: 120px !important;
    height: auto !important;
    box-sizing: border-box !important;
}

.payment-option:hover .payment-card {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.2) !important;
}

.payment-option input[type="radio"]:checked + .payment-card {
    background: rgba(255,255,255,0.12) !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 25px rgba(255,255,255,0.15) !important;
}

.payment-option .payment-icon {
    font-size: 32px !important;
    margin-bottom: 12px !important;
    filter: grayscale(0.3) !important;
}

.payment-option input[type="radio"]:checked + .payment-card .payment-icon {
    filter: grayscale(0) !important;
    transform: scale(1.1) !important;
}

.payment-option .payment-text {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #fff !important;
    line-height: 1.3 !important;
}

.payment-option .payment-desc {
    display: block !important;
    font-size: 10px !important;
    opacity: 0.5 !important;
    margin-top: 4px !important;
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

@media (max-width: 500px) {
    .payment-options {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .payment-option .payment-card {
        min-height: 100px !important;
        height: auto !important;
        padding: 12px 6px !important;
    }
    .payment-option .payment-icon {
        font-size: 24px !important;
        margin-bottom: 8px !important;
    }
    .payment-option .payment-text {
        font-size: 9px !important;
        line-height: 1.2 !important;
    }
    .payment-option .payment-desc {
        font-size: 8px !important;
        margin-top: 2px !important;
    }
}

@media (max-width: 350px) {
    .payment-options {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .payment-option .payment-card {
        min-height: 90px !important;
        height: auto !important;
    }
}

/* Онлайн-оплата — зелёная подсветка */
#paymentOnline .payment-card {
    border-color: rgba(46, 204, 113, 0.4) !important;
    background: rgba(46, 204, 113, 0.08) !important;
}
#paymentOnline .payment-card:hover {
    border-color: rgba(46, 204, 113, 0.6) !important;
    background: rgba(46, 204, 113, 0.12) !important;
}
#paymentOnline input:checked + .payment-card {
    border-color: #2ecc71 !important;
    background: rgba(46, 204, 113, 0.2) !important;
    box-shadow: 0 0 25px rgba(46, 204, 113, 0.3), inset 0 0 15px rgba(46, 204, 113, 0.1) !important;
}
#paymentOnline .payment-text {
    color: #2ecc71 !important;
}
#paymentOnline .payment-desc {
    color: rgba(46, 204, 113, 0.7) !important;
}

/* === TELEGRAM MINI APP - Компактный режим === */
@media (max-height: 700px) {
    .auth-lock-container {
        width: 100px;
        height: 100px;
        margin: 0 auto 15px;
    }
    
    .auth-lock-emoji {
        font-size: 70px;
    }
    
    .auth-lock-glow {
        width: 130px;
        height: 130px;
    }
    
    .auth-intro-title {
        font-size: 22px;
        margin: 0 0 8px 0;
    }
    
    .auth-intro-subtitle {
        font-size: 13px;
        margin: 0 0 12px 0;
    }
    
    .auth-benefits {
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .auth-benefit {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .auth-intro-buttons {
        gap: 10px;
    }
    
    .welcome-btn {
        padding: 14px 30px;
        font-size: 14px;
    }
    
    .login-btn-secondary {
        padding: 12px 25px;
        font-size: 13px;
    }
    
    .onboarding-content {
        padding: 15px 20px;
    }
    
    .onboarding-emoji {
        font-size: 50px;
        margin-bottom: 15px;
    }
    
    .onboarding-title {
        font-size: 20px;
    }
    
    .onboarding-subtitle {
        font-size: 13px;
    }
}

/* Очень маленькие экраны (iPhone SE и т.п.) */
@media (max-height: 600px) {
    .auth-lock-container {
        width: 80px;
        height: 80px;
        margin: 0 auto 10px;
    }
    
    .auth-lock-emoji {
        font-size: 55px;
    }
    
    .auth-lock-glow {
        width: 100px;
        height: 100px;
    }
    
    .auth-intro-title {
        font-size: 20px;
    }
    
    .auth-benefits {
        gap: 5px;
        margin-bottom: 12px;
    }
    
    .auth-benefit {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .welcome-btn {
        padding: 12px 25px;
        font-size: 13px;
    }
    
    .auth-close-btn {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* ===== СЛАЙДЕР ФОТО В КАРТОЧКАХ КАТАЛОГА ===== */
.card-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Запрещаем overscroll - резиновое растягивание */
    overscroll-behavior-x: none;
    -ms-overflow-style: none;
}

.card-slider::-webkit-scrollbar {
    display: none;
}

.card-slider-track {
    display: flex;
    height: 100%;
}

.card-slide {
    flex: 0 0 100%;
    height: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

.card-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 8px;
    border-radius: 10px;
}

.card-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.card-dot.active {
    background: #ffffff;
    transform: scale(1.3);
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* ===== ВАРИАНТЫ ТОВАРА (цвета/размеры) ===== */

/* Варианты в карточке каталога - маленькие в левом нижнем углу */
.product-variants {
    position: absolute;
    bottom: 6px;
    left: 6px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    z-index: 5;
    pointer-events: auto;
}

/* Двухуровневые варианты (цвет + размер) */
.product-variants-with-sizes {
    flex-direction: column;
    gap: 4px;
}

.product-variants-with-sizes .variants-colors {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.product-variants-with-sizes .variants-sizes {
    display: none;
    gap: 3px;
    flex-wrap: wrap;
}

/* Только размеры */
.product-variants-sizes-only {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.variant-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.variant-btn.type-color {
    border-radius: 50% !important;
}

.variant-btn.type-text,
.variant-btn.type-size {
    border-radius: 4px;
    width: auto;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    font-size: 10px;
    font-weight: 700;
    color: var(--btn-text-color, #fff);
    background: var(--btn-bg-color, #000);
    display: flex;
    align-items: center;
    justify-content: center;
}

.variant-btn.type-size {
    font-size: 10px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 5px;
}

.variant-btn.active {
    transform: scale(1.35);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 0 2px rgba(255,255,255,0.3);
    z-index: 2;
}

/* Градиентные кружки — чистый вид без белых артефактов */
.variant-btn.type-color[style*="linear-gradient"] {
    border: 2px solid rgba(0,0,0,0.25);
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.variant-btn.type-color[style*="linear-gradient"].active {
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 3px 12px rgba(0,0,0,0.5);
}

.variant-btn.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
}

.variant-btn.out-of-stock::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -2px;
    right: -2px;
    height: 1px;
    background: var(--btn-bg-color, #000);
    transform: rotate(-45deg);
}

/* Варианты в модалке товара */
.product-modal-variants {
    margin-bottom: 15px;
}

/* Ряд цветов и размеров - 50/50 */
.modal-variants-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.modal-variants-colors {
    flex: 1;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.modal-variants-sizes,
#modalVariantsSizes {
    flex: 1;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Только цвета */
.modal-variants-colors-only {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Только размеры */
.modal-variants-sizes-only {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* КРУЖКИ ЦВЕТА В КАРТОЧКЕ ТОВАРА
   Обводка берётся из цвета названий товаров (--card-title-color),
   а не из цвета фона кнопки, как раньше. Тот цвет при контурной
   кнопке нигде больше не виден, и кружки получали «чужой» сиреневый.
   Обычный кружок: тонкое кольцо в цвет названий, чуть приглушённое.
   Выбранный: кольцо в полную силу, зазор цвета фона и второе кольцо
   снаружи, как в нормальных магазинах. Градиентные кружки теперь
   выглядят так же, как обычные, без отдельной белой рамки.
   background-clip нужен, чтобы заливка кружка не просвечивала
   сквозь кольцо: заливка ставится инлайном, отсюда !important. */
.product-modal-variants .variant-btn.type-color,
.modal-variants-colors .variant-btn.type-color,
.modal-variants-colors-only .variant-btn.type-color {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--card-title-color, var(--text-color, #1a1a1a));
    border-color: color-mix(in srgb, var(--card-title-color, var(--text-color, #1a1a1a)) 35%, transparent);
    background-clip: padding-box !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-modal-variants .variant-btn.type-color.active,
.modal-variants-colors .variant-btn.type-color.active,
.modal-variants-colors-only .variant-btn.type-color.active {
    transform: scale(1.12);
    border-color: var(--card-title-color, var(--text-color, #1a1a1a));
    box-shadow:
        0 0 0 3px var(--bg-color, #ffffff),
        0 0 0 5px var(--card-title-color, var(--text-color, #1a1a1a)),
        0 3px 10px rgba(0,0,0,0.18);
    z-index: 2;
}

/* Градиентные кружки: то же самое, отдельной белой рамки больше нет */
.product-modal-variants .variant-btn.type-color[style*="linear-gradient"],
.modal-variants-colors .variant-btn.type-color[style*="linear-gradient"],
.modal-variants-colors-only .variant-btn.type-color[style*="linear-gradient"] {
    border: 2px solid var(--card-title-color, var(--text-color, #1a1a1a));
    border-color: color-mix(in srgb, var(--card-title-color, var(--text-color, #1a1a1a)) 35%, transparent);
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.product-modal-variants .variant-btn.type-color[style*="linear-gradient"].active,
.modal-variants-colors .variant-btn.type-color[style*="linear-gradient"].active,
.modal-variants-colors-only .variant-btn.type-color[style*="linear-gradient"].active {
    border-color: var(--card-title-color, var(--text-color, #1a1a1a));
    box-shadow:
        0 0 0 3px var(--bg-color, #ffffff),
        0 0 0 5px var(--card-title-color, var(--text-color, #1a1a1a)),
        0 3px 10px rgba(0,0,0,0.18);
}

/* Зачёркивание «нет в наличии» на кружке в карточке: тоже в цвет названий */
.product-modal-variants .variant-btn.type-color.out-of-stock::after {
    background: var(--card-title-color, var(--text-color, #1a1a1a));
    height: 2px;
}

/* Квадратики размеров в модалке - одинаковые с кружками */
.product-modal-variants .variant-btn.type-size,
.modal-variants-sizes .variant-btn.type-size,
#modalVariantsSizes .variant-btn.type-size,
.modal-variants-sizes-only .variant-btn.type-size {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    border: 2px solid currentColor;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.product-modal-variants .variant-btn.type-size.active,
.modal-variants-sizes .variant-btn.type-size.active,
#modalVariantsSizes .variant-btn.type-size.active,
.modal-variants-sizes-only .variant-btn.type-size.active {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5), 0 0 0 3px rgba(255,255,255,0.3);
    border-width: 3px;
}

/* Зачёркнутый размер */
.product-modal-variants .variant-btn.type-size.out-of-stock {
    opacity: 0.4;
}

/* Старый формат - текстовые варианты */
.product-modal-variants .variant-btn.type-text {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 8px;
}

/* ===== АДАПТАЦИЯ ПОД ВСЕ СТИЛИ КАРТОЧЕК ===== */

/* Все стили - кружки в левом нижнем углу */
.card-style-classic .product-variants,
.card-style-rounded .product-variants,
.card-style-sharp .product-variants,
.card-style-glass .product-variants,
.card-style-neon .product-variants,
.card-style-gradient-border .product-variants,
.card-style-minimal .product-variants,
.card-style-shadow .product-variants {
    bottom: 6px;
    left: 6px;
}

/* Неон - добавляем свечение */
.card-style-neon .variant-btn {
    box-shadow: 0 0 4px var(--btn-bg-color, #000);
}

/* Минимал - тоньше рамка */
.card-style-minimal .variant-btn {
    border-width: 1px;
}

/* Убираем варианты если их нет */
.product-variants:empty {
    display: none;
}

/* ==================== */
/* 50 СТИЛЕЙ ШАПКИ СПЕЦПРЕДЛОЖЕНИЙ */
/* ==================== */

.stories-section-header { margin-bottom: 15px; overflow: visible; border-radius: 12px; min-height: 44px; display: flex; align-items: center; }
.stories-section-header.hidden, .header-style-0 { display: none !important; }

/* Общие стили для всех header-style */
[class*="header-style-"] { min-height: 44px; box-sizing: border-box; }
[class*="header-style-"] .header-text { line-height: 1.3; }

/* Бегущая строка */
.header-marquee { display: flex; animation: headerMarquee 75s linear infinite; white-space: nowrap; width: max-content; }
.header-marquee-content { display: flex; align-items: center; gap: 25px; padding-right: 25px; flex-shrink: 0; }
@keyframes headerMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 1. Классика */
.header-style-1 { background: var(--header-bg-color, #ff6b00); padding: 12px 20px; font-size: var(--tg-stories-title-size, 14px); font-weight: 700; letter-spacing: 3px; color: var(--section-title-color, #fff); text-transform: uppercase; font-family: var(--tg-stories-title-font, 'Montserrat', sans-serif); }

/* 2. Бегущая жёлтая */
.header-style-2 { background: linear-gradient(90deg, #FFD700, #FFA500); padding: 10px 0; overflow: hidden; }
.header-style-2 .header-text { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 3px; color: #000; text-transform: uppercase; }
.header-style-2 .header-icon { font-size: 16px; }

/* 3. Неон розовый */
.header-style-3 { background: #0a0a0a; padding: 15px 20px; text-align: center; }
.header-style-3 .header-text { font-family: 'Russo One', sans-serif; font-size: 15px; letter-spacing: 3px; color: #fff; text-transform: uppercase; text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff, 0 0 20px #ff00ff; animation: neonPulse 2s ease-in-out infinite alternate; }
@keyframes neonPulse { 0% { text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff, 0 0 20px #ff00ff; } 100% { text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 40px #ff00ff; } }

/* 4. Градиентная лента */
.header-style-4 { background: linear-gradient(135deg, #667eea, #764ba2); padding: 14px 20px; text-align: center; position: relative; overflow: hidden; }
.header-style-4::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); animation: headerShine 3s infinite; }
.header-style-4 .header-text { font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 4px; color: #fff; text-transform: uppercase; position: relative; }
@keyframes headerShine { 0% { left: -100%; } 50%, 100% { left: 100%; } }

/* 5. Молнии */
.header-style-5 { background: var(--header-bg-color, #ff6b35); padding: 12px 20px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.header-style-5 .header-icons { display: flex; gap: 5px; }
.header-style-5 .header-icon { font-size: 14px; animation: bounceIcon 1s ease-in-out infinite; }
.header-style-5 .header-icon:nth-child(2) { animation-delay: 0.1s; }
.header-style-5 .header-icon:nth-child(3) { animation-delay: 0.2s; }
.header-style-5 .header-text { font-family: var(--tg-stories-title-font, 'Montserrat', sans-serif); font-size: 12px; font-weight: 800; letter-spacing: 2px; color: #fff; text-transform: uppercase; }
@keyframes bounceIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* 6. Минимализм */
.header-style-6 { background: var(--header-bg-color, transparent); padding: 15px 20px; display: flex; align-items: center; gap: 15px; }
.header-style-6 .header-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); }
.header-style-6 .header-text { font-family: 'Comfortaa', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 3px; color: var(--section-title-color, #fff); text-transform: uppercase; white-space: nowrap; }

/* 7. Тег/Бейдж */
.header-style-7 { background: var(--header-bg-color, transparent); padding: 15px 20px; }
.header-style-7 .header-tag { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #ff416c, #ff4b2b); padding: 8px 18px; border-radius: 25px; box-shadow: 0 4px 15px rgba(255,65,108,0.4); }
.header-style-7 .header-icon { font-size: 14px; animation: pulseIcon 1.5s ease-in-out infinite; }
.header-style-7 .header-text { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: #fff; text-transform: uppercase; }
@keyframes pulseIcon { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }

/* 8. Ретро */
.header-style-8 { background: #2c1810; padding: 12px 20px; border-top: 3px solid #d4a574; border-bottom: 3px solid #d4a574; text-align: center; }
.header-style-8 .header-text { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 8px; color: #d4a574; text-transform: uppercase; }

/* 9. Голографик */
.header-style-9 { background: linear-gradient(90deg, #12c2e9, #c471ed, #f64f59, #12c2e9); background-size: 300% 100%; animation: holoAnim 4s ease infinite; padding: 12px 20px; text-align: center; }
.header-style-9 .header-text { font-size: 13px; font-weight: 900; letter-spacing: 3px; color: #fff; text-transform: uppercase; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
@keyframes holoAnim { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* 10. Стикер */
.header-style-10 { background: var(--header-bg-color, transparent); padding: 15px 20px; }
.header-style-10 .header-sticker { display: inline-block; background: #FFE135; padding: 10px 25px; transform: rotate(-2deg); box-shadow: 3px 3px 0 #000; border: 2px solid #000; }
.header-style-10 .header-text { font-family: 'Russo One', sans-serif; font-size: 13px; letter-spacing: 2px; color: #000; text-transform: uppercase; }

/* 11. Волна */
.header-style-11 { background: #16213e; padding: 18px 20px 25px; position: relative; text-align: center; }
.header-style-11 .header-text { font-family: 'Oswald', sans-serif; font-size: 15px; letter-spacing: 5px; color: #00d9ff; text-transform: uppercase; }
.header-style-11 .header-wave { position: absolute; bottom: 0; left: 0; width: 200%; height: 12px; background: linear-gradient(90deg, #00d9ff33, #00d9ff66, #00d9ff33); animation: waveMove 3s linear infinite; }
@keyframes waveMove { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 12. Огонь */
.header-style-12 { background: linear-gradient(180deg, #1a0a00, #2d1500); padding: 14px 20px; text-align: center; position: relative; }
.header-style-12 .header-text { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 4px; background: linear-gradient(180deg, #fff, #ff6b00 50%, #ff0000); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-transform: uppercase; }
.header-style-12 .header-fire { position: absolute; top: 50%; transform: translateY(-50%); font-size: 18px; animation: fireAnim 0.3s ease-in-out infinite alternate; }
.header-style-12 .header-fire-l { left: 15px; }
.header-style-12 .header-fire-r { right: 15px; animation-delay: 0.15s; }
@keyframes fireAnim { 0% { transform: translateY(-50%) scale(1); } 100% { transform: translateY(-55%) scale(1.1); } }

/* 13. Золото */
.header-style-13 { background: #1a1a1a; padding: 14px 20px; text-align: center; border-top: 1px solid #d4af37; border-bottom: 1px solid #d4af37; }
.header-style-13 .header-text { font-family: 'Playfair Display', serif; font-size: 13px; letter-spacing: 4px; background: linear-gradient(135deg, #d4af37, #f9e077 25%, #d4af37 50%, #f9e077 75%, #d4af37); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-transform: uppercase; animation: goldShine 3s linear infinite; }
@keyframes goldShine { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }

/* 14. Глитч */
.header-style-14 { background: #0a0a0a; padding: 15px 20px; text-align: center; }
.header-style-14 .header-text { font-family: 'Russo One', sans-serif; font-size: 16px; letter-spacing: 3px; color: #fff; text-transform: uppercase; position: relative; display: inline-block; animation: glitchAnim 0.3s infinite; }
@keyframes glitchAnim { 0%, 100% { text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff; } 25% { text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff; } 50% { text-shadow: -1px 0 #ff00ff, 1px 0 #00ffff; } 75% { text-shadow: 1px 0 #ff00ff, -1px 0 #00ffff; } }

/* 15. Неон голубой */
.header-style-15 { background: #0a0a15; padding: 15px 20px; text-align: center; }
.header-style-15 .header-text { font-family: 'Orbitron', sans-serif; font-size: 12px; letter-spacing: 4px; color: #fff; text-transform: uppercase; text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 20px #00ffff; }

/* 16. Бегущая красная */
.header-style-16 { background: #e63946; padding: 10px 0; overflow: hidden; }
.header-style-16 .header-text { font-size: 13px; font-weight: 800; letter-spacing: 2px; color: #fff; text-transform: uppercase; }
.header-style-16 .header-icon { font-size: 14px; }

/* 17. Матрица */
.header-style-17 { background: #000; padding: 15px 20px; text-align: center; }
.header-style-17 .header-text { font-family: 'Orbitron', sans-serif; font-size: 11px; letter-spacing: 3px; color: #00ff00; text-transform: uppercase; text-shadow: 0 0 10px #00ff00; }

/* 18. Пульсация */
.header-style-18 { background: linear-gradient(135deg, #e91e63, #9c27b0); padding: 14px 20px; text-align: center; animation: bgPulse 2s ease-in-out infinite; }
.header-style-18 .header-text { font-size: 13px; font-weight: 800; letter-spacing: 3px; color: #fff; text-transform: uppercase; }
@keyframes bgPulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.2); } }

/* 19. Точки */
.header-style-19 { background: #2d3436; padding: 12px 20px; display: flex; align-items: center; justify-content: center; gap: 15px; }
.header-style-19 .header-dots { display: flex; gap: 5px; }
.header-style-19 .header-dot { width: 6px; height: 6px; background: #fdcb6e; border-radius: 50%; animation: dotPulse 1s ease-in-out infinite; }
.header-style-19 .header-dot:nth-child(2) { animation-delay: 0.2s; }
.header-style-19 .header-dot:nth-child(3) { animation-delay: 0.4s; }
.header-style-19 .header-text { font-family: 'Raleway', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 3px; color: #fff; text-transform: uppercase; }
@keyframes dotPulse { 0%, 100% { opacity: 0.3; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }

/* 20. Скос */
.header-style-20 { background: linear-gradient(135deg, #00b894, #00cec9); padding: 12px 20px; clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%); text-align: center; }
.header-style-20 .header-text { font-size: 13px; font-weight: 700; letter-spacing: 3px; color: #fff; text-transform: uppercase; }

/* 21. Обводка */
.header-style-21 { background: var(--header-bg-color, transparent); padding: 15px 20px; text-align: center; }
.header-style-21 .header-text { font-family: 'Archivo Black', sans-serif; font-size: 22px; letter-spacing: 4px; color: transparent; -webkit-text-stroke: 2px var(--section-title-color, #fff); text-transform: uppercase; }

/* 22. Двойной текст */
.header-style-22 { background: var(--header-bg-color, transparent); padding: 12px 20px; text-align: center; position: relative; }
.header-style-22 .header-text-bg { font-family: 'Bebas Neue', sans-serif; font-size: 40px; letter-spacing: 10px; color: rgba(255,255,255,0.07); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-transform: uppercase; }
.header-style-22 .header-text { font-size: 11px; font-weight: 700; letter-spacing: 4px; color: var(--section-title-color, #fff); position: relative; text-transform: uppercase; }

/* 23. Подчёркивание */
.header-style-23 { background: var(--header-bg-color, transparent); padding: 15px 20px; text-align: center; }
.header-style-23 .header-text { font-family: 'Raleway', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 4px; color: var(--section-title-color, #fff); text-transform: uppercase; display: inline-block; position: relative; }
.header-style-23 .header-text::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 2px; background: var(--section-title-color, #fff); transform: scaleX(0); animation: underlineAnim 2s ease-in-out infinite; }
@keyframes underlineAnim { 0%, 100% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); } }

/* 24. Печатная машинка */
.header-style-24 { background: #1a1a2e; padding: 15px 20px; }
.header-style-24 .header-text { font-family: 'Roboto Condensed', sans-serif; font-size: 14px; letter-spacing: 3px; color: #0f0; text-transform: uppercase; overflow: hidden; white-space: nowrap; border-right: 2px solid #0f0; animation: typing 3s steps(20) infinite, blink 0.5s step-end infinite alternate; }
@keyframes typing { 0%, 90%, 100% { width: 0; } 30%, 60% { width: 100%; } }
@keyframes blink { 50% { border-color: transparent; } }

/* 25. Разноцветный */
.header-style-25 { background: var(--header-bg-color, transparent); padding: 15px 20px; text-align: center; }
.header-style-25 .header-text { font-family: 'Bangers', cursive; font-size: 24px; letter-spacing: 3px; text-transform: uppercase; }
.header-style-25 .header-text span { display: inline-block; animation: rainbow 2s ease-in-out infinite; }
.header-style-25 .header-text span:nth-child(1) { animation-delay: 0s; color: #ff6b6b; }
.header-style-25 .header-text span:nth-child(2) { animation-delay: 0.1s; color: #ffd93d; }
.header-style-25 .header-text span:nth-child(3) { animation-delay: 0.2s; color: #6bff6b; }
.header-style-25 .header-text span:nth-child(4) { animation-delay: 0.3s; color: #6bd9ff; }
.header-style-25 .header-text span:nth-child(5) { animation-delay: 0.4s; color: #d96bff; }
.header-style-25 .header-text span:nth-child(6) { animation-delay: 0.5s; color: #ff6bd9; }
@keyframes rainbow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* 26. Ромбы */
.header-style-26 { background: var(--header-bg-color, transparent); padding: 12px 20px; display: flex; align-items: center; justify-content: center; gap: 15px; }
.header-style-26 .header-diamond { width: 8px; height: 8px; background: var(--section-title-color, #fff); transform: rotate(45deg); }
.header-style-26 .header-text { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 700; letter-spacing: 3px; color: var(--section-title-color, #fff); text-transform: uppercase; }

/* 27. Стрелки */
.header-style-27 { background: var(--header-bg-color, transparent); padding: 12px 20px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.header-style-27 .header-arrows { font-size: 12px; color: var(--section-title-color, #fff); animation: arrowAnim 1s ease-in-out infinite; opacity: 0.7; }
.header-style-27 .header-arrows-r { animation-direction: reverse; }
.header-style-27 .header-text { font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: 4px; color: var(--section-title-color, #fff); text-transform: uppercase; }
@keyframes arrowAnim { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* 28. 3D тень */
.header-style-28 { background: var(--header-bg-color, transparent); padding: 15px 20px; text-align: center; }
.header-style-28 .header-text { font-family: 'Archivo Black', sans-serif; font-size: 22px; letter-spacing: 3px; color: #fff; text-transform: uppercase; text-shadow: 2px 2px 0 #000, 4px 4px 0 #333, 6px 6px 0 #666; }

/* 29. Вспышка */
.header-style-29 { background: #000; padding: 14px 20px; text-align: center; position: relative; overflow: hidden; }
.header-style-29::before { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent); animation: flashAnim 2s ease-in-out infinite; }
.header-style-29 .header-text { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 5px; color: #fff; text-transform: uppercase; position: relative; }
@keyframes flashAnim { 0% { left: -100%; } 50%, 100% { left: 150%; } }

/* 30. Zigzag */
.header-style-30 { background: #6c5ce7; padding: 14px 20px 18px; text-align: center; position: relative; }
.header-style-30::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 8px; background: linear-gradient(135deg, transparent 25%, #6c5ce7 25%, #6c5ce7 50%, transparent 50%, transparent 75%, #6c5ce7 75%); background-size: 16px 16px; transform: translateY(50%); }
.header-style-30 .header-text { font-size: 13px; font-weight: 700; letter-spacing: 3px; color: #fff; text-transform: uppercase; }

/* 31. Двухцветный */
.header-style-31 { background: linear-gradient(90deg, #e74c3c 50%, #3498db 50%); padding: 12px 20px; text-align: center; }
.header-style-31 .header-text { font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 4px; color: #fff; text-transform: uppercase; }

/* 32. Сердцебиение */
.header-style-32 { background: linear-gradient(135deg, #ff6b6b, #ee5a24); padding: 12px 20px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.header-style-32 .header-heart { font-size: 18px; animation: heartbeat 1s ease-in-out infinite; }
.header-style-32 .header-text { font-family: 'Comfortaa', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: #fff; text-transform: uppercase; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.2); } 50% { transform: scale(1); } 75% { transform: scale(1.2); } }

/* 33. Космос */
.header-style-33 { background: linear-gradient(135deg, #0c0c1e, #1a1a3e); padding: 15px 20px; text-align: center; position: relative; overflow: hidden; }
.header-style-33 .header-text { font-family: 'Orbitron', sans-serif; font-size: 11px; letter-spacing: 4px; color: #a29bfe; text-transform: uppercase; position: relative; }

/* 34. Пиксель */
.header-style-34 { background: #2d3436; padding: 12px 20px; text-align: center; }
.header-style-34 .header-text { font-family: 'Press Start 2P', cursive; font-size: 9px; letter-spacing: 2px; color: #fdcb6e; text-transform: uppercase; }

/* 35. Полосы */
.header-style-35 { background: repeating-linear-gradient(90deg, #fff 0px, #fff 10px, #000 10px, #000 20px); padding: 14px 20px; text-align: center; }
.header-style-35 .header-text { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 5px; color: #fff; text-transform: uppercase; background: #000; padding: 5px 15px; display: inline-block; }

/* 36. Градиент текста */
.header-style-36 { background: var(--header-bg-color, transparent); padding: 15px 20px; text-align: center; }
.header-style-36 .header-text { font-family: 'Righteous', cursive; font-size: 18px; letter-spacing: 3px; text-transform: uppercase; background: linear-gradient(90deg, #ff0080, #ff8c00, #40e0d0, #ff0080); background-size: 300% 100%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: gradientText 5s ease infinite; }
@keyframes gradientText { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* 37. Штамп */
.header-style-37 { background: var(--header-bg-color, transparent); padding: 15px 20px; }
.header-style-37 .header-stamp { display: inline-block; border: 3px solid #e74c3c; padding: 8px 20px; border-radius: 8px; transform: rotate(-5deg); }
.header-style-37 .header-text { font-family: 'Archivo Black', sans-serif; font-size: 14px; letter-spacing: 3px; color: #e74c3c; text-transform: uppercase; }

/* 38. Газета */
.header-style-38 { background: #f5f0e1; padding: 10px 20px; border-top: 2px solid #000; border-bottom: 2px solid #000; text-align: center; }
.header-style-38 .header-text { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 700; letter-spacing: 4px; color: #000; font-style: italic; text-transform: uppercase; }

/* 39. LED */
.header-style-39 { background: #111; padding: 12px 20px; text-align: center; border: 3px solid #333; }
.header-style-39 .header-text { font-family: 'Orbitron', sans-serif; font-size: 14px; letter-spacing: 4px; color: #ff0000; text-transform: uppercase; text-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000; animation: ledFlicker 0.1s infinite; }
@keyframes ledFlicker { 0%, 100% { opacity: 1; } 50% { opacity: 0.95; } }

/* 40. Свечение краёв */
.header-style-40 { background: #2d3436; padding: 15px 20px; text-align: center; position: relative; }
.header-style-40::before, .header-style-40::after { content: ''; position: absolute; top: 0; width: 30px; height: 100%; }
.header-style-40::before { left: 0; background: linear-gradient(90deg, var(--header-bg-color, #ff6b00), transparent); }
.header-style-40::after { right: 0; background: linear-gradient(270deg, var(--header-bg-color, #ff6b00), transparent); }
.header-style-40 .header-text { font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: 4px; color: #fff; text-transform: uppercase; }

/* 41. Круглый бейдж */
.header-style-41 { background: var(--header-bg-color, transparent); padding: 10px 20px; display: flex; align-items: center; gap: 12px; }
.header-style-41 .header-circle { width: 40px; height: 40px; background: linear-gradient(135deg, #ff416c, #ff4b2b); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; animation: spinIcon 3s linear infinite; }
.header-style-41 .header-text { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--section-title-color, #fff); text-transform: uppercase; }
@keyframes spinIcon { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* 42. Линии */
.header-style-42 { background: var(--header-bg-color, transparent); padding: 8px 20px; text-align: center; border-top: 3px solid transparent; border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, transparent, var(--section-title-color, #fff), transparent) 1; }
.header-style-42 .header-text { font-family: 'Raleway', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 5px; color: var(--section-title-color, #fff); text-transform: uppercase; }

/* 43. Маркер */
.header-style-43 { background: var(--header-bg-color, transparent); padding: 15px 20px; }
.header-style-43 .header-text { font-family: 'Permanent Marker', cursive; font-size: 20px; letter-spacing: 2px; color: var(--section-title-color, #fff); background: linear-gradient(180deg, transparent 60%, rgba(255,235,59,0.5) 60%); display: inline; text-transform: uppercase; }

/* 44. Угловая метка */
.header-style-44 { background: var(--header-bg-color, transparent); padding: 15px 20px; position: relative; }
.header-style-44 .header-corner { position: absolute; top: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 50px 50px 0; border-color: transparent #ff416c transparent transparent; }
.header-style-44 .header-text { font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--section-title-color, #fff); text-transform: uppercase; }

/* 45. Скобки */
.header-style-45 { background: var(--header-bg-color, transparent); padding: 12px 20px; display: flex; align-items: center; justify-content: center; gap: 15px; }
.header-style-45 .header-bracket { font-size: 30px; color: rgba(255,255,255,0.2); font-weight: 300; }
.header-style-45 .header-text { font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: 5px; color: var(--section-title-color, #fff); text-transform: uppercase; }

/* 46. Точки по бокам */
.header-style-46 { background: var(--header-bg-color, transparent); padding: 12px 20px; display: flex; align-items: center; justify-content: center; gap: 15px; }
.header-style-46 .header-dots { display: flex; gap: 4px; }
.header-style-46 .header-dot { width: 4px; height: 4px; background: var(--section-title-color, #fff); border-radius: 50%; }
.header-style-46 .header-text { font-family: 'Comfortaa', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--section-title-color, #fff); text-transform: uppercase; }

/* 47. Электрик */
.header-style-47 { background: #0a0a15; padding: 15px 20px; text-align: center; }
.header-style-47 .header-text { font-family: 'Audiowide', cursive; font-size: 13px; letter-spacing: 3px; color: #00d4ff; text-transform: uppercase; text-shadow: 0 0 5px #00d4ff, 0 0 10px #00d4ff; animation: electricAnim 0.2s ease-in-out infinite; }
@keyframes electricAnim { 0%, 100% { text-shadow: 0 0 5px #00d4ff, 0 0 10px #00d4ff; } 50% { text-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff, 0 0 30px #00d4ff; } }

/* 48. Королевский */
.header-style-48 { background: linear-gradient(180deg, #1a0a30, #2d1050); padding: 14px 20px; text-align: center; border-top: 2px solid #ffd700; border-bottom: 2px solid #ffd700; }
.header-style-48 .header-crown { font-size: 16px; margin: 0 10px; }
.header-style-48 .header-text { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 700; letter-spacing: 4px; color: #ffd700; text-transform: uppercase; }

/* 49. Тёмный градиент */
.header-style-49 { background: linear-gradient(135deg, #232526, #414345); padding: 14px 20px; text-align: center; }
.header-style-49 .header-text { font-size: 13px; font-weight: 700; letter-spacing: 3px; color: #fff; text-transform: uppercase; }

/* 50. Эко */
.header-style-50 { background: linear-gradient(135deg, #11998e, #38ef7d); padding: 14px 20px; text-align: center; }
.header-style-50 .header-text { font-size: 13px; font-weight: 800; letter-spacing: 3px; color: #fff; text-transform: uppercase; }

/* 51. Пустой */

/* 52. CAUTION Tape - жёлтая предупредительная лента */
.header-style-52 {
    background: var(--header-bg-color, #FFD700);
    padding: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}
.header-style-52 .caution-stripe {
    height: 4px;
    background: repeating-linear-gradient(
        -45deg,
        #000 0px,
        #000 10px,
        var(--header-bg-color, #FFD700) 10px,
        var(--header-bg-color, #FFD700) 20px
    );
    flex-shrink: 0;
}
.header-style-52 .header-marquee {
    padding: 8px 0;
    background: var(--header-bg-color, #FFD700);
}
.header-style-52 .header-text {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--header-text-color, #000);
    text-transform: uppercase;
}
.header-style-52 .header-sep {
    color: var(--header-text-color, #000);
    opacity: 0.5;
    font-size: 12px;
}

/* ===== DARK CHECKOUT OVERRIDE - всегда тёмный, независимо от темы ===== */
.checkout-modal,
body.light-theme .checkout-modal {
    background: var(--bg-color) !important;
    color: #fff !important;
}
.checkout-modal .checkout-content,
body.light-theme .checkout-modal .checkout-content {
    background: rgba(0,0,0,0.65) !important;
}
.checkout-modal .form-section,
body.light-theme .checkout-modal .form-section {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
}
.checkout-modal .form-section-title,
.checkout-modal .checkout-header h2,
body.light-theme .checkout-modal .form-section-title,
body.light-theme .checkout-modal .checkout-header h2 {
    color: #fff !important;
}
.checkout-modal label,
.checkout-modal .form-label,
body.light-theme .checkout-modal label {
    color: rgba(255,255,255,0.5) !important;
}
.checkout-modal input,
.checkout-modal textarea,
.checkout-modal select,
body.light-theme .checkout-modal input,
body.light-theme .checkout-modal textarea,
body.light-theme .checkout-modal select {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border-radius: 12px !important;
}
.checkout-modal input::placeholder,
.checkout-modal textarea::placeholder,
body.light-theme .checkout-modal input::placeholder,
body.light-theme .checkout-modal textarea::placeholder {
    color: rgba(255,255,255,0.25) !important;
}
.checkout-modal input:focus,
.checkout-modal textarea:focus,
.checkout-modal select:focus,
body.light-theme .checkout-modal input:focus,
body.light-theme .checkout-modal textarea:focus,
body.light-theme .checkout-modal select:focus {
    border-color: rgba(255,255,255,0.3) !important;
    background: rgba(255,255,255,0.08) !important;
    box-shadow: 0 0 15px rgba(255,255,255,0.08) !important;
    outline: none !important;
}
.checkout-modal span,
.checkout-modal p,
body.light-theme .checkout-modal span:not(.emoji):not(.loading-emoji),
body.light-theme .checkout-modal p {
    color: inherit !important;
}
.checkout-modal .payment-card,
body.light-theme .checkout-modal .payment-card {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
}
.checkout-modal .payment-option input:checked + .payment-card,
body.light-theme .checkout-modal .payment-option input:checked + .payment-card {
    border-color: rgba(255,255,255,0.5) !important;
    background: rgba(255,255,255,0.1) !important;
    box-shadow: 0 0 20px rgba(255,255,255,0.15) !important;
}
.checkout-modal .payment-text,
.checkout-modal .payment-desc,
body.light-theme .checkout-modal .payment-text {
    color: #fff !important;
}
.checkout-modal .payment-desc,
body.light-theme .checkout-modal .payment-desc {
    color: rgba(255,255,255,0.4) !important;
}
.checkout-modal .checkout-close,
body.light-theme .checkout-modal .checkout-close {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: rgba(255,255,255,0.6) !important;
}
/* Date/time row fix - prevent overlap */
.checkout-modal .form-row {
    display: flex !important;
    gap: 10px !important;
}
.checkout-modal .form-group.half {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}
.checkout-modal .form-group.half input {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 14px 12px !important;
    font-size: 14px !important;
}
/* iOS date input fix */
.checkout-modal input[type="date"] {
    -webkit-appearance: none !important;
    appearance: none !important;
}
/* Summary section */
.checkout-modal .checkout-summary,
body.light-theme .checkout-modal .checkout-summary {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
}
.checkout-modal .summary-row,
body.light-theme .checkout-modal .summary-row {
    color: rgba(255,255,255,0.45) !important;
}
.checkout-modal .summary-row.total,
body.light-theme .checkout-modal .summary-row.total {
    color: #fff !important;
}
/* Submit button - white */
.checkout-modal .btn-submit-order,
body.light-theme .checkout-modal .btn-submit-order {
    background: #fff !important;
    color: #000 !important;
    border-radius: 16px !important;
    font-weight: 800 !important;
    box-shadow: 0 6px 25px rgba(255,255,255,0.15) !important;
}

/* 🔥 FIX: Плавное появление при возврате из профиля */
body.returning-from-profile {
    animation: catalogFadeIn 0.2s ease forwards;
}

@keyframes catalogFadeIn {
    from { opacity: 0.92; }
    to { opacity: 1; }
}

/* 🔥 FIX: Скелетные карточки для предотвращения layout shift */
.product-card.skeleton-card {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    min-height: 280px;
    animation: skeletonPulse 1.2s ease-in-out infinite;
}

@keyframes skeletonPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.15; }
}

/* ===== PWA STANDALONE MODE ===== */
/* iOS home indicator area (~34px) не убирается — это фича iOS.
   Решение: фон html/body совпадает с фоном страницы, 
   на экранах без навбара — "Powered by NEOKODEGROUP" */

@media all and (display-mode: standalone) {
    /* Фон совпадает с основным фоном — полоса не видна */
    html {
        background: var(--bg-color, #0a0a0f) !important;
    }
    body {
        background: var(--bg-color, #0a0a0f) !important;
    }
    
    /* Шапка профиля — учитываем верхний safe-area */
    .profile-header {
        padding-top: calc(20px + env(safe-area-inset-top, 44px)) !important;
    }
    
    /* Модалка авторизации — safe-area сверху */
    .auth-close-btn {
        top: calc(20px + env(safe-area-inset-top, 44px)) !important;
    }
    .auth-step-indicator {
        top: calc(25px + env(safe-area-inset-top, 44px)) !important;
    }
    .auth-nav-row {
        padding-top: calc(20px + env(safe-area-inset-top, 44px)) !important;
    }
    .auth-back-btn {
        top: calc(20px + env(safe-area-inset-top, 44px)) !important;
    }
    
    /* Модалка товара — крестик ниже notch/Dynamic Island */
    .product-modal-content {
        max-height: calc(92vh - env(safe-area-inset-top, 0px)) !important;
    }
}

/* "Powered by" блок в зоне home indicator — виден только в PWA */
.pwa-powered-by {
    display: none;
}
@media all and (display-mode: standalone) {
    .pwa-powered-by {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: env(safe-area-inset-bottom, 34px);
        font-size: 9px;
        letter-spacing: 0.5px;
        color: rgba(255, 255, 255, 0.4);
        font-family: 'Montserrat', -apple-system, sans-serif;
        z-index: 999990;
        pointer-events: none;
        padding-bottom: 2px;
    }
    /* Скрыть "Powered by" когда виден навбар */
    .bottom-nav ~ .pwa-powered-by,
    body.has-bottom-nav .pwa-powered-by {
        display: none;
    }
}

/* Fix: убираем двойную рамку у категорий с картинками */
.cat-style-circle .category-btn[data-image] .category-icon,
.cat-style-circle-neon .category-btn[data-image] .category-icon,
.cat-style-circle-gold .category-btn[data-image] .category-icon,
.cat-style-circle-rainbow .category-btn[data-image] .category-icon,
.cat-style-circle-glow .category-btn[data-image] .category-icon,
.cat-style-circle-minimal .category-btn[data-image] .category-icon {
    border: none !important;
    box-shadow: none !important;
}

/* ==================================================== */
/* ВАРИАНТЫ В МОДАЛКЕ ТОВАРА — ВСЕГДА ГОРИЗОНТАЛЬНО     */
/* (кнопки .variant-btn имеют display:flex, поэтому без */
/*  flex-обёртки они встают столбиком)                  */
/* ==================================================== */
.product-modal-variants {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 16px;
}

.product-modal-variants > div {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
}

.modal-variants-row { width: 100%; justify-content: space-between !important; }
.modal-variants-colors { justify-content: flex-start !important; }
.modal-variants-sizes,
#modalVariantsSizes { justify-content: flex-end !important; }

/* Ряд текстовых вариантов (старый формат: XL / L / M квадратами) */
.modal-variants-text-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Квадраты размеров/текста в модалке — ровные и одинаковые */
.product-modal-variants .variant-btn.type-size,
.product-modal-variants .variant-btn.type-text {
    flex: 0 0 auto;
    min-width: 44px;
    width: auto;
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
    line-height: 1;
    letter-spacing: 0.02em;
}

/* Активный — без «прыжка» масштабом, аккуратная обводка */
.product-modal-variants .variant-btn.type-size.active,
.product-modal-variants .variant-btn.type-text.active {
    transform: none !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.18);
    filter: brightness(1.06);
}

/* Неактивные — чуть приглушены, чтобы выбор читался */
.product-modal-variants .variant-btn.type-size:not(.active):not(.out-of-stock),
.product-modal-variants .variant-btn.type-text:not(.active):not(.out-of-stock) {
    opacity: 0.62;
}

/* Старая зачёркнутая цена */
.price-old { white-space: nowrap; }

/* ==================================================== */
/* ТОВАР «НЕТ В НАЛИЧИИ» (флаг на уровне товара)         */
/* ==================================================== */
.oos-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 6;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 5px 9px;
    border-radius: 8px;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.product-card.product-out-of-stock .card-image-container img,
.product-card.product-out-of-stock .card-slide img {
    filter: grayscale(0.55) brightness(0.92);
}

.product-card.product-out-of-stock .add-to-cart-btn {
    opacity: 0.5;
}

/* ══════════════════════════════════════════════════════════════════════
   ОФОРМЛЕНИЕ: понятная оплата, заметная галочка, честные бонусы
   Добавлено 18.08.2026. Блок идёт последним в файле намеренно: перебивает
   более ранние правила с !important для .payment-card и .checkout-modal.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Способы оплаты списком вместо мелких квадратов ── */
.payment-options.pay-list {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 10px !important;
    margin-top: 12px !important;
}
.payment-options.pay-list .payment-option {
    display: block;
    width: 100% !important;
    cursor: pointer !important;
}
/* JS прячет неразрешённые для зоны способы через inline style.
   Дублируем правилом, чтобы никакой !important это больше не сломал. */
.payment-options.pay-list .payment-option[style*="display: none"],
.payment-options.pay-list .payment-option[style*="display:none"] {
    display: none !important;
}
.payment-options.pay-list .payment-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 14px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 14px 16px !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,0.05) !important;
    border: 2px solid rgba(255,255,255,0.12) !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, background 0.2s ease !important;
}
@media (hover: hover) {
    .payment-options.pay-list .payment-card:hover {
        transform: none !important;
        border-color: rgba(255,255,255,0.28) !important;
    }
}
.payment-options.pay-list .payment-icon {
    font-size: 24px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    filter: none !important;
    transform: none !important;
}
.payment-options.pay-list .payment-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    text-align: left !important;
}
.payment-options.pay-list .payment-text {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
    color: #fff !important;
}
.payment-options.pay-list .payment-desc {
    display: block !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    opacity: 1 !important;
    color: rgba(255,255,255,0.55) !important;
}
.payment-options.pay-list .payment-amount {
    flex-shrink: 0 !important;
    text-align: right !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    color: #fff !important;
}
.payment-options.pay-list .payment-amount small {
    display: block !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    color: rgba(255,255,255,0.45) !important;
    margin-bottom: 2px !important;
}
.payment-options.pay-list input[type="radio"]:checked + .payment-card,
.checkout-modal .payment-options.pay-list input[type="radio"]:checked + .payment-card {
    border-color: #22c55e !important;
    background: rgba(34,197,94,0.12) !important;
    box-shadow: 0 0 22px rgba(34,197,94,0.18) !important;
}
.payment-options.pay-list input[type="radio"]:checked + .payment-card .payment-desc {
    color: rgba(255,255,255,0.75) !important;
}
.payment-options.pay-list input[type="radio"]:checked + .payment-card .payment-amount small {
    color: rgba(255,255,255,0.6) !important;
}

/* Пояснение под списком: что именно спишется и когда */
.pay-note {
    margin: 12px 0 0 !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: rgba(255,255,255,0.7) !important;
}
.pay-note b {
    color: #fff !important;
    font-weight: 800 !important;
}

@media (max-width: 420px) {
    .payment-options.pay-list .payment-card { padding: 12px 13px !important; gap: 11px !important; }
    .payment-options.pay-list .payment-text { font-size: 13px !important; }
    .payment-options.pay-list .payment-desc { font-size: 11px !important; }
    .payment-options.pay-list .payment-amount { font-size: 13px !important; }
}

/* ── Галочка согласия: пока не поставлена, видно сразу ── */
.privacy-consent-box.needs-consent,
.checkout-modal .privacy-consent-box.needs-consent {
    border-color: #f59e0b !important;
    background: rgba(245,158,11,0.1) !important;
}
.privacy-consent-box.needs-consent .privacy-consent-check,
.checkout-modal .privacy-consent-box.needs-consent .privacy-consent-check {
    border-color: #f59e0b !important;
    background: rgba(245,158,11,0.18) !important;
    animation: consentPulse 1.8s ease-in-out infinite;
}
.privacy-consent-box.needs-consent .privacy-consent-hint {
    display: block !important;
    color: #f59e0b !important;
}
.privacy-consent-box.error .privacy-consent-hint,
.privacy-consent-box .privacy-consent-hint.visible {
    display: block !important;
    color: #e74c3c !important;
}
@keyframes consentPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.45); }
    50% { box-shadow: 0 0 0 7px rgba(245,158,11,0); }
}
/* Палец должен попадать по галочке, а не мимо */
.privacy-consent-label {
    padding: 4px 0 !important;
}
.privacy-consent-check {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
}

/* ── Плашки «бонусы за этот товар не работают» ── */
.bonus-notice {
    margin: 10px 0 !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    background: rgba(245,158,11,0.1) !important;
    border: 1px solid rgba(245,158,11,0.28) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    color: #f5b942 !important;
}
.checkout-modal .bonus-notice,
.cart-footer .bonus-notice {
    color: #f5b942 !important;
}
.product-modal-info .bonus-notice {
    margin: 12px 0 0 !important;
}

/* Гасим старую персональную подсветку онлайн-оплаты: в списке зелёным
   должен гореть ТОЛЬКО выбранный способ, иначе клиент путается. */
.payment-options.pay-list #paymentOnline .payment-card {
    border-color: rgba(255,255,255,0.12) !important;
    background: rgba(255,255,255,0.05) !important;
}
.payment-options.pay-list #paymentOnline .payment-text {
    color: #fff !important;
}
.payment-options.pay-list #paymentOnline .payment-desc {
    color: rgba(255,255,255,0.55) !important;
}
.payment-options.pay-list #paymentOnline input:checked + .payment-card {
    border-color: #22c55e !important;
    background: rgba(34,197,94,0.12) !important;
    box-shadow: 0 0 22px rgba(34,197,94,0.18) !important;
}
.payment-options.pay-list #paymentOnline input:checked + .payment-card .payment-text {
    color: #fff !important;
}
.payment-options.pay-list #paymentOnline input:checked + .payment-card .payment-desc {
    color: rgba(255,255,255,0.75) !important;
}

/* ── Плашка согласия: низкая и широкая вместо квадрата ── */
.privacy-consent-box,
.checkout-modal .privacy-consent-box {
    margin: 10px 12px 4px !important;
    padding: 11px 13px !important;
    border-width: 2px !important;
    border-radius: 14px !important;
}
.privacy-consent-label {
    align-items: center !important;
    gap: 11px !important;
    padding: 0 !important;
}
.privacy-consent-check,
.checkout-modal .privacy-consent-check {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    border-width: 2px !important;
    border-radius: 7px !important;
    margin-top: 0 !important;
}
.privacy-consent-label input:checked + .privacy-consent-check::after {
    top: 2px !important;
    left: 7px !important;
    width: 6px !important;
    height: 12px !important;
    border-width: 0 2.5px 2.5px 0 !important;
}
.privacy-consent-text,
.checkout-modal .privacy-consent-text {
    font-size: 12.5px !important;
    line-height: 1.3 !important;
}
.privacy-consent-hint {
    margin-top: 5px !important;
    padding-left: 35px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   NEOKODEGROUP · 20 НОВЫХ СТИЛЕЙ КАТЕГОРИЙ
   Класс cat-style-* вешает script.js и на body, и на .categories-scroll,
   поэтому каждое правило продублировано под оба варианта.
   Цвета берутся из настроек магазина, !important нужен потому, что
   script.js проставляет кнопкам инлайновый background/color.
   ═══════════════════════════════════════════════════════════════════ */

/* Компактные отступы кнопок в Telegram Mini App */
body.tg-webapp { --nkg-cat-py: 8px; --nkg-cat-px: 15px; }

/* ───── Стекло · cat-style-glass ───── */
body.cat-style-glass .category-btn,
.categories-scroll.cat-style-glass .category-btn,
.categories.cat-style-glass .category-btn {
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    border-radius: 14px !important;
    padding: var(--nkg-cat-py, 11px) var(--nkg-cat-px, 19px);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22) !important;
}
body.cat-style-glass .category-btn:hover,
.categories-scroll.cat-style-glass .category-btn:hover,
.categories.cat-style-glass .category-btn:hover {
    transform: none;
}
body.cat-style-glass .category-btn.active,
.categories-scroll.cat-style-glass .category-btn.active,
.categories.cat-style-glass .category-btn.active {
    background: var(--category-active-bg, var(--primary-color, #e6ade4)) !important;
    color: var(--category-active-text, #ffffff) !important;
    border-color: rgba(255,255,255,0.4) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4) !important;
}
html.light-theme body.cat-style-glass .category-btn,
body.light-theme.cat-style-glass .category-btn {
    background: rgba(0,0,0,0.05) !important;
    border-color: rgba(0,0,0,0.10) !important;
}

/* ───── Мягкий · cat-style-soft ───── */
body.cat-style-soft .category-btn,
.categories-scroll.cat-style-soft .category-btn,
.categories.cat-style-soft .category-btn {
    background: var(--category-bg, rgba(255,255,255,0.06)) !important;
    border: none !important;
    border-radius: 16px !important;
    padding: var(--nkg-cat-py, 11px) var(--nkg-cat-px, 19px);
    box-shadow: 5px 5px 12px rgba(0,0,0,0.28), -5px -5px 12px rgba(255,255,255,0.05) !important;
}
body.cat-style-soft .category-btn:hover,
.categories-scroll.cat-style-soft .category-btn:hover,
.categories.cat-style-soft .category-btn:hover {
    transform: none;
}
body.cat-style-soft .category-btn.active,
.categories-scroll.cat-style-soft .category-btn.active,
.categories.cat-style-soft .category-btn.active {
    background: var(--category-active-bg, var(--primary-color, #e6ade4)) !important;
    color: var(--category-active-text, #ffffff) !important;
    box-shadow: inset 4px 4px 9px rgba(0,0,0,0.30), inset -4px -4px 9px rgba(255,255,255,0.22) !important;
}
html.light-theme body.cat-style-soft .category-btn,
body.light-theme.cat-style-soft .category-btn {
    box-shadow: 5px 5px 12px rgba(0,0,0,0.10), -5px -5px 12px rgba(255,255,255,0.90) !important;
}

/* ───── Брутал · cat-style-brutal ───── */
body.cat-style-brutal .category-btn,
.categories-scroll.cat-style-brutal .category-btn,
.categories.cat-style-brutal .category-btn {
    background: var(--category-bg, rgba(255,255,255,0.06)) !important;
    border: 2px solid var(--category-text, var(--text-color, #ffffff)) !important;
    border-radius: 0 !important;
    padding: 10px 17px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 4px 4px 0 var(--category-text, var(--text-color, #ffffff)) !important;
}
body.cat-style-brutal .category-btn:hover,
.categories-scroll.cat-style-brutal .category-btn:hover,
.categories.cat-style-brutal .category-btn:hover {
    transform: none;
}
body.cat-style-brutal .category-btn:active,
.categories-scroll.cat-style-brutal .category-btn:active,
.categories.cat-style-brutal .category-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 var(--category-text, var(--text-color, #ffffff)) !important;
}
body.cat-style-brutal .category-btn.active,
.categories-scroll.cat-style-brutal .category-btn.active,
.categories.cat-style-brutal .category-btn.active {
    background: var(--category-active-bg, var(--primary-color, #e6ade4)) !important;
    color: var(--category-active-text, #ffffff) !important;
    border-color: var(--category-active-bg, var(--primary-color, #e6ade4)) !important;
    box-shadow: 4px 4px 0 var(--category-text, var(--text-color, #ffffff)) !important;
}

/* ───── Билет · cat-style-ticket ───── */
body.cat-style-ticket .category-btn,
.categories-scroll.cat-style-ticket .category-btn,
.categories.cat-style-ticket .category-btn {
    position: relative;
    background: var(--category-bg, rgba(255,255,255,0.06)) !important;
    border: 1px dashed var(--category-border, rgba(255,255,255,0.14)) !important;
    border-radius: 9px !important;
    padding: var(--nkg-cat-py, 11px) var(--nkg-cat-px, 19px);
}
body.cat-style-ticket .category-btn::before, body.cat-style-ticket .category-btn::after,
.categories-scroll.cat-style-ticket .category-btn::before, .categories-scroll.cat-style-ticket .category-btn::after,
.categories.cat-style-ticket .category-btn::before, .categories.cat-style-ticket .category-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg-color, #0a0a0f);
    transform: translateY(-50%);
    pointer-events: none;
}
body.cat-style-ticket .category-btn::before,
.categories-scroll.cat-style-ticket .category-btn::before,
.categories.cat-style-ticket .category-btn::before {
    left: -6px;
}
body.cat-style-ticket .category-btn::after,
.categories-scroll.cat-style-ticket .category-btn::after,
.categories.cat-style-ticket .category-btn::after {
    right: -6px;
}
body.cat-style-ticket .category-btn:hover,
.categories-scroll.cat-style-ticket .category-btn:hover,
.categories.cat-style-ticket .category-btn:hover {
    transform: none;
}
body.cat-style-ticket .category-btn.active,
.categories-scroll.cat-style-ticket .category-btn.active,
.categories.cat-style-ticket .category-btn.active {
    background: var(--category-active-bg, var(--primary-color, #e6ade4)) !important;
    color: var(--category-active-text, #ffffff) !important;
    border-color: var(--category-active-bg, var(--primary-color, #e6ade4)) !important;
}

/* ───── Люкс · cat-style-lux ───── */
body.cat-style-lux .category-btn,
.categories-scroll.cat-style-lux .category-btn,
.categories.cat-style-lux .category-btn {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--category-border, rgba(255,255,255,0.14)) !important;
    border-radius: 0 !important;
    /* КАТЕГОРИИ КРУПНЕЕ, ПОЛОСА ПОЧТИ ТОЙ ЖЕ ВЫСОТЫ.
       Растёт только текст: 12.5 → 15px и вес 400 → 500. Отступы сверху
       и снизу прибавили всего на 2 пикселя, поэтому вся лента подросла
       на ~5px и товары со сторис остались на своих местах.
       Межбуквенный интервал чуть убавлен: на крупном кегле прежние
       0.16em растягивали «В ШКОЛУ» так, что вкладки лезли за экран. */
    padding: 11px 7px 9px;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    opacity: 0.7;
}
body.cat-style-lux .category-btn:hover,
.categories-scroll.cat-style-lux .category-btn:hover,
.categories.cat-style-lux .category-btn:hover {
    transform: none;
    background: transparent !important;
}
body.cat-style-lux .category-btn.active,
.categories-scroll.cat-style-lux .category-btn.active,
.categories.cat-style-lux .category-btn.active {
    background: transparent !important;
    color: var(--category-text, var(--text-color, #ffffff)) !important;
    opacity: 1;
    font-weight: 600;
    border-bottom: 2px solid var(--category-active-bg, var(--primary-color, #e6ade4)) !important;
    padding-bottom: 6px;
}

/* ───── Наклейка · cat-style-sticker ───── */
body.cat-style-sticker .category-btn,
.categories-scroll.cat-style-sticker .category-btn,
.categories.cat-style-sticker .category-btn {
    background: var(--category-bg, rgba(255,255,255,0.06)) !important;
    border: 2px solid #ffffff !important;
    border-radius: 22px !important;
    padding: var(--nkg-cat-py, 11px) var(--nkg-cat-px, 19px);
    margin: 3px 0;
    transform: rotate(-2.5deg);
}
body.cat-style-sticker .category-btn:nth-child(even),
.categories-scroll.cat-style-sticker .category-btn:nth-child(even),
.categories.cat-style-sticker .category-btn:nth-child(even) {
    transform: rotate(2.5deg);
}
body.cat-style-sticker .category-btn:hover,
.categories-scroll.cat-style-sticker .category-btn:hover,
.categories.cat-style-sticker .category-btn:hover {
    transform: rotate(-2.5deg);
}
body.cat-style-sticker .category-btn:nth-child(even):hover,
.categories-scroll.cat-style-sticker .category-btn:nth-child(even):hover,
.categories.cat-style-sticker .category-btn:nth-child(even):hover {
    transform: rotate(2.5deg);
}
body.cat-style-sticker .category-btn.active, body.cat-style-sticker .category-btn.active:hover,
.categories-scroll.cat-style-sticker .category-btn.active, .categories-scroll.cat-style-sticker .category-btn.active:hover,
.categories.cat-style-sticker .category-btn.active, .categories.cat-style-sticker .category-btn.active:hover {
    background: var(--category-active-bg, var(--primary-color, #e6ade4)) !important;
    color: var(--category-active-text, #ffffff) !important;
    transform: rotate(0deg) scale(1.06);
}

/* ───── Сегмент · cat-style-segment ───── */
body.cat-style-segment .categories,
.categories-scroll.cat-style-segment .categories,
.categories.cat-style-segment .categories {
    gap: 2px;
    background: var(--category-bg, rgba(255,255,255,0.06));
    border-radius: 14px;
    padding: 4px;
    margin: 0 16px;
    width: max-content;
}
body.cat-style-segment .category-btn,
.categories-scroll.cat-style-segment .category-btn,
.categories.cat-style-segment .category-btn {
    background: transparent !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 16px;
    font-weight: 500;
}
body.cat-style-segment .category-btn:hover,
.categories-scroll.cat-style-segment .category-btn:hover,
.categories.cat-style-segment .category-btn:hover {
    transform: none;
}
body.cat-style-segment .category-btn.active,
.categories-scroll.cat-style-segment .category-btn.active,
.categories.cat-style-segment .category-btn.active {
    background: var(--category-active-bg, var(--primary-color, #e6ade4)) !important;
    color: var(--category-active-text, #ffffff) !important;
}
body.tg-webapp.cat-style-segment .categories {
    margin: 0 12px;
    padding: 3px;
}

/* ───── Моно · cat-style-mono ───── */
body.cat-style-mono .category-btn,
.categories-scroll.cat-style-mono .category-btn,
.categories.cat-style-mono .category-btn {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 10px 5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: 12px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    opacity: 0.5;
}
body.cat-style-mono .category-btn:hover,
.categories-scroll.cat-style-mono .category-btn:hover,
.categories.cat-style-mono .category-btn:hover {
    transform: none;
    background: transparent !important;
}
body.cat-style-mono .category-btn.active,
.categories-scroll.cat-style-mono .category-btn.active,
.categories.cat-style-mono .category-btn.active {
    background: transparent !important;
    color: var(--category-active-bg, var(--primary-color, #e6ade4)) !important;
    opacity: 1;
    font-weight: 700;
}
body.cat-style-mono .category-btn.active::before,
.categories-scroll.cat-style-mono .category-btn.active::before,
.categories.cat-style-mono .category-btn.active::before {
    content: '[ ';
}
body.cat-style-mono .category-btn.active::after,
.categories-scroll.cat-style-mono .category-btn.active::after,
.categories.cat-style-mono .category-btn.active::after {
    content: ' ]';
}

/* ───── Контур · cat-style-aurora ───── */
body.cat-style-aurora .category-btn,
.categories-scroll.cat-style-aurora .category-btn,
.categories.cat-style-aurora .category-btn {
    position: relative;
    background: var(--category-bg, rgba(255,255,255,0.06)) !important;
    border: none !important;
    border-radius: 999px !important;
    padding: var(--nkg-cat-py, 11px) var(--nkg-cat-px, 19px);
}
body.cat-style-aurora .category-btn::before,
.categories-scroll.cat-style-aurora .category-btn::before,
.categories.cat-style-aurora .category-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, var(--category-active-bg, var(--primary-color, #e6ade4)), rgba(255,255,255,0.15));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}
body.cat-style-aurora .category-btn:hover,
.categories-scroll.cat-style-aurora .category-btn:hover,
.categories.cat-style-aurora .category-btn:hover {
    transform: none;
}
body.cat-style-aurora .category-btn.active,
.categories-scroll.cat-style-aurora .category-btn.active,
.categories.cat-style-aurora .category-btn.active {
    background: var(--category-active-bg, var(--primary-color, #e6ade4)) !important;
    color: var(--category-active-text, #ffffff) !important;
}
body.cat-style-aurora .category-btn.active::before,
.categories-scroll.cat-style-aurora .category-btn.active::before,
.categories.cat-style-aurora .category-btn.active::before {
    opacity: 0;
}

/* ───── Точка · cat-style-dot ───── */
body.cat-style-dot .category-btn,
.categories-scroll.cat-style-dot .category-btn,
.categories.cat-style-dot .category-btn {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 10px 4px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    opacity: 0.55;
}
body.cat-style-dot .category-btn::before,
.categories-scroll.cat-style-dot .category-btn::before,
.categories.cat-style-dot .category-btn::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.4;
    flex: none;
    transition: all 0.25s ease;
}
body.cat-style-dot .category-btn:hover,
.categories-scroll.cat-style-dot .category-btn:hover,
.categories.cat-style-dot .category-btn:hover {
    transform: none;
    background: transparent !important;
}
body.cat-style-dot .category-btn.active,
.categories-scroll.cat-style-dot .category-btn.active,
.categories.cat-style-dot .category-btn.active {
    background: transparent !important;
    color: var(--category-text, var(--text-color, #ffffff)) !important;
    opacity: 1;
    font-weight: 600;
}
body.cat-style-dot .category-btn.active::before,
.categories-scroll.cat-style-dot .category-btn.active::before,
.categories.cat-style-dot .category-btn.active::before {
    width: 8px;
    height: 8px;
    background: var(--category-active-bg, var(--primary-color, #e6ade4));
    opacity: 1;
    box-shadow: 0 0 10px var(--category-active-bg, var(--primary-color, #e6ade4));
}

/* ───── Уголки · cat-style-frame ───── */
body.cat-style-frame .category-btn,
.categories-scroll.cat-style-frame .category-btn,
.categories.cat-style-frame .category-btn {
    position: relative;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 12px 16px;
    opacity: 0.6;
}
body.cat-style-frame .category-btn::before, body.cat-style-frame .category-btn::after,
.categories-scroll.cat-style-frame .category-btn::before, .categories-scroll.cat-style-frame .category-btn::after,
.categories.cat-style-frame .category-btn::before, .categories.cat-style-frame .category-btn::after {
    content: '';
    position: absolute;
    width: 9px;
    height: 9px;
    border: 2px solid currentColor;
    transition: all 0.25s ease;
    pointer-events: none;
}
body.cat-style-frame .category-btn::before,
.categories-scroll.cat-style-frame .category-btn::before,
.categories.cat-style-frame .category-btn::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}
body.cat-style-frame .category-btn::after,
.categories-scroll.cat-style-frame .category-btn::after,
.categories.cat-style-frame .category-btn::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}
body.cat-style-frame .category-btn:hover,
.categories-scroll.cat-style-frame .category-btn:hover,
.categories.cat-style-frame .category-btn:hover {
    transform: none;
    background: transparent !important;
}
body.cat-style-frame .category-btn.active,
.categories-scroll.cat-style-frame .category-btn.active,
.categories.cat-style-frame .category-btn.active {
    background: transparent !important;
    color: var(--category-text, var(--text-color, #ffffff)) !important;
    opacity: 1;
    font-weight: 600;
}
body.cat-style-frame .category-btn.active::before, body.cat-style-frame .category-btn.active::after,
.categories-scroll.cat-style-frame .category-btn.active::before, .categories-scroll.cat-style-frame .category-btn.active::after,
.categories.cat-style-frame .category-btn.active::before, .categories.cat-style-frame .category-btn.active::after {
    width: 15px;
    height: 15px;
    border-color: var(--category-active-bg, var(--primary-color, #e6ade4));
}

/* ───── Косая · cat-style-slash ───── */
body.cat-style-slash .category-btn,
.categories-scroll.cat-style-slash .category-btn,
.categories.cat-style-slash .category-btn {
    position: relative;
    z-index: 0;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 11px 20px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
body.cat-style-slash .category-btn::before,
.categories-scroll.cat-style-slash .category-btn::before,
.categories.cat-style-slash .category-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 3px;
    background: var(--category-bg, rgba(255,255,255,0.06));
    transform: skewX(-12deg);
    transition: all 0.25s ease;
}
body.cat-style-slash .category-btn:hover,
.categories-scroll.cat-style-slash .category-btn:hover,
.categories.cat-style-slash .category-btn:hover {
    transform: none;
}
body.cat-style-slash .category-btn.active,
.categories-scroll.cat-style-slash .category-btn.active,
.categories.cat-style-slash .category-btn.active {
    background: transparent !important;
    color: var(--category-active-text, #ffffff) !important;
}
body.cat-style-slash .category-btn.active::before,
.categories-scroll.cat-style-slash .category-btn.active::before,
.categories.cat-style-slash .category-btn.active::before {
    background: var(--category-active-bg, var(--primary-color, #e6ade4));
}

/* ───── Нажимная · cat-style-press ───── */
body.cat-style-press .category-btn,
.categories-scroll.cat-style-press .category-btn,
.categories.cat-style-press .category-btn {
    background: var(--category-bg, rgba(255,255,255,0.06)) !important;
    border: none !important;
    border-radius: 14px !important;
    padding: var(--nkg-cat-py, 11px) var(--nkg-cat-px, 19px);
    font-weight: 600;
    box-shadow: 0 4px 0 rgba(0,0,0,0.35) !important;
}
body.cat-style-press .category-btn:hover,
.categories-scroll.cat-style-press .category-btn:hover,
.categories.cat-style-press .category-btn:hover {
    transform: none;
}
body.cat-style-press .category-btn:active,
.categories-scroll.cat-style-press .category-btn:active,
.categories.cat-style-press .category-btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.35) !important;
}
body.cat-style-press .category-btn.active,
.categories-scroll.cat-style-press .category-btn.active,
.categories.cat-style-press .category-btn.active {
    background: var(--category-active-bg, var(--primary-color, #e6ade4)) !important;
    color: var(--category-active-text, #ffffff) !important;
    box-shadow: 0 4px 0 rgba(0,0,0,0.35) !important;
}
html.light-theme body.cat-style-press .category-btn,
body.light-theme.cat-style-press .category-btn {
    box-shadow: 0 4px 0 rgba(0,0,0,0.16) !important;
}

/* ───── Маркер · cat-style-marker ───── */
body.cat-style-marker .category-btn,
.categories-scroll.cat-style-marker .category-btn,
.categories.cat-style-marker .category-btn {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 9px 9px;
    font-weight: 600;
    opacity: 0.55;
}
body.cat-style-marker .category-btn:hover,
.categories-scroll.cat-style-marker .category-btn:hover,
.categories.cat-style-marker .category-btn:hover {
    transform: none;
    background: transparent !important;
}
body.cat-style-marker .category-btn.active,
.categories-scroll.cat-style-marker .category-btn.active,
.categories.cat-style-marker .category-btn.active {
    opacity: 1;
    color: var(--category-text, var(--text-color, #ffffff)) !important;
    border-radius: 3px !important;
    background: linear-gradient(transparent 52%, var(--category-active-bg, var(--primary-color, #e6ade4)) 52%, var(--category-active-bg, var(--primary-color, #e6ade4)) 93%, transparent 93%) !important;
}

/* ───── Вкладки · cat-style-tab ───── */
body.cat-style-tab .categories,
.categories-scroll.cat-style-tab .categories,
.categories.cat-style-tab .categories {
    gap: 4px;
    border-bottom: 1px solid var(--category-border, rgba(255,255,255,0.14));
}
body.cat-style-tab .category-btn,
.categories-scroll.cat-style-tab .category-btn,
.categories.cat-style-tab .category-btn {
    background: transparent !important;
    border: 1px solid transparent !important;
    border-bottom: none !important;
    border-radius: 11px 11px 0 0 !important;
    padding: 11px 18px;
    margin-bottom: -1px;
    opacity: 0.6;
}
body.cat-style-tab .category-btn:hover,
.categories-scroll.cat-style-tab .category-btn:hover,
.categories.cat-style-tab .category-btn:hover {
    transform: none;
}
body.cat-style-tab .category-btn.active,
.categories-scroll.cat-style-tab .category-btn.active,
.categories.cat-style-tab .category-btn.active {
    background: var(--category-bg, rgba(255,255,255,0.06)) !important;
    color: var(--category-text, var(--text-color, #ffffff)) !important;
    opacity: 1;
    font-weight: 600;
    border-color: var(--category-border, rgba(255,255,255,0.14)) !important;
    border-top: 2px solid var(--category-active-bg, var(--primary-color, #e6ade4)) !important;
    border-bottom: 1px solid var(--bg-color, #0a0a0f) !important;
}

/* ───── Пиксель · cat-style-pixel ───── */
body.cat-style-pixel .category-btn,
.categories-scroll.cat-style-pixel .category-btn,
.categories.cat-style-pixel .category-btn {
    background: var(--category-bg, rgba(255,255,255,0.06)) !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 11px 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    box-shadow: 0 -3px 0 var(--category-bg, rgba(255,255,255,0.06)), 0 3px 0 var(--category-bg, rgba(255,255,255,0.06)), -3px 0 0 var(--category-bg, rgba(255,255,255,0.06)), 3px 0 0 var(--category-bg, rgba(255,255,255,0.06)) !important;
}
body.cat-style-pixel .category-btn:hover,
.categories-scroll.cat-style-pixel .category-btn:hover,
.categories.cat-style-pixel .category-btn:hover {
    transform: none;
}
body.cat-style-pixel .category-btn.active,
.categories-scroll.cat-style-pixel .category-btn.active,
.categories.cat-style-pixel .category-btn.active {
    background: var(--category-active-bg, var(--primary-color, #e6ade4)) !important;
    color: var(--category-active-text, #ffffff) !important;
    box-shadow: 0 -3px 0 var(--category-active-bg, var(--primary-color, #e6ade4)), 0 3px 0 var(--category-active-bg, var(--primary-color, #e6ade4)), -3px 0 0 var(--category-active-bg, var(--primary-color, #e6ade4)), 3px 0 0 var(--category-active-bg, var(--primary-color, #e6ade4)) !important;
}

/* ───── Лента · cat-style-ribbon ───── */
body.cat-style-ribbon .categories,
.categories-scroll.cat-style-ribbon .categories,
.categories.cat-style-ribbon .categories {
    gap: 2px;
}
body.cat-style-ribbon .category-btn,
.categories-scroll.cat-style-ribbon .category-btn,
.categories.cat-style-ribbon .category-btn {
    background: var(--category-bg, rgba(255,255,255,0.06)) !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 12px 22px 12px 26px;
    font-weight: 600;
    clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%, 11px 50%);
}
body.cat-style-ribbon .category-btn:first-child,
.categories-scroll.cat-style-ribbon .category-btn:first-child,
.categories.cat-style-ribbon .category-btn:first-child {
    padding-left: 18px;
    clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%);
}
body.cat-style-ribbon .category-btn:hover,
.categories-scroll.cat-style-ribbon .category-btn:hover,
.categories.cat-style-ribbon .category-btn:hover {
    transform: none;
}
body.cat-style-ribbon .category-btn.active,
.categories-scroll.cat-style-ribbon .category-btn.active,
.categories.cat-style-ribbon .category-btn.active {
    background: var(--category-active-bg, var(--primary-color, #e6ade4)) !important;
    color: var(--category-active-text, #ffffff) !important;
}

/* ───── Бумага · cat-style-paper ───── */
body.cat-style-paper .category-btn,
.categories-scroll.cat-style-paper .category-btn,
.categories.cat-style-paper .category-btn {
    position: relative;
    background: #ffffff !important;
    color: #1a1a1a !important;
    border: none !important;
    border-radius: 3px !important;
    padding: var(--nkg-cat-py, 11px) var(--nkg-cat-px, 19px);
}
body.cat-style-paper .category-btn::after,
.categories-scroll.cat-style-paper .category-btn::after,
.categories.cat-style-paper .category-btn::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 12px 12px 0;
    border-style: solid;
    border-color: transparent var(--bg-color, #0a0a0f) transparent transparent;
    pointer-events: none;
}
body.cat-style-paper .category-btn:hover,
.categories-scroll.cat-style-paper .category-btn:hover,
.categories.cat-style-paper .category-btn:hover {
    transform: none;
}
body.cat-style-paper .category-btn.active,
.categories-scroll.cat-style-paper .category-btn.active,
.categories.cat-style-paper .category-btn.active {
    background: var(--category-active-bg, var(--primary-color, #e6ade4)) !important;
    color: var(--category-active-text, #ffffff) !important;
}

/* ───── Свечение · cat-style-halo ───── */
body.cat-style-halo .category-btn,
.categories-scroll.cat-style-halo .category-btn,
.categories.cat-style-halo .category-btn {
    background: var(--category-bg, rgba(255,255,255,0.06)) !important;
    border: 1px solid var(--category-border, rgba(255,255,255,0.14)) !important;
    border-radius: 999px !important;
    padding: var(--nkg-cat-py, 11px) var(--nkg-cat-px, 19px);
    opacity: 0.8;
}
body.cat-style-halo .category-btn:hover,
.categories-scroll.cat-style-halo .category-btn:hover,
.categories.cat-style-halo .category-btn:hover {
    transform: none;
}
body.cat-style-halo .category-btn.active,
.categories-scroll.cat-style-halo .category-btn.active,
.categories.cat-style-halo .category-btn.active {
    background: var(--category-active-bg, var(--primary-color, #e6ade4)) !important;
    color: var(--category-active-text, #ffffff) !important;
    border-color: transparent !important;
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.07), 0 0 26px var(--category-active-bg, var(--primary-color, #e6ade4)) !important;
}

/* ───── Журнал · cat-style-line ───── */
body.cat-style-line .categories,
.categories-scroll.cat-style-line .categories,
.categories.cat-style-line .categories {
    gap: 0;
}
body.cat-style-line .category-btn,
.categories-scroll.cat-style-line .category-btn,
.categories.cat-style-line .category-btn {
    position: relative;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 10px 16px;
    opacity: 0.5;
}
body.cat-style-line .category-btn::after,
.categories-scroll.cat-style-line .category-btn::after,
.categories.cat-style-line .category-btn::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 13px;
    background: var(--category-border, rgba(255,255,255,0.14));
}
body.cat-style-line .category-btn:last-child::after,
.categories-scroll.cat-style-line .category-btn:last-child::after,
.categories.cat-style-line .category-btn:last-child::after {
    display: none;
}
body.cat-style-line .category-btn:hover,
.categories-scroll.cat-style-line .category-btn:hover,
.categories.cat-style-line .category-btn:hover {
    transform: none;
    background: transparent !important;
}
body.cat-style-line .category-btn.active,
.categories-scroll.cat-style-line .category-btn.active,
.categories.cat-style-line .category-btn.active {
    background: transparent !important;
    color: var(--category-active-bg, var(--primary-color, #e6ade4)) !important;
    opacity: 1;
    font-weight: 700;
}

/* ───── Светлая тема: правки для новых стилей ─────
   В светлой теме --category-border / --bg-color / --category-text остаются
   тёмными, поэтому вырезы, рамки и разделители надо перекрасить. */
html.light-theme body.cat-style-ticket .category-btn::before,
html.light-theme body.cat-style-ticket .category-btn::after,
body.light-theme.cat-style-ticket .category-btn::before,
body.light-theme.cat-style-ticket .category-btn::after {
    background: var(--light-bg-color, #f5f5f5);
}
html.light-theme body.cat-style-paper .category-btn::after,
body.light-theme.cat-style-paper .category-btn::after {
    border-color: transparent var(--light-bg-color, #f5f5f5) transparent transparent;
}
html.light-theme body.cat-style-tab .category-btn.active,
body.light-theme.cat-style-tab .category-btn.active {
    border-bottom: 1px solid var(--light-card-bg, #f5f5f5) !important;
}
html.light-theme body.cat-style-brutal .category-btn,
body.light-theme.cat-style-brutal .category-btn {
    border-color: #1a1a1a !important;
    box-shadow: 4px 4px 0 #1a1a1a !important;
}
html.light-theme body.cat-style-sticker .category-btn,
body.light-theme.cat-style-sticker .category-btn {
    border-color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.14) !important;
}
html.light-theme body.cat-style-pixel .category-btn,
body.light-theme.cat-style-pixel .category-btn {
    box-shadow: 0 -3px 0 var(--light-card-bg, #f5f5f5), 0 3px 0 var(--light-card-bg, #f5f5f5), -3px 0 0 var(--light-card-bg, #f5f5f5), 3px 0 0 var(--light-card-bg, #f5f5f5) !important;
}
html.light-theme body.cat-style-line .category-btn::after,
body.light-theme.cat-style-line .category-btn::after {
    background: rgba(0,0,0,0.18);
}
html.light-theme body.cat-style-lux .category-btn,
body.light-theme.cat-style-lux .category-btn {
    border-bottom-color: rgba(0,0,0,0.18) !important;
}
html.light-theme body.cat-style-glass .category-btn.active,
html.light-theme body.cat-style-soft .category-btn.active,
html.light-theme body.cat-style-halo .category-btn.active,
body.light-theme.cat-style-glass .category-btn.active,
body.light-theme.cat-style-soft .category-btn.active,
body.light-theme.cat-style-halo .category-btn.active {
    border-color: transparent !important;
}

/* ═══════════════════════════════════════════════════════════════════
   ОСТАТОК ТОВАРА НА ВИТРИНЕ
   Показывается по флагу showStock у товара. Разметку рисует
   getStockBadgeHtml() в script.js: карточка каталога + карточка товара.
   ═══════════════════════════════════════════════════════════════════ */
.stock-line {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 7px;
    padding: 5px 11px;
    border-radius: 999px;
    font-family: var(--tg-product-title-font, 'Montserrat', sans-serif);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stock-line .stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: none;
}
.stock-line.stock-hot {
    background: rgba(255, 91, 61, 0.14);
    color: #ff5b3d;
    box-shadow: inset 0 0 0 1px rgba(255, 91, 61, 0.35);
}
.stock-line.stock-hot .stock-dot {
    background: #ff5b3d;
    animation: stockPulse 1.5s ease-out infinite;
}
.stock-line.stock-low {
    background: rgba(240, 160, 33, 0.14);
    color: #f0a021;
    box-shadow: inset 0 0 0 1px rgba(240, 160, 33, 0.32);
}
.stock-line.stock-low .stock-dot { background: #f0a021; }
.stock-line.stock-ok {
    background: rgba(72, 176, 77, 0.13);
    color: #48b04d;
    box-shadow: inset 0 0 0 1px rgba(72, 176, 77, 0.3);
}
.stock-line.stock-ok .stock-dot { background: #48b04d; }
@keyframes stockPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 91, 61, 0.55); }
    70% { box-shadow: 0 0 0 7px rgba(255, 91, 61, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 91, 61, 0); }
}
/* В карточке товара плашка крупнее и стоит под ценой */
#productModalStock { margin-top: 8px; }
#productModalStock .stock-line {
    font-size: 13px;
    padding: 7px 14px;
    margin: 0;
}
/* В Telegram чуть компактнее */
body.tg-webapp .stock-line {
    font-size: 11px;
    padding: 4px 9px;
    margin-bottom: 6px;
}

/* ====================================================================
   КАРТОЧКА ТОВАРА НЕ ЕЗДИТ ВБОК
   У .product-modal-info задан только overflow-y: auto, а по спецификации
   вторая ось при этом сама превращается в auto. Поэтому любой блок шире
   контейнера включал горизонтальный скролл всей карточки. Виновником был
   #productModalStock шириной 100% внутри ряда с ценой, который не переносится.
   Ниже: ось X закрыта наглухо, ряд цены умеет переносить строку, пустой блок
   остатка не занимает места. Галерею фото это не трогает, она отдельный
   контейнер и листается трансформом.
   ==================================================================== */
.product-modal-info {
    overflow-x: hidden;
    overscroll-behavior-x: none;
}
.product-modal-info > * {
    max-width: 100%;
}
.product-modal-price-row {
    flex-wrap: wrap;
    max-width: 100%;
}
.product-modal-price-row > * {
    min-width: 0;
}
#productModalStock {
    width: 100%;
    flex: 0 0 100%;
}
#productModalStock:empty {
    display: none;
    margin: 0;
}


/* ══ ЮРИДИЧЕСКИЕ ОКНА: светлый стиль под CRM и лендинг ══
   Оферта, политика, возврат и контакты рисуются в script.js
   инлайновыми стилями под тёмную тему (color:#fff, акценты
   #ff9800 и прочие). Общий light-theme трогать нельзя: класс
   висит на <html>, а в этом файле 234 спящих правила на
   body.light-theme, и их пробуждение перекрасит все магазины.
   Поэтому перекрываем точечно и только внутри #legalModal. */
#legalModal{background:#f4f5f6 !important;color:#1a1a1a !important;}
#legalModal #legalContent{background:#fff !important;color:#1a1a1a !important;
  max-width:760px;margin:0 auto;padding:24px 20px 32px;border-radius:18px;
  box-shadow:0 2px 18px rgba(0,0,0,.06);}
#legalModal #legalContent *{color:#1a1a1a !important;}
#legalModal #legalContent h1{font-size:22px !important;font-weight:800;
  letter-spacing:-.2px;margin:0 0 6px !important;}
#legalModal #legalContent h2,
#legalModal #legalContent h3{color:#176b45 !important;font-size:16px !important;
  font-weight:700;margin:24px 0 10px !important;}
#legalModal #legalContent p,
#legalModal #legalContent li{font-size:14.5px;line-height:1.62;color:#3a3f45 !important;}
#legalModal #legalContent b,
#legalModal #legalContent strong{color:#1a1a1a !important;font-weight:700;}
#legalModal #legalContent a{color:#176b45 !important;text-decoration:underline;}
#legalModal #legalContent div[style*="background"]{background:#f6f7f8 !important;
  border:1px solid #e6e8ea !important;border-radius:12px !important;}
#legalModal #legalContent [style*="opacity"]{opacity:1 !important;color:#6b7178 !important;}
#legalModal [onclick*="closeLegalModal"]{background:#fff !important;color:#1a1a1a !important;
  border:1px solid #e6e8ea !important;box-shadow:0 2px 10px rgba(0,0,0,.08) !important;}

/* ══ ПОДВАЛ: ссылки было не прочитать, серое по серому ══ */
.footer-legal-links a{background:#fff !important;border:1px solid #e6e8ea !important;
  color:#3a3f45 !important;border-radius:12px;}

/* ══ ЛОГОТИПЫ ОПЛАТЫ ══
   Файлы официальные, лежат локально: тянуть с CDN нельзя,
   РФ-мобильники это уже ломало. Нет файла — значок просто
   не показывается, битой картинки клиент не увидит. */
.footer-payments .payment-icons{display:flex;flex-wrap:wrap;align-items:center;
  justify-content:center;gap:14px;}
.footer-payments .payment-icons img{height:26px;width:auto;display:block;}

.footer-payments .payment-security{max-width:520px;margin:12px auto 0;font-size:11.5px;line-height:1.5;color:#8b9096;text-align:center;}


/* ══ КРЕСТИК ЗАКРЫТИЯ ЮРИДИЧЕСКИХ ОКОН ══
   Был белым на белом фоне после перевода окон в светлую тему.
   Ловим по атрибуту onclick, по id и по типовым классам сразу:
   кнопка может быть где угодно в разметке, не обязательно внутри
   #legalModal. */
[onclick*="closeLegalModal"],
#legalModal .close, #legalModal .modal-close, #legalModal .legal-close,
#legalClose, .legal-modal-close{
  background:#fff !important;
  color:#1a1a1a !important;
  border:1px solid #e0e3e6 !important;
  opacity:1 !important;
  box-shadow:0 2px 10px rgba(0,0,0,.10) !important;
}
[onclick*="closeLegalModal"] *,
#legalModal .close *, #legalModal .modal-close *, #legalModal .legal-close *,
#legalClose *, .legal-modal-close *{
  color:#1a1a1a !important;
  fill:#1a1a1a !important;
  opacity:1 !important;
}
[onclick*="closeLegalModal"] svg,
#legalClose svg, .legal-modal-close svg{stroke:#1a1a1a !important;}

#legalModal{border:none !important;box-shadow:none !important;}

#shopFooter .footer-payments{display:block !important;width:100%;text-align:center;}
#shopFooter .footer-payments .payment-icons{display:flex !important;flex-direction:row !important;flex-wrap:wrap;align-items:center;justify-content:center;gap:18px;width:100%;margin:0;}
#shopFooter .footer-payments .payment-icons img{height:28px !important;width:auto !important;max-width:none !important;display:block;}
#shopFooter .footer-payments .payment-security{display:block;width:100%;max-width:520px;margin:14px auto 0;font-size:11.5px;line-height:1.5;color:#8b9096 !important;text-align:center;}
#shopFooter .footer-legal-links a{color:#3a3f45 !important;}
#shopFooter .footer-requisites{color:#8b9096 !important;}


/* == POWERED BY: стиль CRM и лендинга, и чтобы до него долистывалось ==
   Плашка была тёмная с неоновым градиентом, плюс подвал не имел
   отступа снизу и плавающее нижнее меню накрывало блок целиком. */
#shopFooter{padding-bottom:calc(150px + env(safe-area-inset-bottom,0px)) !important;}
#shopFooter a[href*="neokodegroup.ru"] > div{
  background:#fff !important;
  border:1px solid #e6e8ea !important;
  border-radius:16px !important;
  box-shadow:0 2px 12px rgba(0,0,0,.05) !important;
  padding:16px 20px !important;
  margin:18px 0 0 !important;
}
#shopFooter a[href*="neokodegroup.ru"] span{
  background:none !important;
  -webkit-background-clip:border-box !important;
  background-clip:border-box !important;
  font-style:normal !important;
}
#shopFooter a[href*="neokodegroup.ru"] span:first-child{
  color:#9aa0a6 !important; -webkit-text-fill-color:#9aa0a6 !important;
}
#shopFooter a[href*="neokodegroup.ru"] span:last-child{
  color:#176b45 !important; -webkit-text-fill-color:#176b45 !important;
  letter-spacing:2.5px !important;
}

.pwa-powered-by{background:#fff !important;color:#9aa0a6 !important;-webkit-text-fill-color:#9aa0a6 !important;border:1px solid #e6e8ea !important;border-radius:16px !important;box-shadow:0 2px 12px rgba(0,0,0,.05) !important;padding:16px 20px !important;font-size:10px !important;font-weight:600 !important;letter-spacing:2.5px !important;font-style:normal !important;text-align:center !important;}

/* ═══════════════════════════════════════════════════════════════════
   NKG · 1 сентября 2026
   Блок 1: категории перестают дёргаться при переключении.
   Блок 2: десять новых стилей нижнего меню.
   Файл дописывается в конец style.css, поэтому при равной силе
   селектора выигрывает он. Ничего выше по файлу не удалено.
   ═══════════════════════════════════════════════════════════════════ */


/* ═══ БЛОК 1 · КАТЕГОРИИ БЕЗ ПОДЁРГИВАНИЯ ═══════════════════════════

   Что дёргалось и почему.

   1) У .category-btn стояло transition: all 0.3s ease. Слово all значит
      «анимируй вообще всё», включая геометрию: padding, толщину рамки,
      ширину и даже font-weight. У скина Люкс активная вкладка меняет
      вес 500 → 600, а это у Georgia переход обычного начертания в
      жирное, то есть реальная прибавка ширины. Браузер честно
      разгонял эту ширину триста миллисекунд, лента ехала вбок, все
      соседние вкладки плыли. Это и читалось как «глюк».

   2) В блоке оптимизаций вверху файла есть правило button:active
      { transform: scale(0.97) }. Категории это тоже кнопки, и на
      нажатии они сжимались, причём сжимались медленно, те же триста
      миллисекунд, потому что transition: all их подхватывал. Ещё один
      слой качания поверх первого.

   3) .category-btn:hover поднимает кнопку на 2px. На телефоне ховер
      залипает после тапа, поэтому нажатая вкладка так и оставалась
      приподнятой, пока не тронешь другую.

   Как чиним. Анимируем только то, что не двигает соседей: цвет, фон,
   рамку, тень, прозрачность. Геометрия меняется мгновенно, без
   разгона. Нажатие остаётся тактильным, но щелчком, а не киселём.
   Ширину вкладок фиксирует script.js: он замеряет каждую в активном
   и в обычном виде и ставит min-width по большему. После этого смена
   активной вкладки физически не может сдвинуть ленту.
   Работает для всех тридцати с лишним скинов категорий сразу. */

.categories .category-btn {
    transition: color 0.22s ease,
                background-color 0.22s ease,
                border-color 0.22s ease,
                box-shadow 0.22s ease,
                opacity 0.22s ease;
}

/* На сенсорных экранах ховера нет, а залипший ховер есть. Убираем. */
@media (hover: none) {
    .categories .category-btn:hover {
        transform: none;
    }
}

/* Лента не должна прыгать по вертикали, когда у активной вкладки
   другая высота: выравниваем все вкладки по одной линии. */
.categories {
    align-items: stretch;
}


/* ═══ БЛОК 2 · ДЕСЯТЬ НОВЫХ СТИЛЕЙ НИЖНЕГО МЕНЮ ═════════════════════

   Разметка та же, что у старых десяти:
     nav.bottom-nav.nav-style-ИМЯ
       div.nav-bg          это сама панель
       div.nav-items       это ряд кнопок
         div.nav-item      это кнопка, у активной класс active
           div.nav-icon-wrap
             svg.nav-icon
             span.nav-badge
           span.nav-label

   Цвета берутся из тех же переменных, что и у старых стилей, поэтому
   пипетки в админке работают без единой доработки:
     --nav-bg-color        фон панели
     --nav-active-color    цвет активной
     --nav-icon-color      иконки
     --nav-inactive-color  неактивные подписи

   Две переменные добавлены script.js и считаются автоматически:
     --nav-on-active   чёрный или белый поверх активного цвета, по его
                       яркости. Нужен, чтобы иконка на заливке всегда
                       читалась, какой бы цвет ни выбрал магазин.
     --nav-active-2    тот же цвет со сдвигом тона, для градиентов.
   У обеих есть запасные значения прямо в var(), так что даже если
   старый script.js ещё не залит, меню не сломается. */


/* ── 1. Морф · nav-style-morph ─────────────────────────────────────
   Активная иконка садится в мягкую капсулу цвета магазина. */
.bottom-nav.nav-style-morph .nav-bg {
    background: var(--nav-bg-color, rgba(20, 20, 30, 0.95));
    border-radius: 35px;
}
.nav-style-morph .nav-item.active .nav-icon-wrap {
    width: 60px;
    height: 44px;
    border-radius: 22px;
    background: color-mix(in srgb, var(--nav-active-color, #4ade80) 18%, transparent);
}
.nav-style-morph .nav-item.active .nav-icon {
    color: var(--nav-active-color, #4ade80);
    width: 25px;
    height: 25px;
}


/* ── 2. Свод · nav-style-arch ──────────────────────────────────────
   Панель прижата к нижнему краю на всю ширину, активная кнопка
   выезжает наверх кругом. Самый заметный из десяти. */
.bottom-nav.nav-style-arch {
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(66px + var(--safe-area-bottom, 0px));
}
.nav-style-arch .nav-bg {
    height: 100%;
    border-radius: 26px 26px 0 0;
    background: var(--nav-bg-color, rgba(20, 20, 30, 0.97));
    box-shadow: 0 -6px 26px rgba(0, 0, 0, 0.28);
}
.nav-style-arch .nav-items {
    top: 0;
    bottom: auto;
    height: 66px;
    gap: 0;
    justify-content: space-around;
}
.nav-style-arch .nav-item.active {
    transform: translateY(-16px);
}
.nav-style-arch .nav-item.active .nav-icon-wrap {
    width: 54px;
    height: 54px;
    background: var(--nav-active-color, #4ade80);
    border: 4px solid var(--nav-bg-color, rgba(20, 20, 30, 0.97));
    box-shadow: 0 10px 22px color-mix(in srgb, var(--nav-active-color, #4ade80) 42%, transparent);
}
.nav-style-arch .nav-item.active .nav-icon {
    color: var(--nav-on-active, #ffffff);
}


/* ── 3. Лепесток · nav-style-petal ─────────────────────────────────
   За активной иконкой живое пятно неправильной формы. Медленно
   меняет очертания, движение почти незаметное. */
.bottom-nav.nav-style-petal .nav-bg {
    background: var(--nav-bg-color, rgba(20, 20, 30, 0.95));
    border-radius: 35px;
}
.nav-style-petal .nav-item.active .nav-icon-wrap {
    width: 48px;
    height: 48px;
    background: color-mix(in srgb, var(--nav-active-color, #4ade80) 22%, transparent);
    border-radius: 62% 38% 54% 46% / 48% 60% 40% 52%;
    animation: nkgNavPetal 6s ease-in-out infinite;
}
.nav-style-petal .nav-item.active .nav-icon {
    color: var(--nav-active-color, #4ade80);
}
@keyframes nkgNavPetal {
    0%, 100% { border-radius: 62% 38% 54% 46% / 48% 60% 40% 52%; }
    50%      { border-radius: 44% 56% 40% 60% / 58% 42% 58% 42%; }
}


/* ── 4. Кольцо · nav-style-ring ────────────────────────────────────
   Тонкая стеклянная панель, активная обведена кольцом без заливки.
   Самый ненавязчивый: не перекрывает товар. */
.bottom-nav.nav-style-ring {
    height: 62px;
}
.nav-style-ring .nav-bg {
    height: 62px;
    border-radius: 31px;
    background: var(--nav-bg-color, rgba(20, 20, 30, 0.82));
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.30);
}
.nav-style-ring .nav-items {
    top: auto;
    bottom: 0;
    height: 62px;
}
.nav-style-ring .nav-item.active .nav-icon-wrap {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1.5px solid var(--nav-active-color, #4ade80);
}
.nav-style-ring .nav-item.active .nav-icon {
    color: var(--nav-active-color, #4ade80);
}


/* ── 5. Парение · nav-style-orbs ───────────────────────────────────
   Панели нет вообще, четыре отдельных круга. Между ними виден
   каталог, экран кажется выше. */
.bottom-nav.nav-style-orbs .nav-bg {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
}
.nav-style-orbs .nav-items {
    gap: 14px;
}
.nav-style-orbs .nav-icon-wrap {
    background: var(--nav-bg-color, rgba(20, 20, 30, 0.95));
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.nav-style-orbs .nav-item.active {
    transform: translateY(-4px);
}
.nav-style-orbs .nav-item.active .nav-icon-wrap {
    background: var(--nav-active-color, #4ade80);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--nav-active-color, #4ade80) 42%, transparent);
}
.nav-style-orbs .nav-item.active .nav-icon {
    color: var(--nav-on-active, #ffffff);
}


/* ── 6. Сегмент · nav-style-segment ────────────────────────────────
   Прямоугольник с тонкими разделителями, активная ячейка залита.
   Строгий вариант для магазинов без украшательств. */
.bottom-nav.nav-style-segment {
    height: 64px;
}
.nav-style-segment .nav-bg {
    height: 64px;
    border-radius: 18px;
    background: var(--nav-bg-color, rgba(20, 20, 30, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-style-segment .nav-items {
    top: auto;
    bottom: 0;
    height: 64px;
    gap: 0;
    justify-content: space-around;
}
.nav-style-segment .nav-item {
    flex: 1;
    width: auto;
    height: 64px;
}
.nav-style-segment .nav-item + .nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: rgba(255, 255, 255, 0.10);
}
.nav-style-segment .nav-item.active .nav-icon-wrap {
    width: 72px;
    height: 46px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--nav-active-color, #4ade80) 16%, transparent);
}
.nav-style-segment .nav-item.active .nav-icon {
    color: var(--nav-active-color, #4ade80);
}
.light-theme .nav-style-segment .nav-item + .nav-item::before,
.nav-style-segment .nav-item + .nav-item::before {
    background: color-mix(in srgb, var(--nav-icon-color, rgba(255,255,255,0.5)) 30%, transparent);
}


/* ── 7. Тень · nav-style-elevate ───────────────────────────────────
   Плоская панель на большой мягкой тени, активная помечена точкой.
   Минимум декора, максимум воздуха. */
.bottom-nav.nav-style-elevate {
    height: 66px;
}
.nav-style-elevate .nav-bg {
    height: 66px;
    border-radius: 22px;
    background: var(--nav-bg-color, rgba(20, 20, 30, 0.97));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34), 0 3px 10px rgba(0, 0, 0, 0.18);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.nav-style-elevate .nav-items {
    top: auto;
    bottom: 0;
    height: 66px;
}
.nav-style-elevate .nav-item {
    padding-bottom: 8px;
}
.nav-style-elevate .nav-item.active .nav-icon {
    color: var(--nav-active-color, #4ade80);
}
.nav-style-elevate .nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--nav-active-color, #4ade80);
}


/* ── 8. Лента · nav-style-ribbon ───────────────────────────────────
   Во всю ширину, без скруглений, подписи всегда видны, сверху линия
   акцента. Привычный вид для тех, кто пришёл с обычного сайта. */
.bottom-nav.nav-style-ribbon {
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(64px + var(--safe-area-bottom, 0px));
}
.nav-style-ribbon .nav-bg {
    height: 100%;
    border-radius: 0;
    background: var(--nav-bg-color, rgba(20, 20, 30, 0.98));
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.08);
}
.nav-style-ribbon .nav-items {
    top: 0;
    bottom: auto;
    height: 64px;
    gap: 0;
    justify-content: space-around;
}
.nav-style-ribbon .nav-item {
    flex: 1;
    width: auto;
    height: 64px;
    flex-direction: column;
    gap: 2px;
}
.nav-style-ribbon .nav-icon-wrap {
    width: 30px;
    height: 30px;
}
.nav-style-ribbon .nav-icon {
    width: 22px;
    height: 22px;
}
.nav-style-ribbon .nav-label {
    display: block;
    font-size: 10px;
    line-height: 1;
    color: var(--nav-inactive-color, var(--nav-icon-color, rgba(255, 255, 255, 0.5)));
}
.nav-style-ribbon .nav-item.active .nav-icon,
.nav-style-ribbon .nav-item.active .nav-label {
    color: var(--nav-active-color, #4ade80);
}
.nav-style-ribbon .nav-item.active .nav-label {
    font-weight: 600;
}
.nav-style-ribbon .nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 22%;
    right: 22%;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: var(--nav-active-color, #4ade80);
}


/* ── 9. Контраст · nav-style-contrast ──────────────────────────────
   Тёмная капсула, активная иконка вывернута в светлый круг. Цвет
   круга берётся из «активной», иконка внутри сама выбирает чёрную
   или белую по яркости этого круга. */
.bottom-nav.nav-style-contrast .nav-bg {
    background: var(--nav-bg-color, #101014);
    border-radius: 35px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.nav-style-contrast .nav-item.active .nav-icon-wrap {
    width: 48px;
    height: 48px;
    background: var(--nav-active-color, #ffffff);
}
.nav-style-contrast .nav-item.active .nav-icon {
    color: var(--nav-on-active, #101014);
}


/* ── 10. Аврора · nav-style-aurora ─────────────────────────────────
   Капсула с градиентной рамкой, активная иконка в градиентном круге.
   Второй цвет градиента считает script.js от «активного», сдвигая
   тон, поэтому пара всегда сочетается. */
.bottom-nav.nav-style-aurora .nav-bg {
    border: 1.5px solid transparent;
    border-radius: 35px;
    background:
        linear-gradient(var(--nav-bg-color, rgba(16, 16, 24, 0.96)),
                        var(--nav-bg-color, rgba(16, 16, 24, 0.96))) padding-box,
        linear-gradient(115deg,
                        var(--nav-active-color, #4ade80),
                        var(--nav-active-2, #38bdf8)) border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.nav-style-aurora .nav-item.active .nav-icon-wrap {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg,
                                var(--nav-active-color, #4ade80),
                                var(--nav-active-2, #38bdf8));
    box-shadow: 0 6px 18px color-mix(in srgb, var(--nav-active-color, #4ade80) 38%, transparent);
}
.nav-style-aurora .nav-item.active .nav-icon {
    color: var(--nav-on-active, #ffffff);
}


/* ── Светлая тема для новых стилей ─────────────────────────────────
   Панель и разделители светлеют, тени становятся мягче. Активный
   цвет не трогаем, он всегда из настроек магазина. */
.light-theme .nav-style-arch .nav-bg,
.light-theme .nav-style-morph .nav-bg,
.light-theme .nav-style-petal .nav-bg,
.light-theme .nav-style-segment .nav-bg,
.light-theme .nav-style-elevate .nav-bg,
.light-theme .nav-style-ribbon .nav-bg,
.light-theme .nav-style-ring .nav-bg {
    background: var(--nav-bg-color, rgba(255, 255, 255, 0.96));
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.light-theme .nav-style-orbs .nav-icon-wrap {
    background: var(--nav-bg-color, rgba(255, 255, 255, 0.96));
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}
.light-theme .nav-style-orbs .nav-bg {
    background: transparent;
    box-shadow: none;
}
.light-theme .nav-style-orbs .nav-item.active .nav-icon-wrap,
.light-theme .nav-style-arch .nav-item.active .nav-icon-wrap,
.light-theme .nav-style-contrast .nav-item.active .nav-icon-wrap {
    background: var(--nav-active-color, #4ade80);
}
.light-theme .nav-style-aurora .nav-bg {
    background:
        linear-gradient(var(--nav-bg-color, rgba(255, 255, 255, 0.96)),
                        var(--nav-bg-color, rgba(255, 255, 255, 0.96))) padding-box,
        linear-gradient(115deg,
                        var(--nav-active-color, #4ade80),
                        var(--nav-active-2, #38bdf8)) border-box;
}

/* Экономия батареи и уважение к системной настройке: живое пятно
   Лепестка перестаёт двигаться, если человек выключил анимации. */
@media (prefers-reduced-motion: reduce) {
    .nav-style-petal .nav-item.active .nav-icon-wrap {
        animation: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   NKG · 1 сентября 2026 · ВТОРАЯ ДЕСЯТКА СТИЛЕЙ НИЖНЕГО МЕНЮ
   Стили 11-20: Волна, Шторка, Штамп, Тумблер, Ступень, Иней, Купол,
   Скоба, Пульс, Вырез.

   Дописывается в конец style.css, ПОСЛЕ первого блока с nav-style-morph
   и остальными. Ничего из ранее залитого не трогает и не переопределяет:
   у каждого стиля свой класс на элементе nav.bottom-nav.

   Разметка та же, что у всех двадцати:
     nav.bottom-nav.nav-style-ИМЯ
       div.nav-bg
       div.nav-items
         div.nav-item (у активной класс active)
           div.nav-icon-wrap > svg.nav-icon + span.nav-badge
           span.nav-label

   Цвета берутся из тех же переменных, что и везде:
     --nav-bg-color, --nav-active-color, --nav-icon-color,
     --nav-inactive-color, плюс вычисляемые script.js
     --nav-on-active и --nav-active-2.
   ═══════════════════════════════════════════════════════════════════ */


/* ── 11. Волна · nav-style-wave ────────────────────────────────────
   Активная всплывает над панелью, под ней остаётся полукруглая волна
   цвета магазина. Мягкий вариант, хорошо ложится на цветочные и
   кондитерские витрины. */
.bottom-nav.nav-style-wave {
    height: 66px;
}
.nav-style-wave .nav-bg {
    height: 66px;
    border-radius: 33px;
    background: var(--nav-bg-color, rgba(20, 20, 30, 0.96));
}
.nav-style-wave .nav-items {
    top: auto;
    bottom: 0;
    height: 66px;
}
.nav-style-wave .nav-item.active {
    transform: translateY(-8px);
}
.nav-style-wave .nav-item.active .nav-icon-wrap {
    background: color-mix(in srgb, var(--nav-active-color, #4ade80) 20%, transparent);
}
.nav-style-wave .nav-item.active .nav-icon {
    color: var(--nav-active-color, #4ade80);
}
.nav-style-wave .nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 12px;
    border-radius: 0 0 34px 34px;
    background: color-mix(in srgb, var(--nav-active-color, #4ade80) 28%, transparent);
}


/* ── 12. Шторка · nav-style-curtain ────────────────────────────────
   Ячейка активной заливается сверху вниз и растворяется к низу.
   Панель остаётся плоской, ничего не выпирает за её край. */
.bottom-nav.nav-style-curtain {
    height: 64px;
}
.nav-style-curtain .nav-bg {
    height: 64px;
    border-radius: 20px;
    background: var(--nav-bg-color, rgba(20, 20, 30, 0.96));
    overflow: hidden;
}
.nav-style-curtain .nav-items {
    top: auto;
    bottom: 0;
    height: 64px;
    gap: 0;
    justify-content: space-around;
}
.nav-style-curtain .nav-item {
    flex: 1;
    width: auto;
    height: 64px;
}
.nav-style-curtain .nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 64px;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(180deg,
                color-mix(in srgb, var(--nav-active-color, #4ade80) 42%, transparent),
                transparent 78%);
}
.nav-style-curtain .nav-item.active .nav-icon {
    color: var(--nav-active-color, #4ade80);
}


/* ── 13. Штамп · nav-style-stamp ───────────────────────────────────
   Квадрат с лёгким наклоном, будто печать поставили. Иконка внутри
   развёрнута обратно на те же градусы, поэтому сама не косит. */
.nav-style-stamp .nav-bg {
    border-radius: 24px;
    background: var(--nav-bg-color, rgba(20, 20, 30, 0.96));
}
.nav-style-stamp .nav-item.active .nav-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--nav-active-color, #4ade80);
    transform: rotate(-7deg);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--nav-active-color, #4ade80) 40%, transparent);
}
.nav-style-stamp .nav-item.active .nav-icon {
    color: var(--nav-on-active, #ffffff);
    transform: rotate(7deg);
}


/* ── 14. Тумблер · nav-style-switch ────────────────────────────────
   Активная разворачивается в вытянутую пилюлю с точкой справа.
   Расстояние между кнопками уменьшено намеренно: у пилюли ширина
   76px вместо 50, и на экране 360px четыре кнопки при стандартном
   промежутке 40px уже не помещались бы. */
.bottom-nav.nav-style-switch {
    height: 60px;
}
.nav-style-switch .nav-bg {
    height: 60px;
    border-radius: 30px;
    background: var(--nav-bg-color, rgba(20, 20, 30, 0.96));
}
.nav-style-switch .nav-items {
    top: auto;
    bottom: 0;
    height: 60px;
    gap: 14px;
}
.nav-style-switch .nav-item.active {
    width: 76px;
}
.nav-style-switch .nav-item.active .nav-icon-wrap {
    width: 76px;
    height: 40px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--nav-active-color, #4ade80) 22%, transparent);
    justify-content: flex-start;
    padding-left: 9px;
}
.nav-style-switch .nav-item.active .nav-icon {
    color: var(--nav-active-color, #4ade80);
}
.nav-style-switch .nav-item.active .nav-icon-wrap::after {
    content: '';
    position: absolute;
    right: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nav-active-color, #4ade80);
}


/* ── 15. Ступень · nav-style-step ──────────────────────────────────
   Под активной поднимается ступенька из цвета магазина. Панель ниже
   обычной, каталога видно больше. */
.bottom-nav.nav-style-step {
    height: 64px;
}
.nav-style-step .nav-bg {
    height: 56px;
    border-radius: 18px;
    background: var(--nav-bg-color, rgba(20, 20, 30, 0.96));
}
.nav-style-step .nav-items {
    top: auto;
    bottom: 0;
    height: 56px;
    gap: 0;
    justify-content: space-around;
}
.nav-style-step .nav-item {
    flex: 1;
    width: auto;
    height: 56px;
}
.nav-style-step .nav-item.active {
    transform: translateY(-6px);
}
.nav-style-step .nav-item.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    top: -10px;
    border-radius: 14px 14px 0 0;
    background: var(--nav-active-color, #4ade80);
}
.nav-style-step .nav-item.active .nav-icon {
    color: var(--nav-on-active, #ffffff);
}


/* ── 16. Иней · nav-style-rime ─────────────────────────────────────
   Матовое стекло с холодной рамкой, активная подсвечена изнутри.
   Рассчитан на тёмные витрины с крупными фото. */
.nav-style-rime .nav-bg {
    background: var(--nav-bg-color, rgba(255, 255, 255, 0.07));
    backdrop-filter: blur(26px) saturate(170%);
    -webkit-backdrop-filter: blur(26px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.nav-style-rime .nav-item.active .nav-icon-wrap {
    background: color-mix(in srgb, var(--nav-active-color, #4ade80) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--nav-active-color, #4ade80) 45%, transparent);
    box-shadow: inset 0 0 14px color-mix(in srgb, var(--nav-active-color, #4ade80) 30%, transparent);
}
.nav-style-rime .nav-item.active .nav-icon {
    color: var(--nav-active-color, #4ade80);
}


/* ── 17. Купол · nav-style-dome ────────────────────────────────────
   Над активной полукруг, выступающий за верхний край панели. Самый
   заметный указатель из десяти. */
.bottom-nav.nav-style-dome {
    height: 62px;
}
.nav-style-dome .nav-bg {
    height: 62px;
    border-radius: 22px;
    background: var(--nav-bg-color, rgba(20, 20, 30, 0.96));
}
.nav-style-dome .nav-items {
    top: auto;
    bottom: 0;
    height: 62px;
    gap: 0;
    justify-content: space-around;
}
.nav-style-dome .nav-item {
    flex: 1;
    width: auto;
    height: 62px;
}
.nav-style-dome .nav-item.active {
    transform: translateY(-9px);
}
.nav-style-dome .nav-item.active::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 28px;
    border-radius: 28px 28px 0 0;
    background: var(--nav-active-color, #4ade80);
}
.nav-style-dome .nav-item.active .nav-icon {
    color: var(--nav-on-active, #ffffff);
}


/* ── 18. Скоба · nav-style-bracket ─────────────────────────────────
   Активную обрамляют две тонкие уголковые скобки. Ничего не
   заливается, иконка остаётся чистой. */
.nav-style-bracket .nav-bg {
    border-radius: 26px;
    background: var(--nav-bg-color, rgba(20, 20, 30, 0.96));
}
.nav-style-bracket .nav-item.active .nav-icon {
    color: var(--nav-active-color, #4ade80);
}
.nav-style-bracket .nav-item.active .nav-icon-wrap::before,
.nav-style-bracket .nav-item.active .nav-icon-wrap::after {
    content: '';
    position: absolute;
    width: 11px;
    height: 11px;
    border: 2px solid var(--nav-active-color, #4ade80);
}
.nav-style-bracket .nav-item.active .nav-icon-wrap::before {
    top: 4px;
    left: 4px;
    border-right: 0;
    border-bottom: 0;
    border-radius: 4px 0 0 0;
}
.nav-style-bracket .nav-item.active .nav-icon-wrap::after {
    bottom: 4px;
    right: 4px;
    border-left: 0;
    border-top: 0;
    border-radius: 0 0 4px 0;
}


/* ── 19. Пульс · nav-style-pulse ───────────────────────────────────
   Круг цвета магазина, вокруг тихо расходится волна. Хорошо тянет
   взгляд к корзине. Волна идёт на псевдоэлементе внутри кнопки, на
   бейдж корзины не влияет. */
.nav-style-pulse .nav-bg {
    border-radius: 35px;
    background: var(--nav-bg-color, rgba(20, 20, 30, 0.96));
}
.nav-style-pulse .nav-item.active .nav-icon-wrap {
    background: var(--nav-active-color, #4ade80);
}
.nav-style-pulse .nav-item.active .nav-icon {
    color: var(--nav-on-active, #ffffff);
}
.nav-style-pulse .nav-item.active .nav-icon-wrap::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--nav-active-color, #4ade80);
    opacity: 0;
    animation: nkgNavPulse 2.4s ease-out infinite;
    pointer-events: none;
}
@keyframes nkgNavPulse {
    0%   { transform: scale(0.82); opacity: 0.55; }
    70%  { transform: scale(1.18); opacity: 0; }
    100% { opacity: 0; }
}


/* ── 20. Вырез · nav-style-cutout ──────────────────────────────────
   Активная как будто вдавлена в панель, глубокая внутренняя тень.
   Самый сдержанный из двадцати. */
.nav-style-cutout .nav-bg {
    border-radius: 35px;
    background: var(--nav-bg-color, rgba(20, 20, 30, 0.96));
}
.nav-style-cutout .nav-item.active .nav-icon-wrap {
    background: rgba(0, 0, 0, 0.34);
    box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.55), inset 0 -1px 0 rgba(255, 255, 255, 0.10);
}
.nav-style-cutout .nav-item.active .nav-icon {
    color: var(--nav-active-color, #4ade80);
}


/* ── Светлая тема для второй десятки ───────────────────────────────
   Панель светлеет, тени мягче, вдавленный круг Выреза перестаёт быть
   чёрной дырой. Активный цвет не трогаем, он всегда из настроек. */
.light-theme .nav-style-wave .nav-bg,
.light-theme .nav-style-curtain .nav-bg,
.light-theme .nav-style-stamp .nav-bg,
.light-theme .nav-style-switch .nav-bg,
.light-theme .nav-style-step .nav-bg,
.light-theme .nav-style-dome .nav-bg,
.light-theme .nav-style-bracket .nav-bg,
.light-theme .nav-style-pulse .nav-bg,
.light-theme .nav-style-cutout .nav-bg {
    background: var(--nav-bg-color, rgba(255, 255, 255, 0.96));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.light-theme .nav-style-rime .nav-bg {
    background: var(--nav-bg-color, rgba(255, 255, 255, 0.55));
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.light-theme .nav-style-cutout .nav-item.active .nav-icon-wrap {
    background: rgba(0, 0, 0, 0.07);
    box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.16), inset 0 -1px 0 rgba(255, 255, 255, 0.7);
}

/* Пульс не должен биться, если человек выключил анимации в системе. */
@media (prefers-reduced-motion: reduce) {
    .nav-style-pulse .nav-item.active .nav-icon-wrap::after {
        animation: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   NKG · 1 сентября 2026 · АВТОКОНТРАСТ ИКОНКИ НА ЗАЛИТОЙ КНОПКЕ

   Шесть стилей из старой десятки заливают активную кнопку цветом
   магазина, а цвет иконки поверх заливки у них зашит: где-то #000,
   где-то #fff, где-то он берётся из «Иконки», то есть из цвета
   НЕактивных иконок. Пока активным цветом был салатовый по умолчанию,
   это работало. Стоит магазину выбрать светлую сирень или наоборот
   тёмный цвет, и иконка сливается с заливкой: кружок есть, иконки в
   нём не видно.

   Переводим все шесть на --nav-on-active. Эту переменную считает
   script.js от выбранного активного цвета по его яркости: на светлой
   заливке иконка становится тёмной, на тёмной белой. Магазину ничего
   настраивать не нужно, лишней пипетки в админке не появляется.

   Запасное значение #000 оставлено на случай, если на витрине ещё
   лежит старый script.js без расчёта переменной: тогда всё выглядит
   ровно как до правки.
   ═══════════════════════════════════════════════════════════════════ */

.nav-style-float .nav-item.active .nav-icon,
.nav-style-glass .nav-item.active .nav-icon,
.nav-style-dock .nav-item.active .nav-icon,
.nav-style-bubble .nav-item.active .nav-icon,
.nav-style-pill .nav-item.active .nav-icon,
.nav-style-frosted .nav-item.active .nav-icon {
    color: var(--nav-on-active, #000000);
}

.nav-style-pill .nav-item.active .nav-label {
    color: var(--nav-on-active, #000000);
}

/* ═══ ПОИСК ПО КАТАЛОГУ ═══
   Нейтральные цвета через полупрозрачный серый: поле одинаково читается
   и в светлой, и в тёмной теме витрины, ни один фирменный цвет магазина
   не переопределяем. */
.nkg-search{
    margin: 0 0 12px;
    padding: 0 16px;
}
.nkg-search-field{
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border: 1px solid rgba(128,128,128,.28);
    border-radius: 14px;
    background: rgba(128,128,128,.07);
    transition: border-color .15s ease, background .15s ease;
}
.nkg-search-field:focus-within{
    border-color: rgba(128,128,128,.55);
    background: rgba(128,128,128,.03);
}
.nkg-search-ico{
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    opacity: .5;
}
.nkg-search-field input{
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 15px;
    /* цвет ставится скриптом по цвету названия товара; здесь только
       запасной вариант на случай, если скрипт не успел */
    color: var(--text-color, #1a1a1a);
    -webkit-text-fill-color: currentColor;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}
.nkg-search-field input::-webkit-search-cancel-button{ display: none; }
.nkg-search-field input::placeholder{ opacity: .55; }
.nkg-search-clear{
    display: none;
    border: none;
    background: transparent;
    color: inherit;
    opacity: .45;
    font-size: 15px;
    line-height: 1;
    padding: 4px;
    cursor: pointer;
}
.nkg-search.has-q .nkg-search-clear{ display: block; }
.nkg-search-hint{
    font-size: 12.5px;
    opacity: .6;
    padding: 8px 2px 0;
    min-height: 0;
}
.nkg-search-hint:empty{ display: none; }
/* ===== NKG_CATALOG_SEARCH css end ===== */

#loadingMainEmoji.no-animation, #loadingMainEmoji.no-animation .loading-logo-img { animation: none !important; }
#loadingMainEmoji.has-logo, #loadingMainEmoji.has-logo .loading-logo-img { filter: none !important; text-shadow: none !important; }

/* ===== КРУЖКИ ЦВЕТОВ НА ФОТО В КАТАЛОГЕ ===== */
/* Кружки цветов и точки листания фото лежали друг на друге в левом нижнем
   углу. Палец попадал в точки вместо цвета: вместо смены цвета листалось
   фото. Плюс выбранный кружок (он увеличен) обрезался краем фото слева.
   Теперь кружки стоят чуть выше точек и с отступом от края. */
.product-card .card-image-container .product-variants {
    left: 10px;
    bottom: 10px;
    gap: 7px;
    z-index: 11;
}
.product-card .card-image-container:has(.card-slider-dots) .product-variants {
    bottom: 30px;
}

/* ══════════════════════════════════════════════════════════════════
   ПЕРСОНАЛЬНАЯ ЦЕНА НА ТОВАР (7 октября 2026)
   Карточка в золотой рамке, под фото, над названием, плашка «Ваша
   персональная цена» с датой, цена золотом. Плашка не лежит на фото:
   там кружки выбора цвета. Работает в светлой и тёмной теме.
   ══════════════════════════════════════════════════════════════════ */
.product-card.nkg-offer-card {
    border-color: transparent !important;
    box-shadow: 0 0 0 2px #c9a24d, 0 12px 30px rgba(201, 162, 77, 0.28) !important;
}
.nkg-offer-ribbon {
    position: static;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(18, 16, 12, 0.82);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    pointer-events: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.nkg-offer-size { font-size: 0.7em; opacity: 0.75; font-weight: 600; }
.nkg-offer-star { color: #e7c873; font-size: 12px; flex: none; }
.nkg-offer-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nkg-offer-till { flex: none; color: #e7c873; font-weight: 600; }
.product-price.nkg-offer-price { color: #b8862b !important; }
body.dark-theme .product-price.nkg-offer-price,
html.dark-theme .product-price.nkg-offer-price { color: #e7c873 !important; }
.nkg-offer-chip {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #c9a24d, #e7c873);
    color: #1a1406;
    font-size: 0.5em;
    font-weight: 800;
    letter-spacing: 0.02em;
    vertical-align: middle;
    white-space: nowrap;
}
@media (max-width: 380px) {
    .nkg-offer-ribbon { font-size: 9.5px; padding: 6px 8px; }
}

/* ===== NKG_CHECKOUT_V2 start (9 октября 2026) =====
   Оформление по шагам. Всё под #checkoutModal, чтобы старые стили витрины
   (тёмные карточки оплаты, неоновые галочки) сюда не протекали. Цвет
   акцента: --nkco-acc, его подставляет script.js из дизайна магазина. */
#checkoutModal.nkco-modal{--nkco-acc:#e11d74;--nkco-ink:#111318;--nkco-muted:#7a808a;--nkco-faint:#b4b9c1;--nkco-soft:#f2f3f5;
  --nkco-field:#f5f6f8;--nkco-line:#eef0f3;--nkco-fline:#e7e9ed;--nkco-fline2:#c5cad2;--nkco-ok:#16a34a;--nkco-oksoft:#ecfdf3;
  --nkco-warn:#d97706;--nkco-warnsoft:#fff7ec;--nkco-warnline:#fde0b5;--nkco-bad:#dc2626;--nkco-badsoft:#fef2f2;
  display:none;position:fixed;inset:0;z-index:99999999!important;background:rgba(10,10,14,.55);justify-content:center;align-items:stretch;
  font-family:"Poppins",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--nkco-ink);-webkit-font-smoothing:antialiased}
#checkoutModal.nkco-modal.active{display:flex}
#checkoutModal .nkco-sheet{position:relative;display:flex;flex-direction:column;width:100%;max-width:560px;height:100%;background:#fff;overflow:hidden}
@media(min-width:620px){#checkoutModal .nkco-sheet{height:calc(100% - 32px);margin:16px 0;border-radius:28px;box-shadow:0 30px 80px rgba(0,0,0,.3)}}
#checkoutModal *{box-sizing:border-box}
#checkoutModal button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;transform:none}
#checkoutModal input,#checkoutModal textarea,#checkoutModal select{font:inherit;color:var(--nkco-ink)}
#checkoutModal .nkco-hidden{display:none!important}
/* шапка и прогресс */
#checkoutModal .nkco-top{display:flex;align-items:center;gap:10px;padding:calc(12px + env(safe-area-inset-top)) 16px 8px;background:#fff;flex:none}
#checkoutModal .nkco-top-t{flex:1;text-align:center;min-width:0}
#checkoutModal .nkco-h1{font-weight:700;font-size:18px;letter-spacing:-.02em;line-height:1.2}
#checkoutModal .nkco-sub{font-size:12px;color:var(--nkco-muted);margin-top:1px}
#checkoutModal .nkco-icb{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--nkco-soft);flex:none}
#checkoutModal .nkco-prog{padding:2px 18px 12px;flex:none;background:#fff}
#checkoutModal .nkco-prog-row{display:flex;justify-content:space-between;font-size:12px;font-weight:600;color:var(--nkco-faint)}
#checkoutModal .nkco-prog-row span.on{color:var(--nkco-ink)}
#checkoutModal .nkco-prog-bar{height:4px;border-radius:4px;background:var(--nkco-line);margin-top:8px;overflow:hidden}
#checkoutModal .nkco-prog-bar i{display:block;height:100%;width:33%;background:linear-gradient(90deg,var(--nkco-ink),var(--nkco-acc));border-radius:4px;transition:width .35s}
#checkoutModal .nkco-scroll{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:0 16px 24px;background:#fff!important}
#checkoutModal form{margin:0;padding:0}
#checkoutModal .nkco-step{display:none}#checkoutModal .nkco-step.on{display:block;animation:nkcoIn .25s ease}
@keyframes nkcoIn{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:none}}
#checkoutModal .nkco-blk{padding:18px 0;border-bottom:1px solid var(--nkco-line)}
#checkoutModal .nkco-step .nkco-blk:last-child{border-bottom:0}
#checkoutModal .nkco-sh{display:flex;align-items:center;gap:9px;font-weight:700;font-size:18px;margin:0 0 14px;letter-spacing:-.01em;color:var(--nkco-ink)}
#checkoutModal .nkco-ico{font-size:18px;line-height:1;flex:none}
#checkoutModal .nkco-cnt{margin-left:auto;font-style:normal;font-size:11.5px;font-weight:700;color:var(--nkco-acc);background:color-mix(in srgb,var(--nkco-acc) 10%,#fff);padding:4px 9px;border-radius:99px}
#checkoutModal .nkco-sub2{font-size:13px;color:var(--nkco-muted);margin:-8px 0 12px}
/* поля */
#checkoutModal .nkco-g2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#checkoutModal .nkco-g3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:10px}
@media(max-width:360px){#checkoutModal .nkco-g2{grid-template-columns:1fr}}
#checkoutModal .nkco-fld{display:block;background:var(--nkco-field);border:1px solid var(--nkco-fline);border-radius:14px;padding:9px 13px 10px;margin:10px 0 0;transition:border-color .15s,background .15s;cursor:text}
#checkoutModal .nkco-g2 .nkco-fld,#checkoutModal .nkco-g3 .nkco-fld{margin-top:0}
#checkoutModal .nkco-fld:focus-within{border-color:var(--nkco-ink);background:#fff}
#checkoutModal .nkco-fld.err{border-color:var(--nkco-bad);background:var(--nkco-badsoft);animation:nkcoShake .4s}
@keyframes nkcoShake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
#checkoutModal .nkco-fl{display:block;font-size:11.5px;color:var(--nkco-muted)!important;font-weight:600;text-transform:none!important;letter-spacing:0!important;margin:0}
#checkoutModal .nkco-fl-out{margin:16px 0 8px}
#checkoutModal .nkco-fld input{display:block;width:100%;border:0!important;background:none!important;outline:0;font-size:16px;margin:2px 0 0;padding:0!important;font-weight:500;box-shadow:none!important;min-height:0;height:auto;border-radius:0}
#checkoutModal .nkco-fld input[type=date]{min-height:24px}
#checkoutModal input::placeholder,#checkoutModal textarea::placeholder{color:var(--nkco-faint);opacity:1}
#checkoutModal .nkco-note{display:flex;gap:6px;align-items:flex-start;font-size:12.5px;color:var(--nkco-muted);margin-top:8px;line-height:1.45}
#checkoutModal .nkco-note.ok{color:var(--nkco-ok)}#checkoutModal .nkco-note.warn{color:var(--nkco-warn)}
#checkoutModal #deliverySlotHint{display:none!important}
/* корзина в одну строку */
#checkoutModal .nkco-cart{display:flex;align-items:center;gap:12px;background:#f7f8fa;border-radius:16px;padding:12px 14px;margin-top:6px}
#checkoutModal .nkco-thumbs{display:flex;flex:none}
#checkoutModal .nkco-thumbs img,#checkoutModal .nkco-thumbs i{width:42px;height:42px;border-radius:12px;object-fit:cover;border:2px solid #f7f8fa;background:#fff;display:grid;place-items:center;font-style:normal;font-size:20px}
#checkoutModal .nkco-thumbs>*+*{margin-left:-12px}
#checkoutModal .nkco-cart-t{flex:1;min-width:0}
#checkoutModal .nkco-cart-t b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#checkoutModal .nkco-cart-t span{font-size:12.5px;color:var(--nkco-muted)}
#checkoutModal .nkco-link{color:var(--nkco-ink);font-weight:700;font-size:13.5px;text-decoration:underline;text-underline-offset:3px;padding:4px}
#checkoutModal .nkco-link.sm{font-size:12px;color:var(--nkco-muted);padding:4px 0 0}
/* переключатели */
#checkoutModal .nkco-seg{display:flex;padding:4px;background:var(--nkco-soft);border-radius:14px;gap:4px}
#checkoutModal .nkco-seg button{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;padding:11px 8px;border-radius:11px;font-weight:600;font-size:14px;color:var(--nkco-muted);transition:all .18s}
#checkoutModal .nkco-seg button.on{background:var(--nkco-ink);color:#fff}
#checkoutModal .nkco-rcp{margin-top:12px;padding:14px;border-radius:16px;background:var(--nkco-warnsoft);border:1px solid var(--nkco-warnline)}
#checkoutModal .nkco-rcp .nkco-fld{background:#fff;margin-top:0}#checkoutModal .nkco-rcp .nkco-fld+.nkco-fld{margin-top:10px}
#checkoutModal .nkco-chk{display:flex;gap:11px;align-items:flex-start;margin-top:12px;cursor:pointer;font-size:14px;line-height:1.4;text-transform:none!important;letter-spacing:0!important;color:var(--nkco-ink)!important;font-weight:400}
#checkoutModal .nkco-chk *{text-transform:none!important;letter-spacing:0!important}
#checkoutModal .nkco-chk input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
#checkoutModal .nkco-chk i{display:block;flex:none;width:22px;height:22px;border-radius:7px;border:1.8px solid var(--nkco-fline2);background:#fff;margin-top:1px;position:relative;transition:all .15s}
#checkoutModal .nkco-chk input:checked+i{background:var(--nkco-acc);border-color:var(--nkco-acc)}
#checkoutModal .nkco-chk input:checked+i::after{content:"";position:absolute;left:6px;top:2px;width:6px;height:11px;border:solid #fff;border-width:0 2.4px 2.4px 0;transform:rotate(45deg)}
#checkoutModal .nkco-chk b{display:block;font-size:14.5px;font-weight:700;color:var(--nkco-ink)}#checkoutModal .nkco-chk em{display:block;font-style:normal;font-size:12.5px;color:var(--nkco-muted);margin-top:1px}
/* чипы */
#checkoutModal .nkco-chips{display:flex;flex-wrap:wrap;gap:8px}
#checkoutModal .nkco-chip{display:flex;align-items:center;gap:6px;padding:10px 13px;border-radius:12px;background:var(--nkco-field);border:1px solid var(--nkco-field);font-weight:600;font-size:13.5px;transition:all .15s;text-align:left;color:var(--nkco-ink)}
#checkoutModal .nkco-chip em{font-style:normal;font-weight:500;color:var(--nkco-muted);font-size:11.5px}
#checkoutModal .nkco-chip.sm{padding:8px 11px;font-size:13px}
#checkoutModal .nkco-chip.on{background:var(--nkco-ink);border-color:var(--nkco-ink);color:#fff}
#checkoutModal .nkco-chip.on em{color:#fff;opacity:.75}
#checkoutModal .nkco-chip:disabled{opacity:.4;cursor:default}
#checkoutModal .nkco-own{max-width:260px}
/* зоны и самовывоз */
#checkoutModal .nkco-zones{display:flex;flex-direction:column;gap:8px}
#checkoutModal .nkco-zones .nkco-fl-out{margin-bottom:0}
#checkoutModal .nkco-zn{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;border:1px solid var(--nkco-fline);background:var(--nkco-field);text-align:left;transition:all .15s;width:100%}
#checkoutModal .nkco-zn div{flex:1;min-width:0}
#checkoutModal .nkco-zn b{display:block;font-size:14.5px}#checkoutModal .nkco-zn span{font-size:12px;color:var(--nkco-muted)}
#checkoutModal .nkco-zp{flex:none;font-weight:700;font-size:14px;color:var(--nkco-ink)!important}#checkoutModal .nkco-zp.free{color:var(--nkco-ok)!important}
#checkoutModal .nkco-zn.on{border-color:var(--nkco-ink);background:#fff;box-shadow:0 0 0 1px var(--nkco-ink)}
#checkoutModal .nkco-rd{flex:none;width:20px;height:20px;border-radius:50%;border:1.8px solid var(--nkco-fline2);background:#fff;transition:all .15s;display:block}
#checkoutModal .nkco-zn.on .nkco-rd,#checkoutModal .payment-option input:checked+.nkco-pc .nkco-rd{border:6px solid var(--nkco-acc)}
#checkoutModal .nkco-pick{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:14px;background:var(--nkco-field);border:1px solid var(--nkco-fline);margin-top:12px}
#checkoutModal .nkco-pick b{display:block}#checkoutModal .nkco-pick span{font-size:13px;color:var(--nkco-muted)}
#checkoutModal .nkco-banner{display:flex;gap:10px;padding:12px 14px;border-radius:14px;background:var(--nkco-warnsoft);border:1px solid var(--nkco-warnline);font-size:13px;margin-bottom:14px;line-height:1.45}
/* сводка */
#checkoutModal .nkco-recap{background:var(--nkco-field);border-radius:16px;padding:12px 14px;margin-top:6px}
#checkoutModal .nkco-srow{display:flex;justify-content:space-between;gap:12px;padding:4px 0;font-size:13px;color:var(--nkco-muted)}
#checkoutModal .nkco-srow b{color:var(--nkco-ink);font-weight:600;text-align:right}
#checkoutModal .nkco-srow.acc b{color:var(--nkco-acc)}
/* промокоды */
#checkoutModal .nkco-promos{display:flex;flex-direction:column;gap:10px}
#checkoutModal .nkco-tk{position:relative;display:flex;align-items:center;gap:12px;padding:12px 12px 12px 0;border-radius:16px;background:#f7f8fa;border:1px solid var(--nkco-fline);transition:all .18s}
#checkoutModal .nkco-tk-l{flex:none;width:92px;align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:center;border-right:1.5px dashed #cfd3da;text-align:center;padding:0 6px}
#checkoutModal .nkco-tk-v{font-weight:800;font-size:17px;color:var(--nkco-acc);letter-spacing:-.02em;line-height:1.1}
#checkoutModal .nkco-tk-c{font-family:ui-monospace,Menlo,monospace;font-size:10.5px;color:var(--nkco-muted);margin-top:3px;letter-spacing:.05em;word-break:break-all}
#checkoutModal .nkco-tk-m{flex:1;min-width:0}
#checkoutModal .nkco-tk-m b{display:block;font-size:13.5px;line-height:1.3}
#checkoutModal .nkco-tk-m span{display:block;font-size:12px;color:var(--nkco-muted);margin-top:2px}
#checkoutModal .nkco-need{color:var(--nkco-warn)!important;font-weight:600}
#checkoutModal .nkco-tk-b{flex:none;padding:9px 12px;border-radius:11px;background:var(--nkco-ink);color:#fff!important;font-weight:700;font-size:12.5px}
#checkoutModal .nkco-tk.on{border-color:var(--nkco-acc);background:color-mix(in srgb,var(--nkco-acc) 7%,#fff)}
#checkoutModal .nkco-tk.on .nkco-tk-b{background:var(--nkco-acc)}
#checkoutModal .nkco-tk.off{opacity:.55}#checkoutModal .nkco-tk.off .nkco-tk-b{opacity:.45;cursor:default}
#checkoutModal .nkco-tk::before,#checkoutModal .nkco-tk::after{content:"";position:absolute;left:85px;width:14px;height:14px;border-radius:50%;background:#fff;border:1px solid var(--nkco-fline)}
#checkoutModal .nkco-tk::before{top:-8px}#checkoutModal .nkco-tk::after{bottom:-8px}
#checkoutModal .nkco-manual{margin-top:12px;font-size:13.5px}
#checkoutModal .nkco-manual summary{color:var(--nkco-acc);font-weight:600;cursor:pointer;list-style:none}
#checkoutModal .nkco-manual summary::-webkit-details-marker{display:none}
#checkoutModal .nkco-row-in{display:flex!important;gap:8px;margin:10px 0 0!important;padding:0!important;background:none!important;border:0!important}
#checkoutModal .nkco-row-in input{flex:1;min-width:0;padding:12px 14px!important;border-radius:14px!important;border:1px solid var(--nkco-fline)!important;background:var(--nkco-field)!important;outline:0;text-transform:uppercase;font-size:15px!important;color:var(--nkco-ink)!important;height:auto!important}
#checkoutModal .nkco-row-in .apply-promo-btn{padding:0 16px!important;border-radius:14px!important;background:var(--nkco-soft)!important;color:var(--nkco-ink)!important;font-weight:700!important;font-size:14px!important;border:0!important;box-shadow:none!important;width:auto!important;height:auto!important}
#checkoutModal .promo-result{margin-top:10px;padding:10px 12px;border-radius:12px;font-size:13px;font-weight:600;border:0;background:var(--nkco-field);color:var(--nkco-ink)}
#checkoutModal .promo-result.success{display:none!important}
#checkoutModal .promo-result.error{background:var(--nkco-badsoft);color:var(--nkco-bad)}
/* бонусы */
#checkoutModal .bonus-notice{margin-top:12px!important;padding:10px 12px!important;border-radius:12px!important;font-size:12.5px!important;line-height:1.45!important;background:var(--nkco-field)!important;border:0!important;color:var(--nkco-muted)!important}
#checkoutModal .nkco-bonus{display:flex!important;gap:11px;align-items:center;margin-top:14px;padding:12px 14px;border-radius:14px;background:var(--nkco-field);font-size:13px}
#checkoutModal .nkco-bonus[style*="display:none"],#checkoutModal .nkco-bonus[style*="display: none"]{display:none!important}
#checkoutModal .nkco-bonus-t{flex:1;min-width:0}
#checkoutModal .nkco-bonus-t b{display:block;font-size:14px;color:var(--nkco-ink)}
#checkoutModal .nkco-bonus-t b span{color:var(--nkco-ink)!important;font:inherit!important}
#checkoutModal .nkco-bonus-t>span{color:var(--nkco-muted)}
#checkoutModal .nkco-btn-s{padding:9px 14px;border-radius:11px;background:var(--nkco-ink);color:#fff!important;font-weight:700;font-size:13px}
#checkoutModal .nkco-tgl .toggle-slider{width:46px;height:28px;border-radius:99px;background:var(--nkco-fline2)}
#checkoutModal .nkco-tgl .toggle-slider::after{width:22px;height:22px;top:3px;left:3px;box-shadow:0 1px 3px rgba(0,0,0,.2)}
#checkoutModal .nkco-tgl input:checked+.toggle-slider{background:var(--nkco-acc)}
#checkoutModal .nkco-tgl input:checked+.toggle-slider::after{left:21px}
#checkoutModal .nkco-line{margin-top:10px;font-size:13px;color:var(--nkco-muted);background:none!important;border:0!important;padding:0!important}
#checkoutModal .nkco-line.ok{color:var(--nkco-ok)}
#checkoutModal .nkco-line b{color:inherit}
#checkoutModal .nkco-pct{display:inline-block;margin-left:4px;padding:1px 7px;border-radius:99px;background:var(--nkco-oksoft);font-weight:700;font-size:11.5px}
/* оплата: прежние радио, новый вид */
#checkoutModal .nkco-pays{display:flex!important;flex-direction:column;gap:8px;grid-template-columns:none!important}
#checkoutModal .payment-option{width:100%;margin:0;display:block}
#checkoutModal .payment-option[style*="none"]{display:none!important}
#checkoutModal .payment-option input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
#checkoutModal .nkco-pc{display:flex;flex-direction:row;align-items:flex-start;gap:12px;text-align:left;padding:13px 14px;min-height:0;border-radius:14px;border:1px solid var(--nkco-fline);background:var(--nkco-field);box-shadow:none;transform:none;cursor:pointer;transition:all .15s;overflow:visible}
#checkoutModal .nkco-pc::before{display:none}
#checkoutModal .nkco-pc:hover{transform:none;box-shadow:none;border-color:var(--nkco-fline2)}
#checkoutModal .payment-option input:checked+.nkco-pc{border-color:var(--nkco-ink);background:#fff;box-shadow:0 0 0 1px var(--nkco-ink)}
#checkoutModal .nkco-pb{flex:1;min-width:0;display:block}
#checkoutModal .nkco-pt{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-family:inherit;font-size:14.5px;font-weight:700;color:var(--nkco-ink);text-transform:none;letter-spacing:0;text-align:left}
#checkoutModal .nkco-pd{display:block;font-size:12.5px;color:var(--nkco-muted);margin-top:2px;line-height:1.4;font-weight:400}
#checkoutModal .nkco-tag{font-style:normal;font-size:11px;font-weight:700;color:var(--nkco-acc);background:color-mix(in srgb,var(--nkco-acc) 10%,#fff);padding:2px 7px;border-radius:99px}
#checkoutModal .payment-amount{flex:none;text-align:right;font-weight:700;font-size:13.5px;color:var(--nkco-ink);line-height:1.2}
#checkoutModal .payment-amount small{display:block;font-size:10.5px;font-weight:500;color:var(--nkco-muted)}
#checkoutModal .pay-note{margin-top:10px}
/* комментарий */
#checkoutModal textarea{display:block;width:100%;margin-top:10px;padding:12px 14px;border-radius:14px;border:1px solid var(--nkco-fline);background:var(--nkco-field);outline:0;resize:none;font-size:15px;min-height:64px;box-shadow:none}
#checkoutModal textarea:focus{border-color:var(--nkco-ink);background:#fff}
/* итоги и согласие */
#checkoutModal .checkout-summary{background:none;border:0;padding:18px 0 4px;margin:0}
#checkoutModal .summary-row{display:flex;justify-content:space-between;gap:10px;padding:5px 0;font-size:14px;color:var(--nkco-muted);border:0;background:none;margin:0}
#checkoutModal .summary-row span:last-child{color:var(--nkco-ink);font-weight:600;text-align:right}
#checkoutModal .summary-row.nkco-disc span:last-child{color:var(--nkco-ok)}
#checkoutModal .summary-row.total{border-top:1px solid var(--nkco-line);margin-top:6px;padding-top:12px}
#checkoutModal .summary-row.total span:first-child{color:var(--nkco-ink);font-weight:700;font-size:16px}
#checkoutModal .summary-row.total span:last-child{font-size:22px;font-weight:800;letter-spacing:-.02em}
#checkoutModal .summary-row.prepay-info{background:color-mix(in srgb,var(--nkco-acc) 6%,#fff)!important;border:1px solid color-mix(in srgb,var(--nkco-acc) 25%,#fff)!important;border-radius:12px!important;padding:10px 12px!important;margin-top:8px!important}
#checkoutModal .checkout-items-list{display:none}
#checkoutModal .privacy-consent-box{margin:14px 0 0!important;padding:12px!important;border-radius:14px!important;background:var(--nkco-field)!important;border:1px solid var(--nkco-field)!important;transition:all .2s}
#checkoutModal .privacy-consent-box.error,#checkoutModal .privacy-consent-box.shake{background:var(--nkco-badsoft)!important;border-color:var(--nkco-bad)!important}
#checkoutModal .privacy-consent-label{display:flex;align-items:center;gap:11px}
#checkoutModal .privacy-consent-check{width:22px;height:22px;min-width:22px;border-radius:7px;border:1.8px solid var(--nkco-fline2);background:#fff;margin:0}
#checkoutModal .privacy-consent-label input:checked+.privacy-consent-check{background:var(--nkco-acc)!important;border-color:var(--nkco-acc)!important;box-shadow:none}
#checkoutModal .privacy-consent-label input:checked+.privacy-consent-check::after{top:2px;left:6px;width:6px;height:11px;border-width:0 2.4px 2.4px 0}
#checkoutModal .privacy-consent-text{font-size:14px;color:var(--nkco-ink);line-height:1.4}
#checkoutModal .privacy-consent-link{color:var(--nkco-ink);text-decoration-color:var(--nkco-fline2)}
#checkoutModal .privacy-consent-hint{font-size:12px;color:var(--nkco-bad);margin:6px 0 0 33px}
#checkoutModal .nkco-safe{text-align:center;font-size:12px;color:var(--nkco-faint);padding:14px 0 4px}
/* нижняя панель */
#checkoutModal .nkco-bar{flex:none;display:flex;align-items:center;gap:10px;padding:12px 14px calc(12px + env(safe-area-inset-bottom));background:#fff!important;border-top:1px solid var(--nkco-line)}
#checkoutModal .nkco-bar-t{flex:1;min-width:0}
#checkoutModal .nkco-bar-t span{display:block;font-size:12px;color:var(--nkco-muted)}
#checkoutModal .nkco-bar-t b{display:block;font-size:21px;font-weight:800;letter-spacing:-.02em;white-space:nowrap}
#checkoutModal .nkco-cta,#checkoutModal #submitOrderBtn{width:auto!important;margin:0!important;padding:16px 20px!important;border-radius:16px!important;background:var(--nkco-ink)!important;color:#fff!important;font-weight:700!important;font-size:15px!important;letter-spacing:0!important;text-transform:none!important;box-shadow:0 10px 24px rgba(17,19,24,.18)!important;white-space:nowrap;border:0!important;height:auto!important;opacity:1!important}
#checkoutModal #submitOrderBtn{background:var(--nkco-acc)!important;box-shadow:0 10px 24px color-mix(in srgb,var(--nkco-acc) 35%,transparent)!important}
#checkoutModal .nkco-cta:active,#checkoutModal #submitOrderBtn:active{transform:scale(.97)}
#checkoutModal .nkco-back{padding:16px 14px;border-radius:16px;background:var(--nkco-soft);font-weight:700;font-size:14px}
/* ===== NKG_CHECKOUT_V2 end ===== */

#checkoutModal .nkco-pb,#checkoutModal .nkco-pt,#checkoutModal .nkco-pd,#checkoutModal .nkco-ptx,#checkoutModal .nkco-tag,#checkoutModal .payment-amount{text-transform:none!important;letter-spacing:0!important}
#checkoutModal .nkco-ptx{white-space:nowrap}
#checkoutModal .js-prepay-pct{margin:0!important;padding:0!important}
#checkoutModal .pay-note{margin:12px 0 0!important;padding:11px 14px!important;border-radius:14px!important;background:var(--nkco-soft,#f4f5f7)!important;border:0!important;font-family:inherit!important;font-size:13px!important;line-height:1.45!important;color:var(--nkco-muted,#6b7280)!important;text-transform:none!important;letter-spacing:0!important}
#checkoutModal .pay-note b{color:var(--nkco-ink,#111)!important;font-weight:700!important}

#checkoutModal .nkco-dlnote{display:flex;gap:10px;align-items:flex-start;margin:2px 0 12px;padding:10px 12px;border-radius:12px;background:#fff7ea;border:1px solid #fde3b5;text-align:left;text-transform:none!important;letter-spacing:0!important}
#checkoutModal .nkco-dlnote-i{font-size:16px;line-height:20px;flex:none}
#checkoutModal .nkco-dlnote b{display:block;font-size:13px;font-weight:700;color:var(--nkco-ink,#111);line-height:1.35}
#checkoutModal .nkco-dlnote b+span{display:block;font-size:12.5px;color:var(--nkco-muted,#7a808a);line-height:1.4;margin-top:1px}

/* ===== NKG_CART_NARROW start (10 октября 2026) =====
   Карточка товара в корзине была в одну строку: фото, название, счётчик,
   крестик. На узком Android (360px) счётчик и крестик забирали всё место,
   название и цена ломались по одной-две буквы на строку.
   Теперь в два этажа: сверху фото, название, цена и крестик,
   снизу счётчик. Подарок из сейфа (без счётчика) остаётся в один ряд. */
@media (max-width: 560px) {
    #cartItems .cart-item {
        grid-template-columns: 64px minmax(0, 1fr) auto;
        grid-template-areas:
            "img info rm"
            "img qty  qty";
        column-gap: 12px;
        row-gap: 10px;
        align-items: start;
        padding: 12px;
    }
    #cartItems .cart-item > .cart-item-image,
    #cartItems .cart-item > .cart-item-emoji,
    #cartItems .cart-item > .cart-item-thumb {
        grid-area: img;
        width: 64px;
        height: 64px;
        align-self: start;
    }
    #cartItems .cart-item > .cart-item-info {
        grid-area: info;
        min-width: 0;
        align-self: center;
    }
    #cartItems .cart-item > .cart-quantity {
        grid-area: qty;
        justify-self: start;
    }
    #cartItems .cart-item > .cart-item-remove {
        grid-area: rm;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    #cartItems .cart-item .cart-item-name {
        word-break: normal;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    #cartItems .cart-item .cart-item-price {
        white-space: nowrap;
    }
    #cartItems .cart-item.cart-item-prize {
        grid-template-columns: 64px minmax(0, 1fr) auto;
        grid-template-areas: "img info rm";
    }
}
/* ===== NKG_CART_NARROW end ===== */

/* ===== NKG_LEGAL_FONT: юридические окна одним системным шрифтом =====
   Окна наследовали шрифт магазина. У РОЗАЛИ это Syne, в нём нет кириллицы:
   латиница и цифры шли Syne, русский текст системным, строки выглядели
   рваными. Документ должен читаться ровно, поэтому один шрифт на всё окно. */
#legalModal, #legalModal #legalContent, #legalModal #legalContent *{
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif !important;
  letter-spacing:normal;
}
#legalModal #legalContent h1{letter-spacing:-.2px;}
/* ===== NKG_LEGAL_FONT end ===== */

/* ===== NKG_CARD_BTN_ALIGN start =====
   Кнопки "В корзину" строго на одном уровне во всех карточках ряда.
   Карточка и блок с текстом стали колонками, кнопка прижата к низу.
   Скрытые фильтром карточки (inline display:none и .hidden) не трогаем.
   На телефонах убран залипающий hover, который сдвигал карточку. */
.catalog-grid { align-items: stretch !important; }
.catalog-grid > .product-card:not(.hidden):not([style*="display: none"]):not([style*="display:none"]) {
  display: flex !important;
  flex-direction: column !important;
}
.catalog-grid > .product-card > .card-image-container { flex: 0 0 auto; }
.catalog-grid > .product-card > .product-info {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0;
}
.catalog-grid .product-card .product-info > * { flex-shrink: 0; }
.catalog-grid .product-card .product-info > .product-price { margin-bottom: 12px !important; }
.catalog-grid .product-card .product-info > .add-to-cart-btn { margin-top: auto !important; }
.catalog-grid .product-card .product-info > .stock-line { align-self: flex-start; max-width: 100%; }
@media (hover: none) {
  .product-card:hover:not(:active),
  .card-style-shadow .product-card:hover:not(:active) { transform: none !important; }
}
/* ===== NKG_CARD_BTN_ALIGN end ===== */

/* ═══ NKG_NAV_LABELS: iOS и FROSTED ═══
   В этих двух стилях подписи стояли справа от иконок: пункт меню был
   строкой шириной 50px, и активный кружок у frosted сжимался до овала
   24 на 48. Теперь пункт делит меню поровну, подпись под иконкой,
   кружок не сжимается и всегда круглый. */
.nav-style-ios .nav-item,
.nav-style-frosted .nav-item {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: 60px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}
.nav-style-ios .nav-item .nav-icon-wrap,
.nav-style-frosted .nav-item .nav-icon-wrap {
    flex: 0 0 auto;
}
.nav-style-ios .nav-item .nav-label,
.nav-style-frosted .nav-item .nav-label {
    margin-top: 0 !important;
    font-size: 10px;
    line-height: 1.15;
    white-space: nowrap;
}
.nav-style-frosted .nav-item.active .nav-icon-wrap {
    width: 42px;
    height: 42px;
    min-width: 42px;
    flex: 0 0 42px;
    aspect-ratio: 1 / 1;
    margin-top: -6px;
}

/* ===== NKG_VFX: опции на карточке и подложка под фото (design.variantFx) ===== */
body.nkg-vfx-bg .product-card .card-image-container,
body.nkg-vfx-bg #productModalGallery {
    background-image: var(--nkg-card-img-bg) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
body.nkg-vfx-bg .product-card .card-image-container > img,
body.nkg-vfx-bg #productModalGallery img,
body.nkg-vfx-bg #productModalImages { background: transparent !important; background-color: transparent !important; }
/* КБЖУ в цветах магазина, а не зелёным */
body.nkg-vfx .product-modal-nutrition {
    background: color-mix(in srgb, var(--nkg-chip-line, #ffffff) 7%, transparent);
    border-color: color-mix(in srgb, var(--nkg-chip-line, #ffffff) 28%, transparent);
}
body.nkg-vfx .product-modal-nutrition .nutrition-value { color: var(--nkg-chip-text, #ffffff); }
body.nkg-vfx .product-card .card-image-container { overflow: hidden; }
body.nkg-vfx .product-card .card-image-container .product-variants:has(.type-text) {
    left: 7px; right: 7px; bottom: 7px;
    display: flex; flex-wrap: nowrap; gap: 2px; padding: 3px;
    border-radius: 14px;
    background: var(--nkg-chip-pill, rgba(12, 10, 10, .58));
    -webkit-backdrop-filter: blur(10px) saturate(1.3);
    backdrop-filter: blur(10px) saturate(1.3);
    border: 1px solid color-mix(in srgb, var(--nkg-chip-line, #ffffff) 38%, transparent);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
body.nkg-vfx .product-card .product-variants .variant-btn.type-text {
    flex: 1 1 0; min-width: 0; width: auto;
    height: 27px; padding: 0 3px;
    border: 0; border-radius: 11px;
    background: transparent !important;
    color: var(--nkg-chip-text, #ffffff);
    font-size: 11px; font-weight: 700; letter-spacing: .01em; line-height: 1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    box-shadow: none; transform: none;
    transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
body.nkg-vfx .product-card .product-variants:has(.type-text:nth-child(4)) .variant-btn.type-text { font-size: 9.5px; letter-spacing: -.01em; padding: 0 1px; text-overflow: clip; }
body.nkg-vfx .product-card .product-variants .variant-btn.type-text.active {
    background: var(--nkg-chip-active, var(--btn-bg-color, #be121a)) !important;
    color: var(--nkg-chip-active-text, var(--btn-text-color, #ffffff));
    transform: none;
    box-shadow: 0 2px 12px color-mix(in srgb, var(--nkg-chip-active, var(--btn-bg-color, #be121a)) 60%, transparent), inset 0 0 0 1px rgba(255, 255, 255, .2);
    animation: nkgChipPop .34s cubic-bezier(.2, .9, .3, 1.3);
}
@keyframes nkgChipPop { 0% { transform: scale(.86); } 100% { transform: none; } }
body.nkg-vfx .product-modal-variants .variant-btn.type-text {
    border-radius: 999px; padding: 0 16px; border: 1px solid color-mix(in srgb, var(--nkg-chip-line, #ffffff) 40%, transparent) !important;
    background: transparent !important; color: var(--nkg-chip-text, #ffffff); transition: background-color .25s ease, color .25s ease;
}
body.nkg-vfx .product-modal-variants .variant-btn.type-text.active {
    background: var(--btn-bg-color, #be121a) !important; color: var(--btn-text-color, #ffffff); border-color: transparent !important; transform: none;
}
body.nkg-vfx #shopFooter .footer-legal-links a {
    background: color-mix(in srgb, var(--nkg-chip-line, #ffffff) 6%, transparent) !important;
    border: 1px solid color-mix(in srgb, var(--nkg-chip-line, #ffffff) 32%, transparent) !important;
    color: var(--nkg-chip-text, #ffffff) !important;
}
/* оттенки (кружки цвета) в той же стеклянной панели */
body.nkg-vfx .product-card .card-image-container .product-variants:has(.type-color) {
    left: 8px; right: auto; bottom: 8px; max-width: calc(100% - 16px);
    gap: 7px; padding: 5px 8px; border-radius: 999px; flex-wrap: nowrap;
    background: var(--nkg-chip-pill, rgba(255, 255, 255, .62));
    -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3);
    border: 1px solid color-mix(in srgb, var(--nkg-chip-line, #ffffff) 30%, transparent);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
body.nkg-vfx .product-card .product-variants .variant-btn.type-color {
    width: 19px; height: 19px; flex: 0 0 19px; border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25); transform: none; transition: transform .2s ease, box-shadow .2s ease;
}
body.nkg-vfx .product-card .product-variants .variant-btn.type-color.active {
    transform: scale(1.12);
    box-shadow: 0 0 0 2px var(--btn-bg-color, #333333), 0 2px 8px rgba(0, 0, 0, .25);
}
/* ===== NKG_VFX end ===== */

/* ===== NKG_VSTYLE: стили кнопок вариантов на карточке (design.variantStyle) ===== */
@keyframes nkgVsShine { 0% { background-position: 100% 0; } 100% { background-position: -160% 0; } }
body.nkg-vs .product-card .card-image-container .product-variants:has(.variant-btn) { position: absolute; top: auto; left: 8px; right: 8px; bottom: 8px; transform: none; width: auto; max-width: none; display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: stretch; gap: 3px; padding: 3px; z-index: 11; border-radius: 14px; overflow: visible; background: transparent; border: 0; box-shadow: none; }
body.nkg-vs .product-card .card-image-container .product-variants:has(.type-color) { left: 8px; right: auto; max-width: calc(100% - 16px); gap: 7px; padding: 5px 8px; border-radius: 999px; }
body.nkg-vs .product-card .product-variants .variant-btn.type-text { --vs-acc: var(--nkg-chip-active, var(--btn-bg-color, #333333)); position: relative; flex: 1 1 0; min-width: 0; width: auto; height: 27px; padding: 0 3px; border: 0; border-radius: 11px; background: transparent !important; color: var(--nkg-chip-text, #ffffff); font-size: 11px; font-weight: 700; letter-spacing: .01em; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: none; transform: none; animation: none; display: flex; align-items: center; justify-content: center; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease, border-color .25s ease; }
body.nkg-vs .product-card .product-variants .variant-btn.type-text.active { background: var(--vs-acc) !important; color: var(--nkg-chip-active-text, var(--btn-text-color, #ffffff)); transform: none; }
body.nkg-vs .product-card .product-variants .variant-btn.type-color { position: relative; width: 19px; height: 19px; flex: 0 0 19px; border: 2px solid #ffffff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.25); transform: none; transition: transform .2s ease, box-shadow .2s ease; }
body.nkg-vs .product-card .product-variants .variant-btn.type-color.active { transform: scale(1.12); box-shadow: 0 0 0 2px var(--nkg-chip-active, var(--btn-bg-color, #333333)), 0 2px 8px rgba(0,0,0,.25); }
body.nkg-vs .product-card .product-variants:has(.type-text:nth-child(4)) .variant-btn.type-text { font-size: 9.5px; letter-spacing: -.01em; padding: 0 1px; text-overflow: clip; }
body.nkg-vs.nkg-vs-glass .product-card .card-image-container .product-variants:has(.variant-btn) { background: var(--nkg-chip-pill, rgba(12, 12, 12, .58)); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); border: 1px solid color-mix(in srgb, var(--nkg-chip-line, #ffffff) 35%, transparent); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
body.nkg-vs.nkg-vs-glass .product-card .product-variants .variant-btn.type-text.active { background: var(--vs-acc) !important; box-shadow: 0 2px 12px color-mix(in srgb, var(--vs-acc) 55%, transparent); }
body.nkg-vs.nkg-vs-frost .product-card .card-image-container .product-variants:has(.variant-btn) { background: rgba(255,255,255,.74); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 6px 20px rgba(0,0,0,.14); }
body.nkg-vs.nkg-vs-frost .product-card .product-variants .variant-btn.type-text { color: #2b2b2b; }
body.nkg-vs.nkg-vs-frost .product-card .product-variants .variant-btn.type-text.active { background: var(--vs-acc) !important; color: var(--nkg-chip-active-text, var(--btn-text-color, #ffffff)); }
body.nkg-vs.nkg-vs-frost .product-card .product-variants .variant-btn.type-color.active { transform: scale(1.15); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--nkg-chip-active, var(--btn-bg-color, #333333)); }
body.nkg-vs.nkg-vs-night .product-card .card-image-container .product-variants:has(.variant-btn) { background: rgba(10,10,10,.86); -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
body.nkg-vs.nkg-vs-night .product-card .product-variants .variant-btn.type-text { color: #ffffff; }
body.nkg-vs.nkg-vs-night .product-card .product-variants .variant-btn.type-color.active { transform: scale(1.12); box-shadow: 0 0 0 2px #0a0a0a, 0 0 0 4px #ffffff; }
body.nkg-vs.nkg-vs-pills .product-card .card-image-container .product-variants:has(.variant-btn) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: none; gap: 5px; padding: 0; }
body.nkg-vs.nkg-vs-pills .product-card .product-variants .variant-btn.type-text { background: rgba(255,255,255,.9) !important; color: #222; border-radius: 999px; height: 26px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
body.nkg-vs.nkg-vs-pills .product-card .product-variants .variant-btn.type-text.active { background: var(--vs-acc) !important; color: var(--nkg-chip-active-text, var(--btn-text-color, #ffffff)); }
body.nkg-vs.nkg-vs-pills .product-card .card-image-container .product-variants:has(.type-color) { background: rgba(255,255,255,.9); box-shadow: 0 2px 10px rgba(0,0,0,.18); border: 0; padding: 5px 8px; gap: 7px; }
body.nkg-vs.nkg-vs-pills .product-card .product-variants .variant-btn.type-color { width: 21px; height: 21px; flex-basis: 21px; }
body.nkg-vs.nkg-vs-outline .product-card .card-image-container .product-variants:has(.variant-btn) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: none; gap: 5px; padding: 0; }
body.nkg-vs.nkg-vs-outline .product-card .product-variants .variant-btn.type-text { border: 1.5px solid color-mix(in srgb, var(--nkg-chip-line, #ffffff) 85%, transparent); border-radius: 999px; background: rgba(0,0,0,.22) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--nkg-chip-text, #ffffff); }
body.nkg-vs.nkg-vs-outline .product-card .product-variants .variant-btn.type-text.active { background: var(--vs-acc) !important; border-color: var(--vs-acc); color: var(--nkg-chip-active-text, var(--btn-text-color, #ffffff)); }
body.nkg-vs.nkg-vs-outline .product-card .card-image-container .product-variants:has(.type-color) { background: rgba(0,0,0,.22); border: 1.5px solid color-mix(in srgb, var(--nkg-chip-line, #ffffff) 70%, transparent); box-shadow: none; padding: 5px 8px; gap: 7px; }
body.nkg-vs.nkg-vs-outline .product-card .product-variants .variant-btn.type-color { border-color: transparent; box-shadow: none; }
body.nkg-vs.nkg-vs-outline .product-card .product-variants .variant-btn.type-color.active { transform: none; box-shadow: 0 0 0 2px var(--nkg-chip-line, #ffffff); }
body.nkg-vs.nkg-vs-underline .product-card .card-image-container .product-variants:has(.variant-btn) { left: 0; right: 0; bottom: 0; border-radius: 0; padding: 22px 10px 9px; background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0)); -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: none; }
body.nkg-vs.nkg-vs-underline .product-card .product-variants .variant-btn.type-text { color: rgba(255,255,255,.72); border-radius: 0; }
body.nkg-vs.nkg-vs-underline .product-card .product-variants .variant-btn.type-text.active { background: transparent !important; color: #fff; box-shadow: inset 0 -2px 0 var(--vs-acc); }
body.nkg-vs.nkg-vs-underline .product-card .card-image-container .product-variants:has(.type-color) { left: 0; right: 0; max-width: none; justify-content: center; gap: 12px; border-radius: 0; padding: 22px 10px 10px; }
body.nkg-vs.nkg-vs-underline .product-card .product-variants .variant-btn.type-color.active { transform: translateY(-2px); box-shadow: 0 6px 0 -3px var(--nkg-chip-active, var(--btn-bg-color, #333333)); }
body.nkg-vs.nkg-vs-minimal .product-card .card-image-container .product-variants:has(.variant-btn) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: none; padding: 0; gap: 2px; }
body.nkg-vs.nkg-vs-minimal .product-card .product-variants .variant-btn.type-text { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.75); font-weight: 600; }
body.nkg-vs.nkg-vs-minimal .product-card .product-variants .variant-btn.type-text.active { background: transparent !important; color: var(--vs-acc); text-shadow: 0 1px 2px rgba(0,0,0,.85); font-weight: 800; box-shadow: none; }
body.nkg-vs.nkg-vs-minimal .product-card .card-image-container .product-variants:has(.type-color) { background: transparent; border: 0; box-shadow: none; padding: 0; gap: 9px; }
body.nkg-vs.nkg-vs-minimal .product-card .product-variants .variant-btn.type-color { width: 16px; height: 16px; flex-basis: 16px; border: 0; box-shadow: 0 1px 5px rgba(0,0,0,.45); }
body.nkg-vs.nkg-vs-minimal .product-card .product-variants .variant-btn.type-color.active { transform: scale(1.35); box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0,0,0,.4); }
body.nkg-vs.nkg-vs-square .product-card .card-image-container .product-variants:has(.variant-btn) { background: var(--nkg-chip-pill, rgba(12, 12, 12, .58)); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); border: 1px solid color-mix(in srgb, var(--nkg-chip-line, #ffffff) 40%, transparent); border-radius: 4px; }
body.nkg-vs.nkg-vs-square .product-card .product-variants .variant-btn.type-text { border-radius: 2px; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; }
body.nkg-vs.nkg-vs-square .product-card .card-image-container .product-variants:has(.type-color) { border-radius: 4px; }
body.nkg-vs.nkg-vs-square .product-card .product-variants .variant-btn.type-color { border-radius: 3px; }
body.nkg-vs.nkg-vs-square .product-card .product-variants .variant-btn.type-color.active { transform: none; box-shadow: 0 0 0 2px var(--nkg-chip-active, var(--btn-bg-color, #333333)); }
body.nkg-vs.nkg-vs-segment .product-card .card-image-container .product-variants:has(.variant-btn) { background: var(--nkg-chip-pill, rgba(12, 12, 12, .58)); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); border: 1px solid color-mix(in srgb, var(--nkg-chip-line, #ffffff) 45%, transparent); border-radius: 10px; padding: 0; gap: 0; overflow: hidden; }
body.nkg-vs.nkg-vs-segment .product-card .product-variants .variant-btn.type-text { border-radius: 0; height: 30px; border-right: 1px solid color-mix(in srgb, var(--nkg-chip-line, #ffffff) 28%, transparent); }
body.nkg-vs.nkg-vs-segment .product-card .product-variants .variant-btn.type-text:last-child { border-right: 0; }
body.nkg-vs.nkg-vs-segment .product-card .card-image-container .product-variants:has(.type-color) { border-radius: 6px; padding: 0; gap: 0; overflow: hidden; }
body.nkg-vs.nkg-vs-segment .product-card .product-variants .variant-btn.type-color { width: 26px; height: 26px; flex-basis: 26px; border: 0; border-radius: 0; box-shadow: none; }
body.nkg-vs.nkg-vs-segment .product-card .product-variants .variant-btn.type-color.active { transform: none; box-shadow: inset 0 0 0 2px #fff; }
body.nkg-vs.nkg-vs-neon .product-card .card-image-container .product-variants:has(.variant-btn) { background: rgba(8,8,14,.72); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); border: 1px solid color-mix(in srgb, var(--nkg-chip-active, var(--btn-bg-color, #333333)) 55%, transparent); box-shadow: 0 0 16px color-mix(in srgb, var(--nkg-chip-active, var(--btn-bg-color, #333333)) 30%, transparent); }
body.nkg-vs.nkg-vs-neon .product-card .product-variants .variant-btn.type-text { color: rgba(255,255,255,.75); }
body.nkg-vs.nkg-vs-neon .product-card .product-variants .variant-btn.type-text.active { background: transparent !important; color: #fff; box-shadow: 0 0 0 1.5px var(--vs-acc), 0 0 12px var(--vs-acc), inset 0 0 8px var(--vs-acc); text-shadow: 0 0 6px var(--vs-acc); }
body.nkg-vs.nkg-vs-neon .product-card .product-variants .variant-btn.type-color.active { transform: scale(1.12); box-shadow: 0 0 0 2px #fff, 0 0 14px 3px var(--nkg-chip-active, var(--btn-bg-color, #333333)); }
body.nkg-vs.nkg-vs-luxe .product-card .card-image-container .product-variants:has(.variant-btn) { left: 0; right: 0; bottom: 10px; border-radius: 0; padding: 4px 10px; background: rgba(12,12,12,.55); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); border: 0; border-top: 1px solid color-mix(in srgb, var(--nkg-chip-line, #ffffff) 70%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--nkg-chip-line, #ffffff) 70%, transparent); box-shadow: none; }
body.nkg-vs.nkg-vs-luxe .product-card .product-variants .variant-btn.type-text { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; color: var(--nkg-chip-line, #ffffff); border-radius: 0; }
body.nkg-vs.nkg-vs-luxe .product-card .product-variants .variant-btn.type-text.active { background: transparent !important; color: var(--nkg-chip-text, #ffffff); box-shadow: inset 0 0 0 1px var(--nkg-chip-line, #ffffff); }
body.nkg-vs.nkg-vs-luxe .product-card .card-image-container .product-variants:has(.type-color) { left: 0; right: 0; max-width: none; justify-content: center; gap: 12px; border-radius: 0; }
body.nkg-vs.nkg-vs-luxe .product-card .product-variants .variant-btn.type-color { width: 15px; height: 15px; flex-basis: 15px; border: 1px solid rgba(255,255,255,.7); }
body.nkg-vs.nkg-vs-luxe .product-card .product-variants .variant-btn.type-color.active { transform: none; box-shadow: 0 0 0 2px rgba(12,12,12,.9), 0 0 0 3px var(--nkg-chip-line, #ffffff); }
body.nkg-vs.nkg-vs-bubble .product-card .card-image-container .product-variants:has(.variant-btn) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: none; padding: 0; gap: 6px; justify-content: flex-start; }
body.nkg-vs.nkg-vs-bubble .product-card .product-variants .variant-btn.type-text { flex: 0 1 auto; height: 30px; padding: 0 10px; border-radius: 15px; background: rgba(255,255,255,.92) !important; color: #222; box-shadow: 0 4px 12px rgba(0,0,0,.22), inset 0 -2px 0 rgba(0,0,0,.06); }
body.nkg-vs.nkg-vs-bubble .product-card .product-variants .variant-btn.type-text.active { background: var(--vs-acc) !important; color: var(--nkg-chip-active-text, var(--btn-text-color, #ffffff)); transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.3); }
body.nkg-vs.nkg-vs-bubble .product-card .card-image-container .product-variants:has(.type-color) { background: transparent; border: 0; box-shadow: none; padding: 0; gap: 8px; }
body.nkg-vs.nkg-vs-bubble .product-card .product-variants .variant-btn.type-color { width: 24px; height: 24px; flex-basis: 24px; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
body.nkg-vs.nkg-vs-bubble .product-card .product-variants .variant-btn.type-color.active { transform: translateY(-3px) scale(1.12); box-shadow: 0 8px 16px rgba(0,0,0,.3); }
body.nkg-vs.nkg-vs-tag .product-card .card-image-container .product-variants:has(.variant-btn) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; box-shadow: none; padding: 0; gap: 4px; }
body.nkg-vs.nkg-vs-tag .product-card .product-variants .variant-btn.type-text { clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%); border-radius: 0 6px 6px 0; background: rgba(255,255,255,.92) !important; color: #222; padding-left: 10px; }
body.nkg-vs.nkg-vs-tag .product-card .product-variants .variant-btn.type-text.active { background: var(--vs-acc) !important; color: var(--nkg-chip-active-text, var(--btn-text-color, #ffffff)); }
body.nkg-vs.nkg-vs-tag .product-card .card-image-container .product-variants:has(.type-color) { background: rgba(255,255,255,.88); border: 0; gap: 9px; }
body.nkg-vs.nkg-vs-tag .product-card .product-variants .variant-btn.type-color { width: 15px; height: 15px; flex-basis: 15px; border-radius: 3px; transform: rotate(45deg); }
body.nkg-vs.nkg-vs-tag .product-card .product-variants .variant-btn.type-color.active { transform: rotate(45deg) scale(1.2); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--nkg-chip-active, var(--btn-bg-color, #333333)); }
body.nkg-vs.nkg-vs-column .product-card .card-image-container .product-variants:has(.variant-btn) { left: auto; right: 8px; bottom: 8px; flex-direction: column; align-items: stretch; width: auto; max-width: 46%; gap: 4px; padding: 4px; border-radius: 12px; background: var(--nkg-chip-pill, rgba(12, 12, 12, .58)); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); border: 1px solid color-mix(in srgb, var(--nkg-chip-line, #ffffff) 30%, transparent); }
body.nkg-vs.nkg-vs-column .product-card .product-variants .variant-btn.type-text { flex: 0 0 auto; height: 24px; padding: 0 9px; }
body.nkg-vs.nkg-vs-column .product-card .card-image-container .product-variants:has(.type-color) { left: auto; right: 8px; flex-direction: column; padding: 7px 5px; }
body.nkg-vs.nkg-vs-center .product-card .card-image-container .product-variants:has(.variant-btn) { left: 50%; right: auto; transform: translateX(-50%); width: max-content; max-width: calc(100% - 16px); border-radius: 999px; background: var(--nkg-chip-pill, rgba(12, 12, 12, .58)); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); border: 1px solid color-mix(in srgb, var(--nkg-chip-line, #ffffff) 30%, transparent); padding: 3px; gap: 2px; }
body.nkg-vs.nkg-vs-center .product-card .product-variants .variant-btn.type-text { flex: 0 0 auto; padding: 0 9px; border-radius: 999px; }
body.nkg-vs.nkg-vs-center .product-card .card-image-container .product-variants:has(.type-color) { left: 50%; transform: translateX(-50%); gap: 7px; padding: 5px 8px; }
body.nkg-vs.nkg-vs-paper .product-card .card-image-container .product-variants:has(.variant-btn) { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; border-radius: 10px; box-shadow: 0 8px 22px rgba(0,0,0,.2); }
body.nkg-vs.nkg-vs-paper .product-card .product-variants .variant-btn.type-text { color: #333; }
body.nkg-vs.nkg-vs-paper .product-card .product-variants .variant-btn.type-text.active { background: var(--vs-acc) !important; color: var(--nkg-chip-active-text, var(--btn-text-color, #ffffff)); }
body.nkg-vs.nkg-vs-paper .product-card .card-image-container .product-variants:has(.type-color) { background: #fff; border: 0; }
body.nkg-vs.nkg-vs-paper .product-card .product-variants .variant-btn.type-color.active { transform: scale(1.1); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #222; }
body.nkg-vs.nkg-vs-ink .product-card .card-image-container .product-variants:has(.variant-btn) { background: #111; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; border-radius: 0; padding: 0; gap: 0; box-shadow: none; }
body.nkg-vs.nkg-vs-ink .product-card .product-variants .variant-btn.type-text { color: #bbbbbb; border-radius: 0; height: 30px; }
body.nkg-vs.nkg-vs-ink .product-card .product-variants .variant-btn.type-text.active { background: #ffffff !important; color: #111111; box-shadow: none; }
body.nkg-vs.nkg-vs-ink .product-card .card-image-container .product-variants:has(.type-color) { background: #111; border-radius: 0; border: 0; gap: 7px; padding: 6px 8px; }
body.nkg-vs.nkg-vs-ink .product-card .product-variants .variant-btn.type-color { border-radius: 0; border-color: #111; }
body.nkg-vs.nkg-vs-ink .product-card .product-variants .variant-btn.type-color.active { transform: none; box-shadow: 0 0 0 2px #fff; }
body.nkg-vs.nkg-vs-pastel .product-card .card-image-container .product-variants:has(.variant-btn) { background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); border: 0; border-radius: 16px; box-shadow: 0 6px 18px rgba(0,0,0,.1); }
body.nkg-vs.nkg-vs-pastel .product-card .product-variants .variant-btn.type-text { color: color-mix(in srgb, var(--vs-acc) 75%, #000); border-radius: 12px; }
body.nkg-vs.nkg-vs-pastel .product-card .product-variants .variant-btn.type-text.active { background: color-mix(in srgb, var(--vs-acc) 22%, #fff) !important; color: color-mix(in srgb, var(--vs-acc) 85%, #000); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vs-acc) 40%, transparent); }
body.nkg-vs.nkg-vs-pastel .product-card .card-image-container .product-variants:has(.type-color) { background: rgba(255,255,255,.72); border: 0; }
body.nkg-vs.nkg-vs-pastel .product-card .product-variants .variant-btn.type-color { border-radius: 7px; border-color: #fff; }
body.nkg-vs.nkg-vs-pastel .product-card .product-variants .variant-btn.type-color.active { transform: scale(1.12); box-shadow: 0 0 0 2px color-mix(in srgb, var(--nkg-chip-active, var(--btn-bg-color, #333333)) 45%, transparent); }
body.nkg-vs.nkg-vs-frame .product-card .card-image-container .product-variants:has(.variant-btn) { background: rgba(0,0,0,.28); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); border: 0; border-radius: 12px; }
body.nkg-vs.nkg-vs-frame .product-card .product-variants .variant-btn.type-text { color: #fff; }
body.nkg-vs.nkg-vs-frame .product-card .product-variants .variant-btn.type-text.active { background: transparent !important; box-shadow: inset 0 0 0 2px var(--vs-acc); color: #fff; }
body.nkg-vs.nkg-vs-frame .product-card .product-variants .variant-btn.type-color.active { transform: none; box-shadow: 0 0 0 2px rgba(0,0,0,.5), 0 0 0 4px var(--nkg-chip-active, var(--btn-bg-color, #333333)); }
body.nkg-vs.nkg-vs-dots .product-card .card-image-container .product-variants:has(.variant-btn) { background: var(--nkg-chip-pill, rgba(12, 12, 12, .58)); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); border: 1px solid color-mix(in srgb, var(--nkg-chip-line, #ffffff) 30%, transparent); border-radius: 999px; }
body.nkg-vs.nkg-vs-dots .product-card .product-variants .variant-btn.type-text { gap: 4px; }
body.nkg-vs.nkg-vs-dots .product-card .product-variants .variant-btn.type-text::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .45; }
body.nkg-vs.nkg-vs-dots .product-card .product-variants .variant-btn.type-text.active { background: transparent !important; color: var(--nkg-chip-text, #ffffff); box-shadow: none; }
body.nkg-vs.nkg-vs-dots .product-card .product-variants .variant-btn.type-text.active::before { opacity: 1; background: var(--vs-acc); box-shadow: 0 0 6px var(--vs-acc); }
body.nkg-vs.nkg-vs-dots .product-card .product-variants .variant-btn.type-color { width: 13px; height: 13px; flex-basis: 13px; border: 0; }
body.nkg-vs.nkg-vs-dots .product-card .product-variants .variant-btn.type-color.active { transform: scale(1.15); box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 0 0 3.5px var(--nkg-chip-active, var(--btn-bg-color, #333333)); }
body.nkg-vs.nkg-vs-shine .product-card .card-image-container .product-variants:has(.variant-btn) { background: var(--nkg-chip-pill, rgba(12, 12, 12, .58)); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); border: 1px solid color-mix(in srgb, var(--nkg-chip-line, #ffffff) 35%, transparent); }
body.nkg-vs.nkg-vs-shine .product-card .product-variants .variant-btn.type-text.active { background: linear-gradient(110deg, var(--vs-acc) 35%, color-mix(in srgb, var(--vs-acc) 55%, #fff) 50%, var(--vs-acc) 65%) !important; background-size: 260% 100% !important; animation: nkgVsShine 2.6s linear infinite; color: var(--nkg-chip-active-text, var(--btn-text-color, #ffffff)); }
body.nkg-vs.nkg-vs-shine .product-card .product-variants .variant-btn.type-color::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.75), rgba(255,255,255,0) 48%); pointer-events: none; }
body.nkg-vs.nkg-vs-pc .product-card .product-variants .variant-btn.type-text { --vs-acc: var(--v-bg, var(--nkg-chip-active, var(--btn-bg-color, #333333))); }
/* ===== NKG_VSTYLE end ===== */

/* ===== NKG_SCENE: слой поверх фото товара (design.cardImageFg) и фото-сцена (design.cardSceneFit) ===== */
body.nkg-vfx-fg .product-card .card-image-container::after,
body.nkg-vfx-fg #productModalGallery::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: var(--nkg-card-img-fg) center / cover no-repeat;
}
body.nkg-vfx-fg #productModalGallery .gallery-dots,
body.nkg-vfx-fg #productModalGallery .gallery-nav,
body.nkg-vfx-fg #productModalGallery .gallery-counter { z-index: 2; }
body.nkg-vfx-scene #productModalGallery {
    background-size: contain !important;
    background-color: var(--nkg-scene-color, transparent) !important;
}
body.nkg-vfx-scene.nkg-vfx-fg #productModalGallery::after { background-size: contain; }
body.nkg-vfx-scene #productModalGallery img { object-fit: contain !important; }
body.nkg-light-ui .cart-total > span { color: var(--cart-text-color, #222222); }
body.nkg-ck-fill .btn-checkout { background: var(--btn-bg-color, #222222); color: var(--btn-text-color, #ffffff); }
body.nkg-vfx-scene .cart-item-image,
body.nkg-vfx-scene #checkoutModal .nkco-thumbs img {
    background: var(--nkg-card-img-bg) center / cover no-repeat !important;
    object-fit: cover;
}
/* ===== NKG_SCENE end ===== */

/* ===== NKG_SCROLL_PERF (15 октября 2026) =====
   На телефонах и планшетах убираем размытие (backdrop-filter) у мелочей
   внутри карточек каталога: сердечко, плашка «Нет в наличии», панель
   цветов и размеров. Под кнопкой 32 px размытие почти не видно, а айфон
   пересчитывал его для каждой карточки на каждом кадре прокрутки, и экран
   белел. На компьютере всё как было. */
@media (hover: none), (max-width: 1023px) {
    .product-card .favorite-btn,
    .product-card .oos-card-badge,
    .product-card .card-image-container .product-variants,
    .product-card .product-variants .variant-btn {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
    /* под непрозрачным нижним меню размытия не видно: снимаем (класс ставит script.js) */
    html.nkg-nav-solid:not(#nkz) .nav-bg,
    html.nkg-nav-solid:not(#nkz) .nkn-bg {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
}
/* ===== NKG_SCROLL_PERF end ===== */


/* NKG_MODAL_FIT (16.10.2026): окно товара не выше видимой части экрана.
   На андроиде (Chrome, Яндекс Браузер с нижней панелью) 92vh считается от экрана
   без панелей и больше видимой области: окно уезжало вверх вместе с крестиком.
   Ограничиваем ещё и высотой самого слоя окна (100% = то, что реально видно). */
.product-modal .product-modal-content {
    max-height: min(calc(92vh - env(safe-area-inset-top, 0px)), calc(100% - 12px - env(safe-area-inset-top, 0px))) !important;
}
@supports (height: 100dvh) {
    .product-modal .product-modal-content {
        max-height: min(calc(92dvh - env(safe-area-inset-top, 0px)), calc(100% - 12px - env(safe-area-inset-top, 0px))) !important;
    }
}
html body #catalogGrid .product-card[style*="display: none"],html body #catalogGrid .product-card[style*="display:none"],html body .categories[style*="display: none"],html body .categories[style*="display:none"],html body .category-btn[style*="display: none"],html body .category-btn[style*="display:none"],html body .sizes-grid[style*="display: none"],html body .sizes-grid[style*="display:none"]{display:none!important}
