/* ============================================================
   RUGS & LINEN BASE THEME (randl-1.0.0) — randl.css
   All theme CSS: design system, components, layout utilities,
   page-specific styles, and supplemental styles.

   Warm mahogany palette — elegant, Hand Knotted, traditional.
   ============================================================ */

/* --- CSS Custom Properties (static defaults) --- */
:root {
    /* --- Warm mahogany/terracotta palette --- */
    --sw-color-primary: #6B3A2A;
    --sw-color-primary-hover: #562E21;
    --sw-color-bg: #FDFAF6;
    --sw-color-surface: #F5EDE0;
    --sw-color-text-main: #2C1810;
    --sw-color-text-muted: #7A6A5A;
    --sw-color-error: #c0392b;
    --sw-color-success: #27ae60;
    --sw-max-w: 1280px;
    --sw-border: #E2D5C5;
    --sw-radius-md: 6px;
    --sw-radius-sm: 4px;
    --sw-shadow-sm: 0 1px 3px rgba(44,24,16,0.06);
    --sw-shadow-md: 0 4px 16px rgba(44,24,16,0.08);
    --sw-shadow-lg: 0 8px 32px rgba(44,24,16,0.10);
    --rl-gold: #C9A84C;

    /* ── Legacy aliases ── */
    --border: var(--sw-border);
    --primary: var(--sw-color-primary);
    --surface: var(--sw-color-surface);
    --text: var(--sw-color-text-main);
    --text-light: var(--sw-color-text-muted);
    --danger: var(--sw-color-error);
    --success: var(--sw-color-success);
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }
#main-content { padding-bottom: 3rem; }
body {
    margin: 0;
    font-family: 'Lato', system-ui, sans-serif;
    background: var(--sw-color-bg, #FDFAF6);
    color: var(--sw-color-text-main, #2C1810);
    font-size: 16px;
    line-height: 1.65;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.container {
    max-width: 1280px;
    margin-left: auto; margin-right: auto;
    padding-left: 1.5rem; padding-right: 1.5rem;
    width: 100%;
}

/* ============================================================
   SITE HEADER — 2-row layout
   Row 1: Logo | Search bar | Icons
   Row 2: Navigation
   ============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 200;
    background: var(--sw-color-bg);
    border-bottom: 1px solid var(--sw-border);
    box-shadow: 0 2px 12px rgba(44,24,16,0.07);
}

/* Row 1 */
.header-main { padding: 0.875rem 0; }
.header-main-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; gap: 1.5rem;
}
.site-logo {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700; font-size: 1.375rem;
    color: var(--sw-color-primary); text-decoration: none;
    white-space: nowrap; letter-spacing: -0.01em;
    line-height: 1.1;
}
.site-logo img { height: 48px; width: auto; }
.site-logo-sub {
    font-family: 'Lato', sans-serif;
    font-size: 0.6rem; font-weight: 400;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--sw-color-text-muted); display: block;
}

/* Search bar */
.header-search-bar {
    display: flex; align-items: center;
    border: 1.5px solid var(--sw-border);
    border-radius: 6px; overflow: hidden;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search-bar:focus-within {
    border-color: var(--sw-color-primary);
    box-shadow: 0 0 0 3px rgba(107,58,42,0.1);
}
.header-search-input {
    flex: 1; border: none; background: transparent;
    padding: 0.6875rem 1rem; font-size: 0.875rem;
    font-family: 'Lato', sans-serif; color: var(--sw-color-text-main); min-width: 0;
}
.header-search-input:focus { outline: none; }
.header-search-input::placeholder { color: #baa898; }
.header-search-submit {
    background: var(--sw-color-primary); color: #fff;
    border: none; padding: 0.6875rem 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s; flex-shrink: 0;
}
.header-search-submit:hover { background: var(--sw-color-primary-hover); }

/* Icon buttons */
.header-icons { display: flex; align-items: center; gap: 0.25rem; }
.header-icon-btn {
    display: flex; align-items: center; justify-content: center;
    padding: 0.5rem; color: var(--sw-color-text-main); text-decoration: none;
    border-radius: 4px; transition: color 0.15s, background 0.15s; position: relative;
}
.header-icon-btn:hover { color: var(--sw-color-primary); background: var(--sw-color-surface); }
.cart-count {
    position: absolute; top: 2px; right: 2px;
    min-width: 16px; height: 16px;
    background: var(--sw-color-primary); color: #fff; border-radius: 9999px;
    font-size: 0.65rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* Row 2: Navigation */
.header-nav-bar { border-top: 1px solid var(--sw-border); }
.header-nav-inner {
    display: flex; align-items: center;
    max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
    overflow: visible;
}
.desktop-nav { display: flex; align-items: center; }
.desktop-nav > a,
.desktop-nav > .nav-item > a {
    display: block; color: var(--sw-color-text-main);
    font-family: 'Lato', sans-serif;
    font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 0.75rem 1rem;
    text-decoration: none; white-space: nowrap;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}
.desktop-nav > a:hover { color: var(--sw-color-primary); border-bottom-color: var(--sw-color-primary); background: none; }
.desktop-nav > .nav-item:hover > a { color: var(--sw-color-primary); border-bottom-color: var(--sw-color-primary); background: none; }

/* Nav Dropdowns */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown {
    position: absolute; top: calc(100% + 6px); left: 0;
    background: #fff; border: 1px solid var(--sw-border); border-radius: 6px;
    padding: 0.375rem; min-width: 200px;
    box-shadow: 0 8px 24px rgba(44,24,16,0.12);
    opacity: 0; transform: translateY(-6px); pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease; z-index: 300;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.active .nav-dropdown { opacity: 1; transform: translateY(0); pointer-events: all; }
.nav-dropdown a {
    display: block; padding: 0.5rem 0.875rem; font-size: 0.875rem; font-weight: 400;
    color: var(--sw-color-text-main); border-radius: 4px;
    transition: background 0.12s; text-decoration: none; background: none !important;
}
.nav-dropdown a:hover { background: var(--sw-color-surface) !important; color: var(--sw-color-primary); }
.dropdown-arrow { font-size: 0.65em; margin-left: 0.25rem; opacity: 0.45; display: inline-block; transition: transform 0.18s; }
.nav-item:hover .dropdown-arrow,
.nav-item.active .dropdown-arrow { transform: rotate(180deg); }

/* Mobile toggle */
.mobile-nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    color: var(--sw-color-text-main); padding: 0.5rem; border-radius: 4px;
    align-items: center; justify-content: center;
}

/* Mobile Nav Drawer */
.nav-drawer {
    position: fixed; top: 0; right: -100%; width: min(320px, 90vw);
    height: 100vh; z-index: 500; background: var(--sw-color-bg); display: flex;
    flex-direction: column; overflow-y: auto;
    border-left: 1px solid var(--sw-border); box-shadow: -4px 0 24px rgba(44,24,16,0.1);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-drawer.open { right: 0; }
.nav-overlay {
    position: fixed; inset: 0; background: rgba(44,24,16,0.4);
    opacity: 0; pointer-events: none; z-index: 499; transition: opacity 0.3s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: all; }
.nav-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--sw-border); flex-shrink: 0;
}
.nav-drawer-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700; font-size: 1.125rem; color: var(--sw-color-primary);
    text-decoration: none; letter-spacing: -0.01em;
}
.nav-drawer-close { background: none; border: none; cursor: pointer; color: var(--sw-color-text-muted); padding: 0.375rem; border-radius: 4px; display: flex; align-items: center; }
.nav-drawer-nav { padding: 1rem 0.75rem; display: flex; flex-direction: column; gap: 0.125rem; flex: 1; }
.nav-drawer-nav a, .nav-drawer-section a {
    display: block; padding: 0.625rem 0.75rem; color: var(--sw-color-text-main);
    text-decoration: none; border-radius: 4px; font-weight: 700; font-size: 0.875rem;
    letter-spacing: 0.04em; text-transform: uppercase; transition: background 0.15s;
}
.nav-drawer-nav a:hover, .nav-drawer-section a:hover { background: var(--sw-color-surface); color: var(--sw-color-primary); }
.nav-drawer-section { border-top: 1px solid var(--sw-border); padding: 0.75rem; display: flex; flex-direction: column; gap: 0.125rem; flex-shrink: 0; }

/* --- Footer --- */
.site-footer {
    background: #2C1810;
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 1.75rem;
}
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:2.5rem; margin-bottom:3rem; }
.footer-brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700; font-size: 1.25rem; margin-bottom: 0.75rem;
    color: #fff; letter-spacing: -0.01em;
}
.footer-description { color: rgba(255,255,255,0.6); font-size: 0.875rem; line-height: 1.7; }
.footer-col-title {
    font-family: 'Lato', sans-serif;
    font-weight: 700; font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 0.12em; color: rgba(255,255,255,0.4); margin-bottom: 1rem;
}
.footer-links { display:flex; flex-direction:column; gap:0.5rem; }
.footer-links a { color:rgba(255,255,255,0.65); text-decoration:none; font-size:0.875rem; transition:color 0.15s; }
.footer-links a:hover { color:#fff; }
.footer-contact { display:flex; flex-direction:column; gap:0.5rem; margin:0.875rem 0; }
.footer-contact a, .footer-contact span { display:flex; align-items:center; gap:0.5rem; color:rgba(255,255,255,0.65); font-size:0.875rem; text-decoration:none; }
.footer-contact a:hover { color:#fff; }
.footer-social { display:flex; gap:0.5rem; margin-top:1.25rem; }
.footer-social-link { display:flex; align-items:center; justify-content:center; width:2.125rem; height:2.125rem; border-radius:4px; color:rgba(255,255,255,0.5); text-decoration:none; background:rgba(255,255,255,0.08); transition:background 0.18s,color 0.18s; }
.footer-social-link:hover { background:var(--sw-color-primary); color:#fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 0.5rem;
    font-size: 0.8125rem; color: rgba(255,255,255,0.35);
}

/* --- Announcement Bar --- */
.announcement-bar {
    background: var(--sw-color-primary); color: white;
    padding: 0.625rem 1.5rem;
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.03em;
}
.announcement-bar a { color: white; text-decoration: underline; text-underline-offset: 2px; }
.announcement-close {
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,0.6); padding: 0.25rem;
    display: flex; align-items: center; border-radius: 4px;
    transition: color 0.15s;
}
.announcement-close:hover { color: white; }

/* --- Skip link --- */
.skip-to-content {
    position: absolute; top: -100%; left: 1rem;
    background: #2C1810; color: white; padding: 0.5rem 1rem;
    border-radius: 0 0 4px 4px; text-decoration: none; font-weight: 600; z-index: 9999;
}
.skip-to-content:focus { top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-nav-bar { display: none; }
    .desktop-nav { display: none !important; }
    .mobile-nav-toggle { display: flex !important; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
    .header-search-bar { display: none; }
    .header-main-inner { grid-template-columns: auto auto; }
}

/* ============================================================
   SW COMPONENTS — inline fallback
   ============================================================ */
.sw-btn { display:inline-flex; align-items:center; justify-content:center; padding:0.625rem 1.375rem; border-radius:4px; font-weight:700; font-size:0.875rem; letter-spacing:0.04em; text-transform:uppercase; cursor:pointer; border:1.5px solid transparent; transition:all 0.2s ease; gap:0.5rem; font-family:'Lato',sans-serif; text-decoration:none; color:#2C1810; }
.sw-btn-primary { background:var(--sw-color-primary,#6B3A2A); color:#fff; border-color:var(--sw-color-primary,#6B3A2A); box-shadow:0 2px 8px rgba(107,58,42,0.2); }
.sw-btn-primary:hover { background:var(--sw-color-primary-hover,#562E21); color:#fff; transform:translateY(-1px); box-shadow:0 6px 16px rgba(107,58,42,0.3); }
.sw-btn-primary:active { transform:translateY(0); }
.sw-btn-secondary { background:#fff; color:#2C1810; border-color:var(--sw-border,#E2D5C5); box-shadow:0 1px 2px rgba(44,24,16,0.05); }
.sw-btn-secondary:hover { background:var(--sw-color-surface); border-color:#c5b5a5; color:#2C1810; }
.sw-btn-lg { padding:0.875rem 2rem; font-size:0.9375rem; }
.sw-btn-sm { padding:0.375rem 0.875rem; font-size:0.75rem; }
.sw-btn-ghost { background:none; border:none; cursor:pointer; color:var(--sw-color-text-muted); padding:0.375rem 0.75rem; font-family:'Lato',sans-serif; }
.sw-btn-ghost:hover { background:var(--sw-color-surface); color:#2C1810; }
.sw-btn:focus-visible { outline:2px solid var(--sw-color-primary); outline-offset:2px; }

/* Forms */
.sw-form-group { margin-bottom:1.125rem; }
.sw-label { display:block; font-size:0.8125rem; font-weight:700; margin-bottom:0.4rem; color:var(--sw-color-text-main); letter-spacing:0.02em; }
.sw-input { width:100%; padding:0.6875rem 0.875rem; border:1.5px solid var(--sw-border); border-radius:4px; font-family:'Lato',sans-serif; font-size:0.9375rem; background:#fff; transition:border-color 0.18s, box-shadow 0.18s; color:var(--sw-color-text-main); box-sizing:border-box; }
.sw-input:focus { outline:none; border-color:var(--sw-color-primary); box-shadow:0 0 0 3px rgba(107,58,42,0.1); }
.sw-input::placeholder { color:#baa898; }
textarea.sw-input { resize:vertical; }

/* Cards */
.sw-card { background:#fff; border-radius:6px; padding:1.5rem; border:1px solid var(--sw-border); box-shadow:0 1px 4px rgba(44,24,16,0.06); }
.sw-card-bordered { background:#fff; border-radius:6px; border:1px solid var(--sw-border); overflow:hidden; box-shadow:0 1px 4px rgba(44,24,16,0.06); }
.sw-card-sticky { position:sticky; top:5rem; }
.sw-card-interactive { transition:transform 0.2s ease, box-shadow 0.2s ease; }
.sw-card-interactive:hover { transform:translateY(-4px); box-shadow:0 12px 28px rgba(44,24,16,0.1); }

/* Alerts */
.sw-alert { padding:0.875rem 1rem; border-radius:4px; margin-bottom:1rem; font-size:0.9rem; display:flex; align-items:flex-start; gap:0.5rem; }
.sw-alert-error { background:rgba(192,57,43,0.08); color:#c0392b; border:1px solid rgba(192,57,43,0.2); }
.sw-alert-success { background:rgba(39,174,96,0.08); color:#27ae60; border:1px solid rgba(39,174,96,0.2); }
.sw-alert-info { background:rgba(44,24,16,0.06); color:#2C1810; border:1px solid rgba(44,24,16,0.15); }

/* Badges */
.sw-badge { font-size:0.75rem; padding:0.2rem 0.6rem; background:var(--sw-color-surface); border-radius:3px; color:var(--sw-color-text-muted); border:1px solid var(--sw-border); display:inline-flex; align-items:center; white-space:nowrap; text-decoration:none; }
.sw-badge:hover { color:var(--sw-color-text-main); border-color:var(--sw-color-text-main); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
a { color:var(--sw-color-text-main); text-decoration:none; }
img { max-width:100%; height:auto; }
.hidden { display:none !important; }
.inline { display:inline; }
.block { display:block; }
.w-full { width:100%; }
.uppercase { text-transform:uppercase; }
.capitalize { text-transform:capitalize; }
.tracking { letter-spacing:0.05em; }
.lh-relaxed { line-height:1.8; }
.ml-auto { margin-left:auto; }

.container-sm { max-width:440px; margin-left:auto; margin-right:auto; padding:0 1.5rem; }
.container-md { max-width:700px; margin-left:auto; margin-right:auto; padding:0 1.5rem; }
.container-lg { max-width:960px; margin-left:auto; margin-right:auto; padding:0 1.5rem; }
.section { padding-top:2.5rem; padding-bottom:3.5rem; }
.section-full-width { padding-left:2rem; padding-right:2rem; }

.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.grid-product { display:grid; grid-template-columns:1fr 1fr; gap:3.5rem; align-items:start; }
.grid-cart { display:grid; grid-template-columns:1fr 340px; gap:2rem; align-items:start; }
.grid-checkout { display:grid; grid-template-columns:1fr 360px; gap:2.5rem; align-items:start; }
.grid-cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:2rem; }

.flex { display:flex; }
.flex-col { flex-direction:column; }
.flex-wrap { flex-wrap:wrap; }
.flex-1 { flex:1; min-width:0; }
.items-center { align-items:center; }
.items-start { align-items:flex-start; }
.justify-between { justify-content:space-between; }
.justify-center { justify-content:center; }
.gap-xs { gap:0.25rem; } .gap-sm { gap:0.5rem; } .gap-md { gap:1rem; } .gap-lg { gap:1.5rem; } .gap-xl { gap:2rem; }

.text-center { text-align:center; } .text-right { text-align:right; }
.text-light { color:var(--sw-color-text-muted); } .text-primary { color:var(--sw-color-text-main); }
.text-danger { color:var(--sw-color-error); } .text-success { color:var(--sw-color-success); }

.fw-500 { font-weight:500; } .fw-600 { font-weight:600; } .fw-700 { font-weight:700; } .fw-800 { font-weight:800; }
.fs-xs { font-size:0.75rem; } .fs-sm { font-size:0.8rem; } .fs-body { font-size:0.875rem; }
.fs-md { font-size:0.9rem; } .fs-lg { font-size:1.125rem; } .fs-xl { font-size:1.25rem; }
.fs-2xl { font-size:1.5rem; } .fs-3xl { font-size:1.875rem; } .fs-4xl { font-size:2.25rem; }
.fs-hero { font-size:clamp(2rem, 5vw, 3.5rem); }

.mt-xs { margin-top:0.25rem; } .mt-sm { margin-top:0.5rem; } .mt-md { margin-top:1rem; }
.mt-lg { margin-top:1.5rem; } .mt-xl { margin-top:2rem; }
.mb-sm { margin-bottom:0.5rem; } .mb-md { margin-bottom:1rem; }
.mb-lg { margin-bottom:1.5rem; } .mb-xl { margin-bottom:2rem; }
.pt-md { padding-top:1rem; } .pt-lg { padding-top:1.5rem; } .pt-xl { padding-top:2rem; }
.pb-md { padding-bottom:1rem; }
.py-md { padding:1rem 0; } .py-lg { padding:1.5rem 0; } .py-xl { padding:2rem 0; }
.p-md { padding:1rem; } .p-lg { padding:1.5rem; } .p-xl { padding:2rem; }

/* ============================================================
   BREADCRUMB & EMPTY STATE
   ============================================================ */
.breadcrumb { display:flex; align-items:center; gap:0.375rem; font-size:0.8125rem; color:var(--sw-color-text-muted); margin-bottom:1.75rem; flex-wrap:wrap; }
.breadcrumb a { color:var(--sw-color-text-muted); transition:color 0.15s; }
.breadcrumb a:hover { color:var(--sw-color-primary); }
.breadcrumb-sep { color:var(--sw-border); user-select:none; }
.empty-state { text-align:center; padding:5rem 0; color:var(--sw-color-text-muted); }
.empty-state-icon { font-size:3rem; margin-bottom:1rem; display:block; }
.img-placeholder { background:var(--sw-color-surface); display:flex; align-items:center; justify-content:center; aspect-ratio:1; color:var(--sw-border); border-radius:4px; }
.img-placeholder-lg { min-height:300px; }

/* ============================================================
   PRODUCT GRID & CARDS
   ============================================================ */
.product-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:1.5rem; }
.product-card { display:block; text-decoration:none; color:var(--sw-color-text-main); border-radius:4px; overflow:hidden; transition:transform 0.25s ease, box-shadow 0.25s ease; background:#fff; border:1px solid var(--sw-border); box-shadow:0 1px 3px rgba(44,24,16,0.05); }
.product-card:hover { transform:translateY(-3px); box-shadow:0 10px 28px rgba(44,24,16,0.12); }
.product-card-media { position:relative; overflow:hidden; background:var(--sw-color-surface); aspect-ratio:1; }
.product-card-media img { width:100%; height:100%; object-fit:cover; display:block; transition:transform 0.5s ease; }
.product-card:hover .product-card-media img { transform:scale(1.05); }
.product-card-quick-add {
    position:absolute; bottom:0; left:0; right:0;
    background:rgba(44,24,16,0.85);
    color:#fff; font-size:0.8rem; font-weight:700;
    text-align:center; padding:0.75rem 1rem;
    opacity:0; transform:translateY(6px);
    transition:opacity 0.22s ease, transform 0.22s ease;
    letter-spacing:0.06em; text-transform:uppercase;
}
.product-card:hover .product-card-quick-add { opacity:1; transform:translateY(0); }
.product-card-body { padding:1rem 1rem 1.25rem; }
.product-card-title { font-family:'Playfair Display',Georgia,serif; font-size:0.9375rem; font-weight:600; color:var(--sw-color-text-main); margin-bottom:0.4rem; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.product-card-pricing { display:flex; align-items:baseline; gap:0.375rem; flex-wrap:wrap; }
.product-card-price { font-size:1rem; font-weight:700; color:var(--sw-color-primary); }
.product-card-compare { font-size:0.8125rem; color:#baa898; text-decoration:line-through; }
.out-of-stock { font-size:0.775rem; font-weight:700; color:var(--sw-color-error); }
.product-badge { position:absolute; top:0.75rem; left:0.75rem; font-size:0.68rem; font-weight:700; padding:0.25rem 0.65rem; border-radius:3px; text-transform:uppercase; letter-spacing:0.06em; z-index:1; }
.product-badge-sale { background:var(--sw-color-primary); color:#fff; }
.product-badge-oos { background:#7A6A5A; color:#fff; top:auto; bottom:0.75rem; }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:0.75rem; margin-bottom:1.25rem; }
.search-layout { display:flex; gap:2.5rem; align-items:flex-start; }
.search-sidebar { width:220px; flex-shrink:0; }
.search-sidebar-inner { position:sticky; top:80px; }
.facet-group { margin-bottom:1.75rem; }
.facet-title { font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; color:var(--sw-color-text-main); margin-bottom:0.625rem; display:flex; align-items:center; justify-content:space-between; cursor:pointer; }
.facet-link { display:flex; align-items:center; justify-content:space-between; padding:0.35rem 0.5rem; border-radius:4px; text-decoration:none; color:var(--sw-color-text-main); font-size:0.875rem; transition:background 0.15s; }
.facet-link:hover { background:var(--sw-color-surface); }
.facet-count { font-size:0.75rem; color:var(--sw-color-text-muted); background:var(--sw-color-surface); padding:0.125rem 0.375rem; border-radius:10px; }
.facet-arrow { font-size:0.7em; }
.facet-content { display:none; flex-direction:column; gap:0.25rem; }
.facet-content.open { display:flex; }
.filter-pill { display:inline-flex; align-items:center; gap:0.375rem; padding:0.3rem 0.7rem; border-radius:3px; font-size:0.8rem; background:var(--sw-color-primary); color:#fff; text-decoration:none; font-weight:700; }
.filter-pill:hover { opacity:0.85; }
.filter-pill-x { font-size:0.9rem; }
.sort-select-sidebar { width:100%; padding:0.4rem 0.5rem; font-size:0.85rem; border:1px solid var(--sw-border); border-radius:4px; background:#fff; font-family:'Lato',sans-serif; }
.sidebar-filter-form, .sidebar-price-form { width:100%; }
.sidebar-price-row { display:flex; align-items:center; gap:0.35rem; }
.price-input-sidebar { flex:1; min-width:0; padding:0.4rem 0.5rem; font-size:0.85rem; }
.mobile-filter-toggle-container { display:none; width:100%; margin-bottom:1rem; }
.mobile-filter-toggle { font-size:0.875rem; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-header { max-width:600px; margin:0 auto 3rem; text-align:center; }
.contact-heading { font-family:'Playfair Display',Georgia,serif; font-size:clamp(1.75rem,4vw,2.5rem); font-weight:700; line-height:1.2; margin:0 0 0.75rem; }
.contact-subtext { font-size:1.0625rem; color:var(--sw-color-text-muted); line-height:1.65; margin:0; }
.contact-grid { display:grid; grid-template-columns:1fr 380px; gap:2rem; align-items:start; }
.contact-form-card { padding:2rem; }
.contact-name-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-bottom:1rem; }
.contact-name-row .sw-form-group { margin-bottom:0; }
.contact-required { color:var(--sw-color-error); }
.contact-textarea { resize:vertical; min-height:160px; }
.contact-submit-btn { gap:0.5rem; margin-top:0.25rem; }
.contact-info-col { display:flex; flex-direction:column; gap:0; }
.contact-info-card { padding:2rem; }
.contact-info-list { display:flex; flex-direction:column; gap:1.5rem; }
.contact-info-item { display:flex; gap:1rem; align-items:flex-start; }
.contact-info-icon { width:40px; height:40px; border-radius:4px; background:var(--sw-color-surface); border:1px solid var(--sw-border); display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--sw-color-text-muted); }
.contact-info-label { font-size:0.65rem; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:var(--sw-color-text-muted); margin-bottom:0.25rem; }
.contact-info-value { font-size:0.9rem; font-weight:400; color:var(--sw-color-text-main); text-decoration:none; }
.contact-info-value:hover { color:var(--sw-color-primary); }
.contact-hours-card { padding:2rem; margin-top:1.5rem; }
.contact-hours-body { font-size:0.9rem; line-height:1.8; }
.contact-hours-body p { margin-bottom:0.25rem; }

/* ============================================================
   PRODUCT PAGE
   ============================================================ */
.product-main-image { width:100%; border-radius:4px; aspect-ratio:1; object-fit:cover; cursor:zoom-in; }
.main-image-container { border-radius:4px; overflow:hidden; cursor:zoom-in; background:var(--sw-color-surface); box-shadow:0 2px 12px rgba(44,24,16,0.08); }
.product-thumbnails { display:flex; gap:0.5rem; margin-top:0.875rem; overflow-x:auto; padding-bottom:0.25rem; }
.product-thumbnail { width:76px; height:76px; flex-shrink:0; object-fit:cover; border-radius:4px; cursor:pointer; border:2px solid transparent; transition:border-color 0.2s; background:var(--sw-color-surface); }
.product-thumbnail.active, .product-thumbnail:hover { border-color:var(--sw-color-primary); }
.product-price { font-family:'Playfair Display',Georgia,serif; font-size:1.875rem; font-weight:700; color:var(--sw-color-primary); margin-bottom:1.25rem; display:flex; align-items:baseline; gap:0.5rem; flex-wrap:wrap; }
.selling-price { color:var(--sw-color-primary); }
.compare-price { text-decoration:line-through; color:#baa898; font-weight:400; font-size:0.6em; font-family:'Lato',sans-serif; }
.product-tabs { display:flex; gap:0; border-bottom:1px solid var(--sw-border); margin-top:2.5rem; }
.product-tab-btn { background:none; border:none; border-bottom:2px solid transparent; padding:0.875rem 1.25rem; font-size:0.8rem; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; color:var(--sw-color-text-muted); cursor:pointer; margin-bottom:-1px; transition:color 0.15s, border-color 0.15s; font-family:'Lato',sans-serif; }
.product-tab-btn.active { color:var(--sw-color-primary); border-bottom-color:var(--sw-color-primary); }
.product-tab-content { display:none; padding-top:1.75rem; }
.product-tab-content.active { display:block; }
.product-description { color:var(--sw-color-text-main); line-height:1.75; font-size:0.9375rem; }
.product-tags { margin-top:1.5rem; display:flex; gap:0.5rem; flex-wrap:wrap; }
.attr-table { width:100%; border-collapse:collapse; font-size:0.875rem; }
.attr-table td { padding:0.625rem 0.75rem; border-bottom:1px solid var(--sw-border); }
.attr-table td:first-child { font-weight:700; color:var(--sw-color-text-muted); width:38%; }
.sticky-atc { position:fixed; bottom:0; left:0; right:0; background:rgba(253,250,246,0.97); backdrop-filter:blur(12px); border-top:1px solid var(--sw-border); z-index:150; padding:0.875rem 0; transform:translateY(100%); transition:transform 0.3s cubic-bezier(0.4,0,0.2,1); }
.sticky-atc.visible { transform:translateY(0); }
.sticky-atc-inner { display:flex; align-items:center; gap:1.5rem; flex-wrap:wrap; }
.sticky-atc-info { flex:1; min-width:0; }
.sticky-atc-name { font-weight:600; font-size:0.9375rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sticky-atc-price { font-size:0.875rem; color:var(--sw-color-text-muted); margin-top:0.125rem; }
.qty-stepper { display:inline-flex; align-items:center; border:1.5px solid var(--sw-border); border-radius:4px; overflow:hidden; background:#fff; }
.qty-stepper-btn { background:none; border:none; cursor:pointer; width:40px; height:40px; display:flex; align-items:center; justify-content:center; font-size:1.1rem; color:var(--sw-color-text-muted); transition:background 0.15s, color 0.15s; flex-shrink:0; font-family:'Lato',sans-serif; }
.qty-stepper-btn:hover { background:var(--sw-color-surface); color:var(--sw-color-text-main); }
.qty-stepper-input { width:52px; text-align:center; border:none; border-left:1.5px solid var(--sw-border); border-right:1.5px solid var(--sw-border); font-size:0.9375rem; font-weight:700; font-family:'Lato',sans-serif; color:var(--sw-color-text-main); padding:0; height:40px; background:#fff; -moz-appearance:textfield; }
.qty-stepper-input::-webkit-inner-spin-button,
.qty-stepper-input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.qty-stepper-input:focus { outline:none; }
.qty-input { width:72px; text-align:center; }
.qty-input-sm { width:100px; }
.product-trust { display:flex; flex-wrap:wrap; gap:0.625rem; margin-top:1.5rem; padding-top:1.25rem; border-top:1px solid var(--sw-border); }
.product-trust-item { display:flex; align-items:center; gap:0.425rem; font-size:0.8rem; color:var(--sw-color-text-muted); font-weight:700; letter-spacing:0.02em; }
.product-trust-icon { color:var(--sw-color-success); flex-shrink:0; }
.lightbox-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.9); z-index:9999; align-items:center; justify-content:center; cursor:zoom-out; }
.lightbox-img { max-width:92%; max-height:92%; object-fit:contain; border-radius:4px; }
.lightbox-close-btn { position:absolute; top:1.25rem; right:1.25rem; background:rgba(255,255,255,0.1); border:none; color:#fff; font-size:1.5rem; cursor:pointer; padding:0.5rem 0.75rem; border-radius:4px; transition:background 0.2s; line-height:1; }
.lightbox-close-btn:hover { background:rgba(255,255,255,0.2); }

/* ============================================================
   CART / CHECKOUT / ACCOUNT
   ============================================================ */
.cart-item { display:flex; flex-wrap:wrap; gap:1rem; padding:1.5rem 0; border-bottom:1px solid var(--sw-border); align-items:center; }
.cart-item-image { width:80px; height:80px; object-fit:cover; border-radius:4px; background:var(--sw-color-surface); }
.summary-row { display:flex; justify-content:space-between; margin-bottom:0.5rem; font-size:0.9rem; }
.summary-total { display:flex; justify-content:space-between; padding-top:1rem; border-top:1px solid var(--sw-border); margin-top:1rem; }
.checkout-item { display:flex; justify-content:space-between; margin-bottom:0.75rem; font-size:0.875rem; }
.checkout-divider { border-top:1px solid var(--sw-border); margin-top:0.75rem; padding-top:0.75rem; }
.shipping-option { display:flex; align-items:center; gap:0.75rem; padding:0.875rem 1rem; border:1.5px solid var(--sw-border); border-radius:4px; cursor:pointer; margin-bottom:0.5rem; transition:border-color 0.2s; }
.shipping-option:hover { border-color:var(--sw-color-primary); }
.shipping-option.selected { border-color:var(--sw-color-primary); background:rgba(107,58,42,0.04); }
.account-tabs { display:flex; gap:0; border-bottom:1px solid var(--sw-border); margin-bottom:2rem; overflow-x:auto; }
.account-tab { font-size:0.8rem; font-weight:700; text-decoration:none; padding:0.875rem 1.25rem; border-bottom:2px solid transparent; color:var(--sw-color-text-muted); letter-spacing:0.06em; text-transform:uppercase; transition:color 0.15s, border-color 0.15s; margin-bottom:-1px; white-space:nowrap; }
.account-tab[aria-selected="true"] { color:var(--sw-color-primary); border-bottom-color:var(--sw-color-primary); }
.account-pane { display:block; }
.account-pane[hidden] { display:none !important; }
.list-item { display:flex; align-items:center; justify-content:space-between; padding:1.125rem 1.375rem; }
.list-item:not(:last-child) { border-bottom:1px solid var(--sw-border); }

/* ============================================================
   PAGE / BLOG
   ============================================================ */
.page-layout { max-width:760px; margin:0 auto; }
.page-header { margin-bottom:2.5rem; padding-bottom:1.75rem; border-bottom:1px solid var(--sw-border); }
.page-heading { font-family:'Playfair Display',Georgia,serif; font-size:clamp(1.75rem,4vw,2.5rem); font-weight:700; line-height:1.2; margin:0; }
.page-content h2 { font-family:'Playfair Display',Georgia,serif; font-size:1.4rem; font-weight:700; margin:2rem 0 0.75rem; }
.page-content h3 { font-family:'Playfair Display',Georgia,serif; font-size:1.15rem; font-weight:700; margin:1.5rem 0 0.5rem; }
.page-content p { margin-bottom:1.25rem; color:var(--sw-color-text-muted); }
.page-content ul,.page-content ol { padding-left:1.5rem; margin-bottom:1.25rem; color:var(--sw-color-text-muted); }
.page-content li { margin-bottom:0.375rem; }
.page-content a { color:var(--sw-color-primary); text-decoration:underline; }
.blog-page-header { max-width:600px; margin:0 auto 3rem; text-align:center; }
.blog-page-title { font-family:'Playfair Display',Georgia,serif; font-size:clamp(1.75rem,4vw,2.5rem); font-weight:700; line-height:1.2; margin:0 0 0.75rem; }
.blog-page-desc { font-size:1.0625rem; color:var(--sw-color-text-muted); line-height:1.65; margin:0; }
.blog-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:2rem; }
.blog-card { border-radius:4px; border:1px solid var(--sw-border); overflow:hidden; background:#fff; display:flex; flex-direction:column; transition:transform 0.25s, box-shadow 0.25s; }
.blog-card:hover { transform:translateY(-3px); box-shadow:0 8px 30px rgba(44,24,16,0.1); }
.blog-card-image-link { display:block; overflow:hidden; aspect-ratio:16/9; }
.blog-card-img { width:100%; height:100%; object-fit:cover; display:block; transition:transform 0.4s; }
.blog-card:hover .blog-card-img { transform:scale(1.04); }
.blog-card-img-placeholder { aspect-ratio:16/9; background:var(--sw-color-surface); display:flex; align-items:center; justify-content:center; color:var(--sw-border); }
.blog-card-body { padding:1.5rem; display:flex; flex-direction:column; gap:0.75rem; flex:1; }
.blog-card-meta { display:flex; align-items:center; gap:0.375rem; font-size:0.8rem; color:var(--sw-color-text-muted); }
.blog-meta-dot { color:var(--sw-border); }
.blog-card-title { font-family:'Playfair Display',Georgia,serif; font-size:1.075rem; font-weight:600; line-height:1.35; margin:0; }
.blog-card-title a { color:var(--sw-color-text-main); text-decoration:none; }
.blog-card-title a:hover { color:var(--sw-color-primary); }
.blog-card-excerpt { font-size:0.875rem; color:var(--sw-color-text-muted); line-height:1.65; margin:0; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.blog-card-tags { display:flex; flex-wrap:wrap; gap:0.375rem; }
.blog-read-more { display:inline-flex; align-items:center; gap:0.375rem; font-size:0.8125rem; font-weight:700; letter-spacing:0.04em; text-transform:uppercase; color:var(--sw-color-primary); text-decoration:none; margin-top:auto; transition:gap 0.2s; }
.blog-read-more:hover { gap:0.6rem; }
.blog-post-wrap { max-width:760px; margin:0 auto; }
.blog-post-header { margin-bottom:2rem; }
.blog-post-tag-row { display:flex; flex-wrap:wrap; gap:0.5rem; }
.blog-post-title { font-family:'Playfair Display',Georgia,serif; font-size:clamp(1.75rem,4vw,2.75rem); font-weight:700; line-height:1.2; margin:0.75rem 0 1rem; }
.blog-post-byline { display:flex; align-items:center; gap:0.5rem; font-size:0.875rem; color:var(--sw-color-text-muted); flex-wrap:wrap; }
.blog-post-author { display:inline-flex; align-items:center; gap:0.35rem; }
.blog-post-featured-img-wrap { border-radius:4px; overflow:hidden; margin-bottom:2.5rem; aspect-ratio:16/9; }
.blog-post-featured-img { width:100%; height:100%; object-fit:cover; display:block; }
.blog-post-body { font-size:1rem; line-height:1.8; }
.blog-post-body h2 { font-family:'Playfair Display',Georgia,serif; font-size:1.5rem; font-weight:700; margin:2.5rem 0 1rem; }
.blog-post-body h3 { font-family:'Playfair Display',Georgia,serif; font-size:1.2rem; font-weight:700; margin:2rem 0 0.75rem; }
.blog-post-body p { margin-bottom:1.5rem; }
.blog-post-body ul,.blog-post-body ol { padding-left:1.5rem; margin-bottom:1.5rem; }
.blog-post-body blockquote { border-left:3px solid var(--sw-color-primary); padding:0.75rem 1.25rem; background:var(--sw-color-surface); border-radius:0 4px 4px 0; margin:1.5rem 0; font-style:italic; color:var(--sw-color-text-muted); }
.blog-post-footer { margin-top:3rem; padding-top:1.75rem; border-top:1px solid var(--sw-border); display:flex; flex-wrap:wrap; gap:1.5rem; align-items:center; justify-content:space-between; }
.blog-post-footer-tags { display:flex; align-items:center; flex-wrap:wrap; gap:0.5rem; }
.blog-post-footer-tags-label { font-size:0.8rem; font-weight:700; color:var(--sw-color-text-muted); text-transform:uppercase; letter-spacing:0.06em; }
.blog-post-back { margin-left:auto; }

/* ============================================================
   ORDER / STATUS BADGES
   ============================================================ */
.badge { display:inline-flex; align-items:center; padding:0.25rem 0.75rem; border-radius:3px; font-size:0.75rem; font-weight:700; text-transform:uppercase; letter-spacing:0.06em; }
.badge-paid, .badge-completed, .badge-success { background:rgba(39,174,96,0.1); color:#27ae60; }
.badge-pending, .badge-processing, .badge-warning { background:rgba(243,156,18,0.12); color:#a04000; }
.badge-cancelled, .badge-failed, .badge-danger, .badge-error { background:rgba(192,57,43,0.1); color:#c0392b; }
.badge-shipped, .badge-info { background:rgba(41,128,185,0.1); color:#2980b9; }
.badge-default { background:var(--sw-color-surface); color:var(--sw-color-text-muted); }

/* ============================================================
   CART ITEM LINK
   ============================================================ */
.cart-item-link { color:var(--sw-color-text-main); text-decoration:none; transition:color 0.15s; }
.cart-item-link:hover { color:var(--sw-color-primary); }

/* Misc */
.prose { font-size:1rem; line-height:1.8; color:var(--sw-color-text-main); }
.prose h1,.prose h2,.prose h3 { font-family:'Playfair Display',Georgia,serif; font-weight:700; line-height:1.3; margin-top:2rem; margin-bottom:0.75rem; }
.prose p { margin-bottom:1.25rem; }
.newsletter-form-container { display:flex; }
.newsletter-input { border-radius:4px 0 0 4px; border:1px solid var(--sw-border); border-right:none; padding:0.5rem 0.75rem; flex:1; background:#fff; color:var(--sw-color-text-main); font-size:0.85rem; font-family:'Lato',sans-serif; }
.newsletter-btn { border-radius:0 4px 4px 0; padding:0.5rem 1rem; font-weight:700; font-size:0.8rem; letter-spacing:0.04em; text-transform:uppercase; white-space:nowrap; border:none; cursor:pointer; background:var(--sw-color-primary); color:#fff; font-family:'Lato',sans-serif; }

/* Plugin Modal Support */
.modal-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    align-items: center;
    justify-content: center;
}
.modal-overlay[style*="flex"],
.modal-overlay[style*="block"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: var(--sw-color-surface, #F5EDE0);
    padding: 1.5rem;
    border-radius: var(--sw-radius-md, 6px);
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--sw-color-text-muted, #7A6A5A);
    padding: 10px;
    line-height: 1;
}

/* ============================================================
   FULL RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns:1fr 1fr; }
    .footer-grid > *:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .contact-grid { grid-template-columns:1fr; }
}
@media (max-width: 768px) {
    .product-grid { grid-template-columns:repeat(2, 1fr); gap:1rem; }
    .grid-product, .grid-cart, .grid-checkout, .grid-2 { grid-template-columns:1fr; }
    .footer-grid { grid-template-columns:1fr; gap:2rem; }
    .footer-bottom { flex-direction:column; text-align:center; }
    .search-layout { flex-direction:column; }
    .search-sidebar { width:100%; display:none; }
    .search-sidebar.active { display:block; }
    .mobile-filter-toggle-container { display:block; }
    .blog-grid { grid-template-columns:1fr; }
    .blog-post-back { margin-left:0; }
    .blog-post-footer { flex-direction:column; align-items:flex-start; }
    .contact-name-row { grid-template-columns:1fr; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns:1fr; }
    .list-item { flex-direction:column; align-items:flex-start; gap:0.5rem; }
    .sticky-atc-inner { gap:0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration:0.01ms !important; transition-duration:0.01ms !important; }
}

/* ============================================================
   SUPPLEMENTAL — from main.css
   ============================================================ */

/* Custom scrollbar */
::-webkit-scrollbar              { width: 8px; height: 8px; }
::-webkit-scrollbar-track        { background: var(--sw-color-bg); }
::-webkit-scrollbar-thumb        { background: var(--sw-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover  { background: var(--sw-color-text-muted); }

/* Selection colour */
::selection {
    background: rgba(107, 58, 42, 0.15);
    color: var(--sw-color-text-main);
}

/* Focus ring — global accessible style */
:focus-visible {
    outline: 2px solid var(--sw-color-primary);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Smooth page transitions */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    z-index: 100;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--sw-color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(107, 58, 42, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
#back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 58, 42, 0.4);
}

/* Login / register pages */
.auth-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--sw-border);
    box-shadow: 0 4px 24px rgba(44, 24, 16, 0.08);
    padding: 2.5rem;
}
.auth-logo-link {
    display: flex;
    justify-content: center;
    margin-bottom: 1.75rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--sw-color-primary);
    text-decoration: none;
    letter-spacing: -0.01em;
}
.auth-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.625rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 0.5rem;
    color: var(--sw-color-text-main);
}
.auth-subtitle {
    text-align: center;
    color: var(--sw-color-text-muted);
    font-size: 0.9rem;
    margin: 0 0 1.75rem;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: var(--sw-color-text-muted);
    font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--sw-border);
}
.auth-links {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--sw-color-text-muted);
}
.auth-links a {
    color: var(--sw-color-primary);
    font-weight: 700;
}
.auth-forgot {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: var(--sw-color-primary);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}
.auth-forgot:hover { text-decoration: underline; }

/* Password strength indicator */
.password-strength-bar {
    height: 3px;
    border-radius: 2px;
    margin-top: 0.35rem;
    transition: width 0.3s ease, background 0.3s ease;
    background: var(--sw-border);
}
.password-strength-bar[data-strength="weak"]   { background: var(--sw-color-error); width: 33%; }
.password-strength-bar[data-strength="medium"] { background: #f39c12; width: 66%; }
.password-strength-bar[data-strength="strong"] { background: var(--sw-color-success); width: 100%; }

/* Form validation states */
.sw-input.is-error   { border-color: var(--sw-color-error); }
.sw-input.is-success { border-color: var(--sw-color-success); }
.field-error-msg {
    color: var(--sw-color-error);
    font-size: 0.78rem;
    margin-top: 0.3rem;
    display: block;
}

/* Skeleton loading */
@keyframes skeleton-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.skeleton {
    background: linear-gradient(
        90deg,
        var(--sw-color-surface) 25%,
        #f0e8dd 50%,
        var(--sw-color-surface) 75%
    );
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s infinite linear;
    border-radius: 4px;
}
.skeleton-text  { height: 1em; margin-bottom: 0.5em; }
.skeleton-image { aspect-ratio: 1; border-radius: 4px; }

/* Shipping option radio interaction */
.shipping-option input[type="radio"] {
    accent-color: var(--sw-color-primary);
}
.shipping-option:has(input:checked) {
    border-color: var(--sw-color-primary);
    background: rgba(107, 58, 42, 0.04);
}

/* Table — responsive wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-responsive table {
    min-width: 560px;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .sticky-atc,
    #back-to-top,
    .nav-drawer,
    .nav-overlay { display: none !important; }

    body { background: #fff; color: #000; }
    a    { color: #000; text-decoration: underline; }

    .sw-card, .sw-card-bordered {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Utility additions */
.truncate {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.aspect-square     { aspect-ratio: 1; }
.aspect-video      { aspect-ratio: 16 / 9; }
.aspect-portrait   { aspect-ratio: 3 / 4; }
.object-cover      { object-fit: cover; width: 100%; height: 100%; }
.overflow-hidden   { overflow: hidden; }
.position-relative { position: relative; }
.cursor-pointer    { cursor: pointer; }
.select-none       { user-select: none; }
.pointer-events-none { pointer-events: none; }

/* Clickable table rows */
.tr-clickable { cursor: pointer; transition: background 0.15s; }
.tr-clickable:hover { background: var(--sw-color-surface); }

/* Newsletter section (homepage / footer) */
.rl-newsletter {
    background: var(--sw-color-primary);
    padding: 4rem 0;
    text-align: center;
}
.rl-newsletter-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.625rem;
}
.rl-newsletter-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 1.75rem;
}
.rl-newsletter-form {
    display: flex;
    justify-content: center;
    max-width: 420px;
    margin: 0 auto;
}
.rl-newsletter-input {
    flex: 1;
    border: none;
    border-radius: 4px 0 0 4px;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: 'Lato', sans-serif;
    background: rgba(255, 255, 255, 0.92);
    color: var(--sw-color-text-main);
    min-width: 0;
}
.rl-newsletter-input:focus {
    outline: none;
    background: #fff;
}
.rl-newsletter-btn {
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0.75rem 1.25rem;
    background: var(--sw-color-text-main);
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.rl-newsletter-btn:hover { background: #3d1f12; }

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    pointer-events: none;
}
.toast {
    background: #2C1810;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    animation: toast-in 0.3s ease forwards;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    max-width: 360px;
    text-align: left;
}
.toast-success { background: #1a5c2e; }
.toast-error   { background: #7a1a14; }
@keyframes toast-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HOMEPAGE STYLES (index.liquid)
   ============================================================ */

/* Hero */
.rl-hero {
    position:relative; min-height:72vh;
    display:flex; align-items:flex-end;
    background-size:cover; background-position:center; background-repeat:no-repeat;
    overflow:hidden;
}
.rl-hero-overlay {
    position:absolute; inset:0;
    background:linear-gradient(to top, rgba(20,8,4,0.78) 0%, rgba(20,8,4,0.35) 50%, rgba(20,8,4,0.15) 100%);
}
.rl-hero-content {
    position:relative; z-index:1;
    padding-bottom:5rem; padding-top:3rem;
    max-width:700px;
}
.rl-hero-eyebrow {
    display:inline-block;
    font-family:'Lato',sans-serif; font-size:0.7rem; font-weight:700;
    letter-spacing:0.2em; text-transform:uppercase;
    color:rgba(255,255,255,0.6);
    margin-bottom:1rem;
}
.rl-hero-title {
    font-family:'Playfair Display',Georgia,serif;
    font-size:clamp(2.25rem,5.5vw,4rem); font-weight:700;
    line-height:1.1; color:#fff; margin:0 0 1rem;
    text-shadow:0 2px 16px rgba(0,0,0,0.3);
}
.rl-hero-sub {
    font-size:1.0625rem; color:rgba(255,255,255,0.75);
    line-height:1.65; margin:0 0 2rem; max-width:520px;
}
.rl-hero-actions { display:flex; gap:0.75rem; flex-wrap:wrap; align-items:center; }
.rl-btn-hero-primary { background:#fff !important; color:var(--sw-color-primary) !important; border-color:#fff !important; }
.rl-btn-hero-secondary {
    background:rgba(255,255,255,0.12) !important;
    color:#fff !important; border:1.5px solid rgba(255,255,255,0.4) !important;
}
.rl-btn-hero-outline {
    background:transparent !important;
    color:rgba(255,255,255,0.85) !important;
    border:1.5px solid rgba(255,255,255,0.3) !important;
}
.rl-btn-hero-secondary:hover { background:rgba(255,255,255,0.22) !important; }
.rl-btn-hero-outline:hover { background:rgba(255,255,255,0.1) !important; color:#fff !important; }

/* Showroom bar */
.rl-showroom-bar {
    background:var(--sw-color-surface);
    border-bottom:1px solid var(--sw-border);
    padding:1rem 0;
}
.rl-showroom-inner {
    display:flex; align-items:center;
    justify-content:space-between; flex-wrap:wrap; gap:1rem;
}
.rl-showroom-left { display:flex; align-items:center; gap:0.875rem; }
.rl-showroom-title { font-weight:700; font-size:0.9375rem; color:var(--sw-color-text-main); }
.rl-showroom-sub { font-size:0.8125rem; color:var(--sw-color-text-muted); margin-top:0.125rem; }
.rl-showroom-btns { display:flex; gap:0.625rem; flex-wrap:wrap; }

/* Section headers */
.rl-section-header { text-align:center; margin-bottom:2.5rem; }
.rl-eyebrow {
    display:block; font-family:'Lato',sans-serif;
    font-size:0.68rem; font-weight:700; letter-spacing:0.18em; text-transform:uppercase;
    color:var(--sw-color-text-muted); margin-bottom:0.5rem;
}
.rl-section-title {
    font-family:'Playfair Display',Georgia,serif;
    font-size:clamp(1.5rem,3vw,2.125rem); font-weight:700;
    color:var(--sw-color-text-main); margin:0; letter-spacing:-0.01em;
}

/* Collections grid */
.rl-collections { padding:5rem 0; background:var(--sw-color-bg); }
.rl-collections-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:1.25rem;
}
.rl-collection-card {
    display:block; position:relative; text-decoration:none;
    border-radius:6px; overflow:hidden;
    aspect-ratio:3/4;
    transition:transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow:0 2px 8px rgba(44,24,16,0.08);
}
.rl-collection-card:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(44,24,16,0.16); }
.rl-collection-img-wrap { position:absolute; inset:0; }
.rl-collection-img-wrap img {
    width:100%; height:100%; object-fit:cover; display:block;
    transition:transform 0.5s ease;
}
.rl-collection-card:hover .rl-collection-img-wrap img { transform:scale(1.06); }
.rl-collection-label {
    position:absolute; bottom:0; left:0; right:0;
    background:linear-gradient(to top, rgba(20,8,4,0.82) 0%, transparent 100%);
    color:#fff; font-family:'Playfair Display',Georgia,serif;
    font-size:1.0625rem; font-weight:600;
    padding:2rem 1.25rem 1.125rem;
    letter-spacing:0.01em;
}
.rl-collection-card--more {
    background:var(--sw-color-surface);
    border:2px dashed var(--sw-border);
    display:flex; align-items:center; justify-content:center;
}
.rl-collection-card--more:hover { background:var(--sw-color-bg); border-color:var(--sw-color-primary); }
.rl-collection-more-inner { text-align:center; color:var(--sw-color-text-muted); }
.rl-collection-card--more:hover .rl-collection-more-inner { color:var(--sw-color-primary); }
.rl-collection-more-text {
    display:block; font-family:'Playfair Display',Georgia,serif;
    font-size:1.0625rem; font-weight:600; margin-top:0.75rem; margin-bottom:0.25rem;
    color:inherit;
}
.rl-collection-more-sub { font-size:0.8125rem; color:var(--sw-color-text-muted); }

/* Shop by Size */
.rl-sizes { padding:4rem 0; background:var(--sw-color-surface); }
.rl-sizes-grid {
    display:grid;
    grid-template-columns:repeat(9,1fr);
    gap:0.75rem;
}
.rl-size-btn {
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    padding:1.25rem 0.5rem;
    background:#fff; border:1.5px solid var(--sw-border); border-radius:6px;
    text-decoration:none; color:var(--sw-color-text-main);
    transition:border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
    box-shadow:0 1px 3px rgba(44,24,16,0.05);
    text-align:center;
}
.rl-size-btn:hover {
    border-color:var(--sw-color-primary);
    background:var(--sw-color-primary);
    color:#fff;
    transform:translateY(-2px);
    box-shadow:0 6px 16px rgba(107,58,42,0.2);
}
.rl-size-label {
    font-family:'Playfair Display',Georgia,serif;
    font-size:1.0625rem; font-weight:700;
    line-height:1.2; display:block;
}
.rl-size-desc {
    font-size:0.7rem; font-weight:700;
    text-transform:uppercase; letter-spacing:0.08em;
    margin-top:0.35rem; display:block;
    color:var(--sw-color-text-muted);
    transition:color 0.18s;
}
.rl-size-btn:hover .rl-size-desc { color:rgba(255,255,255,0.75); }
.rl-size-btn--special {
    border-color:var(--sw-color-primary);
    background:rgba(107,58,42,0.04);
}
.rl-size-btn--special .rl-size-desc { color:var(--sw-color-primary); }
.rl-size-btn--special:hover { background:var(--sw-color-primary); }

/* Middle banner */
.rl-mid-banner {
    position:relative; min-height:50vh;
    display:flex; align-items:center;
    background-size:cover; background-position:center;
}
.rl-mid-banner-overlay {
    position:absolute; inset:0;
    background:rgba(20,8,4,0.58);
}
.rl-mid-banner-content {
    position:relative; z-index:1;
    max-width:640px; padding:5rem 1.5rem;
}
.rl-mid-eyebrow {
    display:block; font-family:'Lato',sans-serif;
    font-size:0.7rem; font-weight:700; letter-spacing:0.18em; text-transform:uppercase;
    color:rgba(255,255,255,0.55); margin-bottom:0.875rem;
}
.rl-mid-title {
    font-family:'Playfair Display',Georgia,serif;
    font-size:clamp(1.875rem,4vw,3rem); font-weight:700;
    color:#fff; line-height:1.15; margin:0 0 0.875rem;
}
.rl-mid-sub {
    font-size:1.0625rem; color:rgba(255,255,255,0.72);
    line-height:1.65; margin:0 0 2rem;
}
.rl-mid-actions { display:flex; gap:0.75rem; flex-wrap:wrap; }

/* Shop by style */
.rl-styles { padding:5rem 0; background:var(--sw-color-surface); }
.rl-styles-grid {
    display:grid;
    grid-template-columns:1fr 1.2fr 1fr;
    gap:1.25rem;
    align-items:stretch;
}
.rl-style-card {
    display:block; position:relative; text-decoration:none;
    border-radius:6px; overflow:hidden;
    min-height:420px;
    transition:transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow:0 2px 8px rgba(44,24,16,0.08);
}
.rl-style-card--tall { min-height:520px; }
.rl-style-card:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(44,24,16,0.15); }
.rl-style-img-wrap { position:absolute; inset:0; }
.rl-style-img-wrap img { width:100%; height:100%; object-fit:cover; display:block; transition:transform 0.5s ease; }
.rl-style-card:hover .rl-style-img-wrap img { transform:scale(1.05); }
.rl-style-overlay {
    position:absolute; inset:0;
    background:linear-gradient(to top, rgba(20,8,4,0.72) 0%, rgba(20,8,4,0.1) 50%, transparent 100%);
    transition:background 0.3s ease;
}
.rl-style-card:hover .rl-style-overlay { background:linear-gradient(to top, rgba(20,8,4,0.8) 0%, rgba(20,8,4,0.2) 60%, rgba(20,8,4,0.05) 100%); }
.rl-style-label {
    position:absolute; bottom:0; left:0; right:0;
    color:#fff; font-family:'Playfair Display',Georgia,serif;
    font-size:1.25rem; font-weight:600; letter-spacing:0.01em;
    padding:2rem 1.5rem 1.375rem;
    text-align:center;
}

/* Antique split */
.rl-antique { background:var(--sw-color-bg); padding:2rem 0; }
.rl-antique-inner {
    display:grid; grid-template-columns:380px 1fr;
    height:380px;
    border-radius:8px; overflow:hidden;
    border:1px solid var(--sw-border);
    box-shadow:0 2px 16px rgba(44,24,16,0.08);
}
.rl-antique-text {
    padding:1.5rem 2rem;
    display:flex; flex-direction:column; justify-content:center; gap:0.625rem;
    background:#fff;
}
.rl-antique-title {
    font-family:'Playfair Display',Georgia,serif;
    font-size:1.25rem; font-weight:700;
    color:var(--sw-color-text-main); margin:0;
    line-height:1.25;
}
.rl-antique-desc {
    font-size:0.875rem; color:var(--sw-color-text-muted);
    line-height:1.6; margin:0;
}
.rl-antique-features { display:none; }
.rl-antique-img-wrap {
    overflow:hidden; position:relative;
    background:var(--sw-color-surface);
}
.rl-antique-img-wrap img {
    width:100%; height:100%; object-fit:cover; display:block;
    transition:transform 0.6s ease;
}
.rl-antique:hover .rl-antique-img-wrap img { transform:scale(1.03); }

/* Homepage responsive */
@media(max-width:900px) {
    .rl-collections-grid { grid-template-columns:repeat(2,1fr); }
    .rl-styles-grid { grid-template-columns:1fr 1fr; }
    .rl-styles-grid .rl-style-card--tall { grid-row:span 2; }
    .rl-antique-inner { grid-template-columns:1fr; height:auto; }
    .rl-antique-img-wrap { min-height:220px; order:-1; }
    .rl-antique-text { padding:1.5rem; }
    .rl-sizes-grid { grid-template-columns:repeat(5,1fr); }
}
@media(max-width:640px) {
    .rl-hero { min-height:60vh; }
    .rl-hero-content { padding-bottom:3rem; }
    .rl-hero-title { font-size:clamp(1.875rem,8vw,2.75rem); }
    .rl-collections-grid { grid-template-columns:1fr 1fr; gap:0.75rem; }
    .rl-styles-grid { grid-template-columns:1fr; }
    .rl-style-card--tall { min-height:380px; grid-row:auto; }
    .rl-showroom-inner { flex-direction:column; align-items:flex-start; }
    .rl-collections { padding:3rem 0; }
    .rl-styles { padding:3rem 0; }
    .rl-mid-banner { min-height:380px; }
}
@media(max-width:560px) {
    .rl-sizes-grid { grid-template-columns:repeat(3,1fr); }
}
@media(max-width:480px) {
    .rl-collections-grid { grid-template-columns:1fr; }
    .rl-collection-card { aspect-ratio:4/3; }
}

/* ============================================================
   COLLECTIONS PAGE STYLES
   ============================================================ */
.coll-page-header { text-align:center; padding:1rem 0 3rem; }
.coll-page-title {
    font-family:'Playfair Display',Georgia,serif;
    font-size:clamp(1.75rem,4vw,2.75rem); font-weight:700;
    color:var(--sw-color-text-main); margin:0.5rem 0 0.75rem; letter-spacing:-0.01em;
}
.coll-page-sub { font-size:1.0625rem; color:var(--sw-color-text-muted); margin:0; line-height:1.65; }
.coll-grid {
    display:grid; grid-template-columns:repeat(3,1fr);
    gap:1.25rem; margin-bottom:4rem;
}
.coll-card {
    display:block; position:relative; text-decoration:none;
    border-radius:6px; overflow:hidden; aspect-ratio:3/4;
    box-shadow:0 2px 8px rgba(44,24,16,0.08);
    transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.coll-card:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(44,24,16,0.16); }
.coll-card-img { position:absolute; inset:0; }
.coll-card-img img { width:100%; height:100%; object-fit:cover; display:block; transition:transform 0.5s ease; }
.coll-card:hover .coll-card-img img { transform:scale(1.06); }
.coll-card-label {
    position:absolute; bottom:0; left:0; right:0;
    background:linear-gradient(to top, rgba(20,8,4,0.82) 0%, transparent 100%);
    color:#fff; font-family:'Playfair Display',Georgia,serif;
    font-size:1.125rem; font-weight:600;
    padding:2rem 1.25rem 1.125rem; letter-spacing:0.01em;
}
.coll-more { border-top:1px solid var(--sw-border); padding-top:2.5rem; }
.coll-more-title {
    font-family:'Playfair Display',Georgia,serif;
    font-size:1.25rem; font-weight:700;
    color:var(--sw-color-text-main); margin:0 0 1.25rem;
}
.coll-more-list {
    list-style:none; padding:0; margin:0;
    display:flex; flex-wrap:wrap; gap:0.625rem;
}
.coll-more-list li a {
    display:inline-block; padding:0.4rem 1rem;
    border:1px solid var(--sw-border); border-radius:3px;
    font-size:0.875rem; font-weight:600;
    color:var(--sw-color-text-main); text-decoration:none;
    background:#fff; transition:background 0.15s, border-color 0.15s, color 0.15s;
}
.coll-more-list li a:hover {
    background:var(--sw-color-primary);
    border-color:var(--sw-color-primary); color:#fff;
}
@media(max-width:768px) { .coll-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:480px) { .coll-grid { grid-template-columns:repeat(2,1fr); gap:0.75rem; } }
