/* ============================================================================
   TUBA FASHION — Design System
   ----------------------------------------------------------------------------
   Product type   : E-commerce Luxury (fashion boutique)
   Landing pattern: Feature-Rich Showcase
   Palette        : Premium stone + gold (matches the gold-on-white brand mark)
   Typography     : Playfair Display / Inter   ·   Amiri / Noto Sans Arabic
   Motion         : micro 150-220ms · reveals 420-560ms
   Direction      : one stylesheet serves LTR + RTL via logical properties
   ============================================================================ */

/* ---------------------------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------------------------- */
:root {
    color-scheme: light;

    /* --- Brand / semantic colour ------------------------------------------ */
    --ink:            #1C1917;  /* primary surface + headings                */
    --ink-soft:       #44403C;  /* secondary                                 */
    --ink-muted:      #57534E;  /* body copy on light — 7.4:1 on --bg        */
    --ink-subtle:     #78716C;  /* metadata only, never body copy            */

    --gold:           #A16207;  /* accent on light — WCAG-adjusted           */
    --gold-strong:    #854D0E;  /* accent hover on light                     */
    --gold-light:     #D9A441;  /* accent on dark — 7.6:1 on --ink           */
    --gold-wash:      #FBF7EC;  /* tinted surface                            */

    --bg:             #FAFAF9;
    --surface:        #FFFFFF;
    --surface-alt:    #F5F5F4;
    --surface-dark:   #1C1917;
    --surface-darker: #12100F;

    --border:         #E7E5E4;
    --border-strong:  #D6D3D1;

    --danger:         #DC2626;
    --on-danger:      #FFFFFF;
    --ring:           #A16207;

    /* --- Typography -------------------------------------------------------- */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Type scale — 12 / 14 / 16 / 18 / 20 / 24 / 32 / 40 / 56 */
    --fs-xs:   0.75rem;
    --fs-sm:   0.875rem;
    --fs-base: 1rem;
    --fs-md:   1.125rem;
    --fs-lg:   1.25rem;
    --fs-xl:   1.5rem;
    --fs-2xl:  2rem;
    --fs-3xl:  2.5rem;
    --fs-4xl:  3.5rem;

    /* --- Spacing scale (4pt) ---------------------------------------------- */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    --section-y: var(--space-16);

    /* --- Radius ------------------------------------------------------------ */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    /* --- Elevation (single consistent scale) ------------------------------- */
    --shadow-1: 0 1px 2px rgba(28, 25, 23, 0.05);
    --shadow-2: 0 2px 8px rgba(28, 25, 23, 0.06), 0 1px 2px rgba(28, 25, 23, 0.04);
    --shadow-3: 0 8px 24px rgba(28, 25, 23, 0.08), 0 2px 6px rgba(28, 25, 23, 0.04);
    --shadow-4: 0 18px 48px rgba(28, 25, 23, 0.12), 0 6px 14px rgba(28, 25, 23, 0.06);

    /* --- Motion ------------------------------------------------------------ */
    --dur-fast:   150ms;
    --dur-base:   220ms;
    --dur-slow:   420ms;
    --dur-reveal: 560ms;
    --ease-out:    cubic-bezier(0.16, 1, 0.30, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    /* --- Layout ------------------------------------------------------------ */
    --container: 1280px;
    --gutter: var(--space-5);
    --topbar-h: 44px;             /* tall enough for the lang switch to be tappable */
    --header-pad: var(--space-3);
    --logo-h: 44px;

    /* --- Z-index scale ----------------------------------------------------- */
    --z-base: 0;
    --z-raised: 10;
    --z-dropdown: 200;
    --z-whatsapp: 700;
    --z-bottomnav: 800;
    --z-header: 100;
    --z-overlay: 900;
    --z-drawer: 950;
    --z-modal: 1100;
    --z-skip: 1200;
}

/* Arabic page swaps the font pair only — every other token is shared. */
html[lang="ar"] {
    --font-display: 'Amiri', 'Noto Sans Arabic', Georgia, serif;
    --font-body:    'Noto Sans Arabic', 'Cairo', system-ui, sans-serif;
}

@media (min-width: 768px) {
    :root {
        --gutter: var(--space-8);
        --topbar-h: 40px;
        --header-pad: var(--space-4);
        --logo-h: 64px;
        --section-y: var(--space-20);
    }
}


/* ---------------------------------------------------------------------------
   2. RESET
   --------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    /* Keep anchored sections clear of the sticky header */
    scroll-padding-top: 120px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--ink-muted);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.18;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Arabic display faces need a little more leading and no negative tracking. */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 {
    line-height: 1.4;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
picture,
svg {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

ul { list-style: none; }

:target { scroll-margin-top: 130px; }


/* ---------------------------------------------------------------------------
   3. ACCESSIBILITY PRIMITIVES
   --------------------------------------------------------------------------- */

/* One consistent, always-visible focus ring. Never removed. */
:where(a, button, input, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 3px;
    border-radius: var(--radius-xs);
}

/* Dark surfaces need the lighter gold to stay above 4.5:1 */
:where(.site-footer, .cta-band, .modal, .topbar) :where(a, button):focus-visible {
    outline-color: var(--gold-light);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    inset-inline-start: var(--space-4);
    top: var(--space-4);
    z-index: var(--z-skip);
    padding: var(--space-3) var(--space-5);
    background: var(--ink);
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 600;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-4);
    transform: translateY(-200%);
    transition: transform var(--dur-base) var(--ease-out);
}

.skip-link:focus-visible {
    transform: translateY(0);
    outline-color: var(--gold-light);
}

/* Body scroll lock while a drawer / lightbox owns the screen. */
body.is-locked {
    overflow: hidden;
    padding-inline-end: var(--scrollbar-w, 0px);
}


/* ---------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   --------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section--tint { background-color: var(--surface); }

.section-head {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.section-head h2 {
    font-size: var(--fs-xl);
    white-space: nowrap;
}

.section-head .rule {
    flex: 1;
    height: 1px;
    border: none;                 /* <hr> ships with a border by default */
    background: linear-gradient(
        to var(--rule-dir, right),
        var(--border-strong),
        transparent
    );
}

