/* =====================================================================
   NURYA — نوريا · Modest Luxury Swimwear
   Premium design system · RTL / Arabic-first
   Aesthetic: Plum editorial — blush, plum, wine & rose
   ===================================================================== */

/* ----------------------------- Tokens ------------------------------ */
:root {
    /* v1.1 bright surfaces */
    --blush-tint: #FBF6F7;

    /* NURYA brand (Plum palette — see brand guidelines) */
    --plum: #6B2545;
    --wine: #2A0F1E;
    --blush: #FFFFFF;
    --rose: #D98BA5;
    --alert: #B0432F;
    --ok: #2F7A5B;

    /* Surfaces */
    --paper: #FFFFFF;          /* warm ivory page background */
    --paper-2: #FFFFFF;        /* cards / panels */
    --sand: #FAFAFA;           /* soft sand sections */
    --sand-deep: #E9E7E8;      /* deeper sand */
    --ink: #2A0F1E;            /* warm near-black — text & dark sections */
    --ink-2: #3A1729;
    --ink-soft: #4A3A40;       /* secondary text */
    --muted: #7A6570;          /* muted text */

    /* Accents */
    --gold: #6B2545;           /* antique gold — fine accents, hovers */
    --gold-soft: #D98BA5;
    --gold-faint: rgba(107, 37, 69, 0.14);
    --olive: #8E3B72;          /* product-tied sage, used sparingly */
    --wa: #1FA855;             /* refined whatsapp green */
    --wa-2: #15823f;

    /* Lines & shadows */
    --line: #E9E7E8;
    --line-strong: #D6D3D4;
    --line-light: rgba(255, 255, 255, 0.16);
    --shadow-soft: 0 24px 60px -28px rgba(42, 15, 30, 0.30);
    --shadow-card: 0 14px 36px -18px rgba(42, 15, 30, 0.18);
    --shadow-rise: 0 30px 70px -30px rgba(42, 15, 30, 0.38);

    /* Type */
    --f-display: 'Figtree', 'Almarai', system-ui, sans-serif;
    --f-latin: 'Figtree', system-ui, sans-serif;
    --f-body: 'Almarai', 'Figtree', system-ui, sans-serif;

    /* Motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --fast: 0.25s ease;
    --smooth: 0.6s var(--ease);

    /* Layout */
    --maxw: 1280px;
    --gutter: clamp(1.1rem, 4vw, 2.5rem);
    --radius: 6px;
    --radius-lg: 14px;

    /* Backward-compatible aliases (legacy inline styles / basket.html) */
    --bg-main: var(--paper);
    --bg-cards: var(--paper-2);
    --primary-dark: var(--ink);
    --teal-accent: #2C3A4F;
    --gold-accent: var(--gold);
    --sand-warm: var(--sand);
    --text-main: var(--ink);
    --text-secondary: var(--ink-soft);
    --text-muted: var(--muted);
    --whatsapp-green: var(--wa);
    --font-display: var(--f-display);
    --font-body: var(--f-body);
    --shadow-subtle: var(--shadow-card);
    --shadow-hover: var(--shadow-rise);
    --transition-fast: var(--fast);
    --transition-smooth: var(--smooth);
}

/* ------------------------------ Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
    font-family: var(--f-body);
    background-color: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: clip;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

/* Subtle paper texture / atmosphere */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(1100px 700px at 100% -10%, rgba(200, 173, 131, 0.10), transparent 60%),
        radial-gradient(900px 600px at -10% 110%, rgba(108, 111, 82, 0.07), transparent 60%);
}

/* ---------------------------- Typography --------------------------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.18; color: var(--ink); }

.section-title {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: clamp(1.9rem, 4.6vw, 3rem);
    line-height: 1.15;
    letter-spacing: 0.2px;
    text-align: center;
    color: var(--ink);
}

.section-eyebrow {
    display: block;
    text-align: center;
    font-family: var(--f-latin);
    font-style: italic;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

/* ------------------------------ Layout ----------------------------- */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
    position: relative;
    z-index: 1;
}

section { position: relative; z-index: 1; }
.text-center { text-align: center; }

/* ------------------------------ Buttons ---------------------------- */
.btn {
    --b-bg: var(--ink);
    --b-fg: var(--paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 2rem;
    background: var(--b-bg);
    color: var(--b-fg);
    font-family: var(--f-body);
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.4px;
    border-radius: var(--radius);
    border: 1px solid var(--b-bg);
    position: relative;
    overflow: hidden;
    transition: transform var(--fast), box-shadow var(--fast),
                background var(--fast), color var(--fast), border-color var(--fast);
    -webkit-tap-highlight-color: transparent;
}
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
    transform: translateX(-130%);
    transition: transform 0.7s var(--ease);
}
.btn:hover::after { transform: translateX(130%); }
.btn:active { transform: translateY(1px) scale(0.995); }

.btn-primary {
    --b-bg: var(--ink);
    --b-fg: var(--paper);
    box-shadow: var(--shadow-card);
}
.btn-primary:hover {
    --b-bg: #100d09;
    transform: translateY(-2px);
    box-shadow: var(--shadow-rise);
}

.btn-secondary {
    --b-bg: transparent;
    --b-fg: var(--ink);
    border-color: var(--line-strong);
    box-shadow: none;
}
.btn-secondary:hover {
    border-color: var(--ink);
    background: rgba(42, 15, 30, 0.04);
    transform: translateY(-2px);
}

.btn-large { padding: 1.15rem 2.4rem; font-size: 1.04rem; }

.btn .z-icon { display: inline-flex; }

/* z-icon system (icons.js injects SVGs) */
.z-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.z-icon svg { width: 1.05em; height: 1.05em; }

/* =====================================================================
   ANNOUNCEMENT BAR
   ===================================================================== */
.announcement-bar {
    background: var(--ink);
    color: var(--paper);
    font-size: 0.8rem;
    letter-spacing: 0.6px;
    font-weight: 500;
    overflow: hidden;
    position: relative;
    z-index: 60;
}
.announcement-track {
    display: flex;
    width: max-content;
    animation: ann-marquee 45s linear infinite;
}
.announcement-set {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    padding-inline: 1.75rem;
    padding-block: 0.55rem;
    white-space: nowrap;
    flex: none;
}
.announcement-track span { display: inline-flex; align-items: center; gap: 0.5rem; opacity: 0.92; }
.announcement-track .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-soft); flex: none; opacity: 1; }
@keyframes ann-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(50%); }
}

/* =====================================================================
   NAVBAR
   ===================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 241, 232, 0.82);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid var(--line);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 1rem;
}
.header-right, .header-left { display: flex; align-items: center; gap: 1rem; flex: 1; }
.header-left { justify-content: flex-end; }

.logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.logo img { height: 30px; width: auto; object-fit: contain; }
.logo a { display: block; }

/* Text wordmark logo (header) */
.logo-wordmark {
    display: inline-block;
    font-family: var(--f-latin);
    font-weight: 600;
    font-size: 1.7rem;
    line-height: 1;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink);
    white-space: nowrap;
    /* offset trailing tracking so the wordmark reads optically centred */
    padding-inline-start: 0.24em;
    transition: color var(--fast);
}
.logo-wordmark:hover { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
    position: relative;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--ink-soft);
    padding: 0.3rem 0;
    transition: color var(--fast);
}
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    inset-inline: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--smooth);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.mobile-only-link { display: none; }

