/* ===== ОСНОВНЫЕ СТИЛИ ===== */
:root {
    --primary-light: #F8F5F0;
    --primary-dark: #1A1A1A;
    --accent: #C9A86A;
    --accent-dark: #8B4513;
    --text-light: #666;
    --text-dark: #333;
    --shadow: 0 8px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
	
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: 
        radial-gradient(circle at 20% 80%, rgba(201, 168, 106, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(201, 168, 106, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(201, 168, 106, 0.05) 0%, transparent 30%),
        linear-gradient(135deg, var(--primary-light) 0%, #F0ECE3 100%);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-attachment: scroll;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Основной контент */
main {
    flex: 1 0 auto;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 0;
    background: rgba(248, 245, 240, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary-dark);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.cart-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-dark);
    cursor: pointer;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-btn:hover {
    background: rgba(201, 168, 106, 0.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.profile-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.wheel-btn {
    background: none;
    border: none;
    font-size: 1.15rem;
    color: var(--text-dark);
    cursor: pointer;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.wheel-btn:hover {
    background: rgba(201, 168, 106, 0.12);
    color: var(--accent-dark);
}

.profile-btn:hover,
.profile-btn.is-logged-in {
    background: rgba(201, 168, 106, 0.12);
    color: var(--accent-dark);
}

.wheel-modal-shell {
    position: fixed;
    inset: 0;
    z-index: 12100;
    display: none;
}

.wheel-modal-shell.active {
    display: block;
}

.wheel-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 10, 8, 0.68);
    backdrop-filter: blur(7px);
}

.wheel-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(94vw, 460px);
    max-height: min(90vh, 760px);
    overflow: auto;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    background:
        radial-gradient(circle at 20% 15%, rgba(201, 168, 106, 0.22), transparent 34%),
        linear-gradient(135deg, #1a150d 0%, #302410 50%, #15120c 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    padding: 24px;
    color: #fff8ea;
}

.wheel-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.wheel-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    line-height: 1;
    margin: 0;
}

.wheel-modal-subtitle {
    margin: 8px 0 0;
    color: rgba(255, 248, 234, 0.72);
}

.wheel-close-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff8ea;
    cursor: pointer;
    font-size: 1.25rem;
}

.wheel-stage {
    position: relative;
    width: min(300px, 78vw);
    aspect-ratio: 1;
    margin: 10px auto 18px;
    display: grid;
    place-items: center;
}

.wheel-pointer {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 24px solid #fff8ea;
    transform: translateX(-50%);
    z-index: 3;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.24));
}

.wheel-disc {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        #c9a86a 0 72deg,
        #fff1cc 72deg 144deg,
        #8b5d1f 144deg 216deg,
        #f4d68e 216deg 288deg,
        #4b3214 288deg 360deg
    );
    border: 8px solid rgba(255, 248, 234, 0.92);
    box-shadow: inset 0 0 0 1px rgba(26,26,26,0.16), 0 18px 44px rgba(0,0,0,0.3);
    transition: transform 4.2s cubic-bezier(0.12, 0.72, 0.08, 1);
}

.wheel-disc::after {
    content: '';
    position: absolute;
    inset: 50%;
    width: 72px;
    height: 72px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #15120c;
    border: 5px solid #fff8ea;
    box-shadow: 0 8px 22px rgba(0,0,0,0.28);
}

.wheel-labels {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.wheel-label {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    margin-left: -29px;
    margin-top: -11px;
    color: #1a1a1a;
    font-weight: 900;
    font-size: 1.02rem;
    line-height: 1;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 248, 234, 0.45);
}

.wheel-center-btn {
    position: absolute;
    z-index: 2;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: none;
    background: #c9a86a;
    color: #1a1a1a;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0,0,0,0.24);
}

.wheel-center-btn:disabled {
    opacity: 0.68;
    cursor: wait;
}

.wheel-result {
    display: none;
    margin-top: 14px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.wheel-result.visible {
    display: block;
}

.wheel-code {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 11px 12px;
    border-radius: 7px;
    background: rgba(255, 248, 234, 0.95);
    color: #1a1a1a;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.wheel-copy-btn {
    min-height: 34px;
    border: none;
    border-radius: 6px;
    padding: 0 10px;
    background: #1a1a1a;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.wheel-message {
    min-height: 22px;
    color: rgba(255, 248, 234, 0.78);
    text-align: center;
}

@media (max-width: 560px) {
    .wheel-modal {
        padding: 20px;
    }

    .wheel-modal-title {
        font-size: 1.7rem;
    }
}

.auth-modal-shell {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
}

.auth-modal-shell.active {
    display: block;
}

.auth-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 10, 8, 0.58);
    backdrop-filter: blur(6px);
}

.auth-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(92vw, 420px);
    max-height: min(86vh, 680px);
    overflow: auto;
    transform: translate(-50%, -50%);
    background: #fffaf2;
    border: 1px solid rgba(201, 168, 106, 0.28);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    padding: 26px;
}

.auth-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.auth-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem;
    line-height: 1.15;
    color: var(--primary-dark);
}

.auth-modal-subtitle {
    margin-top: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.auth-close-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.06);
    color: var(--primary-dark);
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 4px;
    border-radius: 8px;
    background: rgba(201, 168, 106, 0.12);
    margin-bottom: 18px;
}

.auth-tab {
    min-height: 40px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-dark);
    cursor: pointer;
    font-weight: 600;
}

.auth-tab.active {
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    color: var(--accent-dark);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: grid;
    gap: 14px;
}

.auth-field {
    display: grid;
    gap: 7px;
}

