@charset "UTF-8";
/* Fonts: the licensed Arabic face lives in arabic-font.css, linked by the
   layout only when its files are present. Readex Pro is the fallback. */

/* ==========================================================================
   SIVORA storefront
   Brand colours arrive from Theme::cssVars() as --brand, --brand-700,
   --brand-300, --brand-soft, --accent, --accent-700, --sand, --ink.
   Everything below derives from those: no brand hex is written here.
   Layout uses logical properties only, so RTL and LTR share one rule set.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
    /* surfaces — fallbacks first, color-mix refinement after */
    --paper: #ffffff;
    --paper-2: #f7f5f1;
    --paper-3: #efece6;
    --paper-2: color-mix(in srgb, var(--sand) 26%, #fff);
    --paper-3: color-mix(in srgb, var(--sand) 58%, #fff);

    --line: rgba(23, 23, 23, .12);
    --line-soft: rgba(23, 23, 23, .07);
    --line-gold: rgba(160, 130, 70, .45);
    --line: color-mix(in srgb, var(--brand) 16%, transparent);
    --line-soft: color-mix(in srgb, var(--brand) 8%, transparent);
    --line-gold: color-mix(in srgb, var(--accent) 60%, transparent);

    --ink-1: var(--ink);
    --ink-2: #4d4d4d;
    --ink-3: #6f6f6f;
    --ink-2: color-mix(in srgb, var(--ink) 72%, var(--paper-3));
    --ink-3: color-mix(in srgb, var(--ink) 52%, var(--paper-3));
    --on-brand: #f6f4ef;
    --on-brand: color-mix(in srgb, var(--sand) 72%, #fff);
    --on-brand-2: rgba(246, 244, 239, .72);
    --on-brand-2: color-mix(in srgb, var(--sand) 58%, transparent);

    /* type */
    --font-ui: "SivoraArabic", "Readex Pro", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: "SivoraArabic", "Readex Pro", "Marcellus", -apple-system, "Segoe UI", sans-serif;
    --font-num: "Inter", "SivoraArabic", "Readex Pro", ui-sans-serif, sans-serif;

    --step--1: .8125rem;
    --step-0: 1rem;
    --step-1: 1.125rem;
    --step-2: 1.4375rem;
    --step-3: 1.875rem;
    --step-4: 2.375rem;
    --step-5: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);

    /* space */
    --s1: .25rem;
    --s2: .5rem;
    --s3: .75rem;
    --s4: 1rem;
    --s5: 1.5rem;
    --s6: 2rem;
    --s7: 3rem;
    --s8: 4.5rem;

    --r: 2px;
    --r-pill: 999px;
    --shadow-1: 0 1px 1px rgba(23, 23, 23, .035), 0 10px 28px -20px rgba(23, 23, 23, .22);
    --shadow-2: 0 2px 2px rgba(23, 23, 23, .04), 0 22px 50px -28px rgba(23, 23, 23, .30);
    /* The page uses the screen it is given. On a laptop the content runs
       nearly edge to edge; on a large monitor it stops at a width where a
       row of cards still reads as a row rather than a horizon. The gutter
       grows with the viewport so the edges never feel tight. */
    --wrap: 1680px;
    --gutter: clamp(1rem, 2.6vw, 3rem);

    /* ------------------------------------------------------------ palette
       Nine hues, fixed rather than derived from the brand, because they
       carry MEANING: paid is green under a green identity and under a navy
       one alike. Each comes as a trio — the ink you set type and icons in,
       a soft wash for the surface behind it, and a line a shade stronger
       than the wash so the shape still has an edge on white.

       Every one of the inks clears 4.5:1 on its own wash and on white, so
       they can be used for text, not only for decoration. Nothing here is
       a brand colour: the brand stays the voice of the shop, these are the
       vocabulary the interface uses to say published, paid, waiting, VIP.  */
    --c-green:  #0f7a52;  --c-green-soft:  #e6f6ef;  --c-green-line:  #b6e2cf;
    --c-teal:   #0a7083;  --c-teal-soft:   #e3f5f8;  --c-teal-line:   #ace0e9;
    --c-sky:    #0b6bb5;  --c-sky-soft:    #e6f1fb;  --c-sky-line:    #b4d6f2;
    --c-indigo: #4a4fbd;  --c-indigo-soft: #ecedfb;  --c-indigo-line: #c8caf2;
    --c-violet: #7a40b5;  --c-violet-soft: #f2eafb;  --c-violet-line: #ddc8f1;
    --c-plum:   #a52a76;  --c-plum-soft:   #fbeaf4;  --c-plum-line:   #f2c6e0;
    --c-rose:   #b22840;  --c-rose-soft:   #fdeaed;  --c-rose-line:   #f6c7cf;
    --c-amber:  #9a6508;  --c-amber-soft:  #fdf3e0;  --c-amber-line:  #efd9ac;
    --c-slate:  #51607a;  --c-slate-soft:  #eef1f6;  --c-slate-line:  #cdd6e4;

    /* Named for what they MEAN, so a view never has to pick a hue itself. */
    --c-ok: var(--c-green);   --c-ok-soft: var(--c-green-soft);   --c-ok-line: var(--c-green-line);
    --c-wait: var(--c-amber); --c-wait-soft: var(--c-amber-soft); --c-wait-line: var(--c-amber-line);
    --c-bad: var(--c-rose);   --c-bad-soft: var(--c-rose-soft);   --c-bad-line: var(--c-rose-line);
    --c-info: var(--c-sky);   --c-info-soft: var(--c-sky-soft);   --c-info-line: var(--c-sky-line);
    --c-off: var(--c-slate);  --c-off-soft: var(--c-slate-soft);  --c-off-line: var(--c-slate-line);
}

html[dir="ltr"] {
    --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    /* Marcellus is cut from Roman inscriptional capitals — the same lineage as
       a hallmark stamped into metal. */
    --font-display: "Marcellus", "SivoraArabic", "Readex Pro", Georgia, "Times New Roman", serif;
}

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink-1);
    font-family: var(--font-ui);
    font-size: var(--step-0);
    line-height: 1.7;
    overflow-x: hidden;

    /* The footer belongs at the bottom of the window, not at the bottom of
       the text. On a short page — a sent request, an empty cart, a thank-you
       — the content does not reach the fold, and without this the footer
       floats up into the middle of the screen with white space under it. */
    min-block-size: 100svh;
    display: flex;
    flex-direction: column;
}
#main {
    flex: 1 0 auto;          /* takes the slack, never shrinks its content */
    min-inline-size: 0;
}
.site-foot { flex: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.22;
    margin: 0;
    letter-spacing: -.004em;
}

p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

img, svg, video { max-width: 100%; }
img { height: auto; }

a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--accent-700); }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

input, select, textarea { font: inherit; color: inherit; }

table { border-collapse: collapse; width: 100%; }

:focus-visible {
    outline: 2px solid var(--accent-700);
    outline-offset: 2px;
}

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

.skip-link {
    position: absolute; inset-inline-start: var(--s4); inset-block-start: -3rem;
    z-index: 60; background: var(--brand); color: var(--on-brand);
    padding: var(--s2) var(--s4); border-radius: var(--r);
    transition: inset-block-start .15s ease;
}
.skip-link:focus { inset-block-start: var(--s2); color: var(--on-brand); }

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

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

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s3);
    margin-block-end: var(--s6);
    padding-block-end: var(--s3);
    border-block-end: 1px solid var(--line-soft);
    position: relative;
}
.section-head::after {
    content: "";
    position: absolute;
    inset-block-end: -1px;
    inset-inline-start: 0;
    width: 48px;
    border-block-end: 1px solid var(--accent);
}
.section-head h2 { font-size: var(--step-3); }
.section-head-center { display: block; text-align: center; }
.section-head-center::after { inset-inline-start: 50%; transform: translateX(-50%); }
.section-sub { color: var(--ink-3); margin-block-start: var(--s2); margin-block-end: 0; }
.section-link { font-size: var(--step--1); color: var(--ink-3); border-block-end: 1px solid var(--line-gold); padding-block-end: 2px; }
.section-link:hover { color: var(--brand-700); border-color: var(--accent); }

.grid {
    display: grid;
    gap: var(--s5);
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.product-grid {
    display: grid;
    gap: var(--s5);
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
}

.eyebrow {
    font-size: var(--step--1);
    letter-spacing: .14em;
    color: var(--ink-3);
    margin: 0 0 var(--s3);
    display: flex;
    align-items: center;
    gap: var(--s3);
}
.eyebrow::before {
    content: "";
    width: 26px;
    border-block-end: 1px solid var(--accent);
    flex: none;
}
.eyebrow a { color: inherit; }
.eyebrow a:hover { color: var(--brand-700); }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }

.muted { color: var(--ink-3); }

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    min-height: 46px;
    padding: .65rem 1.6rem;
    border: 1px solid transparent;
    border-radius: var(--r);
    background: none;
    font-size: var(--step-0);
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    text-align: center;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-700); border-color: var(--brand-700); color: var(--on-brand); }
.btn-ghost { border-color: var(--line); color: var(--brand-700); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--brand-700); background: var(--paper-2); }
.btn-on-dark { border-color: var(--on-brand-2); color: var(--on-brand); }
.btn-on-dark:hover { background: var(--on-brand); color: var(--brand); border-color: var(--on-brand); }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* ---------------------------------------------------------------- cards */
.card {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--r);
    box-shadow: var(--shadow-1);
}

.badge {
    display: inline-block;
    font-size: .6875rem;
    letter-spacing: .1em;
    padding: .2rem .55rem;
    border: 1px solid var(--line);
    border-radius: var(--r);
    color: var(--ink-2);
    background: var(--paper);
    line-height: 1.6;
}
.badge-vip {
    border-color: var(--line-gold);
    background: var(--accent);
    color: var(--brand);
    font-weight: 600;
}

/* ---------------------------------------------------------------- alerts */
.alert {
    border: 1px solid var(--line);
    border-inline-start: 3px solid var(--ink-3);
    border-radius: var(--r);
    padding: var(--s3) var(--s4);
    margin-block-end: var(--s4);
    background: var(--paper-2);
    font-size: var(--step-0);
}
.alert-success { border-inline-start-color: var(--brand); background: var(--brand-soft); }
.alert-error { border-inline-start-color: #a4352c; background: #fbf1ef; color: #70241e; }
.alert-info { border-inline-start-color: var(--accent); background: var(--paper-2); }
.flash-wrap { padding-block-start: var(--s4); }

/* ---------------------------------------------------------------- forms */
.field { margin-block-end: var(--s4); }
.label {
    display: block;
    font-size: var(--step--1);
    color: var(--ink-2);
    margin-block-end: var(--s2);
}
.input, .select, .textarea {
    width: 100%;
    min-height: 46px;
    padding: .55rem .75rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    color: var(--ink-1);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 7rem; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
    border-color: var(--brand-300);
    box-shadow: 0 0 0 3px var(--brand-soft);
    outline: none;
}
.select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 49%, currentColor 50%), linear-gradient(-45deg, transparent 49%, currentColor 50%);
    background-size: 6px 6px, 6px 6px;
    background-position: right 1rem center, right .62rem center;
    background-repeat: no-repeat;
    padding-inline-end: 2.2rem;
}
html[dir="rtl"] .select {
    background-position: left 1rem center, left .62rem center;
    padding-inline-end: .75rem;
    padding-inline-start: 2.2rem;
}
.checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--s3);
    cursor: pointer;
    padding-block: var(--s2);
}
.checkbox input[type="checkbox"] {
    inline-size: 18px;
    block-size: 18px;
    margin-block-start: .32rem;
    accent-color: var(--brand);
    flex: none;
}

/* ---------------------------------------------------------------- tables */
.table { font-size: var(--step-0); }
.table th, .table td {
    text-align: start;
    padding: .7rem .9rem;
    border-block-end: 1px solid var(--line-soft);
    vertical-align: middle;
}
.table thead th {
    font-family: var(--font-ui);
    font-size: var(--step--1);
    color: var(--ink-3);
    font-weight: 500;
    border-block-end: 1px solid var(--line);
}
.table tbody tr:last-child th, .table tbody tr:last-child td { border-block-end: 0; }

.spec-table { margin-block: var(--s5); }
.spec-table th {
    inline-size: 42%;
    color: var(--ink-3);
    font-weight: 400;
    font-family: var(--font-ui);
    font-size: var(--step--1);
}
.spec-table td { font-variant-numeric: tabular-nums; }

.price {
    font-family: var(--font-num);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: -.01em;
    margin: 0;
}
.price-lg { font-size: var(--step-3); font-weight: 500; }

.empty-state {
    border: 1px dashed var(--line);
    border-radius: var(--r);
    padding: var(--s7) var(--s5);
    text-align: center;
    color: var(--ink-3);
    background: var(--paper-2);
}
.empty-state .btn { margin-block-start: var(--s4); }

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s2);
    font-size: var(--step--1);
    color: var(--ink-3);
    padding-block: var(--s5) var(--s3);
}
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand-700); }
.crumb-sep { color: var(--line-gold); }

/* ================================================================ header */
.vip-strip {
    background: var(--brand-700);
    color: var(--on-brand);
    font-size: var(--step--1);
    padding-block: .4rem;
}
.vip-strip .container { display: flex; align-items: center; gap: var(--s2); }
.vip-strip-dot {
    inline-size: 6px; block-size: 6px; border-radius: var(--r-pill);
    background: var(--accent); flex: none;
}

.site-head {
    position: sticky;
    inset-block-start: 0;
    z-index: 40;
    background: var(--paper);
    border-block-end: 1px solid var(--line-soft);
}
.head-bar {
    display: flex;
    align-items: center;
    gap: var(--s4);
    min-height: 72px;
}

.wordmark { display: inline-flex; align-items: center; flex: none; }
.wordmark-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: .26em;
    color: var(--brand);
    line-height: 1;
    padding-inline-start: .26em;
}
.wordmark-foot { color: var(--on-brand); font-size: 1.25rem; }

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: 42px;
    block-size: 42px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--paper);
    cursor: pointer;
    flex: none;
}
.nav-toggle svg { inline-size: 20px; block-size: 20px; }

.site-nav { display: none; }
.nav-list { display: flex; align-items: center; gap: var(--s5); }
.nav-link {
    color: var(--ink-2);
    font-size: var(--step-0);
    padding-block: .35rem;
    border-block-end: 1px solid transparent;
}
.nav-link:hover { color: var(--brand-700); border-block-end-color: var(--line-gold); }
.nav-link.is-current { color: var(--brand); border-block-end-color: var(--accent); }

.head-tools {
    display: flex;
    align-items: center;
    gap: var(--s2);
    margin-inline-start: auto;
}

.head-search { display: none; position: relative; }
.head-search input {
    inline-size: 190px;
    min-height: 42px;
    padding-inline: 2.3rem .75rem;
    background: var(--paper-2);
    border: 1px solid transparent;
    border-radius: var(--r);
    transition: border-color .15s ease, background-color .15s ease;
}
.head-search input:focus { background: var(--paper); border-color: var(--brand-300); outline: none; }
.head-search-icon {
    position: absolute;
    inset-inline-start: .7rem;
    inset-block-start: 50%;
    transform: translateY(-50%);
    inline-size: 17px;
    block-size: 17px;
    color: var(--ink-3);
    pointer-events: none;
}

