/* ════════════════════════════════════════════════════════════════
   Fenna — Premium Hijabs · storefront stylesheet
   Hijabi-elegance redesign (inspired by hijabelegance.com)
   Earthy ivory / olive / maroon / brass palette, serif display type.
   Logical properties throughout → RTL (AR default) works with zero
   direction-specific overrides except where transform / linear-gradients
   are involved (body.dir-rtl blocks).
   ════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
    /* palette — dark-purple primary, violet/lilac supporting, brass accent */
    --ink:        #2A2340;
    --body:       #4A4260;
    --muted:      #776D90;
    --faint:      #978DAE;
    --ivory:      #FBF8F2;
    --ivory-deep: #F3EEE2;
    --blush:      #EDE4F7;      /* lilac chip wash */
    --olive:      #8B79A8;      /* soft violet — hover / outlines */
    --olive-deep: #5B3E8E;      /* deep violet — links / primary */
    --maroon:     #45285E;      /* dark purple — main accent */
    --brass:      #C9A86A;      /* gold counterpoint */
    --forest:     #2B1C44;      /* deep aubergine — hero / footer */
    --line:       #E6DFEA;
    --line-soft:  #EFEAF1;
    --success:    #4C7A4C;
    --warning:    #A8813F;      /* referenced inline by cart.php */
    --danger:     #9E3B3B;
    --text-muted: #8A8198;      /* referenced inline by main.js search */
    /* type */
    --font-body:    'Inter', 'IBM Plex Sans Arabic', sans-serif;
    --font-display: 'Playfair Display', 'IBM Plex Sans Arabic', serif;
    /* layout */
    --gutter: clamp(20px, 4.5vw, 72px);
    --ease:   cubic-bezier(.32, .6, .24, 1);
    --radius: 4px;
}

/* ── Reset & base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body {
    margin: 0;
    background: var(--ivory);
    color: var(--body);
    font-size: 15px;
    line-height: 1.75;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a  { color: var(--olive-deep); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--maroon); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--blush); color: var(--ink); }
:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; border-radius: 2px; }

.shell { max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.main  { min-height: 62vh; }

/* ── Accessibility ────────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -60px;
    inset-inline-start: 16px;
    z-index: 900;
    padding: 12px 20px;
    background: var(--ink);
    color: var(--ivory);
    border-radius: 3px;
    font-size: 12px;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ── Editorial bits ───────────────────────────────────────────── */
.marker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--olive);
}
.marker::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .7; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--olive-deep);
}
.link-arrow::after { content: '→'; transition: transform .3s var(--ease); }
[dir="rtl"] .link-arrow::after { content: '←'; }
.link-arrow:hover::after { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover::after { transform: translateX(-4px); }

/* RTL: Arabic script must not be letter-spaced (it breaks cursive joining). */
body.dir-rtl .marker,
body.dir-rtl .link-arrow,
body.dir-rtl .btn,
body.dir-rtl .header__link,
body.dir-rtl .header__lang,
body.dir-rtl .header__nav-label,
body.dir-rtl .chip,
body.dir-rtl .piece__cat,
body.dir-rtl .piece__add,
body.dir-rtl .tile__meta span,
body.dir-rtl .tile__num,
body.dir-rtl .opener__chip,
body.dir-rtl .ticker__item,
body.dir-rtl .statement__stamp,
body.dir-rtl .chapter__num,
body.dir-rtl .chapter__note,
body.dir-rtl .opener__scroll,
body.dir-rtl .footer__domain,
body.dir-rtl .footer__col h4 { letter-spacing: 0; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 14px 30px;
    border-radius: 999px;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: all .35s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--ivory); }
.btn-primary { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--olive-deep); border-color: var(--olive-deep); }
.btn-outline { border-color: var(--olive); color: var(--olive-deep); }
.btn-outline:hover { background: var(--olive); border-color: var(--olive); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 10px; }
.btn-lg { padding: 16px 38px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ── Announcement bar ─────────────────────────────────────────── */
.header__utility {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: var(--forest);
    color: rgba(255,255,255,.72);
}
.header__note {
    grid-column: 2;
    justify-self: center;
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-align: center;
    padding: 8px 16px;
}
.header__langs { display: flex; gap: 2px; }
.header__lang {
    font-size: 9.5px;
    letter-spacing: .14em;
    color: rgba(255,255,255,.55);
    padding: 6px 9px;
    border-radius: 999px;
}
.header__lang:hover { color: #fff; }
.header__lang.is-active { color: #fff; background: rgba(255,255,255,.14); }
.header__utility .header__langs { grid-column: 3; justify-self: end; }

/* ── Main header ──────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 400;
    background: var(--ivory);
}
.header__bar {
    display: grid;
    grid-template-areas:
        "burger logo actions"
        "nav    nav  nav";
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0;
    min-height: 0;
    padding: 0 var(--gutter);
    border-bottom: 1px solid var(--line);
}
.header__burger {
    display: none;
    grid-column: 1;
    grid-row: 1;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    justify-self: start;
}
.header__burger span { display: block; height: 1.6px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
body.rail-open .header__burger span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
body.rail-open .header__burger span:nth-child(2) { opacity: 0; }
body.rail-open .header__burger span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* Desktop nav: full-width bar, Home · Shop · all categories */
.header__nav {
    grid-area: nav;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
    padding: 12px 0 2px;
    margin-top: 16px;
    border-top: 1px solid var(--line);
}
.header__link {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
    transition: all .3s var(--ease);
    white-space: nowrap;
}
.header__link:hover { color: var(--maroon); background: var(--ivory-deep); }
.header__nav-group {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-inline-start: 12px;
    padding-inline-start: 12px;
    border-inline-start: 1px solid var(--line);
}
.header__nav-label, .header__nav-foot { display: none; }

.header__logo { grid-area: logo; display: inline-flex; justify-self: center; padding: 20px 0 0; line-height: 1; }
.header__logo img { height: 46px; width: auto; }

.header__actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}
.header__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--ink);
    border: 1px solid transparent;
    transition: all .3s var(--ease);
}
.header__icon:hover { background: var(--ivory-deep); border-color: var(--line); color: var(--ink); }
.rail__count {
    position: absolute;
    top: 1px;
    inset-inline-end: -1px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--maroon);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    font-style: normal;
    line-height: 17px;
    text-align: center;
    letter-spacing: 0;
}