.auth-field label {
    font-size: 0.86rem;
    color: var(--text-light);
    font-weight: 600;
}

.auth-field input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(26, 26, 26, 0.12);
    border-radius: 7px;
    background: #fff;
    padding: 0 13px;
    font: inherit;
    color: var(--text-dark);
}

.auth-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.16);
}

.auth-submit-btn,
.auth-logout-btn {
    min-height: 48px;
    border: none;
    border-radius: 7px;
    background: var(--accent);
    color: #1a1a1a;
    cursor: pointer;
    font-weight: 700;
}

.auth-submit-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.auth-link-btn {
    border: none;
    background: transparent;
    color: var(--accent-dark);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 4px 0 0;
    text-align: center;
}

.auth-link-btn:hover {
    text-decoration: underline;
}

.auth-logout-btn {
    width: 100%;
    margin-top: 16px;
    background: #1a1a1a;
    color: #fff;
}

#authAccountBtn {
    width: 100%;
    margin-top: 16px;
}

#authAccountBtn + .auth-logout-btn {
    margin-top: 10px;
}

.auth-message {
    display: none;
    margin: 0 0 14px;
    padding: 12px;
    border-radius: 7px;
    font-size: 0.92rem;
    line-height: 1.45;
}

.auth-message.visible {
    display: block;
}

.auth-message.ok {
    background: #eef8ef;
    color: #245c2a;
}

.auth-message.error {
    background: #fff0ed;
    color: #9b2f20;
}

.auth-profile-card {
    display: none;
    padding: 16px;
    border-radius: 8px;
    background: rgba(201, 168, 106, 0.1);
    border: 1px solid rgba(201, 168, 106, 0.18);
}

.auth-profile-card.active {
    display: block;
}

.auth-profile-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.auth-profile-email {
    color: var(--text-light);
    word-break: break-word;
}

/* ===== HERO СЕКЦИЯ ===== */
/* Добавим эти стили в файл style.css в раздел HERO СЕКЦИЯ */
.hero-title,
.hero-subtitle,
.hero-buttons .btn {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-buttons .btn {
    border-color: white;
}
/* ===== HERO СЛАЙДЕР ===== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 30%, rgba(201, 168, 106, 0.16), transparent 28%),
        radial-gradient(circle at 82% 68%, rgba(255, 214, 143, 0.12), transparent 30%);
    z-index: 0;
    pointer-events: none;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(26, 26, 26, 0.7), rgba(26, 26, 26, 0.3));
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    position: relative;
}

.hero-inner {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 360px);
    align-items: center;
    gap: clamp(2rem, 4vw, 4.5rem);
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 760px;
    text-align: left;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(248, 245, 240, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    color: #f4dfb2;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-note {
    max-width: 38rem;
    color: rgba(255, 244, 225, 0.85);
    font-size: 1rem;
    line-height: 1.7;
    animation: fadeUp 1s 0.45s ease both;
}

.hero-video-shell {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-video-shell::before {
    content: '';
    position: absolute;
    width: min(78vw, 420px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 106, 0.28) 0%, rgba(201, 168, 106, 0.06) 38%, transparent 68%);
    filter: blur(12px);
    z-index: 0;
}

.hero-video-card {
    position: relative;
    width: min(100%, 340px);
    aspect-ratio: 9 / 16;
    border-radius: 32px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
        rgba(20, 16, 12, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.hero-video-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 9, 6, 0.06), rgba(12, 9, 6, 0.42));
    pointer-events: none;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-video-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(16, 12, 9, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff0cf;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 2;
}

.hero-video-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(20, 15, 11, 0.18), rgba(20, 15, 11, 0.78));
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff8e9;
    font-size: 0.95rem;
    line-height: 1.45;
    z-index: 2;
    backdrop-filter: blur(8px);
}

/* Кнопки слайдера */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: rgba(201, 168, 106, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Индикаторы слайдов */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

.indicator.active {
    background: var(--accent);
    border-color: var(--accent);
}

/* Адаптивность для слайдера */
@media (max-width: 768px) {
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .slider-indicators {
        bottom: 20px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .hero {
        padding: 6rem 1rem 3rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-note {
        margin: 0 auto;
    }

    .hero-video-card {
        width: min(72vw, 320px);
    }
}
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--accent-dark);
    margin-bottom: 3rem;
    animation: fadeUp 1s 0.3s ease both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 1s 0.6s ease both;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-size: 0.9rem;
    animation: fadeIn 1s 1s ease both;
}

.arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 500;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-secondary:hover {
    background: rgba(201, 168, 106, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

.btn-checkout {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary-dark);
    color: white;
    font-size: 1.1rem;
    border-radius: 10px;
}

.btn-checkout:hover:not(:disabled) {
    background: #333;
    transform: translateY(-2px);
}

.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== КАТАЛОГ ===== */
.catalog {
    padding: 6rem 0;
}

/* ===== SEO LANDING PAGES ===== */
.seo-links-section {
    padding: 2rem 0 5rem;
}

.seo-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.seo-link-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(201, 168, 106, 0.22);
    border-radius: 22px;
    padding: 1.6rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.seo-link-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 168, 106, 0.5);
}

.seo-link-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    margin-bottom: 0.7rem;
    color: var(--primary-dark);
}

.seo-link-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.seo-link-card span {
    color: var(--accent-dark);
    font-weight: 600;
}

.catalog-faq-cta {
    padding: 0 0 4rem;
}

.catalog-faq-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.6rem 1.8rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(248, 245, 240, 0.98));
    border: 1px solid rgba(201, 168, 106, 0.24);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.catalog-faq-copy h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    margin-bottom: 0.45rem;
    color: var(--primary-dark);
}