.head-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: 42px;
    block-size: 42px;
    border-radius: var(--r);
    color: var(--ink-2);
}
.head-icon:hover { background: var(--paper-2); color: var(--brand-700); }
.head-icon svg { inline-size: 21px; block-size: 21px; }

.lang { position: relative; }
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    min-height: 42px;
    padding-inline: .6rem;
    border: 1px solid transparent;
    border-radius: var(--r);
    background: none;
    color: var(--ink-2);
    cursor: pointer;
    font-size: var(--step--1);
}
.lang-toggle:hover { background: var(--paper-2); color: var(--brand-700); }
.lang-toggle svg { inline-size: 17px; block-size: 17px; }
.lang-toggle span { display: none; }
.lang-menu {
    position: absolute;
    inset-block-start: calc(100% + 6px);
    inset-inline-end: 0;
    min-inline-size: 11rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-2);
    padding: var(--s2);
    z-index: 45;
}
.lang-menu a {
    display: block;
    padding: .45rem .6rem;
    border-radius: var(--r);
    color: var(--ink-2);
    font-size: var(--step-0);
}
.lang-menu a:hover { background: var(--paper-2); color: var(--brand-700); }
.lang-menu a.is-current { color: var(--brand); border-inline-start: 2px solid var(--accent); }

.nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(12, 12, 12, .42);
    z-index: 44;
}

/* drawer on phones and small tablets; a portrait iPad keeps the real nav */
@media (max-width: 799px) {
    .site-nav {
        position: fixed;
        inset-block: 0;
        inset-inline-start: 0;
        inline-size: min(88vw, 22rem);
        background: var(--paper);
        border-inline-end: 1px solid var(--line);
        box-shadow: var(--shadow-2);
        padding: var(--s6) var(--s5);
        z-index: 46;
        transform: translateX(-102%);
        transition: transform .24s ease;
        display: block;
        overflow-y: auto;
    }
    html[dir="rtl"] .site-nav { transform: translateX(102%); }
    body.nav-open .site-nav { transform: translateX(0); }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-list li + li { border-block-start: 1px solid var(--line-soft); }
    .nav-link {
        display: block;
        padding-block: var(--s4);
        font-family: var(--font-display);
        font-size: var(--step-2);
        border: 0;
    }
    .nav-link.is-current { color: var(--brand); }
    .nav-search { margin-block-start: var(--s6); display: grid; gap: var(--s3); }
    body.nav-open { overflow: hidden; }
}

@media (min-width: 800px) {
    .nav-toggle { display: none; }
    .site-nav { display: flex; align-items: center; gap: var(--s5); }
    .nav-search { display: none; }
    .head-search { display: block; }
    .lang-toggle span { display: inline; }
    .nav-scrim { display: none !important; }
}
/* Between a portrait tablet and a laptop the bar carries everything, so the
   search box gives up the width rather than pushing the nav into a wrap. */
@media (min-width: 800px) and (max-width: 1099px) {
    .head-search { inline-size: min(14rem, 22vw); }
    .site-nav { gap: var(--s4); }
    /* A nav item that wraps to two lines makes the whole bar taller and
       crooked — on this band they stay on one line and give up size. */
    .site-nav .nav-link { white-space: nowrap; font-size: var(--step--1); }
}
@media (min-width: 1100px) {
    .site-nav { gap: var(--s6); }
}

/* ================================================================== hero
   A full-height stage. The model is the page's one loud moment; the copy
   sits over it on the reading side and everything else stays quiet.
   ======================================================================== */
.hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    background: var(--brand-900);
    color: var(--on-brand);
    min-block-size: min(94svh, 54rem);
    display: grid;
    align-items: center;
}
.hero::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    block-size: 1px;
    background: var(--metal);
    opacity: .55;
    z-index: 3;
}

/* ---- stage ---- */
.hero-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-gl,
.hero-fx {
    position: absolute;
    inset: 0;
    inline-size: 100%;
    block-size: 100%;
    display: block;
}
.hero-gl { opacity: 0; transition: opacity 1.2s ease .15s; }
.hero[data-hero].is-live .hero-gl { opacity: 1; }
.hero-fx { z-index: 1; pointer-events: none; }

/* The engraved mark is what a visitor without WebGL sees. */
.hero-mark {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    transform: translate(-50%, -50%);
    inline-size: min(60vmin, 28rem);
    color: var(--accent);
    opacity: .34;
}
.hero.is-live .hero-mark { display: none; }

/* Reading side gets a gradient so type stays legible over the model. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Only the reading side is darkened, and gently — a heavy vignette here
       swallows the lower half of the model. */
    background:
        linear-gradient(to var(--grad-dir, left),
            color-mix(in srgb, var(--brand-900) 88%, transparent) 0%,
            color-mix(in srgb, var(--brand-900) 58%, transparent) 34%,
            color-mix(in srgb, var(--brand-900) 18%, transparent) 58%,
            transparent 74%),
        linear-gradient(to bottom,
            transparent 62%,
            color-mix(in srgb, var(--brand-900) 30%, transparent) 100%);
}
html[dir="rtl"] { --grad-dir: left; }
html[dir="ltr"] { --grad-dir: right; }

/* ---- copy ---- */
.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 38rem;
    padding-block: var(--s8) var(--s7);
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: var(--s3);
    font-size: var(--step--1);
    letter-spacing: .04em;
    color: var(--gold-200);
    margin-block-end: var(--s5);
    opacity: 0;
    animation: heroFade .9s ease .15s forwards;
}
.hero-eyebrow::before {
    content: "";
    inline-size: 2.5rem;
    block-size: 1px;
    background: var(--metal);
    flex: none;
    transform-origin: var(--grad-dir, left);
    animation: heroRule 1s cubic-bezier(.2, .7, .2, 1) .1s both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 1.3rem + 5.2vw, 5.1rem);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-block-end: var(--s5);
    color: #fff;
}
.hero-title .line {
    display: block;
    overflow: hidden;
}
.hero-title .line > span {
    display: block;
    transform: translateY(115%);
    animation: heroLine 1.05s cubic-bezier(.16, .84, .3, 1) both;
    animation-delay: calc(.25s + var(--i, 0) * .11s);
}
/* The last word of the headline carries the metal, because the headline is
   about becoming metal — not decoration for its own sake. */
.hero-title .line:last-child > span {
    background: var(--metal);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: heroLine 1.05s cubic-bezier(.16, .84, .3, 1) both,
               metalSweep 9s linear 1.6s infinite;
}

.hero-text {
    color: color-mix(in srgb, #fff 74%, transparent);
    font-size: var(--step-1);
    line-height: 1.9;
    max-width: 33rem;
    margin-block-end: var(--s6);
    opacity: 0;
    animation: heroFade 1s ease .62s forwards;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s3);
    margin-block-end: var(--s6);
    opacity: 0;
    animation: heroFade 1s ease .76s forwards;
}
.hero-cta .btn-primary {
    background: var(--metal);
    background-size: 220% 100%;
    border-color: transparent;
    color: var(--brand-900);
    font-weight: 600;
    will-change: transform, background-position;
    transition: background-position .6s ease, transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
    box-shadow: 0 10px 30px -14px color-mix(in srgb, var(--accent) 80%, transparent);
}
.hero-cta .btn-primary:hover {
    background-position: 100% 0;
    box-shadow: 0 16px 40px -14px color-mix(in srgb, var(--accent) 90%, transparent);
}

.trust {
    display: grid;
    gap: var(--s3);
    border-block-start: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    padding-block-start: var(--s4);
    font-size: var(--step--1);
    color: color-mix(in srgb, #fff 62%, transparent);
    opacity: 0;
    animation: heroFade 1s ease .9s forwards;
}
.trust li { display: flex; align-items: center; gap: var(--s2); }
.trust li::before {
    content: "";
    inline-size: 5px;
    block-size: 5px;
    background: var(--accent);
    flex: none;
    transform: rotate(45deg);
}

/* ---- wax → gold readout, tied to the scroll progress the scene reports ---- */
.hero-state {
    position: relative;
    z-index: 2;
    margin-block-start: var(--s5);
    display: none;
    align-items: center;
    gap: var(--s3);
    font-size: var(--step--1);
    color: color-mix(in srgb, #fff 45%, transparent);
    opacity: 0;
    animation: heroFade 1s ease 1.1s forwards;
}
.hero-state-rule {
    inline-size: 6rem;
    block-size: 1px;
    background: color-mix(in srgb, #fff 20%, transparent);
    position: relative;
}
.hero-state-rule i {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    inline-size: calc(var(--hero-progress, 0) * 100%);
    background: var(--metal);
}
.hero-state-gold { color: color-mix(in srgb, var(--hero-metal, var(--accent)) calc(40% + var(--hero-progress, 0) * 60%), #ffffff00); }

/* The ring is formed by the mouse, so say so — once, quietly, and only
   until the visitor discovers it. */
.hero-state-hint {
    margin-inline-start: var(--s3);
    padding-inline-start: var(--s3);
    border-inline-start: 1px solid color-mix(in srgb, #fff 14%, transparent);
    color: color-mix(in srgb, #fff 55%, transparent);
    opacity: 0;
    transform: translateY(2px);
    transition: opacity .5s ease, transform .5s ease;
    pointer-events: none;
}
.hero.is-hint .hero-state-hint { opacity: 1; transform: none; }
.hero.is-driven .hero-state-hint { opacity: 0; }

/* While the piece is being formed, the stage follows the hand. */
/* ---------------------------------------------- the other two hero styles
   A banner image behaves exactly like the 3D stage — same box, same scrim —
   so switching the style in the panel never moves the copy. "Plain" simply
   has no stage, and the section shrinks to the copy it holds. */
.hero-stage-img { position: absolute; inset: 0; z-index: -1; }
.hero-banner {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-plain { min-block-size: auto; }
.hero-plain .hero-copy { padding-block: var(--s8); }
/* With a banner the picture belongs behind the copy on every size, so it
   keeps the absolute stage instead of taking the phone's own band. */
@media (max-width: 899px) {
    .hero-stage-img { position: absolute; inset: 0; order: 0; block-size: 100%; margin: 0; }
    .hero-banner::before, .hero.hero-banner::before { display: block; }
}

.hero[data-hero] .hero-stage { cursor: crosshair; }
/* Keep the canvas fade-in from the base rule; only add the halo to it. */
.hero-gl { transition: opacity 1.2s ease .15s, filter .4s ease; }
.hero.is-driven .hero-gl {
    filter: drop-shadow(0 0 calc(var(--hero-progress, 0) * 34px)
            color-mix(in srgb, var(--hero-metal, var(--accent)) calc(var(--hero-progress, 0) * 55%), transparent));
}

@keyframes heroLine { to { transform: translateY(0); } }
@keyframes heroFade { to { opacity: 1; } }
@keyframes heroRule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes metalSweep { to { background-position: 200% 0; } }

@media (min-width: 900px) {
    .hero-copy { padding-block: var(--s8); }
    .hero-state { display: flex; }
}
@media (max-width: 899px) {
    .hero { min-block-size: auto; }
}

/* ---------------------------------------------------------------- banners */
.banner-band { padding-block-start: var(--s7); }
.banner-row { display: grid; gap: var(--s5); }
.banner { display: grid; overflow: hidden; }
.banner-img { inline-size: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.banner-body { padding: var(--s5); }
.banner-title { font-size: var(--step-2); margin-block-end: var(--s2); }
.banner-sub { color: var(--ink-3); margin-block-end: var(--s4); }
@media (min-width: 760px) {
    .banner-row { grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); }
}

/* ---------------------------------------------------------------- categories */
.cat-row {
    display: grid;
    gap: var(--s4);
    grid-template-columns: repeat(auto-fit, minmax(min(9.5rem, 45%), 1fr));
}
.cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s3);
    padding: var(--s5) var(--s3);
    border: 1px solid var(--line-soft);
    border-radius: var(--r);
    background: var(--paper);
    color: var(--ink-1);
    text-align: center;
    transition: border-color .18s ease, background-color .18s ease;
}
.cat-tile:hover { border-color: var(--line-gold); background: var(--paper-2); color: var(--brand); }
.cat-icon { inline-size: 40px; block-size: 40px; color: var(--brand); }
.cat-tile:hover .cat-icon { color: var(--accent-700); }
.cat-name { font-size: var(--step-0); line-height: 1.4; }

/* A category with a cover becomes a picture tile: the image fills the card
   and the name sits on a gradient over it, so a row mixing tiles with and
   without covers still lines up. */
.cat-tile.has-cover {
    position: relative;
    padding: 0;
    overflow: hidden;
    justify-content: flex-end;
    min-block-size: 9.5rem;
    isolation: isolate;
}
.cat-cover {
    position: absolute;
    inset: 0;
    z-index: -2;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.cat-tile.has-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top,
        color-mix(in srgb, var(--brand-900, #06201e) 86%, transparent) 0%,
        color-mix(in srgb, var(--brand-900, #06201e) 34%, transparent) 55%,
        transparent 100%);
}
.cat-tile.has-cover .cat-name {
    position: relative;
    padding: var(--s4) var(--s3);
    color: #fff;
    font-weight: 500;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
}
.cat-tile.has-cover:hover .cat-cover { transform: scale(1.05); }

/* --------------------------------------------- category page: cover + subs */
.cat-banner {
    margin-block: var(--s4) var(--s5);
    border-radius: var(--r-lg, 20px);
    overflow: hidden;
    line-height: 0;
}
.cat-banner img {
    inline-size: 100%;
    block-size: clamp(9rem, 22vw, 17rem);
    object-fit: cover;
}
.subcat-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s3);
    margin-block-start: var(--s5);
}
.subcat-tile {
    display: inline-flex;
    align-items: center;
    gap: var(--s3);
    padding: var(--s2) var(--s4) var(--s2) var(--s2);
    padding-inline: var(--s2) var(--s4);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-pill, 999px);
    background: var(--paper);
    color: var(--ink-1);
    transition: border-color .18s ease, background-color .18s ease;
}
.subcat-tile:hover { border-color: var(--line-gold); background: var(--paper-2); color: var(--brand); }
.subcat-tile img {
    inline-size: 2.4rem;
    block-size: 2.4rem;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}
.subcat-tile:not(.has-cover) { padding-inline-start: var(--s4); }
.subcat-count {
    font-size: var(--step--2);
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- tabs */
.tab-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s5);
    border-block-end: 1px solid var(--line-soft);
    margin-block-end: var(--s6);
}
.tab {
    border: 0;
    background: none;
    padding: 0 0 var(--s3);
    margin-block-end: -1px;
    color: var(--ink-3);
    cursor: pointer;
    border-block-end: 1px solid transparent;
    font-size: var(--step-1);
    font-family: var(--font-display);
}
.tab:hover { color: var(--brand-700); }
.tab.is-active { color: var(--brand); border-block-end-color: var(--accent); }

/* ---------------------------------------------------------------- product card */
.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.product-card:hover { border-color: var(--line); box-shadow: var(--shadow-2); }
.pc-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    background: var(--paper-2);
    overflow: hidden;
}
.pc-media img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: contain;
    padding: var(--s4);
}
.pc-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--line);
}
.pc-placeholder svg { inline-size: 42%; block-size: auto; }
.pc-badge { position: absolute; inset-block-start: var(--s3); inset-inline-start: var(--s3); }
.pc-body { padding: var(--s4); display: grid; gap: var(--s2); }
.pc-formats {
    font-size: var(--step--1);
    color: var(--ink-3);
    letter-spacing: .05em;
    margin: 0;
}
.pc-name { font-size: var(--step-1); margin: 0; }
.pc-name a { color: var(--ink-1); }
.pc-name a:hover { color: var(--brand-700); }
.pc-price { font-size: var(--step-1); color: var(--brand); }

/* locked VIP card */
.product-card.is-locked { background: var(--paper-2); }
.product-card.is-locked:hover { box-shadow: var(--shadow-1); border-color: var(--line-soft); }
.locked-media { position: relative; display: grid; }
.locked-media img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    padding: 0;
    filter: blur(10px) saturate(.75);
    transform: scale(1.08);
}
.locked-shimmer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 50% at 50% 40%, var(--brand-soft), transparent 70%),
        repeating-linear-gradient(115deg, var(--paper-2) 0 14px, var(--paper-3) 14px 28px);
}
.lock-mark {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    inline-size: 54px;
    block-size: 54px;
    border-radius: var(--r-pill);
    background: var(--paper);
    border: 1px solid var(--line-gold);
    color: var(--brand);
}
html[dir="rtl"] .lock-mark { transform: translate(50%, -50%); }
.lock-mark svg { inline-size: 26px; block-size: 26px; }
.pc-name-locked { font-size: var(--step-1); color: var(--ink-2); }
.pc-locked-note { font-size: var(--step--1); margin: 0; }
.locked-cta {
    font-size: var(--step--1);
    color: var(--accent-700);
    margin: 0;
    padding-block-start: var(--s2);
    border-block-start: 1px solid var(--line-soft);
}