html[dir="rtl"] .section-head .rule { --rule-dir: left; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

html[lang="ar"] .eyebrow {
    letter-spacing: 0;
    text-transform: none;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

@media (min-width: 768px) {
    .section-head h2 { font-size: var(--fs-2xl); }
}


/* ---------------------------------------------------------------------------
   5. BUTTONS
   --------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 48px;              /* touch target */
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-align: center;
    touch-action: manipulation;
    transition: background-color var(--dur-base) var(--ease-out),
                color var(--dur-base) var(--ease-out),
                border-color var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base) var(--ease-out),
                transform var(--dur-fast) var(--ease-out);
}

.btn i { font-size: 0.8em; }

.btn--primary {
    background-color: var(--ink);
    color: #fff;
    box-shadow: var(--shadow-2);
}

.btn--primary:hover {
    background-color: var(--ink-soft);
    box-shadow: var(--shadow-3);
}

.btn--gold {
    background-color: var(--gold);
    color: #fff;
    box-shadow: var(--shadow-2);
}

.btn--gold:hover { background-color: var(--gold-strong); }

.btn--outline {
    background-color: transparent;
    color: var(--ink);
    border: 1px solid var(--border-strong);
}

.btn--outline:hover {
    border-color: var(--ink);
    background-color: var(--surface-alt);
}

