/* ==========================================================================
   QuébecIpod — redesign
   Look: "restoration workshop" — aluminium-grey ground that matches the
   product photography, graphite ink, one Québec-blue accent.
   Type: Archivo (expanded for display) + JetBrains Mono for labels/prices.
   ========================================================================== */

:root {
    --ground: #EEEEEE;
    --paper: #FFFFFF;
    --field: #F7F7F6;
    --ink: #121316;
    --ink-2: #2C2E33;
    --muted: #45474D;
    --muted-2: #55575D;
    --line: #D4D4D2;
    --line-2: #C4C4C2;
    --line-soft: #E4E4E2;
    --blue: #0B3FA8;
    --blue-dark: #072B75;
    --blue-soft: #EEF2FB;
    --blue-on-dark: #C9D6F2;
    --danger: #B42318;
    --danger-bg: #FBE9E5;
    --danger-fg: #8A2414;
    --dark-muted: #9A9CA2;
    --dark-line: #2E3036;

    --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --radius-sm: 14px;
    --radius: 20px;
    --radius-lg: 28px;
    --pad: 32px;
}

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

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

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--ground);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* An explicit background on <main> gives mix-blend-mode something to blend
   with (the body background is painted on the canvas, which doesn't blend). */
main { display: block; background: var(--ground); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
label:focus-within {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

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

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-inline: var(--pad);
}

/* ---------- Type ---------- */

.eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
    display: flex;
    align-items: center;
    gap: 10px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; }
.eyebrow .dot--green { background: #1F7A4D; }

.display {
    font-stretch: 125%;
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.92;
    text-wrap: balance;
}
.display--xl { font-size: clamp(52px, 7vw, 108px); }
.display--lg { font-size: clamp(48px, 6.2vw, 96px); }
.display--md { font-size: clamp(40px, 4.4vw, 64px); }
.display--sm { font-size: clamp(32px, 3.6vw, 52px); line-height: 0.98; letter-spacing: -0.04em; }

.title { font-stretch: 120%; font-weight: 800; letter-spacing: -0.03em; font-size: 28px; line-height: 1.1; }

.lead { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 34ch; text-wrap: pretty; }
.body { font-size: 18px; line-height: 1.6; color: var(--muted); }
.mono { font-family: var(--mono); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    padding: 0 28px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2A2C31; color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost { border: 1px solid var(--line-2); color: var(--ink); background: transparent; height: 44px; padding: 0 18px; font-size: 14px; font-weight: 500; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--danger { border: 1px solid #F0C9C1; color: var(--danger); background: #fff; }
.btn--danger:hover { background: var(--danger-bg); color: var(--danger); }
.btn--sm { height: 40px; padding: 0 14px; font-size: 14px; font-weight: 500; }
.btn--lg { height: 60px; font-size: 17px; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    font-weight: 600; text-decoration: none;
}
.link-arrow svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */

.site-header {
    border-bottom: 1px solid transparent;
    position: sticky;
    top: 0;
    z-index: 20;
    transition: border-color .25s, box-shadow .25s;
}
/* Blur on a layer — not on .site-header itself — so .mobile-menu
   (position: fixed) still uses the viewport as its containing block.
   backdrop-filter on the header collapses the drawer to 0 height. */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: rgba(238, 238, 238, 0.92);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
            backdrop-filter: blur(12px) saturate(1.2);
    transition: background-color .25s;
}
.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 10px 28px -22px rgba(18, 19, 22, 0.45);
}
.site-header.is-scrolled::before {
    background: rgba(255, 255, 255, 0.9);
}
.site-header .header-bar {
    position: relative;
    z-index: 1;
    min-height: 76px;
    padding-block: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 32px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 30px; height: 30px; border-radius: 50%;
    border: 7px solid var(--ink);
    display: flex; align-items: center; justify-content: center;
    flex: none;
}
.brand-mark::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-stretch: 125%; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; line-height: 1; }
.brand-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }

.nav ul { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.nav a {
    display: flex; align-items: center; min-height: 44px;
    font-size: 15px; font-weight: 500;
    color: var(--muted-2); text-decoration: none;
    box-shadow: inset 0 -2px 0 transparent;
    transition: color .2s, box-shadow .2s;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--blue); }

.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.lang-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 40px; min-width: 44px; padding: 0 10px;
    border-radius: 999px; border: 1px solid var(--line-2);
    font-family: var(--mono); font-size: 12px; font-weight: 500;
    color: var(--ink); text-decoration: none;
}
.lang-btn:hover { border-color: var(--ink); color: var(--ink); }

.header-link {
    display: inline-flex; align-items: center; gap: 8px;
    height: 44px; padding: 0 14px; border-radius: 999px;
    color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
}
.header-link:hover { background: var(--paper); color: var(--ink); }
.header-link[aria-current="page"] { background: var(--paper); }
.header-link svg { width: 20px; height: 20px; }
.header-link--muted { color: var(--muted); }

.count-badge {
    min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: var(--blue); color: #fff;
    font-family: var(--mono); font-size: 11px;
    display: inline-flex; align-items: center; justify-content: center;
}

.account-chip {
    display: inline-flex; align-items: center; gap: 10px;
    height: 44px; padding: 0 16px 0 6px; border-radius: 999px;
    background: var(--paper); color: var(--ink); text-decoration: none;
    font-size: 15px; font-weight: 600;
}
.account-chip:hover { color: var(--ink); }
.avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--blue); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
}

.header-actions .btn { height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--ground); }
.site-footer .container { padding-block: 80px 32px; display: flex; flex-direction: column; gap: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-about { display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
.footer-about p:last-child { font-size: 20px; line-height: 1.5; text-wrap: pretty; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.site-footer .eyebrow { color: var(--dark-muted); }
.footer-col a {
    display: inline-flex; min-height: 36px; align-items: center;
    color: var(--ground); text-decoration: none; font-size: 16px;
}
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-wordmark {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.18em;
    margin: 0;
    font-stretch: 125%;
    font-weight: 800;
    font-size: clamp(48px, 10vw, 160px);
    line-height: 0.92;
    letter-spacing: -0.05em;
    max-width: 100%;
}
.footer-wordmark span { display: inline-block; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    padding-top: 20px; border-top: 1px solid var(--dark-line);
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--dark-muted);
}

/* ---------- Newsletter ---------- */

.newsletter { background: var(--blue); color: #fff; }
.newsletter .container {
    padding-block: 72px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
    gap: 32px 64px;
    align-items: end;
}
.newsletter .eyebrow { color: var(--blue-on-dark); }
.newsletter h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1; letter-spacing: -0.04em; margin-top: 16px; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-on-dark); }
.pill-input { display: flex; flex-wrap: wrap; gap: 8px; background: #fff; border-radius: 999px; padding: 6px; }
.pill-input input {
    flex: 1 1 220px; min-width: 0; height: 52px; border: 0; background: transparent;
    padding: 0 20px; font-size: 17px; color: var(--ink); border-radius: 999px;
}
.pill-input .btn { height: 52px; }
.newsletter-success {
    display: flex; gap: 12px; align-items: center;
    font-size: 20px; font-weight: 600;
    background: rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 18px 24px;
}
.newsletter-success svg { width: 22px; height: 22px; flex: none; }

/* ---------- Home ---------- */

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr));
    gap: 40px;
    align-items: center;
    min-height: 680px;
    padding-block: 56px 40px;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-copy .btn-row { padding-top: 8px; }

.visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 520px; }
.visual::before,
.visual::after {
    content: ""; position: absolute; aspect-ratio: 1; border-radius: 50%;
    border: 1.5px solid #D2D2D0; pointer-events: none;
}
.visual::before { width: min(560px, 92%); }
.visual::after { width: min(300px, 50%); border-style: dashed; }
.visual img { position: relative; width: min(600px, 100%); aspect-ratio: 1; object-fit: cover; z-index: 1;
    -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent);
            mask-image: radial-gradient(closest-side, #000 82%, transparent); }
.visual--sm { min-height: 480px; }
.visual--sm::after { display: none; }
.visual-caption { position: absolute; left: 0; bottom: 8px; z-index: 1; }

.ticker { background: var(--ink); color: var(--ground); }

.section { padding-block: 112px; }
.section--tight-top { padding-top: 56px; }
.section--tight-bottom { padding-bottom: 56px; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }

.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }

.model-card {
    display: flex; flex-direction: column; background: var(--paper);
    border-radius: 24px; overflow: hidden; text-decoration: none; color: var(--ink);
    transition: transform .3s;
}
.model-card:hover { color: var(--ink); transform: translateY(-4px); }
.model-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.model-card footer { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 24px; border-top: 1px solid var(--ground); }
.model-card h3 { font-stretch: 112%; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.model-card .mono { font-size: 12px; color: var(--muted-2); }

.story { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 56px; align-items: center; }
.story img { width: 100%; height: 560px; object-fit: cover; border-radius: 24px; }
.story-copy { display: flex; flex-direction: column; gap: 24px; max-width: 520px; }

/* ---------- Home: colour picker ---------- */

.hero-stage { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-stage .visual { width: 100%; }
.visual img[data-hero-image] { transition: opacity .25s ease, transform .35s ease; }
.visual img.is-swapping { opacity: 0; transform: translateY(8px) scale(.98); }
.swatches { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.swatch-row { display: flex; gap: 10px; }
.swatch {
    width: 44px; height: 44px; padding: 0; border-radius: 50%;
    border: 2px solid transparent; background: transparent; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: border-color .2s;
}
.swatch::after {
    content: ""; width: 28px; height: 28px; border-radius: 50%;
    background: var(--c);
    box-shadow: inset 0 0 0 1px rgba(18, 19, 22, 0.15);
    transition: transform .2s;
}
.swatch:hover::after { transform: scale(1.1); }
.swatch[aria-pressed="true"] { border-color: var(--ink); }

/* ---------- Home: marquee ticker ---------- */

.ticker { overflow: hidden; }
.ticker-track { display: flex; width: max-content; }
.ticker-track ul {
    display: flex; flex: none; gap: 32px; padding: 22px 16px; padding-right: 32px;
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
    white-space: nowrap;
}
.ticker-track li[aria-hidden], .ticker-track ul[aria-hidden] li:nth-child(even) { color: #8FA9E8; }
@media (prefers-reduced-motion: no-preference) {
    .ticker-track { animation: marquee 38s linear infinite; }
    .ticker:hover .ticker-track { animation-play-state: paused; }
    @keyframes marquee { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
    .ticker-track ul[aria-hidden] { display: none; }
    .ticker-track { width: auto; }
    .ticker-track ul { flex-wrap: wrap; white-space: normal; }
}

/* ---------- Home: restoration process ---------- */

.process {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    grid-template-areas: "head tall" "wide tall" "steps steps";
    gap: 32px 20px;
}
.process-head { grid-area: head; display: flex; flex-direction: column; gap: 18px; align-self: end; max-width: 640px; }
.process-photo { margin: 0; border-radius: 24px; overflow: hidden; background: #DCDCDA; }
.process-photo img { width: 100%; height: 100%; object-fit: cover; }
.process-photo--wide { grid-area: wide; aspect-ratio: 16 / 9; }
.process-photo--tall { grid-area: tall; }
.steps {
    grid-area: steps;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
    counter-reset: step;
}
.steps li {
    display: flex; flex-direction: column; gap: 12px;
    padding-top: 20px; border-top: 1.5px solid var(--ink);
}
.step-num { font-family: var(--mono); font-size: 13px; color: var(--blue); }
.steps h3 { font-stretch: 115%; font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.steps p { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 36ch; }

/* ---------- Home: Montréal band ---------- */

.city-band { background: var(--ink); color: var(--ground); overflow: hidden; }
.city {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px; align-items: center; padding-block: 104px;
}
.city-copy { display: flex; flex-direction: column; gap: 24px; }
.city-copy .eyebrow { color: var(--dark-muted); }
.city-copy .body { color: #C9CBD1; max-width: 44ch; }
.city-copy .btn-row { padding-top: 8px; }
.city-photo { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; background: #23252A; transform: rotate(1.5deg); }
.city-photo img { width: 100%; height: 100%; object-fit: cover; }
.btn--ghost-light { border-color: #5A5C62; color: var(--ground); background: transparent; }
.btn--ghost-light:hover { border-color: var(--ground); color: #fff; }

/* ==========================================================================
   v3 — Home hero, scroll reveal, auth split screens
   ========================================================================== */

/* Scroll reveal (JS adds .js to <html>; without JS everything stays visible) */
@media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
        transition-delay: var(--d, 0ms);
    }
    .js [data-reveal].is-in { opacity: 1; transform: none; }
    .reveal-4 { animation-delay: .24s; }
}

/* Slow zoom-out on large photos */
.kenburns { width: 100%; height: 100%; overflow: hidden; }
.kenburns img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
    .kenburns img { animation: kenburns 2.4s cubic-bezier(.2, .7, .2, 1) both; }
    @keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
}

/* Arrow nudge on primary buttons */
.btn--arrow svg { transition: transform .25s ease; }
.btn--arrow:hover svg { transform: translateX(4px); }

/* ---- Home hero ---- */
.hero2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
    padding-block: 48px 72px;
}
.hero2-copy { display: flex; flex-direction: column; gap: 28px; }
.hero2-title { font-size: clamp(52px, 6.6vw, 104px); }
.hero2-title em { font-style: normal; color: var(--blue); }
.hero2-copy .lead { max-width: 40ch; }
.trust {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
    padding-top: 24px; margin-top: 8px; border-top: 1px solid var(--line);
}
.trust li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--muted); }
.trust strong { display: block; color: var(--ink); font-weight: 600; }
.trust svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 1px; }

.hero2-media {
    position: relative; margin: 0;
    aspect-ratio: 4 / 5; max-height: 760px; justify-self: end; width: 100%;
    border-radius: 32px; overflow: hidden; background: #E4E4E2;
    box-shadow: 0 40px 80px -40px rgba(18, 19, 22, 0.35);
}
.glass-chip, .glass-card {
    position: absolute; z-index: 2;
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
            backdrop-filter: blur(14px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 32px -12px rgba(18, 19, 22, 0.25);
}
.glass-chip {
    top: 20px; left: 20px;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 16px; border-radius: 999px;
    font-size: 14px; font-weight: 600; color: var(--ink);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #1F9D55; box-shadow: 0 0 0 0 rgba(31, 157, 85, .5); }
@media (prefers-reduced-motion: no-preference) {
    .pulse { animation: pulse 2.2s infinite; }
    @keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(31, 157, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0); } }
}
.glass-card {
    left: 20px; right: 20px; bottom: 20px;
    display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px;
    padding: 18px 20px; border-radius: 20px;
    color: var(--ink); text-decoration: none;
    transition: transform .3s ease, background-color .3s ease;
}
.glass-card:hover { color: var(--ink); background: rgba(255, 255, 255, 0.88); transform: translateY(-3px); }
.glass-card .eyebrow { grid-column: 1 / -1; font-size: 11px; }
.glass-card-title { font-stretch: 115%; font-weight: 800; font-size: 22px; letter-spacing: -0.025em; }
.glass-card-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue); }
.glass-card-cta svg { width: 16px; height: 16px; transition: transform .25s; }
.glass-card:hover .glass-card-cta svg { transform: translateX(4px); }

.section-head-copy { display: flex; flex-direction: column; gap: 12px; }

/* ---- Shop by colour ---- */
.colour-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.colour-tile {
    position: relative; display: block; border-radius: var(--radius); overflow: hidden;
    background: var(--ground); border: 1px solid #DADAD8; color: var(--ink); text-decoration: none;
}
.colour-tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.colour-tile:hover img { transform: scale(1.06) translateY(-6px); }
.colour-tile span {
    position: absolute; left: 12px; bottom: 12px;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px 8px 10px; border-radius: 999px; background: #fff;
    font-size: 14px; font-weight: 600; box-shadow: 0 6px 16px -8px rgba(18, 19, 22, .3);
}
.colour-tile i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(18, 19, 22, .15); }
.colour-tile:hover { color: var(--ink); }

/* ---- Auth split screens ---- */
.auth2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    padding-block: 24px 72px;
    min-height: calc(100vh - 77px);
    min-height: calc(100svh - 77px);
}
.auth2-media {
    position: relative; margin: 0;
    border-radius: 32px; overflow: hidden; background: #DCDCDA;
    min-height: 620px;
}
.auth2-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(18, 19, 22, 0) 45%, rgba(18, 19, 22, 0.72) 100%);
}
.auth2-caption {
    position: absolute; left: 32px; right: 32px; bottom: 32px; z-index: 1;
    display: flex; flex-direction: column; gap: 14px; color: #fff;
}
.auth2-caption .eyebrow { color: rgba(255, 255, 255, 0.8); }
.auth2-quote { font-stretch: 125%; font-weight: 800; font-size: clamp(30px, 3vw, 44px); line-height: 1; letter-spacing: -0.04em; max-width: 14ch; text-wrap: balance; }
.perks { display: flex; flex-direction: column; gap: 10px; }
.perks li {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 16px; font-weight: 500;
}
.perks svg { width: 20px; height: 20px; flex: none; }