/* ---------------------------------------------------------------- steps */
.steps-band { background: var(--paper-2); }
.steps {
    display: grid;
    gap: var(--s5);
    counter-reset: step;
}
.step {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-block-start: 2px solid var(--accent);
    border-radius: var(--r);
    padding: var(--s5);
}
.step-no {
    display: block;
    font-family: var(--font-num);
    font-size: var(--step--1);
    letter-spacing: .18em;
    color: var(--accent-700);
    margin-block-end: var(--s3);
}
.step-title { font-size: var(--step-1); margin-block-end: var(--s2); }
.step-text { color: var(--ink-3); font-size: var(--step-0); margin: 0; }
@media (min-width: 680px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------------------------------------------------------------- custom teaser */
.custom-band { display: grid; gap: var(--s6); align-items: start; }
.custom-title { font-size: var(--step-4); margin-block-end: var(--s4); }
.custom-text { color: var(--ink-2); max-width: 34rem; margin-block-end: var(--s5); }
.status-card { padding: var(--s5); }
.status-head { font-size: var(--step-1); margin-block-end: var(--s4); }
.status-rail { display: grid; gap: 0; }
.status-step {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding-block: var(--s3);
    border-block-end: 1px solid var(--line-soft);
    color: var(--ink-3);
    font-size: var(--step-0);
}
.status-step:last-child { border-block-end: 0; }
.status-mark {
    inline-size: 20px;
    block-size: 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    display: grid;
    place-items: center;
    flex: none;
    color: var(--brand);
}
.status-step.is-done { color: var(--ink-1); }
.status-step.is-done .status-mark { border-color: var(--accent); background: var(--accent); color: var(--brand); }
.status-mark svg { inline-size: 12px; block-size: 12px; }
.status-note { font-size: var(--step--1); margin-block-start: var(--s4); }
@media (min-width: 900px) { .custom-band { grid-template-columns: 1.1fr .9fr; gap: var(--s8); } }

/* ---------------------------------------------------------------- help strip */
.help-band { background: var(--brand-700); color: var(--on-brand); }
.help-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s5);
}
.help-title { font-size: var(--step-2); margin-block-end: var(--s2); color: var(--on-brand); }
.help-text { color: var(--on-brand-2); margin: 0; }

/* ================================================================== shop */
.shop-head { padding-block-end: var(--s5); }
.shop-title { font-size: var(--step-4); }
.shop-intro { color: var(--ink-3); max-width: 44rem; margin-block-start: var(--s3); }

.shop-layout { display: grid; gap: var(--s6); padding-block-end: var(--s8); }

.filters-toggle { margin-block-end: var(--s4); }
.filters-body { display: none; }
.filters-body.is-open { display: block; }

.filter-group { margin-block-end: var(--s6); }
.filter-head {
    font-family: var(--font-ui);
    font-size: var(--step--1);
    letter-spacing: .08em;
    color: var(--ink-3);
    margin-block-end: var(--s3);
    padding-block-end: var(--s2);
    border-block-end: 1px solid var(--line-soft);
}
.cat-tree a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3);
    padding: .4rem 0;
    color: var(--ink-2);
    font-size: var(--step-0);
}
.cat-tree a:hover { color: var(--brand-700); }
.cat-tree a.is-current { color: var(--brand); font-weight: 500; }
.cat-tree a.is-current span:first-child { border-block-end: 1px solid var(--accent); }
.cat-count { font-size: var(--step--1); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cat-tree-sub { padding-inline-start: var(--s4); border-inline-start: 1px solid var(--line-soft); margin-inline-start: var(--s2); }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.filter-actions { display: grid; gap: var(--s3); justify-items: center; }
.filter-reset { font-size: var(--step--1); color: var(--ink-3); }
.filter-reset:hover { color: var(--brand-700); }

.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s4);
    padding-block-end: var(--s5);
    margin-block-end: var(--s5);
    border-block-end: 1px solid var(--line-soft);
}
.result-count { margin: 0; color: var(--ink-3); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.sort-form { display: flex; align-items: center; gap: var(--s3); }
.sort-label { margin: 0; white-space: nowrap; }
.sort-form .select { min-inline-size: 11rem; }

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s4);
    margin-block-start: var(--s7);
}
.pager-list { display: flex; align-items: center; gap: var(--s2); }
.pager-list a, .pager-list span {
    display: grid;
    place-items: center;
    min-inline-size: 38px;
    min-block-size: 38px;
    padding-inline: .4rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--r);
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
}
.pager-list a:hover { border-color: var(--accent); color: var(--brand-700); }
.pager-list .is-current { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.pager-list .pager-gap { border: 0; min-inline-size: 1rem; color: var(--ink-3); }
.pager-step { font-size: var(--step--1); color: var(--brand-700); }
.pager-step.is-off { color: var(--line); }

@media (min-width: 900px) {
    /* Tablet: a narrower rail and a tighter gap, so the grid beside it still
       fits three cards instead of dropping to two half-empty ones. */
    .shop-layout { grid-template-columns: 13rem minmax(0, 1fr); gap: var(--s5); align-items: start; }
    .shop-layout .product-grid { grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr)); }
    .filters-toggle { display: none; }
    .filters-body { display: block; position: sticky; inset-block-start: 96px; }
}
@media (min-width: 1200px) {
    .shop-layout { grid-template-columns: 16rem minmax(0, 1fr); gap: var(--s7); }
    .shop-layout .product-grid { grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); }
}

/* ================================================================ product */
.product-layout { display: grid; gap: var(--s6); padding-block-end: var(--s7); }

.gallery-main {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--paper-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--r);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.gallery-main img, .gallery-main video, .gallery-main iframe {
    inline-size: 100%;
    block-size: 100%;
    object-fit: contain;
    border: 0;
}
.gallery-main iframe { aspect-ratio: 16 / 9; object-fit: cover; }
.gallery-badge { position: absolute; inset-block-start: var(--s4); inset-inline-start: var(--s4); }

.thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
    gap: var(--s3);
    margin-block-start: var(--s3);
}
.thumb {
    position: relative;
    display: block;
    inline-size: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    background: var(--paper-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--r);
    cursor: pointer;
    overflow: hidden;
}
.thumb img { inline-size: 100%; block-size: 100%; object-fit: contain; }
.thumb:hover { border-color: var(--line-gold); }
.thumb.is-active { border-color: var(--accent); }
.thumb-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--brand);
    background: rgba(255, 255, 255, .4);
}
.thumb-play svg { inline-size: 26px; block-size: 26px; }

.buy .eyebrow { margin-block-end: var(--s3); }
.product-title { font-size: var(--step-4); margin-block-end: var(--s4); }
.buy .price-lg { color: var(--brand); margin-block-end: var(--s2); }
.sku { font-size: var(--step--1); color: var(--ink-3); margin-block-end: var(--s4); }
.sku-value { font-variant-numeric: tabular-nums; letter-spacing: .06em; color: var(--ink-2); }
.product-lede { color: var(--ink-2); line-height: 1.8; }

.buy-form { margin-block-start: var(--s5); }
.addons {
    border: 1px solid var(--line-soft);
    border-radius: var(--r);
    padding: var(--s4) var(--s5);
    margin: 0 0 var(--s5);
    background: var(--paper-2);
}
.addons-legend {
    font-family: var(--font-display);
    font-size: var(--step-1);
    padding-inline: var(--s2);
}
.addons-note { font-size: var(--step--1); margin-block-end: var(--s3); }
.addon-row {
    border-block-start: 1px solid var(--line-soft);
    align-items: center;
}
.addon-row:first-of-type { border-block-start: 0; }
.addon-text { display: grid; gap: 2px; flex: 1; min-inline-size: 0; }
.addon-label { font-size: var(--step-0); }
.addon-req { font-size: var(--step--1); color: var(--accent-700); }
.addon-note { font-size: var(--step--1); }
.addon-price {
    font-family: var(--font-num);
    font-variant-numeric: tabular-nums;
    font-size: var(--step--1);
    color: var(--brand);
    white-space: nowrap;
}

.buy-actions {
    display: grid;
    gap: var(--s4);
    padding-block-start: var(--s4);
    border-block-start: 1px solid var(--line);
}
.total-line { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin: 0; }
.total-label { font-size: var(--step--1); color: var(--ink-3); letter-spacing: .06em; }
.total-value {
    font-family: var(--font-num);
    font-variant-numeric: tabular-nums;
    font-size: var(--step-2);
    font-weight: 600;
    color: var(--brand);
}
.buy-buttons { display: grid; gap: var(--s3); }
.secure-note {
    font-size: var(--step--1);
    color: var(--ink-3);
    line-height: 1.8;
    margin-block-start: var(--s4);
    padding-inline-start: var(--s4);
    border-inline-start: 1px solid var(--line-gold);
}

@media (min-width: 560px) {
    .buy-buttons { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
    .product-layout { grid-template-columns: 1.05fr .95fr; gap: var(--s8); }
    .product-title { font-size: 2.75rem; }
}

/* mass table */
.mass-wrap { padding: var(--s5); max-width: 46rem; overflow-x: auto; }
.mass-table th[scope="row"] { font-family: var(--font-display); font-size: var(--step-1); font-weight: 500; }
.mass-wax-row { background: var(--brand-soft); }
.mass-wax-row th { color: var(--brand); }
.mass-field { display: inline-flex; align-items: center; gap: var(--s2); }
.mass-input {
    inline-size: 8.5rem;
    min-height: 40px;
    text-align: start;
    font-family: var(--font-num);
    font-variant-numeric: tabular-nums;
    background: var(--paper);
}
.unit { font-size: var(--step--1); color: var(--ink-3); }
.mass-note { font-size: var(--step--1); margin-block-start: var(--s3); }
.mass-note:last-child { margin-block-start: var(--s1); }

/* prose */
.prose-grid { display: grid; gap: var(--s6); }
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-3); margin-block-end: var(--s4); }
.prose p { color: var(--ink-2); line-height: 1.9; }
.prose-page { margin-block-end: var(--s7); }
.prose-page h1 { font-size: var(--step-4); margin-block-end: var(--s5); }
.license-card { padding: var(--s5); background: var(--paper-2); box-shadow: none; }
.license-head { font-size: var(--step-1); margin-block-end: var(--s3); }
.license-card p { font-size: var(--step--1); color: var(--ink-2); line-height: 1.85; }
@media (min-width: 900px) { .prose-grid { grid-template-columns: 1.4fr .6fr; gap: var(--s7); } }

/* ================================================================ support */
.page-wrap { padding-block-end: var(--s8); }
.page-head { margin-block-end: var(--s6); }
.page-title { font-size: var(--step-4); margin-block-end: var(--s3); }
.page-lede { color: var(--ink-3); max-width: 44rem; }
.support-grid {
    display: grid;
    gap: var(--s5);
    grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
}
.support-card { padding: var(--s5); display: grid; gap: var(--s3); align-content: start; }
.support-mark { color: var(--brand); inline-size: 26px; block-size: 26px; }
.support-mark svg { inline-size: 100%; block-size: 100%; }
.support-head { font-size: var(--step-1); }
.support-value { font-size: var(--step-0); color: var(--ink-2); margin: 0; }
.support-text { font-size: var(--step--1); color: var(--ink-3); }
.support-card .btn { justify-self: start; }
.support-links { margin-block-start: var(--s7); }
.support-links-head {
    font-family: var(--font-ui);
    font-size: var(--step--1);
    letter-spacing: .08em;
    color: var(--ink-3);
    margin-block-end: var(--s3);
    padding-block-end: var(--s2);
    border-block-end: 1px solid var(--line-soft);
}
.support-links ul { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); }
.support-links a { color: var(--ink-2); font-size: var(--step-0); }
.support-links a:hover { color: var(--brand-700); }

/* ================================================================ errors */
.error-wrap {
    padding-block: var(--s8);
    text-align: center;
    max-width: 34rem;
}
.error-code {
    font-family: var(--font-num);
    font-size: clamp(3.5rem, 12vw, 6rem);
    line-height: 1;
    color: var(--paper-3);
    margin: 0 0 var(--s4);
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
}
.error-title { font-size: var(--step-3); margin-block-end: var(--s3); }
.error-text { color: var(--ink-3); margin-block-end: var(--s5); }
.error-actions { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; }

/* ================================================================ footer */
.site-foot {
    background: var(--brand);
    color: var(--on-brand);
    margin-block-start: var(--s8);
    padding-block: var(--s7) var(--s5);
}
.foot-grid { display: grid; gap: var(--s6); }
.foot-about { color: var(--on-brand-2); font-size: var(--step--1); line-height: 1.85; max-width: 24rem; margin-block-start: var(--s3); }
.foot-head {
    font-family: var(--font-ui);
    font-size: var(--step--1);
    letter-spacing: .1em;
    color: var(--accent);
    margin-block-end: var(--s3);
    font-weight: 500;
}
.foot-col ul { display: grid; gap: var(--s2); }
.foot-col a { color: var(--on-brand-2); font-size: var(--step-0); }
.foot-col a:hover { color: var(--on-brand); border-block-end: 1px solid var(--accent); }
.foot-base {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s4);
    margin-block-start: var(--s6);
    padding-block-start: var(--s4);
    border-block-start: 1px solid var(--on-brand-2);
}
.foot-rights { font-size: var(--step--1); color: var(--on-brand-2); margin: 0; }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.pay-label { font-size: var(--step--1); color: var(--on-brand-2); margin-inline-end: var(--s2); }
.pay-chip {
    font-size: var(--step--1);
    padding: .2rem .6rem;
    border: 1px solid var(--on-brand-2);
    border-radius: var(--r);
    color: var(--on-brand);
}
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s7); } }