.catalog-faq-copy p {
    color: var(--text-light);
    margin: 0;
    max-width: 720px;
}

.catalog-faq-btn {
    min-width: 132px;
    flex-shrink: 0;
}

.landing-page {
    padding-top: 96px;
}

.landing-hero {
    position: relative;
    padding: 5.5rem 0 4rem;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(201, 168, 106, 0.22), transparent 35%),
        radial-gradient(circle at bottom right, rgba(139, 69, 19, 0.12), transparent 28%);
    pointer-events: none;
}

.landing-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 2rem;
    align-items: start;
}

.landing-copy h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    line-height: 1.08;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.landing-copy p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 760px;
    margin-bottom: 1rem;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.8rem;
}

.landing-facts {
    display: grid;
    gap: 1rem;
}

.landing-fact-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(201, 168, 106, 0.24);
    border-radius: 22px;
    padding: 1.4rem;
    box-shadow: var(--shadow);
}

.landing-fact-card strong {
    display: block;
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
}

.landing-fact-card p {
    color: var(--text-light);
    margin: 0;
}

.landing-section {
    padding: 1.5rem 0 4.5rem;
}

.landing-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
}

.landing-section-intro {
    color: var(--text-light);
    max-width: 820px;
    margin-bottom: 2rem;
}

.landing-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
}

.landing-card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(201, 168, 106, 0.2);
    border-radius: 20px;
    padding: 1.4rem;
    box-shadow: var(--shadow);
}

.landing-card h2,
.landing-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    margin-bottom: 0.65rem;
    color: var(--primary-dark);
}

.landing-card p {
    color: var(--text-light);
    margin: 0;
}

.landing-richtext {
    display: grid;
    gap: 1rem;
    color: var(--text-dark);
}

.landing-richtext p {
    margin: 0;
    font-size: 1rem;
}

.landing-list {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.landing-list li {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(201, 168, 106, 0.18);
    border-radius: 16px;
    padding: 1rem 1.1rem;
}

.landing-list strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--primary-dark);
}

.landing-cta {
    background:
        radial-gradient(circle at top right, rgba(201, 168, 106, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(255, 251, 244, 0.96), rgba(247, 241, 231, 0.98));
    color: var(--text-dark);
    border-radius: 28px;
    padding: 2rem;
    border: 1px solid rgba(201, 168, 106, 0.26);
    box-shadow: 0 18px 40px rgba(74, 52, 24, 0.12);
}

.landing-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.9rem;
    color: var(--primary-dark);
}

.landing-cta p {
    color: #5f5a52;
    margin-bottom: 1.2rem;
}

.landing-cta .landing-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(201, 168, 106, 0.22);
    box-shadow: 0 12px 28px rgba(74, 52, 24, 0.08);
}

.landing-cta .landing-card h3 {
    color: var(--primary-dark);
}

.landing-cta .landing-card p {
    color: #666;
}

.landing-cta .landing-card a {
    color: var(--accent-dark);
    font-weight: 600;
    text-decoration: none;
}

.landing-cta .landing-card a:hover {
    color: var(--accent);
}

.landing-link-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.landing-link-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.72);
    color: #59472e;
    border: 1px solid rgba(201, 168, 106, 0.24);
    transition: var(--transition);
}

.landing-link-list a:hover {
    background: rgba(201, 168, 106, 0.18);
    border-color: rgba(201, 168, 106, 0.45);
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(201, 168, 106, 0.2);
    border-radius: 20px;
    padding: 1.3rem 1.4rem;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.45rem;
    color: var(--primary-dark);
}

.faq-item p {
    margin: 0;
    color: var(--text-light);
}

@media (max-width: 900px) {
    .landing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .catalog-faq-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 1.35rem;
    }

    .catalog-faq-copy h2 {
        font-size: 1.55rem;
    }

    .landing-page {
        padding-top: 88px;
    }

    .landing-hero {
        padding: 4.5rem 0 3rem;
    }

    .landing-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-link-list {
        flex-direction: column;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
	 will-change: transform, box-shadow; /* ДОБАВИТЬ */
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.product-image {
    height: 250px;
    background: linear-gradient(45deg, #f8f5f0, #f0ece3);
    overflow: hidden;
}
.products, .hero-slider, .cart-sidebar {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}
.products .no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent);
}

.product-weight {
    font-size: 0.9rem;
    color: #888;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.product-actions .btn {
    flex: 1;
    padding: 0.75rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Кнопка "Показать еще" по центру */
.load-more {
    text-align: center;
    margin-top: 2rem;
}

.load-more .btn {
    padding: 0.8rem 2rem;
    min-width: 200px;
}

/* ===== ИНФО БЛОК О ПРОИЗВОДСТВЕ ===== */
.info {
    padding: 6rem 0;
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.info-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== КОРЗИНА ===== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-btn:hover {
    background: #f5f5f5;
}

.cart-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
}

.cart-items {
    display: none;
}

.cart-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.cart-item-title {
    font-weight: 500;
    flex: 1;
}

.cart-item-price {
    color: var(--accent);
    font-weight: 500;
    white-space: nowrap;
    margin-left: 1rem;
}

.cart-item-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.75rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: #e0e0e0;
}

.quantity {
    font-weight: 500;
    min-width: 30px;
    text-align: center;
}

