/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@300;400;500;700&family=Zen+Old+Mincho:wght@400;500;600&display=swap');

/* === Theme: luxury suits / シラベクソ === */
:root {
    --cream: #f5f2eb;
    --cream-dark: #ebe7e0;
    --charcoal: #2d2a26;
    --brown: #4a3c31;
    --brown-light: #6b563f;
    --navy: #1a2332;
    --burgundy: #722f37;
    --accent: #b8860b;
    --accent-light: #d4a84b;
    --white: #fff;
    --shadow: 0 4px 20px rgba(26, 35, 50, 0.08);
    --radius: 12px;
    --radius-lg: 20px;
}

/* Main styles */
body {
    background-color: var(--cream);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    color: var(--charcoal);
}

/* --- Header: прикреплён к верху, узкая плашка меню --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(180deg, var(--cream-dark) 0%, rgba(235, 231, 224, 0.98) 100%);
    border-bottom: 1px solid rgba(45, 42, 38, 0.08);
    box-shadow: var(--shadow);
}

.site-header-narrow {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.site-header-narrow .logo {
    font-size: 1.35rem;
}

.site-header-narrow .nav-menu-even .nav-link {
    padding: 0.3rem 0.35rem;
    min-height: 32px;
    font-size: 0.85rem;
}

.navbar {
    align-items: stretch;
}

.nav-menu-even {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 720px;
    margin: 0 auto !important;
    gap: 0.25rem;
}

.nav-menu-even .nav-item {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu-even .nav-link {
    width: 100%;
    padding: 0.6rem 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.header-cart {
    display: flex;
    align-items: center;
}

.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
}

.cart-count {
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25rem;
    text-align: center;
    background: var(--burgundy);
    color: var(--white);
    border-radius: 999px;
}

.cart-count:empty,
.snipcart-items-count:empty {
    display: none;
}

.snipcart-items-count:not(:empty) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--burgundy);
    color: var(--white);
    border-radius: 999px;
}

/* Скрыть цену рядом с корзиной (оставляем только кол-во) */
.snipcart-total-price {
    display: none !important;
}

.search-form {
    position: relative;
    max-width: 280px;
}

.search-input {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid rgba(45, 42, 38, 0.2);
    border-radius: 999px;
    background-color: var(--cream);
    color: var(--charcoal);
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: var(--burgundy);
    box-shadow: 0 0 0 2px rgba(114, 47, 55, 0.15);
}

.search-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--brown);
    cursor: pointer;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: 0.02em;
}

.logo:hover {
    color: var(--burgundy);
}

.nav-link {
    color: var(--charcoal);
    transition: color 0.2s ease, background 0.2s ease;
    border-radius: var(--radius);
}

.nav-link:hover {
    color: var(--burgundy);
    background: rgba(114, 47, 55, 0.06);
}

.cart-btn {
    background: none;
    border: none;
    color: var(--charcoal);
    transition: color 0.2s ease, transform 0.2s ease;
}

.cart-btn:hover {
    color: var(--burgundy);
    transform: scale(1.05);
}

.breadcrumb {
    background-color: transparent;
    padding: 1rem 0;
}

.breadcrumb-item a {
    color: var(--brown);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--burgundy);
}

/* --- Карусель: современный вид для всех страниц --- */
.hero-section {
    margin-left: auto;
    margin-right: auto;
    max-width: 1400px;
    padding: 0 1rem;
}

.hero-section .carousel {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow), 0 10px 40px rgba(26, 35, 50, 0.12);
}

.hero-section .carousel-inner {
    border-radius: var(--radius-lg);
}

.hero-section .carousel-item {
    max-height: 420px;
}

.hero-section .carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    min-height: 320px;
    max-height: 420px;
}

.hero-section .carousel-caption {
    bottom: 2.5rem;
    left: 1.5rem;
    right: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(245, 242, 235, 0.92) 0%, rgba(235, 231, 224, 0.88) 100%);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
    text-align: left;
}

