@font-face {
    font-family: 'Manrope';
    src: url('assets/font/Manrope-Variable.ttf') format('truetype-variations');
    font-weight: 200 800;
}

/* Splash/Lottie удалены */

/* Общие стили для всего приложения */
/* Телеграм WebApp прокрутка и высота */
html {
    height: 100%;
}
body {
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    min-height: var(--tg-viewport-stable-height, 100vh);
    display: flex;
    flex-direction: column;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox - скрываем на мобильных */
}
body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera - скрываем на мобильных */
}

/* Показываем скроллбар на десктопе */
@media (min-width: 1024px) {
    body {
        scrollbar-width: thin;  /* Тонкий скроллбар для Firefox */
    }
    
    body::-webkit-scrollbar {
        display: block;
        width: 8px;
    }
    
    body::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    body::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }
    
    body::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

.main-content {
    flex-grow: 1;
    box-sizing: border-box;
}

/* --- СТРАНИЦА КАТАЛОГА --- */

/* Стили для вкладок */
.tab-content {
    display: none;
    background-color: #ffffff;
}

.tab-content.active {
    display: block;
}

#catalog {
    padding: 0;
    box-sizing: border-box;
}

#about {
    padding-top: 0; /* Убираем верхний отступ */
    padding-bottom: 71px; /* Небольшой отступ снизу, чтобы изображения не обрезались */
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

#cart {
    padding: 16px;
    box-sizing: border-box;
}

/* --- СТРАНИЦА ГЛАВНАЯ (КОЛЛЕКЦИЯ) --- */

.collection-hero {
    text-align: center;
    margin-bottom: 32px;
    /* padding: 0 16px; */ /* Убираем отступ отсюда */
}

.collection-hero-image {
    width: 100%;
    height: 50vh;
    overflow: hidden;
    /* border-radius: 8px; */ /* Убираем скругление углов */
    /* margin: 0 -16px; */ /* Этот хак больше не нужен */
}

.collection-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.collection-content {
    /* padding: 0 16px; */ /* Убираем отступ отсюда */
    display: block;
}

.collection-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    text-align: center;
    margin: 0 0 24px 0;
    padding: 0 16px; /* Добавляем отступ сюда */
}

.collection-text {
    margin-bottom: 40px;
    padding: 0 16px; /* И сюда */
}

.collection-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
    margin: 0 0 16px 0;
    text-align: center;
}

.collection-text p:last-child {
    margin-bottom: 0;
}

.collection-text strong {
    font-weight: 700;
    color: #000000;
}

.collection-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0; /* Убираем зазоры для идеальной сетки */
}

.collection-gallery img {
    width: 100%;
    height: auto; /* Автоматическая высота для сохранения пропорций */
    aspect-ratio: 1 / 1.2; /* Делаем изображения немного вытянутыми по вертикали */
    object-fit: cover;
    display: block;
}

.banner-image {
    width: 100%;
    height: 40vh; /* Устанавливаем высоту в 40% от высоты экрана */
    margin-bottom: 16px;
    display: block;
    object-fit: cover; /* Масштабируем изображение с обрезкой лишнего */
    object-position: top center; /* Выравниваем по верхнему краю */
    cursor: pointer; /* Курсор указывает на кликабельность */
}

/* Сетка для всех товаров в каталоге */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 16px 100px;
}

/* Карточка товара */
.product-card {
    background-color: transparent;
    overflow: hidden;
    text-align: left;
    box-shadow: none;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Изображение товара в карточке каталога */
.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 12px 12px 40px 0; /* Убираем отступ слева */
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: flex-start;
    flex-grow: 1; /* Чтобы карточки были одной высоты */
}

/* Название товара в карточке каталога */
.product-title {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    margin: 0;
    color: #000000;
    flex-grow: 1; /* Чтобы цена была внизу текстового блока */
}

/* Цена товара в карточке каталога */
.product-price {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    color: #4C4C4C;
    text-align: left;
}

/* Кнопка "В корзину" в карточке каталога */
.add-to-cart-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48%;
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 8px 0;
    font-size: 12px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 2px;
    box-sizing: border-box; /* Добавляем это свойство */
}