.rail__scrim {
    position: fixed;
    inset: 0;
    z-index: 380;
    background: rgba(38,35,30,.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
body.rail-open .rail__scrim { opacity: 1; visibility: visible; }

/* ── Search overlay ───────────────────────────────────────────── */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    background: rgba(251,248,242,.97);
    backdrop-filter: blur(6px);
    padding: clamp(80px, 14vh, 140px) var(--gutter) 40px;
    overflow-y: auto;
}
.search-overlay.active { display: block; }
.search-overlay__close {
    position: absolute;
    top: 22px;
    inset-inline-end: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--ivory-deep);
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: transform .3s var(--ease), background .3s var(--ease);
}
.search-overlay__close:hover { background: var(--blush); transform: rotate(90deg); }
.search-overlay__content { max-width: 720px; margin-inline: auto; }
.search-form { position: relative; }
.search-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--line);
    border-radius: 0;
    background: transparent;
    font-family: var(--font-display);
    font-size: clamp(22px, 3.4vw, 40px);
    color: var(--ink);
    padding: 12px 4px;
    transition: border-color .3s var(--ease);
}
.search-input::placeholder { color: var(--faint); }
.search-input:focus { outline: none; border-bottom-color: var(--olive); }
.search-suggestions { display: none; margin-top: 20px; }
.search-suggestions.active { display: block; }
.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 4px;
    border-bottom: 1px solid var(--line-soft);
}
.search-suggestion-item:hover { color: var(--maroon); }
.search-suggestion-item img { width: 40px; height: 52px; object-fit: cover; border-radius: 3px; background: var(--ivory-deep); }
.search-suggestion-item .info { flex: 1; min-width: 0; }
.search-suggestion-item .name { font-size: 14px; font-weight: 500; color: var(--ink); }
.search-suggestion-item .price { font-size: 12.5px; color: var(--faint); }

/* ── Page head / breadcrumb ───────────────────────────────────── */
.page-head { padding: clamp(36px, 5vw, 64px) 0 clamp(22px, 3vw, 34px); border-bottom: 1px solid var(--line); }
.page-head h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 500;
    line-height: 1.15;
    margin: 10px 0 0;
}
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.breadcrumb a { color: var(--olive-deep); }
.breadcrumb a:hover { color: var(--maroon); }
.breadcrumb span { color: var(--faint); }

/* ── Hero (opener) ────────────────────────────────────────────── */
.opener {
    position: relative;
    min-height: min(80vh, 840px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
    background: var(--forest);
}
.opener__frame {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--frame);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.opener::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(8deg, rgba(30,20,48,.88) 0%, rgba(30,20,48,.48) 52%, rgba(30,20,48,.2) 100%);
}
.opener__caption {
    position: relative;
    z-index: 1;
    max-width: 620px;
    padding: 0 var(--gutter) clamp(64px, 10vw, 128px);
    color: var(--ivory);
}
.opener__caption .marker { color: rgba(255,255,255,.78); margin-bottom: 22px; }
.opener__caption h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 74px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: .01em;
    color: #fff;
    margin: 0 0 26px;
}
.opener__caption p {
    color: rgba(255,255,255,.86);
    font-size: 16.5px;
    line-height: 1.9;
    max-width: 480px;
    margin: 0 0 36px;
}
.opener__cta { background: var(--ivory); border-color: var(--ivory); color: var(--ink); padding: 15px 36px; }
.opener__cta:hover { background: transparent; border-color: #fff; color: #fff; }
.opener__scroll {
    position: absolute;
    inset-inline-start: var(--gutter);
    bottom: 26px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 9.5px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: rgba(255,255,255,.66);
}
.opener__scroll::before {
    content: '';
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.9));
}
.opener__index {
    position: absolute;
    top: clamp(22px, 4vw, 40px);
    inset-inline-end: var(--gutter);
    z-index: 1;
    font-size: 10px;
    letter-spacing: .3em;
    color: rgba(255,255,255,.6);
}

/* ── Chapters ─────────────────────────────────────────────────── */
.chapter { padding: clamp(72px, 9vw, 128px) 0; }
.chapter--tint { background: var(--ivory-deep); }
.chapter__head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding-bottom: 20px;
    margin-bottom: clamp(36px, 5vw, 60px);
    border-bottom: 1px solid var(--line);
}
.chapter__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 34px;
    padding: 0 15px;
    background: linear-gradient(135deg, var(--olive-deep), var(--maroon));
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    white-space: nowrap;
    box-shadow: 0 12px 24px -14px rgba(69,40,94,.75);
}
.chapter__head h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.6vw, 46px);
    font-weight: 500;
    line-height: 1.25;
    margin: 0;
}
/* Brass marker highlight behind section titles (vertical gradient → RTL-safe) */
.title-hl {
    background-image: linear-gradient(180deg, transparent 0, transparent 46%, rgba(185,155,95,.32) 46%, rgba(185,155,95,.32) 96%, transparent 96%);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0 .12em .06em;
    border-radius: .16em;
}
.chapter__note {
    display: inline-flex;
    align-items: center;
    padding: 8px 17px;
    background: var(--blush);
    color: var(--maroon);
    border: 1px solid rgba(69,40,94,.16);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    white-space: nowrap;
}
.chapter__tail { margin-top: clamp(36px, 5vw, 56px); text-align: center; }