.auth2-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth2-form { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 28px; }
.auth2-head { display: flex; flex-direction: column; gap: 14px; }
.auth2-head h1 { font-size: clamp(44px, 4.6vw, 64px); }
.auth2-head .sub { font-size: 17px; color: var(--muted-2); }
.auth2-form .switch { font-size: 15px; color: var(--muted-2); text-align: center; }
.auth2-form .switch a { font-weight: 600; }
.auth2-divider { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--muted-2); }
.auth2-divider::before, .auth2-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.btn--google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn--google:hover { background: #f7f7f8; color: var(--ink); }
.btn-google-icon { width: 18px; height: 18px; flex-shrink: 0; }

.input-wrap { position: relative; }
.input-wrap > svg {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; color: var(--muted-2); pointer-events: none; transition: color .2s;
}
.input-wrap:focus-within > svg { color: var(--blue); }
.auth2 .input { background: var(--paper); height: 56px; border-radius: 16px; }
.auth2 .input:focus { box-shadow: 0 0 0 4px rgba(11, 63, 168, 0.12); }
.input.input--icon { padding-left: 46px; }
.input.input--toggle { padding-right: 52px; }
.pw-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--muted-2); cursor: pointer;
}
.pw-toggle:hover { color: var(--ink); background: var(--ground); }
.pw-toggle svg { width: 20px; height: 20px; }
.pw-toggle .eye-slash { opacity: 0; transition: opacity .2s; }
.pw-toggle[aria-pressed="true"] .eye-slash { opacity: 1; }

.form-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 18px; }

