:root {
    /* Палитра витрины: олива как на фирменном квадрате логотипа */
    --brand-bg: #8a9163;
    --logo-frame-bg: #8a9163;
    --navbar-bg: linear-gradient(180deg, #90986b 0%, #8a9163 50%, #7d8456 100%);
    --navbar-border: rgba(61, 61, 51, 0.22);
    --accent-brown: #c08a82;
    --primary-color: #c08a82;
    --primary-hover: #a8756e;
    --secondary-color: #5f6a4e;
    --accent-color: #f5f3ed;
    --dark-color: #3d3d33;
    /* Премиум maison: тёмный зелёный, крем, золото */
    --luxury-forest: #1a2f24;
    --luxury-cream: #f7f3e8;
    --luxury-gold: #ba9b5c;
    --luxury-gold-soft: rgba(186, 155, 92, 0.45);
    --font-brand-display: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
}

html {
    scroll-behavior: smooth;
    min-height: 100%;
    height: auto;
    /* Оливковый фон всей страницы (до Bootstrap body) */
    background-color: var(--brand-bg) !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    min-height: 100vh;
    background-color: var(--brand-bg) !important;
}

.brand-placeholder-img {
    display: block;
    flex-shrink: 0;
    object-fit: cover;
}

.brand-placeholder-img--display {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 12px;
}

.brand-placeholder-img--display-lg {
    width: 4.75rem;
    height: 4.75rem;
    border-radius: 14px;
}

.brand-placeholder-img--lg {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 8px;
}

.category-card .no-image .brand-placeholder-img,
.product-card__media-link .no-image .brand-placeholder-img,
.product-detail-media__placeholder .brand-placeholder-img {
    width: min(42%, 3.75rem);
    height: auto;
    aspect-ratio: 1;
}

.product-detail-media__placeholder .brand-placeholder-img--display-lg {
    width: min(46%, 5rem);
    height: auto;
    aspect-ratio: 1;
}

.navbar-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    padding: 0;
    background-color: var(--logo-frame-bg);
    border: 1px solid rgba(61, 61, 51, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.navbar-brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.navbar-brand-visual.navbar-brand {
    font-size: unset;
}

.navbar-brand-title {
    font-family: var(--font-brand-display);
    font-size: clamp(1.2rem, 3.2vw, 1.45rem);
    font-weight: 600;
    letter-spacing: 0.42em;
    color: var(--luxury-cream) !important;
    font-feature-settings: "kern" 1, "liga" 1;
}

.navbar-brand-tagline {
    font-family: var(--font-brand-display);
    font-style: italic;
    font-weight: 500;
    font-size: 0.6rem;
    letter-spacing: 0.38em;
    margin-top: 0.3rem;
    margin-left: 0.06rem;
    opacity: 0.88;
    color: rgba(247, 243, 232, 0.82) !important;
}

nav.navbar.navbar-expand-lg.navbar-dark {
    background: var(--navbar-bg) !important;
    border-bottom: 1px solid var(--navbar-border);
    box-shadow: 0 6px 18px rgba(61, 61, 51, 0.12);
    padding: 0.65rem 0;
    --bs-navbar-color: rgba(245, 243, 237, 0.9);
    --bs-navbar-hover-color: #fff;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color) !important;
}

.nav-link {
    color: var(--accent-color) !important;
    font-weight: 500;
    transition: color 0.3s;
}

nav.navbar .nav-link:hover {
    color: var(--luxury-cream) !important;
}

.home-feature-icon {
    color: var(--accent-brown) !important;
}

.cart-badge {
    position: relative;
}

.cart-badge .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.7rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   HERO SECTION - Enhanced
───────────────────────────────────────────────────────────────────────────── */
.hero {
    background:
        linear-gradient(
            rgba(122, 132, 100, 0.48),
            rgba(95, 106, 78, 0.56)),
        url('../img/hero-bakery.jpg') center/cover;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero--enhanced {
    padding: 80px 0 100px;
    background:
        linear-gradient(
            160deg,
            rgba(26, 47, 36, 0.55) 0%,
            rgba(95, 106, 78, 0.45) 50%,
            rgba(122, 132, 100, 0.35) 100%),
        url('../img/hero-bakery.jpg') center/cover;
}

.hero__content {
    max-width: 720px;
    margin: 0 auto;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.hero__title {
    font-family: var(--font-brand-display);
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 4px rgba(26, 47, 36, 0.4), 0 8px 32px rgba(26, 47, 36, 0.3);
}

.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    opacity: 0.92;
    margin-bottom: 2rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(26, 47, 36, 0.4);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.btn-hero-primary {
    background: linear-gradient(145deg, var(--primary-color), var(--primary-hover));
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 4px 20px rgba(192, 138, 130, 0.4);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(192, 138, 130, 0.5);
    color: white;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: white;
    transform: translateY(-2px);
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    justify-content: center;
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.85;
}

.hero__trust-item i {
    font-size: 1rem;
    opacity: 0.9;
}

.hero h1 {
    font-family: var(--font-brand-display);
    font-weight: 600;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 1px 3px rgba(45, 48, 38, 0.55), 0 4px 24px rgba(45, 48, 38, 0.35);
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(45, 48, 38, 0.5), 0 2px 16px rgba(45, 48, 38, 0.28);
}

/* ─────────────────────────────────────────────────────────────────────────────
   HOW IT WORKS SECTION
───────────────────────────────────────────────────────────────────────────── */
.how-it-works {
    padding: 80px 0;
    background: var(--brand-bg);
}

.how-it-works__subtitle {
    font-size: 1.1rem;
    color: var(--luxury-cream);
    margin-top: 0.75rem;
    margin-bottom: 50px;
    opacity: 0.85;
}

.how-it-works .section-title h2 {
    color: var(--luxury-cream);
}

.how-it-works .section-title h2::after {
    display: none;
}

.how-it-works__step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(61, 61, 51, 0.08);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    height: 100%;
    position: relative;
}

.how-it-works__step:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(61, 61, 51, 0.12);
}

.how-it-works__icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(145deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
}

.how-it-works__number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 2px 8px rgba(61, 61, 51, 0.2);
}

.how-it-works__title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.how-it-works__text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FEATURE CARDS (Why Choose Us)
───────────────────────────────────────────────────────────────────────────── */
.features-section {
    background: var(--brand-bg);
}

.features-section .section-title h2 {
    color: var(--luxury-cream);
}

.features-section .section-title h2::after {
    background: var(--luxury-cream);
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--accent-color);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(61, 61, 51, 0.1);
}