.remove-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.remove-btn:hover {
    color: #ff3b3b;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

.cart-summary {
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

/* ===== ОФОРМЛЕНИЕ ЗАКАЗА ===== */
.checkout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2099;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.checkout-overlay.active {
    opacity: 1;
    visibility: visible;
}

.checkout-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 2100;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.checkout-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.checkout-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.checkout-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkout-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.checkout-body form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method:hover {
    border-color: var(--accent);
}

.payment-method input {
    margin-right: 1rem;
}

.payment-method span {
    flex: 1;
    font-weight: 500;
}

.payment-icons {
    display: flex;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: #666;
}

.order-summary {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 1.5rem;
}

.summary-items {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-name {
    flex: 1;
}

.summary-item-price {
    font-weight: 500;
    margin-left: 1rem;
}

.form-agreement {
    margin: 1rem 0;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.form-agreement label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.form-agreement input {
    margin-top: 0.2rem;
}

#submitOrderBtn {
    margin-top: 1rem;
    padding: 1.2rem;
    font-size: 1.1rem;
}

/* ===== ФУТЕР ===== */
.footer {
     background: 
        radial-gradient(circle at 20% -20%, rgba(201, 168, 106, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 120%, rgba(201, 168, 106, 0.15) 0%, transparent 40%),
        linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
    color: #E0E0E0;
    padding: 4rem 0 2rem;
    margin-top: auto;
    border-top: 1px solid rgba(201, 168, 106, 0.3);
    position: relative;
}

/* Эффект свечения сверху футера */
.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(201, 168, 106, 0.5), 
        rgba(201, 168, 106, 0.8), 
        rgba(201, 168, 106, 0.5), 
        transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer-description {
    color: #aaa;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #aaa;
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--accent);
    margin-top: 0.2rem;
    width: 16px;
}

.footer-links {
    list-style: none;
    color: #aaa;
    font-size: 0.95rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(-5px);
    }
    60% {
        transform: rotate(45deg) translateY(-3px);
    }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .hero {
        padding: 6rem 1rem 3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .products {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .filters {
        gap: 0.5rem;
    }
    
    .filter {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .checkout-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}
/* Стили для страницы продукта */
.product-card a:hover {
    color: var(--accent);
}

/* Анимация для уведомлений */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Адаптивность для страницы продукта */
@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
}
/* Дополнительные стили для страницы продукта и уведомлений */
.product-card a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.product-card a:hover {
    color: var(--accent);
}

.product-image a {
    display: block;
    height: 100%;
}

/* Стили для уведомлений (если еще не добавлены) */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Адаптивность для страницы продукта */
@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
}
/* Дополнительные стили для страницы продукта */
.product-card a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.product-card a:hover {
    color: var(--accent);
}

.product-image a {
    display: block;
    height: 100%;
}

/* Анимации для уведомлений */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Адаптивность для страницы продукта */
@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
}
/* ===== ЛОГОТИП ===== */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 50px; /* Высота навигации */
}

.logo-image {
    height: 80px; /* Высота логотипа */
    width: auto; /* Сохраняем пропорции */
    transition: var(--transition);
}

/* Для ретина-дисплеев */
.logo-image {
    max-height: 150%;
    max-width: 150%;
}

/* Эффект при наведении */
.logo:hover .logo-image {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Адаптивность */
@media (max-width: 768px) {
    .logo-image {
        height: 35px; /* Чуть меньше на мобильных */
    }
}
/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 10000;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Адаптивность для кнопок на странице продукта */
@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn,
    .product-actions a.btn {
        width: 100%;
        text-align: center;
    }
}

/* Стили для кнопки создания набора */
.btn-outline i {
    margin-right: 8px;
}

/* Адаптация корзины для кастомных наборов */
.cart-item .cart-item-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}
/* Стили для кнопки переключения состава набора */
.toggle-set-details {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.toggle-set-details:hover {
    background: rgba(201, 168, 106, 0.1);
}

.toggle-set-details i {
    margin-right: 5px;
    font-size: 0.8rem;
}

/* Стили для деталей набора */
.set-details {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .toggle-set-details {
        display: block;
        margin: 5px 0 0 0;
        width: 100%;
        text-align: left;
    }
}
/* Корзина - скрываем футер по умолчанию */
.cart-footer {
    display: none; /* Скрыт по умолчанию, показывается только когда есть товары */
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background: white;
}

#success-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: 90%;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    z-index: 1000;
    text-align: center;
}

#success-message::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: -1;
    backdrop-filter: blur(5px);
}
/* ===== ПРОСТОЙ ПОИСК В НАВИГАЦИИ ===== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.simple-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    border: 1px solid #ddd;
    overflow: hidden;
    transition: var(--transition);
    width: 180px;
}

.simple-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(201, 168, 106, 0.1);
    width: 220px;
}

.simple-search-input {
    flex: 1;
    border: none;
    padding: 8px 15px;
    font-family: inherit;
    font-size: 0.9rem;
    background: transparent;
    min-width: 0;
}

.simple-search-input:focus {
    outline: none;
}

.simple-search-btn {
    background: none;
    border: none;
    color: var(--accent);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-search-btn:hover {
    color: var(--accent-dark);
}

.mobile-search-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(201, 168, 106, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.mobile-search-toggle:hover {
    color: var(--accent-dark);
    border-color: rgba(201, 168, 106, 0.6);
}

.mobile-search-panel {
    position: fixed;
    top: 78px;
    left: 12px;
    right: 12px;
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.mobile-search-panel.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-search-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 106, 0.28);
    background: rgba(255, 252, 247, 0.96);
    box-shadow: 0 12px 32px rgba(32, 24, 16, 0.12);
    backdrop-filter: blur(10px);
}

.mobile-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 0.98rem;
    padding: 10px 8px;
    min-width: 0;
}

.mobile-search-input:focus {
    outline: none;
}

.mobile-search-btn,
.mobile-search-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-search-btn {
    background: var(--accent);
    color: #fff;
}

.mobile-search-btn:hover {
    background: var(--accent-dark);
}

.mobile-search-close {
    background: rgba(201, 168, 106, 0.12);
    color: var(--accent);
}

.mobile-search-close:hover {
    background: rgba(201, 168, 106, 0.2);
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .simple-search {
        display: none; /* Скрываем на мобилках */
    }

    .mobile-search-toggle {
        display: inline-flex;
    }
}

