:root {
    /* Elegant, minimalist palette — warm ivory paper, ink text, clay accent */
    --ink: #1c1b1a;
    --ink-soft: #4a453f;
    --paper: #faf8f4;
    --surface: #ffffff;
    --line: #e8e1d6;
    --muted: #6b6255; /* darkened from #857c6f for WCAG AA text contrast */

    --accent: #b5642f;
    --accent-dark: #8f4d24;
    --accent-light: #d98a57;
    --accent-soft: #f3e3d3;

    --gold: #c9a227;

    /* legacy aliases (kept so existing inline styles / markup still resolve) */
    --primary: var(--ink);
    --primary-dark: #000000;
    --primary-light: #4a453f;
    --dark: var(--ink);
    --dark-light: #322f2b;
    --gray: var(--muted);
    --gray-light: var(--paper);
    --white: var(--surface);
    --success: #3f7d58;
    --danger: #b3392c;

    --font-heading: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --text-strong: #0f172a;
    --text-body: #1e293b;
    --mobile-tabbar-height: 0px;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 3px rgba(28,27,26,0.06);
    --shadow: 0 10px 28px rgba(28,27,26,0.08);
    --shadow-lg: 0 24px 48px rgba(28,27,26,0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background: var(--surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Skip link for keyboard/screen-reader users */
.skip-link {
    position: absolute;
    top: -48px;
    inset-inline-start: 12px;
    z-index: 2000;
    background: var(--ink);
    color: #fff !important;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 12px;
}

h1, h2, h3, h4, h5, h6,
.hero-title, .ph-title, .ph-brand, .section-title, .cta-banner h3,
.product-detail-info h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-strong);
}

h1, .hero-title, .ph-title, .product-detail-info h1 { letter-spacing: -0.03em; }
h2, .section-title, .cta-banner h3 { letter-spacing: -0.02em; }
h3, h4 { letter-spacing: -0.015em; }
h5, h6 { letter-spacing: -0.01em; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

::selection { background: var(--accent-soft); color: var(--ink); }

/* Eyebrow label */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--accent);
    display: inline-block;
}

/* Top Bar */
.top-bar {
    background: var(--ink);
    color: rgba(255,255,255,0.78);
    font-size: 0.78rem;
    padding: 9px 0;
    letter-spacing: 0.01em;
}
.top-bar i { color: var(--accent-light); margin-inline-end: 4px; }
.top-bar-link { color: rgba(255,255,255,0.78); text-decoration: none; }
.top-bar-link:hover { color: #fff; }
.tabby-badge { color: #fff; font-weight: 500; }
.tabby-badge i { color: var(--gold); }

/* Navbar */
.site-header {
    z-index: 1040;
}
.main-navbar {
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
}
.nav-bar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 52px;
    min-width: 0;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--ink) !important;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}
.brand-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.brand-icon img { width: 100%; height: 100%; display: block; }
.brand-text-group { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.brand-tagline {
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
}
.footer-brand .brand-tagline { color: rgba(255,255,255,0.55); }
.brand-accent { color: var(--accent); }
.nav-desktop {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    align-items: center;
    gap: 4px;
}
.nav-desktop .nav-link {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--ink-soft) !important;
    padding: 8px 14px !important;
    transition: color 0.2s;
    letter-spacing: 0.01em;
    text-decoration: none;
    display: inline-block;
}
.nav-desktop .nav-link:hover { color: var(--accent) !important; }
.main-navbar .dropdown-menu {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: var(--radius-sm);
    padding: 8px;
}
.main-navbar .dropdown-item { border-radius: 6px; padding: 8px 12px; font-size: 0.9rem; }
.main-navbar .dropdown-item:hover { background: var(--paper); color: var(--accent); }

.nav-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: auto;
}
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-inline-end: 4px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.lang-switch-link {
    color: var(--muted);
    text-decoration: none;
    line-height: 1;
}
.lang-switch-link:hover { color: var(--accent); }
.lang-switch-link.is-active {
    color: var(--ink);
}
.lang-switch-sep {
    color: var(--line);
    user-select: none;
}
.mobile-drawer-lang {
    padding: 0 20px 12px;
}
.mobile-drawer-lang .lang-switch {
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.85rem;
}
.nav-tool-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--ink);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: relative;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.nav-tool-btn:hover {
    background: var(--paper);
    color: var(--accent);
}
.cart-badge {
    position: absolute;
    top: 4px;
    inset-inline-end: 4px;
    background: var(--accent);
    color: white;
    font-size: 0.62rem;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
}

/* Animated menu toggle */
.menu-toggle {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--paper);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.menu-toggle-lines {
    width: 18px;
    height: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.menu-toggle-lines span {
    display: block;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s, width 0.25s;
}
.menu-toggle-lines span:nth-child(2) { width: 70%; margin-inline-start: auto; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(1) {
    transform: translateY(5.25px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(2) {
    opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(3) {
    transform: translateY(-5.25px) rotate(-45deg);
    width: 100%;
}

/* App-style bottom tab bar — phones and tablets only */
.mobile-tabbar {
    position: fixed;
    inset-inline-start: 0;
    inset-inline-end: 0;
    bottom: 0;
    z-index: 1035;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    min-height: 64px;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px rgba(28, 27, 26, 0.06);
}
.mobile-tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: 4px 2px;
    color: var(--ink-soft);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
}
.mobile-tabbar-item:hover,
.mobile-tabbar-item:focus-visible {
    color: var(--ink);
}
.mobile-tabbar-item.is-active {
    color: var(--accent);
}
.mobile-tabbar-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    font-size: 1.25rem;
    line-height: 1;
}
.mobile-tabbar-icon .cart-badge {
    top: -6px;
    inset-inline-end: -10px;
    min-width: 15px;
    height: 15px;
    font-size: 0.58rem;
}
.mobile-tabbar-label {
    font-size: 0.62rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    :root {
        --mobile-tabbar-height: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    body {
        padding-bottom: var(--mobile-tabbar-height);
    }

    .nav-bar-inner {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 8px;
        align-items: center;
    }

    .navbar-brand {
        justify-content: center;
        justify-self: center;
    }

    .main-navbar .brand-tagline {
        display: none;
    }

    .nav-tools {
        margin-inline-start: 0;
        justify-self: end;
        gap: 0;
    }

    .menu-toggle {
        background: transparent;
        border-radius: 0;
    }
}

/* Elegant search */
.search-widget {
    position: relative;
    width: min(280px, 32vw);
}
.search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    padding: 0 4px 0 14px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.search-form:focus-within {
    background: #fff;
    border-color: rgba(181,100,47,0.45);
    box-shadow: 0 0 0 3px rgba(181,100,47,0.12);
}
.search-form-icon {
    color: var(--muted);
    font-size: 0.92rem;
    flex-shrink: 0;
}
.search-input {
    border: none;
    background: transparent;
    padding: 10px 10px;
    font-size: 1rem;
    width: 100%;
    outline: none;
    color: var(--ink);
    min-width: 0;
    /* Hide browser-native clear so only our black button shows */
    -webkit-appearance: none;
    appearance: none;
}
.search-input::-webkit-search-decoration,
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-results-button,
.search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}
.search-input::-ms-clear { display: none; width: 0; height: 0; }
.search-input::placeholder { color: var(--muted); }
.search-clear,
.search-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}
.search-clear:hover,
.search-btn:hover {
    background: var(--accent-soft);
    color: var(--accent-dark);
}
.search-btn {
    background: var(--ink);
    color: #fff;
}
.search-btn:hover {
    background: var(--accent);
    color: #fff;
}

/* Live search suggest — mockup grid */
.search-suggest {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    width: min(640px, calc(100vw - 24px));
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 1100;
    animation: searchPop 0.22s ease;
}
@keyframes searchPop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.search-suggest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.search-suggest-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    border-inline-end: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    min-height: 88px;
    transition: background 0.15s;
}
.search-suggest-item:nth-child(3n) { border-inline-end: none; }
.search-suggest-item:nth-last-child(-n+3) { border-bottom: none; }
.search-suggest-item:hover,
.search-suggest-item.is-active {
    background: var(--paper);
}
.search-suggest-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--paper);
}
.search-suggest-meta {
    min-width: 0;
    flex: 1;
}
.search-suggest-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.search-suggest-name mark {
    background: transparent;
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
    padding: 0;
}
.search-suggest-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.search-suggest-now {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--success);
    letter-spacing: -0.01em;
}
.search-suggest-was {
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: line-through;
}
.search-suggest-foot {
    display: block;
    text-align: center;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    background: #fff;
    transition: background 0.15s, color 0.15s;
}
.search-suggest-foot:hover {
    background: var(--paper);
    color: var(--accent);
}
.search-suggest-empty,
.search-suggest-loading {
    padding: 28px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Mobile search sheet */
.mobile-search-sheet {
    position: fixed;
    inset: 0;
    z-index: 1080;
}
.mobile-search-sheet[hidden] { display: none !important; }
.mobile-search-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28,27,26,0.45);
    animation: fadeIn 0.2s ease;
}
.mobile-search-sheet-panel {
    position: relative;
    background: #fff;
    border-radius: 0 0 18px 18px;
    box-shadow: var(--shadow-lg);
    max-height: min(92vh, 720px);
    display: flex;
    flex-direction: column;
    animation: sheetDown 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes sheetDown {
    from { transform: translateY(-12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.mobile-search-sheet-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 10px;
}
.search-form--sheet {
    flex: 1;
    border-radius: 14px;
    padding-inline-start: 12px;
}
.mobile-search-cancel {
    border: none;
    background: transparent;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 4px;
    cursor: pointer;
}
.search-suggest--sheet {
    position: static;
    width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    animation: none;
    overflow: auto;
    flex: 1;
}
.search-suggest--sheet .search-suggest-grid {
    grid-template-columns: 1fr;
}
.search-suggest--sheet .search-suggest-item {
    border-inline-end: none;
    border-bottom: 1px solid var(--line);
    min-height: 76px;
}
.search-suggest--sheet .search-suggest-item:last-child {
    border-bottom: none;
}

/* Mobile drawer */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 1070;
}
.mobile-drawer[hidden] { display: none !important; }
.mobile-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28,27,26,0.48);
    animation: fadeIn 0.22s ease;
}
.mobile-drawer-panel {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: min(100%, 360px);
    height: 100%;
    background: #fff;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    padding: 18px 18px 24px;
    overflow-y: auto;
    animation: drawerIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes drawerIn {
    from { transform: translateX(18px); opacity: 0.6; }
    to { transform: translateX(0); opacity: 1; }
}
.mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.mobile-drawer-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--muted);
    font-size: 0.95rem;
    text-align: start;
    cursor: pointer;
    margin-bottom: 22px;
    transition: border-color 0.2s, background 0.2s;
}
.mobile-drawer-search:hover {
    border-color: rgba(181,100,47,0.35);
    background: #fff;
    color: var(--ink);
}
.mobile-drawer-search i { color: var(--ink); }
.mobile-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 24px;
}
.mobile-drawer-nav a {
    display: block;
    padding: 12px 4px;
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.01em;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, padding-inline-start 0.2s;
}
.mobile-drawer-nav a:hover {
    color: var(--accent);
    padding-inline-start: 6px;
}
.mobile-drawer-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}
.mobile-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.mobile-cat-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 500;
    background: var(--paper);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.mobile-cat-grid a:hover {
    background: #fff;
    border-color: var(--accent);
    color: var(--accent);
}
.mobile-drawer-foot {
    margin-top: auto;
    padding-top: 24px;
}
.mobile-drawer-account {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 500;
}
.mobile-drawer-account .cart-badge {
    position: static;
    margin-inline-start: auto;
}
.mobile-drawer-account:hover { color: var(--accent); }
.mobile-drawer-cta {
    width: 100%;
    text-align: center;
    margin-bottom: 14px;
}
.mobile-drawer-note {
    margin: 14px 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}