/* ================================================================ floats */
.floats {
    position: fixed;
    inset-block-end: var(--s4);
    inset-inline-end: var(--s4);
    z-index: 48;
    display: grid;
    gap: var(--s3);
    justify-items: end;
}
.float-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    min-inline-size: 48px;
    min-block-size: 48px;
    padding-inline: .8rem;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--paper);
    color: var(--brand);
    box-shadow: var(--shadow-2);
    cursor: pointer;
}
.float-btn svg { inline-size: 22px; block-size: 22px; }
.float-wa { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.float-ai { background: var(--accent); border-color: var(--accent); color: var(--brand); }
.float-ai-label { font-size: var(--step--1); font-weight: 500; }
.float-btn:hover { box-shadow: var(--shadow-1); }

/* `hidden` must beat the display rule below. */
.ai-panel[hidden],
.float-btn[hidden] { display: none !important; }

.ai-panel {
    position: fixed;
    inset-block-end: var(--s4);
    inset-inline-end: var(--s4);
    inline-size: min(22rem, calc(100vw - 2rem));
    max-block-size: min(32rem, calc(100vh - 2rem));
    z-index: 49;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-2);
    overflow: hidden;
}
.ai-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3);
    padding: var(--s3) var(--s4);
    background: var(--brand);
    color: var(--on-brand);
}
.ai-title { font-size: var(--step-0); color: var(--on-brand); }
.ai-close {
    border: 0;
    background: none;
    color: var(--on-brand);
    cursor: pointer;
    display: grid;
    place-items: center;
    inline-size: 32px;
    block-size: 32px;
}
.ai-close svg { inline-size: 18px; block-size: 18px; }
.ai-log {
    flex: 1;
    overflow-y: auto;
    padding: var(--s4);
    display: grid;
    gap: var(--s3);
    align-content: start;
    background: var(--paper-2);
}
.ai-msg {
    margin: 0;
    padding: var(--s3) var(--s4);
    border-radius: var(--r);
    font-size: var(--step--1);
    line-height: 1.75;
    max-inline-size: 92%;
}
.ai-msg-bot { background: var(--paper); border: 1px solid var(--line-soft); justify-self: start; }
.ai-msg-me { background: var(--brand); color: var(--on-brand); justify-self: end; }
.ai-msg-err { background: #fbf1ef; color: #70241e; border: 1px solid #e8cdc8; justify-self: start; }
.ai-escalate {
    margin: 0;
    padding: var(--s3) var(--s4);
    border-block-start: 1px solid var(--line-soft);
    font-size: var(--step--1);
    color: var(--ink-3);
    display: grid;
    gap: var(--s3);
}
.ai-form {
    display: flex;
    gap: var(--s2);
    padding: var(--s3);
    border-block-start: 1px solid var(--line-soft);
}
.ai-form .input { min-height: 42px; }
.ai-form .btn { min-height: 42px; padding-inline: 1rem; }

/* ------------------------------------------------------- narrow screens */
@media (max-width: 479px) {
    .wordmark-text { font-size: 1.25rem; letter-spacing: .2em; }
    .table th, .table td { padding: .6rem .5rem; }
    .mass-wrap { padding: var(--s4); }
    .mass-table th[scope="row"] { font-size: var(--step-0); }
    .mass-input { inline-size: 6.25rem; }
    .addons { padding: var(--s4); }
    .float-ai-label { display: none; }
    .spec-table th { inline-size: 46%; }
    .pager { gap: var(--s3); flex-wrap: wrap; }
}

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}

/* ---------------------------------------------------------------- print */
@media print {
    .site-head, .site-foot, .floats, .ai-panel, .nav-scrim, .skip-link { display: none !important; }
    body { color: #000; background: #fff; }
}

/* ==========================================================================
   ELEVATION PASS
   Later in the cascade on purpose: these rules replace the plain bordered-box
   treatments above with ones built for a jewellery storefront.
   ========================================================================== */

/* ------------------------------------------------- surfaces with a warmer,
   waxier cast than flat white, so product photography sits on something */
:root {
    --paper: #FBFAF7;
    --paper-2: color-mix(in srgb, var(--sand) 30%, #fff);
    --paper-3: color-mix(in srgb, var(--sand) 62%, #fff);
    --plinth: color-mix(in srgb, var(--sand) 46%, #fff);
    --rule-strong: color-mix(in srgb, var(--brand) 22%, transparent);
}
body { background: var(--paper); }

/* ------------------------------------------------------- section headings
   The rule under a heading draws itself when the section arrives. */
.section-head::after {
    background: var(--metal);
    block-size: 1px;
    transform-origin: var(--grad-dir, left);
    transform: scaleX(0);
    transition: transform .9s cubic-bezier(.2, .75, .2, 1);
}
[data-reveal].is-in .section-head::after,
.section-head.is-in::after { transform: scaleX(1); }

.section-head h2 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.005em;
}

/* --------------------------------------------------------- scroll reveals
   One treatment, used once per section — not a different effect per block. */
@media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
    }
    [data-reveal].is-in { opacity: 1; transform: none; }

    .page-home .cat-row > li,
    .page-home .steps > .step,
    .page-home .product-grid > * {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
        transition-delay: calc(var(--i, 0) * 70ms);
    }
    .page-home [data-reveal].is-in .cat-row > li,
    .page-home [data-reveal].is-in .steps > .step,
    .page-home [data-reveal].is-in .product-grid > * { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- product cards
   No border, no shadow, no rounded box. The piece sits on a plinth and a
   gold rule draws under the name on hover — the card is the object, not a
   container around it. */
.product-grid > a,
.product-grid > article,
.product-card {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    position: relative;
}
.pc-media,
.product-grid figure,
.product-grid .media {
    background: var(--plinth);
    border-radius: 0;
    overflow: hidden;
    position: relative;
}
.pc-media::after,
.product-grid figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(85% 60% at 50% 108%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%);
    pointer-events: none;
}
.product-card img,
.product-grid img {
    transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.product-card:hover img,
.product-grid a:hover img { transform: scale(1.045); }

.pc-body,
.product-grid figcaption {
    padding-block: var(--s4) var(--s2);
    padding-inline: 0;
    border-block-start: 1px solid var(--line-soft);
    position: relative;
}
.pc-body::after,
.product-grid figcaption::after {
    content: "";
    position: absolute;
    inset-block-start: -1px;
    inset-inline-start: 0;
    inline-size: 0;
    block-size: 1px;
    background: var(--metal);
    transition: inline-size .55s cubic-bezier(.2, .75, .2, 1);
}
.product-card:hover .pc-body::after,
.product-grid a:hover figcaption::after { inline-size: 100%; }

.price { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ------------------------------------------------------- locked VIP card */
.product-card.is-locked .pc-media,
.locked-card .pc-media, .locked-card .lc-media {
    position: relative;
}
.product-card.is-locked .pc-media::before,
.locked-card .pc-media::before, .locked-card .lc-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        repeating-linear-gradient(135deg,
            color-mix(in srgb, var(--brand) 10%, transparent) 0 6px,
            transparent 6px 12px),
        color-mix(in srgb, var(--brand) 6%, transparent);
}

/* ------------------------------------------------------- category rail
   A rail of engraved marks, not five identical tiles. */
.cats-band .cat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 0;
    border-block: 1px solid var(--line-soft);
}
.cats-band .cat-row > li + li { border-inline-start: 1px solid var(--line-soft); }
.cats-band .cat-tile {
    border: 0;
    background: transparent;
    border-radius: 0;
    display: grid;
    justify-items: center;
    gap: var(--s3);
    padding-block: var(--s6);
    padding-inline: var(--s4);
    position: relative;
    overflow: hidden;
    transition: color .35s ease;
}
.cats-band .cat-tile::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    block-size: 0;
    background: color-mix(in srgb, var(--brand) 5%, transparent);
    transition: block-size .45s cubic-bezier(.2, .75, .2, 1);
}
.cats-band .cat-tile:hover::before { block-size: 100%; }
.cats-band .cat-tile:hover { color: var(--brand); }
.cats-band .cat-icon {
    inline-size: 2.6rem;
    block-size: 2.6rem;
    position: relative;
    transition: transform .5s cubic-bezier(.2, .75, .2, 1), color .35s ease;
}
.cats-band .cat-tile:hover .cat-icon { transform: translateY(-3px); color: var(--accent-700); }
.cats-band .cat-name { position: relative; font-family: var(--font-display); font-size: var(--step-1); }

/* --------------------------------------------------------------- steps
   A genuine sequence, so the numbers earn their place. The connecting
   line draws once as the band arrives. */
.steps-band { background: var(--paper-2); }
.steps { position: relative; }
.steps::before {
    content: "";
    position: absolute;
    inset-block-start: 1.15rem;
    inset-inline: 6%;
    block-size: 1px;
    background: var(--metal);
    opacity: .5;
    transform: scaleX(0);
    transform-origin: var(--grad-dir, left);
    transition: transform 1.3s cubic-bezier(.2, .75, .2, 1) .15s;
}
.steps-band.is-in .steps::before { transform: scaleX(1); }
@media (max-width: 759px) { .steps::before { display: none; } }

.step-no {
    font-family: var(--font-num);
    inline-size: 2.3rem;
    block-size: 2.3rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-gold);
    border-radius: 50%;
    background: var(--paper-2);
    color: var(--accent-700);
    font-size: var(--step--1);
    position: relative;
    z-index: 1;
}
.step-title { font-family: var(--font-display); font-weight: 500; }

/* ----------------------------------------------------------- dark bands */
.help-band { background: var(--brand-900); }
.help-band .help-title { font-family: var(--font-display); color: #fff; }

/* ------------------------------------------------------------- buttons */
.btn {
    border-radius: 0;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .25s cubic-bezier(.2,.7,.2,1);
}
.btn-primary:not(.hero-cta .btn-primary) { border-radius: 0; }
[data-magnetic] { will-change: transform; }

/* --------------------------------------------------------------- footer */
.site-foot { background: var(--brand-900); }

/* --------------------------------------------- honour the user's setting */
@media (prefers-reduced-motion: reduce) {
    .hero-title .line > span,
    .hero-eyebrow,
    .hero-eyebrow::before,
    .hero-text,
    .hero-cta,
    .trust,
    .hero-state { animation: none !important; opacity: 1 !important; transform: none !important; }
    .section-head::after { transform: scaleX(1); }
    .steps::before { transform: scaleX(1); }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    * { scroll-behavior: auto !important; }
}

/* format chips — a legible set, not a dot-joined meta string */
.pc-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-block-end: var(--s2);
    list-style: none;
    padding: 0;
}
/* Each file format keeps one colour across the whole site, so a buyer who
   only ever casts from STL learns to find his files by colour. An unknown
   extension falls through to the neutral slate rather than disappearing. */
.pc-formats li {
    font-family: var(--font-num);
    font-size: .6875rem;
    font-weight: 600;
    line-height: 1;
    padding: 4px 7px;
    border-radius: var(--r-pill);
    border: 1px solid color-mix(in srgb, var(--fmt, var(--c-slate)) 26%, transparent);
    background: color-mix(in srgb, var(--fmt, var(--c-slate)) 10%, #fff);
    color: var(--fmt, var(--c-slate));
    letter-spacing: .02em;
}
.pc-formats li[data-fmt="stl"] { --fmt: var(--c-indigo); }
.pc-formats li[data-fmt="obj"] { --fmt: var(--c-teal); }
.pc-formats li[data-fmt="3dm"] { --fmt: var(--c-plum); }
.pc-formats li[data-fmt="zip"] { --fmt: var(--c-amber); }
.pc-formats li[data-fmt="blend"],
.pc-formats li[data-fmt="fbx"]  { --fmt: var(--c-violet); }
.pc-formats li[data-fmt="step"],
.pc-formats li[data-fmt="stp"],
.pc-formats li[data-fmt="iges"] { --fmt: var(--c-sky); }
.pc-name { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); }
.pc-name a { color: inherit; text-decoration: none; }
.pc-media { display: block; aspect-ratio: 4 / 5; }
.pc-media img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.pc-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: color-mix(in srgb, var(--brand) 22%, transparent); }
.pc-placeholder svg { inline-size: 38%; }
.pc-badge { position: absolute; z-index: 2; inset-block-start: var(--s3); inset-inline-start: var(--s3); }

/* ------------------------------------------------------- display setting
   Arabic headings use the same familiar text face at a medium weight, set
   at normal tracking. Ultra-light Arabic at display size reads as fragile,
   not refined. Latin keeps Marcellus. */
html[dir="rtl"] .hero-title,
html[dir="rtl"] .section-head h2,
html[dir="rtl"] .pc-name,
html[dir="rtl"] .step-title,
html[dir="rtl"] .custom-title,
html[dir="rtl"] .help-title,
html[dir="rtl"] .cat-name,
html[dir="rtl"] .banner-title,
html[dir="rtl"] .status-head,
html[dir="rtl"] .hero-eyebrow {
    font-family: "SivoraArabic", "Readex Pro", var(--font-ui);
    letter-spacing: 0;
}
html[dir="rtl"] .hero-title {
    font-weight: 500;
    line-height: 1.38;
    letter-spacing: 0;
}
html[dir="rtl"] .section-head h2,
html[dir="rtl"] .custom-title,
html[dir="rtl"] .help-title { font-weight: 700; }
html[dir="rtl"] .pc-name,
html[dir="rtl"] .cat-name,
html[dir="rtl"] .step-title { font-weight: 500; }
html[dir="rtl"] body { font-weight: 400; }

/* ------------------------------------------------- hero stage, corrected
   The readout now lives in the copy column, so it needs no corner anchoring;
   it only needs to start on the reading edge like everything else there. */
.hero-state { justify-content: flex-start; }

/* On a phone the model would sit behind the paragraph. Give it the lower
   band of the hero only, so the copy keeps a clean field. */
/* On a phone and a portrait tablet the model is not a background: hiding it
   behind the headline at half opacity wastes the one thing that makes this
   page worth looking at. It gets its own band under the copy, at full
   strength, and plays itself through to gold since there is no mouse. */
@media (max-width: 899px) {
    .hero {
        display: grid;
        grid-template-rows: auto auto;
        align-items: start;
    }
    .hero-copy { order: 1; padding-block: var(--s5) var(--s4); }
    /* Tighten the copy so the model is on screen without scrolling. */
    .hero-title { font-size: clamp(2.1rem, 10.5vw, 3rem); line-height: 1.16; }
    .hero-text { margin-block-start: var(--s3); }
    .hero-cta { margin-block-start: var(--s4); }
    .hero-copy .trust {
        display: flex;
        flex-wrap: wrap;
        gap: var(--s2) var(--s4);
        margin-block-start: var(--s4);
        padding-block-start: var(--s4);
        font-size: var(--step--2);
    }
    .hero-copy .trust li { margin: 0; }
    .hero-stage {
        order: 2;
        position: relative;
        inset: auto;
        inline-size: 100%;
        block-size: min(46vh, 22rem);
        opacity: 1;
        margin-block-end: var(--s6);
    }
    .hero-gl, .hero-fx { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
    .hero::before { display: none; }       /* nothing to scrim any more */
    .hero-mark { opacity: .22; }
}

/* ==========================================================================
   SOFT PASS — the Salla / Zid visual language
   The client asked for the look those platforms set the expectation for in
   this market: rounded corners, soft shadows, light surfaces, clear cards.
   This section deliberately overrides the sharp treatment above.
   ========================================================================== */

:root {
    /* corners */
    --r: 14px;
    --r-sm: 10px;
    --r-lg: 20px;
    --r-pill: 999px;

    /* surfaces: a light page with white cards, the way a merchant dashboard
       and a modern Saudi storefront both read */
    --paper: #FFFFFF;
    --page: #F6F7F9;
    --paper-2: #FAFAF8;
    --paper-3: #F1F2F4;
    --plinth: color-mix(in srgb, var(--sand) 34%, #fff);

    --line: #E8EAEE;
    --line-soft: #F0F1F4;
    --rule-strong: #DFE2E8;

    /* shadows: soft and low, never a hard drop */
    --shadow-1: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 20px -14px rgba(16, 24, 40, .18);
    --shadow-2: 0 2px 4px rgba(16, 24, 40, .05), 0 18px 38px -20px rgba(16, 24, 40, .22);
    --shadow-card: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 28px -18px rgba(16, 24, 40, .20);
}

body { background: var(--page); }

/* ------------------------------------------------------------------ cards */
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-card);
}