.add-to-cart-btn:hover {
    background-color: #333333;
}

.add-to-cart-btn.quantity-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px; /* Уменьшаем горизонтальный padding чтобы - и + были ближе к краям */
    /* box-sizing: border-box; Уже есть в базовом классе */
}

.quantity-selector .quantity-btn {
    background: none;
    border: none;
    color: white;
    font-size: 14px; /* Уменьшаем шрифт для + и - */
    font-weight: 500; /* Делаем такую же жирность как у основной кнопки */
    cursor: pointer;
    line-height: 1; /* Убираем лишнюю высоту строки */
    padding: 0;
    margin: 0;
    position: relative;
    min-width: 20px; /* Минимальная ширина для символа */
}

/* Увеличиваем зону касания через псевдоэлемент */
.quantity-selector .quantity-btn::before {
    content: '';
    position: absolute;
    top: -8px;
    bottom: -8px;
    left: -8px;
    right: -8px;
}

.quantity-selector .quantity {
    font-size: 12px; /* Тот же размер, что и у "В КОРЗИНУ" */
    font-weight: 500; /* Та же жирность что у основной кнопки */
    margin: 0 8px; /* Отступы слева и справа от цифры */
}


/* --- НИЖНЯЯ ПАНЕЛЬ НАВИГАЦИИ --- */

/* Нижняя панель навигации */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #D9D9D9;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
    z-index: 2001;
}

/* Стили для кнопок навигации */
.nav-button {
    background: none;
    border: none;
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

/* Иконка в кнопке навигации */
.nav-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 2px;
    color: #000000; /* Цвет для неактивной иконки */
    transition: color 0.2s ease-in-out;
}

/* Текст в кнопке навигации */
.nav-button span {
    margin-top: 4px;
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    font-size: 12px;
}

/* Стиль для активной (выбранной) кнопки навигации */
.nav-button.active {
    color: #BE0F34; /* Цвет для активного текста */
}

.nav-button.active .nav-icon {
    color: #BE0F34; /* Цвет для активной иконки */
}

h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

/* --- СТИЛИ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ --- */

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .product-grid {
        gap: 12px;
    }

    .product-title {
        font-family: 'Manrope', sans-serif;
        font-size: 13px;
        font-weight: 600;
        color: #000000;
    }

    .product-price {
        font-family: 'Manrope', sans-serif;
        font-size: 15px;
        font-weight: 400;
        color: #4C4C4C;
    }

    /* Адаптивные стили для карусели на мобильных */

    .slider-controls {
        bottom: 12px;
        gap: 8px;
    }

    .slider-counter {
        font-size: 11px;
        padding: 3px 10px;
    }

    .slider-dot {
        width: 6px;
        height: 6px;
    }
}

/* --- СТРАНИЦА ДЕТАЛЬНОГО ПРОСМОТРА ТОВАРА --- */

/* Стили для страницы детального просмотра */
.product-detail-view {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    z-index: 2000;
    overflow-y: auto;
    padding-bottom: 90px;
    box-sizing: border-box;
}

.product-detail-view.active {
    display: block;
}

/* Контейнер для слайдера с изображениями */
.image-slider {
    position: relative;
    background-color: #F5F5F5;
    overflow: hidden;
}

/* Обертка карусели */
.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: grab;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.carousel-wrapper:active {
    cursor: grabbing;
}

/* Трек карусели (контейнер для всех слайдов) */
.carousel-track {
    display: flex;
    width: 100%;
    will-change: transform;
}

/* Отдельный слайд */
.carousel-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F5F5F5;
}

/* Изображение в слайде */
.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}