.mobile-drawer-note i { color: var(--accent); margin-inline-end: 4px; }

body.nav-lock { overflow: hidden; }

@media (max-width: 991.98px) {
    .search-suggest-grid { grid-template-columns: 1fr 1fr; }
    .search-suggest-item:nth-child(3n) { border-inline-end: 1px solid var(--line); }
    .search-suggest-item:nth-child(2n) { border-inline-end: none; }
    .search-suggest-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
    .search-suggest-item:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 575.98px) {
    .brand-text { font-size: 1.15rem; }
    .navbar-brand { font-size: 1.15rem; }
}

/* Buttons used across pages */
.btn-hero {
    background: var(--ink);
    color: white;
    font-weight: 600;
    padding: 15px 34px;
    border-radius: 50px;
    border: 1px solid var(--ink);
    font-size: 0.95rem;
    transition: all 0.25s;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.01em;
}
.btn-hero:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-2px);
}
.btn-outline-hero {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
    font-weight: 600;
    padding: 13.5px 28px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    margin-inline-start: 12px;
    transition: all 0.25s;
}
.btn-outline-hero:hover { background: var(--ink); color: white; }

/* Product highlight hero — full-bleed lifestyle images */
.product-hero {
    position: relative;
    background: #141312;
    color: #fff;
    overflow: hidden;
    min-height: min(88vh, 820px);
    display: flex;
    flex-direction: column;
}
.ph-slides {
    position: relative;
    flex: 1;
    min-height: min(78vh, 740px);
}
.ph-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.9s;
}
.ph-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}
.ph-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #1a1816;
}
.ph-media .pi,
.ph-media picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.ph-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.08);
    will-change: transform;
}
.ph-slide.is-active .ph-img {
    animation: phKenBurns 8s ease-out forwards;
}
@keyframes phKenBurns {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}
.ph-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.65), rgba(0,0,0,0.15));
    z-index: 1;
}
.ph-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 56px;
    padding-bottom: 120px;
}
.ph-brand {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 8vw, 4.1rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    color: #fff;
    opacity: 0;
    transform: translateY(28px);
}
.ph-brand-accent {
    font-style: italic;
    color: var(--accent-light);
}
.ph-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(22px);
}
.ph-title {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 3.2vw, 2.15rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
    color: rgba(255,255,255,0.96);
    max-width: 16ch;
    opacity: 0;
    transform: translateY(22px);
}
.ph-copy {
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.78);
    max-width: 38ch;
    margin: 0 0 28px;
    opacity: 0;
    transform: translateY(22px);
}
.ph-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    opacity: 0;
    transform: translateY(22px);
}
.ph-price {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
}
.ph-price-now {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: #fff;
}
.ph-price-was {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.45);
    text-decoration: line-through;
}
.product-hero .btn-hero {
    background: #fff;
    color: var(--ink);
    border-color: #fff;
}
.product-hero .btn-hero:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.product-hero .ph-actions .btn-hero {
    width: auto;
    max-width: none;
    text-align: center;
}

.ph-slide.is-active .ph-brand,
.ph-slide.is-active .ph-kicker,
.ph-slide.is-active .ph-title,
.ph-slide.is-active .ph-copy,
.ph-slide.is-active .ph-actions {
    animation: phRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.ph-slide.is-active .ph-brand { animation-delay: 0.12s; }
.ph-slide.is-active .ph-kicker { animation-delay: 0.24s; }
.ph-slide.is-active .ph-title { animation-delay: 0.34s; }
.ph-slide.is-active .ph-copy { animation-delay: 0.44s; }
.ph-slide.is-active .ph-actions { animation-delay: 0.54s; }
@keyframes phRise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ph-chrome {
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: 0;
    bottom: 16px;
    z-index: 5;
    pointer-events: none;
}
.ph-chrome-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}
.ph-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.ph-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(20,19,18,0.35);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.ph-btn:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-1px);
}
.ph-btn:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
}
.ph-progress {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.18);
    border-radius: 2px;
    overflow: hidden;
    min-width: 48px;
}
.ph-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-light), #fff);
    transform-origin: left center;
}
.ph-progress-bar.is-running {
    animation: phProgress linear forwards;
}
@keyframes phProgress {
    from { width: 0%; }
    to { width: 100%; }
}
.ph-dots {
    display: flex;
    gap: 0;
    flex-shrink: 0;
}
.ph-dot {
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}
.ph-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transform: translate(-50%, -50%);
    transition: transform 0.25s, background 0.25s, width 0.25s;
}
.ph-dot.is-active::after {
    background: #fff;
    width: 22px;
    border-radius: 4px;
}
.ph-dot:hover::after { background: rgba(255,255,255,0.7); }
.ph-dot:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
}

.ph-trust {
    position: relative;
    z-index: 4;
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 14px 0;
}
.ph-trust-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    font-size: 0.86rem;
    color: rgba(255,255,255,0.78);
    letter-spacing: 0.01em;
}
.ph-trust-inner i {
    color: var(--accent-light);
    margin-inline-end: 6px;
}
.ph-trust-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.28);
    display: inline-block;
}

@media (min-width: 768px) {
    .ph-content { padding-top: 72px; padding-bottom: 120px; }
    .ph-chrome-inner { gap: 18px; }
}