/* Ghost button sitting on imagery / dark bands */
.btn--ghost {
    background-color: rgba(255, 255, 255, 0.10);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.btn--ghost:hover {
    background-color: rgba(255, 255, 255, 0.18);
    border-color: #fff;
}

.btn:active { transform: scale(0.97); }

/* Direction-aware arrow: one icon, mirrored for RTL. No glyph swapping. */
.icon-forward { transition: transform var(--dur-base) var(--ease-out); }
html[dir="rtl"] .icon-forward { transform: scaleX(-1); }

.btn:hover .icon-forward { transform: translateX(3px); }
html[dir="rtl"] .btn:hover .icon-forward { transform: scaleX(-1) translateX(3px); }


/* ---------------------------------------------------------------------------
   6. STICKY HEADER STACK
   ---------------------------------------------------------------------------
   topbar + header + nav live in one sticky wrapper, so there is never a
   fixed-position element overlapping a static one. Condensing slides the
   whole block up by exactly the topbar height — a pure transform.
   --------------------------------------------------------------------------- */
.site-top {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background-color: var(--surface);
    transition: transform var(--dur-slow) var(--ease-out),
                box-shadow var(--dur-slow) var(--ease-out);
}

html.is-condensed .site-top {
    transform: translateY(calc(-1 * var(--topbar-h)));
    box-shadow: var(--shadow-3);
}

/* --- Top bar ------------------------------------------------------------- */
.topbar {
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    background-color: var(--ink);
    color: #fff;
    font-size: var(--fs-xs);
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.topbar-note {
    display: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

html[lang="ar"] .topbar-note {
    letter-spacing: 0;
    text-transform: none;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-inline-start: auto;
    min-height: var(--topbar-h);   /* fills the bar so the hit area is real */
    padding-inline: var(--space-2);
    font-weight: 600;
    color: var(--gold-light);
    transition: color var(--dur-base) var(--ease-out);
}

.lang-switch:hover { color: #fff; }

@media (min-width: 768px) {
    .topbar-note { display: block; }
    .lang-switch { margin-inline-start: 0; }
}

/* --- Header row ---------------------------------------------------------- */
.site-header {
    border-bottom: 1px solid var(--border);
    padding-block: var(--header-pad);
    transition: padding var(--dur-slow) var(--ease-out);
}

.header-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* The brand mark is a square JPEG with ~10% dead margin baked in.
   Clipping the wrapper and scaling the image trims it optically. */
.brand {
    display: block;
    flex-shrink: 0;
    height: var(--logo-h);
    overflow: hidden;
    transition: height var(--dur-slow) var(--ease-out);
}

.brand img {
    height: 100%;
    width: auto;
    object-fit: contain;
    transform: scale(1.25);
}

html.is-condensed .brand { height: 40px; }

@media (min-width: 768px) {
    html.is-condensed .brand { height: 48px; }
    html.is-condensed .site-header { padding-block: var(--space-3); }
}

/* --- Search -------------------------------------------------------------- */
.search {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex: 1;
    max-width: 560px;
    /* Slim padding + a 44px input keeps the row compact AND tappable. */
    padding: 2px var(--space-2) 2px var(--space-4);
    background-color: var(--surface-alt);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    transition: border-color var(--dur-base) var(--ease-out),
                background-color var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base) var(--ease-out);
}

.search:focus-within {
    background-color: var(--surface);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-2);
}

.search input {
    flex: 1;
    min-width: 0;
    min-height: 44px;            /* touch target */
    border: none;
    background: transparent;
    outline: none;
    font-size: var(--fs-base);   /* 16px — stops iOS zoom-on-focus */
    color: var(--ink);
}

.search input::placeholder { color: var(--ink-subtle); }

.search button {
    display: grid;
    place-items: center;
    width: 44px;                 /* touch target */
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    color: var(--ink);
    transition: background-color var(--dur-base) var(--ease-out);
}

.search button:hover { background-color: var(--surface-alt); }

.search-form {
    position: relative;
    flex: 1;
    max-width: 560px;
}

.search-form .search {
    width: 100%;
    max-width: none;
}

/* Only takes up space once the script actually writes a message into it. */
.search-status:empty { display: none; }

.search-status {
    position: absolute;
    top: calc(100% + var(--space-2));
    inset-inline-start: 0;
    z-index: var(--z-dropdown);
    max-width: 100%;
    padding: var(--space-2) var(--space-4);
    font-size: var(--fs-sm);
    color: var(--ink-muted);
    background-color: var(--gold-wash);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-3);
}

/* Desktop: search sits inline. Mobile: it drops into a togglable panel. */
.header-search { display: none; }

.search-panel {
    display: grid;
    grid-template-rows: 0fr;
    border-top: 1px solid transparent;
    transition: grid-template-rows var(--dur-slow) var(--ease-out),
                border-color var(--dur-slow) var(--ease-out);
}

.search-panel > div {
    overflow: hidden;
    min-height: 0;
}

.search-panel.is-open {
    grid-template-rows: 1fr;
    border-top-color: var(--border);
}

.search-panel .search-form {
    max-width: none;
    margin-block: var(--space-3);
}

/* --- Header actions ------------------------------------------------------ */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-inline-start: auto;
}

