/* --- БАЗОВЫЕ ОБНУЛЕНИЯ И ПЕРЕМЕННЫЕ --- */
:root {
    --bg-dark: #120b06;      /* Глубокий благородный темный из макета */
    --bg-card: #1c130c;      /* Чуть светлее для блоков и карточек */
    --text-light: #f5f5f5;   /* Чистый мягкий текст */
    --text-muted: #a69c94;   /* Приглушенный текст */
    --gold: #c5a880;         /* Фирменное золото */
    --gold-hover: #e0c59e;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1140px; /* Фиксированная рабочая зона как на референсе */
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- 1. ШАПКА САЙТА (ВНУТРИ БАННЕРА) --- */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
}

.logo-main {
    display: block;
    font-family: var(--font-serif);
    font-size: 20px;
    letter-spacing: 4px;
    color: var(--gold);
    text-align: center;
}
.logo-sub {
    display: block;
    font-size: 8px;
    letter-spacing: 5px;
    color: #ffffff;
    text-align: center;
    margin-top: 2px;
}

/* --- 2. HERO SECTION (АККУРАТНЫЙ БАННЕР В ЦЕНТРЕ) --- */
.hero-wrapper-outer {
    width: 100%;
    background-color: var(--bg-dark);
    padding: 0; /* Убираем любые рамки и отступы сверху/снизу */
}

.hero-section {
    position: relative;
    width: 100%;
    max-width: 100%; /* Растягиваем баннер на всю ширину экрана */
    min-height: 560px; /* Хорошая глубина для мобилки */
    background: linear-gradient(rgba(18, 11, 6, 0.35), rgba(18, 11, 6, 0.45)), url('images/banner_woman_2.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    border-radius: 0; /* Убираем скругления, баннер должен монолитно входить в края */
    overflow: hidden;
}

.hero-content {
    padding: 160px 0 60px 0; /* Отступы внутри контейнера, боковые убираем, так как сработает .container */
    text-align: left;
    position: relative;
    z-index: 10;
}

.hero-subtitle {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--gold);
    display: block;
    margin-bottom: 15px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 32px;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 15px;
}
.hero-title em {
    font-style: italic;
}

.hero-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    margin-bottom: 30px;
    max-width: 290px;
}

.btn-primary {
    display: inline-block;
    border: 1px solid var(--gold);
    padding: 12px 28px;
    font-size: 10px;
    letter-spacing: 2px;
    color: #ffffff;
    background: rgba(18, 11, 6, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--gold);
    color: var(--bg-dark);
}

/* ==========================================================================
   3. КАТЕГОРИИ (ИСПРАВЛЕННАЯ СЕТКА)
   ========================================================================= */
.categories-section {
    padding: 20px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr; /* На мобилке — строго вертикальный ряд */
    gap: 15px;
    width: 100%;
}

.category-card {
    position: relative;
    width: 100%;
    height: 300px; /* Задаем четкую базовую высоту на мобилках */
    overflow: hidden;
    display: block;
    border-radius: 2px;
}

/* Полный фикс отображения картинок-рубрик */
.category-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.category-card:hover .category-img {
    transform: scale(1.05); /* Легкий эффект зума при наведении */
}

/* Затемняющий градиент снизу, чтобы буквы считывались */
.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(18, 11, 6, 0.7) 0%, rgba(18, 11, 6, 0) 50%);
    z-index: 1;
}

.category-info {
    position: absolute;
    bottom: 25px;
    left: 25px;
    z-index: 2;
}

.category-info h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    letter-spacing: 2px;
    font-weight: 400;
    margin-bottom: 5px;
    color: #ffffff;
}

.discover-link {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--gold);
}

/* --- 4. NEW ARRIVALS (PREVIEW) --- */
.arrivals-section {
    padding: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid rgba(197, 168, 128, 0.1);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 22px;
    letter-spacing: 2px;
    font-weight: 400;
}

.view-all {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.products-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.product-mini-card {
    background-color: var(--bg-card);
}

.prod-img-wrap {
    position: relative;
    background-color: #281b10;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.prod-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--gold);
    color: var(--bg-dark);
    font-size: 9px;
    font-weight: bold;
    padding: 2px 6px;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.prod-meta {
    padding: 15px 10px;
}

.prod-meta h4 {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    color: var(--gold);
    font-weight: 500;
}

/* --- 5. BENEFITS SECTION --- */
.benefits-section {
    padding: 30px 0;
    border-top: 1px solid rgba(197, 168, 128, 0.1);
    border-bottom: 1px solid rgba(197, 168, 128, 0.1);
    margin: 20px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.benefit-item h5 {
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 400;
    color: var(--text-muted);
}

/* --- 6. REVIEWS SECTION --- */
.reviews-section {
    padding: 40px 0;
}

.section-title-center {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 24px;
    letter-spacing: 2px;
    font-weight: 400;
    margin-bottom: 30px;
}

.review-card {
    background-color: var(--bg-card);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid rgba(197, 168, 128, 0.05);
}

.stars {
    margin-bottom: 15px;
    font-size: 12px;
}

.review-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 15px;
}

.review-author {
    font-size: 12px;
    color: var(--gold);
    letter-spacing: 1px;
}

/* --- 7. FOOTER --- */
.footer {
    background-color: #0d0805;
    padding: 30px 0;
    border-top: 1px solid rgba(197, 168, 128, 0.1);
    font-size: 12px;
    color: var(--text-muted);
}

.footer-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    color: var(--gold);
}


/* ==========================================================================
   МЕДИА-ЗАПРОСЫ ДЛЯ ПК-ВЕРСИИ (DESKTOP ОТ 768px КОМПЫ И ПЛАНШЕТЫ)
   ========================================================================== */

@media (min-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .hero-wrapper-outer {
        padding: 20px 0; /* Возвращаем отступы на ПК, чтобы баннер встал в сетку */
    }

    .header {
        padding: 35px 0;
    }
    .logo-main { font-size: 32px; letter-spacing: 6px; }
    .logo-sub { font-size: 10px; letter-spacing: 7px; }
    
    .hero-section {
        max-width: 1140px; /* Ограничиваем рабочей областью на ПК */
        margin: 0 auto;    /* <--- ВОТ ЭТО ВЫРАВНЯЕТ БАННЕР КРАСИВО ПО ЦЕНТРУ ЭКРАНА! */
        min-height: 650px; /* Делаем баннер глубже на ПК */
        
        /* Включаем радиальный градиент ТОЛЬКО для ПК: 
           он мягко растворит края баннера в темноту body */
        background: 
            radial-gradient(circle, rgba(18, 11, 6, 0.1) 0%, #120b06 80%), 
            url('images/banner_woman_2.png') no-repeat center center; /* Фиксируем центровку картинки */
        background-size: cover;
    }
    
    .hero-content {
        padding: 80px 0 80px 20px; /* Красиво сажаем текст внутри нашей сетки */
        max-width: 500px; /* Ограничиваем ширину текста, чтобы он не растягивался на пол-экрана */
    }
    
    .hero-title {
        font-size: 52px;
    }
    
    .hero-text {
        font-size: 15px;
        max-width: 380px;
    }

    /* На ПК категории красиво выстраиваются в 4 колонки в ряд */
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .category-card {
        height: 440px; /* Увеличиваем высоту плиток на десктопе */
    }

    /* Превью товаров (4 в ряд на ПК) */
    .products-preview-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Преимущества (4 в ряд горизонтально) */
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Футер в одну линию */
    .footer-wrap {
        flex-direction: row;
        justify-content: space-between;
    }
}