@media (max-width: 767.98px) {
    .product-hero { min-height: min(58vh, 500px); }
    .ph-slides { min-height: min(52vh, 440px); }

    /* Product photos are usually centred — anchor copy to the bottom so
       text doesn't sit on top of the chair/desk in the image. */
    .ph-content {
        justify-content: flex-end;
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .ph-veil {
        background:
            linear-gradient(to right, rgba(0,0,0,0.65), rgba(0,0,0,0.15)),
            linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 42%);
    }

    .ph-img { object-position: center 22%; }

    /* Navbar already shows the brand — the giant hero wordmark just eats space. */
    .ph-brand { display: none; }

    .ph-kicker { margin-bottom: 8px; }
    .ph-title {
        font-size: clamp(1.25rem, 5.5vw, 1.55rem);
        max-width: none;
        margin-bottom: 8px;
        text-shadow: 0 2px 16px rgba(0,0,0,0.45);
    }
    .ph-copy {
        font-size: 0.9rem;
        margin-bottom: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .ph-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .ph-price-now { font-size: 1.25rem; }
    .ph-chrome { bottom: 10px; }
    .ph-chrome-inner { justify-content: center; gap: 0; }
    .ph-nav { display: none; }
    .ph-dots {
        flex: 1;
        width: 100%;
        gap: 5px;
    }
    .ph-dot {
        flex: 1;
        width: auto;
        height: 22px;
        min-width: 0;
    }
    .ph-dot::after {
        inset-inline-start: 0;
        inset-inline-end: 0;
        width: auto;
        height: 2px;
        border-radius: 1px;
        background: rgba(255,255,255,0.38);
        transform: translateY(-50%);
    }
    .ph-dot.is-active::after {
        width: auto;
        height: 2px;
        border-radius: 1px;
        background: #fff;
    }
}

.ph-slide--banner .ph-img { object-position: center center; }
.ph-slide--banner .ph-title { max-width: 22ch; }
.ph-slide--image-only .ph-veil { background: linear-gradient(to top, rgba(0,0,0,0.18), transparent 40%); }
.ph-slide-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    .ph-slide { transition: opacity 0.2s; }
    .ph-img,
    .ph-slide.is-active .ph-img {
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }
    .ph-slide.is-active .ph-brand,
    .ph-slide.is-active .ph-kicker,
    .ph-slide.is-active .ph-title,
    .ph-slide.is-active .ph-copy,
    .ph-slide.is-active .ph-actions {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .ph-progress-bar.is-running { animation: none !important; width: 100%; }
}

/* Section Titles */
.section-title {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.section-subtitle {
    color: var(--muted);
    margin-bottom: 40px;
    font-size: 0.98rem;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
}
.view-all-link {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
    transition: all 0.2s;
}
.view-all-link:hover { color: var(--accent); border-color: var(--accent); }

/* Category Cards */
.category-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 210px;
    cursor: pointer;
    transition: box-shadow 0.3s;
    text-decoration: none;
    display: block;
    box-shadow: var(--shadow-sm);
}
.category-card:hover { box-shadow: var(--shadow); }
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: saturate(0.92);
}
.category-card:hover img { transform: scale(1.06); }
.category-overlay {
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: 0;
    bottom: 0;
    background: rgba(20,19,18,0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    min-height: 42px;
}
.category-name {
    font-family: var(--font-body);
    color: white;
    font-weight: 700;
    font-size: 0.72rem;
    margin: 0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.3;
}

/* Product Cards — mobile-first, image-led, no chrome */
.product-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover { box-shadow: none; }
.product-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}
.product-thumbs {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.product-thumbs.is-gallery {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scrollbar-width: none;
}
.product-thumbs.is-gallery::-webkit-scrollbar { display: none; }
.product-image-link {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: block;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: clamp(10px, 4%, 18px);
    transition: transform 0.55s ease, opacity 0.35s ease;
}
.product-image-wrap .pi,
.product-image-link picture,
.product-image-wrap picture {
    display: block;
    width: 100%;
    height: 100%;
    background: #fff;
    background-image: none;
}

/* Self-hosted image pipeline: LQIP blur-up + picture fill */
.pi {
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.pi picture { display: block; width: 100%; height: 100%; }
.pi--lqip .pi-img { opacity: 0; transition: opacity 0.35s ease; }
.pi--lqip .pi-img.is-loaded { opacity: 1; }
.admin-table .pi {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.admin-product-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}
@media (hover: hover) {
    .product-card:hover .product-image-wrap img { transform: scale(1.04); }
    .product-thumbs.is-gallery:hover img { transform: none; }
}
.product-badges {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    z-index: 2;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    pointer-events: none;
}
.badge-sale, .badge-new, .badge-soldout {
    font-family: var(--font-body);
    font-size: 0.68rem;
    padding: 6px 10px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}
.badge-sale { background: var(--accent); color: #fff; }
.badge-new { background: var(--ink); color: #fff; }
.badge-soldout { background: rgba(255,255,255,0.94); color: var(--ink); }
.product-info {
    padding: 12px 2px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.product-category { display: none; }
.product-name {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
    letter-spacing: -0.005em;
    margin: 0;
    color: var(--ink);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-name:hover { color: var(--ink); }
.product-rating { display: none; }
.product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 10px;
    margin-top: 0;
}
.price-current {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text-strong);
}
.price-current.is-sale { color: var(--accent); }
.price-original {
    text-decoration: line-through;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
    margin-inline-start: 0;
    order: -1;
}
.product-image-action {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 0;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    box-shadow: none;
    font-size: 1.15rem;
    cursor: pointer;
    transition: color .2s ease, transform .2s ease;
}
.product-image-action:hover {
    background: transparent;
    color: var(--accent);
    transform: none;
}
.product-wishlist-form {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    z-index: 2;
}
.product-heart {
    color: #fff;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.45));
}
.product-heart.is-active { color: #c44a38; filter: none; }
.product-quick-cart,
.product-quote-btn {
    position: absolute;
    bottom: 12px;
    z-index: 2;
    display: none;
    opacity: 0;
}
.product-quick-cart { inset-inline-end: 12px; }
.product-quote-btn { inset-inline-start: 12px; }
.product-quote-btn.is-active { color: var(--accent); }
.product-thumb-dots {
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: 0;
    bottom: 12px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}
.product-thumb-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.72);
    box-shadow: 0 0 0 1px rgba(28,27,26,0.12);
    pointer-events: auto;
    cursor: pointer;
}
.product-thumb-dot.is-active { background: var(--accent); }
.btn-add-cart {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    width: 100%;
    margin-top: 14px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.01em;
}
.btn-add-cart:hover { background: var(--ink); color: white; }

/* Homepage section bands */
.home-bands > section:nth-child(odd) { background: #ffffff; }
.home-bands > section:nth-child(even) { background: #f8f9fa; }

/* Features Strip — muted trust badge container */
.features-strip {
    background: #f1efe8;
    padding: 36px 0;
    border-top: 1px solid #e4e0d6;
    border-bottom: 1px solid #e4e0d6;
}
.feature-item {
    text-align: center;
    padding: 16px;
}
.feature-icon {
    width: 52px;
    height: 52px;
    background: #fff;
    color: var(--accent);
    border: 1.5px solid #e4e0d6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 14px;
}

.contact-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    width: 100%;
}
.contact-list-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.9rem;
    width: 100%;
    margin: 0;
    padding: 0;
}
.contact-list-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    margin: 0;
    background: #fff;
    color: var(--accent);
    border: 1.5px solid #e4e0d6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.contact-list-body {
    flex: 1 1 auto;
    min-width: 0;
}
.contact-list-body h6 {
    margin: 0.15rem 0 0.15rem;
    font-weight: 700;
    font-size: 0.95rem;
}
.contact-list-body p {
    margin: 0;
    color: var(--muted);
}
.contact-list-body a {
    color: inherit;
    text-decoration: none;
}
.contact-list-body a:hover {
    color: var(--accent);
}
.feature-item h6 { font-weight: 600; margin-bottom: 4px; font-size: 0.95rem; }
.feature-item p { color: var(--muted); font-size: 0.83rem; margin: 0; }

/* CTA Banner */
.cta-banner {
    background: var(--ink);
    color: white;
    padding: 64px 0;
    border-radius: var(--radius-lg);
    margin: 64px 0;
}
.cta-banner h3 { font-weight: 700; font-size: 1.9rem; color: inherit; }
.cta-banner .btn-hero { background: white; color: var(--ink); border-color: white; }
.cta-banner .btn-hero:hover { background: var(--accent); color: white; border-color: var(--accent); }

.home-about {
    background: #f4f1ea;
    padding: 72px 0;
}
.home-about .section-title { margin-bottom: 16px; }
.home-about .text-muted { color: #5c564c !important; }
main:has(.home-about) ~ .site-footer { margin-top: 0; }

/* Footer */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,0.65);
    padding: 64px 0 26px;
    margin-top: 64px;
}
.site-footer h5 { color: white; font-weight: 600; margin-bottom: 18px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 600; color: white; }
.footer-desc { font-size: 0.88rem; margin: 18px 0; line-height: 1.7; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.88rem; }
.footer-links a:hover { color: var(--accent-light); }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { margin-bottom: 11px; font-size: 0.88rem; }
.footer-contact i { color: var(--accent-light); margin-inline-end: 8px; }
.social-links a {
    color: white;
    background: rgba(255,255,255,0.08);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline-end: 8px;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.9rem;
}
.social-links a:hover { background: var(--accent); }
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 36px 0 18px; }
.footer-bottom { font-size: 0.82rem; }
.footer-bottom a { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-bottom a:hover { color: white; }

/* WhatsApp Float
   --mobile-tabbar-height is 0 on desktop and the tab bar height on mobile,
   so this always clears the bottom nav instead of sitting behind it. */
.whatsapp-float {
    position: fixed;
    bottom: calc(var(--mobile-tabbar-height) + 24px);
    inset-inline-end: 24px;
    width: 54px;
    height: 54px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1045;
    text-decoration: none;
    transition: transform 0.2s, bottom 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); color: white; }