/* Контейнер для элементов управления */
.slider-controls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Счетчик изображений */
.slider-counter {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* Точки для переключения слайдов */
.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.slider-dot.active {
    background-color: white;
    border-color: white;
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Контейнер с текстовой информацией о товаре */
.product-detail-info {
    padding: 24px 16px;
}

/* Артикул товара */
.product-sku {
    font-size: 13px;
    font-weight: 200;
    color: #8E8E93;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
}

/* Иконка "копировать" рядом с артикулом */
.copy-icon {
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.5 2H2.5C1.94772 2 1.5 2.44772 1.5 3V12H2.5V3H11.5V2ZM13.5 4H5.5C4.94772 4 4.5 4.44772 4.5 5V14C4.5 14.5523 4.94772 15 5.5 15H13.5C14.0523 15 14.5 14.5523 14.5 14V5C14.5 4.44772 14.0523 4 13.5 4ZM13.5 14H5.5V5H13.5V14Z" fill="%238E8E93"/></svg>'); /* v=84 */
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 8px;
    cursor: pointer;
}

/* Название товара на странице */
.product-detail-title {
    font-size: 24px;
    font-weight: 400;
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: #000000;
}

/* Цена на странице товара */
.product-detail-price {
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 24px 0;
    font-family: 'Manrope', sans-serif;
    color: #000000;
}

/* Большая кнопка "Добавить в корзину" на странице товара */
.product-detail-add-to-cart-btn {
    width: 100%;
    padding: 0 16px;
    background-color: #000000;
    color: #FFFFFF;
    border: none;
    font-size: 18px;
    font-weight: 200;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    text-align: left;
    box-sizing: border-box;
    height: 50px;
    display: flex;
    align-items: center;
    border-radius: 2px;
}

/* Стили для счетчика на детальной странице */
.product-detail-add-to-cart-btn.quantity-selector {
    justify-content: space-between;
    padding: 0 16px;
}

.product-detail-add-to-cart-btn.quantity-selector .quantity-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin: 0;
    position: relative;
    min-width: 30px;
}

.product-detail-add-to-cart-btn.quantity-selector .quantity-btn::before {
    content: '';
    position: absolute;
    top: -12px;
    bottom: -12px;
    left: -12px;
    right: -12px;
}

.product-detail-add-to-cart-btn.quantity-selector .quantity {
    font-size: 18px;
    font-weight: 500;
    margin: 0 16px;
}

/* Стили для секций описания и характеристик */
.product-description-section,
.product-characteristics-section {
    padding: 24px 16px;
}

/* Специфичные стили для секций в карточке товара */
.product-detail-view .product-description-section {
    padding: 24px 16px 12px 16px; /* Уменьшен нижний отступ с 24px до 12px */
}

.product-detail-view .product-characteristics-section {
    padding: 0 16px 24px 16px; /* Убран верхний отступ, оставлен только нижний */
}

.section-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 12px 0;
}

.product-description-text,
.product-char {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.015em; /* +10% межбуквенное расстояние */
    margin: 0;
}

.product-char {
    margin-bottom: 4px;
}

/* --- КОРЗИНА --- */
.cart-empty {
    display: none;
    min-height: calc(100vh - 160px);
    padding-top: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.cart-empty-icon {
    width: 120px;
    height: 120px;
    opacity: 0.4;
}

.cart-empty-text {
    margin-top: 12px;
    color: #8E8E93;
    font-size: 16px;
}

.cart-list { display: none; }
.cart-title { font-size: 20px; margin: 0 0 12px 0; }

.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eee; }
.cart-item-thumb { width: 64px; height: 64px; object-fit: cover; background: #f5f5f5; }
.cart-item-info { flex: 1; }
.cart-item-title { font-size: 14px; margin: 0 0 6px 0; }
.cart-item-price { font-size: 14px; color: #4C4C4C; margin-bottom: 8px; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 28px; height: 28px; border: 1px solid #ccc; background: #fff; cursor: pointer; }
.qty-remove { margin-left: auto; background: none; border: none; color: #BE0F34; cursor: pointer; }

.promo-code-section {
    margin: 16px 0;
    display: none;
}

.promo-code-section label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Manrope', sans-serif;
    margin-bottom: 8px;
    color: #000000;
}

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

.promo-code-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #FFFFFF;
    color: #000000;
    caret-color: #000000;
}

.promo-code-input:focus {
    outline: none;
    border-color: #000000;
    caret-color: #000000;
}

.promo-code-input::placeholder {
    color: #AAAAAA;
}

.promo-apply-btn {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    background-color: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.promo-apply-btn:active {
    background-color: #333333;
}

.promo-message {
    margin-top: 8px;
    font-size: 13px;
    font-family: 'Manrope', sans-serif;
    min-height: 18px;
}

.promo-message.success {
    color: #00A86B;
    font-weight: 500;
}

.promo-message.error {
    color: #BE0F34;
    font-weight: 500;
}

.cart-total-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.cart-total-original {
    font-size: 14px;
    color: #999999;
    text-decoration: line-through;
    display: none;
}

.cart-total-original.visible {
    display: block;
}

#cart-total.discounted {
    color: #BE0F34;
    font-weight: 700;
}

.cart-summary { display: flex; justify-content: space-between; padding: 12px 0; font-weight: 600; }
.cart-checkout-btn { width: 100%; height: 48px; background: #000; color: #fff; border: none; font-weight: 600; border-radius: 2px; }

/* --- АДВЕНТ-КАЛЕНДАРЬ (ВРЕМЕННО ОТКЛЮЧЕН) --- */

/* Скрываем кнопку календаря в навигации */
.nav-button[data-tab="advent-calendar"] {
    display: none !important;
}

/* Скрываем секцию адвент-календаря */
#advent-calendar {
    display: none !important;
}

/* Скрываем секции для подарков и розыгрыша */
#gift-detail,
#blindbox-info {
    display: none !important;
}