.icon-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;                    /* touch target */
    height: 44px;
    border-radius: 50%;
    font-size: var(--fs-lg);
    color: var(--ink);
    touch-action: manipulation;
    transition: background-color var(--dur-base) var(--ease-out);
}

.icon-btn:hover { background-color: var(--surface-alt); }

.cart-badge {
    position: absolute;
    top: 4px;
    inset-inline-end: 4px;
    min-width: 18px;
    height: 18px;
    padding-inline: 4px;
    display: grid;
    place-items: center;
    background-color: var(--danger);
    color: var(--on-danger);
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    border-radius: var(--radius-pill);
    border: 2px solid var(--surface);
}

/* An empty cart shows no badge at all. */
.cart-badge[data-count="0"] { display: none; }

.header-search-toggle,
.menu-toggle { display: grid; }

@media (min-width: 900px) {
    .header-search { display: block; }
    .header-search-toggle,
    .menu-toggle,
    .search-panel { display: none; }
}

/* --- Primary nav (desktop) ----------------------------------------------- */
.main-nav {
    display: none;
    border-bottom: 1px solid var(--border);
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
}

.nav-list > li { position: relative; }   /* containing block for .dropdown */

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding-block: var(--space-4);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--ink-muted);
    transition: color var(--dur-base) var(--ease-out);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 10px;
    inset-inline-start: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width var(--dur-base) var(--ease-out);
}

.nav-link:hover,
.nav-link[aria-expanded="true"] { color: var(--ink); }

.nav-link:hover::after,
.nav-link[aria-expanded="true"]::after { width: 100%; }

.nav-caret {
    font-size: 0.65rem;
    transition: transform var(--dur-base) var(--ease-out);
}

.nav-link[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.dropdown {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    min-width: 220px;
    padding-block: var(--space-2);
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-4);
    z-index: var(--z-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--dur-base) var(--ease-out),
                transform var(--dur-base) var(--ease-out),
                visibility var(--dur-base);
}

/* Opens on hover (pointer) and on click/focus (touch + keyboard). */
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: var(--space-3) var(--space-5);
    font-size: var(--fs-sm);
    color: var(--ink-muted);
    transition: background-color var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out);
}

.dropdown a:hover {
    background-color: var(--gold-wash);
    color: var(--ink);
}

@media (min-width: 900px) {
    .main-nav { display: block; }
}


/* ---------------------------------------------------------------------------
   7. MOBILE DRAWER
   ---------------------------------------------------------------------------
   Lives at the end of <body>, outside .site-top — a transformed ancestor
   would otherwise become the containing block for these fixed elements.
   --------------------------------------------------------------------------- */
.scrim {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background-color: rgba(28, 25, 23, 0.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-slow) var(--ease-out),
                visibility var(--dur-slow);
}

.scrim.is-open {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    z-index: var(--z-drawer);
    width: min(86vw, 360px);
    display: flex;
    flex-direction: column;
    background-color: var(--surface);
    box-shadow: var(--shadow-4);
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease-out);
    overflow-y: auto;
    overscroll-behavior: contain;
}

html[dir="rtl"] .drawer { transform: translateX(-100%); }

.drawer.is-open,
html[dir="rtl"] .drawer.is-open { transform: translateX(0); }

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border);
}

.drawer-head .brand { height: 44px; }

.drawer-nav { padding: var(--space-4) var(--space-3); }

.drawer-nav a,
.drawer-nav .drawer-sub-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    width: 100%;
    min-height: 48px;
    padding: var(--space-3) var(--space-4);
    font-size: var(--fs-md);
    font-weight: 500;
    color: var(--ink);
    border-radius: var(--radius-sm);
    text-align: start;
    transition: background-color var(--dur-fast) var(--ease-out);
}