.feature-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(145deg, var(--primary-color), var(--primary-hover));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.feature-card__title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.feature-card__text {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.35s; }
.animate-delay-4 { animation-delay: 0.5s; }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--delay, 0s);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .animate-fade-up,
    .animate-on-scroll {
        animation: none;
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
}

.btn-cart {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 0.75rem 0.875rem 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-card .card-body > * {
    margin-bottom: 0;
}

.product-card .card-title {
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.2;
    margin: 0;
    font-size: 0.95rem;
}

.product-card .card-text {
    line-height: 1.35;
    margin: 0;
}

/* Страница товара — компактный блок информации */
.product-detail-info {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.product-detail-info__head {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-detail-info__head > * {
    margin-bottom: 0;
}

.product-detail-info__title {
    color: var(--dark-color);
    font-size: clamp(1.625rem, 4vw, 2.125rem);
    line-height: 1.2;
    margin: 0;
}

.product-detail-info__price .price {
    font-size: 2.125rem;
    line-height: 1.1;
}

.product-detail-info__meta {
    margin: 0;
    font-size: 0.9375rem;
}

.product-detail-info__description h5 {
    font-size: 1rem;
    margin: 0 0 0.25rem;
}

.product-detail-info__description p {
    margin: 0;
    line-height: 1.5;
}

.product-detail-info__status {
    margin-top: 0.125rem;
}

.product-detail-info__actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.product-detail-info__actions .add-to-cart-form {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.product-detail-info__qty {
    margin: 0;
}

.product-card .price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.product-card .badge.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.category-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 200px;
    cursor: pointer;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: scale(1.02);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(61, 61, 51, 0.92));
    padding: 30px 20px 20px;
    color: white;
}

.category-card .overlay h5 {
    margin: 0;
    font-weight: 600;
}

footer {
    background: var(--dark-color);
    color: var(--accent-color);
    padding: 50px 0 20px;
    margin-top: 80px;
}

footer h5 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

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

.no-image {
    background: linear-gradient(145deg, #98a374 0%, var(--logo-frame-bg) 42%, #6d7452 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

/* Хлебные крошки на странице товара */
.shop-breadcrumb .breadcrumb {
    margin-bottom: 0;
    --bs-breadcrumb-divider-color: rgba(247, 243, 232, 0.7);
}

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

.shop-breadcrumb .breadcrumb-item a:hover {
    color: #fff;
    text-decoration: underline;
}

.shop-breadcrumb .breadcrumb-item.active {
    color: #000;
}

.shop-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(247, 243, 232, 0.7);
}

/* Сетка карточек товаров — больше воздуха между плитками */
.products-grid {
    --bs-gutter-x: 1.75rem;
    --bs-gutter-y: 2.5rem;
}

@media (max-width: 768px) {
    .products-grid {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 1rem;
    }
}

@media (min-width: 992px) {
    .products-grid {
        --bs-gutter-x: 2rem;
        --bs-gutter-y: 2.75rem;
    }
}

/* Каталог — горизонтальные чипсы категорий */
.catalog-chips-panel {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0.75rem 0.625rem;
    margin-bottom: 1.5rem;
}

.catalog-chips-panel__label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--secondary-color);
}

.catalog-chips-panel__label i {
    font-size: 0.75rem;
    opacity: 0.85;
}

.catalog-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}

