/* =====================================
   СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ
   Чёрно-бело-серая тема
===================================== */

/* Общие стили */
* {
    font-family: 'Inter', sans-serif;
}

@font-face {
    font-family: 'HotDog';
    src: url('/fonts/HotDog.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* Шапка */
.header-main {
    animation: fadeIn 0.6s ease-out;
}

/* ============================
   БАННЕР — ВЫСОТА УВЕЛИЧЕНА
============================ */
.banner-section {
    position: relative;
    z-index: 10;
}

.sale-banner {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 8; /* увеличенная высота */
    border-radius: 1.5rem;
}

/* Отключаем псевдоэлементы */
.sale-banner::before,
.sale-banner::after {
    display: none !important;
}

.banner-content {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

/* Заголовок баннера */
.banner-text h2 {
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

/* Описание баннера */
.banner-text p {
    color: white;
    opacity: 0.85;
    font-weight: 500;
}

/* Кнопка */
.banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border-radius: 10px;
    white-space: nowrap;
    min-width: 96px;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: transform .15s ease, background-color .15s ease;
}

.banner-btn:hover {
    transform: scale(1.05);
}

/* ---------- Мобильная версия ---------- */
/* ---------- Мобильная версия ---------- */
@media (max-width: 768px) {

    .sale-banner {
        aspect-ratio: 16 / 8; /* сохраняем увеличенную высоту */
    }

    .banner-content {
        flex-direction: column !important; /* столбик */
        justify-content: center !important;
        align-items: center !important;
        padding: 1rem !important;
        text-align: center !important;
        gap: 0.75rem; /* расстояние между заголовком и кнопкой */
    }

    .banner-text {
        max-width: 100%;
        overflow: hidden;
    }

    /* Увеличенный заголовок в 2 раза */
    .banner-text h2 {
        font-size: 2.7rem !important; /* было 1.35rem → ×2 */
        line-height: 1.2 !important;
        margin-bottom: 0 !important;
        word-break: break-word !important;
    }

    .banner-text p {
        display: none !important; /* скрываем описание */
    }

    .banner-btn {
        max-width: none;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-width: 84px;
        flex-shrink: 0;
        margin-top: 0.5rem; /* отступ от заголовка */
    }
}

/* Очень узкие экраны <420px */
@media (max-width: 420px) {
    .banner-btn {
        padding: 0.45rem 0.8rem;
        font-size: 0.8rem;
        min-width: 72px;
    }

    .banner-text h2 {
        font-size: 2.4rem !important; /* немного меньше, чтобы помещалось на очень узких экранах */
    }
}

/* ============================
   Блок с преимуществами
============================ */
.advantages-section {
    margin-top: -1rem;
    padding-top: 4rem !important;
    position: relative;
    z-index: 0;
}

.advantage-card {
    animation: fadeIn 0.8s ease-out;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    will-change: transform;
}

.advantage-card:hover {
    transform: translateY(-5px) !important;
}

.icon-wrapper {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    will-change: transform;
}

.advantage-card:hover .icon-wrapper {
    transform: scale(1.1) !important;
}

/* ============================
   Категории
============================ */
.category-card {
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.category-btn {
    transition: all 0.3s ease;
}

.category-card:hover .category-btn {
    background: #000000;
    color: white;
}

/* ============================
   Нижнее меню
============================ */
.bottom-nav {
    animation: fadeIn 0.6s ease-out;
}

.bottom-nav-container {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.bottom-nav-item {
    transition: all 0.3s ease;
}

.bottom-nav-item:hover {
    transform: scale(1.05);
}

.cart-badge {
    animation: pulse-slow 2s ease-in-out infinite;
}

/* ============================
   Футер
============================ */
.footer-main {
    animation: fadeIn 0.8s ease-out;
}

/* ============================
   Адаптивность категорий
============================ */
@media (max-width: 768px) {
    .category-card {
        margin-bottom: 0;
    }
}
