/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    /* ПАЛИТРА С КАРТИНКИ "ACCESSORIES" */
    
    /* 1. Фон: Цвет шелковой ткани (Бежевый Латте) */
    --bg-page: #e6dcd1;       
    
    /* 2. Карточки: Чуть светлее фона, но не кипенно-белые */
    --bg-card: #f2ebe5;       
    
    /* 3. Основной цвет: Какао / Молочный шоколад (как плашка на фото) */
    --color-primary: #7d5d54; 
    
    /* 4. Акцент: Приглушенное матовое золото */
    --color-accent: #c4a06d;  
    
    /* 5. Текст: Темный кофе (мягче черного) */
    --color-text: #4e3b31;    
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --radius: 4px; /* Острые углы или чуть скругленные (как на фото) */
    --shadow: 0 10px 30px rgba(125, 93, 84, 0.1); /* Коричневая тень */
}

/* --- ВАЖНО: ЭТО ДЕЛАЕТ КАРТИНКИ НОРМАЛЬНЫМИ --- */
* { box-sizing: border-box; }

/* Применяем новый фон ко всему сайту */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--bg-page); /* Бежевый фон */
    color: var(--color-text);         /* Кофейный текст */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Чтобы картинки не вылезали за экран */
img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* Хедер */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

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

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.logo span { color: var(--color-accent); font-style: italic; }

nav ul { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; }
nav a { color: var(--color-primary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }

/* Кнопки */
.btn-gold {
    background-color: var(--color-primary);
    color: var(--color-accent);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    border: 1px solid var(--color-primary);
    text-align: center;
}

/* HERO */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 70vh; /* Высота баннера */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}
.hero-content { position: relative; z-index: 2; }
.hero-content h1 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 15px; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }

/* Карточки */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.product-card { background: transparent; }

.img-wrapper {
    position: relative;
    padding-top: 130%; 
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: 5px 5px 20px rgba(62, 39, 35, 0.1); 
}
.img-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

.card-info {
    background: white; padding: 15px;
    border-radius: 0 0 var(--radius) var(--radius);
    text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.prod-title { font-family: var(--font-heading); font-size: 1rem; color: var(--color-primary); margin: 5px 0; }
.price { color: var(--color-accent); font-weight: 600; }

/* Подвал */
footer { background: var(--color-primary); color: #efebe0; padding: 30px 0; text-align: center; margin-top: auto; }

/* Адаптив */
@media (max-width: 768px) {
    .nav-flex { flex-direction: column; gap: 15px; }
    .hero-content h1 { font-size: 2rem; }
}