.catalog-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 100%;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(61, 61, 51, 0.12);
    border-radius: 999px;
    background: var(--accent-color);
    color: var(--dark-color);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.catalog-chip__icon {
    font-size: 0.75rem;
    opacity: 0.75;
}

.catalog-chip__label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-chip__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: rgba(61, 61, 51, 0.08);
    color: var(--secondary-color);
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
}

.catalog-chip:hover {
    border-color: rgba(192, 138, 130, 0.45);
    background: #fff;
    color: var(--dark-color);
    box-shadow: 0 2px 10px rgba(61, 61, 51, 0.08);
    transform: translateY(-1px);
}

.catalog-chip.is-active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(192, 138, 130, 0.35);
}

.catalog-chip.is-active .catalog-chip__icon {
    opacity: 1;
}

.catalog-chip.is-active .catalog-chip__count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.catalog-chip:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    .catalog-chips-panel {
        position: relative;
        padding: 0.4rem 0.625rem 0.45rem;
    }

    .catalog-chips-panel__label {
        margin-bottom: 0.25rem;
        font-size: 0.6875rem;
    }

    .catalog-chip {
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
    }

    .catalog-chips-panel::after {
        content: '';
        position: absolute;
        top: 1.75rem;
        right: 0;
        bottom: 0.5rem;
        width: 2rem;
        pointer-events: none;
        background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0));
        border-radius: 0 0 15px 0;
    }

    .catalog-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.125rem;
        margin-right: -0.25rem;
        padding-right: 1.5rem;
    }

    .catalog-chips::-webkit-scrollbar {
        display: none;
    }

    .catalog-chip {
        flex-shrink: 0;
    }
}