.cart-icon-btn {
    position: relative;
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ink);
    border-radius: 50%;
    transition: background var(--fast), transform var(--fast);
}
.cart-icon-btn:hover { background: rgba(42, 15, 30, 0.06); transform: translateY(-1px); }
.cart-icon-btn svg { width: 22px; height: 22px; }
.cart-badge {
    position: absolute;
    top: 4px; inset-inline-start: 4px;
    min-width: 18px; height: 18px;
    padding: 0 4px;
    background: var(--gold);
    color: #fff;
    font-family: var(--f-body);
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    box-shadow: 0 0 0 2px var(--paper);
}

/* Hamburger */
.mobile-menu-toggle { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; }
.mobile-menu-toggle span {
    display: block; height: 1.5px; width: 22px; background: var(--ink);
    border-radius: 2px; transition: transform var(--fast), opacity var(--fast);
}
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { background: var(--paper); overflow: hidden; }
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: min(86vh, 760px);
    gap: 0;
    padding-inline: 0;
    max-width: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem clamp(1.5rem, 6vw, 6rem);
    max-width: 760px;
    margin-inline-start: auto;
}
.unified-hero { gap: 0; }

.category-tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.5rem;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--gold-faint);
    border-radius: 999px;
    background: var(--gold-faint);
}

.hero-content .mobile-title,
h1.mobile-title {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(2.3rem, 4.4vw, 3.7rem);
    line-height: 1.1;
    letter-spacing: 0.3px;
    margin-top: 1.4rem;
    color: var(--ink);
    overflow-wrap: break-word;
}
.hero-content .mobile-desc {
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.85;
    max-width: 46ch;
    margin-top: 1.4rem;
}

.hero-actions { margin-top: 2.2rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.hero-trustline {
    margin-top: 1.6rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.86rem;
}
.hero-trustline span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-trustline .z-icon { color: var(--gold); }

/* Hero image / slider */
.hero-image.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    background: var(--sand-deep);
}
.hero-slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.2s var(--ease), transform 6s ease;
    will-change: opacity, transform;
}
.hero-slider .slide.active { opacity: 1; transform: scale(1); }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-slider::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(42,15,30,0) 60%, rgba(42,15,30,0.28));
    pointer-events: none;
}
.slider-dots {
    position: absolute;
    bottom: 1.4rem; inset-inline-start: 0; inset-inline-end: 0;
    display: flex; justify-content: center; gap: 0.6rem;
    z-index: 3;
}
.slider-dots .dot {
    width: 8px; height: 8px; border-radius: 999px;
    background: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: width var(--fast), background var(--fast);
}
.slider-dots .dot.active { width: 26px; background: #fff; }

/* =====================================================================
   TRUST BAR
   ===================================================================== */
.trust-bar {
    background: var(--ink);
    color: var(--paper);
    border-block: 1px solid rgba(255,255,255,0.06);
}
.trust-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(1.4rem, 5vw, 4rem);
    padding-block: 1.05rem;
}
.trust-container > span {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    letter-spacing: 0.4px;
    font-weight: 500;
    color: rgba(246,241,232,0.92);
}
.trust-container .z-icon { color: var(--gold-soft); font-size: 1.1rem; }

/* =====================================================================
   FEATURES / PROMISE
   ===================================================================== */
.features-section { padding-block: clamp(4.5rem, 9vw, 7.5rem); background: var(--paper); }
.promise-intro { max-width: 760px; margin: 0 auto clamp(3rem, 6vw, 4.5rem); text-align: center; }
.promise-intro p {
    color: var(--ink-soft);
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
    line-height: 1.9;
    margin-top: 1.4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
}
.feature-card {
    position: relative;
    text-align: center;
    padding: 2.6rem 1.6rem;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform var(--smooth), box-shadow var(--smooth), border-color var(--smooth);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    border-color: var(--gold-faint);
}
.feature-card .f-index {
    font-family: var(--f-latin);
    font-style: italic;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.6rem;
}
.feature-card .f-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1.4rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--gold-faint);
    color: var(--gold);
}
.feature-card .f-icon .z-icon { font-size: 1.7rem; }
.feature-card h3 {
    font-family: var(--f-display);
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    color: var(--ink);
}
.feature-card p { color: var(--muted); font-size: 0.96rem; line-height: 1.75; }

/* =====================================================================
   BRAND STORY
   ===================================================================== */
.story-section {
    background: var(--ink);
    color: var(--paper);
    padding-block: clamp(5rem, 10vw, 8rem);
    overflow: hidden;
}
.story-section::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(700px 500px at 12% 0%, rgba(176,138,82,0.16), transparent 60%),
        radial-gradient(700px 500px at 88% 100%, rgba(108,111,82,0.14), transparent 60%);
    pointer-events: none;
}
.story-layout {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
    position: relative;
    z-index: 1;
}
.story-container { max-width: none; text-align: start; }
.story-container .section-eyebrow { text-align: start; }
.story-container h2 {
    font-family: var(--f-display);
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    color: var(--paper);
    margin-bottom: 1.8rem;
}
.story-container p {
    color: rgba(246,241,232,0.78);
    line-height: 1.95;
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    margin-bottom: 1.4rem;
}
.story-tagline {
    font-family: var(--f-display) !important;
    font-size: clamp(1.3rem, 2.4vw, 1.8rem) !important;
    color: var(--gold-soft) !important;
    font-style: normal !important;
    letter-spacing: 2px;
    margin-top: 1.2rem;
}
.story-figure {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-rise);
}
.story-figure img { width: 100%; height: 100%; object-fit: cover; }
.story-figure::after {
    content: "";
    position: absolute; inset: 0;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

/* =====================================================================
   PRODUCT SECTION
   ===================================================================== */
.product-section { padding-block: clamp(4rem, 8vw, 7rem); background: var(--sand); }
.product-container {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

/* Gallery */
.product-gallery {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 1rem;
    position: sticky;
    top: 96px;
}
.thumbnail-gallery { display: flex; flex-direction: column; gap: 0.8rem; }
.thumbnail {
    width: 84px; height: 104px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    border: 1px solid var(--line);
    opacity: 0.78;
    transition: opacity var(--fast), border-color var(--fast), transform var(--fast);
}
.thumbnail:hover { opacity: 1; transform: translateY(-2px); }
.thumbnail.active { opacity: 1; border-color: var(--ink); }
.main-image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--sand-deep);
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-card);
    cursor: zoom-in;
}
#main-product-image {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}
.main-image-container:hover #main-product-image { transform: scale(1.05); }
.main-image-container::after {
    content: "";
    position: absolute; inset: 0;
    border: 1px solid rgba(42,15,30,0.06);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

/* Info column */
.product-info { padding-top: 0.4rem; }

.product-header { margin-bottom: 1.8rem; }
.product-header .category-tag { margin-bottom: 1rem; }
.product-title {
    font-family: var(--f-display);
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    line-height: 1.18;
    color: var(--ink);
    margin-bottom: 0.8rem;
}
.rating-stars {
    display: flex; align-items: center; gap: 0.25rem;
    color: var(--gold);
}
.rating-stars .z-icon { font-size: 1rem; }
.review-count { color: var(--muted); font-size: 0.85rem; margin-inline-start: 0.5rem; font-family: var(--f-body); }

/* Selectors */
.product-selection-color,
.product-selection-size,
.product-selection-bundle { margin-bottom: 1.8rem; }

.selector-header { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
.selector-header h3 {
    font-family: var(--f-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink);
}
.selected-value { color: var(--muted); font-size: 0.92rem; font-weight: 500; }

.color-options { display: flex; gap: 0.8rem; }
.color-swatch {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    position: relative;
    transition: transform var(--fast);
    box-shadow: inset 0 0 0 2px var(--paper-2);
}
.color-swatch:hover { transform: scale(1.06); }
.color-swatch.active { box-shadow: inset 0 0 0 2px var(--paper-2), 0 0 0 2px var(--ink); }

.size-options { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.size-btn {
    min-width: 50px;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: transparent;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink-soft);
    transition: all var(--fast);
}
.size-btn:hover { border-color: var(--ink); color: var(--ink); }
.size-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.size-btn.shake { animation: shake 0.4s; }
@keyframes shake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Quantity */
.quantity-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    overflow: hidden;
}
.qty-btn {
    width: 40px; height: 40px;
    font-size: 1.2rem;
    color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    transition: background var(--fast);
}
.qty-btn:hover { background: rgba(42,15,30,0.06); }
.qty-input {
    width: 46px; height: 40px;
    text-align: center;
    border: none;
    border-inline: 1px solid var(--line);
    background: transparent;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
}

/* Bundles */
.bundle-options { display: grid; gap: 0.7rem; }
.bundle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--paper-2);
    cursor: pointer;
    position: relative;
    transition: border-color var(--fast), box-shadow var(--fast), transform var(--fast);
}
.bundle-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.bundle-card.active {
    border-color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ink), var(--shadow-card);
}
.bundle-card.active::before {
    content: "✓";
    position: absolute;
    inset-inline-end: 1.2rem; top: 50%;
    transform: translateY(-50%);
    display: none;
}
.bundle-info { display: flex; flex-direction: column; gap: 0.3rem; }
.bundle-title { font-weight: 700; font-size: 1rem; color: var(--ink); display: flex; align-items: center; gap: 0.4rem; }
.bundle-name-fr { font-family: var(--f-latin); font-style: italic; color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.bundle-badge {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--olive);
    background: rgba(108,111,82,0.12);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}