/* Make room for the sticky mobile CTA bar when it's showing on the PDP */
body.has-sticky-cta .whatsapp-float {
    bottom: calc(var(--mobile-tabbar-height) + 92px);
}

/* Toasts */
.toast-host {
    position: fixed;
    left: 50%;
    bottom: calc(var(--mobile-tabbar-height) + 24px);
    transform: translateX(-50%);
    z-index: 2100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}
body.has-sticky-cta .toast-host {
    bottom: calc(var(--mobile-tabbar-height) + 92px);
}
.toast-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--ink);
    color: #fff;
    padding: 12px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast-item.is-visible { opacity: 1; transform: translateY(0); }
.toast-item.toast-error { background: var(--danger); }
.toast-item i { font-size: 1.1rem; flex-shrink: 0; }

/* Sticky mobile CTA (Product Detail Page) */
.sticky-cta-bar {
    position: fixed;
    inset-inline-start: 0;
    inset-inline-end: 0;
    bottom: var(--mobile-tabbar-height);
    z-index: 1030;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(28,27,26,0.1);
    padding: 10px clamp(16px, 3vw, 24px);
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(110%);
    transition: transform 0.25s ease;
}
.sticky-cta-bar.is-visible { transform: translateY(0); }
.sticky-cta-price {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    flex-shrink: 0;
}
.sticky-cta-price .price-current { font-size: 1.05rem; }
.sticky-cta-bar form { flex: 1; }
.sticky-cta-bar .btn-primary {
    width: 100%;
    min-height: 46px;
    border-radius: 999px;
    font-weight: 600;
}
.sticky-cta-quote {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.sticky-cta-quote.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (min-width: 992px) {
    .sticky-cta-bar { display: none !important; }
}

/* Loading state for AJAX submit buttons */
.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255,255,255,0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ofwSpin 0.6s linear infinite;
}
.product-image-action.is-loading::after {
    border-color: rgba(28,27,26,0.35);
    border-top-color: var(--ink);
}
@keyframes ofwSpin { to { transform: rotate(360deg); } }

/* Page Header */
.page-header {
    background: var(--paper);
    padding: 44px 0;
    margin-bottom: 44px;
    border-bottom: 1px solid var(--line);
}
.page-header h1 { font-weight: 700; margin-bottom: 8px; font-size: 2rem; }
.breadcrumb { margin: 0; font-size: 0.82rem; flex-wrap: nowrap; overflow: hidden; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-item.active { color: var(--ink); }
@media (max-width: 575.98px) {
    /* Keep the trail on one line — truncate the (often long) current-page
       segment instead of letting the whole breadcrumb wrap to two lines. */
    .breadcrumb-item { white-space: nowrap; }
    .breadcrumb-item.active {
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 55vw;
        display: inline-block;
        vertical-align: bottom;
    }
}

/* Shop filters only — drawer, chips, sort. Does not restyle the rest of the shop page. */
.shop-filters,
.shop-filters-open,
.shop-sort,
.shop-chips {
    --shop-card: #FBFAF7;
    --shop-ink: #211F1C;
    --shop-ink-soft: #5A564D;
    --shop-walnut: #6B4226;
    --shop-walnut-deep: #4A2D1A;
    --shop-brass: #A9822F;
    --shop-brass-light: #C9A857;
    --shop-rule: #DAD5C9;
    --shop-rule-soft: #E8E4DA;
    --shop-radius: 2px;
}
.shop-filters-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--shop-card);
    border: 1px solid var(--shop-rule);
    color: var(--shop-ink);
    padding: 10px 14px;
    border-radius: var(--shop-radius);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
}
.shop-filters-open:hover { border-color: var(--shop-walnut); }
.shop-filters-open:focus-visible,
.shop-sort-select:focus-visible,
.shop-chip:focus-visible,
.shop-apply-btn:focus-visible,
.shop-clear-all:focus-visible,
.shop-filters-close:focus-visible,
.shop-drawer-handle:focus-visible,
.shop-price-box:focus-visible {
    outline: 2px solid var(--shop-brass);
    outline-offset: 2px;
}
.shop-controls-end {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-inline-start: auto;
}
.shop-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.shop-sort-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.shop-sort-select {
    appearance: none;
    background: var(--surface) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path d="M1 1l4 4 4-4" stroke="%23211F1C" stroke-width="1.4" fill="none" stroke-linecap="round"/></svg>') no-repeat right 12px center;
    border: 1px solid var(--line);
    border-radius: var(--shop-radius);
    padding: 10px 34px 10px 12px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--ink);
    cursor: pointer;
    min-height: 42px;
}
.shop-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}
.shop-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--shop-card);
    border: 1px solid var(--shop-rule);
    color: var(--shop-ink);
    text-decoration: none;
    padding: 6px 8px 6px 12px;
    border-radius: var(--shop-radius);
    font-size: 12.5px;
}
.shop-chip:hover { color: var(--shop-walnut-deep); border-color: var(--shop-walnut); }
.shop-chip-remove {
    display: inline-flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    background: var(--shop-rule-soft);
    color: var(--shop-ink-soft);
    font-size: 13px;
    line-height: 1;
    border-radius: var(--shop-radius);
}
.shop-chip:hover .shop-chip-remove { background: var(--shop-walnut); color: #fff; }

.shop-catalog-body {
    display: block;
    min-width: 0;
}
.shop-results { min-width: 0; }
.shop-filters-scrim[hidden] { display: none !important; }
.shop-filters-scrim {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 31, 28, 0.4);
    z-index: 1090;
}
.shop-filters {
    background: var(--shop-card, #FBFAF7);
    border: 1px solid var(--shop-rule, #DAD5C9);
    border-radius: var(--shop-radius, 2px);
    box-sizing: border-box;
}
.shop-filters form { width: 100%; min-width: 0; }
.shop-filters-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--shop-rule);
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, #FEFDFB, var(--shop-card));
    z-index: 1;
}
.shop-filters-title {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--shop-ink-soft);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 600;
    font-family: var(--font-body);
}
.shop-filters-title svg { color: var(--shop-brass); flex-shrink: 0; }
.shop-filters-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.shop-clear-all {
    font-size: 12px;
    color: var(--shop-walnut);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.shop-clear-all:hover { color: var(--shop-walnut-deep); }
.shop-filters-close {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--shop-ink);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}
.shop-drawer { border-bottom: 1px solid var(--shop-rule-soft); }
.shop-drawer-handle {
    list-style: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    padding: 15px 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: var(--shop-ink);
    box-sizing: border-box;
}
.shop-drawer-handle::-webkit-details-marker { display: none; }
.shop-drawer-handle::marker { content: none; }
.shop-drawer-label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.shop-pull {
    width: 16px;
    height: 5px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--shop-brass-light), var(--shop-brass));
    box-shadow: inset 0 -1px 1px rgba(0,0,0,.2);
    flex-shrink: 0;
}
.shop-chevron { color: var(--shop-ink-soft); transition: transform 0.15s ease; }
.shop-drawer[open] .shop-chevron { transform: rotate(180deg); }
.shop-drawer-inner { padding: 0 18px 16px; }
.shop-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    margin: 0;
    font-size: 13.5px;
    color: var(--shop-ink-soft);
    cursor: pointer;
}
.shop-opt:hover { color: var(--shop-ink); }
.shop-opt-left {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    min-width: 0;
    flex: 1;
}
.shop-opt-name {
    min-width: 0;
    overflow-wrap: anywhere;
}
.shop-opt-count {
    font-size: 11px;
    color: #A39D8E;
    flex-shrink: 0;
}
.shop-latch-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.shop-latch {
    width: 15px;
    height: 15px;
    border-radius: var(--shop-radius);
    border: 1.4px solid #C7C1B3;
    background: #fff;
    position: relative;
    flex-shrink: 0;
}
.shop-latch-input:checked + .shop-latch {
    background: var(--shop-walnut);
    border-color: var(--shop-walnut);
}
.shop-latch-input:checked + .shop-latch::after {
    content: "";
    position: absolute;
    inset-inline-start: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 1.6px 1.6px 0;
    transform: rotate(45deg);
}
.shop-latch-input:focus-visible + .shop-latch {
    outline: 2px solid var(--shop-brass);
    outline-offset: 2px;
}

