/* --- 1. CORE VARIABLES & FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --primary: #111111;
    --accent: #D4AF37;       /* Золотой (Бренд) */
    --badge-hit: #111111;    /* Черный (Хит) */
    --badge-sale: #EBC806;   /* Желтый (Акция) */
    --bg-cream: #FDFBF4;     /* Кремовый (Доставка) */
    --secondary: #6c757d;
    --border-color: #ededed;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 20px rgba(0,0,0,0.04);
    
    /* Шрифты */
    --font-main: 'Montserrat', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

/* --- 2. GLOBAL STYLES --- */
html, body { height: 100%; margin: 0; }

body {
    font-family: var(--font-main);
    background-color: #fff;
    color: var(--primary);
    display: flex; flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    font-weight: 400;
}

main { flex: 1 0 auto; padding-top: 76px; } /* Отступ под фиксированную шапку */
body.auth-page main { padding-top: 0; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
a:hover { color: var(--accent); }

.font-serif { font-family: var(--font-serif) !important; }
.letter-spacing-1 { letter-spacing: 0.1em; }
.letter-spacing-2 { letter-spacing: 0.2em; }

/* --- 3. NAVBAR --- */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 12px 0; z-index: 1050;
}
.brand-logo {
    font-family: var(--font-main); text-transform: uppercase;
    letter-spacing: 0.15em; display: inline-flex; align-items: center;
    color: var(--primary); font-size: 1.1rem;
}
.brand-logo b { font-weight: 700; }
.brand-logo i { font-style: normal; font-weight: 300; margin-left: 2px; }
.brand-logo::after {
    content: ''; display: inline-block; width: 5px; height: 5px;
    background-color: var(--accent); border-radius: 50%;
    margin-left: 8px; margin-bottom: 2px;
}