.bundle-price { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); white-space: nowrap; }

/* Price & stock */
.product-price-stock {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-block: 1.4rem;
    margin-bottom: 1.4rem;
    border-block: 1px solid var(--line);
}
.price-row { display: flex; align-items: baseline; gap: 0.8rem; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: 1.1rem; font-weight: 500; }
.price-saving {
    display: inline-block;
    margin-block-start: 0.55rem;
    color: var(--olive);
    background: rgba(108,111,82,0.10);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
}
.bundle-extra {
    display: block;
    margin-block-start: 0.3rem;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
}
.offer-deadline {
    margin: 0 0 1rem;
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-weight: 600;
    background: var(--gold-faint);
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
}
.product-price {
    font-family: var(--f-display);
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 600;
    color: var(--ink);
    line-height: 1;
}
.price-note { color: var(--olive); font-size: 0.85rem; font-weight: 600; margin-top: 0.4rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.stock-status {
    display: inline-flex; align-items: center; gap: 0.45rem;
    color: #B0432F;
    font-size: 0.86rem;
    font-weight: 600;
    background: rgba(176,67,47,0.08);
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
}
.stock-status .z-icon { color: #C9522E; }
.stock-status[hidden] { display: none; }
/* When the stock pill sits under the size grid (pressure placement). */
.product-selection-size .stock-status { margin-block-start: .9rem; }

/* CTA group */
.product-cta-container { display: grid; gap: 0.8rem; margin-bottom: 1.4rem; }
.product-cta-container .btn { width: 100%; }
.add-basket-btn { background: transparent !important; }

/* Guarantee cards */
.product-actions { margin-top: 2rem; }
.product-desc { color: var(--ink-soft); line-height: 1.85; margin-bottom: 1.8rem; }
.guarantee-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
}
.g-card {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--ink-soft);
}
.g-card .z-icon { color: var(--gold); font-size: 1.15rem; }

/* =====================================================================
   FAST ORDER FORM
   ===================================================================== */
.order-form-section {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-card);
    animation: form-in 0.5s var(--ease);
}
@keyframes form-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.order-form-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.step-indicator { display: flex; flex-direction: column; gap: 0.5rem; }
.step-badge {
    align-self: flex-start;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-faint);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}
.order-form-title { font-family: var(--f-display); font-size: 1.2rem; color: var(--ink); }
.order-form-close {
    width: 34px; height: 34px; border-radius: 50%;
    font-size: 1.5rem; color: var(--muted);
    display: flex; align-items: center; justify-content: center;
    transition: background var(--fast), color var(--fast);
}
.order-form-close:hover { background: rgba(42,15,30,0.06); color: var(--ink); }

.order-summary-mini {
    display: flex; flex-wrap: wrap; gap: 0.7rem 1.2rem;
    padding: 0.9rem 1rem;
    background: var(--sand);
    border-radius: var(--radius);
    margin-bottom: 1.3rem;
    font-size: 0.86rem;
    color: var(--ink-soft);
}
.order-summary-mini span { display: inline-flex; align-items: center; gap: 0.4rem; }
.order-summary-mini .z-icon { color: var(--gold); }