/* ---------------------------------------------------------------- buttons */
.btn {
    border-radius: var(--r-sm);
    font-weight: 600;
    padding-block: .72rem;
    padding-inline: 1.3rem;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease,
                transform .18s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
/* The filled button uses --brand-600, not --brand. The identity colour is
   nearly black by design — it is what the hero and the header are built on
   — and a page of near-black pills reads as a wireframe. --brand-600 is the
   same hue with its chroma restored and its lightness capped at the point
   white type still clears AA, so the button is unmistakably the shop's
   colour and is still readable. */
.btn-primary {
    background: var(--brand-600, var(--brand));
    border-color: var(--brand-600, var(--brand));
    color: #fff;
    box-shadow: 0 6px 16px -10px color-mix(in srgb, var(--brand-600, var(--brand)) 85%, transparent);
}
.btn-primary:hover {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--brand-600, var(--brand)) 90%, transparent);
}
.btn-ghost {
    background: var(--paper);
    border-color: var(--line);
    color: var(--brand-600, var(--brand));
}
.btn-ghost:hover {
    border-color: color-mix(in srgb, var(--brand-600, var(--brand)) 45%, transparent);
    background: var(--brand-wash, var(--paper-2));
}
.btn-primary:not(.hero-cta .btn-primary) { border-radius: var(--r-sm); }

/* ----------------------------------------------------------------- inputs */
.input, .select, .textarea,
input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"],
input[type="date"], input[type="url"], select, textarea {
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: var(--paper);
    padding: .7rem .9rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus, .select:focus, .textarea:focus,
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-300);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
}

/* ----------------------------------------------------------------- badges */
.badge {
    border-radius: var(--r-pill);
    padding: .3rem .7rem;
    font-weight: 600;
    font-size: .75rem;
}
.badge-vip { background: var(--accent); color: var(--brand-900); border: 0; }

/* ----------------------------------------------------------------- alerts */
.alert { border-radius: var(--r); border-width: 1px; }

/* ---------------------------------------------------- product cards, soft
   The earlier pass stripped these back to bare objects on a plinth; the
   client wants the familiar card instead. */
.product-grid > a,
.product-grid > article,
.product-card {
    border: 1px solid var(--line) !important;
    background: var(--paper) !important;
    border-radius: var(--r) !important;
    box-shadow: var(--shadow-card) !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.product-card:hover {
    box-shadow: var(--shadow-2) !important;
    transform: translateY(-3px);
    border-color: var(--line) !important;
}
.pc-media {
    background: var(--plinth);
    border-radius: 0;
    margin: 0;
    aspect-ratio: 1 / 1;
}
.pc-media::after { display: none; }
.pc-body {
    padding: var(--s4);
    border-block-start: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    flex: 1;
}
.pc-body::after { display: none; }
.pc-price { font-size: 1.05rem; font-weight: 700; color: var(--brand); margin-block-start: auto; }
.pc-formats li { border-radius: var(--r-pill); background: var(--paper-3); border-color: transparent; }

/* --------------------------------------------------------- category tiles
   Back to friendly cards rather than a divided rail. */
.cats-band .cat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: var(--s4);
    border: 0;
}
.cats-band .cat-row > li + li { border-inline-start: 0; }
.cats-band .cat-tile {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-card);
    padding-block: var(--s5);
    transition: transform .25s ease, box-shadow .25s ease;
}
.cats-band .cat-tile::before { display: none; }
.cats-band .cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.cats-band .cat-icon {
    inline-size: 3.2rem;
    block-size: 3.2rem;
    padding: .7rem;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--brand) 7%, transparent);
    color: var(--brand);
}

/* ------------------------------------------------------------------ steps */
.steps-band { background: transparent; }
.steps > .step {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-card);
    padding: var(--s5);
}
.steps::before { display: none; }
.step-no {
    background: color-mix(in srgb, var(--brand) 8%, transparent);
    border: 0;
    color: var(--brand);
    font-weight: 700;
    inline-size: 2.5rem;
    block-size: 2.5rem;
}

/* --------------------------------------------------------------- sections */
.section-head::after { display: none; }
.section-head h2 { font-weight: 700; }
.section-link {
    border-radius: var(--r-pill);
    padding: .45rem 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    text-decoration: none;
}
.section-link:hover { border-color: var(--brand-300); }

/* ----------------------------------------------------------------- tables */
.table { border-radius: var(--r); overflow: hidden; }
.spec-table { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }

/* ------------------------------------------------------------- empty state */
.empty-state { border-radius: var(--r); background: var(--paper); border: 1px dashed var(--line); }

/* ------------------------------------------------------------ floats, soft */
.float-btn { border-radius: var(--r-pill); box-shadow: var(--shadow-2); }
.ai-panel { border-radius: var(--r-lg); box-shadow: var(--shadow-2); }

/* ------------------------------------------------------- header and footer */
.site-head { background: var(--paper); border-block-end: 1px solid var(--line); }
.head-search .input, .nav-search .input { border-radius: var(--r-pill); background: var(--paper-3); border-color: transparent; }

/* ==========================================================================
   SOFT PASS 2 — the rest of the storefront
   Everything the first soft pass did for the home and shop pages, carried
   through the product, cart, checkout, account, custom-design, content,
   support and error pages, plus the home-page banner slider.
   Tokens only: --r / --r-sm / --r-lg / --r-pill, the paper ramp, --line and
   the three shadows. No brand hex anywhere, no 0–2px corner.
   ========================================================================== */

/* ------------------------------------------------------------------ shared
   furniture the softened pages share: card headings, paired fields, totals,
   pill badges, quiet row links and tables that live inside a card. */

.page-head-center { text-align: center; }
.page-head-center .page-lede { margin-inline: auto; }
.narrow-wrap { max-inline-size: 48rem; margin-inline: auto; }

.status-head {
    font-size: var(--step-1);
    font-weight: 700;
    margin-block-end: var(--s4);
}
.status-sub {
    font-size: var(--step-0);
    font-weight: 700;
    margin-block: var(--s5) var(--s2);
}
.form-head {
    margin-block-start: var(--s6);
    padding-block-start: var(--s5);
    border-block-start: 1px solid var(--line-soft);
}

.field-row { display: grid; gap: var(--s4); }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s3);
    margin-block-start: var(--s5);
    padding-block-start: var(--s5);
    border-block-start: 1px solid var(--line-soft);
}
.form-actions .btn { min-inline-size: 10rem; justify-content: center; }

.totals {
    display: grid;
    gap: var(--s3);
    margin-block-start: var(--s5);
    padding: var(--s4);
    background: var(--paper-3);
    border-radius: var(--r-sm);
}
.total-grand {
    margin-block-start: var(--s1);
    padding-block-start: var(--s3);
    border-block-start: 1px solid var(--line);
}
.total-grand .total-label { color: var(--ink-2); font-weight: 600; }

/* a summary read as lines, not as a table */
.summary-lines { display: grid; gap: var(--s3); }
.summary-line {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: var(--s4);
    padding-block-end: var(--s3);
    border-block-end: 1px solid var(--line-soft);
}
.summary-line:last-child { border-block-end: 0; padding-block-end: 0; }
.summary-name { display: grid; gap: 2px; font-size: var(--step-0); min-inline-size: 0; }
.summary-value { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }

/* pills: state badges and the small neutral chip
   ---------------------------------------------------------------------
   A state pill carries a dot in its own colour. The dot is what makes a
   row scannable: at a glance down a column of orders the eye catches the
   colour before it reads the word, and a customer who is colour-blind
   still has the word. Colour alone never carries the meaning.

   Every state the site can show is listed below. A state with no rule
   falls through to the neutral grey — visible, never invisible.          */
.badge-state {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--st-line, var(--line));
    background: var(--st-soft, var(--paper-3));
    color: var(--st-ink, var(--ink-2));
    font-size: .75rem;
    letter-spacing: 0;
    font-weight: 600;
    padding: .28rem .7rem;
    white-space: nowrap;
}
.badge-state::before {
    content: "";
    inline-size: .44rem;
    block-size: .44rem;
    border-radius: 50%;
    background: var(--st-ink, var(--ink-3));
    flex: 0 0 auto;
}

/* done, and done well */
.badge-paid, .badge-delivered, .badge-accepted, .badge-completed, .badge-active,
.badge-published, .badge-approved, .badge-sent, .badge-fulfilled {
    --st-ink: var(--c-ok); --st-soft: var(--c-ok-soft); --st-line: var(--c-ok-line);
}
/* waiting on somebody */
.badge-pending, .badge-awaiting_confirmation, .badge-awaiting_review,
.badge-awaiting_payment, .badge-quoted, .badge-under_review,
.badge-in_progress, .badge-preview_sent, .badge-received, .badge-processing {
    --st-ink: var(--c-wait); --st-soft: var(--c-wait-soft); --st-line: var(--c-wait-line);
}
/* went wrong, or was taken back */
.badge-failed, .badge-cancelled, .badge-declined, .badge-refunded,
.badge-expired, .badge-rejected {
    --st-ink: var(--c-bad); --st-soft: var(--c-bad-soft); --st-line: var(--c-bad-line);
}
/* parked, not finished */
.badge-draft, .badge-scheduled, .badge-hold {
    --st-ink: var(--c-info); --st-soft: var(--c-info-soft); --st-line: var(--c-info-line);
}
/* switched off */
.badge-off, .badge-archived, .badge-hidden, .badge-inactive {
    --st-ink: var(--c-off); --st-soft: var(--c-off-soft); --st-line: var(--c-off-line);
}

.chip {
    display: inline-block;
    border-radius: var(--r-pill);
    background: var(--paper-3);
    color: var(--ink-3);
    font-size: var(--step--1);
    padding: .15rem .6rem;
    white-space: nowrap;
}

/* A chip can be tinted by setting --ch on it or on a parent, which is how
   the file-format chips below each take their own colour. */
.chip[style*="--ch"], .chip-tint {
    background: color-mix(in srgb, var(--ch, var(--brand)) 11%, #fff);
    color: var(--ch, var(--ink-3));
    font-weight: 600;
}

.btn-sm { padding-block: .45rem; padding-inline: .9rem; font-size: var(--step--1); }

.row-link {
    display: inline-block;
    font-size: var(--step--1);
    font-weight: 600;
    color: var(--brand-700);
    border-radius: var(--r-pill);
    padding: .3rem .7rem;
    background: var(--paper-3);
}
.row-link:hover { background: var(--brand-soft); color: var(--brand); }

.cell-no { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.cell-action { white-space: nowrap; }
.cell-lines { display: grid; gap: 2px; margin-block-start: var(--s1); }

/* a table inside a card: the card owns the corners, the rows breathe.
   `position: relative` matters: the sr-only captions and labels inside the
   table are absolutely positioned, and without a containing block here they
   escape the card's clip and widen the whole page on a phone. */
.table-card { padding: 0; overflow: hidden; position: relative; }
.table-card > .table { margin: 0; }
.table-card,
.table-flush { overflow-x: auto; position: relative; }
.table-card > .table th,
.table-card > .table td { padding: .95rem 1rem; }
.table-card > .table thead th {
    background: var(--paper-2);
    border-block-end: 1px solid var(--line);
    white-space: nowrap;
}
.table-card > .table tbody tr:hover { background: var(--paper-2); }
.table-flush { margin-inline: calc(var(--s5) * -1); }
.table-flush > .table th:first-child,
.table-flush > .table td:first-child { padding-inline-start: var(--s5); }
.table-flush > .table th:last-child,
.table-flush > .table td:last-child { padding-inline-end: var(--s5); }
.cart-table td { vertical-align: top; }
.cart-name { font-weight: 600; color: var(--ink-1); }
.qty-input { inline-size: 5rem; text-align: center; }

/* file lists: the download rows in the account area */
.file-list { display: grid; gap: var(--s2); }
.file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3);
    flex-wrap: wrap;
    padding: var(--s3);
    border-radius: var(--r-sm);
    background: var(--paper-2);
}
.file-name { display: grid; gap: 2px; font-size: var(--step-0); min-inline-size: 0; }
.file-meta { font-size: var(--step--1); display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.file-action { display: flex; align-items: center; gap: var(--s2); font-size: var(--step--1); }

/* friendly empty states */
.empty-state {
    border: 1px dashed var(--line);
    border-radius: var(--r);
    background: var(--paper);
    box-shadow: var(--shadow-card);
    padding: var(--s7) var(--s5);
}
.empty-state p { color: var(--ink-3); margin: 0; }
.empty-inline {
    padding: var(--s5) var(--s4);
    box-shadow: none;
    background: var(--paper-2);
    border-style: dashed;
}

.pair-grid { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 900px) { .pair-grid { grid-template-columns: 1fr 1fr; gap: var(--s6); } }

/* ------------------------------------------------------------ the account
   area: a white card holding the menu beside the content on desktop, a
   scrollable pill row above it on phones. */

.account-layout { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 960px) {
    .account-layout { grid-template-columns: 16rem minmax(0, 1fr); gap: var(--s6); }
    .account-nav { position: sticky; inset-block-start: var(--s5); }
}
.account-main { display: grid; gap: var(--s6); min-inline-size: 0; }

.account-nav { padding: var(--s4); }
.account-nav-head {
    font-size: var(--step--1);
    color: var(--ink-3);
    letter-spacing: .04em;
    margin: 0 0 var(--s3);
    padding-inline: var(--s2);
}
.account-nav-list { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; }
.account-nav-list::-webkit-scrollbar { display: none; }
.account-link {
    display: block;
    padding: .6rem .9rem;
    border-radius: var(--r-sm);
    color: var(--ink-2);
    font-size: var(--step-0);
    white-space: nowrap;
}
.account-link:hover { background: var(--paper-2); color: var(--brand-700); }
.account-link.is-current {
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 600;
}
.account-nav-out .account-link { color: var(--ink-3); }
@media (min-width: 960px) {
    .account-nav-list { display: grid; gap: 2px; overflow: visible; }
    .account-nav-out {
        margin-block-start: var(--s3);
        padding-block-start: var(--s3);
        border-block-start: 1px solid var(--line-soft);
    }
}
@media (max-width: 959px) {
    .account-nav-head { display: none; }
    .account-nav { padding: var(--s3); }
}

.account-block { display: grid; gap: var(--s4); padding: 0; }
.account-block .section-head { margin-block-end: 0; padding-block-end: 0; }
.account-cols { display: grid; gap: var(--s5); align-items: start; }
.account-stack { display: grid; gap: var(--s5); min-inline-size: 0; }
.account-aside { display: grid; gap: var(--s5); align-content: start; min-inline-size: 0; }
@media (min-width: 1180px) {
    .account-cols { grid-template-columns: minmax(0, 1.55fr) minmax(0, .95fr); gap: var(--s5); }
}

.stat-row {
    display: grid;
    gap: var(--s4);
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}
.stat-card { padding: var(--s5); display: grid; gap: var(--s2); }
.stat-label {
    font-size: var(--step--1);
    color: var(--ink-3);
    letter-spacing: .04em;
    margin: 0;
}
.stat-value {
    font-size: var(--step-3);
    font-weight: 700;
    color: var(--brand);
    font-variant-numeric: tabular-nums;
    margin: 0;
    line-height: 1.2;
}

/* sign in, register, recover, change password: one centred card */
.auth-wrap { max-inline-size: 34rem; margin-inline: auto; }
.auth-card { padding: var(--s6) var(--s5); }
.auth-card .btn-block { margin-block-start: var(--s2); }
.auth-card .status-note { text-align: center; }
body.page-auth .page-head { text-align: center; }

/* ------------------------------------------------------- cart + checkout */
.checkout-layout { display: grid; gap: var(--s5); align-items: start; }
.checkout-main { display: grid; gap: var(--s5); min-inline-size: 0; }
.checkout-main > .card { margin: 0; }
@media (min-width: 960px) {
    .checkout-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 22rem); gap: var(--s6); }
    .summary-card { position: sticky; inset-block-start: var(--s5); }
}
.summary-rail { display: grid; gap: var(--s5); min-inline-size: 0; }
.summary-card { padding: var(--s5); }
.cart-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s3);
    justify-content: space-between;
    margin-block-start: var(--s4);
}
.back-note { text-align: center; }
.pick-row, .agree-row {
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: var(--s3) var(--s4);
    margin-block-end: var(--s3);
    background: var(--paper);
    transition: border-color .18s ease, background .18s ease;
}
.pick-row:hover, .agree-row:hover { border-color: var(--brand-300); background: var(--paper-2); }
.pick-row:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.agree-row { background: var(--paper-2); }

