/* ===== catalog.css — Полный файл для внутренних страниц ===== */

/* 1. Глобальные настройки для каталога */
:root {
    --color-white: #ffffff;
    --color-btn-green: #6b9a44;
    --color-btn-green-hover: #5a8539;
    --color-prices-bg: #1a2229;
    --font-display: "Etude Noire", serif;
    --font-body: "Farabee", sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-prices-bg);
    color: var(--color-white);
    font-family: var(--font-body);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. ИСПРАВЛЕННАЯ ШАПКА (Фикс бургера) */
.site-header {
    background: rgba(42, 50, 61, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    flex-wrap: nowrap; /* Важно: предотвращает развал шапки */
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    min-width: 0;
}

.logo__main {
    font-family: var(--font-display);
    font-size: 26px;
    color: #fff;
    line-height: 1;
}

.logo__sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav__link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav__link:hover, .nav__link.active {
    color: var(--color-btn-green);
}

.btn--callback {
    background: var(--color-btn-green);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

/* Бургер (по умолчанию скрыт) */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-shrink: 0;
}

.header__burger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* 3. СЕТКА ТОВАРОВ И КАТЕГОРИЙ */
.catalog-section {
    padding: 60px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 42px;
    text-align: center;
    margin-bottom: 40px;
}

/* Сетка категорий */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}


/* Карточки товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-card__image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.product-card__title { font-size: 20px; margin: 0; }
.product-card__price { font-size: 22px; color: var(--color-btn-green); font-weight: bold; }

/* 4. МОБИЛЬНАЯ АДАПТАЦИЯ */
@media (max-width: 992px) {
    .header__burger { display: flex; }

    .nav {
        background-color: #2a323d !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        padding: 80px 40px;
        transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    html body .site-header .nav {
        background-color: #2a323d !important; /* Тёмно-серый, как шапка */
        background: #2a323d !important;      /* На всякий случай сбрасываем градиент */
    }

    /* Цвет ссылок в мобильном меню, чтобы они не сливались */
    .nav__link {
        color: rgba(255, 255, 255, 0.9) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .nav--open { right: 0; }

    .btn--callback { display: none; } /* Скрываем в шапке, можно добавить в меню */

    .section-title { font-size: 32px; }
}

@media (max-width: 480px) {
    .site-header__inner { height: 70px; }
    .logo__main { font-size: 20px; }
    .logo__sub { font-size: 10px; }
    .container { padding: 0 15px; }
}

/* Переопределение зелёного фона на мобильных (из index.css) */
@media (max-width: 480px) {
    body {
        background-image: url("../../images/pattern.svg") !important;
        background-repeat: repeat !important;
        background-color: var(--color-prices-bg, #1a2229) !important;
        background-attachment: scroll !important;
        background: none; /* сброс градиента */
        background-image: url("../../images/pattern.svg");
        background-repeat: repeat;
        background-color: #1a2229;
    }
}