/* === Стили для выбора веса через миниатюры === */
.weight-selector {
    margin-top: 30px;
    padding: 20px;
    background: #f9f5f0;
    border-radius: 10px;
}

.weight-selector h4 {
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.weight-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .weight-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

.weight-option {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
    background: white;
}

.weight-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.weight-option.active {
    border-color: var(--accent);
}

.weight-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.weight-label {
    padding: 10px;
    text-align: center;
    font-weight: 500;
    color: var(--text-dark);
}

.weight-price {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--accent);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
/* Стили для переключателя веса */
.weight-selector-container {
    margin-bottom: 20px;
}

.weight-label-title {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-dark);
}

.weight-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.weight-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    min-width: 80px;
    text-align: center;
}

.weight-btn:hover {
    border-color: var(--accent);
    background: #fffcf5;
}

.weight-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 10px rgba(201, 168, 106, 0.3);
}

/* Анимация обновления цены */
@keyframes pricePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); color: var(--accent-dark); }
    100% { transform: scale(1); }
}

.price-updated {
    animation: pricePulse 0.3s ease;
}
/* ===== ИСПРАВЛЕНИЯ КОРЗИНЫ ===== */

/* 1. Убираем горизонтальный скролл */
.cart-body {
    overflow-x: hidden; /* Запрещаем скролл по ширине */
    padding: 1.5rem;
}

/* 2. Выравнивание кнопок действий */
.cart-item-actions {
    display: flex;
    justify-content: space-between; /* Разносим +/- и урну по краям */
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

/* Группировка кнопок плюс/минус */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9f9f9;
    padding: 2px;
    border-radius: 20px;
}

/* 3. Кнопка удаления (делаем аккуратной) */
.remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff0f0; /* Легкий красный фон */
    color: #ff4d4d;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    margin-left: auto; /* На всякий случай прижимаем вправо */
}

.remove-btn:hover {
    background: #ffe0e0;
    color: #ff0000;
    transform: scale(1.1);
}

/* 4. Исправление выпадающего списка состава (чтобы не выпирал) */
.set-details {
    margin: 10px 0;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid #eee;
    width: 100%;
    box-sizing: border-box; /* Важно: чтобы padding не расширял блок */
}

.set-subitem {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.set-subitem:last-child {
    border-bottom: none;
}

/* Ссылка "Состав набора" */
.toggle-set-details {
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: 5px;
    text-decoration: underline;
    padding: 0;
}
/* Стили для выбора цвета */
.color-selector-container {
    margin-bottom: 20px;
}

.color-label-title {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-dark);
}

.color-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.color-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.color-btn.active {
    border-color: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--accent);
}

/* Подсказка названия цвета при наведении */
.color-btn::after {
    content: attr(data-title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
}

.color-btn:hover::after {
    opacity: 1;
}
/* style.css */

/* --- СТИЛИ ДЛЯ НОВОЙ СИСТЕМЫ ФИЛЬТРОВ --- */

.filters-wrapper {
    margin-bottom: 3rem;
}

.sub-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out, margin-top 0.4s ease-out;
}

.sub-filters.show {
    max-height: 100px; /* Достаточно высоты для кнопок */
    opacity: 1;
}

.sub-filter {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.sub-filter:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(201, 168, 106, 0.05);
}

.sub-filter.active {
    background: var(--accent-dark);
    color: white;
    border-color: var(--accent-dark);
}
/* style.css */

/* --- ФИКС ВНЕШНЕГО ВИДА КАРТОЧЕК ТОВАРОВ --- */

.product-card {
    display: flex;          /* Главный фикс: включаем Flexbox */
    flex-direction: column; /* Располагаем элементы друг под другом */
}

.product-content {
    flex-grow: 1; /* Самое важное: заставляем этот блок растягиваться и занимать все свободное место */
    padding-bottom: 0; /* Убираем нижний отступ, так как теперь он будет у блока кнопок */
}

/* Делаем заголовки и описания кликабельными */
.product-title a {
    text-decoration: none;
    color: inherit;
}

.product-image a {
    display: block; /* Чтобы ссылка занимала всю область картинки */
    height: 100%;
}

/* Добавляем отступы блоку с кнопками */
.product-actions {
    padding: 1.5rem;
    padding-top: 0; /* Убираем верхний отступ, чтобы было красиво */
}

/* Небольшая доработка, чтобы мета-данные (цена/вес) были ближе к низу */
.product-content {
    display: flex;
    flex-direction: column;
}

