/* ==========================================================================
   AuraLine Luxury Storefront Stylesheet — Design System
   Warm Hospitality & Hotel Supply Palette (Beige / Taupe / Bronze)
   Zero Green UI — Made in Shanghai Origin
   ========================================================================== */

:root {
    /* --- Core Brand Tokens --- */
    --bg-main: #FAF8F5;
    --bg-secondary: #F3EEE8;
    --bg-alt: #F3EEE8;
    --card: #F7F3EE;
    --card-hover: #F2ECE4;
    --card-white: #FFFFFF;

    --text-primary: #1F1D1A;
    --text-secondary: #5A544C;
    --text-tertiary: #7D756C;
    --text-inverse: #FFFFFF;

    --accent: #B89A78;
    --accent-hover: #A68764;
    --accent-dark: #9D7D5A;
    --accent-darker: #846645;
    --accent-light: #EFE7DE;
    --accent-subtle: rgba(184, 154, 120, 0.12);

    --border: #DED5CB;
    --border-light: #EBE5DC;
    --border-dark: #C9BEB1;

    --badge-bg: #EFE8DF;
    --badge-text: #584B3E;
    --badge-gold-bg: rgba(184, 154, 120, 0.15);
    --badge-gold-text: #8A6B46;

    /* --- Status & Notifications --- */
    --status-success: #3E7C59;
    --status-success-bg: #EAF4EE;
    --status-alert: #C45A45;
    --status-alert-bg: #FBEFEF;

    /* --- Compatibility Aliases for Existing Selectors --- */
    --color-bg: var(--bg-main);
    --color-bg-card: var(--card-white);
    --color-text-dark: var(--text-primary);
    --color-text-muted: var(--text-secondary);
    --color-terracotta: var(--accent-dark);
    --color-terracotta-hover: var(--accent-darker);
    --color-primary: var(--accent-dark);
    --color-primary-hover: var(--accent-darker);
    --color-olive: var(--accent);
    --color-olive-dark: var(--accent-dark);
    --color-sage: var(--bg-secondary);
    --color-peach: var(--bg-secondary);
    --color-border: var(--border);

    /* --- Typography --- */
    --font-serif: "Cormorant Garamond", "Lora", serif;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* --- Spacing & Radii --- */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 9999px;

    /* --- Shadows --- */
    --shadow-sm: 0 2px 6px rgba(31, 29, 26, 0.04);
    --shadow-md: 0 6px 18px rgba(31, 29, 26, 0.06);
    --shadow-lg: 0 16px 36px rgba(31, 29, 26, 0.08);
    --shadow-xl: 0 24px 60px rgba(31, 29, 26, 0.12);
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, opacity 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Accessible focus visible ring */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Decorative Organic Shapes */
.bg-shape-top-right,
.bg-shape-bottom-left {
    display: none;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 13px;
    border-radius: var(--radius-md);
    font-weight: 500;
}

/* A missing production photo should not leave an empty-looking card. The
   contextual art is a local category reference only; the label keeps that
   distinction clear until the product's own photo is uploaded. */
.image-placeholder--contextual {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #f4eee7;
    color: var(--text-primary);
}

.image-placeholder--contextual::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(31, 29, 26, 0) 54%, rgba(31, 29, 26, 0.18) 100%);
    content: '';
    pointer-events: none;
}

.image-placeholder-art {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    padding: 12px;
    box-sizing: border-box;
    object-fit: contain;
    object-position: center;
    opacity: 0.9;
}

.image-placeholder-label {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    background: rgba(31, 29, 26, 0.68);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    box-sizing: border-box;
}

/* ==========================================================================
   Buttons & Action Tokens
   ========================================================================== */

.btn-terracotta,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--accent-dark);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.2px;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    border: 1px solid var(--accent-dark);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(157, 125, 90, 0.22);
}

.btn-terracotta:hover,
.btn-primary:hover {
    background-color: var(--accent-darker);
    border-color: var(--accent-darker);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(157, 125, 90, 0.32);
}

.btn-terracotta:active,
.btn-primary:active {
    transform: translateY(0);
}

.btn-terracotta:disabled,
.btn-primary:disabled {
    background-color: #D3CABE;
    border-color: #D3CABE;
    color: #8C8478;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--card);
    color: var(--text-primary);
    padding: 12px 26px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 14px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--card-hover);
    border-color: var(--accent);
    color: var(--accent-darker);
}