/* ── Collection tiles ─────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.tile { display: block; grid-column: span 4; color: inherit; transition: transform .5s var(--ease); }
.tile:nth-child(6n+1) { grid-column: span 5; }
.tile:nth-child(6n+2) { grid-column: span 3; }
.tile:nth-child(6n+3) { grid-column: span 4; }
.tile:nth-child(6n+4) { grid-column: span 4; }
.tile:nth-child(6n+5) { grid-column: span 5; }
.tile:nth-child(6n+6) { grid-column: span 3; }
.tile:hover { transform: translateY(-4px); }
.tile__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    background: var(--ivory-deep);
}
.tile__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--ease);
}
.tile:hover .tile__media img { transform: scale(1.06); }
.tile__num {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 26px;
    padding: 0 12px;
    background: linear-gradient(135deg, rgba(69,40,94,.94), rgba(91,62,142,.86));
    color: #fff;
    border-radius: 999px;
    font-size: 9px;
    letter-spacing: .18em;
    mix-blend-mode: normal;
    backdrop-filter: blur(3px);
    box-shadow: 0 10px 20px -10px rgba(0,0,0,.5);
}
.tile__meta { padding-top: 16px; }
.tile__meta h3 { font-family: var(--font-display); font-size: clamp(17px, 1.7vw, 21px); font-weight: 500; margin: 0 0 6px; }
.tile__meta span { font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }

/* ── Editorial run (featured: 2 products · quote · 3 products) ── */
.run { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 2.6vw, 34px); align-items: start; }
.run .piece { grid-column: span 4; }
.run .run__aside {
    grid-column: span 4;
    align-self: center;
    position: relative;
    padding: clamp(30px, 3.4vw, 46px);
    background: linear-gradient(165deg, var(--ivory-deep), var(--ivory) 70%);
    border: 1px solid var(--line);
    border-inline-start: 3px solid var(--maroon);
    border-radius: var(--radius);
    box-shadow: 0 30px 60px -50px rgba(38,35,30,.4);
}
.run__aside::before {
    content: '“';
    position: absolute;
    top: 6px;
    inset-inline-start: 14px;
    font-family: var(--font-display);
    font-size: 54px;
    line-height: 1;
    color: var(--brass);
    opacity: .55;
    pointer-events: none;
}
[dir="rtl"] .run__aside::before { content: '”'; }
.run__aside p {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(15px, 1.5vw, 18px);
    font-style: italic;
    line-height: 1.75;
    color: var(--olive-deep);
    margin: 0 0 22px;
}
.run__aside .link-arrow { color: var(--maroon); }

/* ── Brand statement (overlapping split; grid auto-mirrors in RTL) ── */
.statement { display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; }
.statement__media {
    grid-column: 1 / span 7;
    grid-row: 1;
    position: relative;
    aspect-ratio: 5 / 4;
    border-radius: var(--radius);
    background-image: var(--frame);
    background-size: cover;
    background-position: center;
    background-color: var(--ivory-deep);
}
.statement__media::before {
    content: '';
    position: absolute;
    inset: -16px;
    z-index: -1;
    border: 1px solid var(--brass);
    border-radius: var(--radius);
    opacity: .55;
}
.statement__media::after {
    content: '';
    position: absolute;
    top: -22px;
    inset-inline-end: -22px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--maroon);
    box-shadow: 0 18px 34px -18px rgba(69,40,94,.8);
}
.statement__body {
    grid-column: 6 / span 7;
    grid-row: 1;
    position: relative;
    z-index: 2;
    padding: clamp(30px, 4.4vw, 56px);
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 40px 80px -60px rgba(38,35,30,.5);
}
.statement__body .chapter__num { margin-bottom: 16px; }
.statement__body .marker {
    margin-bottom: 16px;
    color: var(--maroon);
    padding: 7px 16px;
    background: var(--blush);
    border-radius: 999px;
}
.statement__body .marker::before { display: none; }
.statement__body h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); font-weight: 500; line-height: 1.2; margin: 0 0 20px; }
.statement__body p { font-size: 15px; line-height: 2; margin: 0 0 28px; }