.drawer-nav a:hover,
.drawer-nav .drawer-sub-toggle:hover { background-color: var(--surface-alt); }

.drawer-sub-toggle i {
    font-size: 0.7rem;
    color: var(--ink-subtle);
    transition: transform var(--dur-base) var(--ease-out);
}

.drawer-sub-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

.drawer-sub {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--dur-base) var(--ease-out);
}

.drawer-sub > ul {
    overflow: hidden;
    min-height: 0;
}

.drawer-sub.is-open { grid-template-rows: 1fr; }

.drawer-sub a {
    padding-inline-start: var(--space-8);
    font-size: var(--fs-base);
    color: var(--ink-muted);
}

.drawer-foot {
    margin-top: auto;
    padding: var(--space-5);
    border-top: 1px solid var(--border);
    display: grid;
    gap: var(--space-3);
}

.drawer-foot a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 44px;
    font-size: var(--fs-sm);
    color: var(--ink-muted);
}

.drawer-foot i { color: var(--gold); width: 1.1em; }


/* ---------------------------------------------------------------------------
   8. HERO
   --------------------------------------------------------------------------- */
.hero { padding-block: 0; }

.hero-banner {
    position: relative;
    display: grid;
    /* svh is Safari 15.4+ / Chrome 108+. An unsupported unit voids the whole
       declaration, which would collapse the hero — so vh goes first. */
    min-height: 78vh;
    min-height: min(78svh, 620px);
    overflow: hidden;
    isolation: isolate;
    border-radius: var(--radius-md);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 22%;
    opacity: 0;
    transition: opacity var(--dur-reveal) var(--ease-in-out);
}

.hero-media img.is-active { opacity: 1; }

/* Scrim guarantees text contrast over any photograph. Weighted towards the
   lower half, where the copy sits — the gold eyebrow is the most fragile
   element, so the ramp stays dense well past it. */
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(18, 16, 15, 0.94) 0%,
        rgba(18, 16, 15, 0.86) 40%,
        rgba(18, 16, 15, 0.66) 65%,
        rgba(18, 16, 15, 0.40) 85%,
        rgba(18, 16, 15, 0.34) 100%
    );
}

.hero-copy {
    align-self: end;
    display: grid;
    justify-items: center;
    gap: var(--space-4);
    padding: var(--space-16) var(--gutter) var(--space-8);
    text-align: center;
}

/* Over photography the gold accent cannot reach 4.5:1 against a bright frame,
   so the mobile eyebrow goes white and the gold returns on desktop, where the
   copy sits on a solid panel. The shadow is insurance for any slide. */
.hero-copy {
    text-shadow: 0 1px 14px rgba(18, 16, 15, 0.55);
}