/* Старые стили удалены, так как секция скрыта */

.advent-banner {
    width: 100%;
    height: 25vh;
    object-fit: cover;
    object-position: center;
    display: block;
    margin-bottom: 0;
}

.advent-content {
    padding: 16px;
}

.blindbox-button {
    width: 100%;
    background: linear-gradient(135deg, #BE0F34 0%, #8B0A25 100%);
    color: #FFFFFF;
    border: none;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(190, 15, 52, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.blindbox-button:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(190, 15, 52, 0.3);
}

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

.blindbox-text {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Сетка дней календаря */
.advent-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Ячейка дня */
.advent-day {
    background: #F5F5F5;
    border-radius: 8px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    min-height: 140px;
    border: 2px dashed #E0E0E0;
    transition: all 0.3s;
}

.advent-day.opened {
    background: #FFFFFF;
    border: 2px solid #BE0F34;
    border-style: solid;
}

.advent-day.available {
    background: #FFF5F7;
    border-color: #BE0F34;
    cursor: pointer;
}

.advent-day.available:active {
    transform: scale(0.98);
}

.advent-day.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Номер дня */
.advent-day-number {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    color: #BE0F34;
    margin: 0;
}

.advent-day.locked .advent-day-number {
    color: #999999;
}

/* Иконка елочки */
.advent-day-icon {
    font-size: 24px;
    position: absolute;
    bottom: 12px;
    right: 12px;
}

/* Кнопка открыть */
.advent-day-button {
    background: #BE0F34;
    color: #FFFFFF;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.advent-day.opened .advent-day-button {
    background: #4CAF50;
}

.advent-day.locked .advent-day-button {
    background: #CCCCCC;
    cursor: not-allowed;
}

/* Статус */
.advent-day-status {
    font-size: 11px;
    color: #666666;
    font-weight: 500;
    text-align: center;
}

/* --- СТРАНИЦА ДЕТАЛЬНОГО ПРОСМОТРА ПОДАРКА --- */

.gift-detail-view {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    z-index: 2000;
    overflow-y: auto;
    padding-bottom: 90px;
    box-sizing: border-box;
}

.gift-detail-view.active {
    display: block;
}

.gift-detail-content {
    padding: 0;
}

.gift-detail-image {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    display: block;
}

.gift-detail-info {
    padding: 24px 16px;
}

.gift-detail-day {
    font-size: 14px;
    color: #BE0F34;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.gift-detail-title {
    font-size: 28px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    color: #000000;
    margin: 0 0 16px 0;
}

.gift-detail-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    margin: 0 0 24px 0;
    white-space: pre-line;
}

.gift-detail-prize {
    background: #FFF5F7;
    border: 2px solid #BE0F34;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.gift-detail-prize-label {
    font-size: 12px;
    color: #BE0F34;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.gift-detail-prize-value {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    font-family: 'Manrope', sans-serif;
    margin: 0;
}

/* --- СТРАНИЦА ИНФОРМАЦИИ О РОЗЫГРЫШЕ BLIND BOX --- */

.blindbox-info-view {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    z-index: 2000;
    overflow-y: auto;
    padding-bottom: 90px;
    box-sizing: border-box;
}

.blindbox-info-view.active {
    display: block;
}

.blindbox-info-content {
    padding: 24px 16px;
}

.blindbox-info-title {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    color: #BE0F34;
    margin: 0 0 24px 0;
    text-align: center;
}

.blindbox-info-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 24px;
}

.blindbox-info-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    margin: 0 0 16px 0;
}