.strength { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.strength-bar { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.strength-bar span { height: 4px; border-radius: 4px; background: var(--line); transition: background-color .3s; }
.strength-label { font-size: 12px; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); min-width: 9ch; text-align: right; }
.strength[data-level="1"] .strength-bar span:nth-child(-n+1),
.strength[data-level="2"] .strength-bar span:nth-child(-n+2) { background: #C2410C; }
.strength[data-level="3"] .strength-bar span:nth-child(-n+3) { background: #B45309; }
.strength[data-level="4"] .strength-bar span:nth-child(-n+4),
.strength[data-level="5"] .strength-bar span:nth-child(-n+5) { background: var(--blue); }

/* ---------- Page heads ---------- */

.page-head {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
    gap: 24px 48px;
    padding-block: 72px 40px;
}
.page-head > div { display: flex; flex-direction: column; gap: 18px; }
.page-head .lead { max-width: 30ch; }

/* ---------- Shop ---------- */

.shop-bar {
    position: sticky; top: 77px; z-index: 10;
    background: var(--ground);
    border-block: 1px solid var(--line);
}
.shop-bar form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-block: 14px; }
.search {
    flex: 1 1 320px; display: flex; align-items: center; gap: 10px;
    height: 52px; padding: 0 18px; background: var(--paper); border-radius: 999px;
}
.search svg { width: 18px; height: 18px; color: var(--muted-2); flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 16px; }
.search input:focus-visible { outline: none; }
.search:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.select {
    height: 52px; padding: 0 44px 0 18px; border: 1px solid var(--line-2); border-radius: 999px;
    background: var(--ground) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23121316' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 18px center;
    appearance: none; font-size: 15px;
}
.shop-bar .eyebrow { margin: 0; }
.shop-bar .btn { height: 52px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 40px 20px; }
.product-card a { display: flex; flex-direction: column; gap: 14px; color: var(--ink); text-decoration: none; }
.product-card a:hover { color: var(--ink); }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid #DADAD8; background: var(--ground); }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s; }
.product-card a:hover .tile img { transform: scale(1.04); }
.product-card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 4px; }
.product-card h3 { font-stretch: 110%; font-weight: 700; font-size: 18px; letter-spacing: -0.015em; }
.product-card .price { font-family: var(--mono); font-size: 14px; }
.product-card.is-sold img { opacity: 0.55; }
.product-card.is-sold .price { color: var(--muted-2); }

.sold-badge {
    position: absolute; top: 14px; left: 14px; z-index: 1;
    padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}

.empty {
    display: flex; flex-direction: column; align-items: center; gap: 20px;
    padding: 96px 24px; border: 1.5px dashed var(--line-2); border-radius: var(--radius-lg);
    text-align: center;
}
.empty p { font-stretch: 115%; font-weight: 700; font-size: 26px; letter-spacing: -0.02em; max-width: 22ch; }
.empty-mark { width: 88px; height: 88px; border-radius: 50%; border: 18px solid var(--line); }
.empty--photo {
    position: relative; overflow: hidden; border: 0;
    min-height: 320px; padding: 56px 28px; color: #fff;
    background: #23252A center / cover no-repeat;
    background-image: linear-gradient(180deg, rgba(18,19,22,.35), rgba(18,19,22,.72)), var(--empty-img);
}
.empty--photo p { color: #fff; text-shadow: 0 8px 24px rgba(0,0,0,.35); }
.empty--photo .btn--dark { background: #fff; color: var(--ink); }
.empty--photo .btn--outline { border-color: rgba(255,255,255,.7); color: #fff; }

/* ---------- Product ---------- */

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.breadcrumb a { color: var(--muted-2); }
.breadcrumb [aria-current] { color: var(--ink); }

.product-layout { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; padding-block: 32px 104px; }
.gallery { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid #DADAD8; background: var(--ground); position: relative; }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumbs { display: flex; flex-wrap: wrap; gap: 12px; }
.thumb {
    width: 96px; height: 96px; padding: 0; border-radius: 16px; overflow: hidden;
    background: var(--ground); border: 2px solid #DADAD8; cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-pressed="true"] { border-color: var(--blue); }

.buybox { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 100px; }
.buybox-head { display: flex; flex-direction: column; gap: 14px; }
.buybox .price-lg { font-family: var(--mono); font-size: 28px; font-weight: 500; }
.buybox .desc { font-size: 17px; line-height: 1.65; color: var(--muted); white-space: pre-line; }
.buybox .actions { display: flex; flex-direction: column; gap: 10px; }

.specs { border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.specs dd { margin: 0; font-size: 15px; text-align: right; }

/* ---------- Alerts ---------- */

.alert { display: flex; gap: 12px; align-items: center; padding: 16px 20px; border-radius: 16px; font-size: 16px; }
.alert svg { width: 20px; height: 20px; flex: none; }
.alert--error { background: var(--danger-bg); color: var(--danger-fg); }
.alert--ok { background: var(--blue-soft); color: var(--blue); font-weight: 600; }

/* ---------- Cart ---------- */

.cart-page { display: flex; flex-direction: column; gap: 40px; padding-block: 64px 120px; }
.cart-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.cart-list { flex: 999 1 560px; min-width: 0; border-top: 1px solid var(--line); }
.cart-item { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item .thumb-lg { width: 120px; height: 120px; border-radius: 18px; overflow: hidden; border: 1px solid #DADAD8; background: var(--ground); flex: none; }
.cart-item .thumb-lg img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .info { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; }
.cart-item h2 { font-stretch: 112%; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.cart-item .price { font-family: var(--mono); font-size: 18px; }

.summary {
    flex: 1 1 340px; min-width: 0; background: var(--paper); border-radius: 24px; padding: 28px;
    display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px;
}
.summary h2 { font-stretch: 115%; font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.summary dl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); }
.summary dd { margin: 0; }
.summary .total { padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 18px; font-weight: 700; color: var(--ink); }
.summary .total dd { font-family: var(--mono); font-weight: 500; }
.secure-note { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted-2); }
.secure-note svg { width: 16px; height: 16px; }

/* ---------- Checkout success ---------- */

.success-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 56px; align-items: start; padding-block: 80px 120px; }
.success-copy { display: flex; flex-direction: column; gap: 24px; }
.check-circle { width: 72px; height: 72px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; }
.check-circle svg { width: 34px; height: 34px; }

.receipt {
    background: var(--paper); border-radius: 4px 4px 24px 24px; padding: 32px;
    display: flex; flex-direction: column; gap: 20px; font-family: var(--mono);
    box-shadow: 0 1px 0 var(--line), 0 24px 48px -24px rgba(18, 19, 22, 0.18);
}
.receipt-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.receipt ul { border-top: 1.5px dashed var(--line-2); }
.receipt li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1.5px dashed var(--line-2); }
.receipt li img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--ground); }
.receipt li span { flex: 1; font-family: var(--font); font-size: 16px; font-weight: 600; }
.receipt li strong { font-weight: 500; font-size: 15px; }
.receipt-total { display: flex; justify-content: space-between; gap: 12px; font-size: 18px; font-weight: 500; }
.receipt-foot { font-size: 12px; letter-spacing: 0.06em; color: var(--muted-2); line-height: 1.6; }

/* ---------- About ---------- */

.about-head { display: flex; flex-direction: column; gap: 28px; padding-block: 96px 80px; }
.about-head h1 { font-size: clamp(52px, 8vw, 128px); line-height: 0.9; letter-spacing: -0.05em; max-width: 13ch; }

.numbered { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr)); gap: 0 64px; border-top: 1.5px solid var(--ink); }
.numbered li { display: flex; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.numbered .num { font-family: var(--mono); font-size: 13px; color: var(--blue); padding-top: 4px; }
.numbered p { font-size: 18px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }

.dark-band { background: var(--ink); color: var(--ground); }
.dark-band .eyebrow { color: var(--dark-muted); }
.mission { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 56px; align-items: center; padding-block: 104px; }
.mission-copy { display: flex; flex-direction: column; gap: 28px; }
.checklist { border-top: 1px solid var(--dark-line); }
.checklist li { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--dark-line); font-size: 18px; }
.checklist svg { width: 20px; height: 20px; color: #8FA9E8; flex: none; }
.flag { margin: 0; display: flex; flex-direction: column; gap: 20px; justify-self: center; }
.flag img { width: min(420px, 100%); aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.flag figcaption { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #C9CBD1; }

.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 64px; padding-block: 112px; }
.cta > div:first-child { display: flex; flex-direction: column; gap: 20px; flex: 1 1 520px; }
.cta h2 { font-size: clamp(40px, 5vw, 76px); }
.cta .body { max-width: 46ch; }

/* ---------- Contact ---------- */

.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; padding-bottom: 96px; }
.method { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 24px; background: var(--paper); }
.method svg { width: 28px; height: 28px; color: var(--blue); }
.method h2 { font-stretch: 115%; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.method p { font-size: 15px; color: var(--muted-2); }
.method .mono { font-size: 14px; color: var(--ink); word-break: break-all; }

.white-band { background: var(--paper); border-block: 1px solid var(--line); }
.split { display: flex; flex-wrap: wrap; gap: 48px 80px; padding-block: 96px; }
.split > :first-child { flex: 1 1 320px; display: flex; flex-direction: column; gap: 18px; }
.split > :last-child { flex: 999 1 560px; min-width: 0; }
.split .body { max-width: 32ch; }

/* ---------- Forms ---------- */

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.form-stack { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 14px; font-weight: 600; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field-row a { font-size: 14px; font-weight: 500; }
.input {
    height: 54px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
    background: var(--field); font-size: 16px; color: var(--ink); width: 100%;
    transition: border-color .2s, background-color .2s;
}
.input:hover { border-color: #A9ABB0; }
.input:focus { background: #fff; border-color: var(--blue); }
textarea.input { height: auto; padding: 14px 16px; resize: vertical; }
select.input {
    appearance: none;
    background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23121316' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 18px center;
    padding-right: 44px;
}

.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 6px 16px; margin-top: 4px; }
.rules li { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted-2); }
.rules li::before {
    content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
    background: var(--line-2) no-repeat center / 10px;
}
.rules li.is-met { color: var(--blue); }
.rules li.is-met::before {
    background-color: var(--blue);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5L20 7' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.match { min-height: 18px; font-size: 13px; font-weight: 600; }
.match.is-ok { color: var(--blue); }
.match.is-bad { color: var(--danger); }

.success-box { display: flex; flex-direction: column; gap: 16px; padding: 40px; border-radius: 24px; background: var(--blue-soft); }
.success-box p:first-child { font-stretch: 115%; font-weight: 800; font-size: 28px; letter-spacing: -0.03em; color: var(--blue); }
.success-box p:last-child { font-size: 17px; color: var(--ink-2); }

/* ---------- FAQ ---------- */

.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    min-height: 72px; cursor: pointer; font-size: 20px; font-weight: 600; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; transition: transform .25s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 60ch; }

/* ---------- Auth ---------- */

.auth { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: center; padding-block: 56px 104px; }
.auth .visual { flex: 1 1 480px; }
.auth .visual img { mix-blend-mode: normal; }
.auth-card {
    flex: 1 1 420px; min-width: 0; max-width: 520px; background: var(--paper);
    border-radius: var(--radius-lg); padding: 44px;
    display: flex; flex-direction: column; gap: 28px;
}
.auth-card h1 { font-size: 48px; line-height: 0.95; }
.auth-card .sub { font-size: 17px; line-height: 1.5; color: var(--muted-2); margin-top: 10px; }
.auth-card .switch { padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 15px; color: var(--muted-2); }
.auth-card .switch a { font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; align-self: flex-start; font-size: 15px; font-weight: 500; text-decoration: none; }
.back-link svg { width: 18px; height: 18px; }

/* ---------- Account ---------- */

.account-page { display: flex; flex-direction: column; gap: 56px; padding-block: 72px 120px; }
.account-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; }
.account-head > div { display: flex; flex-direction: column; gap: 16px; }
.account-head h1 { font-size: clamp(56px, 7.4vw, 112px); line-height: 0.9; letter-spacing: -0.05em; }
.account-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.orders { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.orders h2 { font-stretch: 120%; font-weight: 800; font-size: 32px; letter-spacing: -0.035em; }
.order-list { display: flex; flex-direction: column; gap: 16px; }
.order-card { background: var(--paper); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.order-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 13px; color: var(--muted-2); padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.order-card-head strong { color: var(--ink); font-weight: 500; }
.order-items { display: flex; flex-wrap: wrap; gap: 16px; }
.order-items li { display: flex; align-items: center; gap: 14px; padding-right: 16px; font-size: 16px; font-weight: 600; }
.order-items img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--ground); }
.note { flex: 1 1 340px; min-width: 0; background: var(--blue); color: #fff; border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.note .eyebrow { color: var(--blue-on-dark); }
.note p:nth-child(2) { font-size: 19px; line-height: 1.55; text-wrap: pretty; }
.note p:last-child { font-stretch: 115%; font-weight: 700; font-size: 17px; }

/* ---------- Admin ---------- */

.admin-page { display: flex; flex-direction: column; gap: 40px; padding-block: 56px 120px; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; }
.admin-head > div { display: flex; flex-direction: column; gap: 12px; }
.stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 12px; }
.stat { background: var(--paper); border-radius: var(--radius); padding: 18px 22px; display: flex; flex-direction: column-reverse; gap: 4px; }
.stat dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.stat dd { margin: 0; font-stretch: 120%; font-weight: 800; font-size: 36px; letter-spacing: -0.03em; }
.stat--blue dd { color: var(--blue); }

.panel { background: var(--paper); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line-soft); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; }
.table td { padding: 12px 8px; border-bottom: 1px solid var(--ground); vertical-align: middle; }
.table .right { text-align: right; }
.prod-cell { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.prod-cell img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--ground); }
.row-actions { display: flex; justify-content: flex-end; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--blue-soft); color: var(--blue); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--sold { background: #ECECEA; color: var(--muted); }
.pill--status-paid { background: #EEF2FB; color: var(--blue); }
.pill--status-shipped { background: #FFF4E5; color: #9A6700; }
.pill--status-delivered { background: #E8F6EE; color: #1F7A4D; }

.order-card-status {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 8px 12px; margin-top: -4px;
}
.status-form {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.select--sm { height: 40px; min-width: 120px; font-size: 14px; padding: 0 12px; }
.order-items--compact { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.order-items--compact li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.order-items--compact img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--ground); }
.table--orders { min-width: 860px; }

.dropzone {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    min-height: 160px; padding: 20px; border: 1.5px dashed #A9ABB0; border-radius: 18px;
    background: var(--field); text-align: center; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.dropzone:hover { border-color: var(--blue); background: #fff; }
.dropzone svg { width: 28px; height: 28px; color: var(--blue); }
.dropzone strong { font-size: 15px; color: var(--blue); }
.dropzone span { font-size: 13px; color: var(--muted-2); }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
    .reveal-2 { animation-delay: .08s; }
    .reveal-3 { animation-delay: .16s; }
    @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

/* ---------- Mobile header pieces (hidden on desktop) ---------- */

.header-mobile { display: none; align-items: center; gap: 4px; }
.icon-btn {
    position: relative;
    width: 44px; height: 44px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 999px; background: transparent;
    color: var(--ink); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--paper); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .count-badge { position: absolute; top: 2px; right: 0; }

.burger { flex-direction: column; gap: 6px; }
.burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 19;
    background: var(--ground);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.mobile-menu .container { display: flex; flex-direction: column; gap: 32px; padding-block: 16px 40px; min-height: 100%; }
.mobile-menu nav li { border-bottom: 1px solid var(--line); }
.mobile-menu nav a {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 18px 0;
    font-stretch: 125%; font-weight: 800; font-size: clamp(36px, 9vw, 56px);
    letter-spacing: -0.045em; line-height: 1;
    color: var(--ink); text-decoration: none;
}
.mobile-menu nav a .mono { font-size: 12px; font-weight: 400; letter-spacing: 0.08em; color: var(--muted-2); }
.mobile-menu nav a[aria-current="page"] { color: var(--blue); }
.mobile-menu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; }
.mobile-menu-foot .btn { flex: 1 1 140px; }
.mobile-menu-foot .account-chip { flex: 1 1 140px; background: var(--paper); height: 56px; }
html.menu-open { overflow: hidden; }

/* Purchase / checkout bar — phones only */
.action-bar { display: none; }

/* ==========================================================================
   Laptop / tablet landscape  (≤ 1100px)
   ========================================================================== */
@media (max-width: 1100px) {
    :root { --pad: 28px; }
    .nav ul { gap: 4px 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}

/* ==========================================================================
   Tablet  (≤ 900px)  — burger menu, two-column product, 3-up cards
   ========================================================================== */
@media (max-width: 900px) {
    .site-header .container.header-bar { min-height: 64px; padding-block: 10px; flex-wrap: nowrap; }
    .site-header .nav,
    .site-header .header-actions { display: none; }
    .header-mobile { display: flex; }
    .brand-mark { width: 28px; height: 28px; border-width: 6px; }

    .shop-bar { top: 65px; }

    .hero {
        grid-template-columns: 1.1fr 0.9fr;
        min-height: 0;
        padding-block: 48px 56px;
        gap: 24px;
    }
    .hero .display--xl { font-size: clamp(44px, 7.4vw, 72px); }
    .visual { min-height: 360px; }
    .visual::after { display: none; }


    .section { padding-block: 88px; }
    .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .model-card footer { padding: 14px 16px 16px; }
    .model-card h3 { font-size: 17px; }

    .story { grid-template-columns: 1fr; gap: 32px; }
    .process { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 16px; }
    .hero2 { grid-template-columns: 1fr; gap: 40px; padding-block: 32px 64px; }
    .hero2-media { aspect-ratio: 16 / 11; max-height: none; justify-self: stretch; }
    .colour-row { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; }
    .colour-row li { scroll-snap-align: start; }
    .auth2 { grid-template-columns: 1fr; min-height: 0; gap: 0; padding-block: 16px 64px; }
    .auth2-media { min-height: 0; height: 360px; border-radius: 28px; }
    .auth2-panel { padding: 40px 0 0; }
    .auth2-form { max-width: 560px; }
    .steps { gap: 14px; }
    .steps h3 { font-size: 20px; }
    .steps p { font-size: 15px; }
    .city { gap: 32px; padding-block: 80px; }
    .city .display--lg { font-size: clamp(40px, 6vw, 56px); }
    .swatch { width: 40px; height: 40px; }
    .swatch::after { width: 24px; height: 24px; }
    .story img { height: 420px; }
    .story-copy { max-width: none; }

    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 14px; }
    .product-card .meta { flex-direction: column; gap: 4px; }

    .product-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 32px;
        padding-block: 24px 88px;
    }
    .buybox { top: 88px; gap: 24px; }
    .buybox .display--md { font-size: 40px; }
    .thumb { width: 76px; height: 76px; }

    .cart-layout { flex-direction: column; align-items: stretch; }
    .summary { position: static; }

    .success-layout { grid-template-columns: 1fr; gap: 40px; }

    .mission { grid-template-columns: 1fr; gap: 40px; padding-block: 80px; }
    .flag { justify-self: start; }
    .cta { padding-block: 88px; }

    .auth { flex-direction: column; justify-content: center; gap: 8px; padding-block: 32px 88px; }
    .auth .visual { flex: none; width: 100%; min-height: 300px; }
    .auth .visual img { width: 320px; }
    .auth .visual::before { width: 300px; }
    .visual-caption { display: none; }
    .auth-card { width: 100%; max-width: 560px; }

    .account-layout { flex-direction: column; align-items: stretch; gap: 24px; }
    /* Column layout: kill flex-grow from desktop (.orders { flex: 999 }) or a huge gap opens */
    .account-layout .orders,
    .account-layout .note { flex: none; width: 100%; }

    .admin-head { flex-direction: column; align-items: stretch; }
}

/* ==========================================================================
   Admin table → stacked cards  (≤ 900px)
   ========================================================================== */
@media (max-width: 900px) {
    .table { min-width: 0; }
    .table thead { display: none; }
    .table, .table tbody { display: block; }
    .table tr {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas: "prod status" "price price" "actions actions";
        gap: 10px 12px;
        padding: 16px 0;
        border-bottom: 1px solid var(--line-soft);
    }
    .table td { display: block; padding: 0; border: 0; }
    .table td:nth-child(1) { grid-area: prod; }
    .table td:nth-child(2) { grid-area: price; padding-left: 70px; color: var(--muted-2); }
    .table td:nth-child(3) { grid-area: status; align-self: center; }
    .table td:nth-child(4) { grid-area: actions; }
    .row-actions { justify-content: flex-start; flex-wrap: wrap; }
    .row-actions .btn { flex: 1 1 auto; height: 44px; }
}

/* ==========================================================================
   Phone  (≤ 600px)
   ========================================================================== */
@media (max-width: 600px) {
    :root { --pad: 20px; }

    .brand-tag { display: none; }
    .brand-name { font-size: 18px; }

    .display--lg { font-size: clamp(40px, 12vw, 56px); }
    .display--md { font-size: clamp(32px, 9vw, 44px); }
    .lead { font-size: 17px; }
    .body { font-size: 16px; }
    .btn { height: 52px; padding: 0 22px; }
    .btn--lg { height: 56px; }

    /* Home */
    .hero { grid-template-columns: 1fr; padding-block: 28px 40px; gap: 8px; }
    .hero .display--xl { font-size: clamp(44px, 13.5vw, 64px); }
    .hero-copy { gap: 20px; }
    .hero .visual { min-height: 0; }
    .hero .visual img { width: 78%; }
    .visual::before { width: 86%; }
    .hero .btn-row .btn { flex: 1 1 140px; }

    .section { padding-block: 64px; }
    .section-head { margin-bottom: 24px; }
    .cards-3 {
        display: flex; gap: 12px;
        overflow-x: auto; scroll-snap-type: x mandatory;
        margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad);
        scrollbar-width: none;
    }
    .cards-3::-webkit-scrollbar { display: none; }
    .model-card { flex: 0 0 72%; scroll-snap-align: start; }
    .model-card:hover { transform: none; }
    .story { gap: 24px; }
    .story img { height: 300px; border-radius: var(--radius); }
    .hero-stage { order: -1; }
    .hero2 { gap: 28px; padding-block: 16px 48px; }
    .hero2-media { order: -1; aspect-ratio: 4 / 4.2; border-radius: 24px; }
    .hero2-title { font-size: clamp(44px, 13vw, 60px); }
    .hero2-copy { gap: 20px; }
    .hero2-copy .btn { flex: 1 1 140px; }
    .trust { grid-template-columns: 1fr; gap: 12px; padding-top: 20px; }
    .glass-chip { top: 14px; left: 14px; padding: 8px 12px; font-size: 13px; }
    .glass-card { display: none; }
    .glass-card-title { font-size: 18px; }
    .glass-card-cta { grid-column: 1 / -1; }
    .colour-row { grid-template-columns: repeat(5, 46%); }
    .auth2-media { height: 240px; border-radius: 22px; }
    .auth2-caption { left: 20px; right: 20px; bottom: 20px; gap: 10px; }
    .auth2-quote { font-size: 28px; }
    .perks { gap: 6px; }
    .perks li { padding: 8px 12px; font-size: 14px; border-radius: 12px; }
    .perks li:nth-child(n+3) { display: none; }
    .auth2-panel { padding-top: 28px; }
    .auth2-head h1 { font-size: 40px; }
    .auth2-form { gap: 22px; }
    .hero-stage .visual { min-height: 0; }
    .swatch-row { gap: 4px; }
    .process { grid-template-columns: 1fr; grid-template-areas: "head" "wide" "steps"; gap: 24px; }
    .process-photo--tall { display: none; }
    .process-photo--wide { border-radius: var(--radius); }
    .steps { grid-template-columns: 1fr; gap: 0; }
    .steps li { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; padding: 18px 0; border-top: 1px solid var(--line); }
    .steps li:first-child { border-top: 1.5px solid var(--ink); }
    .steps h3 { font-size: 20px; flex: 1; }
    .steps p { flex-basis: 100%; padding-left: 34px; }
    .city { grid-template-columns: 1fr; padding-block: 56px 64px; gap: 32px; }
    .city-photo { order: -1; aspect-ratio: 4 / 3; transform: none; border-radius: var(--radius); }
    .city-copy .btn { flex: 1 1 140px; }
    .story-copy { gap: 18px; }

    /* Newsletter */
    .newsletter .container { padding-block: 56px; gap: 24px; }
    .pill-input { flex-direction: column; background: transparent; padding: 0; gap: 10px; }
    .pill-input input { flex: none; background: #fff; height: 56px; }
    .pill-input .btn { height: 56px; width: 100%; }
    .newsletter-success { border-radius: var(--radius); font-size: 17px; }

    /* Footer */
    .site-footer .container { padding-block: 56px 28px; gap: 40px; }
    .footer-about p:last-child { font-size: 17px; }
    .footer-wordmark {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        font-size: clamp(52px, 18vw, 84px);
        font-stretch: 115%;
        letter-spacing: -0.045em;
        line-height: 0.88;
    }
    .footer-bottom { flex-direction: column; gap: 6px; }

    /* Page heads */
    .page-head { padding-block: 40px 28px; gap: 16px; }

    /* Shop */
    .shop-bar form { gap: 8px; padding-block: 10px; }
    .shop-bar .search { flex: 1 1 100%; height: 48px; }
    .shop-bar label.eyebrow { display: none; }
    .shop-bar .select { flex: 1 1 0; height: 44px; min-width: 0; }
    .shop-bar .btn { height: 44px; padding: 0 18px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
    .tile { border-radius: 14px; }
    .product-card h3 { font-size: 15px; }
    .product-card .price { font-size: 13px; }
    .sold-badge { top: 8px; left: 8px; padding: 4px 8px; font-size: 10px; }
    .empty { padding: 64px 20px; }
    .empty p { font-size: 22px; }

    /* Product */
    .breadcrumb ol { padding-top: 16px; }
    .product-layout { grid-template-columns: 1fr; gap: 24px; padding-block: 16px 64px; }
    .gallery-main { border-radius: var(--radius); }
    .thumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .thumb { width: 68px; height: 68px; flex: none; border-radius: 12px; }
    .buybox { position: static; }
    .buybox .display--md { font-size: clamp(34px, 10vw, 44px); }
    .buybox .actions [data-add-to-cart],
    .buybox .actions [data-view-cart] { display: none; }
    .specs div { flex-direction: column; gap: 4px; }
    .specs dd { text-align: left; }

    /* Phone action bar */
    .action-bar {
        display: flex; align-items: center; gap: 12px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
        padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--line);
    }
    .action-bar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
    .action-bar-info .eyebrow { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
    .action-bar-info strong { font-family: var(--mono); font-weight: 500; font-size: 18px; }
    .action-bar .btn { height: 52px; flex: none; }
    .action-bar .btn[hidden] { display: none; }
    body:has(.action-bar) .site-footer { padding-bottom: 80px; }

    /* Cart */
    .cart-page { gap: 24px; padding-block: 32px 64px; }
    .cart-item {
        display: grid;
        grid-template-columns: 84px 1fr;
        grid-template-areas: "img info" "img price" "img remove";
        gap: 4px 16px;
        padding: 16px 0;
    }
    .cart-item .thumb-lg { grid-area: img; width: 84px; height: 84px; border-radius: 14px; }
    .cart-item .info { grid-area: info; gap: 4px; }
    .cart-item h2 { font-size: 17px; }
    .cart-item .eyebrow { font-size: 10px; }
    .cart-item .price { grid-area: price; font-size: 15px; }
    .cart-item [data-remove] {
        grid-area: remove; justify-self: start;
        height: 32px; padding: 0; border: 0; font-size: 14px;
        color: var(--muted-2); text-decoration: underline; text-underline-offset: 3px;
    }
    .summary { display: none; }

    /* Checkout success */
    .success-layout { padding-block: 40px 72px; }
    .check-circle { width: 56px; height: 56px; }
    .check-circle svg { width: 26px; height: 26px; }
    .success-copy .display--xl { font-size: 56px; }
    .success-copy .btn { flex: 1 1 140px; }
    .receipt { padding: 22px; }
    .receipt li img { width: 52px; height: 52px; }
    .receipt li span { font-size: 15px; }

    /* About */
    .about-head { padding-block: 48px 40px; gap: 20px; }
    .about-head h1 { font-size: clamp(44px, 13vw, 64px); }
    .numbered li { gap: 14px; padding: 24px 0; }
    .numbered p { font-size: 16px; }
    .mission { padding-block: 64px; }
    .checklist li { font-size: 16px; }
    .cta { padding-block: 64px; gap: 24px; }
    .cta h2 { font-size: clamp(36px, 10vw, 48px); }
    .cta .btn-row .btn { flex: 1 1 140px; }

    /* Contact */
    .methods { padding-bottom: 56px; gap: 10px; }
    .method { padding: 22px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 14px; border-radius: var(--radius); }
    .method svg { width: 24px; height: 24px; }
    .method h2 { font-size: 19px; }
    .method p, .method .mono { flex-basis: 100%; }
    .split { padding-block: 56px; gap: 28px; }
    .faq summary { font-size: 17px; min-height: 64px; }
    .faq details p { font-size: 16px; }
    .form-grid .btn { width: 100%; }

    /* Auth */
    .auth { padding-block: 16px 56px; }
    .auth .visual { min-height: 0; height: 200px; overflow: hidden; }
    .auth .visual img { width: 200px; }
    .auth .visual::before { width: 190px; }
    .auth-card { padding: 28px 22px; gap: 22px; border-radius: var(--radius); }
    .auth-card h1 { font-size: 38px; }
    .auth-card h1[style] { font-size: 34px !important; }
    .field-row { flex-direction: column; gap: 4px; }

    /* Account */
    .account-page { gap: 28px; padding-block: 32px 56px; }
    .account-head { gap: 16px; }
    .account-head h1 { font-size: clamp(36px, 10vw, 48px); }
    .account-head .btn { width: 100%; }
    .orders { gap: 14px; }
    .orders h2 { font-size: 24px; }
    .order-card { padding: 18px; border-radius: var(--radius); }
    .order-card { padding: 18px; border-radius: var(--radius); }
    .order-items { flex-direction: column; gap: 10px; }
    .order-items img { width: 56px; height: 56px; }
    .note { padding: 24px; border-radius: var(--radius); }
    .note p:nth-child(2) { font-size: 17px; }

    /* Admin */
    .admin-page { gap: 24px; padding-block: 32px 72px; }
    .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .stat { padding: 14px; border-radius: 16px; }
    .stat dd { font-size: 28px; }
    .stat dt { font-size: 10px; }
    .panel { padding: 20px 16px; border-radius: var(--radius); }
    #create.panel { padding: 22px 16px !important; }
    .dropzone { min-height: 128px; }
    .form-grid [data-form-submit] { width: 100%; }
}

/* ---------- PHP app glue (toasts, legacy alerts, sticky shell) ---------- */

html, body { min-height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; margin-top: auto; }

.alert_success, .alert_failure { display: none; }

.toast-container {
    position: fixed; top: 1.2rem; right: 1.2rem; z-index: 1000;
    display: flex; flex-direction: column; gap: 0.8rem; max-width: 28rem;
}
.toast {
    padding: 1rem 1.2rem; border-radius: 14px; font-size: 15px; font-weight: 600;
    box-shadow: 0 12px 28px rgba(18,19,22,0.14); animation: rise .3s ease-out;
}
.toast-success { background: var(--blue-soft); color: var(--blue); }
.toast-error { background: var(--danger-bg); color: var(--danger-fg); }
.toast.toast-hide { opacity: 0; transition: opacity .3s; }

button.is-loading { opacity: 0.7; cursor: not-allowed; position: relative; color: transparent !important; }
button.is-loading::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: 1.4rem; height: 1.4rem; margin: -0.7rem 0 0 -0.7rem;
    border: 0.2rem solid rgba(255,255,255,0.45); border-top-color: #fff;
    border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.page-head--flush { padding: 0; }
.dropzone.is-active { border-color: var(--blue); background: #fff; }
.edit-preview {
    display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px;
    padding-bottom: 24px; margin-bottom: 8px; border-bottom: 1px solid var(--line-soft);
}
.edit-preview img {
    width: 120px; height: 120px; object-fit: cover; border-radius: 18px;
    background: var(--ground); border: 1px solid var(--line);
}
.edit-preview .price-lg { font-family: var(--mono); font-size: 24px; margin-top: 6px; }
.gallery-main .sold-badge { position: absolute; }

/* ---------- Confirm modal (admin delete) ---------- */

html.confirm-open { overflow: hidden; }
.confirm-modal {
    position: fixed; inset: 0; z-index: 1200;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.confirm-modal[hidden] { display: none !important; }
.confirm-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(18, 19, 22, 0.48);
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
}
.confirm-modal__card {
    position: relative; z-index: 1;
    width: min(100%, 420px);
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 28px 28px 24px;
    display: flex; flex-direction: column; gap: 14px;
    box-shadow: 0 28px 60px -24px rgba(18, 19, 22, 0.45);
}
.confirm-modal__title {
    margin: 0;
    font-stretch: 115%; font-weight: 800;
    font-size: 26px; letter-spacing: -0.03em; line-height: 1.15;
}
.confirm-modal__body {
    margin: 0;
    font-size: 16px; line-height: 1.5; color: var(--muted);
}
.confirm-modal__actions {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end;
    padding-top: 10px;
}
.confirm-modal__actions .btn { min-width: 110px; height: 48px; }

.panel-head .btn-row { gap: 8px; }

/* ---------- UI pack: chips, gallery swipe, timeline, kanban, motion ---------- */

.shop-chips { padding-block: 8px 4px; border-bottom: 1px solid var(--line-soft); background: var(--ground); position: sticky; top: 76px; z-index: 15; }
.shop-chips .container { display: flex; flex-direction: column; gap: 12px; padding-block: 12px; }
.chip-row {
    display: flex; flex-wrap: nowrap; align-items: center; gap: 8px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip-row .eyebrow { flex: none; margin-right: 4px; }
.chip {
    flex: none; display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 16px; border-radius: 999px;
    border: 1.5px solid var(--line); background: var(--paper);
    color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600;
    transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip--swatch i {
    width: 12px; height: 12px; border-radius: 50%; background: var(--c);
    box-shadow: inset 0 0 0 1px rgba(18,19,22,.18);
}
.chip--swatch.is-active i { box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }

.gallery-stage {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid #DADAD8; background: var(--ground);
}
.gallery-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { margin: 0; flex: 0 0 100%; scroll-snap-align: start; }
.gallery-slide img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.86); color: var(--ink); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px -16px rgba(18,19,22,.5); z-index: 2;
}
.gallery-nav svg { width: 20px; height: 20px; }
.gallery-nav--prev { left: 14px; }
.gallery-nav--next { right: 14px; }
.gallery-nav:hover { background: #fff; }
.gallery-stage .sold-badge { position: absolute; top: 14px; left: 14px; z-index: 3; }

.tile .skeleton-shine {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, #E4E4E2 0%, #F4F4F2 45%, #E4E4E2 100%);
    background-size: 200% 100%;
    transition: opacity .35s ease;
}
.tile.is-loaded .skeleton-shine { opacity: 0; }
.tile img[data-skeleton-img] { opacity: 0; transition: opacity .35s ease; }
.tile.is-loaded img[data-skeleton-img] { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
    .tile .skeleton-shine { animation: skeleton 1.2s linear infinite; }
    @keyframes skeleton { to { background-position: -200% 0; } }
}

.status-timeline {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px; margin: 4px 0 8px; padding: 0; list-style: none;
}
.status-timeline__step {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    position: relative; text-align: center;
}
.status-timeline__step:not(:last-child)::after {
    content: ""; position: absolute; top: 7px; left: calc(50% + 10px); right: calc(-50% + 10px);
    height: 2px; background: var(--line);
}
.status-timeline__step.is-done:not(:last-child)::after,
.status-timeline__step.is-current:not(:last-child)::after { background: var(--blue); }
.status-timeline__dot {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--paper); border: 2px solid var(--line); z-index: 1;
}
.status-timeline__step.is-done .status-timeline__dot,
.status-timeline__step.is-current .status-timeline__dot {
    background: var(--blue); border-color: var(--blue);
}
.status-timeline__step.is-current .status-timeline__dot {
    box-shadow: 0 0 0 4px rgba(11, 63, 168, 0.18);
}
.status-timeline__label {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--muted-2);
}
.status-timeline__step.is-done .status-timeline__label,
.status-timeline__step.is-current .status-timeline__label { color: var(--ink); font-weight: 500; }

.kanban {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px; align-items: start;
}
.kanban-col {
    background: var(--paper); border-radius: var(--radius-lg); padding: 16px;
    display: flex; flex-direction: column; gap: 12px; min-height: 240px;
}
.kanban-col__head {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.kanban-col__head h2 { margin: 0; font-size: 0; }
.kanban-col__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.kanban-empty {
    padding: 28px 12px; text-align: center; color: var(--muted-2);
    font-size: 14px; border: 1.5px dashed var(--line); border-radius: var(--radius);
}
.kanban-card {
    display: flex; flex-direction: column; gap: 10px;
    padding: 14px; border-radius: 16px; background: var(--ground);
    border: 1px solid var(--line-soft);
}
.kanban-card__top { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.kanban-card__customer { margin: 0; font-weight: 600; }
.kanban-card__date { margin: 0; font-size: 11px; color: var(--muted-2); }

.order-address {
    margin: 4px 0 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--paper);
    border: 1px solid var(--line-soft);
}
.order-address .eyebrow { margin: 0 0 6px; }
.order-address p:last-child {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-line;
}
.kanban-card .order-address {
    background: var(--paper);
    padding: 10px 12px;
}
.kanban-card .order-address p:last-child { font-size: 13px; }
.order-address--receipt {
    margin-top: 16px;
    background: var(--ground);
}

.cart-fly {
    position: fixed; z-index: 1300; pointer-events: none; border-radius: 18px;
    object-fit: cover; box-shadow: 0 18px 40px -18px rgba(18,19,22,.5);
    transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .7s ease;
}
.count-badge.is-pop { animation: badge-pop .45s ease; }
@keyframes badge-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

@media (max-width: 900px) {
    .shop-chips { top: 64px; }
    .kanban { grid-template-columns: 1fr; }
    .kanban-col { min-height: 0; }
}

@media (max-width: 600px) {
    .gallery-nav { width: 38px; height: 38px; }
    .status-timeline__label { font-size: 10px; }
    .empty--photo { min-height: 260px; border-radius: var(--radius); }
}