/* ── Why Fenna · benefits ─────────────────────────────────────── */
.benefits { background: var(--ivory-deep); }
.benefits .chapter__head { border-bottom-color: var(--line-soft); }
.benefits__grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: clamp(16px, 2vw, 28px); }
.benefit {
    position: relative;
    padding: clamp(26px, 2.6vw, 36px);
    background: var(--ivory);
    border: 1px solid var(--line);
    border-top: 3px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.benefit:hover { transform: translateY(-6px); box-shadow: 0 26px 52px -38px rgba(38,35,30,.4); }
.benefit__num {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    z-index: 1;
    padding: 4px 11px;
    background: var(--ink);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .16em;
    border-radius: 999px;
    opacity: .88;
}
.benefit__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: rgba(69,40,94,.12);
    color: var(--maroon);
    transition: transform .5s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.benefit:hover .benefit__icon { transform: translateY(-3px) rotate(-6deg); }
.benefit h3 { font-family: var(--font-display); font-size: 17px; font-weight: 500; margin: 0 0 9px; }
.benefit p { font-size: 13.5px; line-height: 1.85; color: var(--muted); margin: 0; }
/* per-card accent hues */
.benefit:nth-child(1) { border-top-color: var(--maroon); }
.benefit:nth-child(1) .benefit__num, .benefit:nth-child(1) .benefit__icon { background: var(--maroon); color: #fff; }
.benefit:nth-child(2) { border-top-color: var(--olive-deep); }
.benefit:nth-child(2) .benefit__num, .benefit:nth-child(2) .benefit__icon { background: var(--olive-deep); color: #fff; }
.benefit:nth-child(3) { border-top-color: var(--brass); }
.benefit:nth-child(3) .benefit__num, .benefit:nth-child(3) .benefit__icon { background: var(--brass); color: var(--ink); }
.benefit:nth-child(4) { border-top-color: var(--forest); }
.benefit:nth-child(4) .benefit__num, .benefit:nth-child(4) .benefit__icon { background: var(--forest); color: #fff; }

/* ── Staggered arrivals grid ──────────────────────────────────── */
.stagger { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: clamp(24px, 3.4vw, 48px); }
.stagger > .piece:nth-child(3n+2) { margin-block-start: clamp(26px, 4vw, 72px); }
.stagger > .piece:nth-child(3n+3) { margin-block-start: clamp(12px, 2vw, 34px); }

/* ── Product card ─────────────────────────────────────────────── */
.piece { position: relative; display: flex; flex-direction: column; }
.piece__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    background: var(--ivory-deep);
}
.piece__media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.45) 50%, transparent 58%);
    transform: translateX(-130%);
    transition: transform .95s var(--ease);
    pointer-events: none;
}
.piece:hover .piece__media::after { transform: translateX(130%); }
body.dir-rtl .piece__media::after { transform: translateX(130%); }
body.dir-rtl .piece:hover .piece__media::after { transform: translateX(-130%); }
.piece__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.piece:hover .piece__media img { transform: scale(1.05); }
.piece__flag {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    z-index: 3;
    padding: 5px 12px;
    background: var(--maroon);
    color: #fff;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow: 0 8px 16px -8px rgba(69,40,94,.6);
}
.piece:hover .piece__flag { animation: flagPop .5s var(--ease); }
@keyframes flagPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.14) rotate(-4deg); }
    100% { transform: scale(1); }
}
.piece__flag--quiet { background: #fff; color: var(--ink); box-shadow: 0 4px 14px rgba(38,35,30,.18); }
.piece__idx {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 3;
    min-width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    background: rgba(251,248,242,.92);
    color: var(--maroon);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    border-radius: 999px;
    box-shadow: 0 8px 18px -8px rgba(38,35,30,.45);
}
.piece__body { display: flex; flex-direction: column; align-items: flex-start; padding-top: 16px; flex: 1; }
.piece__cat {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    background: var(--ivory-deep);
    color: var(--olive-deep);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.piece__body h3 { font-family: var(--font-display); font-size: 16.5px; font-weight: 500; line-height: 1.45; margin: 0 0 7px; }
.piece__body h3 a { color: inherit; }
.piece__body h3 a:hover { color: var(--maroon); }
.piece__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.piece__price span { font-size: 15px; font-weight: 600; color: var(--ink); }
.piece__price s { font-size: 12.5px; color: var(--faint); }
.piece__add {
    margin-top: auto;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--olive-deep);
    padding: 11px 22px;
    border: 1px solid var(--olive);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    transition: all .35s var(--ease);
}
.piece__add:hover { background: var(--olive); color: #fff; }
.piece__add.added { background: var(--success); border-color: var(--success); color: #fff; }
.piece__out { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }

/* ── Shop page ────────────────────────────────────────────────── */
.shop { padding: clamp(30px, 4vw, 48px) 0 clamp(64px, 8vw, 104px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    color: var(--muted);
    background: #fff;
    transition: all .3s var(--ease);
}
.chip em { font-style: normal; font-size: 10px; background: var(--ivory-deep); color: var(--muted); border-radius: 999px; padding: 1px 7px; }
.chip:hover { border-color: var(--olive); color: var(--olive-deep); }
.chip.is-active { background: var(--olive-deep); border-color: var(--olive-deep); color: #fff; }
.chip.is-active em { background: rgba(255,255,255,.18); color: #fff; }
.shop__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 0;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
}
.shop__count { font-size: 13px; color: var(--muted); }
.shop__tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.price-filter { display: flex; align-items: center; gap: 8px; }
.price-filter input {
    width: 104px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    color: var(--ink);
}
.price-filter input:focus { outline: none; border-color: var(--olive); }
.shop__sort {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}
.shop__sort:focus { outline: none; border-color: var(--olive); }

.grid-pieces { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 32px); }

.blank { text-align: center; padding: clamp(48px, 8vw, 96px) 0; }
.blank h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 500; margin-bottom: 10px; }
.blank p { color: var(--muted); margin: 0 0 26px; }

/* ── Pagination ───────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 60px); }
.pagination ul { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    color: var(--muted);
    background: #fff;
    transition: all .3s var(--ease);
}
.pagination li a:hover { border-color: var(--olive); color: var(--olive-deep); }
.pagination li.active a { background: var(--olive-deep); border-color: var(--olive-deep); color: #fff; }

/* ── Product detail ───────────────────────────────────────────── */
.detail { padding: clamp(30px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); }
.detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}
.gallery { position: sticky; top: 140px; }
.gallery__main {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ivory-deep);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.gallery__thumb {
    aspect-ratio: 3 / 4;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: .72;
    transition: all .3s var(--ease);
}
.gallery__thumb.active, .gallery__thumb:hover { opacity: 1; border-color: var(--olive); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail__info h1 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); font-weight: 500; line-height: 1.2; margin: 4px 0 10px; }
.detail__sku { font-size: 11.5px; letter-spacing: .14em; color: var(--faint); margin-bottom: 6px; }
.detail__price { display: flex; align-items: baseline; gap: 12px; margin: 20px 0 18px; }
.detail__price .now { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; color: var(--ink); }
.detail__price s { font-size: 16px; color: var(--faint); }
.detail__price .off {
    background: var(--maroon);
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .12em;
    padding: 4px 9px;
    border-radius: 2px;
}
.detail__lede { font-size: 15px; color: var(--muted); line-height: 1.9; margin: 0 0 18px; }
.detail__stock { margin-bottom: 18px; }
.stock-in  { color: var(--success); font-size: 13px; }
.stock-low { color: var(--warning); font-size: 13px; }
.stock-out { color: var(--danger); font-size: 13px; }
.detail__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.detail__trust div { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.detail__trust svg { color: var(--olive); flex-shrink: 0; }

/* ── Qty stepper ──────────────────────────────────────────────── */
.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    margin-bottom: 18px;
}
.qty-btn, .cart-qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--ink);
    font-size: 17px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s var(--ease);
}
.qty-btn:hover, .cart-qty-btn:hover { background: var(--ivory-deep); }
.qty input {
    width: 56px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    background: transparent;
    -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Tabs ─────────────────────────────────────────────────────── */
.tabs { margin-top: clamp(44px, 6vw, 72px); }
.tabs__nav { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.tabs__nav button {
    border: none;
    background: none;
    padding: 13px 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .3s var(--ease);
}
.tabs__nav button.active { color: var(--ink); border-bottom-color: var(--maroon); }
.tab-content { display: none; padding: 28px 0; line-height: 1.9; max-width: 760px; }
.tab-content.active { display: block; }

/* ── Cart / checkout / confirmation ───────────────────────────── */
.pad { padding: clamp(40px, 6vw, 80px) 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 56px); align-items: start; }

.line-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto auto 34px;
    align-items: center;
    gap: clamp(14px, 2vw, 22px);
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.line-item:first-child { border-top: 1px solid var(--line); }
.line-item__media img { width: 80px; height: 96px; object-fit: cover; border-radius: 3px; background: var(--ivory-deep); }
.line-item h3 { font-family: var(--font-display); font-size: 15.5px; font-weight: 500; margin-bottom: 4px; }
.line-item h3 a { color: inherit; }
.line-item h3 a:hover { color: var(--maroon); }
.line-item__unit { font-size: 12.5px; color: var(--faint); }
.line-item__qty .qty { margin-bottom: 0; }
.line-item__sum { font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.line-item__kill {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    color: var(--faint);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s var(--ease);
}
.line-item__kill:hover { background: var(--blush); color: var(--danger); }

.panel {
    position: sticky;
    top: 140px;
    align-self: start;
    background: var(--ivory-deep);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: clamp(22px, 2.6vw, 30px);
}
.panel h3 { font-family: var(--font-display); font-size: 18px; font-weight: 500; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.panel__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    font-size: 14px;
    padding: 7px 0;
}
.panel__row span:last-child { font-weight: 600; color: var(--ink); }
.panel__row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 16px; }
.panel__row.total span:last-child { color: var(--maroon); }
.panel__note { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.6; }
.panel__item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 9px 0;
}
.panel__item img { border-radius: 3px; }
.panel__item .details { min-width: 0; }
.panel__item .name { font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.panel__item .qty-note { font-size: 11.5px; color: var(--faint); }
.panel__item .item-total { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }

.done { max-width: 560px; margin-inline: auto; text-align: center; }
.done__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--olive-deep);
    color: #fff;
}
.done .marker { margin-bottom: 16px; }
.done h1 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px); font-weight: 500; margin-bottom: 10px; }
.done__ref { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.done__ref strong { color: var(--ink); }

.card-plain {
    max-width: 520px;
    margin: 26px auto 0;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 20px 24px;
    text-align: start;
}
.card-plain__row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--line-soft);
    font-size: 13.5px;
}
.card-plain__row:last-child { border-bottom: none; }
.card-plain__row .label { color: var(--muted); }
.card-plain__row .value { color: var(--ink); font-weight: 500; text-align: end; }