.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--ink-soft);
    margin-bottom: 0.45rem;
}
.form-group input {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--paper);
    font-size: 1rem;
    color: var(--ink);
    transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
}
.form-group input::placeholder { color: var(--muted); }
.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--paper-2);
    box-shadow: 0 0 0 3px var(--gold-faint);
}
.form-group input.error { border-color: #C0392B; box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }

/* Phone field: editable country code (+212 default) + national number,
   styled as one cohesive brand input. dir=ltr so it reads "+212 612345678". */
.phone-field {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--paper);
    overflow: hidden;
    transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
}
.phone-field:focus-within {
    border-color: var(--gold);
    background: var(--paper-2);
    box-shadow: 0 0 0 3px var(--gold-faint);
}
.phone-field input {
    border: none;
    background: transparent;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    color: var(--ink);
    outline: none;
}
.phone-field input:focus { outline: none; box-shadow: none; background: transparent; }
.phone-field .phone-cc {
    flex: 0 0 auto;
    width: 4.4rem;
    text-align: center;
    font-weight: 600;
    color: var(--ink-soft);
    padding-inline: 0.4rem;
    border-inline-end: 1px solid var(--line-strong);
}
.phone-field .phone-national {
    flex: 1 1 auto;
    width: 100%;
    letter-spacing: 1px;
}
.phone-field.error { border-color: #C0392B; box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }

.form-actions { display: grid; gap: 0.7rem; margin-top: 1.3rem; }
.order-submit-btn { width: 100%; }
.form-whatsapp-btn {
    width: 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    padding: 1rem 1.6rem;
    background: var(--wa);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 700;
    transition: background var(--fast), transform var(--fast);
}
.form-whatsapp-btn:hover { background: var(--wa-2); transform: translateY(-2px); }
.form-whatsapp-btn .wa-icon { width: 1.2em; height: 1.2em; }

.submit-loader { display: inline-flex; align-items: center; gap: 0.5rem; }
.spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-note {
    display: flex; align-items: center; gap: 0.5rem;
    margin-top: 1.1rem;
    color: var(--muted);
    font-size: 0.82rem;
}
.form-note .z-icon { color: var(--gold); }

/* Success */
.order-success { text-align: center; padding: 2rem 1rem; }
.success-icon { font-size: 2.6rem; color: var(--olive); margin-bottom: 0.8rem; }
.order-success h3 { font-family: var(--f-display); font-size: 1.5rem; margin-bottom: 0.6rem; }
.order-success p { color: var(--ink-soft); }

/* =====================================================================
   TESTIMONIALS (new)
   ===================================================================== */
.testimonials-section { padding-block: clamp(4rem, 8vw, 7rem); background: var(--paper); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.testimonial-card {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem 1.8rem;
    transition: transform var(--smooth), box-shadow var(--smooth);
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.testimonial-stars { color: var(--gold); display: flex; gap: 0.2rem; margin-bottom: 1rem; }
.testimonial-stars .z-icon { font-size: 0.95rem; }
.testimonial-text { color: var(--ink-soft); line-height: 1.85; font-size: 1.02rem; margin-bottom: 1.4rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.7rem; }
.testimonial-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--gold-faint);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.1rem;
}
.testimonial-name { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.testimonial-meta { color: var(--muted); font-size: 0.8rem; display: inline-flex; align-items: center; gap: 0.3rem; }
.testimonial-meta .z-icon { color: var(--olive); font-size: 0.85rem; }

/* =====================================================================
   INSTAGRAM STRIP (new)
   ===================================================================== */
/* ---- Lifestyle Gallery ---- */
.gallery-section { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--paper); }
.gallery-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.gallery-sub { color: var(--ink-soft); margin-top: 0.5rem; font-size: 1.02rem; }

/* featured reel video card (portrait, centered, sensible size) */
.gallery-video-wrap { display: flex; justify-content: center; margin-bottom: clamp(1.5rem, 3vw, 2.4rem); }
.gallery-video {
    position: relative;
    display: block;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 9 / 16;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    background: var(--ink);
    box-shadow: var(--shadow-card);
}
.gallery-video img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.7s var(--ease); }
.gallery-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(42,15,30,0.05) 40%, rgba(42,15,30,0.55)); }
.gallery-video:hover img { transform: scale(1.04); }
.gallery-video-play {
    position: absolute; inset: 0; margin: auto;
    width: 72px; height: 72px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(246,241,232,0.94); color: var(--ink);
    border-radius: 50%; z-index: 2;
    box-shadow: 0 8px 28px -6px rgba(0,0,0,0.5);
    transition: transform 0.3s var(--ease);
}
.gallery-video:hover .gallery-video-play { transform: scale(1.09); }
.gallery-video-play svg { width: 32px; height: 32px; margin-inline-start: 4px; }
.gallery-video-label {
    position: absolute; bottom: 16px; inset-inline-start: 0; inset-inline-end: 0;
    text-align: center; color: #fff; z-index: 2;
    font-weight: 600; letter-spacing: 0.5px; font-size: 0.95rem;
}
.gallery-video-badge {
    position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2;
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: rgba(42,15,30,0.72); color: var(--gold-soft);
    padding: 5px 12px; border-radius: 30px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px;
}
.gallery-video-badge .z-icon svg { width: 14px; height: 14px; }

/* WhatsApp reviews under testimonials */
.wa-reviews { margin-top: clamp(2.5rem, 5vw, 4rem); }
.wa-reviews-head { text-align: center; margin-bottom: clamp(1.5rem, 3vw, 2.3rem); }
.wa-reviews-title { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--ink); margin: 0.3rem 0; }
.wa-reviews-sub { color: var(--ink-soft); font-size: 0.98rem; }
.wa-reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(0.7rem, 1.6vw, 1.1rem);
    max-width: 560px;
    margin-inline: auto;
}
.wa-shot {
    margin: 0; border-radius: 12px; overflow: hidden;
    background: var(--sand-deep); box-shadow: var(--shadow-card);
    cursor: zoom-in; border: 1px solid var(--line);
    aspect-ratio: 3 / 4;
}
.wa-shot.is-hidden { display: none; }
.wa-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform 0.6s var(--ease); }
.wa-shot:hover img { transform: scale(1.04); }
.wa-more-wrap { text-align: center; margin-top: clamp(1.1rem, 2.5vw, 1.6rem); }
.wa-more-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: transparent; color: var(--ink);
    border: 1px solid var(--gold); border-radius: 999px;
    padding: 0.62rem 1.7rem;
    font-family: inherit; font-size: 0.95rem; font-weight: 600;
    cursor: pointer; transition: background var(--fast), color var(--fast), border-color var(--fast);
}
.wa-more-btn::after { content: "\2193"; font-size: 0.9em; transition: transform var(--fast); }
.wa-more-btn.is-open::after { transform: rotate(180deg); }
.wa-more-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 520px) { .wa-reviews-grid { max-width: 420px; } }

/* reel video inside the lightbox (native player) */
.modal-video {
    border: none; border-radius: 14px; background: #000;
    max-width: min(440px, 94vw); max-height: 86vh;
    width: auto; height: auto; display: block;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.6rem, 1.5vw, 1.1rem);
}
.gallery-tile {
    margin: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: var(--sand-deep);
    box-shadow: var(--shadow-card);
}
.gallery-tile img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    transition: transform 0.7s var(--ease);
    cursor: zoom-in;
}
.gallery-tile:hover img { transform: scale(1.05); }
.gallery-cta { text-align: center; margin-top: clamp(2rem, 4vw, 2.8rem); }
.btn-ig {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.6rem;
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--gold);
}
.btn-ig:hover { background: var(--ink-2); color: #fff; }
.btn-ig .social-icon { width: 20px; height: 20px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { gap: 0.5rem; } }

/* size hint under the size selector */
.size-hint {
    display: flex; align-items: center; gap: 0.45rem;
    margin-top: 0.8rem;
    font-size: 0.92rem;
    color: var(--ink-soft);
}
.size-hint .z-icon { color: var(--gold); flex: 0 0 auto; }
.size-hint .z-icon svg { width: 16px; height: 16px; }

.insta-section { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--sand); }
.insta-head { text-align: center; margin-bottom: 2.5rem; }
.insta-handle {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-top: 0.8rem;
    font-weight: 600; color: var(--gold);
    transition: color var(--fast);
}
.insta-handle:hover { color: var(--ink); }
.insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}
.insta-tile {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
}
.insta-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.insta-tile::after {
    content: "";
    position: absolute; inset: 0;
    background: rgba(42,15,30,0);
    transition: background var(--fast);
}
.insta-tile:hover img { transform: scale(1.08); }
.insta-tile:hover::after { background: rgba(42,15,30,0.18); }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-section { padding-block: clamp(4rem, 8vw, 7rem); background: var(--paper); }
.faq-container { max-width: 820px; margin-inline: auto; }
.faq-section .section-title { margin-bottom: clamp(2rem, 4vw, 3rem); }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-question {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    text-align: start;
    padding: 1.4rem 0.3rem;
    font-family: var(--f-display);
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    font-weight: 500;
    color: var(--ink);
    transition: color var(--fast);
}
.faq-question:hover { color: var(--gold); }
.faq-icon {
    flex-shrink: 0;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 300;
    color: var(--gold);
    transition: transform var(--smooth);
    font-family: var(--f-body);
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease);
}
.faq-answer p {
    color: var(--ink-soft);
    line-height: 1.85;
    padding: 0 0.3rem 1.5rem;
    font-size: 1rem;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--ink); color: rgba(246,241,232,0.7); padding-top: clamp(3.5rem, 7vw, 5rem); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: clamp(2rem, 5vw, 4rem);
    padding-bottom: 3rem;
}
.footer-brand { max-width: 360px; }
.footer-logo { height: 30px; margin-bottom: 1.2rem; filter: brightness(0) invert(1); opacity: 0.95; }