.hero-section .carousel-caption h1,
.hero-section .carousel-caption h2 {
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.hero-section .carousel-caption p {
    color: var(--charcoal);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.hero-section .carousel-caption .btn {
    background: var(--burgundy);
    border-color: var(--burgundy);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}

.hero-section .carousel-caption .btn:hover {
    background: #5a2530;
    border-color: #5a2530;
    color: var(--white);
    transform: translateY(-1px);
}

/* Индикаторы карусели — нормальный вид */
.hero-section .carousel-indicators {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.hero-section .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-section .carousel-indicators [data-bs-target]:hover {
    background: rgba(255, 255, 255, 0.8);
}

.hero-section .carousel-indicators .active {
    background: var(--white);
    transform: scale(1.2);
    box-shadow: 0 0 0 2px var(--burgundy);
}

/* Кнопки prev/next карусели */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 1;
    border: none;
    box-shadow: var(--shadow);
    transition: background 0.2s, transform 0.2s;
}

.hero-section .carousel-control-prev {
    left: 1rem;
}

.hero-section .carousel-control-next {
    right: 1rem;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.08);
}

.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon {
    width: 1.25rem;
    height: 1.25rem;
    background-size: 100%;
    filter: none;
}

.hero-section .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a2332'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.hero-section .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a2332'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Кнопки сайта: единый акцент */
.btn-dark {
    background-color: var(--burgundy) !important;
    border-color: var(--burgundy) !important;
    color: var(--white) !important;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-dark:hover {
    background-color: #5a2530 !important;
    border-color: #5a2530 !important;
    color: var(--white) !important;
    transform: translateY(-1px);
}

.btn-outline-dark {
    border-color: var(--burgundy);
    color: var(--burgundy);
}

.btn-outline-dark:hover {
    background-color: var(--burgundy);
    border-color: var(--burgundy);
    color: var(--white);
}

/* Footer styles */
.footer {
    background: linear-gradient(180deg, var(--cream-dark) 0%, #e2ddd5 100%);
    color: var(--charcoal);
}

.footer h5 {
    color: var(--navy);
    font-weight: 700;
}

.footer a {
    color: var(--brown);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--burgundy);
}

.footer hr {
    border-color: rgba(45, 42, 38, 0.15);
}

/* Cookie Consent */
.cookie-consent {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(245, 242, 235, 0.97);
    padding: 1rem 0;
    box-shadow: 0 -4px 20px rgba(26, 35, 50, 0.1);
    z-index: 1000;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    margin: 0;
    color: var(--charcoal);
}

.cookie-content .btn {
    background-color: var(--burgundy);
    border-color: var(--burgundy);
    color: var(--white);
    transition: all 0.2s ease;
}

.cookie-content .btn:hover {
    background-color: #5a2530;
    border-color: #5a2530;
    color: var(--white);
}
/* Contact Page Styles */
.contact-info-section .card {
    background: linear-gradient(145deg, var(--cream), var(--cream-dark));
    border: none;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.contact-info-section .card-title {
    color: var(--navy);
    font-family: 'Zen Old Mincho', serif;
    border-bottom: 2px solid var(--burgundy);
    padding-bottom: 0.5rem;
}

.contact-info-section address {
    color: var(--charcoal);
    font-style: normal;
}

.contact-info-section address a {
    color: var(--brown);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info-section address a:hover {
    color: var(--burgundy);
}

.contact-info-section .fas {
    color: var(--burgundy);
}

.faq-section .accordion-button {
    background-color: var(--cream);
    color: var(--charcoal);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    border: none;
}

.faq-section .accordion-button:not(.collapsed) {
    background-color: var(--cream-dark);
    color: var(--navy);
}

.faq-section .accordion-body {
    background-color: var(--white);
    color: var(--charcoal);
}

.faq-section .accordion-item {
    border-color: rgba(45, 42, 38, 0.1);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    border-color: rgba(45, 42, 38, 0.2);
    color: var(--charcoal);
    background-color: var(--cream);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 0.2rem rgba(114, 47, 55, 0.2);
}

.contact-form label {
    color: var(--charcoal);
    font-weight: 500;
}
/* Privacy Policy Styles */
.privacy-content {
    color: var(--charcoal);
    line-height: 1.8;
}

.privacy-content h2 {
    color: var(--navy);
    font-family: 'Zen Old Mincho', serif;
    border-bottom: 2px solid var(--burgundy);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

.privacy-content h3 {
    color: var(--burgundy);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    margin-top: 1.5rem;
}

.privacy-content h4 {
    color: var(--brown-light);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 500;
}

.privacy-content ul {
    padding-left: 1.5rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

.privacy-content a {
    color: var(--burgundy);
    text-decoration: none;
    transition: color 0.2s ease;
}

.privacy-content a:hover {
    color: var(--navy);
    text-decoration: underline;
}

/* Карточки товаров и категорий */
.category-card,
.product-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(26, 35, 50, 0.06);
    box-shadow: 0 2px 12px rgba(26, 35, 50, 0.06), 0 12px 40px rgba(26, 35, 50, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(26, 35, 50, 0.08), 0 24px 56px rgba(26, 35, 50, 0.06);
    border-color: rgba(114, 47, 55, 0.15);
}

.category-card .card-img-top,
.product-card .card-img-top {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .card-img-top,
.product-card:hover .card-img-top {
    transform: scale(1.03);
}

.category-card .card-body,
.product-card .card-body {
    padding: 1.5rem 1.5rem 1.75rem;
}

.category-card .card-title,
.product-card .card-title {
    color: var(--navy);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.category-card .card-title a,
.product-card .card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-card .card-title a:hover,
.product-card .card-title a:hover {
    color: var(--burgundy);
}

.category-card .card-text,
.product-card .card-text {
    color: var(--charcoal);
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.product-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.category-card .btn-outline-dark,
.product-card .btn-dark {
    border-radius: 999px;
    padding: 0.55rem 1.35rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.product-card .btn-dark {
    width: 100%;
}

/* Секции: заголовки в стиле темы */
h2.text-center {
    color: var(--navy);
    font-weight: 700;
}

/* Мобильное меню: при сворачивании — обычный список */
@media (max-width: 991px) {
    .nav-menu-even {
        flex-direction: column;
        max-width: none;
        width: 100%;
    }
    .nav-menu-even .nav-item {
        flex: none;
        width: 100%;
        text-align: left;
    }
    .nav-menu-even .nav-link {
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }
}