/* ── Forms ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 12px; font-weight: 500; letter-spacing: .06em; margin-bottom: 8px; color: var(--ink); }
.form-group .required { color: var(--danger); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.form-group textarea { resize: vertical; line-height: 1.7; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--olive);
    box-shadow: 0 0 0 3px rgba(139,121,168,.16);
}
.form-heading { font-family: var(--font-display); font-size: 20px; font-weight: 500; margin: 34px 0 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

/* ── Payment options ──────────────────────────────────────────── */
.pay { display: grid; gap: 12px; margin-bottom: 24px; }
.pay__opt {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.pay__opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay__opt h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.pay__opt p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.pay__opt.selected, .pay__opt:has(input:checked) { border-color: var(--olive-deep); box-shadow: 0 0 0 3px rgba(91,62,142,.12); }

/* ── Search page ──────────────────────────────────────────────── */
.search-page__form { display: flex; gap: 10px; max-width: 560px; margin-bottom: 40px; }
.search-page__input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
}
.search-page__input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(139,121,168,.16); }
.search-page__submit {
    width: 52px;
    border: none;
    border-radius: 50%;
    background: var(--olive-deep);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s var(--ease);
}
.search-page__submit:hover { background: var(--olive); }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 88% -12%, rgba(107,78,158,.38), transparent 62%),
        radial-gradient(700px 380px at 6% 118%, rgba(201,168,106,.12), transparent 60%),
        linear-gradient(180deg, #2F1E4C 0%, #221338 100%);
    color: rgba(255,255,255,.62);
    padding: clamp(56px, 8vw, 96px) 0 0;
}
.site-footer::before {  /* brass hairline binding */
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    z-index: 1;
    height: 3px;
    background: linear-gradient(90deg, transparent 6%, var(--brass) 50%, transparent 94%);
    opacity: .55;
}
.site-footer .marker { color: var(--brass); margin-bottom: 20px; }
.footer__lead { position: relative; max-width: 680px; margin-bottom: clamp(44px, 5vw, 72px); }
.footer__word {
    position: absolute;
    top: 50%;
    inset-inline-end: -6px;
    transform: translateY(-50%);
    z-index: -1;
    font-family: var(--font-display);
    font-size: clamp(70px, 13vw, 168px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: .02em;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(201,168,106,.18);
    pointer-events: none;
    user-select: none;
}
.footer__statement {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.4vw, 26px);
    line-height: 1.65;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 18px rgba(0,0,0,.28);
}
.footer__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(28px, 4vw, 56px);
    padding-bottom: clamp(44px, 5vw, 64px);
}
.footer__col h4 {
    position: relative;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 20px;
    padding-top: 18px;
}
.footer__col h4::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--brass);
    opacity: .75;
}
.footer__col ul li { margin-bottom: 9px; }
.footer__col ul a {
    display: inline-block;
    color: rgba(255,255,255,.62);
    font-size: 13.5px;
    transition: color .3s var(--ease), padding-inline-start .3s var(--ease);
}
.footer__col ul a:hover { color: #fff; padding-inline-start: 6px; }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer__social a {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border: 1px solid rgba(201,168,106,.42);
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: .06em;
    color: rgba(255,255,255,.78);
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.footer__social a:hover { background: var(--brass); border-color: var(--brass); color: #2B1C44; transform: translateY(-2px); }
.footer__base {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 22px 0 26px;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: 12px;
    color: rgba(255,255,255,.45);
}
.footer__base a { color: rgba(255,255,255,.6); }
.footer__base a:hover { color: var(--brass); }
.footer__domain {
    font-size: 11px;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--brass);
    padding: 6px 13px;
    border: 1px solid rgba(201,168,106,.35);
    border-radius: 999px;
}

/* ── Alerts / toasts / spinner ────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: 6px; font-size: 13.5px; margin: 18px 0; }
.alert-success { background: rgba(76,122,76,.1); border: 1px solid rgba(76,122,76,.3); color: var(--success); }
.alert-error   { background: rgba(158,59,59,.08); border: 1px solid rgba(158,59,59,.28); color: var(--danger); }

.toast-container {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    z-index: 700;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    padding: 13px 20px;
    border-radius: 6px;
    background: var(--ink);
    color: var(--ivory);
    font-size: 13.5px;
    box-shadow: 0 18px 40px -20px rgba(0,0,0,.4);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast--visible { opacity: 1; transform: none; }
.toast--success { background: var(--success); color: #fff; }
.toast--error   { background: var(--danger); color: #fff; }

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    vertical-align: -2px;
    opacity: .8;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Spans · colour · life ─────────────────────────────────────── */

/* announcement bar: slow gold sheen */
.header__note {
    background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.30) 50%, transparent 70%);
    background-size: 220% 100%;
    animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen {
    0%        { background-position: 120% 0; }
    55%, 100% { background-position: -120% 0; }
}