.blindbox-info-text:last-child {
    margin-bottom: 24px;
}

.blindbox-telegram-link {
    display: block;
    width: 100%;
    background: #0088CC;
    color: #FFFFFF;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    transition: background 0.2s;
}

.blindbox-telegram-link:active {
    background: #006699;
}

/* --- СТРАНИЦА ОФОРМЛЕНИЯ ЗАКАЗА --- */

.checkout-form-view {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    z-index: 2000;
    overflow-y: auto;
    padding-bottom: 90px;
    box-sizing: border-box;
}

.checkout-form-view.active {
    display: block;
}

.checkout-form-content {
    padding: 24px 16px;
}

.checkout-title {
    font-size: 24px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    margin: 0 0 24px 0;
    color: #000000;
}

.checkout-section {
    margin-bottom: 32px;
}

.checkout-section-title {
    font-size: 18px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    margin: 0 0 16px 0;
    color: #000000;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Manrope', sans-serif;
    color: #000000;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #FFFFFF;
    color: #000000;
    caret-color: #000000;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #000000;
    caret-color: #000000;
}

.form-input::placeholder {
    color: #AAAAAA;
}

/* Стили для способов доставки */
.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delivery-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    background-color: #FFFFFF;
}

.delivery-option:has(.delivery-radio:checked) {
    border-color: #000000;
    background-color: #F5F5F5;
}

.delivery-radio {
    width: 20px;
    height: 20px;
    margin: 0;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #000000;
}

.delivery-option-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delivery-option-text {
    display: flex;
    flex-direction: column;
}

.delivery-option-title {
    font-size: 16px;
    font-weight: 500;
    font-family: 'Manrope', sans-serif;
    color: #000000;
    margin-bottom: 2px;
}

.delivery-option-subtitle {
    font-size: 14px;
    font-weight: 400;
    font-family: 'Manrope', sans-serif;
    color: #666666;
}