@media (min-width: 992px) {
    .catalog-chips-panel {
        padding: 0.5rem 0.875rem 0.625rem;
    }
}

.cart-table th {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.order-summary {
    background: var(--accent-color);
    border-radius: 15px;
    padding: 25px;
}

.order-summary .total {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: bold;
}

.payment-options {
    display: flex;
    gap: 12px;
}

.payment-option {
    flex: 1;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.payment-option:hover {
    border-color: var(--primary-color);
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option .form-check-label {
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
    display: flex;
    align-items: center;
    width: 100%;
}

.payment-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: #faf6f3;
}

.payment-option:has(input[type="radio"]:checked) .form-check-label {
    color: var(--secondary-color);
    font-weight: 500;
}

.payment-option i {
    color: #999;
    font-size: 1.1rem;
}

.payment-option:has(input[type="radio"]:checked) i {
    color: var(--primary-color);
}

/* Поиск в каталоге — одна строка, компактная кнопка */
.catalog-search-group {
    max-width: 100%;
}

.catalog-search-input {
    min-width: 0;
    border-radius: 999px 0 0 999px;
}

.catalog-search-btn {
    flex-shrink: 0;
    padding: 0.45rem 0.9rem;
    border-radius: 0 999px 999px 0;
    border: 1px solid var(--primary-color);
    line-height: 1;
}

.catalog-search-btn i {
    font-size: 0.9rem;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */
@media (max-width: 768px) {
    /* Навигация */
    .navbar {
        padding: 0.8rem 0;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .navbar-brand-mark {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.8rem 0;
        font-size: 1.1rem;
    }
    
    .navbar-nav .form-control {
        width: 100% !important;
        margin: 0.5rem 0;
    }
    
    /* Hero секция */
    .hero {
        padding: 60px 0;
    }
    
    .hero--enhanced {
        padding: 50px 0 70px;
    }
    
    .hero__badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
        margin-bottom: 1rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero__actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero__trust {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .hero__trust-item {
        font-size: 0.85rem;
    }
    
    /* How It Works */
    .how-it-works {
        padding: 50px 0;
    }
    
    .how-it-works__subtitle {
        font-size: 1rem;
        margin-top: 0.5rem;
        margin-bottom: 30px;
    }
    
    .how-it-works__step {
        padding: 1.5rem 1.25rem;
    }
    
    .how-it-works__icon {
        width: 64px;
        height: 64px;
        font-size: 1.4rem;
    }
    
    .how-it-works__number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Заголовки */
    .section-title {
        margin-bottom: 30px;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    /* Карточки товаров */
    .product-card .card-img-top {
        height: 155px;
    }

    /* Две колонки: компактный body */
    .product-card .card-body {
        padding: 0.5rem 0.625rem 0.625rem;
        gap: 0.15rem;
    }

    .product-card .card-text {
        display: none;
    }

    .product-card .card-title {
        font-size: 0.8125rem;
        line-height: 1.15;
    }

    .product-card .price {
        font-size: 0.9375rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .product-card .badge.bg-secondary {
        font-size: 0.65rem;
        padding: 0.2em 0.45em;
    }

    /* Форма корзины — количество сверху, кнопка на всю ширину снизу */
    .product-card .add-to-cart-form {
        margin-top: 0.25rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }

    .product-card .add-to-cart-form .product-card__qty {
        gap: 0.2rem !important;
        justify-content: center;
    }

    .product-card .qty-minus,
    .product-card .qty-plus {
        width: 1.25rem;
        height: 1.25rem;
        padding: 0;
        font-size: 0.65rem;
        flex-shrink: 0;
        border-radius: 4px;
    }

    .product-card .qty-input {
        width: 1.5rem !important;
        height: 1.25rem;
        font-size: 0.65rem;
        padding: 0;
        border-radius: 4px;
    }

    .product-card .btn-add-cart-enhanced {
        width: 100%;
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
        border-radius: 8px;
    }

    .product-card .btn-add-cart-enhanced .btn-text,
    .product-card .btn-add-cart-enhanced .btn-success-text {
        gap: 0.25rem;
    }

    .product-card .btn-cart {
        font-size: 0.72rem;
        padding: 0.3rem 0.4rem;
    }

    .product-detail-info {
        padding: 1rem 1.125rem;
        gap: 0.75rem;
    }

    .product-detail-info__price .price {
        font-size: 1.875rem;
    }

    .product-card:hover {
        transform: none;
    }
    
    /* Категории */
    .category-card {
        height: 120px;
        margin-bottom: 0;
    }

    .category-card .overlay {
        padding: 0.75rem;
    }

    .category-card .overlay h5 {
        font-size: 0.85rem;
    }

    .category-card .overlay small {
        font-size: 0.7rem;
    }
    
    /* Кнопки */
    .btn-primary-custom:not(.catalog-search-btn),
    .btn-cart:not(.btn-add-cart-enhanced),
    .btn-success {
        padding: 14px 24px;
        font-size: 1rem;
        width: 100%;
    }
    
    .catalog-search-btn {
        padding: 0.5rem 0.85rem;
    }
    
    /* Форма заказа */
    .order-summary {
        padding: 20px;
        margin-bottom: 1.5rem;
    }
    
    .order-summary .total {
        font-size: 1.3rem;
    }
    
    /* Способы оплаты */
    .payment-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .payment-option {
        padding: 16px;
    }
    
    .payment-option .form-check-label {
        font-size: 1rem;
    }
    
    /* Форма */
    .form-control,
    .form-select {
        font-size: 16px !important;
        padding: 12px 15px;
    }
    
    textarea.form-control {
        min-height: 100px;
    }
    
    .form-label {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
    
    /* Контейнер */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Корзина */
    .cart-table {
        font-size: 0.9rem;
    }
    
    .cart-table img {
        width: 60px !important;
        height: 60px !important;
    }
    
    /* Футер */
    footer {
        padding: 30px 0 15px;
        margin-top: 40px;
        text-align: center;
    }
    
    footer .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    footer h5 {
        font-size: 1.1rem;
    }
    
    footer p {
        font-size: 0.9rem;
    }
    
    /* WhatsApp кнопка */
    #whatsapp-btn {
        padding: 16px;
        font-size: 1.1rem;
    }
}

/* Маленькие телефоны */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .section-title h2 {
        font-size: 1.4rem;
    }
    
    .product-card .card-img-top {
        height: 120px;
    }

    .product-card-gallery,
    .product-card-gallery .product-gallery__slide,
    .product-card-gallery__img {
        height: 120px !important;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Мобильная корзина */
.cart-item-mobile {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-mobile:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Плавающая кнопка корзины (мобильные) */
.cart-fab {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 1040;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary-color), var(--primary-hover));
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(61, 61, 51, 0.35);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-fab:hover,
.cart-fab:focus-visible {
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 6px 22px rgba(61, 61, 51, 0.42);
}

.cart-fab .cart-fab-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.65rem;
    padding: 0.2em 0.45em;
    line-height: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Страница контактов
───────────────────────────────────────────────────────────────────────────── */

.contacts-card {
    border: 1px solid rgba(61, 61, 51, 0.06);
}

.contacts-card__title {
    color: var(--dark-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.contacts-map {
    border: 1px solid rgba(61, 61, 51, 0.1);
}

.contacts-info__item {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.contacts-info__item i {
    font-size: 1.1rem;
}

.contacts-social-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.125rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.contacts-social-btn--instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

.contacts-social-btn--whatsapp {
    background: #25d366;
    color: #fff;
}

.contacts-social-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    filter: brightness(1.08);
}

.contacts-card--about {
    background: var(--accent-color) !important;
}

@media (max-width: 767.98px) {
    .contacts-card {
        padding: 1.25rem !important;
    }

    .contacts-map iframe {
        height: 220px;
    }

    .contacts-social-btn {
        flex: 1;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 991.98px) {
    .cart-fab {
        display: flex;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   ENHANCED CART SUMMARY
───────────────────────────────────────────────────────────────────────────── */
.cart-summary--enhanced {
    border: 1px solid rgba(61, 61, 51, 0.08);
}

.btn-checkout-primary {
    background: linear-gradient(145deg, var(--secondary-color), #4a5640);
    border: none;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(95, 106, 78, 0.3);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-checkout-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(95, 106, 78, 0.4);
    color: white;
    background: linear-gradient(145deg, #4a5640, var(--secondary-color));
}

.cart-whatsapp-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
    border-radius: 10px;
    font-size: 0.85rem;
    color: #2e7d32;
}

.cart-whatsapp-hint i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cart-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.cart-trust-item i {
    width: 16px;
    text-align: center;
    opacity: 0.8;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ENHANCED PRODUCT CARDS
───────────────────────────────────────────────────────────────────────────── */
.product-card .add-to-cart-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 0.375rem;
    gap: 0.35rem;
}

.product-card .btn-add-cart-enhanced {
    width: 100%;
}

.product-card__qty {
    margin: 0 !important;
}

.btn-add-cart-enhanced {
    background: linear-gradient(145deg, var(--secondary-color), #4a5640);
    border: none;
    color: white;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1.15;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .product-card .add-to-cart-form {
        margin-top: 0.25rem;
    }

    .product-card .add-to-cart-form .product-card__qty {
        justify-content: center;
    }
}

.btn-add-cart-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 106, 78, 0.35);
    color: white;
}

.btn-add-cart-enhanced:active {
    transform: scale(0.97);
}

.btn-add-cart-enhanced.is-success {
    background: linear-gradient(145deg, #43a047, #2e7d32);
}

.btn-add-cart-enhanced .btn-text,
.btn-add-cart-enhanced .btn-success-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
}

.btn-add-cart-enhanced .btn-success-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.btn-add-cart-enhanced.is-success .btn-text {
    opacity: 0;
    transform: translateY(100%);
}

.btn-add-cart-enhanced.is-success .btn-success-text {
    opacity: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   MOBILE STICKY CHECKOUT BAR
───────────────────────────────────────────────────────────────────────────── */
.mobile-checkout-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, #fff 100%);
    backdrop-filter: blur(12px);
    padding: 0.875rem 1rem;
    padding-bottom: calc(0.875rem + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(61, 61, 51, 0.08);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: none;
}

.mobile-checkout-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.mobile-checkout-bar__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 100%;
}

.mobile-checkout-bar__info {
    flex: 1;
    min-width: 0;
}

.mobile-checkout-bar__count {
    font-size: 0.85rem;
    color: #666;
}

.mobile-checkout-bar__total {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.mobile-checkout-bar__btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(145deg, var(--secondary-color), #4a5640);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(95, 106, 78, 0.3);
    transition: all 0.3s ease;
}

.mobile-checkout-bar__btn:hover {
    color: white;
    transform: scale(1.02);
}

@media (max-width: 991.98px) {
    .mobile-checkout-bar {
        display: block;
    }
    
    .cart-fab {
        bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 480px) {
    .mobile-checkout-bar__btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   ENHANCED HOVER EFFECTS & MICRO-INTERACTIONS
───────────────────────────────────────────────────────────────────────────── */
.product-card {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-card {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.btn-primary-custom,
.btn-cart,
.btn-hero-primary,
.btn-hero-secondary,
.btn-checkout-primary,
.btn-add-cart-enhanced {
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::after,
.btn-hero-primary::after,
.btn-checkout-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary-custom:active::after,
.btn-hero-primary:active::after,
.btn-checkout-primary:active::after {
    width: 300px;
    height: 300px;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--luxury-cream);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}