.shop-price-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}
.shop-price-box {
    border: 1px solid var(--shop-rule);
    border-radius: var(--shop-radius);
    padding: 6px 8px;
    background: #fff;
    width: 84px;
    text-align: center;
    color: var(--shop-ink);
    font-family: var(--font-body);
    font-size: 12.5px;
    -moz-appearance: textfield;
}
.shop-price-box::-webkit-outer-spin-button,
.shop-price-box::-webkit-inner-spin-button { appearance: none; }
.shop-price-sep { color: var(--shop-ink-soft); }
.shop-range {
    position: relative;
    height: 28px;
}
.shop-range-track {
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: 0;
    top: 12px;
    height: 3px;
    background: var(--shop-rule-soft);
    border-radius: 2px;
}
.shop-range-fill {
    position: absolute;
    height: 3px;
    background: var(--shop-walnut);
    border-radius: 2px;
}
.shop-range-input {
    position: absolute;
    inset-inline-start: 0;
    inset-inline-end: 0;
    top: 4px;
    width: 100%;
    margin: 0;
    appearance: none;
    background: none;
    pointer-events: none;
    height: 20px;
}
.shop-range-input::-webkit-slider-thumb {
    appearance: none;
    pointer-events: auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid var(--shop-walnut);
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
    cursor: grab;
}
.shop-range-input::-moz-range-thumb {
    pointer-events: auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid var(--shop-walnut);
    cursor: grab;
}
.shop-filters-apply { padding: 16px 18px 20px; }
.shop-apply-btn {
    width: 100%;
    padding: 12px;
    background: var(--shop-walnut);
    color: #fff;
    border: none;
    border-radius: var(--shop-radius);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.shop-apply-btn:hover { background: var(--shop-walnut-deep); color: #fff; }

/* Filters overlay on all widths — same drawer as mobile */
.shop-filters {
    position: fixed !important;
    top: 0;
    inset-inline-end: auto;
    bottom: 0;
    inset-inline-start: 0;
    width: min(22.5rem, calc(100vw - 3rem));
    max-width: calc(100vw - 3rem);
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    z-index: 1091;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-100%);
    transition: transform 0.2s ease, visibility 0.2s ease;
    border-radius: 0;
    border-inline-start: 0;
    box-shadow: none;
}
.shop-filters.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: 8px 0 28px rgba(33, 31, 28, 0.18);
}
html.is-shop-filters-open,
body.is-shop-filters-open {
    overflow: hidden !important;
}

/* Product Detail */
.product-detail-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--paper);
}
.product-detail-img img { width: 100%; height: 470px; object-fit: cover; }
.product-detail-info h1 { font-weight: 700; font-size: 2rem; }
.detail-price .price-current { font-size: 2rem; }
.qty-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
}
.qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
}
.qty-input {
    width: 62px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 7px;
    font-weight: 600;
    background: var(--surface);
}

/* Cart & Checkout */
.cart-table img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-table .pi,
.cart-mobile-item .pi {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.cart-mobile-item .pi { width: 72px; height: 72px; }
.order-summary {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
}
.order-summary h5 { font-weight: 600; margin-bottom: 18px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    font-size: 0.93rem;
    color: var(--ink-soft);
}
.summary-total {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--ink);
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: 8px;
}