/* Счетчик на иконках */
.badge-fav {
    position: absolute; top: 2px; right: -5px;
    background: var(--accent); color: #fff;
    font-size: 0.55rem; min-width: 16px; height: 16px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 800; z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.badge-fav.bump { animation: cartBump 0.3s ease-out; }
@keyframes cartBump { 0% { transform: scale(1); } 50% { transform: scale(1.4); } 100% { transform: scale(1); } }

/* --- 4. BUTTONS --- */
/* Кнопки на баннере (Строго прозрачные с белой рамкой) */
.btn-hero {
    background-color: transparent !important;
    color: #fff !important;
    border: 1px solid #fff !important;
    border-radius: 0;
    font-weight: 600; font-size: 0.75rem;
    letter-spacing: 0.15em; padding: 16px 40px;
    text-transform: uppercase; transition: var(--transition);
    min-width: 200px; display: inline-block; text-align: center;
}
.btn-hero:hover {
    background-color: #fff !important; color: #000 !important;
    transform: translateY(-2px);
}

/* Кнопка "В корзину" (Черная) */
.btn-booking {
    display: block; width: 100%;
    background: #111; color: #fff !important;
    border: 1px solid #111; padding: 14px 5px;
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    text-align: center; transition: var(--transition);
    border-radius: 0; margin-top: auto;
}
.btn-booking:hover { background: var(--accent); color: #000 !important; border-color: var(--accent); }

/* Кнопка "Написать нам" */
.btn-outline-light-custom {
    border: 1px solid #fff; color: #fff; border-radius: 0;
    padding: 15px 40px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em; transition: 0.3s;
}
.btn-outline-light-custom:hover { background: #fff; color: #000; }

/* Кнопка входа */
.btn-auth-submit {
    background: #111; color: #fff; border: none; border-radius: 0;
    letter-spacing: 0.15em; font-weight: 700; text-transform: uppercase;
    transition: var(--transition); padding: 16px;
}

/* --- 5. HERO SECTION --- */
.hero-section {
    position: relative; height: 85vh; min-height: 550px; background: #000;
    display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../img/banner.png'); background-size: cover; background-position: center;
    opacity: 0.65; transition: transform 8s ease;
}
.hero-section:hover .hero-bg { transform: scale(1.05); }
.hero-content { position: relative; z-index: 2; padding: 0 20px; color: #fff; max-width: 900px; }
.hero-title { font-family: var(--font-serif); font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 15px; }

/* Полоска доставки */
.shipping-strip {
    background-color: var(--bg-cream);
    color: #6B5B3E; font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 15px 0; text-align: center; border-bottom: 1px solid #f0f0f0;
}
.shipping-strip i { margin-right: 10px; font-size: 0.9rem; }

/* --- 6. PRODUCT CARDS & BADGES --- */
.product-card {
    background: #fff; border: 1px solid #f4f4f4 !important;
    transition: var(--transition); height: 100%; position: relative;
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); border-color: var(--accent) !important; box-shadow: var(--shadow-sm); }

.pc-img-wrap {
    position: relative; padding-top: 100%; background: #fdfdfd;
    overflow: hidden; cursor: pointer;
}
.pc-img-wrap img {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 85%; max-height: 85%; transition: 0.6s ease; mix-blend-mode: multiply;
}

.pc-body { padding: 15px 12px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.pc-brand { font-size: 0.65rem; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 5px; }
.pc-title { font-family: var(--font-serif); font-size: 1rem; font-weight: 500; height: 2.4em; overflow: hidden; margin-bottom: 12px; color: #000; }
.pc-price { font-weight: 700; font-size: 1.1rem; color: #111; margin-bottom: 12px; }

.pc-volumes { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; min-height: 28px; }
.pc-volumes span { display: inline-block; padding: 3px 8px; border: 1px solid #eee; background: #fff; font-size: 0.7rem; cursor: pointer; transition: 0.2s; }
.pc-volumes span.active { background: #111; color: #fff; border-color: #111; }
.pc-volumes span.out-of-stock { opacity: 0.3; text-decoration: line-through; cursor: not-allowed; }

/* СТЕК БЕЙДЖЕЙ (ВЕРТИКАЛЬНЫЙ СПИСОК) */
.pc-badges-wrapper { position: absolute; top: 0; left: 0; z-index: 10; display: flex; flex-direction: column; align-items: flex-start; }
.pc-badge {
    position: relative; background: var(--badge-hit); color: #fff;
    font-size: 0.6rem; font-weight: 800; padding: 6px 14px;
    text-transform: uppercase; letter-spacing: 0.1em; width: fit-content;
}
.pc-badge.action { background: var(--badge-sale); color: #111; }

.pc-like {
    position: absolute; top: 10px; right: 10px; z-index: 5;
    background: rgba(255,255,255,0.95); width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); cursor: pointer; transition: 0.2s; color: #ccc;
}
.pc-like:hover, .pc-like.active { transform: scale(1.1); color: #dc3545; }

/* --- 7. PHILOSOPHY & ABOUT --- */
.philosophy-section { padding: 100px 0; background-color: #fff; }
.about-img-container { position: relative; display: inline-block; padding: 30px; }
.about-img-container img { width: 100%; max-width: 500px; position: relative; z-index: 2; box-shadow: var(--shadow-sm); }

/* Золотые уголки */
.decor-corner { position: absolute; width: 100px; height: 100px; border: 3px solid var(--accent); z-index: 1; }
.decor-corner-tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.decor-corner-br { bottom: 0; right: 0; border-left: none; border-top: none; }

.about-subtitle { color: var(--accent); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; display: block; margin-bottom: 15px; }
.about-title { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 30px; }
.about-description { color: #888; line-height: 1.8; font-size: 0.95rem; margin-bottom: 45px; }

/* Карточки преимуществ */
.advantage-card { background: #fff; border: 1px solid #f9f9f9; padding: 40px 25px; height: 100%; transition: 0.3s; }
.advantage-card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.advantage-icon { color: var(--accent); font-size: 1.5rem; margin-bottom: 15px; display: block; }
.advantage-title { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; margin-bottom: 10px; }
.advantage-desc { font-size: 0.8rem; color: #999; line-height: 1.5; }

/* --- 8. REVIEWS --- */
.reviews-section { padding: 80px 0 120px; background: #fff; text-align: center; }
.quote-icon { color: var(--accent); font-size: 2rem; margin-bottom: 30px; display: block; }
.review-text { font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: #555; max-width: 800px; margin: 0 auto 30px; line-height: 1.6; }
.review-author { font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); }

/* --- 9. ACCOUNT SIDEBAR (PREMIUM) --- */
.profile-sidebar-header { padding: 40px 20px; text-align: center; background: linear-gradient(to bottom, #ffffff, #fcfcfc); border-bottom: 1px solid #f0f0f0; }
.profile-avatar-wrap {
    width: 90px; height: 90px; margin: 0 auto 15px; border-radius: 50%;
    border: 2px solid var(--accent); padding: 4px; display: flex; align-items: center; justify-content: center;
    background: #fff; color: #ddd;
}
.profile-avatar-wrap i { font-size: 3.5rem; color: #111; }
.profile-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; margin-bottom: 5px; color: #000; }
.account-nav { list-style: none; padding: 20px 0; margin: 0; }
.account-nav li a {
    display: flex; align-items: center; padding: 16px 30px; color: #666; font-weight: 600; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.15em; border-left: 4px solid transparent; transition: 0.3s;
}
.account-nav li a i { width: 28px; font-size: 1.1rem; margin-right: 15px; color: #999; transition: 0.3s; }
.account-nav li a:hover { background-color: #fdfdfd; color: #000; padding-left: 38px; }
.account-nav li a:hover i { color: var(--accent); }
.account-nav li.active a { background-color: #fff; color: #000; border-left-color: var(--accent); box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.account-nav li.active a i { color: var(--accent); }

/* --- 10. КОРЗИНА: ФИКС ИЗОБРАЖЕНИЙ --- */
.cart-item { display: flex; align-items: center; padding: 15px; border-bottom: 1px solid #f0f0f0; gap: 15px; background: #fff; }
.cart-item-img {
    width: 70px !important; height: 90px !important; min-width: 70px;
    object-fit: contain !important; mix-blend-mode: multiply; background: #f9f9f9; border-radius: 4px;
}
.cart-item-info { flex: 1; }
.cart-item-brand { font-size: 0.65rem; color: var(--secondary); text-transform: uppercase; letter-spacing: 1px; }
.cart-item-title { font-family: var(--font-serif); font-size: 0.95rem; font-weight: 700; color: #111; }
.cart-item-meta { font-size: 0.75rem; color: #888; margin-top: 4px; }
#cartItemsContainer { max-height: 400px; overflow-y: auto; margin-bottom: 20px; }
.cart-qty-ctrl { display: flex; align-items: center; background: #f8f8f8; padding: 2px 5px; border-radius: 4px; width: fit-content; margin-top: 8px; }
.btn-qty { border: none; background: none; font-size: 1rem; cursor: pointer; color: #555; padding: 0 8px; }
.qty-val { font-size: 0.85rem; font-weight: 700; min-width: 25px; text-align: center; }
.cart-item-remove { margin-left: 10px; color: #ccc; cursor: pointer; transition: 0.3s; font-size: 0.9rem; }
.cart-item-remove:hover { color: #dc3545; }

/* --- 11. CTA & FOOTER --- */
.not-found-section { background-color: #111; color: #fff; padding: 80px 0; text-align: center; }
.not-found-title { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 15px; }
.not-found-text { color: #999; font-size: 0.9rem; max-width: 600px; margin: 0 auto 40px; line-height: 1.6; }
.footer-premium { background: #0d0d0d; color: #fff; padding: 80px 0 40px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-text { color: #777; font-size: 0.85rem; line-height: 1.6; max-width: 300px; }
.footer-header { font-size: 0.7rem; font-weight: 800; letter-spacing: 2px; margin-bottom: 25px; color: #fff; }
.footer-bottom { margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; color: #333; font-size: 0.7rem; }

/* --- 12. RESPONSIVE --- */
@media (max-width: 991px) {
    .hero-title { font-size: 2.2rem; }
    .btn-hero { padding: 14px 20px; min-width: auto; width: 100%; margin-bottom: 10px; }
    .philosophy-section { padding: 60px 0; }
    .decor-corner { width: 60px; height: 60px; }
    .about-img-container { margin-bottom: 40px; }
    .account-nav { display: flex !important; overflow-x: auto; background: #fff; border-bottom: 1px solid #eee; padding: 0; }
    .account-nav li { flex: 0 0 auto; }
    .account-nav li a { flex-direction: column; padding: 15px 20px !important; font-size: 0.65rem !important; border-left: none !important; border-bottom: 3px solid transparent; text-align: center; }
    .account-nav li.active a { border-bottom-color: var(--accent) !important; background: transparent; box-shadow: none; }
    .profile-sidebar-header { display: none; }
}

@media (max-width: 576px) {
    .pc-body { padding: 10px 8px; }
    .pc-title { font-size: 0.85rem; }
    .shipping-strip { font-size: 0.6rem; }
    .not-found-title { font-size: 1.5rem; }
}