.hero-copy .eyebrow { color: #fff; }

.hero-copy h1 {
    font-size: clamp(2rem, 8vw, var(--fs-3xl));
    color: #fff;
    text-wrap: balance;
}

.hero-copy p {
    max-width: 46ch;
    color: rgba(255, 255, 255, 0.92);
    font-size: var(--fs-base);
}

.hero-copy .btn { text-shadow: none; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.hero-copy .btn--primary {
    background-color: #fff;
    color: var(--ink);
}

.hero-copy .btn--primary:hover { background-color: var(--gold-wash); }

/* --- Slider dots: 44px hit area around a 3px visual bar ------------------- */
.slider-dots {
    display: flex;
    gap: var(--space-1);
    margin-top: var(--space-2);
}

.dot {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    touch-action: manipulation;
}

.dot::before {
    content: "";
    width: 24px;
    height: 3px;
    border-radius: var(--radius-pill);
    background-color: rgba(255, 255, 255, 0.45);
    transition: background-color var(--dur-base) var(--ease-out),
                width var(--dur-base) var(--ease-out);
}

.dot[aria-selected="true"]::before {
    width: 36px;
    background-color: #fff;
}

@media (min-width: 900px) {
    .hero { padding-block: var(--space-10) 0; }

    .hero-banner {
        border-radius: var(--radius-lg);
        min-height: 560px;
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
        background-color: var(--surface);
        box-shadow: var(--shadow-3);
    }

    .hero-media {
        position: relative;
        grid-column: 2;
        inset: auto;
        z-index: 0;
        clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
    }

    html[dir="rtl"] .hero-media {
        clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
    }

    /* No photo behind the copy on desktop, so the scrim comes off. */
    .hero-media::after { display: none; }

    .hero-copy {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        justify-items: start;
        text-align: start;
        padding: var(--space-12) var(--space-12) var(--space-12) var(--space-16);
    }

    html[dir="rtl"] .hero-copy {
        padding: var(--space-12) var(--space-16) var(--space-12) var(--space-12);
    }

    .hero-copy { text-shadow: none; }
    .hero-copy .eyebrow { color: var(--gold); }
    .hero-copy h1 { color: var(--ink); font-size: var(--fs-4xl); }
    .hero-copy p { color: var(--ink-muted); font-size: var(--fs-md); }
    .hero-actions { justify-content: flex-start; }

    .hero-copy .btn--primary {
        background-color: var(--ink);
        color: #fff;
    }

    .hero-copy .btn--primary:hover { background-color: var(--ink-soft); }

    .hero-copy .btn--ghost {
        background-color: transparent;
        color: var(--ink);
        border-color: var(--border-strong);
    }

    .hero-copy .btn--ghost:hover {
        background-color: var(--surface-alt);
        border-color: var(--ink);
    }

    .dot::before { background-color: var(--border-strong); }
    .dot[aria-selected="true"]::before { background-color: var(--gold); }
}


/* ---------------------------------------------------------------------------
   9. CATEGORY RAIL
   --------------------------------------------------------------------------- */
.rail {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-block: var(--space-2) var(--space-4);
    /* Bleed the rail to the screen edge so it reads as scrollable. */
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
}

.rail::-webkit-scrollbar { display: none; }

.rail > * { scroll-snap-align: start; }

.chip {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    width: 116px;
    height: 116px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-1);
    transition: transform var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base) var(--ease-out),
                border-color var(--dur-base) var(--ease-out);
}

.chip i {
    font-size: 1.75rem;
    color: var(--gold);
    transition: transform var(--dur-base) var(--ease-out);
}

.chip span {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--ink);
}

.chip:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-3);
    border-color: var(--gold);
}

.chip:hover i { transform: scale(1.12); }

.chip:active { transform: scale(0.97); }

@media (min-width: 768px) {
    .rail {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
        margin-inline: 0;
        padding-inline: 0;
        gap: var(--space-4);
    }
    .chip { width: 140px; height: 140px; }
    .chip i { font-size: 2rem; }
}


/* ---------------------------------------------------------------------------
   10. CATEGORY CARDS
   --------------------------------------------------------------------------- */
.category-grid {
    display: grid;
    gap: var(--space-4);
}

.category-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5);
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    transition: transform var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base) var(--ease-out),
                border-color var(--dur-base) var(--ease-out);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-4);
    border-color: var(--gold);
}

.category-card h3 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-4);
}

.category-card .card-body { flex: 1; min-width: 0; }

.card-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 160px;
    overflow: hidden;
    background-color: var(--surface-alt);
    border-radius: var(--radius-pill) var(--radius-pill)
                   var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-2);
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}

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

@media (min-width: 640px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
    }
    .category-card { padding: var(--space-6); }
}


/* ---------------------------------------------------------------------------
   11. LOOKBOOK GALLERY
   --------------------------------------------------------------------------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;          /* reserves space → no layout shift */
    overflow: hidden;
    border-radius: var(--radius-md);
    background-color: var(--surface-alt);
    box-shadow: var(--shadow-1);
    cursor: zoom-in;
    touch-action: manipulation;
    transition: box-shadow var(--dur-base) var(--ease-out),
                transform var(--dur-base) var(--ease-out);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}

/* Zoom affordance — hover is a bonus, the button itself is the real target. */
.gallery-item::after {
    content: "\f00e";             /* fa-magnifying-glass-plus */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    inset-block-end: var(--space-3);
    inset-inline-end: var(--space-3);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    font-size: var(--fs-sm);
    color: var(--ink);
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--dur-base) var(--ease-out),
                transform var(--dur-base) var(--ease-out);
}