.product-meta {
    margin-top: auto; /* Прижимает блок с ценой к низу контентной части */
    padding-top: 1rem;
}
/* ===== АНИМАЦИЯ КНОПКИ "В КОРЗИНУ" ===== */
@keyframes buttonPushEffect {
    0% { transform: scale(1); }
    40% { transform: scale(0.95); }
    80% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-pushed {
    animation: buttonPushEffect 0.4s ease-out forwards;
    background-color: #4CAF50 !important; /* Зеленый цвет успеха */
    border-color: #4CAF50 !important;
    color: white !important;
    pointer-events: none; /* Защита от двойного клика во время анимации */
}

.btn-pushed i {
    margin-right: 5px;
}


@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
/* Добавьте эти стили в ваш CSS */
.item-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    justify-content: center;
}
.quantity-btn-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #eee;
    background: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1; /* Для лучшего центрирования +/- */
}
.item-quantity { 
    min-width: 20px; /* Минимальная ширина для числа */
    text-align: center; 
    font-weight: 600; 
    font-size: 0.85rem; 
}
/* === ИСПРАВЛЕННЫЕ ДОП. ФИЛЬТРЫ === */

.extra-filters {
    margin-top: 20px;
    padding: 0;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column; /* Сами блоки (цвет, размер) идут друг под другом */
    gap: 20px;
    align-items: center;
    width: 100%;
}

.extra-filters.hidden {
    display: none;
}

/* Общий контейнер для ряда (чтобы центрировать) */
.filter-row {
    width: 100%;
    display: flex;
    justify-content: center;
}

.filter-row.hidden {
    display: none;
}

/* === КОНТЕЙНЕРЫ КНОПОК (ГЛАВНЫЙ ФИКС) === */
.size-options, 
.color-options {
    display: flex;
    flex-wrap: wrap;        /* Обязательно: перенос на новую строку */
    justify-content: center; /* Всё по центру */
    align-items: center;    /* Выравнивание по вертикали */
    gap: 8px;               /* Расстояние между кнопками */
    max-width: 900px;       /* Ограничение ширины, чтобы не разлетались */
    margin: 0 auto;
}

/* === СТИЛЬ КНОПОК РАЗМЕРОВ И КНОПКИ "ВСЕ" === */
.size-btn {
    padding: 6px 16px;
    background: transparent;
    border: 1px solid #dcdcdc;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap; /* Текст не переносится внутри кнопки */
}

.size-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.size-btn.active {
    background: var(--accent-dark);
    color: white;
    border-color: var(--accent-dark);
}

/* === СТИЛЬ КРУЖОЧКОВ ЦВЕТА === */
.color-circle {
    width: 34px;  /* Чуть крупнее для удобства */
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.1); /* Легкая рамка для светлых цветов */
    transition: transform 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.color-circle:hover {
    transform: scale(1.1);
}

.color-circle.active {
    transform: scale(1.15);
    border-color: white;
    box-shadow: 0 0 0 2px var(--accent); /* Коричневая обводка активного */
}

/* Специальный фикс для кнопки "Все" внутри блока цветов */
.color-options .size-btn {
    height: 34px; /* Высота как у кружочков */
    padding: 0 16px;
    display: flex;
    align-items: center;
}
/* style.css */

/* --- ФИКС ВНЕШНЕГО ВИДА КАРТОЧЕК ТОВАРОВ --- */

.product-card {
    display: flex;          /* Главный фикс: включаем Flexbox */
    flex-direction: column; /* Располагаем элементы друг под другом */
}

.product-content {
    flex-grow: 1; /* Самое важное: заставляем этот блок растягиваться и занимать все свободное место */
    padding-bottom: 0; /* Убираем нижний отступ, так как теперь он будет у блока кнопок */
}

/* Делаем заголовки и описания кликабельными */
.product-title a {
    text-decoration: none;
    color: inherit;
}

.product-image a {
    display: block; /* Чтобы ссылка занимала всю область картинки */
    height: 100%;
}

/* Добавляем отступы блоку с кнопками */
.product-actions {
    padding: 1.5rem;
    padding-top: 0; /* Убираем верхний отступ, чтобы было красиво */
}

/* Небольшая доработка, чтобы мета-данные (цена/вес) были ближе к низу */
.product-content {
    display: flex;
    flex-direction: column;
}

.product-meta {
    margin-top: auto; /* Прижимает блок с ценой к низу контентной части */
    padding-top: 1rem;
}
/* ===== АНИМАЦИЯ КНОПКИ "В КОРЗИНУ" ===== */
@keyframes buttonPushEffect {
    0% { transform: scale(1); }
    40% { transform: scale(0.95); }
    80% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-pushed {
    animation: buttonPushEffect 0.4s ease-out forwards;
    background-color: #4CAF50 !important; /* Зеленый цвет успеха */
    border-color: #4CAF50 !important;
    color: white !important;
    pointer-events: none; /* Защита от двойного клика во время анимации */
}

.btn-pushed i {
    margin-right: 5px;
}


@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
/* Добавьте эти стили в ваш CSS */
.item-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    justify-content: center;
}
.quantity-btn-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #eee;
    background: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1; /* Для лучшего центрирования +/- */
}
.item-quantity { 
    min-width: 20px; /* Минимальная ширина для числа */
    text-align: center; 
    font-weight: 600; 
    font-size: 0.85rem; 
}
/* === ИСПРАВЛЕННЫЕ ДОП. ФИЛЬТРЫ === */

.extra-filters {
    margin-top: 20px;
    padding: 0;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column; /* Сами блоки (цвет, размер) идут друг под другом */
    gap: 20px;
    align-items: center;
    width: 100%;
}

.extra-filters.hidden {
    display: none;
}

/* Общий контейнер для ряда (чтобы центрировать) */
.filter-row {
    width: 100%;
    display: flex;
    justify-content: center;
}

.filter-row.hidden {
    display: none;
}