/* Payment Methods */
.payment-option {
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.payment-option:hover, .payment-option.selected {
    border-color: var(--ink);
    background: var(--paper);
}
.payment-option input { margin-inline-end: 12px; accent-color: var(--ink); }
.payment-logo { height: 24px; margin-inline-start: auto; }

/* Admin */
.admin-layout { display: flex; min-height: 100vh; background: var(--paper); }
.admin-sidebar {
    width: 260px;
    background: var(--ink);
    color: white;
    padding: 24px 0;
    flex-shrink: 0;
    flex-direction: column;
    position: sticky;
    top: 0;
    align-self: stretch;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    transition: width 0.2s ease;
}
.admin-sidebar .brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 16px 24px 24px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-family: var(--font-heading);
}
.admin-sidebar .brand-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.admin-sidebar-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255,255,255,0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.admin-sidebar-toggle:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}
.admin-nav { list-style: none; padding: 16px 0; margin: 0; }
.admin-nav a,
.admin-logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.89rem;
    transition: background 0.2s, color 0.2s, padding 0.2s;
}
.admin-nav a i,
.admin-logout-btn i {
    flex-shrink: 0;
    width: 1.25em;
    font-size: 1.15rem;
    text-align: center;
}
.admin-nav-label { white-space: nowrap; }
.admin-nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 8px 24px;
    padding: 0;
    list-style: none;
}
.admin-nav a:hover, .admin-nav a.active {
    background: rgba(181,100,47,0.18);
    color: white;
    border-inline-end: 3px solid var(--accent);
}
html.admin-sidebar-collapsed .admin-sidebar { width: 76px; }
html.admin-sidebar-collapsed .admin-sidebar .brand {
    flex-direction: column;
    justify-content: center;
    padding: 0 8px 16px;
}
html.admin-sidebar-collapsed .admin-sidebar .brand-text,
html.admin-sidebar-collapsed .admin-sidebar .admin-nav-label { display: none; }
html.admin-sidebar-collapsed .admin-sidebar .admin-nav a,
html.admin-sidebar-collapsed .admin-sidebar .admin-logout-btn {
    justify-content: center;
    padding-inline: 0;
    gap: 0;
    border-inline-end: none;
}
html.admin-sidebar-collapsed .admin-sidebar .admin-nav a.active { border-inline-end: none; }
html.admin-sidebar-collapsed .admin-sidebar .admin-nav-divider { margin-inline: 16px; }
.admin-content { flex: 1; min-width: 0; background: var(--paper); padding: 32px; overflow-x: hidden; }
.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: none;
}
.stat-card .stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}
.stat-card .stat-value { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; font-family: var(--font-heading); }
.stat-card .stat-label { color: var(--muted); font-size: 0.83rem; }
.admin-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: none; }
.admin-banner-thumb {
    width: 96px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: var(--paper);
}
.admin-banner-preview {
    width: 100%;
    max-width: 420px;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    background: var(--paper);
}
.admin-table table { margin: 0; }
.admin-table thead { background: var(--paper); }
.admin-product-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.admin-status-filter {
    width: auto;
    min-width: 180px;
}
.admin-social-search {
    width: auto;
    min-width: 240px;
    max-width: 360px;
}
.admin-product-name {
    max-width: 280px;
}
.admin-table td {
    vertical-align: middle;
}
.admin-status-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    max-width: 160px;
}
.admin-pagination .page-link {
    color: var(--ink);
    border-color: var(--line);
    background: #fff;
}
.admin-pagination .page-link:hover {
    background: var(--paper);
    color: var(--ink);
}
.admin-pagination .page-item.active .page-link {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.admin-pagination .page-item.disabled .page-link {
    color: var(--muted);
}
.status-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.status-pending { background: #fbe9d0; color: #8a5a12; }
.status-processing { background: #e2e8f0; color: #334155; }
.status-shipped { background: #e6dcf5; color: #5b3a91; }
.status-delivered { background: #dcefe1; color: #2c6b41; }
.status-cancelled { background: #f6dbd6; color: #9b3222; }
.status-refunded { background: #dbe4f6; color: #2c4a8b; }

/* Forms */
.form-label { font-weight: 500; font-size: 0.88rem; color: var(--ink-soft); }
.form-control, .form-select {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    /* 16px minimum — anything smaller triggers an unwanted auto-zoom
       on focus in iOS Safari. */
    font-size: 1rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 0.15rem rgba(28,27,26,0.08);
}
.btn-primary {
    background: var(--ink);
    border-color: var(--ink);
}
.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
}
.btn-outline-secondary {
    color: var(--ink);
    border-color: var(--line);
}
.btn-outline-secondary:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: white;
}
.btn-outline-primary {
    color: var(--ink);
    border-color: var(--ink);
}
.btn-outline-primary:hover {
    background: var(--ink);
    border-color: var(--ink);
}

/* Responsive */
@media (max-width: 991.98px) {
    .section-title { font-size: 1.5rem; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .page-header { padding: 28px 0; margin-bottom: 24px; }
    .page-header h1 { font-size: 1.6rem; }
    .product-detail-img img { height: 280px; }
    .product-detail-info h1 { font-size: 1.4rem; }
    .detail-price .price-current { font-size: 1.5rem; }
    .category-card { height: 140px; }
    .cta-banner { padding: 40px 20px; margin: 40px 0; }
    .cta-banner h3 { font-size: 1.4rem; }
    .site-footer { padding: 40px 0 20px; margin-top: 40px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
    .admin-content { padding: 16px; }
    .stat-card { padding: 16px; }
    .stat-card .stat-value { font-size: 1.4rem; }
    .admin-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .admin-table .table { min-width: 640px; }
}

@media (max-width: 767.98px) {
    .top-bar { font-size: 0.75rem; padding: 6px 0; text-align: center; }
    .top-bar-left, .top-bar-right { width: 100%; justify-content: center; }
    .ph-progress { display: none; }
    .ph-trust-inner { font-size: 0.8rem; gap: 8px 12px; }
    .btn-hero, .btn-outline-hero {
        display: block;
        width: 100%;
        text-align: center;
        margin-inline-start: 0 !important;
    }
    .btn-outline-hero { margin-top: 10px; }
    .product-hero .ph-actions .btn-hero {
        width: auto;
        align-self: flex-start;
        padding: 12px 26px;
    }
    .features-strip { padding: 24px 0; }
    .feature-item { padding: 8px; }
    .feature-icon { width: 44px; height: 44px; font-size: 1.1rem; }
    .product-info { padding: 12px 2px 0; }
    .btn-add-cart { padding: 8px; font-size: 0.85rem; }
    .whatsapp-float { width: 48px; height: 48px; font-size: 1.4rem; inset-inline-end: 16px; }
    .order-summary { position: sticky; bottom: 0; z-index: 10; }
    .payment-option { padding: 12px; }
    .cart-desktop-table { display: none; }
    .cart-mobile-list { display: block !important; }
    .navbar-brand .brand-icon { width: 36px; height: 36px; font-size: 1rem; }
    .nav-bar-inner { gap: 10px; }
    .nav-tools { gap: 2px; }
    .brand-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 40vw;
    }
}

@media (max-width: 430px) {
    .nav-bar-inner { gap: 6px; }
    .nav-tools { gap: 0; }
}

@media (min-width: 768px) {
    .cart-mobile-list { display: none !important; }
}

@media (max-width: 575.98px) {
    .container { padding-inline-start: 14px; padding-inline-end: 14px; }
    .category-card { height: 120px; }
    .category-name { font-size: 0.95rem; }
    .admin-mobile-header { gap: 8px; }
    .admin-mobile-header .fw-bold { font-size: 0.95rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Admin mobile */
.admin-offcanvas { background: var(--ink); color: white; width: 280px !important; }
.admin-offcanvas .admin-nav a:hover,
.admin-offcanvas .admin-nav a.active { border-inline-end: none; border-inline-start: 3px solid var(--accent); }
.admin-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 12px 14px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}
.admin-logout-btn {
    background: none;
    border: none;
    width: 100%;
    text-align: start;
    font-size: 0.9rem;
    cursor: pointer;
}
.admin-logout-btn:hover { color: #fff; }
.admin-form-section {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

/* Cart mobile cards */
.cart-mobile-list { display: none; }
.cart-mobile-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 12px;
}
.cart-mobile-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.cart-mobile-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 8px;
    flex-wrap: wrap;
}

/* Shop toolbar + mobile 1/2 column layout */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.shop-toolbar-count {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    flex: 1 1 auto;
    min-width: 0;
}
.shop-layout-toggle {
    display: none;
    align-items: center;
    gap: 6px;
}
.shop-layout-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9a938a;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}
.shop-layout-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}
.shop-layout-btn .shop-layout-fill {
    fill: currentColor;
    stroke: none;
}
.shop-layout-btn.is-active { color: var(--ink); }
.shop-layout-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.shop-pager {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
}
.shop-pager-summary {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}
.shop-pager-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.shop-pager-pages {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.shop-pager-btn,
.shop-pager-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.shop-pager-btn {
    width: 40px;
    padding: 0;
}
.shop-pager-btn:hover,
.shop-pager-num:hover {
    background: var(--paper);
    border-color: #d4cdc0;
    color: var(--ink);
}
.shop-pager-num.is-current {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.shop-pager-btn.is-disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}
.shop-pager-btn:focus-visible,
.shop-pager-num:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.shop-pager-ellipsis {
    min-width: 20px;
    color: var(--muted);
    text-align: center;
    letter-spacing: 0.12em;
    user-select: none;
}
.shop-pager-status {
    display: none;
    margin: 0;
    min-width: 7.5rem;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
}
#shopProductGrid { scroll-margin-top: 96px; }

@media (max-width: 699.98px) {
    .shop-pager-pages,
    .shop-pager-summary { display: none; }
    .shop-pager-status { display: block; }
    .shop-pager-bar {
        width: 100%;
        justify-content: space-between;
        max-width: 360px;
    }
}

@media (min-width: 700px) {
    .shop-drawer--sort { display: none; }
}

@media (min-width: 992px) {
    .product-grid > [class*="col-"] {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 699.98px) {
    .shop-layout-toggle { display: flex; }
    .shop-sort--toolbar { display: none; }
    .product-grid.is-cols-1 > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .product-grid.is-cols-2 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 1.1rem;
    }
    .product-grid.is-cols-2 > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .product-grid.is-cols-2 .product-name { font-size: 0.86rem; }
    .product-grid.is-cols-2 .price-current { font-size: 0.9rem; }
    .product-grid.is-cols-2 .price-original { font-size: 0.74rem; }
    .product-grid.is-cols-2 .product-heart { font-size: 1rem; }
}

.qty-field { min-width: 100px; }
.product-add-form .btn { min-height: 48px; }

.product-buy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}
.product-buy-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}
.product-buy .qty-selector {
    margin: 0;
    gap: 0;
    flex: 0 0 auto;
    height: 52px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}
.product-buy .qty-btn {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1;
    color: var(--ink);
}
.product-buy .qty-btn:hover { background: var(--paper); }
.product-buy .qty-input {
    width: 40px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
}
.product-buy .qty-input::-webkit-outer-spin-button,
.product-buy .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.product-buy-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}
.product-buy-cart:hover { background: var(--accent); color: #fff; }
.product-buy-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
}
.product-buy-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
}
.product-buy-link:hover,
.product-buy-link.is-active {
    color: #a64734;
    border-bottom-color: currentColor;
}
@media (max-width: 575.98px) {
    .product-buy-row { flex-direction: column; }
    .product-buy .qty-selector { width: 100%; justify-content: space-between; }
    .product-buy .qty-input { width: 64px; }
}

/* Checkout mobile sticky summary */
@media (max-width: 991.98px) {
    .checkout-summary-sticky {
        position: sticky;
        bottom: 12px;
        z-index: 20;
    }
}
@media (hover: none) and (pointer: coarse) {
    .nav-link, .btn, .filter-link, .nav-icon, .btn-add-cart {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .filter-link { padding: 10px 12px; }
}

/* Full-width storefront shell */
body > .top-bar .container,
.main-navbar .container,
main > .container,
main .container,
.site-footer .container {
    width: 100%;
    max-width: 1680px;
    padding-inline-start: clamp(16px, 3vw, 52px);
    padding-inline-end: clamp(16px, 3vw, 52px);
}

@media (hover: hover) and (min-width: 992px) {
    .product-quick-cart,
    .product-quote-btn {
        display: inline-grid;
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.94);
        box-shadow: 0 6px 18px rgba(28,27,26,0.12);
        border-radius: 50%;
        font-size: 1rem;
        opacity: 0;
        transform: translateY(6px);
        transition: opacity .2s ease, transform .2s ease, background .2s ease, color .2s ease;
    }
    .product-card:hover .product-quick-cart,
    .product-quick-cart:focus-within,
    .product-card:hover .product-quote-btn,
    .product-quote-btn:focus-visible {
        opacity: 1;
        transform: translateY(0);
    }
    .product-quote-btn.is-active {
        background: var(--ink);
        color: #fff;
    }
}
.wishlist-badge {
    background: #a64734;
}
.quote-badge {
    background: var(--accent-dark);
}

/* Quote list — horizontal product cards matching quote mockup */
.quote-header { margin-bottom: 20px; }
.quote-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.quote-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 18px 20px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 18px;
}
.quote-card-thumb {
    width: 112px;
    height: 112px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    flex-shrink: 0;
}
.quote-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.quote-card-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.quote-card-title {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.quote-card-title:hover { color: var(--accent); }
.quote-card-price-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.quote-card-price-label {
    font-size: 0.72rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--muted);
    font-weight: 500;
}
.quote-card-price-value {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.quote-card-price-value.is-request {
    font-weight: 500;
    font-size: 1rem;
    color: var(--muted);
}
.quote-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    font-size: 0.9rem;
    color: var(--ink-soft);
}
.quote-card-model { color: var(--ink-soft); }
.quote-card-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.88rem;
}
.quote-card-stock.is-in { color: var(--success); }
.quote-card-stock.is-out { color: var(--danger); }
.quote-card-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}
.quote-card-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 160px;
}
.quote-qty {
    margin: 0 !important;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 4px;
    background: #fff;
    gap: 0;
}
.quote-qty .qty-btn {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    touch-action: manipulation;
}
.quote-qty .qty-btn:hover { background: var(--paper); }
.quote-qty .qty-input {
    width: 48px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0;
}
.quote-card-line-total {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
    text-align: end;
}
.quote-card-line-total strong {
    color: var(--ink);
    font-weight: 700;
}
.quote-card-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--danger);
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.quote-card-remove:hover {
    background: #f8e8e6;
    border-color: #e8c4bf;
}