/* the waiting / thanks page rail reads as a row of steps on desktop */
body.page-thanks .status-rail,
body.page-bank .status-rail { gap: var(--s2); }
@media (min-width: 760px) {
    body.page-thanks .status-rail {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: var(--s4);
    }
    body.page-thanks .status-step {
        border: 1px solid var(--line);
        border-radius: var(--r-sm);
        padding: var(--s4);
        text-align: center;
        display: grid;
        justify-items: center;
        gap: var(--s2);
        background: var(--paper-2);
    }
    body.page-thanks .status-step.is-done { background: var(--brand-soft); border-color: transparent; }
}

/* ------------------------------------------------------------- product */
.product-layout { align-items: start; }
@media (min-width: 900px) {
    .product-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s6); }
    .gallery { position: sticky; inset-block-start: var(--s5); }
}
.gallery-main {
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: var(--plinth);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.gallery-main img, .gallery-main video, .gallery-main iframe { border-radius: var(--r-lg); }
.gallery-badge { inset-block-start: var(--s4); inset-inline-start: var(--s4); }
.thumbs { gap: var(--s3); }
.thumb {
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: var(--paper);
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.thumb:hover { border-color: var(--brand-300); transform: translateY(-2px); }
.thumb.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent); }

.buy.card { padding: var(--s5); }
.buy .spec-table {
    margin-block: var(--s4);
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    overflow: hidden;
}
.buy .spec-table th { background: var(--paper-2); }
.addons-card {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--paper-2);
    padding: var(--s4);
    margin-block: var(--s5);
}
.addons-legend {
    font-size: var(--step-0);
    font-weight: 700;
    padding-inline: var(--s2);
}
.addon-row {
    border-block-start: 1px solid var(--line-soft);
    padding-block: var(--s3);
}
.addon-price { font-weight: 600; color: var(--brand); white-space: nowrap; }
.buy-bar {
    margin-block-start: var(--s5);
    padding: var(--s4);
    border-radius: var(--r);
    background: var(--paper-3);
    display: grid;
    gap: var(--s3);
}
.buy-bar .total-value { font-size: var(--step-2); }
@media (min-width: 560px) {
    .buy-bar .buy-buttons { grid-template-columns: 1fr 1fr; }
}
/* phones: the buy bar follows the page, the way a storefront app does */
@media (max-width: 759px) {
    .buy-bar {
        position: fixed;
        inset-inline: 0;
        inset-block-end: 0;
        z-index: 40;
        margin: 0;
        border-radius: var(--r-lg) var(--r-lg) 0 0;
        background: var(--paper);
        box-shadow: 0 -2px 4px rgba(16, 24, 40, .04), 0 -18px 38px -24px rgba(16, 24, 40, .35);
        border-block-start: 1px solid var(--line);
        padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom, 0px));
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: var(--s3);
    }
    .buy-bar .total-line { flex-direction: column; align-items: start; gap: 0; }
    .buy-bar .total-value { font-size: var(--step-1); }
    .buy-bar .buy-buttons { grid-template-columns: 1fr; }
    .buy-bar .btn-ghost { display: none; }
    body.page-product { padding-block-end: 5.5rem; }
    body.page-product .floats { inset-block-end: calc(5.5rem + var(--s4)); }
}

.mass-wrap {
    max-width: none;
    padding: var(--s5);
    border-radius: var(--r);
}
.mass-wrap .mass-table {
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    overflow: hidden;
}
.mass-wrap .mass-table thead th { background: var(--paper-2); }
.mass-input { border-radius: var(--r-sm); }
.prose-card { padding: var(--s6) var(--s5); }
.license-card { background: var(--paper-2); border-radius: var(--r); box-shadow: none; }

/* --------------------------------------------------- content + support */
.prose-page {
    padding: var(--s6) var(--s5);
    max-width: none;
    margin-block: var(--s2) var(--s7);
}
.prose-page > * { max-width: 68ch; }
.support-card { border-radius: var(--r); }
.support-links { padding: var(--s5); margin-block-start: var(--s6); }
.support-links-head { margin-block-end: var(--s3); }
.support-links a {
    display: inline-block;
    padding: .35rem .8rem;
    border-radius: var(--r-pill);
    background: var(--paper-3);
    font-size: var(--step--1);
}
.support-links a:hover { background: var(--brand-soft); color: var(--brand); }

/* --------------------------------------------------------------- errors */
.error-wrap {
    max-inline-size: 34rem;
    margin-inline: auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    padding: var(--s7) var(--s5);
    margin-block: var(--s7);
}
.error-code { color: var(--paper-3); }

/* ------------------------------------------------------ small chrome bits */
.crumbs { font-size: var(--step--1); }
.crumb-sep { color: var(--line); }
.flash-wrap .alert { border-radius: var(--r); box-shadow: var(--shadow-card); border-inline-start-width: 4px; }
.pager-list a, .pager-list span {
    border-radius: var(--r-sm);
    border-color: var(--line);
    background: var(--paper);
}
.pager-list a:hover { border-color: var(--brand-300); background: var(--paper-2); color: var(--brand-700); }
.pager-list .is-current { border-color: var(--brand); background: var(--brand); color: #fff; }
.pager-list .pager-gap { background: transparent; border-color: transparent; }
.pager-step {
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: var(--paper);
    padding: .4rem .9rem;
}
.pager-step.is-off { color: var(--ink-3); opacity: .55; }
.filters-body .filter-group,
.shop-filters .filter-form {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-card);
    padding: var(--s4);
    margin-block-end: var(--s4);
}
.filter-head { margin-block-end: var(--s3); }
.product-card.is-locked { background: var(--paper) !important; }
.locked-media { border-radius: 0; }
.lock-mark { border-radius: var(--r-pill); }
.pc-body > .badge,
.pc-body > .locked-cta { align-self: start; }
.locked-cta {
    border-radius: var(--r-pill);
    background: var(--paper-3);
    color: var(--ink-3);
    font-size: var(--step--1);
    padding: .3rem .8rem;
    display: inline-block;
}
.site-foot { border-start-start-radius: var(--r-lg); border-start-end-radius: var(--r-lg); }
.pay-chip { border-radius: var(--r-pill); }
.head-icon { border-radius: var(--r-pill); }
.lang-toggle { border-radius: var(--r-pill); }
.lang-menu { border-radius: var(--r); box-shadow: var(--shadow-2); overflow: hidden; }
.nav-search .input { border-radius: var(--r-pill); }
.tab {
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    padding: .5rem 1rem;
}
.tab-strip { gap: var(--s2); border-block-end: 0; flex-wrap: wrap; }
.tab:hover { background: var(--paper-2); }
.tab.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    border-block-end-color: var(--brand);
}

/* ====================================================== the banner slider */
.slider-band { padding-block: 0 var(--s7); }
.bslider {
    position: relative;
    border-radius: var(--r-lg);
    background: var(--paper-3);
    box-shadow: var(--shadow-card);
}
.bslider-viewport {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-lg);
    aspect-ratio: 16 / 6;
    min-block-size: 15rem;
}
.bslider-track {
    display: flex;
    block-size: 100%;
    --slider-dir: -1;
    transform: translateX(calc(var(--n, 0) * var(--slider-dir) * 100%));
    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}
html[dir="rtl"] .bslider-track { --slider-dir: 1; }

.bslide {
    position: relative;
    flex: 0 0 100%;
    inline-size: 100%;
    block-size: 100%;
    display: grid;
    align-content: center;
    overflow: hidden;
}
.bslide-img {
    position: absolute;
    inset: 0;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
}
.bslide-plain {
    background:
        radial-gradient(120% 120% at 15% 10%, color-mix(in srgb, var(--brand) 75%, #fff) 0%, transparent 60%),
        linear-gradient(135deg, var(--brand-900) 0%, var(--brand) 100%);
}
/* the scrim: strongest on the side the text starts from, in both directions.
   It has to sit above the image, which is an absolutely positioned sibling
   later in the markup, so it carries its own z-index. */
.bslide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to var(--grad-dir),
        color-mix(in srgb, var(--brand-900) 86%, transparent) 0%,
        color-mix(in srgb, var(--brand-900) 66%, transparent) 50%,
        color-mix(in srgb, var(--brand-900) 18%, transparent) 100%);
}
.bslide-plain::before { background: color-mix(in srgb, var(--brand-900) 22%, transparent); }
.bslide-copy {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: start;
    gap: var(--s3);
    padding: var(--s6) var(--s6);
    max-inline-size: 34rem;
}
.bslide-title {
    font-family: var(--font-display);
    font-size: var(--step-3);
    line-height: 1.25;
    color: #fff;
    margin: 0;
    text-wrap: balance;
}
.bslide-sub {
    color: color-mix(in srgb, #fff 86%, transparent);
    font-size: var(--step-0);
    line-height: 1.7;
    margin: 0;
}
.bslide-cta { margin-block-start: var(--s2); }

.bslider-arrow {
    position: absolute;
    inset-block-start: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: none;
    place-items: center;
    inline-size: 2.75rem;
    block-size: 2.75rem;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    color: var(--brand);
    cursor: pointer;
    box-shadow: var(--shadow-1);
    transition: background .18s ease, transform .18s ease;
}
.bslider-arrow:hover { background: var(--paper); }
.bslider-arrow:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}
.bslider-arrow svg { inline-size: 20px; block-size: 20px; }
.bslider-prev { inset-inline-start: var(--s4); }
.bslider-next { inset-inline-end: var(--s4); }
.bslider-next svg { transform: scaleX(-1); }
html[dir="rtl"] .bslider-prev svg { transform: scaleX(-1); }
html[dir="rtl"] .bslider-next svg { transform: none; }
@media (min-width: 900px) { .bslider-arrow { display: grid; } }

.bslider-dots {
    position: absolute;
    inset-block-end: var(--s4);
    inset-inline: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: var(--s2);
}
.bslider-dot {
    inline-size: .6rem;
    block-size: .6rem;
    padding: 0;
    border: 0;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, #fff 55%, transparent);
    cursor: pointer;
    transition: inline-size .2s ease, background .2s ease;
}
.bslider-dot:hover { background: #fff; }
.bslider-dot.is-current { inline-size: 1.6rem; background: var(--accent); }
.bslider-dot:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, #fff 55%, transparent);
}
.bslider.is-solo .bslider-dots,
.bslider.is-solo .bslider-arrow { display: none; }

@media (max-width: 759px) {
    .bslider-viewport { aspect-ratio: 4 / 5; min-block-size: 20rem; }
    .bslide-copy { padding: var(--s5) var(--s4); gap: var(--s2); max-inline-size: none; }
    .bslide-title { font-size: var(--step-2); }
    .bslide-sub { font-size: var(--step--1); }
    .bslider-dots { inset-block-end: var(--s3); }
}
@media (min-width: 760px) and (max-width: 1099px) {
    .bslider-viewport { aspect-ratio: 16 / 8; }
}
@media (prefers-reduced-motion: reduce) {
    .bslider-track { transition: none; }
    .bslider-dot { transition: none; }
}

/* ------------------------------------------------- no horizontal scroll
   Wide content scrolls inside its own card instead of pushing the page:
   nothing here sets overflow on html or body, which would break the sticky
   summary and gallery. */
.container { min-inline-size: 0; }

/* Pages that are read rather than browsed keep a shorter measure: a single
   product, a form, an invoice or a policy page gains nothing from 1680px of
   width, and a line of text that long is tiring to read. Listing pages —
   the shop, the home page, the account tables — use the full width. */
.page-product #main .container,
.page-cart #main .container,
.page-checkout #main .container,
.page-bank #main .container,
.page-thanks #main .container,
.page-auth #main .container,
.page-custom #main .container,
.page-static #main .container,
.page-support #main .container,
.page-error #main .container { max-width: 1240px; }
.table-card, .table-flush, .mass-wrap { -webkit-overflow-scrolling: touch; }

/* a two-column prose grid with only one child should not leave a hole */
.prose-grid > *:only-child { grid-column: 1 / -1; }


/* Grid and flex children default to min-content width, which lets a wide
   table or a long pill row push the whole page sideways. Every column in the
   soft layouts is allowed to shrink instead, so the scroll happens inside
   the card that owns the wide thing. */
.account-layout > *,
.account-cols > *,
.checkout-layout > *,
.pair-grid > *,
.product-layout > *,
.stat-row > *,
.summary-rail > *,
.custom-band > *,
.prose-grid > * { min-inline-size: 0; }
.account-nav-list { max-inline-size: 100%; }

/* A quiet footnote under an account table (e.g. invoices are not tax invoices). */
.account-note { margin-block-start: var(--s4); font-size: var(--step--1); }

/* ------------------------------------------- a reply waiting in the chat
   When the shop answers while the panel is shut, the launcher carries the
   count — the visitor should not have to open it to find out. */