/* === КОНТЕЙНЕРЫ КНОПОК (ГЛАВНЫЙ ФИКС) === */
.size-options, 
.color-options {
    display: flex;
    flex-wrap: wrap;        /* Обязательно: перенос на новую строку */
    justify-content: center; /* Всё по центру */
    align-items: center;    /* Выравнивание по вертикали */
    gap: 8px;               /* Расстояние между кнопками */
    max-width: 900px;       /* Ограничение ширины, чтобы не разлетались */
    margin: 0 auto;
}

/* === СТИЛЬ КНОПОК РАЗМЕРОВ И КНОПКИ "ВСЕ" === */
.size-btn {
    padding: 6px 16px;
    background: transparent;
    border: 1px solid #dcdcdc;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap; /* Текст не переносится внутри кнопки */
}

.size-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.size-btn.active {
    background: var(--accent-dark);
    color: white;
    border-color: var(--accent-dark);
}

/* === СТИЛЬ КРУЖОЧКОВ ЦВЕТА === */
.color-circle {
    width: 34px;  /* Чуть крупнее для удобства */
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.1); /* Легкая рамка для светлых цветов */
    transition: transform 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.color-circle:hover {
    transform: scale(1.1);
}

.color-circle.active {
    transform: scale(1.15);
    border-color: white;
    box-shadow: 0 0 0 2px var(--accent); /* Коричневая обводка активного */
}

/* Специальный фикс для кнопки "Все" внутри блока цветов */
.color-options .size-btn {
    height: 34px; /* Высота как у кружочков */
    padding: 0 16px;
    display: flex;
    align-items: center;
}
/* ===== СТИЛИ ДЛЯ УПРАВЛЕНИЯ ОСТАТКАМИ ===== */

/* Наложение на карточку товара, которого нет в наличии */
.product-card .out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: grayscale(80%) blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 5;
    pointer-events: none; /* Позволяет кликать "сквозь" себя */
}

.product-card.is-out-of-stock .out-of-stock-overlay {
    opacity: 1;
    visibility: visible;
}

.out-of-stock-text {
    background-color: var(--primary-dark);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Стили для заблокированных кнопок */
.btn:disabled, button:disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    border-color: #cccccc !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Уведомление на странице товара */
.stock-info-message {
    background: #fff3cd;
    border-left: 4px solid #ffeeba;
    padding: 15px 20px;
    margin: 2rem 0;
    border-radius: 8px;
    color: #856404;
    font-weight: 500;
}

.stock-info-message i {
    margin-right: 10px;
}


/* ===== СТИЛИ ДЛЯ ГЛОБАЛЬНОГО МОДАЛЬНОГО ОКНА ===== */
.global-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.global-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.global-modal-overlay.active {
    opacity: 1;
}
.global-modal.active {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.global-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.global-modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-dark);
}

.global-modal-close {
    background: #f0f0f0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}
.global-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.global-modal-body {
    padding: 25px;
    line-height: 1.7;
    max-height: 60vh;
    overflow-y: auto;
}

.global-modal-body p {
    margin: 0 0 15px;
}
.global-modal-body p:last-child {
    margin-bottom: 0;
}
.global-modal-body ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}
.global-modal-body li {
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: 500;
}
.global-modal-body li strong {
    color: #c0392b; /* Красный цвет для привлечения внимания */
}

/* Выделение проблемных товаров в корзине */
.faq-modal-intro {
    color: var(--text-light);
    margin-bottom: 16px;
}