/* Text wordmark logo (footer) */
.footer-wordmark {
    display: inline-block;
    font-family: var(--f-latin);
    font-weight: 600;
    font-size: 1.7rem;
    line-height: 1;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--paper);
    padding-inline-start: 0.24em;
    margin-bottom: 1.2rem;
}
.brand-bio { line-height: 1.8; font-size: 0.94rem; margin-bottom: 1.4rem; }
.social-links { display: flex; gap: 0.8rem; }
.social-links a {
    width: 42px; height: 42px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(246,241,232,0.85);
    transition: background var(--fast), color var(--fast), border-color var(--fast), transform var(--fast);
}
.social-links a:hover { background: var(--gold); border-color: var(--gold); color: #fff; transform: translateY(-2px); }
.social-icon { width: 18px; height: 18px; }

.footer-links-col h4 {
    font-family: var(--f-body);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 1.2rem;
    font-weight: 700;
}
.footer-links-col a {
    display: block;
    color: rgba(246,241,232,0.7);
    font-size: 0.94rem;
    padding: 0.4rem 0;
    transition: color var(--fast), padding-inline-start var(--fast);
}
.footer-links-col a:hover { color: var(--paper); padding-inline-start: 6px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-block-start: 1.5rem; padding-block-end: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
.footer-bottom-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.copyright { font-size: 0.84rem; color: rgba(246,241,232,0.6); }
.payment-icons { display: flex; gap: 0.8rem; color: var(--gold-soft); font-size: 1.2rem; }

/* =====================================================================
   STICKY CTA
   ===================================================================== */
.sticky-cta-bar {
    position: fixed;
    inset-inline: 0; bottom: 0;
    z-index: 40;
    background: rgba(246,241,232,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding: 0.8rem 0;
    transform: translateY(0);
    opacity: 1;
    transition: transform var(--smooth), opacity var(--smooth);
    box-shadow: 0 -10px 30px -18px rgba(42,15,30,0.3);
}
.sticky-cta-bar.hidden-cta { transform: translateY(120%); opacity: 0; pointer-events: none; }
.sticky-cta-btn { width: 100%; }
.sticky-cta-bar .container { padding-inline: var(--gutter); }

/* =====================================================================
   FLOATING WHATSAPP
   ===================================================================== */
.floating-whatsapp {
    position: fixed;
    inset-inline-start: 22px; bottom: 92px;
    z-index: 45;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--wa);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 28px -8px rgba(31,168,85,0.6);
    transition: transform var(--fast), box-shadow var(--fast);
    animation: wa-pulse 2.6s var(--ease) infinite;
}
.floating-whatsapp svg { width: 28px; height: 28px; }
.floating-whatsapp:hover { transform: scale(1.08) translateY(-2px); }
@keyframes wa-pulse {
    0% { box-shadow: 0 12px 28px -8px rgba(31,168,85,0.6), 0 0 0 0 rgba(31,168,85,0.4); }
    70% { box-shadow: 0 12px 28px -8px rgba(31,168,85,0.6), 0 0 0 14px rgba(31,168,85,0); }
    100% { box-shadow: 0 12px 28px -8px rgba(31,168,85,0.6), 0 0 0 0 rgba(31,168,85,0); }
}
@media (prefers-reduced-motion: reduce) { .floating-whatsapp { animation: none; } }

/* =====================================================================
   IMAGE MODAL / LIGHTBOX
   ===================================================================== */
.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(20,16,12,0.92);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.image-modal.show { display: flex; animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
    max-width: 90vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: var(--radius);
    cursor: zoom-in;
    transition: transform 0.4s var(--ease);
}
.modal-content.zoomed { transform: scale(1.8); cursor: zoom-out; }
.close-modal {
    position: absolute;
    top: 1.4rem; inset-inline-end: 1.6rem;
    font-size: 2.4rem;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    line-height: 1;
    transition: color var(--fast), transform var(--fast);
}
.close-modal:hover { color: #fff; transform: rotate(90deg); }

/* Lightbox prev / next navigation */
.modal-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px;
    display: none; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff; font-size: 2rem; line-height: 1;
    border-radius: 50%; cursor: pointer; z-index: 3;
    padding-bottom: 4px;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    transition: background var(--fast), transform var(--fast);
}
.image-modal.has-nav .modal-nav { display: inline-flex; }
.modal-prev { left: 1.1rem; }
.modal-next { right: 1.1rem; }
.modal-nav:hover { background: rgba(255,255,255,0.26); }
.modal-nav:active { transform: translateY(-50%) scale(0.9); }
@media (max-width: 520px) {
    .modal-nav { width: 40px; height: 40px; font-size: 1.7rem; }
    .modal-prev { left: 0.4rem; }
    .modal-next { right: 0.4rem; }
}

/* =====================================================================
   CART DRAWER
   ===================================================================== */
.cart-overlay {
    position: fixed; inset: 0;
    z-index: 90;
    background: rgba(20,16,12,0.5);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--smooth), visibility var(--smooth);
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed;
    top: 0; bottom: 0;
    left: 0; right: auto;
    z-index: 100;
    width: min(420px, 92vw);
    background: var(--paper);
    display: flex;
    flex-direction: column;
    transform: translateX(-110%);
    visibility: hidden;
    transition: transform var(--smooth), visibility var(--smooth);
    box-shadow: var(--shadow-rise);
}
.cart-drawer.active { transform: translateX(0); visibility: visible; }

.cart-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.4rem 1.6rem;
    border-bottom: 1px solid var(--line);
}
.cart-header h2 { font-family: var(--f-display); font-size: 1.4rem; }
.close-cart-btn {
    width: 36px; height: 36px; border-radius: 50%;
    font-size: 1.6rem; color: var(--muted);
    display: flex; align-items: center; justify-content: center;
    transition: background var(--fast), color var(--fast);
}
.close-cart-btn:hover { background: rgba(42,15,30,0.06); color: var(--ink); }

.cart-items { flex: 1; overflow-y: auto; padding: 1.2rem 1.6rem; }
.empty-cart-msg { text-align: center; color: var(--muted); padding: 3rem 1rem; }

.cart-item {
    display: flex; gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}
.cart-item-img {
    width: 78px; height: 96px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}