.float-ai.has-unread::after {
    content: attr(data-unread);
    position: absolute;
    inset-block-start: -2px;
    inset-inline-end: -2px;
    min-inline-size: 1.2rem;
    padding: 0 .3rem;
    border-radius: 999px;
    background: var(--accent);
    color: #1a1407;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.2rem;
    text-align: center;
}
.float-ai { position: relative; }

/* A message typed by a person at the shop, not by the assistant. */
.ai-msg-shop {
    border-inline-start: 3px solid var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, var(--paper-2, #fff));
}

/* ==========================================================================
   THE COLOUR PASS
   --------------------------------------------------------------------------
   Everything above was built on one near-black identity colour. That is the
   right choice for the hero, the header and the footer — the dark bands are
   what make the gold read as metal — and the wrong one everywhere else: a
   page of near-black type, near-black buttons and grey chips is a wireframe
   with a logo on it.

   This block does three things and nothing else:

     1. Lifts brand colour used as TEXT ON LIGHT from --brand to --brand-600,
        the same hue with its chroma restored (see Theme::legibleOnWhiteType).
        Brand-as-BACKGROUND is left alone, so the header, the hero and the
        footer keep their depth.
     2. Gives the page some rhythm — alternating sections take a soft wash
        instead of every band being white.
     3. Colours the things that carry meaning: categories, states, prices.

   It sits last on purpose, so a future pass can read this as one decision
   and undo it in one place.
   ========================================================================== */

/* ------------------------------------------------- 1. brand as text, lifted */
.pc-price,
.buy .price-lg,
.addon-price,
.cat-icon,
.support-mark,
.mass-wax-row th,
.nav-link.is-current,
.cat-tree a.is-current,
.lang-menu a.is-current {
    color: var(--brand-600, var(--brand));
}

/* A link in running text should look like a link. It was the ink colour with
   an underline, which on a near-black palette is barely a signal at all. */
.prose a,
.account-note a,
.row-link {
    color: var(--brand-600, var(--brand));
    text-decoration-color: color-mix(in srgb, var(--brand-600, var(--brand)) 40%, transparent);
    text-underline-offset: .22em;
}
.prose a:hover { text-decoration-color: currentColor; }
.row-link:hover { background: var(--brand-wash, var(--brand-soft)); color: var(--brand-600, var(--brand)); }

/* The chosen tab is a filled pill, so it takes the fill colour, not the
   text colour — it was reading as a black lozenge on a white strip. */
.tab.is-active {
    background: var(--brand-600, var(--brand));
    border-color: var(--brand-600, var(--brand));
    border-block-end-color: var(--brand-600, var(--brand));
    color: #fff;
}
.tab:hover { background: var(--brand-wash, var(--paper-2)); color: var(--brand-600, var(--brand)); }
.tab.is-active:hover { background: var(--brand); color: #fff; }

/* The pager's current page was a black square. */
.pager-list .is-current {
    background: var(--brand-600, var(--brand));
    border-color: var(--brand-600, var(--brand));
    color: #fff;
}

/* Selected states: the chosen option should be visibly chosen. */
.pick-row:has(input:checked) {
    border-color: var(--brand-600, var(--brand));
    background: var(--brand-wash, var(--brand-soft));
}
.thumb.is-active {
    border-color: var(--brand-600, var(--brand));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-600, var(--brand)) 25%, transparent);
}
:where(input, select, textarea):focus-visible {
    outline: 2px solid color-mix(in srgb, var(--brand-600, var(--brand)) 55%, transparent);
    outline-offset: 1px;
}

/* ------------------------------------------------------- 2. page rhythm
   A long page of white bands has no landmarks: the visitor scrolls and
   nothing tells him he has moved from one part of the shop to another.
   Alternating washes give the eye something to count.

   The wash is a 4% mix, which is about as far as this can go before it
   stops being a shop and starts being a dashboard. */