.faq-modal-links {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.faq-modal-link {
    display: block;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    background: linear-gradient(135deg, #f8f5f0, #ffffff);
    border: 1px solid rgba(201, 168, 106, 0.28);
    color: var(--primary-dark);
    transition: var(--transition);
}

.faq-modal-link:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 168, 106, 0.5);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.faq-modal-link strong {
    display: block;
    margin-bottom: 4px;
    color: var(--primary-dark);
    font-size: 1rem;
}

.faq-modal-link span {
    display: block;
    color: var(--text-light);
    font-size: 0.94rem;
    line-height: 1.5;
}

.faq-modal-note {
    margin-top: 14px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.checkout-container .order-item.item-out-of-stock {
    background-color: #fff8f8;
    border-left: 3px solid #e74c3c;
    padding-left: 10px;
    border-radius: 5px;
}
/* Стили для кнопки "Выбрать опции" */
.btn-options {
      background-color: var(--accent) !important; /* Сделает её золотистой */
    border-color: var(--accent) !important;
}
.btn-options:hover {
    background-color: var(--accent-dark) !important; /* При наведении станет темнее */
}

/* ===== НОВЫЕ АДАПТИВНЫЕ СТИЛИ ДЛЯ ФИЛЬТРОВ И ОБЩЕЙ ЮЗАБИЛИТИ НА МОБИЛКАХ ===== */

@media (max-width: 1024px) { /* Можно сделать breakpoint чуть выше для планшетов */
    /* Общие отступы на мобилках */
    .container {
        padding: 0 15px;
    }
    .nav-container {
        padding: 0 15px;
    }
    .hero {
        padding: 6rem 15px 3rem;
    }
    .section-header {
        margin-bottom: 2rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .section-header p {
        font-size: 1rem;
    }
    .catalog {
        padding: 4rem 0;
    }
    .product-content {
        padding: 1rem; /* Уменьшить padding для карточек */
    }
    .product-title {
        font-size: 1.2rem;
    }
    .product-price {
        font-size: 1.2rem;
    }
    .product-actions {
        padding: 1rem; /* Уменьшить padding для кнопок */
        gap: 0.75rem;
    }
    .product-actions .btn, .product-actions a.btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    .info {
        padding: 4rem 0;
    }
    .info-card {
        padding: 1.5rem;
    }

    /* Мобильные фильтры: Горизонтальная прокрутка */
    .filters, 
    .sub-filters,
    .filter-row:not(.hidden) { /* Применяем к color/size options только если не hidden */
        display: flex !important;
        flex-wrap: nowrap !important; /* ЗАПРЕЩАЕМ ПЕРЕНОС */
        overflow-x: auto !important; /* Включаем горизонтальную прокрутку */
        justify-content: flex-start !important; /* Выравнивание по левому краю */
        -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
        padding: 10px 15px !important; /* Уменьшаем padding по бокам */
        gap: 8px !important; /* Меньше зазор между кнопками */
        scrollbar-width: none; /* Убрать скроллбар для Firefox */
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important; /* Убедимся, что нет лишних отступов */
        margin-right: 0 !important;
    }
    .filters::-webkit-scrollbar, 
    .sub-filters::-webkit-scrollbar,
    .filter-row:not(.hidden)::-webkit-scrollbar { /* Убрать скроллбар для Webkit */
        display: none !important;
    }

    .filter, 
    .sub-filter,
    .size-btn { /* Общие стили для кнопок фильтров */
        flex-shrink: 0 !important; /* Не сжимать кнопки */
        white-space: nowrap !important; /* Текст не переносится */
        padding: 8px 18px !important; /* Удобный размер для касания */
        font-size: 0.9rem !important;
        min-width: fit-content; /* Гарантировать минимальную ширину */
    }

    .color-options, 
    .weight-options {
        /* Эти классы находятся внутри .filter-row */
        display: flex !important;
        flex-wrap: nowrap !important; /* Переопределяем wrap на nowrap */
        justify-content: flex-start !important;
        gap: 8px !important;
        padding: 0; /* Удаляем лишний padding, т.к. его уже имеет filter-row */
    }

    .color-circle {
        min-width: 38px; /* Чуть крупнее для касания */
        min-height: 38px;
        width: 38px;
        height: 38px;
    }
    .color-options .size-btn { /* Кнопка "Все" внутри цветов */
        min-height: 38px;
        height: 38px;
    }

    /* Скрываем поиск в навбаре на мобилках */
    .simple-search {
        display: none;
    }

    /* Переносим хлебные крошки и title на странице продукта */
    .product-page .breadcrumbs {
        padding: 0 15px; /* Отступы для мобилок */
    }
    .product-title {
        font-size: 2.2rem; /* Адаптивный размер заголовка */
        padding: 0 15px;
    }

    /* Корректировка сайдбара корзины на мобилках */
    .cart-sidebar {
        width: 92%;
        max-width: 420px;
        height: 85vh;
        top: 50%;
        right: auto;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.98);
        border-radius: 16px;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
    }
    .cart-sidebar.active {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        visibility: visible;
    }
    .cart-header, .cart-body, .cart-footer {
        padding: 15px;
    }
    .cart-item-actions {
        flex-wrap: wrap; /* Если не помещается, пусть переносится */
        justify-content: space-between;
    }
    .quantity-controls {
        flex-grow: 1; /* Чтобы занимало больше места */
        max-width: 150px;
    }
    .remove-btn {
        margin-left: 10px; /* Отступ от контролов количества */
    }
}
/* === МОБИЛЬНАЯ ШАПКА: КОМПАКТНЫЙ СТИЛЬ === */
@media (max-width: 992px) {
    .navbar {
        height: auto !important;
        padding: 8px 0 !important; /* Уменьшили отступы */
        background: var(--primary-light) !important;
        position: fixed;
        top: 0;
        width: 100%;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    }

    /* Главный контейнер шапки */
    .nav-container {
        display: flex !important;
        flex-direction: column !important; /* Стак: верх - лого, низ - кнопки */
        gap: 8px !important;
        padding: 0 15px !important;
    }

    /* ВЕРХНИЙ ЭТАЖ: Логотип и Корзина в одной строке */
    .nav-container {
        position: relative;
    }
    
    /* Выравниваем лого и корзину по краям */
    .logo {
        order: 1;
        margin: 0 !important;
        align-self: flex-start;
    }
    .logo-image {
        height: 35px !important; /* Делаем лого чуть меньше на мобилке */
    }

    .nav-actions {
        order: 2;
        position: absolute;
        top: 0;
        right: 15px;
        height: 35px;
        display: flex;
        align-items: center;
    }

    /* НИЖНИЙ ЭТАЖ: Кнопки-табы */
    .nav-links {
        order: 3;
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important; /* Слева направо */
        gap: 6px !important; /* Плотнее друг к другу */
        overflow-x: auto !important;
        width: 100% !important;
        padding: 2px 0 5px 0 !important;
        scrollbar-width: none;
        white-space: nowrap;
    }

    .nav-links::-webkit-scrollbar { display: none; }

    /* Сами кнопочки (делаем их маленькими и "сочными") */
    .nav-links a {
        font-size: 0.75rem !important; /* Маленький шрифт */
        font-weight: 500;
        padding: 5px 12px !important; /* Компактные отступы */
        background: #fff;
        border: 1px solid rgba(201, 168, 106, 0.4) !important;
        border-radius: 30px !important; /* Закругленные края */
        color: var(--text-dark);
        text-decoration: none;
        transition: 0.2s;
    }

    .nav-links a.active {
        background: var(--accent) !important;
        color: #fff !important;
        border-color: var(--accent) !important;
    }

    /* Скрываем ненужное */
    .nav-links a.hide-mobile { display: none !important; }

    /* Опускаем контент под шапку */
    main {
        padding-top: 110px !important; /* Уменьшили отступ, так как шапка стала тоньше */
    }
}