.cart-item-info { flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.cart-item-title { font-family: var(--f-display); font-size: 1.05rem; color: var(--ink); }
.cart-item-meta { font-size: 0.82rem; color: var(--muted); }
.cart-item-price { font-size: 0.88rem; color: var(--ink-soft); font-weight: 600; }
.cart-item-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 0.4rem; }
.cart-item-actions .quantity-controls { transform: scale(0.9); transform-origin: inline-start; }
.remove-item-btn {
    font-size: 0.82rem;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--fast);
}
.remove-item-btn:hover { color: #B0432F; }

/* Savings bar */
.cart-savings-bar {
    padding: 1rem 1.6rem;
    background: var(--sand);
    border-top: 1px solid var(--line);
}
.savings-unlocked { font-size: 0.9rem; font-weight: 700; color: var(--olive); margin-bottom: 0.35rem; }
.savings-next { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.savings-amount { color: var(--gold); font-weight: 700; }
.savings-progress {
    height: 6px;
    background: var(--sand-deep);
    border-radius: 999px;
    overflow: hidden;
}
.savings-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-soft), var(--gold));
    border-radius: 999px;
    transition: width var(--smooth);
}

.cart-footer { padding: 1.4rem 1.6rem; border-top: 1px solid var(--line); background: var(--paper-2); }
.cart-total {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 700;
}
.cart-total span:first-child { color: var(--ink-soft); }
.cart-total #cart-total-price { font-family: var(--f-display); font-size: 1.4rem; color: var(--ink); }
.order-now-btn { width: 100%; }

/* =====================================================================
   TOAST
   ===================================================================== */
.toast-notification {
    position: fixed;
    bottom: 100px; inset-inline-end: 22px;
    z-index: 150;
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: var(--ink);
    color: var(--paper);
    padding: 0.95rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 500;
    box-shadow: var(--shadow-rise);
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--smooth), opacity var(--smooth), visibility var(--smooth);
}
.toast-notification.show { transform: translateY(0); opacity: 1; visibility: visible; }
.toast-notification .z-icon { color: var(--gold-soft); }

/* =====================================================================
   BASKET PAGE (basket.html)
   ===================================================================== */
.basket-section { padding-block: clamp(3rem, 7vw, 5rem); min-height: 60vh; background: var(--paper); }
.basket-section .section-title { text-align: center; margin-bottom: 0.6rem; }
.title-underline {
    width: 64px; height: 2px;
    background: var(--gold);
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    border-radius: 2px;
}
#full-cart-items-container { max-width: 760px; margin-inline: auto; }

/* Basket: before / after price summary */
.full-cart-summary {
    margin-top: 2rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    max-width: 420px;
    margin-inline: auto;
}
.full-cart-price-compare {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1rem 1.2rem;
    background: var(--sand);
    border-radius: var(--radius);
}
.full-cart-price-compare .ft-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--ink-soft);
}
.full-cart-price-compare .ft-before {
    text-decoration: line-through;
    color: var(--muted);
    font-weight: 500;
}
.full-cart-price-compare .ft-savings .ft-key { color: var(--olive); font-weight: 600; }
.full-cart-price-compare .ft-save { color: var(--olive); font-weight: 700; }
.full-cart-total {
    text-align: center;
    font-family: var(--f-display);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.6rem;
}
.full-cart-total span { color: var(--ink); }
.full-cart-actions { display: flex; flex-direction: column; gap: 0.9rem; }

/* =====================================================================
   SCROLL REVEAL (driven by script.js: .fade-up + .visible)
   ===================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-up.visible { opacity: 1; transform: none; }
/* Never hide critical above-the-fold or purchase content, even before the JS reveal fires */
.hero-content.fade-up,
.hero-image.fade-up,
.product-gallery.fade-up,
.product-info.fade-up {
    opacity: 1 !important;
    transform: none !important;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
    .hero-container { min-height: auto; }
    .product-gallery { position: static; }
}