/* Информация о самовывозе */
.pickup-info {
    margin-top: 16px;
    background: #F5F5F5;
    border-radius: 8px;
    padding: 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.pickup-info.visible {
    max-height: 300px;
    opacity: 1;
    margin-top: 16px;
}

.pickup-info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pickup-info-text,
.pickup-info-contact,
.pickup-info-hours {
    font-size: 14px;
    line-height: 1.5;
    color: #4C4C4C;
    margin: 0;
    font-family: 'Manrope', sans-serif;
}

.pickup-info-text strong,
.pickup-info-contact strong,
.pickup-info-hours strong {
    color: #000000;
    font-weight: 600;
}

/* Итого */
.checkout-summary {
    padding: 16px 0;
    border-top: 1px solid #E0E0E0;
    margin-bottom: 24px;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    color: #000000;
}

/* Кнопка оформления заказа */
.checkout-submit-btn {
    width: 100%;
    padding: 16px;
    background-color: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-submit-btn:hover {
    background-color: #333333;
}

.checkout-submit-btn:active {
    background-color: #000000;
    transform: scale(0.98);
}

.checkout-submit-btn:disabled {
    background-color: #666666;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Спиннер загрузки */
.spinner {
    display: inline-block;
}

.spinner-svg {
    animation: spin 1s linear infinite;
}

.spinner-circle {
    stroke-dasharray: 50;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% { stroke-dashoffset: 50; }
    50% { stroke-dashoffset: 12.5; }
    100% { stroke-dashoffset: 50; }
}

/* Всплывающее уведомление */
.notification-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000000;
    color: #FFFFFF;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification-toast.show {
    opacity: 1;
}

.notification-toast.success {
    background-color: #000000;
    color: #FFFFFF;
}

.notification-toast.error {
    background-color: #D32F2F;
    color: #FFFFFF;
}

/* Адаптация навигации для 4 кнопок */
.bottom-nav {
    gap: 4px;
}

.nav-button {
    font-size: 11px;
}

.nav-button span:not(.nav-icon) {
    font-size: 11px;
}

@media (max-width: 480px) {
    .advent-banner {
        height: 20vh;
    }
    
    .blindbox-button {
        font-size: 16px;
        padding: 14px 18px;
    }
}

@media (max-width: 380px) {
    .advent-banner {
        height: 18vh;
    }
    
    .advent-grid {
        gap: 10px;
    }
    
    .advent-day {
        min-height: 120px;
        padding: 16px 12px;
    }
    
    .advent-day-number {
        font-size: 28px;
    }
    
    .nav-button {
        font-size: 10px;
    }
    
    .nav-button span:not(.nav-icon) {
        font-size: 10px;
    }
    
    .blindbox-button {
        font-size: 15px;
        padding: 12px 16px;
    }
}

/* ========================================
   АДАПТИВНЫЙ ДИЗАЙН ДЛЯ ДЕСКТОПА
   ======================================== */

/* Планшеты и десктопы - мобильный дизайн в узком контейнере */
@media (min-width: 768px) {
    body {
        max-width: 480px; /* Ширина как на iPhone */
        margin: 0 auto;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    }
    
    /* Сетка товаров - 2 колонки как в базовых стилях */
    /* НЕ переопределяем grid-template-columns, используем базовые repeat(2, 1fr) */
    
    /* Детальная карточка товара - для fixed элемента */
    .product-detail-view {
        left: 50%;
        transform: translateX(-50%);
        width: 480px;
        max-width: 480px;
    }
    
    /* Детальная карточка товара - изображения */
    .image-slider {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .carousel-slide img {
        max-width: 480px;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    /* Навигация */
    .bottom-nav {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Десктопы - сохраняем мобильный дизайн, только центрируем */
@media (min-width: 1024px) {
    body {
        max-width: 480px; /* Как на iPhone - узкий контейнер */
        margin: 0 auto;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    }
    
    /* Детальная карточка товара - для fixed элемента */
    .product-detail-view {
        left: 50%;
        transform: translateX(-50%);
        width: 480px;
        max-width: 480px;
    }
    
    /* Навигация */
    .bottom-nav {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Ховер эффекты для десктопа - минимальные, ненавязчивые */
@media (hover: hover) and (pointer: fine) {
    /* Карточки товаров */
    .product-card {
        cursor: pointer;
        transition: box-shadow 0.2s ease;
    }
    
    .product-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    /* Навигация */
    .nav-button {
        cursor: pointer;
        transition: opacity 0.2s ease;
    }
    
    .nav-button:hover {
        opacity: 0.7;
    }
    
    /* Кнопки */
    .add-to-cart-button,
    .checkout-button,
    .add-to-cart-btn {
        cursor: pointer;
        transition: opacity 0.2s ease;
    }
    
    .add-to-cart-button:hover,
    .checkout-button:hover,
    .add-to-cart-btn:hover {
        opacity: 0.85;
    }
    
    /* Кнопки количества */
    .quantity-btn {
        cursor: pointer;
        transition: opacity 0.2s ease;
    }
    
    .quantity-btn:hover {
        opacity: 0.7;
    }
    
    /* Кнопка удаления */
    .remove-item-btn {
        cursor: pointer;
        transition: color 0.2s ease;
    }
    
    .remove-item-btn:hover {
        color: #d32f2f;
    }
    
    /* Слайдер изображений */
    .carousel-slide {
        cursor: grab;
    }
    
    .carousel-slide:active {
        cursor: grabbing;
    }
    
    /* Точки слайдера */
    .slider-dot {
        cursor: pointer;
        transition: opacity 0.2s ease;
    }
    
    .slider-dot:hover {
        opacity: 0.8;
    }
    
    /* Баннер */
    .banner-image {
        cursor: pointer;
        transition: opacity 0.2s ease;
    }
    
    .banner-image:hover {
        opacity: 0.95;
    }
}