@media (max-width: 767.98px) {
    .quote-card {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px 14px;
        padding: 14px;
    }
    .quote-card-thumb {
        width: 72px;
        height: 72px;
        border-radius: 10px;
    }
    .quote-card-title { font-size: 1rem; }
    .quote-card-price-value { font-size: 1.15rem; }
    .quote-card-actions {
        grid-column: 1 / -1;
        align-items: stretch;
        min-width: 0;
    }
    .quote-qty { justify-content: center; align-self: stretch; }
    .quote-card-line-total { text-align: center; }
    .quote-card-remove { width: 100%; }
}

/* Recently Viewed — horizontal scroll row, works the same at every width
   instead of squeezing into a multi-column grid on small screens. */
.scroll-row-wrap {
    position: relative;
}
.scroll-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.scroll-row-item {
    flex: 0 0 auto;
    width: min(78vw, 320px);
    scroll-snap-align: start;
}
.scroll-row-item .product-card,
.scroll-row-item .category-card {
    width: 100%;
    height: 100%;
}
.scroll-row-item--category {
    width: 220px;
}
.scroll-row-item--category .category-card {
    height: 180px;
}
.scroll-row-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-58%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.scroll-row-nav:hover {
    background: var(--ink);
    color: #fff;
}
.scroll-row-nav:disabled {
    opacity: 0.35;
    pointer-events: none;
}
.scroll-row-nav--prev { inset-inline-start: -8px; }
.scroll-row-nav--next { inset-inline-end: -8px; }
@media (min-width: 768px) {
    .scroll-row-item:not(.scroll-row-item--category) { width: 260px; }
}
@media (max-width: 575.98px) {
    .scroll-row-item--category { width: 58vw; }
    .scroll-row-item--category .category-card { height: 140px; }
    .scroll-row-nav { width: 36px; height: 36px; }
    .scroll-row-nav--prev { inset-inline-start: 0; }
    .scroll-row-nav--next { inset-inline-end: 0; }
}

/* Wishlist */
.wishlist-empty {
    min-height: 48vh;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    gap: 12px;
}
.wishlist-empty-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--accent);
    font-size: 1.65rem;
}
.wishlist-empty h2 { margin: 8px 0 0; }
.wishlist-empty p { color: var(--muted); margin-bottom: 12px; }

@media (min-width: 768px) {
    .product-name { font-size: 1rem; }
    .price-current { font-size: 1.05rem; }
}
@media (max-width: 575.98px) {
    .row.g-5 { --bs-gutter-x: 1.5rem; }
}

/* Admin product image management */
.admin-image-upload {
    padding: 18px;
    border: 1px dashed #c9c1b5;
    border-radius: var(--radius);
    background: var(--paper);
}
.admin-upload-preview,
.admin-existing-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.admin-preview-item,
.admin-existing-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.admin-preview-item img,
.admin-existing-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}
.admin-preview-item span {
    position: absolute;
    inset-inline-start: 6px;
    bottom: 6px;
    padding: 3px 8px;
    border-radius: 99px;
    background: rgba(28, 27, 26, .82);
    color: #fff;
    font-size: .7rem;
}
.admin-remove-image {
    position: absolute;
    inset: auto 5px 5px 5px;
    padding: 5px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .94);
    color: var(--danger);
    font-size: .72rem;
    font-weight: 600;
    cursor: pointer;
}

.rich-text-field {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    max-width: 100%;
}
.rich-text-input[hidden],
.rich-text-input {
    position: absolute !important;
    inset-inline-start: 0;
    top: 0;
    width: 1px !important;
    height: 1px !important;
    max-width: 1px !important;
    max-height: 1px !important;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
    opacity: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: pre-wrap;
    pointer-events: none;
}
.rich-text-input.is-fallback {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    opacity: 1;
    overflow: auto !important;
    clip: auto;
    clip-path: none;
    pointer-events: auto;
}
.rich-text-surface.ql-container {
    background: #fff;
    height: auto;
    min-height: 0;
    overflow: hidden;
    font-family: inherit;
    font-size: 0.95rem;
}
.ql-toolbar.ql-snow,
.ql-container.ql-snow {
    border-color: var(--line);
}
.ql-toolbar.ql-snow {
    border-radius: 10px 10px 0 0;
    background: #fff;
}
.ql-container.ql-snow {
    border-radius: 0 0 10px 10px;
}
.rich-text-surface .ql-editor {
    min-height: 220px;
    height: auto;
    line-height: 1.65;
}
.rich-text-surface[dir="rtl"] .ql-editor {
    direction: rtl;
    text-align: right;
}
.rich-text-surface[dir="rtl"] .ql-editor.ql-blank::before {
    right: 15px;
    left: auto;
}
.ql-editor.ql-blank::before {
    color: var(--muted);
    font-style: normal;
}

.product-description {
    color: var(--muted);
    line-height: 1.7;
    max-width: 46rem;
}
.product-description p { margin: 0 0 0.9rem; }
.product-description p:last-child { margin-bottom: 0; }
.product-description h2,
.product-description h3,
.product-description h4 {
    color: var(--ink);
    font-weight: 600;
    margin: 1.35rem 0 0.5rem;
}
.product-description h2 { font-size: 1.35rem; }
.product-description h3 { font-size: 1.15rem; }
.product-description h4 { font-size: 1.05rem; }
.product-description ul,
.product-description ol {
    margin: 0 0 0.9rem;
    padding-inline-start: 1.35rem;
}
.product-description li { margin: 0.2rem 0; }
.product-description a { text-decoration: underline; }
.product-description .ql-align-center { text-align: center; }
.product-description .ql-align-right { text-align: end; }
.product-description .ql-align-justify { text-align: justify; }