.gallery-item:hover,
.gallery-item:focus-visible { box-shadow: var(--shadow-3); }

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item[hidden] { display: none; }

.gallery-more {
    display: flex;
    justify-content: center;
    margin-top: var(--space-8);
}

@media (min-width: 640px) {
    .gallery { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
}

@media (min-width: 1024px) {
    .gallery { grid-template-columns: repeat(4, 1fr); }
}


/* ---------------------------------------------------------------------------
   12. FEATURES
   --------------------------------------------------------------------------- */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

.feature {
    padding: var(--space-6) var(--space-4);
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--surface);
    transition: transform var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base) var(--ease-out),
                border-color var(--dur-base) var(--ease-out);
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-3);
    border-color: var(--gold);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-4);
    display: grid;
    place-items: center;
    font-size: var(--fs-lg);
    color: var(--gold);
    background-color: var(--gold-wash);
    border-radius: 50%;
    transition: background-color var(--dur-base) var(--ease-out),
                color var(--dur-base) var(--ease-out);
}

.feature:hover .feature-icon {
    background-color: var(--gold);
    color: #fff;
}

.feature h3 {
    font-size: var(--fs-md);
    margin-bottom: var(--space-2);
}

.feature p {
    font-size: var(--fs-sm);
    color: var(--ink-muted);
}

@media (min-width: 900px) {
    .features {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-5);
    }
    .feature { padding: var(--space-8) var(--space-5); }
}


/* ---------------------------------------------------------------------------
   13. CTA BAND
   --------------------------------------------------------------------------- */
.cta-band {
    background-color: var(--surface-dark);
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
}

.cta-band .container {
    display: grid;
    justify-items: center;
    gap: var(--space-4);
}

.cta-band .eyebrow { color: var(--gold-light); }

.cta-band h2 {
    color: #fff;
    font-size: clamp(1.5rem, 5vw, var(--fs-2xl));
    text-wrap: balance;
}

.cta-band p { max-width: 52ch; }

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.cta-band .btn--primary {
    background-color: var(--gold);
    color: #fff;
}

.cta-band .btn--primary:hover { background-color: var(--gold-light); color: var(--ink); }


/* ---------------------------------------------------------------------------
   14. FOOTER
   --------------------------------------------------------------------------- */
.site-footer {
    padding-block: var(--space-16) var(--space-6);
    background-color: var(--surface-darker);
    color: rgba(255, 255, 255, 0.70);
    font-size: var(--fs-sm);
}

.footer-grid {
    display: grid;
    gap: var(--space-10);
}

/* Gold-on-white mark needs a light plate to read on a near-black footer. */
.footer-brand {
    display: inline-block;
    height: 72px;
    padding: var(--space-2) var(--space-3);
    margin-bottom: var(--space-4);
    background-color: #fff;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.footer-brand img {
    height: 100%;
    width: auto;
    transform: scale(1.25);
}

.footer-col h3 {
    color: #fff;
    font-size: var(--fs-md);
    margin-bottom: var(--space-5);
}

.footer-col p { margin-bottom: var(--space-5); max-width: 40ch; }

.footer-links { display: grid; gap: var(--space-1); }

.footer-links a,
.footer-contact-list a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 44px;              /* touch target */
    color: rgba(255, 255, 255, 0.70);
    transition: color var(--dur-base) var(--ease-out);
}

.footer-links a:hover,
.footer-contact-list a:hover { color: var(--gold-light); }

.footer-contact-list { display: grid; gap: var(--space-1); }

.footer-contact-list i {
    color: var(--gold-light);
    width: 1.1em;
    text-align: center;
}

.socials {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.socials a {
    display: grid;
    place-items: center;
    width: 44px;                    /* touch target */
    height: 44px;
    font-size: var(--fs-md);
    color: #fff;
    background-color: rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    transition: background-color var(--dur-base) var(--ease-out),
                color var(--dur-base) var(--ease-out),
                transform var(--dur-base) var(--ease-out);
}

.socials a:hover {
    background-color: var(--gold);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: var(--space-12);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    text-align: center;
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-8); }
}