@media (max-width: 860px) {
    /* Solid navbar on mobile: backdrop-filter would trap the fixed off-canvas menu inside the navbar box */
    .navbar {
        background: var(--paper);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    /* Nav → mobile */
    .mobile-menu-toggle { display: flex; }
    .header-left { flex: 0; }
    .header-right { flex: 0; }
    .nav-links {
        position: fixed;
        top: 0; bottom: 0;
        left: 0; right: auto;
        width: min(320px, 86vw);
        background: var(--paper);
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        padding: 6rem 2rem 2rem;
        transform: translateX(-110%);
        visibility: hidden;
        transition: transform var(--smooth), visibility var(--smooth);
        box-shadow: var(--shadow-rise);
        z-index: 80;
    }
    .nav-links.active { transform: translateX(0); visibility: visible; }
    .nav-links a { font-size: 1.2rem; font-family: var(--f-display); }
    .nav-links a::after { display: none; }
    .mobile-only-link { display: block; color: var(--gold) !important; }

    /* Hero stacks */
    .hero-container { grid-template-columns: 1fr; }
    .hero-content {
        order: 2;
        padding: 2.6rem var(--gutter) 3rem;
        max-width: none;
        margin-inline-start: 0;
        text-align: center;
        align-items: center;
    }
    .category-tag { align-self: center; }
    .hero-content .mobile-desc { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-trustline { justify-content: center; }
    .hero-image.hero-slider { order: 1; min-height: 64vh; aspect-ratio: 3/4; }

    /* Story stacks */
    .story-layout { grid-template-columns: 1fr; }
    .story-figure { order: -1; max-width: 420px; margin-inline: auto; width: 100%; }
    .story-container { text-align: center; }
    .story-container .section-eyebrow { text-align: center; }

    /* Product stacks */
    .product-container { grid-template-columns: 1fr; }
    .product-gallery { grid-template-columns: 1fr; }
    .thumbnail-gallery { flex-direction: row; order: 2; justify-content: center; flex-wrap: wrap; }
    .main-image-container { order: 1; }

    /* Grids → fewer columns */
    .features-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
    .testimonials-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
    .insta-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { max-width: none; margin-inline: auto; }
    .social-links { justify-content: center; }
    .footer-bottom-content { justify-content: center; text-align: center; }

    .floating-whatsapp { bottom: 90px; inset-inline-start: 16px; width: 52px; height: 52px; }
    .floating-whatsapp svg { width: 26px; height: 26px; }
}

@media (max-width: 480px) {
    .nav-container { min-height: 64px; }
    .logo img { height: 26px; }
    .logo-wordmark { font-size: 1.45rem; letter-spacing: 0.2em; padding-inline-start: 0.2em; }
    .product-price-stock { flex-direction: column; align-items: flex-start; }
    .guarantee-cards { grid-template-columns: 1fr; }
    .order-summary-mini { font-size: 0.8rem; }
    .toast-notification { inset-inline: 16px; bottom: 96px; justify-content: center; }
}

/* --- v1.9 — always-visible order form polish --- */
.order-form-section .opt { opacity: .55; font-size: .8em; font-weight: 400; }
.product-secondary-action { margin-top: 1rem; }
.product-secondary-action .add-basket-btn { width: 100%; justify-content: center; display: inline-flex; align-items: center; gap: .5rem; }

/* ---- Hero offer line (price + COD + delivery) ---- */
.hero-offer {
	font-family: 'Almarai', sans-serif;
	font-size: 1.02rem;
	font-weight: 600;
	color: var(--ink, #2A0F1E);
	margin: 14px 0 6px;
	letter-spacing: .2px;
}
.hero-offer strong { color: var(--gold, #6B2545); }

/* ---- Delivery reassurance under the form note ---- */
.delivery-note {
	color: var(--olive, #8E3B72) !important;
	font-weight: 600;
}

/* ---- Add-to-basket demoted to a quiet text link ---- */
.basket-link-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	color: var(--muted, #7A6570);
	font-family: 'Almarai', sans-serif;
	font-size: .92rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	padding: 8px 4px;
	margin: 4px auto 0;
}
.basket-link-btn:hover { color: var(--ink, #2A0F1E); }

/* ---- "Made with love in Tanger" footer line ---- */
.made-with-love {
	font-family: 'Almarai', sans-serif;
	font-size: .85rem;
	color: var(--muted, #7A6570);
	margin-top: 6px;
	letter-spacing: .3px;
}
.love-heart { color: #C0392B; }

/* ---- Footer phone link: keep right-aligned like the other support links ---- */
.footer-links-col a.footer-phone {
	direction: rtl;
	unicode-bidi: plaintext;
}
.footer-links-col a.footer-phone span[dir="ltr"] {
	unicode-bidi: embed;
}

/* -------------------------------------------------------------------------
 * Footer language switcher (ar / fr / en) — matches brand identity.
 * Native <details> dropdown: accessible, no JS dependency. Direction-agnostic
 * (uses logical properties) so it sits correctly in both RTL and LTR.
 * ---------------------------------------------------------------------- */
.lang-switch { display: inline-flex; align-items: center; }
.lang-dd { position: relative; }
.lang-dd > summary {
	list-style: none; cursor: pointer; display: inline-flex; align-items: center;
	gap: .5rem; padding: .5rem .9rem; border: 1px solid var(--gold-faint);
	border-radius: 999px; color: rgba(255,255,255,0.85);
	font-family: var(--font-body); font-size: .85rem; letter-spacing: .01em;
	transition: border-color .2s ease, color .2s ease;
}
.lang-dd > summary::-webkit-details-marker { display: none; }
.lang-dd > summary:hover { border-color: var(--gold-soft); color: #fff; }
.lang-dd .lang-globe { opacity: .85; flex: none; }
.lang-dd .lang-caret { font-size: .7rem; opacity: .7; transition: transform .2s ease; }
.lang-dd[open] .lang-caret { transform: rotate(180deg); }
.lang-menu {
	position: absolute; inset-block-end: calc(100% + .5rem); inset-inline-start: 0;
	min-width: 100%; margin: 0; padding: .35rem; list-style: none;
	background: var(--ink); border: 1px solid var(--gold-faint); border-radius: 12px;
	box-shadow: 0 12px 30px rgba(0,0,0,0.35); z-index: 60;
}
.lang-menu li { margin: 0; }
.lang-menu a {
	display: block; padding: .5rem .8rem; border-radius: 8px;
	color: rgba(255,255,255,0.82); text-decoration: none; font-size: .85rem;
	white-space: nowrap; transition: background .18s ease, color .18s ease;
}
.lang-menu a:hover { background: var(--gold-faint); color: #fff; }
.lang-menu a.is-active { color: var(--gold-soft); font-weight: 600; }
@media (max-width: 640px) {
	.lang-menu { inset-inline-start: 50%; transform: translateX(-50%); }
}

/* -------------------------------------------------------------------------
 * Reviews: aggregate rating, authenticity note, per-screenshot captions.
 * ---------------------------------------------------------------------- */
.rating-value {
	font-family: var(--f-body); font-weight: 700; color: var(--ink);
	font-size: .95rem; margin-inline-start: .45rem; letter-spacing: .01em;
}
/* The stars moved inside a role="img" wrapper, so it must carry the gap that
   .rating-stars used to apply to them directly. */
.stars-icons { display: inline-flex; align-items: center; gap: .25rem; color: var(--gold); }
.wa-rating {
	display: flex; align-items: center; justify-content: center; gap: .15rem;
	margin-block-end: .5rem;
}
.wa-rating .z-icon { font-size: 1rem; color: var(--gold); }
.wa-note {
	display: flex; align-items: center; justify-content: center; gap: .45rem;
	max-width: 62ch; margin-inline: auto; margin-block-end: clamp(1.1rem, 2.5vw, 1.6rem);
	color: var(--text-secondary); font-family: var(--f-body);
	font-size: .85rem; line-height: 1.6; text-align: center;
}
.wa-note .z-icon { color: var(--gold); flex: none; }
/* Captioned shots drop the fixed box so the caption can sit under the image. */
.wa-shot.has-cap { aspect-ratio: auto; display: flex; flex-direction: column; cursor: default; }
/* Must out-specify .wa-shot.has-cap above, which would otherwise re-show the
   shots the "show more" toggle hides. */
.wa-shot.has-cap.is-hidden { display: none; }
.wa-shot.has-cap img { aspect-ratio: 3 / 4; height: auto; cursor: zoom-in; }
.wa-shot.has-cap figcaption {
	padding: .6rem .75rem; color: var(--text-secondary);
	font-family: var(--f-body); font-size: .8rem; line-height: 1.55;
	border-block-start: 1px solid var(--line); background: var(--paper);
}

/* -------------------------------------------------------------------------
 * Answer guides (/guides/...). Reuses brand tokens; direction-agnostic.
 * ---------------------------------------------------------------------- */
.guide-page { padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 8vw, 5rem); background: var(--paper); }
.guide-wrap { max-width: 72ch; }
.guide-crumbs { font-family: var(--f-body); font-size: .8rem; color: var(--text-muted); margin-block-end: 1rem; }
.guide-crumbs a { color: var(--text-muted); text-decoration: none; }
.guide-crumbs a:hover { color: var(--gold); }
.guide-title {
	font-family: var(--f-display); color: var(--ink); line-height: 1.35;
	font-size: clamp(1.5rem, 4.5vw, 2.3rem); margin-block-end: 1rem;
}
/* The lead paragraph is the extractable answer: keep it visually distinct. */
.guide-lead {
	font-family: var(--f-body); font-size: clamp(1rem, 2.4vw, 1.1rem);
	line-height: 1.85; color: var(--ink); background: var(--paper-2);
	border-inline-start: 3px solid var(--gold); border-radius: 10px;
	padding: 1rem 1.1rem; margin-block-end: 2rem;
}
.guide-h2 {
	font-family: var(--f-display); color: var(--ink);
	font-size: clamp(1.15rem, 3vw, 1.45rem); margin-block: 2rem .6rem;
}
.guide-p { font-family: var(--f-body); font-size: .97rem; line-height: 1.9; color: var(--text-secondary); }
.guide-cta {
	display: flex; flex-wrap: wrap; gap: .75rem;
	margin-block: 2.5rem 1rem; padding-block-start: 1.75rem;
	border-block-start: 1px solid var(--line);
}
.guide-more { margin-block-start: 2.5rem; padding-block-start: 1.5rem; border-block-start: 1px solid var(--line); }
.guide-more-h { font-family: var(--f-display); font-size: 1.1rem; color: var(--ink); margin-block-end: .75rem; }
.guide-more ul { list-style: none; margin: 0; padding: 0; }
.guide-more li { margin-block-end: .5rem; }
.guide-more a { font-family: var(--f-body); font-size: .92rem; color: var(--text-secondary); text-decoration: none; }
.guide-more a:hover { color: var(--gold); }
.faq-guides { max-width: 820px; margin: 2.25rem auto 0; padding-block-start: 1.5rem; border-block-start: 1px solid var(--line); }
.faq-guides-h { font-family: var(--f-display); font-size: 1.05rem; color: var(--ink); margin-block-end: .75rem; text-align: center; }
.faq-guides ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem .9rem; justify-content: center; }
.faq-guides a { font-family: var(--f-body); font-size: .88rem; color: var(--text-secondary); text-decoration: none; border-block-end: 1px solid var(--gold-faint); }
.faq-guides a:hover { color: var(--gold); border-block-end-color: var(--gold); }

/* -------------------------------------------------------------------------
 * Size guide — inline per-size hint + link + modal (mobile-first).
 * Direction-agnostic (logical properties), reuses brand tokens.
 * ---------------------------------------------------------------------- */

/* Per-size fit line shown after a size is tapped. */
.size-fit {
	margin-block: .6rem 0; padding: .55rem .8rem;
	background: var(--gold-faint); border-radius: 10px;
	font-family: var(--f-body); font-size: .85rem; color: var(--ink); line-height: 1.5;
}
.size-fit b { color: var(--gold); font-weight: 700; }

/* Text link that opens the full chart. */
.size-guide-link {
	appearance: none; background: none; border: 0; cursor: pointer;
	display: inline-flex; align-items: center; gap: .45rem;
	margin-block-start: .7rem; padding: .25rem 0;
	font-family: var(--f-body); font-size: .88rem; font-weight: 600; color: var(--gold);
	border-block-end: 1px dashed var(--gold-faint);
}
.size-guide-link:hover { color: var(--gold-soft); border-block-end-color: var(--gold-soft); }
.size-guide-link .z-icon { width: 1.05em; height: 1.05em; }
.size-guide-link .sg-arrow { display: inline-flex; }

/* Modal — bottom sheet with a top gap so it always reads as a popup. */
.sg-modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.sg-modal.show { display: block; }
.sg-modal-backdrop { position: absolute; inset: 0; background: rgba(42,15,30,0.55); backdrop-filter: blur(2px); }
.sg-modal-card {
	position: absolute; inset-inline: 0; inset-block-end: 0;
	/* the gap at the top that signals "popup" */
	inset-block-start: max(3.5rem, env(safe-area-inset-top, 0px) + 2.5rem);
	display: flex; flex-direction: column; min-height: 0;
	background: var(--paper); border-start-start-radius: 20px; border-start-end-radius: 20px;
	box-shadow: 0 -12px 40px rgba(0,0,0,0.28); animation: sgUp .3s var(--ease); overflow: hidden;
}
@keyframes sgUp { from { transform: translateY(12%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Fixed header (stays put while the body scrolls). */
.sg-modal-header {
	position: relative; flex: none;
	padding: 1.25rem 1.1rem .9rem; background: var(--paper);
	border-block-end: 1px solid var(--line);
}
/* Keep the title clear of the close button on both sides (RTL + LTR). */
.sg-modal-header .sg-head { padding-inline: 2.4rem; text-align: center; }
.sg-title { display: block; font-family: var(--f-display); font-size: 1.35rem; color: var(--ink); letter-spacing: .02em; line-height: 1.3; }
.sg-unit { display: block; font-family: var(--f-body); font-size: .78rem; color: var(--text-muted); margin-block-start: .25rem; }
.sg-modal-close {
	position: absolute; inset-block-start: .55rem; inset-inline-start: .8rem;
	appearance: none; background: none; border: 0; cursor: pointer;
	font-size: 1.9rem; line-height: 1; color: var(--text-muted); z-index: 2;
}
.sg-modal-close:hover { color: var(--ink); }

/* Scrollable body. */
.sg-modal-body {
	flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
	padding: 1rem 1.1rem 1.25rem;
}

/* Fixed footer — Close button always visible. */
.sg-modal-footer {
	flex: none; padding: .9rem 1.1rem calc(.9rem + env(safe-area-inset-bottom, 0px));
	background: var(--paper); border-block-start: 1px solid var(--line);
}
.sg-modal-done { width: 100%; margin: 0; }

/* Size cards — wrap naturally, never scroll sideways. */
.sg-cards { display: flex; flex-direction: column; gap: .6rem; }
.sg-card {
	display: flex; align-items: center; gap: .9rem;
	border: 1px solid var(--line); border-radius: 14px; padding: .8rem .9rem; background: var(--paper);
}
.sg-card.is-active { border-color: var(--gold); background: var(--gold-faint); }
.sg-card-size {
	flex: none; min-width: 3.1rem; text-align: center;
	font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: var(--gold);
}
.sg-card-rows { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .9rem; flex: 1; min-width: 0; }
.sg-metric {
	display: inline-flex; align-items: center; gap: .35rem; min-width: 0; overflow-wrap: anywhere;
	font-family: var(--f-body); font-size: .8rem; color: var(--text-secondary);
}
.sg-metric .sg-val { color: var(--ink); font-weight: 700; margin-inline-start: .15rem; }
.sg-metric .sg-ic { width: 18px; height: 18px; color: var(--gold); flex: none; }
.sg-metric .sg-ic svg { width: 100%; height: 100%; }
.sg-metric-flat { color: var(--text-muted); }
.sg-metric-flat .sg-val { color: var(--text-secondary); font-weight: 600; }
.sg-cm { font-size: .7em; color: var(--text-muted); margin-inline-start: .12em; }
.sg-note {
	display: flex; align-items: flex-start; gap: .45rem; margin-block-start: 1rem;
	font-family: var(--f-body); font-size: .78rem; line-height: 1.55; color: var(--text-muted);
}
.sg-note .z-icon { color: var(--gold); flex: none; width: 1em; height: 1em; margin-block-start: .15em; }

/* Wider screens: a centered dialog (auto height, capped) instead of a full-height sheet. */
@media (min-width: 720px) {
	/* Centre the dialog with flexbox instead of inset+translate: no direction
	 * pitfalls (the old rule hung off the left edge in LTR / fr + en), and it
	 * stays centred at every width. The backdrop is position:absolute, so it
	 * still covers the viewport and does not affect this centring. */
	.sg-modal.show { display: flex; align-items: center; justify-content: center; }
	.sg-modal-card {
		position: relative; inset: auto; transform: none;
		width: min(560px, calc(100% - 3rem));
		max-height: 85vh; height: auto;
		border-radius: 20px;
		box-shadow: 0 20px 60px rgba(0,0,0,0.32);
		animation: sgPop .28s var(--ease);
	}
	@keyframes sgPop { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* -------------------------------------------------------------------------
 * Risk reversal — reassurance block above the order form (COD trust levers).
 * ---------------------------------------------------------------------- */
.risk-reversal {
	margin-block: 1rem 0; padding: .9rem 1rem;
	background: var(--gold-faint); border: 1px solid var(--gold-faint);
	border-radius: 12px;
}
.risk-reversal .rr-title {
	display: flex; align-items: center; gap: .45rem;
	font-family: var(--f-display); font-size: .98rem; font-weight: 600; color: var(--ink);
	margin-block-end: .55rem;
}
.risk-reversal .rr-title .z-icon { color: var(--gold); width: 1.05em; height: 1.05em; }
.rr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.rr-list li {
	display: flex; align-items: center; gap: .5rem;
	font-family: var(--f-body); font-size: .86rem; line-height: 1.5; color: var(--text-secondary);
}
.rr-list .z-icon { color: var(--gold); flex: none; width: 1.05em; height: 1.05em; }