.btn-add {
    flex: 1;
    height: 42px;
    background-color: var(--accent-dark);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 0 16px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-add:hover {
    background-color: var(--accent-darker);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(157, 125, 90, 0.28);
}

.btn-add:active {
    transform: translateY(0);
}

.btn-load-more {
    background-color: var(--card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 14px 44px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-load-more:hover {
    background-color: var(--accent-dark);
    color: #ffffff;
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(157, 125, 90, 0.25);
}

.btn-load-more:active {
    transform: translateY(0);
}

.btn-retry {
    background-color: var(--accent-dark);
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 16px;
}

.btn-retry:hover {
    background-color: var(--accent-darker);
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: var(--text-primary);
    color: #ffffff;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
    max-width: calc(100vw - 48px);
    flex-wrap: wrap;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.toast.clickable {
    cursor: pointer;
    user-select: none;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.toast.clickable:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
    background: #2B2824;
}

.toast-action {
    color: var(--accent);
    font-weight: 600;
    margin-left: 8px;
    white-space: nowrap;
}

.toast-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.toast-action-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(184, 154, 120, 0.25);
    color: #FFE6C9;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.toast.clickable:hover .toast-action-hint {
    background: rgba(184, 154, 120, 0.4);
    transform: translateX(2px);
}

/* ==========================================================================
   Top Announcement / Delivery Bar
   ========================================================================== */

.announcement-bar {
    width: 100%;
    background-color: #D9CCC0;
    color: #443B30;
    padding: 7px 40px;
    font-size: 12.5px;
    border-bottom: 1px solid rgba(184, 154, 120, 0.25);
}

.announcement-container {
    max-width: 1540px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
}

.announcement-left {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.announcement-icon {
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}

.announcement-text {
    color: #443B30;
    font-weight: 500;
}

.announcement-text strong {
    color: #2A241E;
    font-weight: 600;
}

.announcement-links {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12.5px;
    color: #554A3D;
}

.announcement-links a:hover {
    color: var(--accent-dark);
}

@media (max-width: 1024px) {
    .announcement-links {
        display: none;
    }
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    background-color: var(--bg-main);
    padding: 16px 40px;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.header-container {
    max-width: 1540px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-serif);
    font-size: 34px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-sub {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--accent-dark);
    margin-top: 4px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.logo-importer {
    margin-top: 3px;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.2s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 4px;
}

.header-phone-link:hover {
    color: var(--accent-dark);
}

.header-quick-actions {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.header-utility-link {
    display: inline-flex;
    min-height: 34px;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: #FFFFFF;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.header-utility-link:hover,
.header-utility-link:focus-visible {
    border-color: var(--accent);
    background: var(--bg-secondary);
    color: var(--accent-dark);
    outline: none;
}

.header-price-list-link {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #FFFFFF;
}

.header-price-list-link:hover,
.header-price-list-link:focus-visible {
    background: #634529;
    border-color: #634529;
    color: #FFFFFF;
}

.header-whatsapp-link {
    border-color: rgba(120, 134, 99, 0.45);
}

@media (max-width: 1200px) {
    .header-quick-actions {
        display: none;
    }
}

/* Header Language Switcher Dropdown */
.header-lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 4px;
}

.header-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-sans, inherit);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary, #2A2723);
    padding: 6px 10px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid rgba(220, 210, 198, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.header-lang-btn:hover {
    background-color: var(--bg-secondary, #F4EDE4);
    border-color: var(--accent, #A68363);
}

.header-lang-btn[aria-expanded="true"] {
    background-color: var(--bg-secondary, #F4EDE4);
    border-color: var(--accent-dark, #785635);
}

.header-lang-chevron {
    color: var(--text-tertiary, #9C9388);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-lang-btn[aria-expanded="true"] .header-lang-chevron {
    transform: rotate(180deg);
}

.header-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 145px;
    background: #FFFFFF;
    border: 1px solid rgba(220, 210, 198, 0.85);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(31, 29, 26, 0.12);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1100;
    animation: langDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes langDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-lang-dropdown.open {
    display: flex;
}

.header-lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: transparent;
    border: none;
    font-family: var(--font-sans, inherit);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #2A2723);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
    width: 100%;
}

.header-lang-option:hover {
    background-color: #FAF7F2;
    color: var(--accent-dark, #785635);
}

.header-lang-option.active {
    background-color: #F4EDE4;
    font-weight: 700;
    color: var(--accent-dark, #785635);
}

.header-lang-option .lang-code {
    font-size: 11px;
    font-weight: 700;
    background: #EBE3D7;
    padding: 2px 5px;
    border-radius: 4px;
    color: #554A3D;
}

.header-lang-option.active .lang-code {
    background: var(--accent-dark, #785635);
    color: #FFFFFF;
}

.header-lang-option .lang-check {
    display: none;
    color: var(--accent-dark, #785635);
    margin-left: auto;
}

.header-lang-option.active .lang-check {
    display: inline-block;
}

/* Mobile Burger Drawer Language Switcher */
.burger-lang-section {
    padding: 14px 20px;
    background-color: #F9F5EF;
    border-bottom: 1px solid rgba(220, 210, 198, 0.5);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.burger-lang-label {
    font-size: 12px;
    color: var(--text-secondary, #736B60);
    font-weight: 600;
}

.burger-lang-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.burger-lang-pill {
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    background: #FFFFFF;
    border: 1px solid rgba(220, 210, 198, 0.7);
    color: var(--text-primary, #2A2723);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.burger-lang-pill.active {
    background-color: var(--accent-dark, #785635);
    color: #FFFFFF;
    border-color: var(--accent-dark, #785635);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background-color: var(--bg-secondary);
    border-color: var(--border);
    color: var(--accent-dark);
}

.cart-btn-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-btn-icon:hover {
    background-color: var(--bg-secondary);
    border-color: var(--border);
    color: var(--accent-dark);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--accent-dark);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--bg-main);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    line-height: 1;
}

/* Burger trigger on desktop/mobile */
.burger-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}

/* ==========================================================================
   Hero Section & First Screen Refinement
   ========================================================================== */

.hero-section {
    padding: 16px 40px 0;
    max-width: 1540px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.hero-container {
    display: grid;
    grid-template-columns: 38% 62%;
    gap: 28px;
    align-items: center;
    min-height: 490px;
}

.hero-text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    padding-right: 12px;
}

.hero-shanghai-decor {
    position: absolute;
    right: -110px;
    bottom: -15px;
    width: 440px;
    max-width: 90%;
    opacity: 0.26;
    pointer-events: none;
    z-index: 1;
    user-select: none;
    mix-blend-mode: multiply;
}

.hero-line-art-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.hero-origin-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #F4EEE7;
    color: #8C6845;
    border: 1px solid rgba(184, 154, 120, 0.4);
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(52px, 4.1vw, 68px);
    font-weight: 400;
    line-height: 1.05;
    color: var(--text-primary);
    margin: 0 0 14px 0;
    letter-spacing: -1.2px;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 22px;
    max-width: 440px;
}

.btn-terracotta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #8C6845;
    color: #FFFFFF;
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(140, 104, 69, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 16px;
}

.btn-terracotta:hover {
    background-color: #785635;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(140, 104, 69, 0.35);
}

.hero-location-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    color: var(--accent-dark);
    font-weight: 500;
    letter-spacing: 0.2px;
}

.hero-location-tag svg {
    color: #8C6845;
    flex-shrink: 0;
}

.hero-image-col {
    display: grid;
    grid-template-columns: 1fr 156px;
    grid-template-rows: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    height: 445px;
    min-width: 0;
    min-height: 0;
    align-items: stretch;
}

.hero-scene-card {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    border-radius: 20px;
    overflow: hidden;
    background-color: #EDE6DC;
    box-shadow: 0 14px 40px rgba(42, 39, 35, 0.08);
    border: 1px solid rgba(229, 223, 215, 0.7);
}

.hero-scene-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
}

.hero-side-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.hero-side-card {
    position: relative;
    flex: 1;
    min-height: 0;
    border-radius: 14px;
    overflow: hidden;
    background-color: #EDE6DC;
    border: 1px solid rgba(229, 223, 215, 0.85);
    box-shadow: 0 4px 14px rgba(42, 39, 35, 0.06);
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.hero-side-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(42, 39, 35, 0.12);
    border-color: rgba(184, 154, 120, 0.7);
}

.hero-side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.hero-side-card:hover .hero-side-img {
    transform: scale(1.04);
}

.hero-side-card-enter {
    animation: heroSideCardCrossfade 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroSideCardCrossfade {
    from { opacity: 0; transform: translateY(8px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-side-card-enter { animation: none; }
}

/* Dynamic Luxury "NEW" Corner Ribbon */
.hero-side-ribbon {
    position: absolute;
    top: 13px;
    left: -28px;
    transform: rotate(-45deg);
    background: linear-gradient(135deg, #FBF7F2 0%, #E6D7C7 100%);
    color: #6C4F34;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 28px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(206, 188, 168, 0.85);
    pointer-events: none;
    z-index: 3;
    text-align: center;
    line-height: 1.2;
}

.hero-side-ribbon span {
    display: block;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
}

.hero-brand-pill-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 14px;
    border: 1px solid rgba(229, 223, 215, 0.8);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    z-index: 3;
}

.hero-pill-icon-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #EDE5DC;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-pill-emblem {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.hero-pill-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.hero-pill-text strong {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.hero-pill-text span {
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.2;
}

/* ==========================================================================
   Benefits Strip Section
   ========================================================================== */

.benefits-section {
    padding: 18px 40px 0;
    max-width: 1540px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: #FAF7F2;
    border: 1px solid var(--border-light, #EBE5DC);
    border-radius: 18px;
    padding: 12px 18px;
    box-shadow: 0 2px 12px rgba(42, 39, 35, 0.02);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 16px;
}

.benefit-item:not(:last-child) {
    border-right: 1px solid var(--border-light, #EBE5DC);
}

.benefit-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #EDE5DC;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 9px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.benefit-item:hover .benefit-icon-circle {
    transform: scale(1.06);
    background-color: #E5DBD0;
}

.benefit-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.benefit-info h4 {
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px;
}

.benefit-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.35;
}

/* ==========================================================================
   Hero Category Cards Section
   ========================================================================== */

.hero-categories-section {
    padding: 22px 40px 32px;
    max-width: 1540px;
    margin: 0 auto;
}

.hero-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.hero-category-card {
    position: relative;
    background: linear-gradient(135deg, #EDE5DC 0%, #E8DFD5 100%);
    border: 1px solid rgba(201, 190, 177, 0.5);
    border-radius: 18px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    overflow: hidden;
    min-height: 154px;
    box-shadow: 0 4px 16px rgba(42, 39, 35, 0.03);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hero-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(42, 39, 35, 0.08);
    border-color: var(--accent);
}

.hero-cat-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    max-width: 58%;
}

.hero-cat-title {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0 0 6px;
    letter-spacing: -0.2px;
}

.hero-cat-subtitle {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.hero-cat-thumb-wrap {
    width: 104px;
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    margin-right: 18px;
}

.hero-cat-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.hero-category-card:hover .hero-cat-img {
    transform: scale(1.06);
}

.hero-cat-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    z-index: 3;
}

.hero-category-card:hover .hero-cat-btn {
    background: var(--accent-dark);
    color: #FFFFFF;
    transform: translateX(2px);
}

/* Section: Собираем атмосферу */
.atmosphere-section {
    padding: 36px 40px 42px;
    max-width: 1420px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.atmosphere-header-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    margin-bottom: 32px;
}

.atmosphere-text-block {
    max-width: 560px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin: 0 0 10px;
    line-height: 1.15;
}

.section-subtitle {
    font-size: 15.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.atmosphere-botanical-decor {
    position: absolute;
    right: 0;
    top: -75px;
    width: 320px;
    max-width: 28%;
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.botanical-branch-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.atmosphere-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 5;
}

.atmosphere-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: transparent;
    border: none;
    padding: 0;
    position: relative;
    z-index: 5;
    transition: transform 0.2s ease;
}

.atmosphere-item:hover {
    transform: translateY(-2px);
}

.atmosphere-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: #ECE3D8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7A5E3F;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.atmosphere-item:hover .atmosphere-circle {
    transform: scale(1.06);
    background-color: #E2D6C9;
}

.atmosphere-info h3 {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 3px;
    color: var(--text-primary);
    line-height: 1.25;
}

.atmosphere-info p {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.35;
}

/* Dedicated Shanghai Brand Origin Block */
.shanghai-origin-block {
    max-width: 1420px;
    margin: 0 auto 30px;
    padding: 0 40px;
    position: relative;
    z-index: 5;
}

.shanghai-origin-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(243, 236, 230, 0.85) 100%);
    border: 1px solid rgba(184, 154, 120, 0.22);
    border-radius: 16px;
    padding: 18px 30px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-items: center;
    box-shadow: 0 4px 16px rgba(31, 29, 26, 0.03);
}

.shanghai-origin-emblem {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 1.5px solid rgba(184, 154, 120, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px;
    box-shadow: 0 3px 10px rgba(31, 29, 26, 0.05);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.shanghai-origin-container:hover .shanghai-origin-emblem {
    transform: scale(1.05) rotate(3deg);
}

.shanghai-emblem-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.origin-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--accent-dark);
    display: block;
    margin-bottom: 2px;
}

.origin-title {
    font-family: var(--font-serif);
    font-size: 23px;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0 0 3px;
    letter-spacing: -0.3px;
}

.origin-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.45;
    max-width: 820px;
    margin: 0;
}

/* Meta Bar */
.meta-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background-color: var(--bg-secondary);
    padding: 10px 40px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.meta-container {
    max-width: 1420px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   Catalog Section & Layout
   ========================================================================== */

.catalog-section {
    padding: 36px 40px 70px;
    max-width: 1540px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.catalog-header-tier {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.catalog-section-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 2.8vw, 42px);
    font-weight: 400;
    color: var(--text-primary);
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}

.catalog-section-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.catalog-header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-all-positions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #FAF7F2;
    border: 1px solid var(--border-light, #EBE5DC);
    border-radius: var(--radius-pill, 9999px);
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(42, 39, 35, 0.02);
}

.btn-all-positions:hover,
.btn-all-positions.active {
    background-color: #EDE5DC;
    border-color: var(--accent, #8C6845);
    color: var(--accent-dark, #785635);
}

.all-positions-badge {
    background-color: #E5DBD0;
    color: #554A3D;
    font-size: 11.5px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-all-positions.active .all-positions-badge {
    background-color: var(--accent-dark, #785635);
    color: #FFFFFF;
}

.category-carousel-arrows {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 1px solid var(--border-light, #EBE5DC);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(42, 39, 35, 0.04);
}

.carousel-arrow-btn:hover {
    background-color: #EDE5DC;
    border-color: var(--accent);
    color: var(--accent-dark);
    transform: scale(1.05);
}

/* Mobile Category Trigger & Controls */
.mobile-filter-bar {
    display: none;
    width: 100%;
    margin-top: 16px;
}

.btn-mobile-categories {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.btn-mobile-categories:hover {
    border-color: var(--accent);
    background-color: var(--card-hover);
}

.mobile-category-badge {
    background-color: var(--badge-bg);
    color: var(--badge-text);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
}

/* ==========================================================================
   Tier 1: Category Visual Navigation Cards
   ========================================================================== */

.category-cards-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 38px;
}

.category-cards-wrapper[hidden] {
    display: none !important;
}

.catalog-workspace {
    display: grid;
    grid-template-columns: minmax(200px, 220px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.catalog-stage {
    min-width: 0;
}

.category-stage-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0 2px 12px;
}

.category-stage-title {
    margin: 0;
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.1;
}

.category-stage-hint {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.35;
    text-align: right;
}

.category-cards-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 2px 14px;
}

.category-cards-track::-webkit-scrollbar {
    display: none;
}

.category-nav-card {
    background-color: #FAF7F2;
    border: 1px solid rgba(220, 210, 198, 0.7);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    min-height: 270px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 4px 14px rgba(42, 39, 35, 0.03);
    user-select: none;
    color: inherit;
    text-decoration: none;
}

.category-nav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(42, 39, 35, 0.08);
    border-color: var(--accent);
}

.category-nav-card.active {
    border: 2px solid var(--accent-dark, #785635);
    box-shadow: 0 8px 22px rgba(120, 86, 53, 0.15);
    background-color: #F4EDE4;
}

.category-nav-img-wrap {
    width: 100%;
    height: 205px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px 16px 6px;
    box-sizing: border-box;
}

.category-nav-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.category-nav-card:hover .category-nav-img {
    transform: scale(1.05);
}

.category-nav-footer {
    padding: 10px 16px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background-color: transparent;
    border-top: none;
    min-height: 46px;
    box-sizing: border-box;
}

.category-nav-card.active .category-nav-footer {
    background-color: #F4EDE4;
}

.category-nav-name {
    font-family: var(--font-serif, serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-nav-badge {
    background-color: #E5DBD0;
    color: #554A3D;
    font-size: 11.5px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

.category-nav-card.active .category-nav-badge {
    background-color: var(--accent-dark, #785635);
    color: #FFFFFF;
}

/* ==========================================================================
   Tier 2: Products Section & Full-Width Grid
   ========================================================================== */

.catalog-products-tier {
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-margin-top: 100px;
}

.catalog-products-layout {
    display: grid;
    grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.catalog-sidebar {
    position: sticky;
    top: 96px;
    min-width: 0;
    padding: 18px 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.catalog-sidebar-title {
    margin: 0 2px 12px;
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
}

.catalog-products-main {
    min-width: 0;
}

.products-tier-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.products-tier-title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    margin: 0;
}

.product-grid-full {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1300px) {
    .product-grid-full {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 860px) {
    .product-grid-full {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 580px) {
    .product-grid-full {
        grid-template-columns: 1fr;
    }
}

/* Backwards compatibility for sidebar buttons if needed */
.sidebar-nav-btn,
.drawer-nav-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-nav-btn:hover,
.drawer-nav-btn:hover {
    background-color: var(--card-hover);
    color: var(--text-primary);
    border-color: var(--border);
}

.sidebar-nav-btn.active,
.drawer-nav-btn.active {
    background-color: var(--accent-dark);
    color: #ffffff;
    border-color: var(--accent-dark);
    font-weight: 600;
}

.sidebar-badge {
    font-size: 12px;
    background-color: var(--badge-bg);
    color: var(--badge-text);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: all 0.2s ease;
}

.sidebar-nav-btn.active .sidebar-badge,
.drawer-nav-btn.active .sidebar-badge {
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ==========================================================================
   Catalog Toolbar, Search, Filters, Sorting & Active Chips
   ========================================================================== */

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background-color: #FFFFFF;
    border: 1px solid var(--border-light, #EBE5DC);
    border-radius: 14px;
    padding: 8px 14px;
    min-height: 52px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(42, 39, 35, 0.03);
    position: relative;
    z-index: 10;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 580px;
}

.catalog-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
}

.search-input-icon {
    position: absolute;
    left: 12px;
    color: var(--text-tertiary, #9C948A);
    pointer-events: none;
}

.catalog-search-input {
    width: 100%;
    height: 38px;
    padding: 0 32px 0 36px;
    background-color: var(--bg-main, #FAF7F2);
    border: 1px solid var(--border-light, #EBE5DC);
    border-radius: var(--radius-pill, 9999px);
    font-size: 13.5px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
}

.catalog-search-input:focus {
    background-color: #FFFFFF;
    border-color: var(--accent, #8C6845);
    box-shadow: 0 0 0 3px rgba(140, 104, 69, 0.12);
}

.catalog-search-clear {
    position: absolute;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #E2D9CE;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease;
}

.catalog-search-clear:hover {
    background-color: #D1C5B7;
}

.catalog-filter-dropdown-wrap {
    position: relative;
}

.btn-catalog-filters {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    background-color: var(--bg-main, #FAF7F2);
    border: 1px solid var(--border-light, #EBE5DC);
    border-radius: var(--radius-pill, 9999px);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-catalog-filters:hover,
.btn-catalog-filters.active {
    background-color: #EDE5DC;
    border-color: var(--accent, #8C6845);
    color: var(--accent-dark, #785635);
}

.filter-count-badge {
    background-color: var(--accent-dark, #785635);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.catalog-filter-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 290px;
    background-color: #FFFFFF;
    border: 1px solid var(--border, #E5DFD7);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(42, 39, 35, 0.12);
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 14px;
    z-index: 100;
}

.catalog-filter-popover.open {
    display: flex;
    animation: filterPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes filterPopIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.filter-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-popover-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.btn-close-popover {
    background: transparent;
    border: none;
    font-size: 14px;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}

.btn-close-popover:hover {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.price-inputs-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-input-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-input-field label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.price-input-field input {
    width: 100%;
    height: 34px;
    padding: 0 10px;
    background-color: var(--bg-main, #FAF7F2);
    border: 1px solid var(--border-light, #EBE5DC);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
}

.price-input-field input:focus {
    border-color: var(--accent);
    background-color: #FFFFFF;
}

.price-sep {
    color: var(--text-tertiary);
    margin-top: 18px;
    font-weight: 600;
}

.filter-popover-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px solid var(--border-light);
}

.btn-reset-filters {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset-filters:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-apply-filters {
    padding: 6px 14px;
    background-color: var(--accent-dark, #8C6845);
    border: 1px solid var(--accent-dark, #8C6845);
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-apply-filters:hover {
    background-color: #785635;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.toolbar-found-count {
    font-size: 13.5px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.toolbar-found-count strong {
    color: var(--text-primary);
    font-weight: 700;
}

.catalog-sort-wrap {
    position: relative;
    user-select: none;
}

/* Native select for test automation & accessibility - hidden offscreen visually */
.catalog-sort-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

/* Luxury Custom Trigger */
.catalog-sort-trigger {
    height: 38px;
    padding: 0 16px 0 18px;
    background-color: var(--card-white, #FFFFFF);
    border: 1px solid var(--border-light, #EBE5DC);
    border-radius: var(--radius-pill, 9999px);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary, #2A2723);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(31, 29, 26, 0.04);
}

.catalog-sort-trigger:hover {
    border-color: var(--accent-dark, #9D7D5A);
    background-color: var(--bg-main, #FAF7F2);
    box-shadow: 0 2px 8px rgba(157, 125, 90, 0.12);
}

.catalog-sort-trigger.active,
.catalog-sort-trigger[aria-expanded="true"] {
    border-color: var(--accent-dark, #9D7D5A);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(157, 125, 90, 0.15);
}

.catalog-sort-trigger-label {
    white-space: nowrap;
}

.catalog-sort-chevron {
    color: var(--text-secondary, #665D53);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.catalog-sort-trigger[aria-expanded="true"] .catalog-sort-chevron {
    transform: rotate(180deg);
    color: var(--accent-dark, #9D7D5A);
}

/* Luxury Custom Menu (Dropdown Popover) */
.catalog-sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #FFFFFF;
    border: 1px solid var(--border-light, #EBE5DC);
    border-radius: var(--radius-lg, 14px);
    box-shadow: 0 12px 36px rgba(31, 29, 26, 0.14), 0 2px 8px rgba(31, 29, 26, 0.04);
    padding: 6px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transform-origin: top right;
    animation: sortMenuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sortMenuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.catalog-sort-option {
    width: 100%;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary, #3E3730);
    border: none;
    background: transparent;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.catalog-sort-option:hover {
    background-color: var(--bg-main, #FAF7F2);
    color: var(--text-primary, #2A2723);
}

.catalog-sort-option.active {
    background-color: #F4EDE4;
    color: var(--accent-dark, #785635);
    font-weight: 600;
}

.catalog-sort-option .sort-check-icon {
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.15s ease;
    color: var(--accent-dark, #785635);
    flex-shrink: 0;
}

.catalog-sort-option.active .sort-check-icon {
    opacity: 1;
    transform: scale(1);
}

.sort-menu-divider {
    height: 1px;
    background-color: rgba(220, 210, 198, 0.55);
    margin: 4px 6px;
}

/* Active Chips Strip */
.catalog-active-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    /* Keep the active filter row visually separate from the toolbar and the
       first product row on both desktop and mobile. */
    margin: 10px 0 12px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #EDE5DC;
    border: 1px solid rgba(184, 154, 120, 0.4);
    border-radius: var(--radius-pill, 9999px);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.filter-chip-remove {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    transition: color 0.15s ease;
}

.filter-chip-remove:hover {
    color: #C0392B;
}

.btn-clear-all-chips {
    background: transparent;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-dark);
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 8px;
}

.btn-clear-all-chips:hover {
    color: var(--text-primary);
}

/* Empty search & filter state */
.catalog-empty-search {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    background-color: var(--card, #FFFFFF);
    border: 1px solid var(--border-light, #EBE5DC);
    border-radius: var(--radius-lg, 16px);
    gap: 12px;
}

.catalog-empty-search .empty-icon {
    font-size: 36px;
    line-height: 1;
}

.catalog-empty-search h3 {
    font-family: var(--font-serif, serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.catalog-empty-search p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    max-width: 380px;
}

.btn-reset-catalog-filters {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background-color: var(--accent-dark, #8C6845);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-reset-catalog-filters:hover {
    background-color: #785635;
    transform: translateY(-1px);
}

/* ==========================================================================
   Product Cards & Grid
   ========================================================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.25s ease;
    box-shadow: 0 2px 10px rgba(31, 29, 26, 0.04);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.product-image {
    width: 100%;
    height: 260px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 14px;
    background-color: var(--bg-main, #FAF7F2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border-light, #EBE5DC);
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-meta {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.85;
}

.product-title {
    font-family: var(--font-sans);
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.product-title-link {
    color: inherit;
    text-decoration: none;
}

.product-title-link:focus-visible,
.category-nav-card:focus-visible,
.modal-related-card:focus-visible {
    outline: 2px solid var(--accent-dark, #785635);
    outline-offset: 3px;
}

.product-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.76em;
    flex: 1;
}

.product-price-box {
    margin-top: auto;
    margin-bottom: 14px;
    padding: 10px 14px;
    background-color: #FFFFFF;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-row-main {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
}

.product-price {
    font-size: 17.5px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.product-price-unit {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.price-row-vat {
    font-size: 12px;
    color: var(--text-secondary);
}

.price-vat-val {
    font-weight: 600;
    color: var(--accent-darker);
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.product-actions .btn-add {
    flex: 0 0 42px;
    width: 100%;
    min-width: 0;
}

.card-quantity-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.card-qty-label {
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

.card-qty-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
}

.qty-input {
    width: 54px;
    height: 42px;
    padding: 0 4px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: #FFFFFF;
    outline: none;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 40px;
    color: var(--text-primary);
    -moz-appearance: textfield;
    appearance: textfield;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.qty-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-subtle);
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ==========================================================================
   Pagination & Counters
   ========================================================================== */

.catalog-pagination-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.catalog-counter {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.2px;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background-color: var(--card);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background-color: var(--card-hover);
    border-color: var(--accent);
}

.page-btn.active {
    background-color: var(--accent-dark);
    color: #ffffff;
    border-color: var(--accent-dark);
    font-weight: 600;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--card);
    border-color: var(--border-light);
}

.page-dots,
.pagination-dots {
    color: var(--text-secondary);
    padding: 0 4px;
    font-size: 14px;
}

.catalog-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    width: 100%;
}

/* ==========================================================================
   Skeleton Loading & Status Messages
   ========================================================================== */

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-card {
    background-color: var(--card);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.skeleton-img,
.skeleton-line,
.skeleton-btn {
    background: linear-gradient(90deg, #EFECE6 25%, #F7F5F0 50%, #EFECE6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-img {
    width: 100%;
    height: 240px;
    border-radius: var(--radius-md);
}

.skeleton-line {
    height: 18px;
    width: 100%;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-btn {
    height: 42px;
    width: 100%;
    border-radius: var(--radius-md);
    margin-top: auto;
}

.catalog-status-card {
    grid-column: 1 / -1;
    background-color: var(--card);
    border-radius: var(--radius-xl);
    padding: 60px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 1px solid var(--border);
}

.status-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.status-title {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--text-primary);
}

.status-msg {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 400px;
}

/* ==========================================================================
   Mobile Categories Drawer (Bottom Sheet)
   ========================================================================== */

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(31, 29, 26, 0.45);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-main);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    padding: 24px;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-xl);
    border-top: 1px solid var(--border);
}

.drawer-overlay.active .drawer-panel {
    transform: translateY(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.drawer-header h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    background-color: var(--card);
    border: 1px solid var(--border-light);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drawer-item.active {
    background-color: var(--accent-dark);
    color: #ffffff;
    border-color: var(--accent-dark);
    font-weight: 600;
}

.drawer-item-count {
    font-size: 13px;
    opacity: 0.85;
}

/* -------------------------------------------------------------
   Full Burger Drawer (Matches Reference 06_burger_menu.png)
   ------------------------------------------------------------- */
.burger-drawer-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    /* The mobile menu is a full-page surface. Keeping the old 86vw cap left
       a grey strip visible beside it and made the drawer feel detached from
       the page it was meant to control. */
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    height: 100%;
    min-height: 100dvh;
    max-height: none;
    border-radius: 0;
    padding: 24px 18px;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.burger-drawer-overlay.active .burger-drawer-panel {
    transform: translateX(0);
}

.burger-drawer-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.burger-logo {
    display: flex;
    flex-direction: column;
}

.burger-logo .logo-title {
    font-size: 24px;
    line-height: 1;
}

.burger-logo .logo-sub {
    font-size: 9px;
    letter-spacing: 1px;
}

.burger-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.burger-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.burger-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.burger-category-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.burger-category-btn:hover,
.burger-category-btn.active {
    background-color: var(--bg-secondary);
    border-color: var(--accent);
    color: var(--accent-dark);
}

.burger-links-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.burger-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    color: var(--text-primary);
    font-size: 14px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

.burger-link-item:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-dark);
}

.link-arrow {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1;
}

.burger-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.burger-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.burger-contact-btn:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.burger-phone-link {
    color: var(--accent-dark);
    font-weight: 700;
}

.burger-brand-card {
    margin-top: auto;
    padding: 16px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.brand-card-text strong {
    font-family: var(--font-serif);
    font-size: 17px;
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.brand-card-text p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 6px;
}

.brand-origin {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-dark);
}

/* -------------------------------------------------------------
   Profile Info Modal (#profile-modal)
   ------------------------------------------------------------- */
/* ==========================================================================
   Storefront Auth & Profile Modal (Sprint B & D)
   ========================================================================== */
#profile-modal.modal-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    background-color: rgba(26, 22, 18, 0.68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.profile-modal-card {
    position: relative;
    background-color: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    overflow: hidden;
    box-sizing: border-box;
}

#profile-modal.active .profile-modal-card,
#profile-modal.open .profile-modal-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.product-favorite-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
    padding: 0;
}

.product-favorite-btn:hover {
    transform: scale(1.12);
    background-color: #FFFFFF;
    color: #E63946;
    border-color: #FFA8A8;
}

.product-favorite-btn.active {
    color: #E63946;
    background-color: #FFF5F5;
    border-color: #FFA8A8;
}

.product-favorite-btn.active svg {
    fill: #E63946;
}

/* ==========================================================================
   Auth Mode (Login & Register Modal: ~490px)
   ========================================================================== */
.profile-modal-card.auth-mode {
    max-width: 490px;
    width: 95%;
    padding: 36px 32px 30px;
    max-height: 90vh;
    overflow-y: auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 22px;
}

.auth-header h2 {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.auth-header p {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin: 0;
}

.auth-tabs {
    display: flex;
    background-color: #F4EFEA;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 22px;
    gap: 4px;
}

.auth-tab-btn {
    flex: 1;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.auth-tab-btn:hover {
    color: var(--text-primary);
}

.auth-tab-btn.active {
    background-color: #FFFFFF;
    color: var(--accent-dark);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .auth-form-row {
        grid-template-columns: 1fr;
    }
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-label-opt {
    font-size: 11.5px;
    font-weight: 400;
    color: var(--text-muted);
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input {
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--font-sans);
    background-color: #FAF9F7;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
    outline: none;
    background-color: #FFFFFF;
    border-color: var(--accent-dark);
    box-shadow: 0 0 0 3px rgba(157, 125, 90, 0.16);
}

.auth-input::placeholder {
    color: #A89F91;
    font-size: 13.5px;
}

.auth-input:disabled {
    background-color: #F1ECE6;
    color: var(--text-muted);
    cursor: not-allowed;
}

.toggle-pwd-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.toggle-pwd-btn:hover {
    color: var(--text-primary);
    background-color: rgba(0, 0, 0, 0.04);
}

.auth-error-box {
    background-color: #FDF2F0;
    border: 1px solid #F5C6CB;
    color: #A94442;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
    display: none;
}

.auth-error-box.visible {
    display: block;
}

.btn-auth-submit {
    height: 46px;
    background-color: var(--accent-dark);
    color: #FFFFFF;
    font-size: 14.5px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(157, 125, 90, 0.28);
}

.btn-auth-submit:hover:not(:disabled) {
    background-color: var(--accent-darker);
    box-shadow: 0 6px 18px rgba(157, 125, 90, 0.36);
}

.btn-auth-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ==========================================================================
   Dashboard Mode (Authenticated Personal Account: ~1040px)
   ========================================================================== */
.profile-modal-card.dashboard-mode {
    max-width: 1040px;
    width: 96%;
    min-height: 580px;
    max-height: 88vh;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.profile-modal-card.dashboard-mode #profile-modal-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    min-height: 580px;
    max-height: 88vh;
    flex: 1;
    overflow: hidden;
}

/* Left Sidebar */
.profile-sidebar {
    width: 250px;
    min-width: 250px;
    background-color: #FAF8F5;
    border-right: 1px solid var(--border);
    padding: 30px 18px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.profile-user-summary {
    text-align: left;
    padding-bottom: 20px;
    border-bottom: 1px solid #ECE7E1;
}

.profile-avatar-large {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9D7D5A, #7A5E3F);
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(157, 125, 90, 0.25);
    border: 2px solid #FFFFFF;
}

.profile-summary-name {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
    word-break: break-word;
}

.profile-summary-email {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--text-secondary);
    word-break: break-all;
}

.profile-nav-menu,
.profile-nav-tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 18px;
    flex: 1;
}

.profile-nav-btn,
.profile-nav-tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: left;
    position: relative;
}

.profile-nav-btn svg {
    color: var(--text-secondary);
    transition: color 0.18s ease, transform 0.18s ease;
    flex-shrink: 0;
}

.profile-nav-btn:hover {
    background-color: #F1ECE4;
    color: var(--text-primary);
}

.profile-nav-btn:hover svg {
    color: var(--text-primary);
}

.profile-nav-btn.active {
    background-color: #ECE3D7;
    color: var(--accent-dark);
    font-weight: 600;
}

.profile-nav-btn.active svg {
    color: var(--accent-dark);
}

.profile-tab-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    background-color: #E5DDD2;
    color: var(--text-secondary);
    transition: all 0.18s ease;
}

.profile-nav-btn.active .profile-tab-badge {
    background-color: var(--accent-dark);
    color: #FFFFFF;
}

.profile-sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid #ECE7E1;
}

.btn-sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 14px;
    border: 1px solid var(--border);
    background-color: #FFFFFF;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    color: #8A5A55;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-sidebar-logout:hover {
    background-color: #FFF2F2;
    border-color: #F5C6CB;
    color: #C53030;
}

/* Right Content Area */
.profile-content-area {
    flex: 1;
    padding: 32px 36px;
    overflow-y: auto;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-sizing: border-box;
}

.profile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
    gap: 16px;
    padding-right: 44px;
}

.profile-section-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-edit-profile-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background-color: #FAF8F5;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--accent-dark);
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-edit-profile-header:hover {
    background-color: #F2ECE3;
    border-color: var(--accent-dark);
}

/* Section Body Components */
.profile-info-card {
    background-color: #FAF9F7;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #ECE7E1;
    font-size: 13.5px;
}

.profile-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-info-label {
    color: var(--text-secondary);
    font-size: 13px;
}

.profile-info-val {
    color: var(--text-primary);
    font-weight: 500;
}

.profile-add-company-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.profile-add-company-cta:hover {
    color: var(--accent-darker);
}

.profile-edit-box {
    background-color: #FAF9F7;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 24px;
}

.profile-edit-box h4 {
    margin: 0 0 16px;
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--text-primary);
}

.profile-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.profile-edit-full {
    grid-column: 1 / -1;
}

.profile-edit-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

/* --- Addresses UI --- */
.address-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.address-card {
    background-color: #FAF9F7;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.address-card.is-default {
    border-color: var(--accent-dark);
    background-color: #FAF7F2;
}

.address-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.address-card-title {
    font-weight: 600;
    font-size: 14.5px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-default-address {
    font-size: 11px;
    background-color: var(--accent-dark);
    color: #FFFFFF;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.address-card-body {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.address-card-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
    align-items: center;
    flex-wrap: wrap;
}

.btn-address-action {
    background: none;
    border: none;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--accent-dark);
    cursor: pointer;
    padding: 2px 0;
    transition: color 0.15s ease;
}

.btn-address-action:hover {
    color: var(--accent-darker);
    text-decoration: underline;
}

.btn-address-action.delete {
    color: #A94442;
    margin-left: auto;
}

.btn-add-address {
    width: 100%;
    padding: 12px;
    border: 1px dashed var(--accent-dark);
    background-color: #FAF7F2;
    color: var(--accent-dark);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-address:hover {
    background-color: #F4EFEA;
}

.address-form-box {
    background-color: #FAF9F7;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 16px;
    text-align: left;
}

.address-form-box h4 {
    margin: 0 0 14px 0;
    font-size: 15px;
    font-family: var(--font-serif);
    color: var(--text-primary);
}

.address-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 500px) {
    .address-form-grid {
        grid-template-columns: 1fr;
    }
}

.address-form-full {
    grid-column: 1 / -1;
}

.address-form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    margin-top: 4px;
}

.address-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px;
}

.btn-address-cancel {
    padding: 8px 14px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.btn-address-save {
    padding: 8px 18px;
    border: none;
    background-color: var(--accent-dark);
    color: #FFFFFF;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* --- Products Grid in Profile Modal (Favorites / Recent) --- */
.profile-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 4px 0;
}

@media (min-width: 900px) {
    .profile-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.profile-product-item {
    background-color: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.profile-product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.profile-product-img {
    width: 100%;
    height: 130px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
}

.profile-product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.profile-product-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.profile-product-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-product-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: auto;
}

.btn-profile-cart-add {
    flex: 1;
    height: 34px;
    background-color: var(--accent-dark);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-profile-cart-add:hover {
    background-color: var(--accent-darker);
}

.btn-profile-fav-remove {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    background-color: transparent;
    color: #A94442;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-profile-fav-remove:hover {
    background-color: #FFF5F5;
    border-color: #F5C6CB;
}

/* --- Empty States --- */
.profile-empty-state {
    padding: 48px 16px;
    text-align: center;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.profile-empty-state svg {
    color: var(--text-muted);
    margin-bottom: 4px;
    opacity: 0.7;
}

.profile-empty-state p {
    font-size: 14.5px;
    margin: 0;
    color: var(--text-secondary);
}

.btn-close-profile {
    display: inline-block;
    padding: 8px 18px;
    background-color: var(--accent-dark);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 6px;
}

.btn-close-profile:hover {
    background-color: var(--accent-darker);
}

/* ==========================================================================
   Product Detail Modal (#product-modal)
   ========================================================================== */

#product-modal.modal-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
}

/* ==========================================================================
   Product Detail Modal (Matches Reference 04_product_page.png)
   ========================================================================== */

.product-modal-card {
    max-width: 1060px;
    width: 95%;
    margin: auto;
    padding: 36px 40px;
    border-radius: var(--radius-xl);
    background-color: var(--card-white, #FFFFFF);
    position: relative;
    max-height: min(92vh, 900px);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 24px 60px rgba(31, 29, 26, 0.18);
    border: 1px solid var(--border-light, #EBE5DC);
    transform: scale(0.96) translateY(12px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    z-index: 1001;
    scrollbar-width: thin;
    scrollbar-color: var(--border-dark, #C9BEB1) transparent;
}

.product-modal-card::-webkit-scrollbar {
    width: 6px;
}
.product-modal-card::-webkit-scrollbar-track {
    background: transparent;
}
.product-modal-card::-webkit-scrollbar-thumb {
    background: var(--border-dark, #C9BEB1);
    border-radius: 3px;
}

#product-modal.active .product-modal-card,
#product-modal.open .product-modal-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary, #F3EEE8);
    border: 1px solid var(--border, #E5DFD7);
    color: var(--text-primary, #2A2723);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    flex-shrink: 0;
}

.close-btn:hover {
    background: var(--card-hover, #EBE5DC);
    border-color: var(--border-dark, #C9BEB1);
    color: var(--accent-dark, #9D7D5A);
    transform: rotate(90deg);
}

.close-btn svg {
    display: block;
    width: 18px;
    height: 18px;
    margin: auto;
    stroke: currentColor;
}

.modal-close-corner {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
}

.product-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.15fr);
    gap: 36px;
    align-items: flex-start;
    width: 100%;
}

.product-modal-media {
    display: flex;
    gap: 14px;
    width: 100%;
    min-width: 0;
    align-items: flex-start;
}

.product-modal-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.gallery-thumb-btn,
.product-thumb-item {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    background-color: #FFFFFF;
    padding: 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.gallery-thumb-btn img,
.product-thumb-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.gallery-thumb-btn.active,
.product-thumb-item.active {
    border-color: var(--accent-dark);
    box-shadow: 0 2px 8px rgba(157, 125, 90, 0.25);
}

.product-modal-gallery {
    position: relative;
    flex: 1;
    min-width: 0;
}

.product-modal-img-wrap {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    background-color: #FFFFFF;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    box-sizing: border-box;
}

.product-modal-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    z-index: 5;
}

.gallery-nav-btn:hover {
    background: #FFFFFF;
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.08);
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.gallery-counter-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(31, 29, 26, 0.85);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(4px);
}

.product-modal-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    width: 100%;
}

.product-modal-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-modal-badge {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent-dark);
    background-color: var(--badge-gold-bg);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(184, 154, 120, 0.25);
}

.product-modal-article {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.product-modal-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.25;
}

.product-modal-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* 4 Spec Pills matching Reference 04_product_page.png */
.product-modal-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 4px 0 8px;
}

.spec-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.spec-pill svg {
    color: var(--accent-dark);
    flex-shrink: 0;
}

.spec-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Dual Split Price Box */
.product-modal-price-box {
    background-color: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-price-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modal-price-val-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.modal-price-main {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-price-novat {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-secondary);
}

.modal-price-unit {
    font-size: 12.5px;
    color: var(--text-tertiary);
}

.modal-price-sublabel {
    font-size: 11.5px;
    color: var(--text-tertiary);
}

.modal-price-divider {
    width: 1px;
    height: 38px;
    background-color: var(--border);
}

.product-modal-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
    min-width: 0;
}

.modal-qty-picker {
    height: 48px;
    width: 100%;
    padding-left: 14px;
    justify-content: space-between;
    box-sizing: border-box;
}

.modal-qty-label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-qty-stepper {
    display: grid;
    grid-template-columns: 40px 48px 40px;
    align-items: stretch;
    height: 100%;
    flex: 0 0 auto;
    border-left: 1px solid var(--border);
}

.modal-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
}

.modal-qty-quick-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.modal-qty-quick-btn {
    min-width: 46px;
    height: 44px;
    padding: 0 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #FFFFFF;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.modal-qty-quick-btn:hover,
.modal-qty-quick-btn:focus-visible {
    border-color: var(--accent);
    background: var(--bg-secondary);
    outline: none;
}

.modal-qty-quick-btn:active {
    transform: scale(0.96);
}

.qty-picker {
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 44px;
}

.qty-btn {
    width: 38px;
    height: 100%;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}

.qty-btn:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-dark);
}

.modal-qty-input {
    width: 48px;
    height: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    -moz-appearance: textfield;
}

.modal-qty-input::-webkit-outer-spin-button,
.modal-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-modal-add {
    flex: 1;
    min-width: 0;
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    white-space: nowrap;
}

/* Keep the primary action readable at laptop/tablet widths after the two
   bulk-quantity shortcuts are added to the modal. */
@media (min-width: 769px) and (max-width: 1200px) {
    .product-modal-actions {
        flex-wrap: wrap;
    }

    .modal-qty-controls,
    .btn-modal-add {
        flex: 1 1 100%;
        width: 100%;
    }

    .btn-modal-add {
        min-height: 48px;
    }
}

/* Modal Trust Strip */
.modal-trust-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-item svg {
    color: var(--accent-dark);
    flex-shrink: 0;
}

.trust-text {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    line-height: 1.35;
}

.trust-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.trust-text span {
    color: var(--text-secondary);
}

/* Neutral Placeholder for products without photo */
.product-modal-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(145deg, #FAF8F5 0%, #F3EEE8 100%);
    border-radius: var(--radius-md);
    color: var(--text-tertiary);
    text-align: center;
    padding: 24px;
}

.product-modal-img-placeholder svg {
    color: var(--accent-dark);
    opacity: 0.55;
}

.product-modal-img-placeholder .placeholder-text {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--accent-dark);
    text-transform: uppercase;
}

.product-modal-img-placeholder .placeholder-sub {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 240px;
    line-height: 1.4;
}

/* ── Related Products Section ("С этим товаром покупают") ── */
.product-modal-related {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light, #EBE5DC);
}

.modal-related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-related-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.2px;
}

.modal-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.modal-related-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #FFFFFF;
    border: 1px solid var(--border-light, #EBE5DC);
    border-radius: var(--radius-md, 12px);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    color: inherit;
    text-decoration: none;
    min-width: 0;
    box-sizing: border-box;
}

.modal-related-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(184, 154, 120, 0.15);
}

.modal-related-thumb {
    width: 62px;
    height: 62px;
    border-radius: var(--radius-sm, 8px);
    background-color: var(--bg-secondary, #F3EEE8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 4px;
    border: 1px solid var(--border-light, #EBE5DC);
}

.modal-related-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.modal-related-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-related-name {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-related-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 2px;
}

.modal-related-price {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-related-price .related-unit {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-tertiary);
}

.btn-related-quick-add {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--card-white, #FFFFFF);
    color: var(--accent-dark, #9D7D5A);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.btn-related-quick-add:hover {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
    transform: scale(1.06);
}

@media (max-width: 900px) {
    .modal-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .modal-related-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Side Cart Modal (Matches Reference 05_cart.png)
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(31, 29, 26, 0.45);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active,
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cart-modal-side {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 580px;
    background-color: #FAF9F7;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-xl);
    box-sizing: border-box;
    overflow-x: hidden;
    border-left: 1px solid var(--border);
}

.modal-overlay.active .cart-modal-side,
.modal-overlay.open .cart-modal-side {
    transform: translateX(0);
}

.cart-modal-header {
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background-color: #FAF9F7;
}

.cart-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-title-wrap h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 500;
    margin: 0;
    color: var(--text-primary);
}

.cart-count-badge {
    background-color: #EDE5DC;
    color: var(--accent-darker);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.cart-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-clear-cart {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 4px 8px;
}

.btn-clear-cart:hover {
    color: var(--status-alert);
}

.cart-items {
    padding: 16px 28px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.cart-item-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-item-art {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
}

.cart-item-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-variant {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price-unit {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 12.5px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.cart-item-price-unit strong {
    color: var(--text-primary);
    font-weight: 600;
}

.cart-item-price-unit span {
    font-size: 10.5px;
    color: var(--text-tertiary);
}

.cart-qty-ctrl {
    display: inline-flex;
    align-items: center;
    background-color: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 32px;
    flex-shrink: 0;
}

.btn-qty-minus,
.btn-qty-plus {
    width: 26px;
    height: 100%;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
    padding: 0;
}

.btn-qty-minus:hover,
.btn-qty-plus:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-dark);
}

.cart-qty-input {
    width: 36px;
    height: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-sans);
    color: var(--text-primary);
    padding: 0;
    margin: 0;
    -moz-appearance: textfield;
}

.cart-item-total-col {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
    min-width: 75px;
    text-align: right;
}

.btn-remove-item {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-tertiary, #A39D93);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    padding: 0;
}

.btn-remove-item:hover {
    background-color: #F8EBEB;
    border-color: #F5C6CB;
    color: #C0392B;
    transform: scale(1.08);
}

.btn-remove-item svg {
    display: block;
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.empty-cart-msg,
.cart-empty-msg {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14.5px;
    width: 100%;
}

.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 20px;
    gap: 10px;
    margin: auto 0;
    width: 100%;
    box-sizing: border-box;
}

.cart-empty-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
    margin-bottom: 4px;
}

.cart-empty-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.cart-empty-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    max-width: 250px;
    line-height: 1.45;
    margin: 0;
}

.btn-go-catalog {
    margin-top: 8px;
    height: 40px;
    padding: 0 22px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    background-color: var(--accent-dark);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-go-catalog:hover {
    background-color: var(--accent-darker);
    transform: translateY(-1px);
}

.cart-footer {
    padding: 20px 28px;
    background-color: #FAF9F7;
    border-top: 1px solid var(--border);
    box-sizing: border-box;
    flex-shrink: 0;
}

.cart-summary-box {
    background-color: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 16px;
}

.cart-summary-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.cart-pricing-mode {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0 0 16px;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-soft, #FAF7F2);
}

.cart-pricing-mode legend {
    width: 100%;
    padding: 0;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.cart-pricing-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
}

.cart-pricing-option input {
    accent-color: var(--accent-dark);
    margin: 0;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.cart-summary-row span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

.cart-summary-divider {
    height: 1px;
    background-color: var(--border-light);
    margin: 10px 0;
}

.cart-summary-total {
    margin-bottom: 0;
    align-items: flex-end;
}

.total-label-wrap {
    display: flex;
    flex-direction: column;
}

.total-main-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.total-vat-sub {
    font-size: 11px;
    color: var(--text-tertiary);
}

.total-sum-val {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-darker);
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.btn-full {
    width: 100%;
}

.btn-cart-checkout {
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
}

.btn-outline-gold {
    background: transparent;
    border: 1.5px solid var(--accent-dark);
    color: var(--accent-dark);
    border-radius: var(--radius-md);
    height: 44px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline-gold:hover {
    background: var(--accent-subtle);
    color: var(--accent-darker);
}

.cart-trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.cart-trust-badge svg {
    color: var(--accent-dark);
    flex-shrink: 0;
}

/* ==========================================================================
   Footer Benefits Strip (Matches Reference 03_footer.png)
   ========================================================================== */

.footer-benefits-strip {
    padding: 0 40px;
    margin: 70px auto 40px;
    max-width: 1540px;
    box-sizing: border-box;
    position: relative;
    z-index: 5;
}

.footer-benefits-container {
    background-color: #FAF7F2;
    border: 1px solid rgba(215, 203, 189, 0.65);
    border-radius: 16px;
    padding: 26px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 120px;
    box-sizing: border-box;
}

.footer-benefit-col {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.footer-benefit-divider {
    width: 1px;
    height: 48px;
    background-color: rgba(210, 198, 184, 0.55);
    flex-shrink: 0;
    margin: 0 12px;
}

.footer-benefit-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #EDE5DC;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #785635;
    flex-shrink: 0;
}

.footer-benefit-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.footer-benefit-text strong {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: #2B2520;
    white-space: nowrap;
}

.footer-benefit-text span {
    font-family: var(--font-sans);
    font-size: 13px;
    color: #786C60;
    line-height: 1.35;
}

/* ==========================================================================
   Main 5-Column Footer (Matches Reference 03_footer.png)
   ========================================================================== */

.footer {
    background-color: #FAF7F2;
    border-top: 1px solid rgba(220, 210, 198, 0.6);
    padding: 64px 40px 0;
    position: relative;
    z-index: 5;
    margin-top: 50px;
}

.footer-container {
    max-width: 1540px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 28% 14% 16% 20% 22%;
    gap: 32px;
    padding-bottom: 54px;
    align-items: start;
    box-sizing: border-box;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-brand-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-logo-title {
    font-family: var(--font-serif);
    font-size: 46px;
    font-weight: 400;
    color: #2B2520;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.footer-logo-sub {
    font-family: var(--font-sans);
    font-size: 17.5px;
    font-weight: 400;
    color: #8C7D6F;
    margin-top: 4px;
    letter-spacing: 0.02em;
}

.footer-importer {
    display: block;
    margin-top: 10px;
    color: #8C7D6F;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.footer-desc {
    margin-top: 16px;
    font-size: 15px;
    color: #6C6257;
    line-height: 1.6;
    max-width: 300px;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.footer-social-links .social-icon-btn,
.social-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(180, 168, 154, 0.6);
    background-color: #FFFFFF;
    color: #554A3D;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: all 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
    box-sizing: border-box;
}

.footer-social-links .social-icon-btn svg,
.social-icon-btn svg {
    display: block;
    width: 19px;
    height: 19px;
    margin: auto;
    flex-shrink: 0;
}

.footer-social-links .social-icon-btn:hover,
.social-icon-btn:hover {
    background-color: #EDE5DC;
    border-color: #785635;
    color: #785635;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #554A3D;
    margin-bottom: 28px;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links-list a {
    font-size: 16px;
    line-height: 1.55;
    color: #5C5247;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links-list a:hover {
    color: #8C6845;
}

.footer-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15.5px;
    color: #5C5247;
    line-height: 1.45;
    text-decoration: none;
}

.footer-contact-item svg {
    color: #8C6845;
    flex-shrink: 0;
}

.footer-contact-link {
    transition: color 0.2s ease;
}

.footer-contact-link:hover {
    color: #8C6845;
}

.footer-b2b-desc {
    font-size: 15px;
    color: #6C6257;
    line-height: 1.55;
    margin-bottom: 20px;
}

.btn-footer-b2b-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 56px;
    background-color: #785635;
    color: #FFFFFF !important;
    border-radius: 12px;
    font-size: 15.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(120, 86, 53, 0.16);
    box-sizing: border-box;
}

.btn-footer-b2b-cta:hover {
    background-color: #634529;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(120, 86, 53, 0.24);
    color: #FFFFFF !important;
}

.footer-bottom {
    border-top: 1px solid rgba(220, 210, 198, 0.6);
    padding: 24px 40px;
    font-size: 14px;
    color: #8C7D6F;
}

.footer-bottom-container {
    max-width: 1540px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-meta-tag {
    font-size: 13.5px;
    color: #9E9184;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   Mobile Bottom Sticky Navigation (for Step 8 & future)
   ========================================================================== */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    z-index: 850;
    padding: 8px 12px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(31, 29, 26, 0.06);
}

.mobile-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-bottom-nav-item svg {
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease;
}

.mobile-bottom-nav-item.active {
    color: var(--accent-dark);
    font-weight: 600;
}

.mobile-bottom-nav-item.active svg {
    transform: translateY(-1px);
}

.mobile-nav-badge {
    position: absolute;
    top: 0;
    right: 8px;
    background-color: var(--accent-dark);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1200px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .hero-image-col {
        grid-template-columns: 1fr 140px;
        height: 380px;
        justify-content: center;
    }
    .catalog-products-layout {
        grid-template-columns: 220px 1fr;
        gap: 24px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .atmosphere-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-benefits-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 24px;
    }
    .footer-benefit-divider {
        display: none;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px; /* Space for mobile bottom nav */
    }
    .header {
        padding: 14px 16px;
    }
    .header-container {
        gap: 12px;
    }
    .header-phone-link,
    .user-btn {
        display: none;
    }
    .logo-title {
        font-size: 26px;
    }
    .logo-sub {
        font-size: 9.5px;
        letter-spacing: 1px;
    }
    .main-nav {
        display: none;
    }
    .burger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .floating-actions-stack {
        display: none;
    }
    .hero-section {
        padding: 20px 16px 36px;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hero-image-col {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 10px;
    }
    .hero-scene-card {
        height: 250px;
        border-radius: 16px;
    }
    .hero-side-cards-stack {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        height: 105px;
        gap: 8px;
    }
    .hero-side-card {
        border-radius: 12px;
    }
    .hero-side-ribbon {
        top: 10px;
        left: -24px;
        font-size: 8px;
        padding: 2px 20px;
    }
    .hero-title {
        font-size: 36px;
        line-height: 1.14;
    }
    .hero-subtitle {
        font-size: 14.5px;
        margin-bottom: 20px;
    }
    .hero-shanghai-decor {
        width: 200px;
        opacity: 0.18;
        right: 0;
        bottom: 0;
    }
    .hero-card {
        border-radius: 16px;
    }
    .benefits-section {
        padding: 12px 16px 28px;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px 16px;
    }
    .benefit-item {
        padding: 6px 0;
    }
    .benefit-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(184, 154, 120, 0.14);
        padding-bottom: 10px;
    }
    .atmosphere-section {
        padding: 20px 16px 28px;
    }
    .atmosphere-header-wrap {
        flex-direction: column;
        gap: 12px;
    }
    .atmosphere-botanical-decor {
        position: static;
        width: 140px;
        opacity: 0.75;
        margin-top: 8px;
    }
    .atmosphere-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .shanghai-origin-block {
        padding: 0 16px;
        margin-bottom: 28px;
    }
    .shanghai-origin-container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 20px;
        text-align: left;
    }
    .shanghai-origin-emblem {
        width: 68px;
        height: 68px;
        padding: 12px;
    }
    .origin-title {
        font-size: 22px;
    }
    .origin-desc {
        font-size: 13.5px;
    }
    .catalog-section {
        padding: 40px 20px 60px;
    }
    .catalog-products-layout {
        grid-template-columns: 1fr;
    }
    .catalog-sidebar {
        display: none;
    }
    #catalog-pagination {
        display: none !important;
    }
    .catalog-actions {
        display: flex !important;
        justify-content: center;
        margin-top: 20px;
    }
    .mobile-filter-bar {
        display: block;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-card {
        padding: 12px;
        border-radius: var(--radius-md);
    }
    .product-image {
        height: 160px;
        padding: 8px;
        margin-bottom: 8px;
    }
    .product-meta {
        font-size: 10px;
        color: var(--text-tertiary);
        margin-bottom: 3px;
        letter-spacing: 0.4px;
        opacity: 0.75;
    }
    .product-title {
        font-size: 13.5px;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2.6em;
    }
    .product-desc {
        display: none;
    }
    .product-price-box {
        padding: 7px 9px;
        margin-bottom: 8px;
        gap: 2px;
    }
    .product-price {
        font-size: 16px;
        font-weight: 700;
        color: var(--text-primary);
    }
    .product-price-unit {
        font-size: 10.5px;
    }
    .price-row-vat {
        font-size: 10.5px;
        color: var(--text-tertiary);
        line-height: 1.2;
    }
    .price-vat-val {
        font-size: 10.5px;
    }
    .product-actions {
        gap: 6px;
    }
    .qty-input {
        width: 36px;
        height: 42px;
        font-size: 13px;
        font-weight: 600;
        padding: 0;
    }
    .btn-add {
        height: 42px;
        font-size: 13px;
        font-weight: 600;
        padding: 0 8px;
        border-radius: var(--radius-sm);
    }
    .product-modal-card {
        width: calc(100% - 24px);
        max-width: 440px;
        margin: 16px auto;
        padding: 40px 18px 20px;
        border-radius: var(--radius-lg);
        max-height: calc(100dvh - 32px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    /* Auth modal mobile */
    .profile-modal-card.auth-mode {
        width: calc(100% - 24px);
        max-width: 440px;
        margin: 16px auto;
        padding: 36px 20px 24px;
        border-radius: var(--radius-lg);
        max-height: calc(100dvh - 32px);
        overflow-y: auto;
    }

    /* Fullscreen Dashboard modal mobile */
    #profile-modal.modal-overlay {
        padding: 0;
    }

    .profile-modal-card.dashboard-mode {
        width: 100% !important;
        max-width: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .profile-modal-card.dashboard-mode #profile-modal-content {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: hidden !important;
    }

    .profile-sidebar {
        width: 100%;
        min-width: 100%;
        padding: 16px 16px 10px;
        border-right: none;
        border-bottom: 1px solid var(--border);
        background-color: #FAF8F5;
        flex-shrink: 0;
    }

    .profile-user-summary {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-bottom: 10px;
    }

    .profile-avatar-large {
        width: 42px;
        height: 42px;
        font-size: 18px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .profile-summary-name {
        font-size: 15px;
    }

    .profile-summary-email {
        font-size: 12px;
    }

    .profile-nav-menu {
        display: flex;
        flex-direction: row;
        gap: 6px;
        margin-top: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .profile-nav-menu::-webkit-scrollbar {
        display: none;
    }

    .profile-nav-btn {
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 12.5px;
        white-space: nowrap;
        flex-shrink: 0;
        width: auto;
        gap: 6px;
    }

    .profile-sidebar-footer {
        display: none;
    }

    .profile-content-area {
        padding: 20px 16px 80px;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .profile-section-header {
        padding-bottom: 14px;
        margin-bottom: 16px;
        padding-right: 0;
    }

    .profile-section-title {
        font-size: 19px;
    }

    .profile-edit-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .profile-info-card {
        padding: 16px 18px;
    }

    .profile-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding-bottom: 10px;
    }

    .profile-info-val {
        word-break: break-all;
        font-size: 13.5px;
    }
    .modal-close-corner {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        z-index: 20;
        background-color: #FFFFFF;
        border-color: var(--border-dark);
        box-shadow: 0 2px 10px rgba(31, 29, 26, 0.12);
    }
    /* Keep the product-modal close control in the card's top gutter.  The
       gallery starts after the 40px mobile card padding, so the button must
       sit above it instead of hanging over the first image. */
    .product-modal-card .product-modal-close-btn {
        top: 4px;
        right: 8px;
    }
    .product-modal-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .product-modal-img-wrap {
        height: 220px;
        padding: 12px;
    }
    .product-modal-title {
        font-size: 20px;
        line-height: 1.25;
        margin-bottom: 8px;
    }
    .product-modal-price-box {
        padding: 10px 14px;
        margin-bottom: 12px;
        gap: 4px;
        border-radius: var(--radius-md);
    }
    .modal-price-main {
        font-size: 19px;
    }
    .product-modal-desc-box {
        margin-bottom: 16px;
    }
    .product-modal-desc {
        font-size: 13.5px;
        line-height: 1.5;
    }
    .product-modal-actions {
        flex-wrap: wrap;
        gap: 10px;
        margin-top: auto;
        padding-top: 8px;
    }
    .modal-qty-controls {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .modal-qty-picker {
        min-height: 54px;
        height: 54px;
        padding-left: 12px;
    }
    .modal-qty-stepper {
        grid-template-columns: 38px 44px 38px;
    }
    .modal-qty-quick-actions {
        margin-left: auto;
    }
    .qty-picker {
        height: 44px;
    }
    .btn-modal-add {
        flex: 1 1 100%;
        width: 100%;
        height: 44px;
        font-size: 14px;
        font-weight: 600;
    }
    .modal-side {
        max-width: 100vw;
        width: 100vw;
    }
    .modal-header {
        padding: 16px 18px;
    }
    .cart-items {
        padding: 12px 18px;
    }
    .cart-footer {
        padding: 16px 18px max(16px, env(safe-area-inset-bottom));
    }
    .floating-actions-stack {
        bottom: 80px; /* Above mobile bottom nav */
        right: 16px;
    }
    .floating-btn {
        width: 46px;
        height: 46px;
    }
    .floating-tooltip {
        display: none;
    }
    .footer-benefits-strip {
        padding: 0 16px;
        margin: 40px auto 24px;
    }
    .footer-benefits-container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px 16px;
    }
    .footer {
        padding: 40px 20px 0;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .mobile-bottom-nav {
        display: block;
    }
}

/* Owner-requested desktop catalog refinements. */
.footer-benefits-strip {
    display: none !important;
}

.product-card-media-frame .product-card-media {
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
    object-position: center;
    background: #f7f3ee;
}

.card-qty-quick-btn {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 6px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card-qty-quick-btn:hover,
.card-qty-quick-btn:focus-visible {
    border-color: var(--accent);
    background: var(--bg-secondary);
    outline: none;
}

.card-qty-quick-btn:active {
    transform: scale(0.96);
}

@media (max-width: 768px) {
    .card-qty-quick-btn {
        display: none;
    }

    .card-qty-quick-actions {
        display: none;
    }

    .category-stage-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        margin-bottom: 10px;
    }

    .category-stage-title {
        font-size: 24px;
    }

    .category-stage-hint {
        text-align: left;
    }

    .logo-importer {
        font-size: 8px;
        white-space: normal;
    }
}

/* Click-to-enlarge product photo lightbox. */
.product-media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(20, 18, 15, 0.82);
}

.product-media-lightbox.open {
    display: flex;
}

.product-media-lightbox img {
    display: block;
    max-width: min(94vw, 1280px);
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    background: #f7f3ee;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.product-media-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-primary);
    cursor: pointer;
}

@media (max-width: 540px) {
    .product-media-lightbox {
        padding: 16px;
    }

    .product-media-lightbox img {
        max-width: 96vw;
        max-height: 82vh;
    }
}

@media (max-width: 480px) {
    .announcement-bar {
        padding: 8px 12px;
        font-size: 12px;
    }
    .announcement-links {
        display: none;
    }
    .announcement-container {
        justify-content: center;
    }
    .logo-title {
        font-size: 28px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-img-wrap {
        height: 260px;
    }
    .hero-card {
        padding: 14px;
    }
    .hero-badge {
        bottom: 24px;
        left: 24px;
        font-size: 12px;
        padding: 6px 14px;
    }
    .catalog-header h2 {
        font-size: 30px;
    }
    .product-image {
        height: 160px;
    }
    .modal-side {
        max-width: 100vw;
        width: 100vw;
    }
    .modal-header {
        padding: 16px;
    }
    .cart-items {
        padding: 14px 16px;
    }
    .cart-footer {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Sprint D — Orders section styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Loading state ─────────────────────────────────────────────────────── */
.orders-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 24px;
    color: var(--text-secondary, #777);
    font-size: 0.9rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.orders-spinner {
    display: inline-block;
    width: 28px; height: 28px;
    border: 3px solid var(--border-color, #e0e0e0);
    border-top-color: var(--primary-color, #a07b5a);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ── Section title ─────────────────────────────────────────────────────── */
.orders-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #222);
    margin: 0 0 14px;
}

/* ── Order card list ───────────────────────────────────────────────────── */
.orders-list-section { padding: 4px 0; }
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.order-card {
    border: 1px solid var(--border-color, #e8e0d8);
    border-radius: 10px;
    padding: 14px 16px;
    background: var(--surface-color, #fff);
    transition: box-shadow 0.18s, border-color 0.18s;
    cursor: default;
}
.order-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.08); border-color: var(--primary-color, #a07b5a); }

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.order-number {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary, #222);
    letter-spacing: 0.02em;
}
.order-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-secondary, #777);
    margin-bottom: 10px;
}
.order-total { font-weight: 600; color: var(--text-primary, #333); }
.order-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.order-items-count { font-size: 0.78rem; color: var(--text-secondary, #999); flex: 1; }
.btn-order-detail {
    margin-left: auto;
    background: none;
    border: 1px solid var(--primary-color, #a07b5a);
    color: var(--primary-color, #a07b5a);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.btn-order-detail:hover { background: var(--primary-color, #a07b5a); color: #fff; }

/* ── Status badges ─────────────────────────────────────────────────────── */
.order-status-badge,
.invoice-status-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
}
.order-status-badge.status-new        { background: #e2e3e5; color: #383d41; }
.order-status-badge.status-pending    { background: #fff3cd; color: #856404; }
.order-status-badge.status-processing { background: #cfe2ff; color: #0a58ca; }
.order-status-badge.status-confirmed  { background: #d1ecf1; color: #0c5460; }
.order-status-badge.status-shipped    { background: #e2d9f3; color: #432874; }
.order-status-badge.status-delivered  { background: #d4edda; color: #155724; }
.order-status-badge.status-completed  { background: #d4edda; color: #155724; }
.order-status-badge.status-cancelled  { background: #f8d7da; color: #721c24; }
.order-status-badge.status-neutral    { background: #f0f0f0; color: #666; }

.invoice-status-badge.invoice-none    { background: #f0f0f0; color: #888; }
.invoice-status-badge.invoice-pending { background: #fff3cd; color: #856404; }
.invoice-status-badge.invoice-sent    { background: #d4edda; color: #155724; }

/* ── Load more ─────────────────────────────────────────────────────────── */
.orders-load-more-wrap { text-align: center; margin-top: 14px; }
.btn-orders-load-more {
    background: none;
    border: 1px solid var(--border-color, #d0c8bf);
    color: var(--text-secondary, #666);
    border-radius: 8px;
    padding: 8px 24px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.btn-orders-load-more:hover { border-color: var(--primary-color, #a07b5a); color: var(--primary-color, #a07b5a); }
.btn-orders-load-more:disabled { opacity: 0.5; cursor: default; }

/* ── Order detail view ─────────────────────────────────────────────────── */
.order-detail-view { display: flex; flex-direction: column; gap: 14px; }

.order-detail-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-back-to-orders {
    background: none;
    border: none;
    color: var(--primary-color, #a07b5a);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
    transition: opacity 0.15s;
}
.btn-back-to-orders:hover { opacity: 0.7; }

.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.order-detail-header h4 { margin: 0; font-size: 1rem; font-weight: 600; }

/* ── Order items table ─────────────────────────────────────────────────── */
.order-detail-items {
    border: 1px solid var(--border-color, #e8e0d8);
    border-radius: 8px;
    overflow: hidden;
}
.order-detail-items-head {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-subtle, #f8f5f2);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary, #888);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.order-detail-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--border-color, #e8e0d8);
    align-items: center;
    font-size: 0.85rem;
}
.order-detail-item:first-of-type { border-top: none; }
.order-detail-item-name { font-weight: 500; color: var(--text-primary, #222); }
.order-detail-item-sku  { font-size: 0.72rem; color: var(--text-secondary, #999); grid-column: 1; margin-top: -4px; }
.order-detail-item-qty  { color: var(--text-secondary, #777); text-align: right; }
.order-detail-item-price { color: var(--text-secondary, #777); text-align: right; }
.order-detail-item-subtotal { font-weight: 600; color: var(--text-primary, #333); text-align: right; }

/* ── Total row ─────────────────────────────────────────────────────────── */
.order-detail-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg-subtle, #f8f5f2);
    border-radius: 8px;
    font-size: 0.9rem;
}
.order-detail-total-row strong { font-size: 1rem; }

/* ── Meta rows (address, comment) ──────────────────────────────────────── */
.order-detail-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.83rem;
    color: var(--text-secondary, #666);
}
.order-detail-meta-row svg { flex-shrink: 0; margin-top: 2px; }

/* ── Invoice sent banner ────────────────────────────────────────────────── */
.invoice-sent-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #eaf7ee;
    border: 1px solid #b7dfca;
    border-radius: 8px;
    font-size: 0.83rem;
    color: #155724;
}

/* ── Action buttons (repeat / invoice) ─────────────────────────────────── */
.order-detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.btn-repeat-order,
.btn-request-invoice {
    flex: 1;
    min-width: 140px;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.18s, background 0.18s;
    text-align: center;
}
.btn-repeat-order {
    background: var(--primary-color, #a07b5a);
    color: #fff;
}
.btn-repeat-order:hover { opacity: 0.88; }
.btn-repeat-order:disabled { opacity: 0.5; cursor: default; }

.btn-request-invoice {
    background: transparent;
    border: 1.5px solid var(--primary-color, #a07b5a);
    color: var(--primary-color, #a07b5a);
}
.btn-request-invoice:hover { background: var(--primary-color, #a07b5a); color: #fff; }

/* ── Invoice form ───────────────────────────────────────────────────────── */
.invoice-form-box {
    border: 1px solid var(--border-color, #e8e0d8);
    border-radius: 10px;
    padding: 18px;
    background: var(--bg-subtle, #faf8f6);
}
.invoice-form-box h4 {
    margin: 0 0 14px;
    font-size: 0.95rem;
    font-weight: 600;
}
.invoice-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.invoice-form-full { grid-column: 1 / -1; }
.invoice-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px;
}

/* ── Responsive adjustments ────────────────────────────────────────────── */
@media (max-width: 480px) {
    .order-detail-items-head,
    .order-detail-item {
        grid-template-columns: 1fr auto auto;
    }
    /* Hide unit price column on mobile, keep qty & subtotal */
    .order-detail-items-head span:nth-child(3),
    .order-detail-item-price { display: none; }

    .invoice-form-grid { grid-template-columns: 1fr; }
    .invoice-form-full { grid-column: 1; }

    .order-detail-actions { flex-direction: column; }
    .btn-repeat-order,
    .btn-request-invoice { min-width: unset; }
}

/* ── Floating Action Stack (Desktop / Tablet) ── */
.floating-actions-stack,
.floating-action-stack {
    position: fixed;
    right: 24px;
    bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99;
}

.scroll-to-top {
    position: fixed;
    right: 88px;
    bottom: 28px;
    z-index: 99;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border, #ded5cb);
    border-radius: 50%;
    background: var(--card-white, #ffffff);
    color: var(--text-primary, #1f1d1a);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.scroll-to-top:focus-visible,
.floating-cart-btn:focus-visible,
.floating-whatsapp-btn:focus-visible {
    outline: 3px solid rgba(145, 111, 74, 0.35);
    outline-offset: 3px;
}

.floating-btn,
.floating-cart-btn,
.floating-whatsapp-btn {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.floating-cart-btn {
    background-color: var(--card-white, #ffffff);
    color: var(--text-primary, #1f1d1a);
    border: 1px solid var(--border, #ded5cb);
}

.floating-whatsapp-btn {
    background-color: #25D366;
    color: #ffffff;
}

.floating-cart-btn:hover,
.floating-whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.floating-cart-badge {
    position: absolute;
    top: -6px;
    right: -7px;
    /* Keep large quantities readable on the floating cart.  A beige fill
       with white text had insufficient contrast and the fixed circle also
       clipped values such as 500 and 1000. */
    background-color: var(--card-white, #ffffff);
    color: var(--text-primary, #1f1d1a);
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-dark, #785635);
    box-sizing: border-box;
    z-index: 2;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
}

/* ========================================================================
   Mobile ordering pass (<=768px)

   This block is deliberately appended and scoped to the mobile breakpoint.
   The desktop catalog, card geometry, price rows, and floating actions keep
   their existing rules and markup behavior.
   ======================================================================== */

.card-qty-stepper {
    display: contents;
}

.card-qty-stepper-btn,
.product-price-unit-mobile,
.modal-price-unit-mobile {
    display: none;
}

.product-card-media-frame {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.product-card-media-frame .product-card-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-card-media-frame video.product-card-media {
    background: #f2eee8;
}

@media (max-width: 768px) {
    /* Stack the toolbar rows on phones. The desktop flex row is wider than
       the viewport and used to hide the result count and sort control. */
    .catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px;
        box-sizing: border-box;
    }

    .toolbar-left {
        width: 100%;
        max-width: none;
        min-width: 0;
        flex: none;
    }

    .catalog-search-wrap {
        min-width: 0;
    }

    .toolbar-right {
        width: 100%;
        min-width: 0;
        justify-content: space-between;
        gap: 8px;
    }

    .toolbar-found-count {
        flex: 1 1 auto;
        min-width: 0;
    }

    .catalog-sort-wrap {
        flex: 0 1 auto;
        min-width: 0;
    }

    .catalog-sort-trigger {
        max-width: 100%;
    }

    /* Keep the filter popover inside narrow phone viewports. It is anchored
       to the right edge of the filter control instead of overflowing from
       the control's left edge. */
    .catalog-filter-popover {
        left: auto;
        right: 0;
        width: min(290px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        box-sizing: border-box;
    }

    .toast {
        top: 12px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        padding: 10px 12px;
        gap: 8px;
        align-items: flex-start;
    }

    .toast-text {
        flex: 1 1 auto;
    }

    .toast-action {
        flex: 0 0 auto;
        margin-left: auto;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .toolbar-right {
        gap: 6px;
    }

    .catalog-sort-trigger {
        padding-inline: 10px;
        font-size: 12px;
        gap: 6px;
    }
}

@media (max-width: 768px) {
    /* The mobile journey is intentionally: hero -> catalog. Supporting
       brand sections remain available on desktop and are not deleted. */
    .benefits-section,
    .hero-categories-section,
    .atmosphere-section,
    .shanghai-origin-block,
    .meta-bar {
        display: none !important;
    }

    .hero-section {
        padding-bottom: 24px;
    }

    .catalog-section {
        padding-top: 28px;
    }

    .product-card {
        padding: 14px;
    }

    .product-image {
        padding: 0;
        height: 210px;
    }

    .product-card-gallery-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 30px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        background: rgba(31, 29, 26, 0.52);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
        z-index: 4;
        -webkit-tap-highlight-color: transparent;
    }

    .product-card-gallery-nav:active {
        transform: translateY(-50%) scale(0.94);
    }

    .product-card-gallery-prev { left: 8px; }
    .product-card-gallery-next { right: 8px; }

    .product-card-gallery-counter {
        position: absolute;
        right: 8px;
        bottom: 8px;
        z-index: 4;
        padding: 3px 8px;
        border-radius: 999px;
        background: rgba(31, 29, 26, 0.7);
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        line-height: 1.2;
        pointer-events: none;
    }

    .product-card-media-frame video.product-card-media {
        object-fit: contain;
    }

    .product-price-box {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 8px;
    }

    .price-row-main {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
    }

    .product-price-unit {
        display: none;
    }

    .product-price-unit-mobile {
        display: inline-flex;
        color: var(--text-secondary);
        font-size: 11px;
        font-weight: 600;
        white-space: nowrap;
    }

    /* Both VAT values remain visible on mobile; the inclusive price is primary. */
    .price-row-vat {
        display: none;
    }

    .product-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .card-quantity-control {
        min-height: 42px;
        padding-left: 2px;
    }

    .card-qty-label {
        font-size: 12px;
    }

    .card-qty-stepper {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        height: 42px;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: #fff;
    }

    .card-qty-stepper-btn {
        display: inline-flex;
        width: 34px;
        height: 100%;
        padding: 0;
        align-items: center;
        justify-content: center;
        border: 0;
        background: transparent;
        color: var(--text-primary);
        font-size: 20px;
        line-height: 1;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .card-qty-stepper-btn:active {
        background: var(--bg-secondary);
    }

    .card-qty-stepper .qty-input {
        width: 42px;
        height: 40px;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .product-actions .btn-add {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        font-size: 0;
        white-space: nowrap;
    }

    .product-actions .btn-add::after {
        content: 'Добавить в корзину';
        font-size: 13px;
    }

    html[lang="kk"] .product-actions .btn-add::after {
        content: 'Себетке қосу';
    }

    html[lang="en"] .product-actions .btn-add::after {
        content: 'Add to cart';
    }

    /* Keep both persistent actions together above the mobile bottom nav. */
    #floating-action-stack {
        right: 16px;
        bottom: calc(78px + env(safe-area-inset-bottom));
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    #floating-action-stack .floating-whatsapp-btn {
        display: flex;
    }

    #floating-action-stack .floating-cart-btn,
    #floating-action-stack .floating-whatsapp-btn {
        width: 54px;
        height: 54px;
    }

    .scroll-to-top {
        right: 16px;
        bottom: calc(146px + env(safe-area-inset-bottom));
        width: 46px;
        height: 46px;
    }

    /* Product detail: keep photos/video and the add-to-cart action reachable
       in a thumb-friendly bottom-sheet style modal. */
    .product-modal-media {
        display: block;
    }

    .product-modal-img-wrap video {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .product-modal-thumbs {
        flex-direction: row;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 3px;
        scrollbar-width: none;
    }

    .product-modal-thumbs::-webkit-scrollbar {
        display: none;
    }

    .gallery-video-thumb {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background: #f2eee8;
    }

    .gallery-video-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gallery-video-thumb-icon {
        position: absolute;
        width: 24px;
        height: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(31, 29, 26, 0.7);
        color: #fff;
        font-size: 11px;
        padding-left: 2px;
    }

    .modal-price-row {
        display: flex;
        align-items: baseline;
        gap: 8px;
    }

    .modal-price-unit-desktop {
        display: none;
    }

    .modal-price-unit-mobile {
        display: inline;
        font-size: 12px;
        color: var(--text-secondary);
        white-space: nowrap;
    }

    .modal-price-vat-row {
        display: none;
    }

    #checkout-btn {
        font-size: 0;
    }

    #checkout-btn::after {
        content: 'Отправить заказ менеджеру в WhatsApp';
        font-size: 14px;
    }

    html[lang="kk"] #checkout-btn::after {
        content: 'Тапсырысты WhatsApp арқылы менеджерге жіберу';
    }

    html[lang="en"] #checkout-btn::after {
        content: 'Send order to manager on WhatsApp';
    }
}

@media (max-width: 540px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-card {
        border-radius: var(--radius-lg);
    }

    .product-image {
        height: 230px;
    }
}

/* Final storefront card controls and price presentation.  Both VAT values
   are part of the commercial offer and must stay visible on every viewport. */
.product-price-box .price-row-vat {
    display: block !important;
}

.modal-price-vat-row {
    display: flex !important;
    align-items: baseline;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.35;
}

.modal-price-vat {
    color: var(--accent-darker);
    font-weight: 700;
}

.product-modal-price-box {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
}

/* A modal detail column is intentionally compact, so its quantity controls
   and primary action occupy their own lines instead of competing for width. */
.product-modal-actions {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.modal-qty-controls {
    flex: 1 1 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.modal-qty-picker {
    width: 100%;
}

.modal-qty-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
}

.modal-qty-quick-btn {
    width: 100%;
    min-width: 0;
}

.btn-modal-add {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
}

.catalog-products-tier[hidden] {
    display: none !important;
}

@media (min-width: 769px) {
    .catalog-workspace,
    .catalog-products-layout {
        grid-template-columns: minmax(200px, 220px) minmax(0, 1fr);
    }

    .catalog-sidebar {
        display: block;
    }
}

.card-qty-stepper {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    height: 42px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
}

.card-qty-stepper-btn {
    display: inline-flex;
    width: 34px;
    height: 100%;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.card-qty-stepper-btn:hover,
.card-qty-stepper-btn:focus-visible {
    background: var(--bg-secondary);
}

.card-qty-stepper .qty-input {
    width: 42px;
    height: 42px;
    line-height: 42px;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.product-card-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: inline-flex;
    width: 32px;
    height: 32px;
    padding: 0;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: rgba(31, 29, 26, 0.58);
    color: #fff;
    box-shadow: 0 2px 8px rgba(31, 29, 26, 0.18);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.product-card-gallery-nav:hover,
.product-card-gallery-nav:focus-visible {
    background: var(--accent-dark);
    outline: none;
}

.product-card-gallery-nav svg {
    display: block;
}

.product-card-gallery-prev { left: 8px; }
.product-card-gallery-next { right: 8px; }

.product-card-gallery-counter {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 4;
    display: inline-flex;
    min-width: 34px;
    min-height: 22px;
    padding: 3px 8px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(31, 29, 26, 0.7);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .catalog-workspace {
        display: block;
    }

    .category-cards-wrapper {
        margin-bottom: 22px;
    }

    .category-cards-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 2px 0 8px;
    }

    .category-nav-card {
        min-height: 144px;
        border-radius: 12px;
    }

    .category-nav-img-wrap {
        height: 104px;
        padding: 8px 8px 2px;
    }

    .category-nav-footer {
        min-height: 38px;
        padding: 6px 9px 8px;
        gap: 5px;
    }

    .category-nav-name {
        font-size: 12.5px;
    }

    .category-nav-badge {
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        font-size: 10.5px;
    }

    .burger-nav {
        gap: 4px;
    }

    .burger-category-btn,
    .drawer-nav-btn {
        min-height: 34px;
        padding: 7px 10px;
        border-radius: 8px;
        font-size: 12.5px;
    }

    .product-price-box {
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
    }

    .product-price-box .price-row-vat {
        font-size: 11px;
    }

    .product-modal-price-box {
        align-items: flex-start;
    }

    .product-desc {
        display: -webkit-box;
        min-height: 1.35em;
        margin-bottom: 10px;
        -webkit-line-clamp: 1;
    }

    .card-qty-stepper .qty-input {
        width: 42px;
    }

    .product-card-gallery-nav {
        width: 30px;
        height: 30px;
    }
}

/* Final header overrides: keep the compact navigation/contact row above the
   legacy responsive rules that still style the original header controls. */
.header-contact-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    min-width: 0;
}

.header-contact-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    min-width: 148px;
    line-height: 1.15;
}

.header-contact-details .header-phone-link {
    margin: 0;
    white-space: nowrap;
}

.header-email-link {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.header-email-link:hover,
.header-email-link:focus-visible {
    color: var(--accent-dark);
}

.header-contact-tools .header-quick-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
}

.header-social-btn {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    background: var(--card-white);
    color: var(--accent-darker);
}

.header-price-list-link {
    min-height: 40px;
    gap: 8px;
    padding: 0 15px;
    border-radius: var(--radius-sm);
}

@media (min-width: 769px) {
    .header {
        padding: 12px 24px;
    }

    .header-left {
        flex: 0 0 auto;
        gap: 0;
    }

    .header-left .logo {
        display: none;
    }

    .main-nav {
        flex: 1 1 auto;
        justify-content: flex-start;
        gap: 30px;
    }

    .main-nav a {
        font-size: 14px;
    }

    .header-actions {
        gap: 8px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .header-container {
        gap: 16px;
    }

    .header-contact-tools .header-quick-actions {
        display: none;
    }

    .main-nav {
        gap: 20px;
    }

    .main-nav a {
        font-size: 13px;
        white-space: nowrap;
    }

    .header-phone-link {
        font-size: 13px;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 16px;
    }

    .header-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-left {
        flex: 1 1 auto;
        min-width: 0;
    }

    .header-left .logo {
        display: flex;
    }

    .header-contact-tools {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        flex-wrap: nowrap;
        gap: 8px;
        padding-top: 10px;
        border-top: 1px solid var(--border-light);
    }

    .header-contact-tools .header-phone-link {
        display: inline-flex;
        flex: 0 0 auto;
        margin-right: auto;
        font-size: 13px;
        white-space: nowrap;
    }

    .header-contact-details {
        flex: 1 1 auto;
        min-width: 0;
        align-items: flex-start;
    }

    .header-contact-details .header-phone-link,
    .header-contact-details .header-email-link {
        display: inline-flex;
        margin-right: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-contact-tools .header-quick-actions {
        display: flex;
        flex: 1 1 auto;
        justify-content: flex-end;
        gap: 6px;
    }

    .header-social-btn {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .header-price-list-link {
        min-height: 36px;
        max-width: 190px;
        padding: 0 11px;
        font-size: 11px;
    }

    .header-price-list-link span {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 480px) {
    .header-contact-tools {
        flex-wrap: wrap;
    }

    .header-contact-details {
        flex: 1 1 100%;
        align-items: flex-start;
    }

    .header-contact-tools .header-quick-actions {
        flex: 1 1 100%;
        justify-content: space-between;
    }

    .header-price-list-link {
        flex: 1 1 auto;
        max-width: none;
    }
}

/* Keep the full brand lockup visible on wide desktop while preserving the
   compact tablet header and the existing mobile burger/logo layout. */
@media (min-width: 1201px) {
    .header-left {
        gap: 16px;
    }

    .header-left .logo {
        display: flex;
    }

    .header-left .logo-title {
        font-size: 30px;
    }

    .header-left .logo-sub {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .header-left .logo-importer {
        font-size: 8px;
    }

    .main-nav {
        justify-content: center;
    }
}