/* Product gallery — hover side-zoom + enlarge lightbox */
.product-gallery {
    position: relative;
    z-index: 6;
}
.product-gallery-col {
    position: relative;
    z-index: 6;
}
.product-stage {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #fff;
    cursor: zoom-in;
}
@media (hover: hover) and (pointer: fine) and (min-width: 992px) {
    .product-stage { cursor: crosshair; }
}
.product-stage-image,
.product-stage-image .pi,
.product-stage-image picture {
    display: block;
    width: 100%;
    height: 100%;
    background: #fff;
    background-image: none;
}
.product-stage-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: clamp(12px, 3vw, 30px);
    user-select: none;
    pointer-events: none;
}
.product-stage:focus { outline: none; }
.product-stage:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.product-stage-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
    opacity: 0.92;
}
.product-stage-nav:hover { background: #fff; }
.product-stage-prev { inset-inline-start: 12px; }
.product-stage-next { inset-inline-end: 12px; }
.product-stage-expand {
    position: absolute;
    inset-inline-end: 12px;
    bottom: 12px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    font-size: 1rem;
}
.product-stage-expand:hover { background: var(--paper); }
.product-stage-nav:focus-visible,
.product-stage-expand:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.product-zoom-lens {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    z-index: 1;
    box-sizing: border-box;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(28, 27, 26, 0.28);
    background: rgba(255, 255, 255, 0.22);
    pointer-events: none;
    will-change: transform;
}
.product-zoom-pane {
    position: absolute;
    inset-inline-start: calc(100% + 18px);
    top: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    z-index: 8;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background-color: #faf8f4;
    background-image: var(--zoom-image);
    background-repeat: no-repeat;
    background-size: calc(var(--zoom-level, 2.4) * 100%);
    background-position: calc(var(--zx, 0.5) * 100%) calc(var(--zy, 0.5) * 100%);
    box-shadow: var(--shadow-lg);
    pointer-events: none;
}
.product-zoom-pane[hidden],
.product-zoom-lens[hidden] { display: none; }
@media (max-width: 991.98px) {
    .product-zoom-pane,
    .product-zoom-lens { display: none !important; }
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    padding: 12px 2px 2px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.product-thumbnail {
    width: 78px;
    height: 68px;
    flex: 0 0 auto;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.product-thumbnail .pi,
.product-thumbnail picture {
    display: block;
    width: 100%;
    height: 100%;
}
.product-thumbnail.is-active {
    border-color: var(--ink);
    box-shadow: 0 0 0 1px var(--ink);
}
.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-detail-wishlist {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 600;
}
.product-detail-wishlist:hover,
.product-detail-wishlist.is-active {
    color: #a64734;
    border-bottom-color: currentColor;
}
.product-lightbox[hidden] { display: none; }
.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
}
.lightbox-open { overflow: hidden; }
.product-lightbox-toolbar {
    position: relative;
    z-index: 5;
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px 10px;
    color: rgba(255, 255, 255, .9);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: 0.06em;
}
.product-lightbox-tools { display: flex; gap: 4px; }
.product-lightbox-toolbar button,
.product-lightbox-nav {
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #fff;
    min-width: 44px;
    min-height: 44px;
}
.product-lightbox-toolbar button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
}
.product-lightbox-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
}
.product-lightbox-frame {
    position: absolute;
    inset: 4px 72px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-lightbox-frame img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    cursor: zoom-in;
    transform-origin: center center;
    transition: transform 0.18s ease-out;
}
.product-lightbox.is-zoomed .product-lightbox-frame img {
    cursor: zoom-out;
}
.product-lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 56px;
    height: 56px;
    transform: translateY(-50%);
    font-size: 2.1rem;
    border-radius: 0;
    opacity: 0.92;
}
.product-lightbox-prev { inset-inline-start: 8px; }
.product-lightbox-next { inset-inline-end: 8px; }
.product-lightbox-toolbar button:hover,
.product-lightbox-nav:hover {
    background: rgba(255, 255, 255, .12);
}
.product-lightbox button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.product-lightbox-thumbs {
    position: relative;
    z-index: 5;
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px 24px;
    overflow-x: auto;
}
.product-lightbox-thumb {
    width: 68px;
    height: 68px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 2px;
    background: #111;
    overflow: hidden;
    flex: 0 0 auto;
}
.product-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-lightbox-thumb.is-active {
    border-color: #fff;
}

@media (max-width: 767.98px) {
    .product-stage { aspect-ratio: 1 / 1; }
    .product-thumbnail { width: 66px; height: 58px; }
    .product-lightbox-frame { inset: 4px 48px 8px; }
    .product-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }
    .product-lightbox-prev { inset-inline-start: 2px; }
    .product-lightbox-next { inset-inline-end: 2px; }
    .product-lightbox-thumb { width: 52px; height: 52px; }
}

/* Reviews */
.product-rating-empty { font-size: 0.85rem; }
.review-form-panel {
    background: var(--gray-light);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}
.review-form-panel.d-none { display: none; }
.star-rating-input { display: inline-flex; gap: 4px; }
.star-rating-btn {
    background: none;
    border: 0;
    padding: 4px;
    font-size: 1.4rem;
    color: var(--gold);
    cursor: pointer;
    line-height: 1;
}
.star-rating-btn .bi-star-fill { display: none; }
.star-rating-btn.is-active .bi-star { display: none; }
.star-rating-btn.is-active .bi-star-fill { display: inline; }
.review-item {
    border-bottom: 1px solid var(--stroke, #e8e2d8);
    padding: 20px 0;
}
.review-item:first-child { padding-top: 0; }
.badge-verified-buyer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #2c6b41;
    background: #dcefe1;
    padding: 2px 10px;
    border-radius: 50px;
    margin-inline-start: 8px;
}
.review-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.review-photos a { display: block; }
.review-photos .pi {
    width: 72px;
    height: 72px;
    border-radius: 10px;
}
.review-photos img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
}

/* Order status timeline (Admin order details + public tracking page) */
.order-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-inline-start: 2px solid var(--gray-light);
}
.order-timeline li {
    position: relative;
    padding-block: 0 18px;
    padding-inline: 20px 0;
}
.order-timeline li::before {
    content: "";
    position: absolute;
    inset-inline-start: -6px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}
.order-timeline li:last-child { padding-bottom: 0; }

/* WhatsApp float response-time tooltip */
.whatsapp-float-tooltip {
    position: absolute;
    inset-inline-end: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--ink);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.whatsapp-float:hover .whatsapp-float-tooltip { opacity: 1; }
@media (max-width: 767.98px) {
    .whatsapp-float-tooltip { display: none; }
}

/* ==========================================================================
   Typography: UI layer
   Buttons, navigation and product cards share the body face at weight 500 so
   interface text stays optically lighter than the display headings.
   ========================================================================== */
.btn,
.nav-link,
.navbar-brand,
.filter-link,
.product-card,
.product-name,
.price-current,
.price-original,
.badge-sale,
.badge-new,
.badge-soldout,
.form-label,
.form-control,
.form-select,
.input-group-text,
.dropdown-menu,
.table {
    font-family: var(--font-body);
}

.btn,
.btn-hero,
.nav-desktop .nav-link,
.filter-link,
.product-name,
.product-buy-cart,
.product-buy-link,
.form-label {
    font-weight: 500;
}

.btn,
.btn-hero,
.product-buy-cart {
    letter-spacing: 0;
}

/* Prices read as data: tabular figures keep columns of prices aligned. */
.price-current,
.price-original,
.detail-price .price-current,
.cart-total,
.summary-row {
    font-feature-settings: 'tnum' 1;
    letter-spacing: -0.01em;
}

/* Uppercase micro-labels keep their own wider tracking, set at each rule. */
.eyebrow,
.top-bar,
.breadcrumb {
    font-family: var(--font-body);
}

/* ========== RTL (Stage 4) ==========
   Prefer logical properties above. This block is only for:
   - Arabic typeface swap
   - transform / shadow mirrors that logical props cannot flip
   - icon mirroring
*/
html[dir="rtl"] {
    --font-heading: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', 'Segoe UI', Tahoma, sans-serif;
    --font-body: 'IBM Plex Sans Arabic', 'Inter', 'Segoe UI', Tahoma, sans-serif;
}

/* Arabic UI labels: drop Latin micro-tracking / forced uppercase */
html[dir="rtl"] .brand-tagline,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .shop-sort-label,
html[dir="rtl"] .shop-filters-title,
html[dir="rtl"] .shop-drawer-label,
html[dir="rtl"] .mobile-drawer-label {
    letter-spacing: 0;
    text-transform: none;
}

/* Isolate prices / phones / SKUs so digits stay LTR inside Arabic copy */
[dir="rtl"] .price-current,
[dir="rtl"] .price-original,
[dir="rtl"] .detail-price,
[dir="rtl"] .summary-row span[dir="ltr"],
[dir="rtl"] .cart-table td span[dir="ltr"],
[dir="rtl"] [dir="ltr"] {
    unicode-bidi: isolate;
}

/* Filters drawer opens from inline-start; mirror slide + shadow in RTL */
[dir="rtl"] .shop-filters {
    transform: translateX(100%);
    box-shadow: none;
}
[dir="rtl"] .shop-filters.is-open {
    transform: none;
    box-shadow: -8px 0 28px rgba(33, 31, 28, 0.18);
}

/* Mobile drawer sits on inline-end; mirror entrance motion */
[dir="rtl"] .mobile-drawer-panel {
    animation-name: drawerInRtl;
}
@keyframes drawerInRtl {
    from { transform: translateX(-18px); opacity: 0.6; }
    to { transform: translateX(0); opacity: 1; }
}

/* Directional icons that should flip */
[dir="rtl"] .search-btn .bi-arrow-right,
[dir="rtl"] .scroll-row-nav--prev .bi,
[dir="rtl"] .scroll-row-nav--next .bi,
[dir="rtl"] .product-stage-prev .bi,
[dir="rtl"] .product-stage-next .bi,
[dir="rtl"] .product-lightbox-prev .bi,
[dir="rtl"] .product-lightbox-next .bi,
[dir="rtl"] .shop-pager-btn .bi,
[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
    transform: scaleX(-1);
}

/* Dropdown caret / chevrons that read as “forward” */
[dir="rtl"] .nav-desktop .dropdown-toggle::after {
    margin-inline-start: 0;
    margin-inline-end: 0.255em;
}

/* Checkout radio spacing already uses logical margin after conversion;
   keep payment logos pushed to the inline-end */
[dir="rtl"] .payment-logo {
    margin-inline-start: auto;
    margin-inline-end: 0;
}