.band-tint {
    background: var(--brand-wash, var(--paper-2));
    border-block: 1px solid var(--line-soft);
}
.band-sand {
    background: color-mix(in srgb, var(--sand) 34%, #fff);
    border-block: 1px solid var(--line-soft);
}
.band-gold {
    background: color-mix(in srgb, var(--accent) 9%, #fff);
    border-block: 1px solid var(--line-gold);
}

/* The home page's own rhythm: categories on sand, the steps on a brand
   wash, the white product grid between them. Three bands, so scrolling
   feels like moving through a shop rather than down a spreadsheet. */
.cats-band {
    background: color-mix(in srgb, var(--sand) 30%, #fff);
    border-block: 1px solid var(--line-soft);
}
.steps-band {
    background: var(--brand-wash, var(--paper-2));
    border-block: 1px solid var(--line-soft);
}

/* ------------------------------------------- 3. categories, each its own
   Six hues cycled by position. A shop with four categories gets four
   distinct tiles; one with forty repeats after six, which is fine, because
   by then the colour is decoration and the label is doing the work. */
/* --ct is INHERITED from the <li>, so it must not be declared here: a
   declaration on the tile would shadow the one on its parent and every
   tile would come out the same colour. The default lives in the var()
   fallback instead, where inheritance still wins. */
.cat-tile {
    border-color: color-mix(in srgb, var(--ct, var(--c-slate)) 22%, transparent);
    background: color-mix(in srgb, var(--ct, var(--c-slate)) 5%, #fff);
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
/* The hue is set on the LIST ITEM, not the tile: every tile is the only
   child of its own <li>, so :nth-child on the tile would match them all. */
.cat-row > li:nth-child(6n + 1), .cat-grid > li:nth-child(6n + 1) { --ct: var(--c-indigo); }
.cat-row > li:nth-child(6n + 2), .cat-grid > li:nth-child(6n + 2) { --ct: var(--c-teal); }
.cat-row > li:nth-child(6n + 3), .cat-grid > li:nth-child(6n + 3) { --ct: var(--c-plum); }
.cat-row > li:nth-child(6n + 4), .cat-grid > li:nth-child(6n + 4) { --ct: var(--c-amber); }
.cat-row > li:nth-child(6n + 5), .cat-grid > li:nth-child(6n + 5) { --ct: var(--c-sky); }
.cat-row > li:nth-child(6n + 6), .cat-grid > li:nth-child(6n + 6) { --ct: var(--c-green); }

/* These two carry .cats-band in front of them because the flattening pass
   earlier in this file set them there, and a bare .cat-tile would lose. */
.cats-band .cat-tile,
.cat-tile {
    border-color: color-mix(in srgb, var(--ct, var(--c-slate)) 24%, transparent);
    background: color-mix(in srgb, var(--ct, var(--c-slate)) 6%, #fff);
}
.cats-band .cat-icon,
.cat-tile .cat-icon {
    background: color-mix(in srgb, var(--ct, var(--c-slate)) 16%, #fff);
    color: var(--ct, var(--c-slate));
}
.cats-band .cat-tile:hover,
.cat-tile:hover {
    background: color-mix(in srgb, var(--ct, var(--c-slate)) 9%, #fff);
    border-color: color-mix(in srgb, var(--ct, var(--c-slate)) 38%, transparent);
    color: color-mix(in srgb, var(--ct, var(--c-slate)) 80%, var(--ink));
}
.cats-band .cat-tile:hover .cat-icon { background: var(--ct, var(--c-slate)); color: #fff; }

/* The count beside a category name, so an empty one reads as empty. */
.cat-count,
.subcat-count {
    color: color-mix(in srgb, var(--ct, var(--c-slate)) 78%, var(--ink));
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/* ------------------------------------------------------- the three steps
   "How it works" was three identical white cards with three identical grey
   numbers. Numbering a sequence in one colour tells the reader nothing;
   numbering it in three tells him at a glance there are three of them. */
.steps > .step:nth-child(1) { --ct: var(--c-indigo); }
.steps > .step:nth-child(2) { --ct: var(--c-plum); }
.steps > .step:nth-child(3) { --ct: var(--c-amber); }
.steps > .step:nth-child(4) { --ct: var(--c-teal); }
.steps > .step {
    border-color: color-mix(in srgb, var(--ct, var(--brand)) 20%, transparent);
    border-block-start: 3px solid var(--ct, var(--brand));
}
.step-no {
    background: color-mix(in srgb, var(--ct, var(--brand)) 12%, #fff);
    color: var(--ct, var(--brand));
}

/* ------------------------------------------------------- the VIP thread
   VIP is the one thing in the shop that is always gold, everywhere, with
   no exception — it is the only state a customer pays to reach. */
.badge-vip {
    background: var(--metal, var(--accent));
    color: #221a06;
    border: 0;
    font-weight: 700;
    box-shadow: 0 2px 8px -4px color-mix(in srgb, var(--accent) 80%, transparent);
}

/* ------------------------------------------------- the shop's own sidebar
   The category list in the filter rail is the same set of categories as
   the tiles on the home page, so it takes the same colours: a shopper who
   learned that أقراط is pink on the home page finds it pink here too.
   The nth-child cycle is the same length, so the mapping holds. */
.cat-tree > li:nth-child(6n + 1) { --ct: var(--c-indigo); }
.cat-tree > li:nth-child(6n + 2) { --ct: var(--c-teal); }
.cat-tree > li:nth-child(6n + 3) { --ct: var(--c-plum); }
.cat-tree > li:nth-child(6n + 4) { --ct: var(--c-amber); }
.cat-tree > li:nth-child(6n + 5) { --ct: var(--c-sky); }
.cat-tree > li:nth-child(6n + 6) { --ct: var(--c-green); }

.cat-tree > li > a {
    border-inline-start: 3px solid transparent;
    padding-inline-start: .55rem;
    border-radius: var(--r-sm);
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.cat-tree > li > a:hover {
    background: color-mix(in srgb, var(--ct, var(--c-slate)) 8%, transparent);
    border-inline-start-color: color-mix(in srgb, var(--ct, var(--c-slate)) 50%, transparent);
}
.cat-tree > li > a.is-current {
    background: color-mix(in srgb, var(--ct, var(--c-slate)) 12%, #fff);
    border-inline-start-color: var(--ct, var(--c-slate));
    color: color-mix(in srgb, var(--ct, var(--c-slate)) 82%, var(--ink));
}
/* The count sits in its own small well, so an empty category reads as
   empty at a glance instead of needing the number to be read. */
.cat-tree .cat-count {
    min-inline-size: 1.5rem;
    padding: 0 .35rem;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--ct, var(--c-slate)) 11%, #fff);
    color: color-mix(in srgb, var(--ct, var(--c-slate)) 82%, var(--ink));
    text-align: center;
    font-size: .72rem;
}

/* ------------------------------------------- the account side of the shop
   The customer's own pages were the greyest part of the site, and they are
   the pages a paying customer sees most. Each section takes a colour, the
   same way the panel's sections do. */
.account-nav-list > li:nth-child(5n + 1) { --ct: var(--c-indigo); }
.account-nav-list > li:nth-child(5n + 2) { --ct: var(--c-green); }
.account-nav-list > li:nth-child(5n + 3) { --ct: var(--c-plum); }
.account-nav-list > li:nth-child(5n + 4) { --ct: var(--c-amber); }
.account-nav-list > li:nth-child(5n + 5) { --ct: var(--c-teal); }
.account-nav-list a {
    border-inline-start: 3px solid transparent;
    border-radius: var(--r-sm);
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.account-nav-list a:hover {
    background: color-mix(in srgb, var(--ct, var(--c-slate)) 8%, transparent);
}
.account-nav-list a.is-current {
    background: color-mix(in srgb, var(--ct, var(--c-slate)) 12%, #fff);
    border-inline-start-color: var(--ct, var(--c-slate));
    color: color-mix(in srgb, var(--ct, var(--c-slate)) 82%, var(--ink));
}

/* --------------------------------------- the customer's own three figures
   Orders, spend, downloads — the same treatment the panel's tiles get, so
   the two sides of the shop look like one piece of software. */
.stat-row > .stat-card:nth-child(1) { --ct: var(--c-indigo); }
.stat-row > .stat-card:nth-child(2) { --ct: var(--c-green); }
.stat-row > .stat-card:nth-child(3) { --ct: var(--c-teal); }
.stat-card {
    border-color: color-mix(in srgb, var(--ct, var(--c-slate)) 20%, transparent) !important;
    background: color-mix(in srgb, var(--ct, var(--c-slate)) 5%, #fff) !important;
    border-block-start: 3px solid var(--ct, var(--c-slate)) !important;
}
.stat-card .stat-value { color: color-mix(in srgb, var(--ct, var(--c-slate)) 62%, var(--ink)); }

/* ------------------------------------------------- legibility, measured
   The muted greys were set by eye and came in at 4.1:1 on white — just
   under the 4.5:1 that makes small text readable for someone whose sight
   is not perfect, and a large part of why the site felt washed out. A
   measured pass over every page found them; these are the corrections.

   The breadcrumb separator was the worst of it at 1.1:1, which is to say
   invisible. It is decoration, but it is decoration the eye is supposed
   to see. */
:root {
    --ink-3: color-mix(in srgb, var(--ink) 66%, var(--paper-3));
    --ink-2: color-mix(in srgb, var(--ink) 82%, var(--paper-3));
}
.crumb-sep { color: var(--ink-3); opacity: .55; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--brand-600, var(--brand)); }
.page-lede { color: var(--ink-2); }
.adm-brand-sub,
.adm-nav-group,
.filter-head,
.muted,
.adm-muted,
.adm-sub { color: var(--ink-3); }

/* The step number sat in its own hue on a wash of the same hue — legible,
   but under 4.5:1 on the lighter hues. Darkening it into the ink keeps the
   colour and clears the bar. */
.step-no { color: color-mix(in srgb, var(--ct, var(--brand)) 72%, var(--ink)); }

/* =============================================== after a custom request
   The four steps that follow "إرسال الطلب", as a band directly above the
   footer. It is the last thing on every page, which is the point: the
   question "and then what happens?" is the one that stops a visitor from
   sending a request at all, and it should not be answerable only by
   scrolling the home page to the bottom.

   The band leans on the brand wash rather than white so it reads as part
   of the footer's closing block, not as one more content section. */
.after-band {
    background: var(--brand-wash, var(--paper-2));
    border-block-start: 1px solid var(--line-soft);
    padding-block: var(--s7);
}
.after-row {
    display: grid;
    gap: var(--s5);
    align-items: start;
}
@media (min-width: 900px) {
    .after-row { grid-template-columns: minmax(16rem, .9fr) 1.6fr; gap: var(--s8); }
}

.after-intro { display: grid; gap: var(--s3); justify-items: start; }
.after-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--step-2);
    line-height: 1.3;
}
.after-lede { margin: 0; color: var(--ink-2); font-size: var(--step--1); line-height: 1.8; max-inline-size: 38ch; }

/* Four steps across on a wide screen, two on a tablet, one on a phone.
   Each keeps its own colour, the same four the home page's "how it works"
   uses, so the two lists are visibly the same kind of thing. */
.after-steps {
    display: grid;
    gap: var(--s4);
    margin: 0;
    padding: 0;
    list-style: none;
    grid-template-columns: 1fr;
    counter-reset: none;
}
@media (min-width: 620px) { .after-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .after-steps { grid-template-columns: repeat(4, 1fr); } }

.after-step {
    display: grid;
    gap: var(--s2);
    align-content: start;
    padding: var(--s4);
    border: 1px solid color-mix(in srgb, var(--ct, var(--brand)) 20%, transparent);
    border-block-start: 3px solid var(--ct, var(--brand));
    border-radius: var(--r);
    background: var(--paper);
    box-shadow: var(--shadow-card);
}
.after-steps > li:nth-child(1) { --ct: var(--c-indigo); }
.after-steps > li:nth-child(2) { --ct: var(--c-plum); }
.after-steps > li:nth-child(3) { --ct: var(--c-amber); }
.after-steps > li:nth-child(4) { --ct: var(--c-green); }

.after-no {
    display: grid;
    place-items: center;
    inline-size: 2rem;
    block-size: 2rem;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--ct, var(--brand)) 12%, #fff);
    color: color-mix(in srgb, var(--ct, var(--brand)) 72%, var(--ink));
    font-family: var(--font-num);
    font-weight: 700;
    font-size: var(--step--1);
    line-height: 1;
}
.after-text { color: var(--ink-2); font-size: var(--step--1); line-height: 1.8; }

/* ========================================================= policy reader
   A <dialog> the footer's policy links open over the page. Native, so the
   browser handles focus, Escape, the top layer and inertness behind it;
   everything here is appearance only.

   It is branded on purpose — the logo and the shop's name sit at the top —
   because a customer being asked to accept terms should be able to see
   whose terms they are without leaving the page he is on. */
.pm {
    inline-size: min(60rem, calc(100vw - 2rem));
    max-block-size: min(84vh, 54rem);
    padding: 0;
    border: 0;
    border-radius: var(--r);
    background: var(--paper);
    color: var(--ink-1);
    box-shadow: 0 40px 90px -40px rgba(14, 14, 14, .55), 0 2px 10px rgba(14, 14, 14, .08);
    overflow: hidden;
}
.pm::backdrop {
    /* The brand, heavily darkened — a plain black veil over a jewellery
       shop reads as a system alert, not as part of the shop. */
    background: color-mix(in srgb, var(--brand-900, #0b0b0b) 72%, rgba(10, 10, 10, .72));
    backdrop-filter: blur(3px);
}

.pm-box {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    max-block-size: min(84vh, 54rem);
}

.pm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s4);
    padding: var(--s4) var(--s5);
    background: var(--brand);
    color: var(--on-brand);
    border-block-end: 1px solid var(--line-gold);
}
.pm-brand { display: inline-flex; align-items: center; min-inline-size: 0; }
.pm-logo { max-block-size: 1.75rem; inline-size: auto; display: block; }
.pm-wordmark { font-size: 1.05rem; letter-spacing: .22em; color: var(--on-brand); }

.pm-close {
    flex: none;
    display: grid;
    place-items: center;
    inline-size: 2.25rem;
    block-size: 2.25rem;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--on-brand) 28%, transparent);
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--on-brand);
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
.pm-close:hover { background: color-mix(in srgb, var(--on-brand) 14%, transparent); }
.pm-close svg { inline-size: 18px; block-size: 18px; }

.pm-title {
    margin: 0;
    padding: var(--s5) var(--s5) var(--s3);
    font-family: var(--font-display);
    font-size: var(--step-2);
    line-height: 1.35;
}

.pm-body {
    padding: 0 var(--s5) var(--s5);
    overflow-y: auto;
    overscroll-behavior: contain;
    line-height: 1.95;
    color: var(--ink-2);
}
.pm-body p { margin: 0 0 var(--s4); }
.pm-body p:last-child { margin-block-end: 0; }
.pm-body:focus-visible { outline: 2px solid color-mix(in srgb, var(--brand-600, var(--brand)) 55%, transparent); outline-offset: -2px; }
.pm-loading { color: var(--ink-3); }

.pm-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s4);
    padding: var(--s4) var(--s5);
    border-block-start: 1px solid var(--line-soft);
    background: var(--brand-wash, var(--paper-2));
}
.pm-permalink { font-size: var(--step--1); color: var(--brand-600, var(--brand)); }

/* On a phone the reader takes the whole screen: a centred box with margins
   wastes the only thing in short supply, which is height for the text. */
@media (max-width: 600px) {
    .pm {
        inline-size: 100vw;
        max-block-size: 100vh;
        block-size: 100vh;
        border-radius: 0;
    }
    .pm-box { max-block-size: 100vh; block-size: 100vh; }
    .pm-foot { flex-wrap: wrap; }
    .pm-foot .btn { flex: 1; }
}

@media (prefers-reduced-motion: no-preference) {
    .pm[open] { animation: pmIn .18s ease-out; }
    @keyframes pmIn {
        from { opacity: 0; transform: translateY(8px) scale(.99); }
        to   { opacity: 1; transform: none; }
    }
}

/* Teal on the brand wash measured 4.41:1 — close, and close is a fail.
   Darkened into the ink, which keeps the colour and clears the bar. */
.pm-permalink { color: color-mix(in srgb, var(--brand-600, var(--brand)) 86%, var(--ink)); }

/* ------------------------------------------- the header at tablet width
   At 820px in English the bar ran 10px past the right edge and the cart
   icon sat half off screen. The band at 800–1099px already narrows the
   search WRAPPER, but the input inside it keeps a fixed 190px, so nothing
   actually gave up any width and the overflow landed on the last item in
   the row.

   Three rules, all saying the same thing: flex items may shrink. A flex
   item will not go below its content width unless min-inline-size says it
   may, which is the default that bites here. */
.head-bar { min-inline-size: 0; }
.site-nav { min-inline-size: 0; }
.head-search { min-inline-size: 0; }
.head-search input { inline-size: 100%; min-inline-size: 0; }
.head-tools { flex: 0 0 auto; }

/* ======================================== the custom-design invitation
   A full-bleed band: a mark, a line, a sentence, a button, all centred,
   over nothing, a photograph, or a video on a loop.

   The whole thing is stacked in one grid cell — media, veil and words all
   in `grid-area: 1/1` — rather than absolutely positioned. That way the
   band's height is set by its CONTENT, so a long headline in Turkish makes
   the band taller instead of spilling over a fixed-height picture. */
.cta-band {
    position: relative;
    isolation: isolate;
    padding-block: clamp(4rem, 9vw, 8rem);
    text-align: center;
    overflow: hidden;
    background: var(--brand-900, var(--brand));
    color: var(--on-brand);
}

/* The picture and the veil are taken out of flow on purpose. Left in the
   grid, a 1920×900 banner contributes its own aspect-ratio height to the
   row and the band becomes as tall as the photograph — which is how this
   first came out: a screen and a half of empty green. Out of flow, the
   band's height is set by its WORDS, and the picture is cropped to fit
   whatever that turns out to be. */
.cta-media,
.cta-veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* No picture: the brand's own depth, with a soft pool of light behind the
   mark so the middle of the band is not a flat rectangle. */
.cta-plain {
    background:
        radial-gradient(60% 120% at 50% 0%, color-mix(in srgb, var(--brand-700) 85%, transparent), transparent 70%),
        var(--brand-900, var(--brand));
}

.cta-media {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}

/* The veil is what makes type on a photograph readable, and how much is
   needed depends on the photograph — so its strength is the owner's dial
   (--cta-veil, set inline from the setting) rather than a fixed value. */
.cta-veil {
    z-index: -1;
    background:
        linear-gradient(
            to bottom,
            color-mix(in srgb, var(--brand-900, #0b0b0b) var(--cta-veil, 55%), transparent),
            color-mix(in srgb, var(--brand-900, #0b0b0b) calc(var(--cta-veil, 55%) + 12%), transparent)
        );
}
.cta-plain .cta-veil { display: none; }

.cta-inner {
    position: relative;
    display: grid;
    justify-items: center;
    gap: var(--s4);
    max-inline-size: 54rem;
}

/* The mark: a thin ring with the glyph inside, lit from the accent. It is
   the one thing in the band that is gold, which is what pulls the eye to
   the middle before any word is read. */
.cta-mark {
    display: grid;
    place-items: center;
    inline-size: clamp(4.5rem, 8vw, 6rem);
    block-size: clamp(4.5rem, 8vw, 6rem);
    border-radius: 50%;
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    box-shadow:
        0 0 0 10px color-mix(in srgb, var(--accent) 6%, transparent),
        0 18px 50px -26px color-mix(in srgb, var(--accent) 85%, transparent);
}
.cta-mark svg { inline-size: 54%; block-size: 54%; }

.cta-eyebrow {
    margin: 0;
    font-size: var(--step--1);
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--accent);
}
.cta-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3rem);
    line-height: 1.25;
    color: #fff;
    text-wrap: balance;
}
.cta-text {
    margin: 0;
    max-inline-size: 46ch;
    font-size: var(--step-0);
    line-height: 1.9;
    color: var(--on-brand-2, rgba(255, 255, 255, .78));
}
.cta-action { margin: var(--s2) 0 0; }

/* On a dark band the filled brand button disappears into the background,
   so the call to action is the metal — the same gold as the mark. */
.cta-btn,
.cta-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #1d1708;
    padding-inline: 2rem;
    font-weight: 700;
}
.cta-btn:hover { background: var(--gold-200, var(--accent)); border-color: var(--gold-200, var(--accent)); }

/* --------------------------------------------------------------- motion
   Three small things, all optional (the owner can switch them off) and all
   dropped entirely for a visitor who has asked for less motion:

     the mark breathes, its halo pulses behind it, and the band's content
     rises into place the first time it is scrolled to.

   Nothing moves fast and nothing loops quickly: this sits at the bottom of
   a shop, not in a game. A 7s breath is slow enough to read as "alive" and
   slow enough to ignore while reading the sentence next to it. */
@media (prefers-reduced-motion: no-preference) {
    .cta-band.has-motion .cta-mark {
        animation: ctaBreathe 7s ease-in-out infinite;
    }
    .cta-band.has-motion .cta-mark::before {
        content: "";
        position: absolute;
        inset: -14%;
        border-radius: 50%;
        border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
        animation: ctaHalo 7s ease-out infinite;
    }
    .cta-band.has-motion .cta-mark { position: relative; }

    @keyframes ctaBreathe {
        0%, 100% { transform: translateY(0) scale(1); }
        50%      { transform: translateY(-6px) scale(1.03); }
    }
    @keyframes ctaHalo {
        0%   { transform: scale(.92); opacity: .75; }
        70%  { transform: scale(1.22); opacity: 0; }
        100% { transform: scale(1.22); opacity: 0; }
    }

    /* The hidden start state is gated on .js-reveal, which only the script
       adds. Hiding content in CSS and relying on JS to bring it back is a
       bet that the script runs, and the cost of losing that bet is a blank
       band — the one thing worse than no animation. This way the words are
       visible by default and the script opts into animating them, which it
       can only do if it is alive to finish the job. */
    .cta-band.has-motion.js-reveal .cta-inner > * {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity .6s ease, transform .6s cubic-bezier(.22, .9, .3, 1);
    }
    .cta-band.has-motion.js-reveal.is-in .cta-inner > * { opacity: 1; transform: none; }
    .cta-band.has-motion.js-reveal.is-in .cta-inner > :nth-child(2) { transition-delay: .07s; }
    .cta-band.has-motion.js-reveal.is-in .cta-inner > :nth-child(3) { transition-delay: .14s; }
    .cta-band.has-motion.js-reveal.is-in .cta-inner > :nth-child(4) { transition-delay: .21s; }
    .cta-band.has-motion.js-reveal.is-in .cta-inner > :nth-child(5) { transition-delay: .28s; }

    /* A slow drift over a still banner, so an owner who uploads a photo
       instead of a video still gets something that is not frozen. */
    .cta-image.has-motion .cta-media {
        animation: ctaDrift 26s ease-in-out infinite alternate;
        transform-origin: center;
    }
    @keyframes ctaDrift {
        from { transform: scale(1.04); }
        to   { transform: scale(1.11) translate3d(0, -1.5%, 0); }
    }
}

/* Someone who has asked their system for less motion gets a still band:
   no breath, no halo, no drift, and the video is paused by the script. */
@media (prefers-reduced-motion: reduce) {
    .cta-band .cta-inner > * { opacity: 1; transform: none; }
}

/* ================================================ back to top, with progress
   The ring around the arrow is the page's own scroll position. It turns a
   button that only answered "take me up" into one that also answers "how
   much of this is left?", which on a long product page is the question the
   visitor actually has.

   The button is square and the ring sits on its edge, so everything inside
   is centred in one grid cell rather than positioned by hand. */
.float-top {
    position: relative;
    display: grid;
    place-items: center;
    inline-size: 48px;
    min-inline-size: 48px;
    block-size: 48px;
    padding: 0;
    border-color: color-mix(in srgb, var(--brand-600, var(--brand)) 18%, var(--line));
    transition: background-color .18s ease, color .18s ease, transform .18s ease,
                box-shadow .18s ease, border-color .18s ease;
}
.float-top > * { grid-area: 1 / 1; }

.float-ring {
    inline-size: 48px;
    block-size: 48px;
    /* SVG strokes start at three o'clock; this puts the start of the ring at
       the top and runs it clockwise, the way a progress dial is read. */
    transform: rotate(-90deg);
    pointer-events: none;
}
html[dir="rtl"] .float-ring { transform: rotate(-90deg) scaleY(-1); }
.float-ring-track { stroke: color-mix(in srgb, var(--brand-600, var(--brand)) 14%, transparent); }
.float-ring-fill {
    stroke: var(--brand-600, var(--brand));
    transition: stroke-dashoffset .12s linear, stroke .25s ease;
}

.float-top-arrow {
    inline-size: 20px;
    block-size: 20px;
    transition: transform .22s cubic-bezier(.2, .9, .3, 1), opacity .18s ease;
}

/* The exact percentage, swapped in for the arrow while the pointer is on
   the button. A number is more use than an arrow at the moment you are
   already looking at it, and the arrow is back the instant you leave. */
.float-top-pct {
    font-family: var(--font-num);
    font-size: .68rem;
    font-weight: 700;
    line-height: 1;
    color: var(--brand-600, var(--brand));
    opacity: 0;
    transform: scale(.8);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
}

@media (hover: hover) {
    .float-top:hover {
        background: var(--brand-600, var(--brand));
        border-color: var(--brand-600, var(--brand));
        color: #fff;
        transform: translateY(-2px);
    }
    .float-top:hover .float-ring-track { stroke: rgba(255, 255, 255, .28); }
    .float-top:hover .float-ring-fill  { stroke: var(--accent); }
    .float-top:hover .float-top-arrow  { opacity: 0; transform: translateY(-10px); }
    .float-top:hover .float-top-pct    { opacity: 1; transform: scale(1); color: #fff; }
}

.float-top:active { transform: translateY(0) scale(.95); }
.float-top:focus-visible {
    outline: 2px solid var(--brand-600, var(--brand));
    outline-offset: 3px;
}

/* At the very bottom the ring is full and the whole button goes gold —
   a small "you have reached the end" that costs nothing to read. */
.float-top.is-complete {
    border-color: color-mix(in srgb, var(--accent) 60%, transparent);
    background: color-mix(in srgb, var(--accent) 12%, var(--paper));
}
.float-top.is-complete .float-ring-fill { stroke: var(--accent); }
.float-top.is-complete .float-top-arrow { color: var(--gold-deep, var(--accent-700)); }

@media (prefers-reduced-motion: reduce) {
    .float-top, .float-top-arrow, .float-top-pct, .float-ring-fill { transition: none; }
    .float-top:hover { transform: none; }
}