/* ---------------------------------------------------------------------------
   15. BOTTOM NAV (mobile only)
   --------------------------------------------------------------------------- */
.bottom-nav {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: var(--z-bottomnav);
    display: flex;
    justify-content: space-around;
    background-color: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding-block: var(--space-2);
    padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom));
}

.bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 48px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--ink-subtle);
    touch-action: manipulation;
    transition: color var(--dur-fast) var(--ease-out);
}

.bottom-nav i { font-size: var(--fs-lg); }

.bottom-nav a[aria-current="page"] { color: var(--gold); }

.bottom-nav a:active { transform: scale(0.94); }

/* Reserve space so the fixed bar never covers the end of the page. */
body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }

@media (min-width: 900px) {
    .bottom-nav { display: none; }
    body { padding-bottom: 0; }
}


/* ---------------------------------------------------------------------------
   16. WHATSAPP FLOAT
   --------------------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    inset-inline-end: var(--space-4);
    bottom: calc(80px + env(safe-area-inset-bottom));
    z-index: var(--z-whatsapp);
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    font-size: 1.7rem;
    color: #fff;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: var(--shadow-4);
    touch-action: manipulation;
    transition: transform var(--dur-base) var(--ease-out),
                background-color var(--dur-base) var(--ease-out);
}

.whatsapp-float:hover {
    background-color: #1EA952;
    transform: scale(1.08);
}

.whatsapp-float:active { transform: scale(0.96); }

@media (min-width: 900px) {
    .whatsapp-float {
        bottom: var(--space-8);
        inset-inline-end: var(--space-8);
        width: 60px;
        height: 60px;
    }
}


/* ---------------------------------------------------------------------------
   17. LIGHTBOX
   --------------------------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: grid;
    place-items: center;
    padding: var(--space-4);
    background-color: rgba(12, 10, 9, 0.92);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-base) var(--ease-out),
                visibility var(--dur-base);
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: min(100%, 900px);
    max-height: 82vh;
    max-height: 82svh;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-4);
    transform: scale(0.96);
    transition: transform var(--dur-slow) var(--ease-out);
}

.lightbox.is-open img { transform: scale(1); }

.lightbox-btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    font-size: var(--fs-lg);
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    touch-action: manipulation;
    transition: background-color var(--dur-base) var(--ease-out);
}

.lightbox-btn:hover { background-color: rgba(255, 255, 255, 0.26); }

.lightbox-close {
    top: var(--space-4);
    inset-inline-end: var(--space-4);
}

.lightbox-prev { inset-inline-start: var(--space-3); }
.lightbox-next { inset-inline-end: var(--space-3); }

.lightbox-prev,
.lightbox-next { top: 50%; transform: translateY(-50%); }

html[dir="rtl"] .lightbox-prev i,
html[dir="rtl"] .lightbox-next i { transform: scaleX(-1); }

.lightbox-count {
    position: absolute;
    bottom: var(--space-5);
    inset-inline: 0;
    text-align: center;
    font-size: var(--fs-sm);
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.72);
}

@media (min-width: 768px) {
    .lightbox-prev { inset-inline-start: var(--space-8); }
    .lightbox-next { inset-inline-end: var(--space-8); }
}


/* ---------------------------------------------------------------------------
   18. SCROLL REVEAL
   ---------------------------------------------------------------------------
   Gated behind html.js so content is never invisible if the script fails.
   --------------------------------------------------------------------------- */
html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
}

html.js .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity var(--dur-reveal) var(--ease-out) var(--reveal-delay, 0ms),
                transform var(--dur-reveal) var(--ease-out) var(--reveal-delay, 0ms);
}


/* ---------------------------------------------------------------------------
   19. REDUCED MOTION
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html.js .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-media img { transition: none; }
}


/* ---------------------------------------------------------------------------
   20. PRINT
   --------------------------------------------------------------------------- */
@media print {
    .site-top,
    .bottom-nav,
    .whatsapp-float,
    .lightbox,
    .drawer,
    .scrim,
    .skip-link { display: none !important; }

    body { padding-bottom: 0; background: #fff; }
    .hero-banner { min-height: auto; }
}