/* hero: drifting purple/gold glows */
.opener__glow {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    pointer-events: none;
    animation: glowDrift 18s ease-in-out infinite alternate;
}
.opener__glow--a {
    width: 460px; height: 460px;
    top: -130px; inset-inline-end: -90px;
    background: radial-gradient(circle, rgba(91,62,142,.95), transparent 65%);
}
.opener__glow--b {
    width: 400px; height: 400px;
    bottom: -150px; inset-inline-start: 6%;
    background: radial-gradient(circle, rgba(201,168,106,.5), transparent 65%);
    animation-delay: -9s;
}
@keyframes glowDrift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(26px, -22px) scale(1.14); }
}

/* hero: slow ken-burns on the frame */
.opener__frame { animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.08) translateX(1.5%); }
}

/* hero: staged entrance for the caption */
.opener__caption > * { animation: riseIn .9s var(--ease) both; }
.opener__caption > *:nth-child(1) { animation-delay: .15s; }
.opener__caption > *:nth-child(2) { animation-delay: .30s; }
.opener__caption > *:nth-child(3) { animation-delay: .45s; }
.opener__caption > *:nth-child(4) { animation-delay: .60s; }
@keyframes riseIn {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
}
.opener__scroll { animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* hero: floating colour chips (bg-spanned, purple family + gold) */
.opener__chips {
    position: absolute;
    inset-inline-end: var(--gutter);
    bottom: clamp(96px, 15vw, 180px);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}
.opener__chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 18px 34px -18px rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    animation: chipFloat 7s ease-in-out infinite;
}
.opener__chip::before { font-size: 12px; }
.opener__chip--violet::before   { content: '✦'; }
.opener__chip--lavender::before { content: '✺'; }
.opener__chip--gold::before     { content: '✧'; }
.opener__chip--violet   { background: linear-gradient(135deg, #5B3E8E, #45285E); }
.opener__chip--lavender { background: linear-gradient(135deg, #7C63AE, #5B3E8E); animation-delay: -2.4s; }
.opener__chip--gold     { background: linear-gradient(135deg, #D2B476, #A07C3A); color: #2B1C44; animation-delay: -4.8s; }
@keyframes chipFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-10px) rotate(1.6deg); }
}

/* gold ticker band between hero and collections */
.ticker {
    overflow: hidden;
    background: var(--maroon);
    color: rgba(255,255,255,.92);
    padding: 13px 0;
    border-block: 3px solid rgba(201,168,106,.5);
}
.ticker__track {
    display: flex;
    gap: 30px;
    width: max-content;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}
.ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
}
.ticker__item::after { content: '✦'; color: var(--brass); font-size: 10px; }
@keyframes ticker { to { transform: translateX(-50%); } }
body.dir-rtl .ticker__track { animation-direction: reverse; }

/* brand statement: rotating gold stamp seal */
.statement__stamp {
    position: absolute;
    bottom: 24px;
    inset-inline-end: -20px;
    z-index: 3;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255,255,255,.55);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 22%, rgba(214,180,118,.98), #9C7838);
    color: #fff;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-align: center;
    box-shadow: 0 18px 34px -16px rgba(160,124,58,.7);
    animation: stampSpin 30s linear infinite;
}
@keyframes stampSpin { to { transform: rotate(360deg); } }

/* benefits: soft per-card colour wash behind each icon */
.benefit::before {
    content: '';
    position: absolute;
    inset-inline-end: -44px;
    top: -44px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    pointer-events: none;
}
.benefit:nth-child(1)::before { background: radial-gradient(circle, rgba(69,40,94,.14), transparent 65%); }
.benefit:nth-child(2)::before { background: radial-gradient(circle, rgba(139,121,168,.20), transparent 65%); }
.benefit:nth-child(3)::before { background: radial-gradient(circle, rgba(201,168,106,.24), transparent 65%); }
.benefit:nth-child(4)::before { background: radial-gradient(circle, rgba(43,28,68,.18), transparent 65%); }

/* ── Dark-purple hover ─────────────────────────────────────────── */
.tile:hover { box-shadow: 0 26px 52px -34px rgba(69,40,94,.55); }
.benefit:hover { box-shadow: 0 28px 54px -38px rgba(69,40,94,.5); }
.piece:hover .piece__media { box-shadow: 0 26px 46px -30px rgba(69,40,94,.6); }
.header__link:hover { background: var(--blush); color: var(--maroon); }
.piece__add:hover { background: var(--olive-deep); border-color: var(--olive-deep); color: #fff; box-shadow: 0 12px 22px -14px rgba(91,62,142,.8); }

/* buttons: gold-sheen sweep across on hover */
.btn { position: relative; overflow: hidden; }
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -65%;
    width: 46%;
    height: 100%;
    transform: skewX(-20deg);
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
    transition: left .6s var(--ease);
    pointer-events: none;
}
.btn:hover::after { left: 125%; }

/* ── Scroll-driven reveal (safe: never strands content) ───────── */
.reveal { opacity: 1; }
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            opacity: 0;
            animation: revealIn linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 58%;
        }

        /* grid children cascade in using their --i index */
        .tiles > *, .run > *, .benefits__grid > *, .stagger > * {
            animation-range: entry 0% entry calc(58% + var(--i, 0) * 1%);
        }
    }
}
@keyframes revealIn {
    from { opacity: 0; translate: 0 28px; }
    to   { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .opener__frame { animation: none !important; opacity: 1 !important; transform: none !important; translate: none !important; }
    .opener__chip, .opener__scroll, .opener__caption > *, .opener__glow,
    .statement__stamp, .ticker__track, .header__note { animation: none !important; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ── Mobile drawer + responsive ───────────────────────────────── */
@media (max-width: 1280px) {
    .stagger { grid-template-columns: repeat(2, 1fr); }
    .stagger > .piece:nth-child(3n+2), .stagger > .piece:nth-child(3n+3) { margin-block-start: 0; }
    .stagger > .piece:nth-child(2n) { margin-block-start: clamp(12px, 2vw, 34px); }
    .grid-pieces { grid-template-columns: repeat(3, 1fr); }
    .benefits__grid { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 1080px) {
    .tiles { grid-template-columns: repeat(2, 1fr); }
    .tile, .tile:nth-child(6n+1), .tile:nth-child(6n+2), .tile:nth-child(6n+3),
    .tile:nth-child(6n+4), .tile:nth-child(6n+5), .tile:nth-child(6n+6) { grid-column: span 1; }
    .tile__media { aspect-ratio: 4 / 5; }
    .run { grid-template-columns: repeat(2, 1fr); }
    .run .piece { grid-column: span 1; }
    .run .run__aside { grid-column: span 2; }
    .statement__media { grid-column: 1 / span 12; }
    .statement__body { grid-column: 3 / span 9; }
    .grid-pieces { grid-template-columns: repeat(2, 1fr); }
    .detail__grid { grid-template-columns: 1fr; }
    .gallery { position: static; }
    .split { grid-template-columns: 1fr; }
    .panel { position: static; }
    .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    /* burger + drawer */
    .header__bar {
        grid-template-columns: 1fr auto 1fr;
        grid-template-areas: "burger logo actions";
        min-height: 60px;
    }
    .header__burger { display: flex; grid-area: burger; }
    /* Drawer positioning uses PHYSICAL left/right with PHYSICAL translateX so
       the two never disagree (translateX does not flip in RTL). LTR drawer sits
       on the left and slides off-left; RTL drawer sits on the right, off-right. */
    .header__nav {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: auto;
        z-index: 410;
        width: min(320px, 86vw);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 2px;
        padding: clamp(24px, 4vw, 36px);
        margin-top: 0;
        border-top: none;
        background: var(--ivory);
        box-shadow: 24px 0 60px -30px rgba(38,35,30,.5);
        transform: translateX(-104%);
        transition: transform .5s var(--ease);
        overflow-y: auto;
    }
    body.dir-rtl .header__nav {
        left: auto;
        right: 0;
        transform: translateX(104%);
        box-shadow: -24px 0 60px -30px rgba(38,35,30,.5);
    }
    /* Open state — the RTL rule is more specific so it always wins in Arabic. */
    body.rail-open .header__nav,
    body.dir-rtl.rail-open .header__nav { transform: translateX(0); }
    .header__link { width: 100%; font-size: 12px; padding: 12px 14px; white-space: normal; }
    .header__nav-group {
        display: block;
        margin-inline-start: 0;
        padding-inline-start: 0;
        border-inline-start: none;
        margin-top: 18px;
        padding-top: 18px;
        border-top: 1px solid var(--line);
        width: 100%;
    }
    .header__nav-label {
        display: block;
        font-size: 9px;
        letter-spacing: .26em;
        text-transform: uppercase;
        color: var(--olive);
        margin-bottom: 8px;
        padding-inline-start: 14px;
    }
    .header__nav-foot { display: block; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); width: 100%; }
    .header__nav-foot .header__lang { color: var(--muted); }
    .header__nav-foot .header__lang.is-active { color: #fff; background: var(--olive); }
    .header__utility .header__langs { display: none; }
    .header__logo { grid-area: logo; padding: 0; }
    .header__logo img { height: 36px; }
    .header__actions { grid-area: actions; }

    .opener__caption h1 { font-size: clamp(34px, 10vw, 56px); }
    .opener__chips { display: none; }
    .ticker__item { font-size: 10px; }
    .chapter__head { grid-template-columns: 1fr auto; }
    .chapter__note { display: none; }
    .stagger { grid-template-columns: 1fr; }
    .stagger > .piece { margin-block-start: 0 !important; }
    .line-item { grid-template-columns: 70px 1fr auto; grid-template-areas: "media info sum" "media qty kill"; }
    .line-item__media { grid-area: media; }
    .line-item__media img { width: 70px; height: 84px; }
    .line-item > div:nth-child(2) { grid-area: info; }
    .line-item__qty { grid-area: qty; }
    .line-item__sum { grid-area: sum; justify-self: end; }
    .line-item__kill { grid-area: kill; justify-self: end; }
    .form-row { grid-template-columns: 1fr; }
    .footer__cols { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .grid-pieces, .run { grid-template-columns: 1fr; }
    .run .run__aside { grid-column: span 1; padding-inline: 0; }
    .tiles { grid-template-columns: 1fr; }
    .tile__media { aspect-ratio: 4 / 5; }
    .benefits__grid { grid-template-columns: 1fr; }
    .opener { min-height: 84vh; }
    .opener__scroll { display: none; }
    .opener__caption .marker { margin-bottom: 16px; }
    .gallery__thumbs { grid-template-columns: repeat(3, 1fr); }
    .price-filter input { width: 88px; }
    .chapter__head h2 { font-size: 26px; }
}

/* ── Sticky cart bar ──────────────────────────────────────────── */
.cartbar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 950;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 30px rgba(42,35,64,.10);
    transform: translateY(110%);
    transition: transform .45s var(--ease);
}
.cartbar.is-visible { transform: translateY(0); }
.cartbar.is-dismissed { transform: translateY(110%); }

.cartbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 22px;
}
.cartbar__ico { display: flex; color: var(--olive-deep); }
.cartbar__ico .ico { width: 26px; height: 26px; }

.cartbar__info { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.cartbar__count {
    min-width: 26px; height: 26px; padding: 0 7px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--olive-deep); color: #fff;
    border-radius: 999px; font-size: 13px; font-weight: 600;
}
.cartbar__label { font-size: 13px; color: var(--muted, #6b6478); }

.cartbar__total { margin-inline-start: auto; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.cartbar__total-label { font-size: 12px; color: var(--muted, #6b6478); letter-spacing: .04em; }
.cartbar__total strong { font-family: var(--font-display); font-size: 19px; color: var(--ink); }

.cartbar__actions { display: flex; gap: 10px; }
.cartbar__go { display: inline-flex; align-items: center; gap: 8px; }
.cartbar__go .ico { width: 16px; height: 16px; }

.cartbar__close {
    border: 0; background: none; cursor: pointer;
    font-size: 22px; line-height: 1; color: var(--muted, #6b6478);
    padding: 4px 6px; border-radius: 6px;
    transition: color .3s var(--ease), background .3s var(--ease);
}
.cartbar__close:hover { color: var(--ink); background: var(--line-soft); }

/* Keep page content reachable above the bar */
body:has(.cartbar.is-visible:not(.is-dismissed)) { padding-bottom: 74px; }

@media (max-width: 640px) {
    .cartbar__inner { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
    .cartbar__label, .cartbar__total-label, .cartbar__view { display: none; }
    .cartbar__total { margin-inline-start: auto; }
    body:has(.cartbar.is-visible:not(.is-dismissed)) { padding-bottom: 64px; }
}

/* ── Checkout form icons ──────────────────────────────────────── */
.ico { width: 15px; height: 15px; flex: 0 0 auto; vertical-align: -2px; }
.form-group label .ico { margin-inline-end: 7px; color: var(--olive-deep); opacity: .8; }
.form-group label { display: inline-flex; align-items: center; }
.form-heading { display: flex; align-items: center; gap: 10px; }
.form-heading .ico { width: 20px; height: 20px; color: var(--olive-deep); }
.panel h3 { display: flex; align-items: center; gap: 9px; }
.panel h3 .ico { width: 18px; height: 18px; color: var(--olive-deep); }
.btn-block .ico { width: 17px; height: 17px; margin-inline-end: 8px; }
.btn-block { display: inline-flex; align-items: center; justify-content: center; }

.pay__ico {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--line-soft);
    border-radius: 8px;
    color: var(--olive-deep);
}
.pay__ico .ico { width: 20px; height: 20px; }
.pay__opt.selected .pay__ico, .pay__opt:has(input:checked) .pay__ico { background: var(--olive-deep); color: #fff; }

/* Payment method instructions (checkout radios + confirmation page) */
.pay__instructions {
    margin-top: 8px !important;
    padding: 9px 12px;
    background: var(--ivory-deep, #F4EFE7);
    border-radius: 6px;
    font-size: 12px !important;
    line-height: 1.7;
    color: var(--ink);
}
.payment-instructions p { margin: 6px 0 0; font-size: 13px; line-height: 1.8; color: var(--muted, #6b6478); }

/* Category page head: admin-managed icon + description */
.page-head__icon { font-size: 0.8em; margin-inline-end: 8px; vertical-align: -2px; }
.page-head__desc { margin-top: 10px; max-width: 60ch; font-size: 14px; line-height: 1.8; color: var(--muted, #6b6478); }

/* Per-field validation state on checkout */
.field-error { margin: 6px 0 0; font-size: 12px; color: #A85F55; line-height: 1.6; }
.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea { border-color: #A85F55; }
.form-group input[readonly] { background: var(--ivory-deep, #F4EFE7); color: var(--muted, #6b6478); cursor: default; }
.form-group select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px;
    font-family: inherit; font-size: 14px; background: #fff; color: var(--ink);
}
.form-group select:focus { outline: none; border-color: var(--olive-deep); }

/* ── Order tracking ───────────────────────────────────────────── */
.track-form { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.track-form .btn .ico { width: 16px; height: 16px; margin-inline-end: 8px; }
.track-steps {
    display: flex; gap: 0; list-style: none; margin: 24px 0 0; padding: 0;
    counter-reset: step;
}
.track-steps li {
    flex: 1; text-align: center; position: relative; padding-top: 4px;
}
.track-steps li:not(:first-child)::before {
    content: ''; position: absolute; top: 20px; inset-inline-start: -50%;
    width: 100%; height: 2px; background: var(--line);
}
.track-steps li.is-done:not(:first-child)::before { background: var(--olive-deep); }
.track-steps__dot {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: #fff; border: 2px solid var(--line);
    color: var(--muted, #6b6478); font-size: 13px; font-weight: 600;
}
.track-steps li.is-done .track-steps__dot { background: var(--olive-deep); border-color: var(--olive-deep); color: #fff; }
.track-steps li.is-current .track-steps__dot { box-shadow: 0 0 0 5px rgba(91,62,142,.15); }
.track-steps__dot .ico { width: 15px; height: 15px; }
.track-steps__label { display: block; margin-top: 8px; font-size: 12px; color: var(--ink); }
