/* ==========================================================================
   Drift Shift — design system
   Warm sand paper, ink, terracotta. Editorial serif + clean sans.
   Signature motif: arch-shaped imagery.
   ========================================================================== */
[hidden] { display: none !important; } /* the hidden attribute always wins over component display rules */
:root {
    /* Kitenge palette: coral, teal, sunflower on warm cream, with deep plum as "ink" */
    --ink: #22133a;
    --ink-soft: #45365e;
    --muted: #6e627b;
    --paper: #ffffff;       /* page background (was cream #fffaf4) */
    --sand: #fff0e3;
    --sand-2: #ffe1cc;
    --line: #f2dfcf;
    --white: #ffffff;
    --terra: #ff5a36;
    --terra-dark: #a92d16;   /* small coral text and hover fills — 5.6:1+ on paper */
    --terra-soft: #ffe4da;
    --terra-fill: #c93a1a;   /* coral fills behind white text (buttons, active tabs) — 5.1:1 */
    --indigo: #0b7476;
    --ochre: #ffb627;
    --magenta: #e2336b;
    --moss: #51684a;
    --ok: #178a5b;
    --danger: #d12b2b;
    --on-accent: #ffffff;   /* text on coloured fills (buttons, active tabs) — same in both themes */
    --on-dark: #fffaf4;     /* text on the plum sidebar / dark fills */
    --solid: var(--ink);    /* solid dark fills (button hover, toasts) */
    --grad-sunset: linear-gradient(135deg, #ff5a36 0%, #ff8a2b 55%, #ffb627 100%);
    --grad-lagoon: linear-gradient(145deg, #0b6f73 0%, #0e8a8c 45%, #19b3a6 100%);
    --grad-dusk: linear-gradient(145deg, #22133a 0%, #4a1c5c 60%, #7a2360 100%);

    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --r-sm: 8px;
    --r: 14px;
    --r-lg: 24px;
    --pill: 999px;
    --shadow-pop: 0 18px 40px rgba(29, 27, 24, .12);
    --header-h: 76px;

}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font: 15px/1.55 var(--sans);
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 20px; }
h2 { font-size: 22px; }
p { margin: 0 0 12px; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.page { padding-top: 24px; padding-bottom: 64px; min-height: 60vh; overflow-x: clip; }
.page > h1:first-child { margin-top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { text-align: right; }
.hidden { display: none !important; }
.ico { width: 20px; height: 20px; flex: none; }
.ico-fill path { fill: currentColor; }
.serif { font-family: var(--serif); }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--terra-dark); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 24px; height: 1.5px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--terra-fill); color: var(--on-accent); border: 1.5px solid var(--terra-fill); border-radius: var(--pill);
    box-shadow: 0 6px 16px -6px rgba(255, 90, 54, .55);
    padding: 13px 26px; font: 600 14px/1.2 var(--sans); letter-spacing: .01em;
    cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--solid); border-color: var(--ink); box-shadow: 0 6px 16px -6px rgba(34, 19, 58, .5); }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 18px; height: 18px; }
.btn-block { display: flex; width: 100%; }
.btn-terra { background: var(--terra-fill); border-color: var(--terra-fill); }
.btn-terra:hover { background: #a92d16; border-color: #a92d16; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn-outline:hover { background: var(--solid); color: var(--on-dark); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--sand); border-color: var(--sand-2); color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: none; }
.btn-light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-danger { background: var(--danger); border-color: var(--danger); box-shadow: none; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--terra-dark); cursor: pointer; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link-btn:hover { color: var(--terra-dark); }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.arrow-link .ico { width: 16px; height: 16px; transition: transform .2s; }
.arrow-link:hover .ico { transform: translateX(3px); }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=search], input[type=url], input[type=date], select, textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
    font: inherit; font-size: 15px; background: var(--white); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(29, 27, 24, .08); }
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; background-image: 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' stroke='%2322133a' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.error-text { color: var(--danger); font-size: 12.5px; margin-top: 5px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 14px; }
.check input { width: 17px; height: 17px; accent-color: var(--ink); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }

.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--ink); }
.alert-success { border-left-color: var(--ok); }
.alert-error { border-left-color: var(--danger); }
.alert-info { border-left-color: var(--ochre); }
.alert ul { margin: 4px 0 0; padding-left: 18px; }

.box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 20px; }
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -22px -22px 18px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.box-head h2 { font-size: 21px; }

/* ---------- Announcement marquee ---------- */
.announce { background: var(--grad-dusk); color: #ffe9d6; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; overflow: hidden; white-space: nowrap; }
.announce-track { display: inline-flex; gap: 28px; padding: 9px 0; animation: marquee 38s linear infinite; }
.announce-track span { display: inline-flex; align-items: center; gap: 28px; }
.announce-track span::after { content: "◆"; color: var(--ochre); font-size: 8px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .announce-track { animation: none; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.nav-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); gap: 16px; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a { padding: 8px 12px; font-size: 14.5px; font-weight: 500; border-radius: var(--pill); transition: background .15s; }
.main-nav a:hover { background: var(--sand); }
.main-nav a.sale { color: var(--terra-dark); }
.main-nav .drawer-close { display: none; }
.brand { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-word { font: italic 700 38px/0.95 var(--serif); letter-spacing: -.005em; white-space: nowrap; }
.brand-word i { color: var(--terra); font-style: normal; }
.brand-sub { font: 600 9.5px/1 var(--sans); letter-spacing: .46em; text-transform: uppercase; color: var(--muted); margin-top: 6px; padding-left: .46em; }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; min-width: 42px; padding: 0 10px; border-radius: var(--pill); background: none; border: 0; color: var(--ink); cursor: pointer; font: 500 14px var(--sans); transition: background .15s; }
.icon-btn:hover { background: var(--sand); }
.icon-btn .ico { width: 21px; height: 21px; }
.bag-count { position: absolute; top: 4px; right: 2px; background: var(--terra-fill); color: var(--on-accent); font: 700 10.5px/1 var(--sans); min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid var(--paper); }
.menu-toggle { display: none; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: var(--white); min-width: 220px; border: 1px solid var(--line); box-shadow: var(--shadow-pop); border-radius: var(--r); padding: 8px; z-index: 60; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; background: none; border: 0; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }
.dropdown a:hover, .dropdown button:hover { background: var(--sand); }
.dropdown .dropdown-hello { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-family: var(--serif); font-size: 18px; }
.dropdown a.btn { display: flex; background: var(--terra-fill); color: var(--on-accent); border-radius: var(--pill); text-align: center; justify-content: center; padding: 11px 14px; margin: 4px 0 6px; font-weight: 600; }
.dropdown a.btn:hover { background: var(--solid); color: var(--on-accent); }
.search-panel { display: none; border-top: 1px solid var(--line); padding: 26px 0 28px; }
.search-panel.open { display: block; }
.search-form { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.search-form .ico { width: 26px; height: 26px; color: var(--muted); }
.search-form input { border: 0; background: none; padding: 6px 0; font: 400 clamp(22px, 3vw, 30px) var(--serif); box-shadow: none; }
.search-form input:focus { box-shadow: none; }
.search-suggest { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; align-items: center; font-size: 13px; }
.search-suggest a { padding: 6px 14px; border-radius: var(--pill); background: var(--sand); font-weight: 500; }
.search-suggest a:hover { background: var(--sand-2); }

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 24px 0 36px; }
.hero h1 { font-size: clamp(38px, 4.8vw, 64px); line-height: 1; letter-spacing: -.03em; margin-bottom: 16px; }
.hero h1 em { font-style: italic; color: var(--terra); background: linear-gradient(transparent 68%, rgba(255, 182, 39, .5) 68%, rgba(255, 182, 39, .5) 90%, transparent 90%); padding: 0 .06em; }
.hero-lede { font-size: 17px; color: var(--ink-soft); max-width: 440px; margin-bottom: 22px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-actions .arrow-link { margin-left: 10px; }
.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; position: relative; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--grad-sunset); opacity: .28; top: -10%; right: -8%; z-index: -1; filter: blur(2px); }
.hero-art::after { content: ""; position: absolute; width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--grad-lagoon); opacity: .22; bottom: -6%; left: -8%; z-index: -1; }
.arch { position: relative; display: block; border-radius: var(--pill) var(--pill) var(--r) var(--r); overflow: hidden; background: var(--sand); }
.arch img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.arch:hover img { transform: scale(1.04); }
.hero-art .arch { aspect-ratio: 3 / 4.6; }
.hero-art .arch:nth-child(2) { aspect-ratio: 3 / 5.4; }
.hero-art .arch:nth-child(3) { aspect-ratio: 3 / 4; }
.arch-caption { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(250, 246, 240, .94); border-radius: 10px; padding: 8px 10px; font-size: 12px; line-height: 1.3; }
.arch-caption b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 72px; }
.value { display: flex; gap: 14px; align-items: center; padding: 20px 18px; font-size: 13.5px; color: var(--muted); }
.value + .value { border-left: 1px solid var(--line); }
.value .ico { width: 44px; height: 44px; padding: 10px; border-radius: 50%; color: var(--terra); background: var(--terra-soft); }
.value:nth-child(2) .ico { color: var(--indigo); background: #d9f3f1; }
.value:nth-child(3) .ico { color: #c77d00; background: #fff1cf; }
.value:nth-child(4) .ico { color: var(--magenta); background: #fde0ea; }
.value b { display: block; color: var(--ink); font-weight: 600; font-size: 14.5px; }

.block { margin-bottom: 60px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(28px, 3.3vw, 42px); letter-spacing: -.02em; }
.sec-head h2 em { font-style: italic; color: var(--terra); }
.sec-head .eyebrow { margin-bottom: 10px; }
.sec-tools { display: flex; align-items: center; gap: 16px; }
.countdown { display: inline-flex; align-items: center; gap: 8px; background: var(--terra-soft); color: var(--terra-dark); border-radius: var(--pill); padding: 7px 14px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

.arches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 18px; }
.arch-link { text-align: center; }
.arch-link .arch { aspect-ratio: 3 / 4; }
.arch-link span { display: block; font: 500 18px var(--serif); margin-top: 12px; }
.arch-link:hover span { color: var(--terra); }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

.edits { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.edit { position: relative; min-height: 440px; border-radius: var(--r-lg); overflow: hidden; color: var(--on-dark); padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.edit-img { position: absolute; top: 40px; right: 26px; height: calc(100% - 240px); min-height: 150px; aspect-ratio: 3 / 4; border-radius: var(--pill) var(--pill) var(--r) var(--r); overflow: hidden; z-index: -1; transition: transform .5s ease; }
.edit-img img { width: 100%; height: 100%; object-fit: cover; }
.edit:hover .edit-img { transform: translateY(-6px) rotate(-1.5deg); }
.edit h3 { font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -.02em; margin-bottom: 8px; }
.edit h3 em { font-style: italic; }
.edit p { font-size: 14.5px; opacity: .88; max-width: 260px; margin-bottom: 18px; }
.edit .arrow-link { align-self: flex-start; }
.edit-terra { background: var(--grad-sunset); }
.edit-indigo { background: var(--grad-lagoon); }
.edit-ink { background: var(--grad-dusk); }

.labels { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 30px; padding: 40px 24px; background: linear-gradient(120deg, #fff0e3 0%, #ffe6ef 50%, #e3f6f3 100%); border-radius: var(--r-lg); }
.labels a { font: italic 500 clamp(20px, 2.2vw, 28px) var(--serif); color: var(--ink-soft); transition: color .15s; }
.labels a:hover { color: var(--terra); }
.labels .sep { color: var(--ochre); font-size: 10px; }

/* ---------- Product cards ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 22px; }
.pcard { position: relative; min-width: 0; }
.pcard-media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--sand); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pcard:hover .pcard-media img { transform: scale(1.045); }
.tag { position: absolute; top: 12px; left: 12px; background: var(--paper); color: var(--ink); font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; border-radius: var(--pill); padding: 6px 10px; }
.tag-sale { background: var(--grad-sunset); color: var(--on-accent); }
.tag-new { background: var(--indigo); color: var(--on-accent); }
.tag-out { background: var(--muted); color: var(--on-accent); }
.pcard-visual { position: relative; }
.quick-add { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; background: rgba(255, 255, 255, .97); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 12px; padding: 10px; box-shadow: 0 10px 24px -8px rgba(34, 19, 58, .35); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s; }
.pcard:hover .quick-add, .pcard:focus-within .quick-add, .pcard.qa-open .quick-add { opacity: 1; transform: none; pointer-events: auto; }
.qa-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.qa-label > span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--terra-dark); text-transform: uppercase; letter-spacing: .06em; }
.qa-label .muted { font-weight: 500; }
.qa-label .ico, .qa-single .ico { width: 16px; height: 16px; }
.qa-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.qa-sizes button { min-width: 40px; flex: 1 0 auto; padding: 8px 6px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); font: 700 12.5px var(--sans); color: var(--ink); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.qa-sizes button:hover:not(:disabled), .qa-sizes button:focus-visible { background: var(--terra-fill); border-color: var(--terra-fill); color: var(--on-accent); }
.qa-sizes button:disabled { color: #bfb5a8; text-decoration: line-through; cursor: not-allowed; background: var(--sand); border-color: var(--sand); }
.qa-single { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; padding: 11px; border: 0; border-radius: 10px; background: var(--terra-fill); color: var(--on-accent); font: 700 13.5px var(--sans); cursor: pointer; }
.qa-single:hover { background: var(--solid); }
.quick-add button.added { background: var(--ok) !important; border-color: var(--ok) !important; color: var(--on-accent) !important; }
.quick-add button.busy { opacity: .6; cursor: progress; }
.qa-toggle { display: none; position: absolute; right: 10px; bottom: 10px; z-index: 4; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--terra-fill); color: var(--on-accent); cursor: pointer; align-items: center; justify-content: center; box-shadow: 0 6px 14px -4px rgba(255, 90, 54, .6); }
.qa-toggle .ico { width: 19px; height: 19px; }
.qa-toggle span { position: absolute; top: 5px; right: 6px; font: 800 12px/1 var(--sans); }
.pcard.qa-open .qa-toggle { background: var(--solid); }
@media (hover: none) {
    .qa-toggle { display: flex; }
    .pcard:hover .quick-add, .pcard:focus-within .quick-add { opacity: 0; transform: translateY(10px); pointer-events: none; }
    .pcard.qa-open .quick-add { opacity: 1; transform: none; pointer-events: auto; bottom: 60px; }
}
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); background: var(--solid); color: var(--on-accent); padding: 12px 14px 12px 18px; border-radius: 14px; box-shadow: 0 14px 34px rgba(34, 19, 58, .35); font-size: 14px; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }
.toast a { flex: none; background: var(--terra-fill); color: var(--on-accent); padding: 7px 14px; border-radius: var(--pill); font-weight: 700; font-size: 13px; }
.bag-count.bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.pcard-sizes { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(250, 246, 240, .95); border-radius: 10px; padding: 9px 12px; font-size: 12.5px; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.pcard-sizes b { font-weight: 600; margin-right: 4px; }
.pcard:hover .pcard-sizes, .pcard:focus-within .pcard-sizes { opacity: 1; transform: none; }
.wish-form { position: absolute; top: 10px; right: 10px; z-index: 2; }
.wish-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(250, 246, 240, .92); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s, color .15s; }
.wish-btn:hover { transform: scale(1.08); color: var(--terra); }
.wish-btn.on { color: var(--terra); }
.wish-btn .ico { width: 19px; height: 19px; }
.pcard-body { padding-top: 14px; }
.pcard-brand { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pcard-title { font: 500 15px/1.35 var(--sans); letter-spacing: 0; margin: 4px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-title a:hover { color: var(--terra); }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price-now { font-weight: 700; font-size: 15.5px; }
.price-now.sale { color: var(--terra-dark); }
.price-was { color: var(--muted); font-size: 13px; text-decoration: line-through; }
.pcard-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.pcard-meta .rate { color: var(--ink-soft); }
.pcard-meta .rate::before { content: "★ "; color: var(--ochre); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); vertical-align: -1px; }

.stars { position: relative; display: inline-block; font-size: 14px; line-height: 1; color: var(--sand-2); letter-spacing: 1px; }
.stars::before { content: "★★★★★"; }
.stars span { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--ochre); white-space: nowrap; }
.stars span::before { content: "★★★★★"; }
.rating { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

/* ---------- Shop ---------- */
.shop-hero { padding: 8px 0 22px; }
.shop-hero h1 { font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -.03em; margin: 6px 0 6px; }
.shop-hero h1 em { font-style: italic; color: var(--terra); }
.breadcrumb { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--terra); }
.breadcrumb .sep { opacity: .5; }
.filterbar { position: sticky; top: calc(var(--header-h) + 9px); z-index: 20; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--sand); border-radius: var(--pill); padding: 4px; }
.seg label { margin: 0; font-weight: 500; }
.seg input, .pill-check input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 15px; border-radius: var(--pill); font-size: 13.5px; cursor: pointer; transition: background .15s; white-space: nowrap; }
.seg input:checked + span { background: var(--terra-fill); color: var(--on-accent); box-shadow: 0 4px 10px -4px rgba(255, 90, 54, .6); }
.seg input:focus-visible + span, .pill-check input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 2px; }
.drop { position: relative; }
.drop summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: var(--pill); font-size: 13.5px; font-weight: 500; cursor: pointer; background: var(--white); white-space: nowrap; }
.drop summary::-webkit-details-marker { display: none; }
.drop summary .ico { width: 15px; height: 15px; transition: transform .2s; }
.drop[open] summary { border-color: var(--ink); }
.drop[open] summary .ico { transform: rotate(180deg); }
.drop summary.has-value { background: var(--solid); color: var(--on-accent); border-color: var(--ink); }
.drop-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-pop); padding: 14px; min-width: 250px; max-height: 380px; overflow-y: auto; }
.opt { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 8px; font-weight: 400; font-size: 14px; cursor: pointer; margin: 0; }
.opt:hover { background: var(--sand); }
.opt input { accent-color: var(--ink); width: 16px; height: 16px; }
.pill-check { margin: 0; }
.pill-check span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: var(--pill); font-size: 13.5px; font-weight: 500; cursor: pointer; background: var(--white); white-space: nowrap; }
.pill-check input:checked + span { background: var(--terra-fill); border-color: var(--terra-fill); color: var(--on-accent); }
.filterbar .sort { margin-left: auto; width: auto; border-radius: var(--pill); padding: 9px 38px 9px 16px; font-size: 13.5px; font-weight: 500; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { margin: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; min-width: 46px; text-align: center; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; background: var(--white); transition: border-color .15s; }
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { border-color: var(--terra-fill); background: var(--terra-fill); color: var(--on-accent); }
.chip input:disabled + span { color: #b5aca0; text-decoration: line-through; cursor: not-allowed; background: var(--sand); border-color: var(--sand); }
.chip input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 2px; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; font-size: 13px; }
.active-filters a { background: var(--sand); padding: 6px 12px; border-radius: var(--pill); font-weight: 500; }
.active-filters a:hover { background: var(--sand-2); }
.active-filters .clear { background: none; text-decoration: underline; text-underline-offset: 3px; }
.result-count { font-size: 14px; color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: 6px; padding: 44px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 600; font-size: 14px; }
.pagination a:hover { background: var(--sand); }
.pagination .current { background: var(--terra-fill); color: var(--on-accent); }
.empty-state { text-align: center; padding: 64px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.empty-state h1, .empty-state h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 10px; }
.empty-state h1 em, .empty-state h2 em { font-style: italic; color: var(--terra); }
.empty-state p { color: var(--muted); max-width: 420px; margin: 0 auto 22px; }
.empty-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--terra-soft); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--terra); }
.empty-icon .ico { width: 28px; height: 28px; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; margin-top: 16px; margin-bottom: 80px; }
.pdp-media { position: relative; }
.pdp-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); background: var(--sand); }
.pdp-media .tag { top: 18px; left: 18px; font-size: 12px; padding: 7px 12px; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp-thumb { width: 76px; aspect-ratio: 4 / 5; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--sand); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.on, .pdp-thumb:hover { border-color: var(--terra); }
.pdp-info { position: sticky; top: calc(var(--header-h) + 30px); }
.pdp-brand { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pdp-brand:hover { color: var(--terra); }
.pdp-info h1 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.04; letter-spacing: -.025em; margin: 10px 0 12px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 18px 0 4px; }
.pdp-price .price-now { font-size: 28px; font-family: var(--serif); font-weight: 600; }
.pdp-price .price-was { font-size: 17px; }
.save-pill { background: #fff1cf; color: #9a5b00 !important; color: var(--terra-dark); border-radius: var(--pill); padding: 5px 12px; font-size: 12.5px; font-weight: 700; }
.stock-note { font-size: 13px; color: var(--muted); }
.stock-note.low { color: var(--terra-dark); font-weight: 600; }
.opt-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 26px 0 12px; }
.opt-head a { text-transform: none; letter-spacing: 0; font-size: 13px; }
.opt-head .val { font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 14px; color: var(--ink-soft); margin-left: 6px; }
.pdp .size-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); }
.pdp .chip span { display: block; padding: 13px 0; font-size: 14px; }
.buy-row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; margin-top: 24px; }
.buy-row select { border-radius: var(--pill); }
.buy-row .btn { padding: 15px 20px; font-size: 15px; }
.save-row { margin-top: 10px; }
.assure { margin-top: 28px; border-top: 1px solid var(--line); }
.assure div { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.assure .ico { color: var(--terra); width: 22px; height: 22px; margin-top: 1px; }
.assure b { color: var(--ink); font-weight: 600; }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font: 500 22px var(--serif); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font: 300 26px var(--sans); color: var(--terra); }
.acc[open] summary::after { content: "−"; }
.acc-body { padding: 0 0 24px; }
.pdp-more { max-width: 880px; margin: 0 auto 80px; }
.pdp-more > .acc:first-child { border-top: 1px solid var(--line); }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th { text-align: left; width: 170px; color: var(--muted); font-weight: 500; padding: 8px 0; vertical-align: top; }
.specs td { padding: 8px 0; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 4px; }
.size-table th, .size-table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: center; }
.size-table th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.size-table tr:nth-child(even) td { background: rgba(241, 233, 221, .45); }
.reviews { display: grid; grid-template-columns: 260px 1fr; gap: 48px; }
.rating-big { font: 500 64px/1 var(--serif); letter-spacing: -.03em; }
.bars { margin-top: 18px; }
.bar { display: grid; grid-template-columns: 26px 1fr 24px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.bar-track { height: 6px; background: var(--sand); border-radius: var(--pill); overflow: hidden; }
.bar-track span { display: block; height: 100%; background: var(--grad-sunset); border-radius: var(--pill); }
.review { border-bottom: 1px solid var(--line); padding: 18px 0; }
.review:first-child { padding-top: 0; }
.review p { margin: 8px 0; }
.review-meta { font-size: 12.5px; color: var(--muted); }
.verified { color: var(--ok); font-weight: 600; }
.review-form { margin-top: 26px; padding: 22px; background: linear-gradient(135deg, #fff0e3, #ffe6ef); border-radius: var(--r); }
.review-form h3 { font-size: 22px; margin-bottom: 12px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; margin-bottom: 12px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 30px; color: var(--sand-2); cursor: pointer; margin: 0; font-weight: 400; line-height: 1; }
.review-form .star-input label { color: #d9ccb8; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--ochre) !important; }
.star-input input:focus-visible + label { outline: 2px solid var(--terra); }

/* ---------- Bag & checkout ---------- */
.two-col { display: grid; grid-template-columns: 1fr 390px; gap: 32px; align-items: start; }
.two-col > aside { position: sticky; top: calc(var(--header-h) + 24px); }
.two-col > * { min-width: 0; }
.cart-line { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border: 0; padding-bottom: 0; }
.cart-line:first-of-type { padding-top: 0; }
.cart-line img { width: 110px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; background: var(--sand); }
.cart-line h3 { font: 500 16px var(--sans); margin: 0 0 6px; }
.cart-line h3 a:hover { color: var(--terra); }
.cart-line .meta { font-size: 13px; color: var(--muted); }
.cart-line .line-right { text-align: right; }
.cart-line .price { font-weight: 700; font-size: 16px; }
.cart-line .old-price { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.cart-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.cart-actions select { width: auto; padding: 7px 34px 7px 12px; border-radius: var(--pill); font-size: 14px; background-position: right 12px center; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14.5px; }
.summary-row.total { font: 600 22px var(--serif); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.free-bar { margin: 14px 0; font-size: 13px; }
.promo { border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 14px; }
.promo-row { display: flex; gap: 8px; }
.promo-row input { padding: 9px 12px; }
.free-bar .bar-track { margin-top: 8px; height: 6px; }
.free-bar .bar-track span { background: var(--terra); }
.option-card { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; font-weight: 400; transition: border-color .15s; background: var(--white); }
.option-card:hover { border-color: var(--sand-2); }
.option-card:has(input:checked) { border-color: var(--ink); background: #fffdf9; }
.option-card input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--ink); }
.option-card b { display: block; font-weight: 600; }
.mini-line { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini-line img { width: 52px; aspect-ratio: 4 / 5; border-radius: 8px; object-fit: cover; background: var(--sand); }
.mini-line .grow { flex: 1; min-width: 0; }
.badge-off { background: var(--terra-soft); color: var(--terra-dark); font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: var(--pill); }
.pay-chip { display: inline-block; border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px; padding: 4px 9px; margin-right: 6px; font-size: 12px; font-weight: 600; }
.pay-chip.mpesa { background: #3fa535; border-color: #3fa535; color: var(--on-accent); font-weight: 800; letter-spacing: .04em; }

/* ---------- Account, orders, auth ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; color: var(--muted); letter-spacing: .08em; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table img:not(.avatar) { width: 44px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: var(--pill); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; background: var(--sand); color: var(--ink-soft); white-space: nowrap; }
.badge-pending, .badge-unpaid { background: #fbeccd; color: #8a5a00; }
.badge-processing { background: #e2e6f5; color: var(--indigo); }
.badge-shipped { background: #efe1f3; color: #6b2f7a; }
.badge-delivered, .badge-paid { background: #e1eedf; color: var(--ok); }
.badge-cancelled, .badge-failed { background: #f7dcd8; color: var(--danger); }
.badge-refunded { background: var(--sand); color: var(--ink-soft); }
.timeline { display: flex; justify-content: space-between; position: relative; margin: 14px 0 6px; }
.timeline::before { content: ""; position: absolute; top: 11px; left: 12%; right: 12%; height: 2px; background: var(--line); }
.timeline .step { position: relative; text-align: center; flex: 1; font-size: 13px; color: var(--muted); }
.timeline .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); margin: 0 auto 8px; }
.timeline .done .dot { background: var(--grad-sunset); border-color: var(--terra); box-shadow: 0 0 0 4px var(--terra-soft); }
.timeline .done { color: var(--ink); font-weight: 600; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.auth-box { max-width: 460px; margin: 32px auto; padding: 36px 34px 30px; position: relative; overflow: hidden; }
.auth-box h1 { text-align: center; margin-bottom: 8px; }
.auth-box h1 em { font-style: italic; color: var(--terra); }
.auth-box .sub { text-align: center; color: var(--muted); margin-bottom: 24px; }
.auth-box .btn-block { margin-top: 6px; }
.auth-foot { text-align: center; margin: 20px 0 0; font-size: 14px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.label-row .link-btn { font-weight: 500; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 70px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--ink-soft); font: 600 12.5px var(--sans); padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.pw-toggle:hover { background: var(--sand); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.demo-note code { background: rgba(0, 0, 0, .06); padding: 1px 5px; border-radius: 4px; }
.mpesa-box { max-width: 500px; margin: 32px auto; text-align: center; padding: 36px 30px; }
.mpesa-logo { display: inline-block; background: #3fa535; color: var(--on-accent); font-weight: 800; padding: 8px 16px; border-radius: 8px; letter-spacing: .06em; margin-bottom: 16px; }
.demo-note { background: #fdf3dc; border: 1px dashed var(--ochre); padding: 12px; border-radius: 10px; font-size: 13px; margin: 18px 0; }

/* ---------- My account ---------- */
.account-hero { margin-bottom: 22px; }
.account-hero h1 { margin: 0 0 6px; font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -.03em; }
.account-hero h1 em { font-style: italic; color: var(--terra); }
.account-hero p { margin: 0; font-size: 14px; }
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.account-nav { position: sticky; top: calc(var(--header-h) + 24px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; }
.account-nav a, .account-nav button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 11px 14px; border-radius: 10px; font: 500 14.5px var(--sans); color: var(--ink); background: none; border: 0; cursor: pointer; text-align: left; }
.account-nav a:hover, .account-nav button:hover { background: var(--sand); }
.account-nav a.active { background: var(--terra-fill); color: var(--on-accent); }
.account-nav a span { font-size: 12px; font-weight: 700; background: var(--sand); color: var(--ink-soft); border-radius: var(--pill); padding: 1px 8px; }
.account-nav a.active span { background: rgba(255, 255, 255, .25); color: var(--on-accent); }
.account-nav form { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.account-main { min-width: 0; }
.acct-h2 { font-size: 24px; margin: 26px 0 14px; }
.acct-h2:first-child { margin-top: 0; }
.acct-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.acct-stats > * { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; font-size: 13px; color: var(--muted); }
.acct-stats > a:hover { border-color: var(--terra); }
.acct-stats b { display: block; font: 600 26px/1.15 var(--serif); color: var(--ink); margin-bottom: 2px; }
.order-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; overflow: hidden; }
.order-card-head, .order-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; }
.order-card-head { border-bottom: 1px solid var(--line); background: #fffdf9; }
.order-card-foot { border-top: 1px solid var(--line); }
.order-no { font: 600 18px var(--serif); margin-right: 10px; }
.order-no:hover { color: var(--terra); }
.mini-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 14px 18px 0; }
.mini-steps span { font-size: 11.5px; font-weight: 600; color: var(--muted); padding-top: 8px; border-top: 4px solid var(--sand-2); }
.mini-steps span.on { color: var(--ink); border-top-color: var(--terra); }
.order-card-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 14px 18px; }
.oc-item, .bought-row { display: flex; gap: 12px; align-items: center; }
.oc-item img, .bought-row img, .oc-noimg { width: 56px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: var(--sand); flex: none; display: block; }
.oc-name { font-weight: 600; font-size: 14.5px; }
.oc-name a:hover { color: var(--terra); }
.oc-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bought-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.bought-row:last-child { border-bottom: 0; }
.box.bought-row { padding: 16px 18px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.bought-row .grow { flex: 1; min-width: 0; }
.review-prompts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.review-prompt { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; }
.review-prompt:hover { border-color: var(--terra); }
.review-prompt img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.review-prompt b { color: var(--terra-dark); font-size: 13px; }
.address-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.address-card { position: relative; font-size: 14.5px; line-height: 1.6; margin: 0; }
.address-card .badge { position: absolute; top: 14px; right: 14px; }
.pgrid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
    .account-layout { grid-template-columns: 1fr; }
    .account-nav { position: static; display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
    .account-nav a, .account-nav button { width: auto; white-space: nowrap; gap: 6px; }
    .account-nav form { border: 0; margin: 0; padding: 0; }
    .acct-stats, .review-prompts { grid-template-columns: repeat(2, 1fr); }
    .address-grid, .pgrid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .address-grid { grid-template-columns: 1fr; } }
@media print {
    .announce, .site-header, .site-footer, .no-print, .alert, .breadcrumb { display: none !important; }
    body { background: #fff; }
    .two-col { grid-template-columns: 1fr 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--grad-dusk); color: #d9cde6; margin-top: 40px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding: 36px 24px 24px; }
.site-footer a.brand, .footer-brand .brand { display: inline-flex; flex-direction: column; align-items: flex-start; }
.footer-brand .brand-word { color: #ffffff; font-size: 44px; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.footer-brand .brand-sub { padding-left: 0; color: var(--ochre); }
.footer-brand p { margin-top: 10px; max-width: 300px; font: italic 400 15px/1.45 var(--serif); color: #f3e8ff; }
.site-footer h4 { color: var(--on-dark); margin: 0 0 10px; font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .16em; }
.site-footer a, .site-footer .line { display: block; margin-bottom: 6px; }
.site-footer a:hover { color: var(--ochre); }
.footer-brand .brand-word i { color: var(--ochre); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 14px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 13px; }

/* ---------- Admin ---------- */
.admin-body { background: var(--paper); }
.admin-shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.admin-nav { background: var(--grad-dusk); color: #d9cde6; padding: 24px 14px; position: sticky; top: 0; height: 100vh; }
.admin-nav .brand { align-items: flex-start; margin: 0 10px 30px; }
.admin-nav .brand-word { color: var(--on-dark); font-size: 30px; }
.admin-nav .brand-sub { color: var(--ochre); padding-left: 0; }
.admin-nav a:not(.brand) { display: block; padding: 10px 14px; border-radius: 10px; margin-bottom: 2px; font-weight: 500; font-size: 14.5px; }
.admin-nav a:not(.brand):hover { background: rgba(255, 255, 255, .07); color: var(--on-dark); }
.admin-nav a.active { background: var(--terra-fill); color: var(--on-accent); }
.admin-group { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin: 18px 14px 6px; }
.admin-nav a:not(.brand) { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nav-badge { background: var(--ochre); color: var(--ink); font-size: 11px; font-weight: 700; border-radius: var(--pill); padding: 1px 8px; }
.nav-view { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--pill); padding: 0 6px; }
.view-only .admin-main form[method="post"] button:disabled { opacity: .45; cursor: not-allowed; }
.perm-table td, .perm-table th { vertical-align: middle; }
.perm-table .lvl { text-align: center; width: 110px; }
.perm-table .lvl input { width: 18px; height: 18px; accent-color: var(--terra); }
.perm-table tr.on td:first-child b { color: var(--terra-dark); }
.perm-summary { display: flex; flex-wrap: wrap; gap: 4px; }
.perm-summary span { font-size: 11.5px; border-radius: var(--pill); padding: 2px 8px; background: var(--sand); }
.perm-summary span.manage { background: var(--terra-soft); color: var(--terra-dark); font-weight: 600; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tabs a { padding: 9px 16px; border-radius: var(--pill); font-weight: 600; font-size: 14px; background: var(--white); border: 1px solid var(--line); }
.tabs a.active { background: var(--terra-fill); color: var(--on-accent); border-color: var(--terra-fill); }
.secret { font-family: ui-monospace, Menlo, monospace; background: #fff8e6; border: 1px dashed var(--ochre); padding: 10px 12px; border-radius: 10px; font-size: 15px; word-break: break-all; }
.role-chip { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--pill); padding: 1px 7px; }
.admin-nav { overflow-y: auto; }
.gallery-admin { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.gallery-admin img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.gallery-admin label { margin: 0; font-weight: 400; }
.seg-a { display: block; padding: 7px 14px; border-radius: var(--pill); font-size: 13.5px; font-weight: 500; }
.quick-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.quick-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.steps { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.step-pill { padding: 5px 12px; border-radius: var(--pill); font-size: 12.5px; font-weight: 600; background: var(--sand); color: var(--muted); }
.step-pill.done { background: var(--terra-soft); color: var(--terra-dark); }
.step-pill.now { background: var(--terra-fill); color: var(--on-accent); }
.status-select { width: auto !important; padding: 6px 30px 6px 10px !important; font-size: 13px !important; border-radius: var(--pill) !important; background-position: right 10px center !important; font-weight: 600; }
.status-select.s-pending { background-color: #fbeccd; border-color: #f3d79b; }
.status-select.s-processing { background-color: #e2e6f5; border-color: #c5cdea; }
.status-select.s-shipped { background-color: #efe1f3; border-color: #dcc3e4; }
.status-select.s-delivered { background-color: #e1eedf; border-color: #bfdcba; }
.status-select.s-cancelled { background-color: #f7dcd8; border-color: #efbdb6; }
tr[data-href] { cursor: pointer; }
tr[data-href]:hover td { background: #fffaf5; }
.bulk-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; background: var(--sand); border-radius: 12px; font-size: 14px; }
.bulk-bar select { width: auto; padding: 7px 34px 7px 12px; }
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-grid-2 > *, .admin-grid-3 > * { min-width: 0; overflow-wrap: anywhere; }
.stack-actions { display: grid; gap: 6px; justify-items: stretch; }
.stack-actions .btn { width: 100%; padding: 6px 10px; font-size: 12.5px; white-space: nowrap; }
.admin-main .two-col { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
@media (max-width: 1080px) { .admin-main .two-col { grid-template-columns: 1fr; } }
.admin-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.history { list-style: none; margin: 0; padding: 0; }
.history li { position: relative; padding: 0 0 14px 22px; font-size: 13.5px; }
.history li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--terra); }
.history li::after { content: ""; position: absolute; left: 7px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.history li:last-child::after { display: none; }
.history .when { color: var(--muted); font-size: 12px; }
.stock-input { width: 84px !important; padding: 7px 10px !important; text-align: center; }
.stock-input.low { border-color: var(--ochre); background: #fff8e6; }
.stock-input.out { border-color: var(--danger); background: #fdeeee; }
.chart { width: 100%; height: auto; display: block; }
.chart .col:hover .bar { fill: var(--terra-dark); }
.chart .col:hover rect:first-child { fill: rgba(255, 90, 54, .06); }
.delta { font-weight: 700; }
.delta.up { color: var(--ok); }
.delta.down { color: var(--danger); }
.hbar { display: grid; grid-template-columns: minmax(0, 1.4fr) 2fr auto; gap: 10px; align-items: center; font-size: 13.5px; padding: 6px 0; }
.hbar .bar-track { height: 8px; }
.hbar .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filters-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.filters-inline label { font-size: 12px; margin-bottom: 4px; }
.filters-inline input, .filters-inline select { width: auto; padding: 9px 12px; }
@media (max-width: 900px) { .admin-grid-2, .admin-grid-3 { grid-template-columns: 1fr; } }
@media print {
    .admin-nav, .admin-topbar, .no-print, .alert { display: none !important; }
    .admin-shell { display: block; }
    .admin-main { padding: 0; }
    body { background: #fff; }
    .box { border: 0; padding: 0; }
}
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--grad-dusk); }
.admin-login .auth-box { width: 100%; margin: 0; }
.admin-login .brand { margin-bottom: 18px; }
.admin-main { padding: 32px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.admin-top h1 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; border-top: 4px solid var(--terra); }
.stat:nth-child(2) { border-top-color: var(--indigo); }
.stat:nth-child(3) { border-top-color: var(--ochre); }
.stat:nth-child(4) { border-top-color: var(--magenta); }
.stat .v { font: 600 30px/1.1 var(--serif); margin: 6px 0 4px; letter-spacing: -.02em; }
.stat .k { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
/* Dashboard */
.attn-list { display: grid; }
.attn { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.attn:last-child { border-bottom: 0; }
.attn:hover { color: var(--terra-dark); }
.attn .badge { min-width: 38px; text-align: center; font-weight: 700; }
.attn .ico { width: 16px; height: 16px; color: var(--muted); transform: rotate(-90deg); }
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.pipeline a { display: grid; justify-items: center; gap: 6px; padding: 8px 4px; border-radius: var(--r-sm); }
.pipeline a:hover { background: var(--sand); }
.pipeline b { font: 600 22px/1 var(--serif); }
.dash-section { font-size: 21px; margin: 8px 0 14px; }
.dash-cards .box { margin-bottom: 0; }
.dash-cards .health-row { grid-template-columns: 14px 1fr auto; padding: 7px 0; font-size: 13.5px; }
@media (max-width: 1280px) and (min-width: 901px) { .dash-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pipeline { grid-template-columns: repeat(3, 1fr); } }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.toolbar input, .toolbar select { width: auto; }
.inline-form { display: inline; }
.tag-off { color: var(--muted); font-size: 11.5px; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: 12.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .pgrid { grid-template-columns: repeat(3, 1fr); }
    .rail { grid-auto-columns: calc((100% - 2 * 22px) / 3); }
    .arches { grid-template-columns: repeat(4, 1fr); }
    .edits { grid-template-columns: 1fr 1fr; }
    .edit:first-child { grid-column: 1 / -1; }
    .two-col { grid-template-columns: 1fr; }
    .two-col > aside { position: static; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: repeat(3, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    :root { --header-h: 64px; }
    .container { padding: 0 16px; }
    .menu-toggle { display: inline-flex; }
    .nav-row { grid-template-columns: auto 1fr auto; gap: 8px; }
    .brand { align-items: flex-start; }
    .brand-word { font-size: 31px; }
    .brand-sub { font-size: 8px; padding-left: 0; letter-spacing: .38em; }
    .icon-btn .label { display: none; }
    .icon-btn { padding: 0 8px; min-width: 38px; }
    /* No blur on the phone header: a blurred (backdrop-filter) parent traps the fixed menu drawer inside the
       header strip, so the menu was cut off and the page showed through */
    .site-header { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
    body.menu-open { overflow: hidden; }
    body.menu-open .site-header { z-index: 100; } /* above the WhatsApp button, buy bar and cookie notice */
    /* Phone menu: a compact panel that drops down under the header */
    .main-nav { position: fixed; top: calc(var(--header-h) + 6px); left: 12px; width: min(64vw, 220px); max-height: calc(100dvh - var(--header-h) - 24px); background: var(--paper); flex-direction: column; align-items: stretch; padding: 6px 16px; gap: 0; z-index: 80; border-radius: 14px; opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility 0s .2s; box-shadow: var(--shadow-pop); overflow-y: auto; overscroll-behavior: contain; }
    .main-nav.open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s ease, transform .2s ease; box-shadow: 0 0 0 100vmax rgba(34, 19, 58, .35), var(--shadow-pop); }
    .main-nav a { font: 500 15px var(--sans); padding: 10px 2px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .main-nav a:last-child { border-bottom: 0; }
    .main-nav a:hover { background: none; color: var(--terra); }
    .hero { grid-template-columns: 1fr; gap: 24px; padding: 12px 0 28px; }
    .values { grid-template-columns: 1fr 1fr; margin-bottom: 56px; }
    .value:nth-child(3) { border-left: 0; }
    .value:nth-child(n+3) { border-top: 1px solid var(--line); }
    .block { margin-bottom: 60px; }
    .pdp { grid-template-columns: 1fr; gap: 28px; }
    .pdp-info { position: static; }
    .reviews { grid-template-columns: 1fr; gap: 24px; }
    .filterbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
    .filterbar::-webkit-scrollbar { display: none; }
    .filterbar .sort { margin-left: 0; }
    .drop-panel { position: fixed; top: auto; left: 12px; right: 12px; bottom: 12px; max-height: 62vh; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-nav { position: fixed; inset: 0 auto 0 0; width: min(84vw, 300px); height: 100%; z-index: 90; transform: translateX(-102%); visibility: hidden; transition: transform .3s ease, visibility .3s; box-shadow: var(--shadow-pop); }
    .admin-nav.open { transform: none; visibility: visible; }
    .admin-nav.open ~ .admin-backdrop { display: block; }
    .admin-main { padding: 18px 16px 40px; }
    .admin-top h1 { font-size: 28px; }
    .admin-main .seg { display: flex; flex-wrap: wrap; border-radius: 20px; }
}
@media (max-width: 900px) {
    /* 16px stops iPhone Safari zooming into a field when it's tapped */
    input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px !important; }
    .site-footer a, .site-footer .line { padding: 4px 0; margin-bottom: 2px; }
    .link-btn { padding-top: 6px; padding-bottom: 6px; }
}
@media (max-width: 600px) {
    body { font-size: 14.5px; }
    .pgrid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
    .rail { grid-auto-columns: 64%; gap: 14px; }
    .arches { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .arch-link span { font-size: 14px; margin-top: 8px; }
    .edits { grid-template-columns: 1fr; }
    .edit { min-height: 380px; padding: 24px; }
    .hero-art { gap: 10px; }
    .arch-caption { display: none; }
    .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .values { grid-template-columns: 1fr; }
    .value + .value { border-left: 0 !important; border-top: 1px solid var(--line); }
    .field-row, .account-grid { grid-template-columns: 1fr; }
    .cart-line { grid-template-columns: 84px 1fr; gap: 14px; }
    .cart-line img { width: 84px; }
    .cart-line .line-right { grid-column: 2; text-align: left; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 20px 16px; padding-top: 28px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { justify-content: center; text-align: center; gap: 4px 16px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .auth-box { padding: 30px 20px 24px; }
    .pcard-sizes { display: none; }
}

/* Admin top nav bar (store link, order alerts, theme, account) — modules stay in the sidebar */
.admin-shell { grid-template-rows: auto 1fr; grid-template-areas: "nav top" "nav main"; }
.admin-nav { grid-area: nav; }
.admin-main { grid-area: main; }
.admin-topbar { grid-area: top; display: flex; position: sticky; top: 0; z-index: 70; align-items: center; gap: 12px; min-height: 64px; padding: 10px 32px; background: var(--paper); border-bottom: 1px solid var(--line); color: var(--ink); }
@supports (backdrop-filter: blur(1px)) { .admin-topbar { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); } }
.admin-topbar .icon-btn { color: var(--ink); border: 0; position: relative; }
.topbar-menu, .topbar-brand { display: none; }
.topbar-brand { align-items: flex-start; flex-direction: column; }
.topbar-brand .brand-word { font-size: 24px; }
.topbar-brand .brand-sub { color: var(--terra); padding-left: 0; font-size: 8px; letter-spacing: .38em; margin-top: 3px; }
.admin-topbar-title { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topbar-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; margin-right: 4px; border: 1px solid var(--line); border-radius: var(--pill); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.topbar-link:hover { border-color: var(--terra); color: var(--terra); }
.topbar-link .ico { width: 16px; height: 16px; }
.bell-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--pill); background: var(--terra-fill); color: var(--on-accent); font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid var(--paper); box-sizing: content-box; }
.admin-account summary { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: var(--pill); cursor: pointer; }
.admin-account summary:hover, .admin-account[open] summary { background: var(--sand); }
.avatar { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad-sunset); color: var(--on-accent); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.admin-account .who { display: flex; flex-direction: column; line-height: 1.2; }
.admin-account .who b { font-size: 13.5px; }
.admin-account .who small { font-size: 11.5px; color: var(--muted); }
.admin-account .chev { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.admin-account[open] .chev { transform: rotate(180deg); }
.admin-account .dropdown { min-width: 270px; }
.admin-account .dropdown a, .admin-account .dropdown button.signout { display: flex; align-items: center; gap: 10px; }
.admin-account .dropdown .ico { width: 17px; height: 17px; color: var(--muted); }
.admin-account .dropdown a.current { background: var(--sand); }
.admin-account .signout { color: var(--danger); }
.admin-account .signout .ico { color: var(--danger) !important; }
.account-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 14px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.account-head b { display: block; font-size: 16px; }
.account-head small { display: block; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.account-head .role-chip { display: inline-block; margin-top: 7px; border-color: var(--line); color: var(--ink-soft); }
.avatar-menu { width: 76px; height: 76px; font-size: 26px; box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--line); }
/* The dropdown styles every button as a full-width row — not the photo */
.dropdown .avatar-view { display: inline-block; width: auto; padding: 0; border-radius: 50%; background: none; }
.dropdown .avatar-view:hover { background: none; }
.dropdown-label { padding: 10px 12px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.admin-nav-close { display: none; position: absolute; top: 16px; right: 12px; color: var(--on-dark); border: 0; }
.admin-backdrop { display: none; position: fixed; inset: 0; z-index: 85; background: rgba(34, 19, 58, .5); }
@media (max-width: 900px) {
    .admin-shell { grid-template-columns: 1fr; grid-template-areas: "top" "main"; }
    .admin-topbar { padding: 8px 12px; min-height: 58px; gap: 8px; }
    .topbar-menu { display: inline-flex; }
    .topbar-brand { display: flex; }
    .admin-topbar-title { display: none; }
    .admin-nav-close { display: flex; }
}
@media (max-width: 600px) {
    .topbar-link span, .admin-account .who, .admin-account .chev { display: none; }
    .topbar-link { padding: 8px; border: 0; margin: 0; }
    .admin-account summary { padding: 2px; }
    .admin-account .dropdown { position: fixed; top: 62px; left: 12px; right: 12px; min-width: 0; }
}

/* Admin tables become labelled cards on phones (labels added by app.js) */
@media (max-width: 700px) {
    .table.stack thead, .table.stack .stack-head { display: none !important; }
    .table.stack, .table.stack tbody, .table.stack tfoot, .table.stack tr, .table.stack td, .table.stack th { display: block; width: 100%; }
    .table.stack tr { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 14px; margin-bottom: 12px; }
    .table.stack td, .table.stack tbody th { position: relative; border-bottom: 1px dashed var(--line); padding: 7px 0 7px 36%; text-align: right; min-height: 34px; overflow-wrap: anywhere; }
    .table.stack td:last-child { border-bottom: 0; }
    .table.stack td::before { content: attr(data-label); position: absolute; left: 0; top: 9px; width: 34%; text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
    .table.stack td[data-label=""] { padding-left: 0; text-align: left; }
    .table.stack td[data-label=""]::before { display: none; }
    .table.stack td:empty { display: none; }
    .table.stack select, .table.stack input:not([type=checkbox]):not([type=radio]) { max-width: 100%; }
    .table-wrap.stacked { overflow-x: visible; }
    .box .table.stack tr { box-shadow: none; }
    .stat { padding: 14px; }
    .stat .v { font-size: 22px; }
    .admin-main .box { padding-left: 14px; padding-right: 14px; }
    .admin-main .box-head { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; flex-wrap: wrap; }
}

/* Admin: Google result preview on the product form */
.serp-preview { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 16px; font-family: Arial, sans-serif; overflow-wrap: anywhere; }
.serp-url { color: #4d5156; font-size: 13px; line-height: 1.4; }
.serp-title { color: #1a0dab; font-size: 19px; line-height: 1.35; margin: 3px 0; }
.serp-desc { color: #4d5156; font-size: 14px; line-height: 1.55; }
[data-count-for].over { color: var(--danger); font-weight: 700; }

/* ==========================================================================
   Admin dark mode — html[data-theme="dark"] is set only on admin pages
   (preference per staff account: Light / Dark / Auto = follow the device).
   ========================================================================== */
html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #f1eaf6;
    --ink-soft: #d3c7de;
    --muted: #a898b8;
    --paper: #140c20;
    --sand: #271c38;
    --sand-2: #33254a;
    --line: #372a4c;
    --white: #1d1430;
    --terra: #ff6b4a;
    --terra-dark: #ff8a6e;
    --terra-fill: #c93a1a;
    --terra-soft: #3e1f28;
    --indigo: #34c1bd;
    --ochre: #ffc24f;
    --magenta: #ff6293;
    --ok: #4fce92;
    --danger: #ff7070;
    --solid: #3f2d5a;
    --shadow-pop: 0 18px 40px rgba(0, 0, 0, .5);
}
html[data-theme="dark"] .admin-nav { background: linear-gradient(160deg, #1a0f2b 0%, #2a1340 60%, #3d1640 100%); border-right: 1px solid var(--line); }
html[data-theme="dark"] .admin-login { background: linear-gradient(145deg, #0e0818 0%, #2a1340 60%, #3d1640 100%); }
html[data-theme="dark"] select { background-image: 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' stroke='%23f1eaf6' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); }
html[data-theme="dark"] input:focus, html[data-theme="dark"] select:focus, html[data-theme="dark"] textarea:focus { border-color: var(--terra); box-shadow: 0 0 0 3px rgba(255, 107, 74, .18); }
html[data-theme="dark"] .btn-ghost, html[data-theme="dark"] .btn-light { color: var(--ink); }
html[data-theme="dark"] .btn:hover { border-color: var(--solid); }
/* Status colours: tinted fills that stay readable on dark cards */
html[data-theme="dark"] .badge { background: var(--sand-2); color: var(--ink-soft); }
/* dark-mode teal/green/red fills are light, so they take dark text (8:1+) instead of white */
html[data-theme="dark"] .tag-new, html[data-theme="dark"] .btn-danger, html[data-theme="dark"] .toast.error { color: var(--paper); }
html[data-theme="dark"] .quick-add button.added { color: var(--paper) !important; }
html[data-theme="dark"] .btn-danger:hover { color: var(--on-accent); }
html[data-theme="dark"] .badge-pending, html[data-theme="dark"] .badge-unpaid { background: rgba(255, 194, 79, .16); color: #ffd27a; }
html[data-theme="dark"] .badge-processing { background: rgba(52, 193, 189, .16); color: #6fdad6; }
html[data-theme="dark"] .badge-shipped { background: rgba(197, 140, 230, .18); color: #d9a8f2; }
html[data-theme="dark"] .badge-delivered, html[data-theme="dark"] .badge-paid { background: rgba(79, 206, 146, .16); color: #74dca9; }
html[data-theme="dark"] .badge-cancelled, html[data-theme="dark"] .badge-failed { background: rgba(255, 112, 112, .16); color: #ff9a9a; }
html[data-theme="dark"] .status-select.s-pending { background-color: rgba(255, 194, 79, .16); border-color: rgba(255, 194, 79, .35); }
html[data-theme="dark"] .status-select.s-processing { background-color: rgba(52, 193, 189, .16); border-color: rgba(52, 193, 189, .35); }
html[data-theme="dark"] .status-select.s-shipped { background-color: rgba(197, 140, 230, .18); border-color: rgba(197, 140, 230, .38); }
html[data-theme="dark"] .status-select.s-delivered { background-color: rgba(79, 206, 146, .16); border-color: rgba(79, 206, 146, .35); }
html[data-theme="dark"] .status-select.s-cancelled { background-color: rgba(255, 112, 112, .16); border-color: rgba(255, 112, 112, .35); }
html[data-theme="dark"] tr[data-href]:hover td { background: rgba(255, 255, 255, .035); }
html[data-theme="dark"] .stock-input.low { background: rgba(255, 194, 79, .12); }
html[data-theme="dark"] .stock-input.out { background: rgba(255, 112, 112, .12); }
html[data-theme="dark"] .secret, html[data-theme="dark"] .demo-note { background: rgba(255, 194, 79, .1); }
html[data-theme="dark"] .order-card-head, html[data-theme="dark"] .option-card:has(input:checked) { background: var(--sand); }
html[data-theme="dark"] .chart .col:hover rect:first-child { fill: rgba(255, 255, 255, .05); }
html[data-theme="dark"] .serp-url, html[data-theme="dark"] .serp-desc { color: #bdc1c6; }
html[data-theme="dark"] .serp-title { color: #8ab4f8; }
html[data-theme="dark"] .swatch { border-color: rgba(255, 255, 255, .3); }
html[data-theme="dark"] img { filter: brightness(.94); }

/* Theme switch (sidebar + login) */
.theme-switch { display: flex; gap: 2px; margin: 0 6px 8px; padding: 3px; border-radius: var(--pill); background: var(--sand); }
.theme-switch button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 6px; border: 0; border-radius: var(--pill); background: none; color: var(--muted); font: 600 12.5px var(--sans); cursor: pointer; }
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] { background: var(--solid); color: var(--on-dark); }
.theme-switch .ico { width: 14px; height: 14px; }
.theme-quick .when-dark, html[data-theme="dark"] .theme-quick .when-light { display: none; }
html[data-theme="dark"] .theme-quick .when-dark { display: inline-block; }

/* Save + Cancel row at the bottom of admin forms */
.form-actions { display: flex; gap: 10px; align-items: center; }
.form-actions .btn:first-child { flex: 1; }

/* Admin focus mode: full screen + sidebar tucked away (opens as a drawer from ☰) */
.fullscreen-btn .when-on, html.focus-mode .fullscreen-btn .when-off { display: none; }
html.focus-mode .fullscreen-btn .when-on { display: inline-block; }
html.focus-mode .fullscreen-btn { color: var(--terra); }
html.focus-mode .admin-shell { grid-template-columns: 1fr; grid-template-areas: "top" "main"; }
html.focus-mode .admin-nav { position: fixed; inset: 0 auto 0 0; width: min(84vw, 280px); height: 100%; z-index: 90; transform: translateX(-102%); visibility: hidden; transition: transform .3s ease, visibility .3s; box-shadow: var(--shadow-pop); }
html.focus-mode .admin-nav.open { transform: none; visibility: visible; }
html.focus-mode .admin-nav.open ~ .admin-backdrop { display: block; }
html.focus-mode .admin-nav-close { display: flex; }
html.focus-mode .topbar-menu { display: inline-flex; }
html.focus-mode .topbar-brand { display: flex; }
html.focus-mode .admin-main { max-width: 1600px; width: 100%; margin: 0 auto; }
.resume-fullscreen { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 95; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: var(--pill); background: var(--solid); color: var(--on-dark); font: 600 13.5px var(--sans); box-shadow: var(--shadow-pop); cursor: pointer; }
.resume-fullscreen[hidden] { display: none; }
.resume-fullscreen .ico { width: 16px; height: 16px; }
@media print { .resume-fullscreen, .fullscreen-btn { display: none !important; } }

/* Admin inactivity warning */
.idle-warning { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(20, 12, 32, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.idle-warning[hidden] { display: none; }
.idle-card { width: min(420px, 100%); background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px 24px; text-align: center; box-shadow: var(--shadow-pop); }
.idle-count { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-content: center; background: var(--terra-soft); color: var(--terra); font: 600 32px/1 var(--serif); }
.idle-count small { font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }
.idle-card h2 { margin: 0 0 8px; font-size: 26px; }
.idle-card p { margin: 0 0 20px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.idle-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.idle-actions .btn { flex: 1 1 150px; }
@media print { .idle-warning { display: none !important; } }

/* "Developed & maintained by" credit */
.footer-bottom .dev-credit { opacity: .85; }
.footer-bottom .dev-credit b { color: var(--ochre); font-weight: 600; }
.admin-footer { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.admin-footer b { color: var(--ink-soft); font-weight: 600; }
.admin-login { grid-template-rows: 1fr auto; position: relative; isolation: isolate; overflow-x: hidden; }
/* Sign-in backdrop: a tilted wall of sneaker photos (Unsplash licence) drifting up and down, see admin/_login-backdrop.php */
.login-wall {
    position: fixed; inset: -25vh -15vw; z-index: -2; pointer-events: none;
    display: flex; justify-content: center; gap: 18px;
    transform: rotate(-8deg);
}
.login-wall-col { flex: 0 0 clamp(150px, 19vw, 300px); display: flex; flex-direction: column; gap: 18px; animation: wall-up 60s linear infinite; }
.login-wall-col:nth-child(even) { animation-name: wall-down; animation-duration: 70s; }
.login-wall-col:nth-child(3) { animation-duration: 80s; }
.login-wall img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; box-shadow: 0 14px 34px rgba(14, 8, 24, .35); }
@keyframes wall-up   { from { transform: translateY(0); }                  to { transform: translateY(calc(-50% - 9px)); } }
@keyframes wall-down { from { transform: translateY(calc(-50% - 9px)); }   to { transform: translateY(0); } }
/* soft plum vignette in the middle so the card stands out while the edges stay vivid */
.admin-login::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse 45% 60% at center, rgba(34, 19, 58, .55) 0%, rgba(34, 19, 58, .15) 70%, transparent 100%);
}
.admin-login .auth-box { max-width: 420px; }
.admin-login .twofa-box.wide { max-width: 500px; }
.admin-login .login-credit { color: #fff; background: rgba(34, 19, 58, .75); padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(6px); }
@media (max-width: 899px) {
    .login-wall-col { flex-basis: 42vw; }
    .login-wall { gap: 12px; } .login-wall-col { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .login-wall-col { animation: none; } }
.login-credit { margin: 18px 0 0; font-size: 12.5px; color: rgba(255, 250, 244, .7); text-align: center; }
.login-credit b { color: var(--ochre); font-weight: 600; }
@media print { .admin-footer { display: none; } }

/* Avatars (photo or initials) and the profile photo section */
img.avatar { object-fit: cover; background: var(--sand); }
.avatar-lg { width: 44px; height: 44px; font-size: 15px; }
.avatar-xl { width: 112px; height: 112px; font-size: 38px; box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--line); }
.avatar-sm { width: 30px; height: 30px; font-size: 11px; }
.avatar-md { width: 42px; height: 42px; font-size: 14px; }
.profile-photo-body { display: flex; gap: 24px; align-items: center; }
.profile-photo-actions { flex: 1; min-width: 0; }
.photo-upload { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-remove { margin-top: 10px; }
@media (max-width: 600px) { .profile-photo-body { flex-direction: column; text-align: center; } .photo-upload { justify-content: center; } }
.person { display: flex; gap: 10px; align-items: flex-start; }
.person .avatar { margin-top: 2px; }
@media (max-width: 700px) { .table.stack .person { justify-content: flex-end; text-align: right; } }

/* Profile photo viewer */
.avatar-view { padding: 0; border: 0; background: none; border-radius: 50%; cursor: zoom-in; line-height: 0; flex: none; }
.avatar-view:hover .avatar { box-shadow: 0 0 0 2px var(--terra); }
.avatar-view:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.avatar-view .avatar-xl:hover { box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--terra); }
.photo-viewer { padding: 0; border: 0; background: none; max-width: min(92vw, 720px); max-height: 92vh; overflow: visible; }
.photo-viewer::backdrop { background: rgba(20, 12, 32, .82); backdrop-filter: blur(4px); }
.photo-viewer figure { margin: 0; text-align: center; }
.photo-viewer img { display: block; max-width: min(92vw, 720px); max-height: calc(92vh - 56px); width: auto; height: auto; margin: 0 auto; border-radius: var(--r); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); background: var(--sand); }
.photo-viewer figcaption { margin-top: 14px; color: #fffaf4; font: 600 20px var(--serif); }
.photo-viewer-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-pop); }
.photo-viewer-close .ico { width: 18px; height: 18px; }
@media (max-width: 600px) { .photo-viewer-close { top: 8px; right: 8px; } }
.person > div { min-width: 0; }
/* Team page: the list needs the width for photo, role, sign-in and actions — the add/edit form moves below it on laptops */
@media (max-width: 1440px) {
    .admin-main .team-layout { grid-template-columns: 1fr; }
    .admin-main .team-layout > aside { position: static; max-width: 560px; }
}
#member-form { scroll-margin-top: 84px; }

/* Reports: download menu + per-section links + print layout */
.download-menu summary.btn { display: inline-flex; align-items: center; gap: 8px; list-style: none; }
.download-menu summary .ico { width: 17px; height: 17px; }
.download-menu .chev { transition: transform .2s; }
.download-menu[open] .chev { transform: rotate(180deg); }
.download-menu .dropdown { min-width: 320px; }
.download-menu a.dl-main { display: flex; gap: 12px; align-items: flex-start; }
.download-menu a.dl-main .ico { width: 22px; height: 22px; color: var(--terra); flex: none; margin-top: 2px; }
.download-menu a.dl-main b { display: block; font-size: 14px; }
.download-menu a.dl-main small { display: block; color: var(--muted); font-size: 12px; }
.dl-row { display: flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; font-size: 13.5px; }
.dl-row span { flex: 1; }
.download-menu .dl-row a { display: inline-block; width: auto; padding: 5px 10px; border-radius: var(--pill); font-size: 12.5px; font-weight: 600; color: var(--terra-dark); }
.download-menu .dl-row a:hover { background: var(--terra-soft); }
.dl-links { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; font-size: 12.5px; font-weight: 600; }
.dl-links .ico { width: 15px; height: 15px; color: var(--muted); }
.dl-links a { color: var(--terra-dark); }
.dl-links a:hover { text-decoration: underline; }
.print-only { display: none; }
@media (max-width: 600px) { .download-menu .dropdown { position: fixed; left: 12px; right: 12px; top: 70px; min-width: 0; } }
@media print {
    .print-only { display: block; }
    .report-print-head { font-size: 12px; color: #555; margin-bottom: 10px; }
    .no-print, .filters-inline, .reports-table-toggle { display: none !important; }
    .stats { grid-template-columns: repeat(4, 1fr) !important; }
    .box { break-inside: avoid; }
}

/* Admin → System */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.health { display: grid; gap: 2px; }
.health-row { display: grid; grid-template-columns: 14px 170px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.health-row:last-child { border-bottom: 0; }
.health-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.health-dot.warn { background: var(--ochre); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ochre) 25%, transparent); }
.trace { background: var(--sand); border-radius: var(--r-sm); padding: 12px; font: 12px/1.5 ui-monospace, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; margin: 10px 0 0; }
.email-preview { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff4ea; }
tr.muted td { opacity: .6; }
@media (max-width: 600px) { .health-row { grid-template-columns: 14px 1fr; } .health-row .muted { grid-column: 2; } }

/* ---------- Pages, journal, contact ---------- */
.prose-page { max-width: 760px; margin: 0 auto; }
.prose-page h1 { font-size: clamp(34px, 5vw, 52px); margin: 10px 0 12px; }
.lede { font: 400 20px/1.5 var(--serif); color: var(--ink-soft); margin: 0 0 26px; }
.prose { font-size: 16.5px; line-height: 1.75; color: var(--ink-soft); }
.prose h2 { font-size: 26px; color: var(--ink); margin: 36px 0 10px; }
.prose h3 { font-size: 20px; color: var(--ink); margin: 26px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--terra); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose-help { margin: 40px 0 10px; padding: 18px 20px; background: var(--sand); border-radius: var(--r); display: flex; flex-direction: column; gap: 4px; }
.prose-help a { color: var(--terra); font-weight: 600; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; margin-bottom: 60px; }
.post-card { display: flex; flex-direction: column; gap: 6px; }
.post-card h2 { font-size: 24px; margin: 4px 0 0; }
.post-card:hover h2 { color: var(--terra); }
.post-cover { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--grad-sunset); display: grid; place-items: center; margin-bottom: 8px; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-cover img { transform: scale(1.04); }
.post-cover span { font: italic 600 80px var(--serif); color: var(--on-accent); }
.post-type { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); }
.post-hero { width: 100%; border-radius: var(--r-lg); margin: 0 0 28px; }
.contact-layout { margin-bottom: 20px; }
.contact-sent { text-align: center; padding: 40px 24px; }
.contact-ways { display: flex; flex-direction: column; }
.contact-ways a { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-ways a:last-child { border-bottom: 0; }
.contact-ways a .ico { width: 22px; height: 22px; color: var(--terra); flex: none; margin-top: 2px; }
.contact-ways span { display: flex; flex-direction: column; font-size: 14px; color: var(--ink-soft); }
.contact-ways b { color: var(--ink); font-size: 15px; }
.station-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 40px; }
.station-county h3 { font-size: 20px; margin: 0 0 8px; }
.station { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* WhatsApp chat button */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: var(--pill); background: #25d366; color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35); }
.wa-float svg { width: 24px; height: 24px; }
.wa-float:hover { background: #1ebe5b; color: #fff; }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { padding: 13px; } }

/* Cookie consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 640px; margin: 0 auto; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 16px 18px; background: var(--solid); color: var(--on-dark); border-radius: var(--r); box-shadow: var(--shadow-pop); font-size: 14px; }
.consent p { flex: 1 1 280px; margin: 0; }
.consent a { color: var(--ochre); text-decoration: underline; }
.consent div { display: flex; gap: 8px; }
.consent .btn-ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, .35); }
.pick-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 10px; }
.pick-list .check { padding: 5px 0; margin: 0; }
textarea.mono { font: 14px/1.6 ui-monospace, Menlo, Consolas, monospace; }
.tabs { flex-wrap: wrap; }

/* Account: rewards, returns, data */
.rewards-hero { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding: 24px; margin-bottom: 20px; border-radius: var(--r); background: var(--grad-dusk); color: var(--on-dark); }
.rewards-hero > div { display: flex; flex-direction: column; }
.rewards-hero b { font: 600 48px/1 var(--serif); margin: 4px 0; }
.rewards-hero .muted { color: rgba(255, 250, 244, .7); }
.rewards-hero p { flex: 1 1 260px; margin: 0; opacity: .9; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.share-row input { flex: 1 1 240px; font-size: 13.5px; }
.ledger-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row .plus { color: var(--ok); }
.ledger-row .minus { color: var(--danger); }
.return-card .bought-row, form .bought-row { border-bottom: 1px solid var(--line); }
.danger-zone { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.danger-zone summary { cursor: pointer; color: var(--danger); font-weight: 600; font-size: 14px; }
.danger-zone form { margin-top: 12px; }
.guest-cta { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 18px; margin-bottom: 10px; border-radius: var(--r); background: var(--sand); }
.guest-cta > div { display: flex; flex-direction: column; gap: 2px; flex: 1 1 260px; }
.station-pill { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.station-pill .ico { width: 14px; height: 14px; color: var(--terra); }
.btn.wa-btn { background: #25d366; border-color: #25d366; color: #fff; box-shadow: none; }
.btn.wa-btn:hover { background: #1ebe5b; border-color: #1ebe5b; }
.hold-note { display: flex; align-items: center; gap: 6px; margin: -6px 0 16px; }
.hold-note .ico { width: 15px; height: 15px; color: var(--terra); }
.guest-choice { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 16px; border: 1px dashed var(--line); border-radius: var(--r); background: var(--white); }
.guest-choice > div { display: flex; flex-direction: column; }
.station-field { margin: -4px 0 14px 34px; }
.option-card.disabled { opacity: .5; }
.points-toggle { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 8px 0; border-radius: 10px; background: var(--sand); cursor: pointer; font-size: 14px; }
.points-toggle span { flex: 1; }
.points-toggle b { color: var(--ok); }
.bulk-ship { position: relative; }
.bulk-ship summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.bulk-ship summary::-webkit-details-marker { display: none; }
.bulk-ship .ico, .bulk-bar .btn .ico { width: 15px; height: 15px; }
.bulk-ship-panel { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(360px, 90vw); padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-pop); }
.county-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 20px; }
.county-grid label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 500; margin: 0; }
.county-grid select { width: 160px; padding: 6px 30px 6px 10px; }

/* Product page: colours, notify-me, fit, review photos */
.colour-switch { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 18px; }
.colour-switch a { width: 54px; height: 66px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--line); display: block; }
.colour-switch a.on { border-color: var(--ink); }
.colour-switch a:hover { border-color: var(--terra); }
.colour-switch img, .colour-switch span { width: 100%; height: 100%; object-fit: cover; display: block; }
.notify-me { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r); background: var(--sand); }
.notify-me summary { cursor: pointer; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; list-style: none; }
.notify-me summary::-webkit-details-marker { display: none; }
.notify-me summary .ico { width: 16px; height: 16px; color: var(--terra); }
.notify-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.notify-form select { width: auto; flex: 0 0 110px; }
.notify-form input { flex: 1 1 180px; }
.fit-summary { margin-top: 18px; font-size: 14px; }
.fit-scale { display: flex; gap: 3px; margin-top: 8px; }
.fit-scale span { padding: 6px 8px; font-size: 11.5px; text-align: center; background: var(--sand); color: var(--muted); border-radius: 6px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fit-scale span.on { background: var(--terra-fill); color: var(--on-accent); font-weight: 700; }
.fit-chip { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: var(--pill); background: var(--sand); font-size: 11.5px; font-weight: 600; }
.fit-choice { display: flex; gap: 8px; flex-wrap: wrap; }
.review-photos { display: flex; gap: 8px; margin: 8px 0; }
.review-photos button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; overflow: hidden; }
.review-photos img { width: 76px; height: 76px; object-fit: cover; display: block; }
.receipt-lines { display: grid; gap: 8px; }
.receipt-line { display: grid; grid-template-columns: minmax(0, 1fr) 90px 130px 70px; gap: 8px; align-items: center; }
.receipt-line.head { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
@media (max-width: 700px) { .receipt-line { grid-template-columns: 1fr 1fr; } .receipt-line select { grid-column: 1 / -1; } .receipt-line.head { display: none; } }

/* Search suggestions */
.suggest-box { margin: 10px 0 4px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-pop); padding: 8px; max-height: 60vh; overflow-y: auto; }
.sg-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.sg-chips a { padding: 6px 12px; border-radius: var(--pill); background: var(--sand); font-size: 13px; font-weight: 600; }
.sg-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 6px; border-radius: 10px; font-size: 14px; }
.sg-item img { width: 44px; height: 54px; object-fit: cover; border-radius: 6px; background: var(--sand); }
.sg-item:hover, .sg-item.on, .sg-chips a.on, .sg-all.on { background: var(--sand); }
.sg-all { display: block; padding: 10px 6px 4px; font-weight: 700; color: var(--terra); font-size: 14px; }
.sg-empty { padding: 8px; margin: 0; }
.tag-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag-chip { display: inline-block; padding: 3px 10px; border-radius: var(--pill); background: var(--terra-soft); color: var(--terra-dark); font-size: 12px; font-weight: 700; }
html[data-theme="dark"] .tag-chip { color: var(--terra); }
.note { padding: 10px 0; border-top: 1px solid var(--line); margin-top: 10px; }
.note p { margin: 0 0 4px; font-size: 14px; }
.import-summary { display: flex; gap: 18px; flex-wrap: wrap; margin: 0 0 12px; font-size: 14px; }
.import-summary .bad { color: var(--danger); }
tr.row-bad td { background: color-mix(in srgb, var(--danger) 6%, transparent); }
.msg { padding: 14px 0; border-bottom: 1px solid var(--line); }
.msg:last-child { border-bottom: 0; }
.msg.is-new { box-shadow: inset 3px 0 0 var(--terra); padding-left: 12px; }
.msg-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.msg-body { margin: 8px 0 10px; font-size: 14.5px; white-space: normal; }
.msg-reply textarea { margin-bottom: 8px; }

/* Two-step sign-in */
.twofa-box.wide { max-width: 520px; }
.code-input { font: 600 26px/1.2 ui-monospace, Menlo, monospace !important; letter-spacing: .3em; text-align: center; padding: 12px !important; }
.twofa-steps { padding-left: 20px; margin: 16px 0 6px; text-align: left; }
.twofa-steps > li { margin-bottom: 18px; font-size: 14.5px; line-height: 1.55; }
.qr-wrap { width: 220px; max-width: 70vw; margin: 12px auto 6px; padding: 6px; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.qr-wrap svg { display: block; width: 100%; height: auto; }
.setup-key { font: 600 17px ui-monospace, Menlo, monospace; letter-spacing: .06em; background: var(--sand); padding: 10px 12px; border-radius: 8px; text-align: center; overflow-wrap: anywhere; user-select: all; }
.twofa-confirm { margin-top: 10px; display: grid; gap: 10px; }
.twofa-help { margin-top: 14px; font-size: 13.5px; text-align: left; }
.twofa-help summary { cursor: pointer; color: var(--terra); font-weight: 600; }
.twofa-help p { margin: 8px 0 0; }
.recovery-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 4px; }
.recovery-codes code { font: 600 16px ui-monospace, Menlo, monospace; letter-spacing: .08em; padding: 10px; border-radius: 8px; background: var(--sand); text-align: center; }
.twofa-signout { margin-top: 18px; text-align: center; }
@media print { .admin-login { background: #fff !important; display: block; } .login-wall, .admin-login::after { display: none; } .twofa-box { box-shadow: none; border: 0; } .twofa-box .btn, .twofa-signout, .login-credit, .oc-actions { display: none !important; } }
.inline-code { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-code input { width: 150px; font-family: ui-monospace, Menlo, monospace; letter-spacing: .15em; }
/* Admin → Categories & Brands: one editable row per brand */
.brand-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.brand-row input[type=text] { padding: 8px 12px; }
.brand-home { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; white-space: nowrap; cursor: pointer; }
.brand-home input { width: 16px; height: 16px; accent-color: var(--terra-fill); }
@media (max-width: 600px) { .brand-row { grid-template-columns: 1fr auto; } .brand-row input[type=text] { grid-column: 1 / -1; } }
/* Small phones (≤ 400px, e.g. 360px Androids): header must fit menu + logo + four icons without sideways scrolling */
@media (max-width: 400px) {
    .nav-row { gap: 4px; }
    .nav-row > * { min-width: 0; }
    .brand-word { font-size: 25px; }
    .nav-actions { gap: 0; }
    .icon-btn { padding: 0 6px; min-width: 36px; }
    .icon-btn .ico { width: 20px; height: 20px; }
}
@media (max-width: 600px) {
    .pcard-brand { font-size: 12px; }
}
/* ---------- Phones: extra polish ---------- */
.buy-bar { display: none; }
@media (max-width: 900px) {
    .buy-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(34, 19, 58, .08); transform: translateY(110%); transition: transform .25s ease; }
    .buy-bar.show { transform: none; }
    .buy-bar-info { min-width: 0; flex: 1; display: grid; line-height: 1.25; }
    .buy-bar-info b { font: 600 18px var(--serif); }
    .buy-bar-info span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .buy-bar .btn { padding: 12px 18px; white-space: nowrap; box-shadow: none; }
    body.has-buy-bar .wa-float { bottom: 84px; }
    .box-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .buy-bar { transition: none; } }
@media (max-width: 600px) {
    .wa-float { right: 14px; bottom: 14px; padding: 11px; }
    .wa-float svg { width: 22px; height: 22px; }
    .acct-stats b { font-size: 21px; }
    .values { grid-template-columns: 1fr 1fr; }
    .value { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 10px; font-size: 12.5px; }
    .value + .value { border-left: 0; }
    .value:nth-child(even) { border-left: 1px solid var(--line); }
    .value:nth-child(n+3) { border-top: 1px solid var(--line); }
    .value .ico { width: 36px; height: 36px; padding: 8px; }
    .value b { font-size: 13.5px; }
}
/* Admin → Activity log: "Clear old entries" panel */
.clear-log .dropdown { right: 0; left: auto; width: 280px; padding: 16px; display: grid; gap: 6px; }
.clear-log-form label { font-size: 12.5px; font-weight: 600; margin: 4px 0 0; }
.clear-log-form .btn { margin-top: 8px; width: 100%; }
.clear-log-form p { margin: 4px 0 0; }
/* Shop pages: full-width title banner — breadcrumb + heading over the drifting photo wall (sneakers + clothing) */
.shop-wall { --wall-gap: 10px; position: relative; height: 220px; overflow: hidden; background: var(--grad-dusk); isolation: isolate; display: flex; align-items: center; }
.shop-wall-photos { position: absolute; inset: 0; z-index: -2; display: grid; align-content: center; gap: var(--wall-gap); }
.shop-wall::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse 60% 85% at 50% 50%, rgba(26, 14, 44, .9) 0%, rgba(26, 14, 44, .72) 45%, rgba(26, 14, 44, .45) 100%); } /* darkest in the middle, behind the centred title */
.shop-wall-row { display: flex; gap: var(--wall-gap); width: max-content; animation: wall-left 150s linear infinite; }
.shop-wall-row + .shop-wall-row { animation-name: wall-right; animation-duration: 170s; }
.shop-wall-photos img { width: 96px; height: 96px; flex: none; object-fit: cover; border-radius: 14px; background: #3a2350; }
@keyframes wall-left  { from { transform: translateX(0); }                  to { transform: translateX(calc(-50% - var(--wall-gap) / 2)); } }
@keyframes wall-right { from { transform: translateX(calc(-50% - var(--wall-gap) / 2)); } to { transform: translateX(0); } }
.shop-wall .shop-hero { width: 100%; padding: 0 24px; color: #fff; text-align: center; }
.shop-wall .breadcrumb { color: rgba(255, 255, 255, .78); justify-content: center; }
.shop-wall .breadcrumb a:hover { color: #ffb627; }
.shop-wall .shop-hero h1 { color: #fff; margin: 8px 0 0; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.shop-wall .shop-hero h1 em { color: #ff8a6e; }
.shop-wall + .page { padding-top: 56px; } /* breathing room between the banner and the products */
@media (max-width: 600px) { .shop-wall + .page { padding-top: 32px; } }
@media (max-width: 900px) { .shop-wall .shop-hero { padding: 0 16px; } }
@media (max-width: 600px) { .shop-wall { --wall-gap: 8px; height: 168px; } .shop-wall-photos img { width: 70px; height: 70px; border-radius: 10px; }
    .shop-wall::before { background: radial-gradient(ellipse 90% 80% at 50% 50%, rgba(26, 14, 44, .88), rgba(26, 14, 44, .6)); } }
@media (prefers-reduced-motion: reduce) { .shop-wall-row { animation: none; } }
@media print { .shop-wall-photos, .shop-wall::before { display: none; } .shop-wall { height: auto; background: none; } .shop-wall .shop-hero, .shop-wall .shop-hero h1 { color: #000; text-shadow: none; } }
/* Product page: stock left under each size, and the picked size's count */
.chip span small { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.chip.low span small { color: var(--terra-dark); font-weight: 600; }
.chip input:checked + span small { color: var(--on-accent); opacity: .9; }
.chip input:disabled + span small { text-decoration: none; }
.pdp .chip span { padding: 9px 0 8px; }
.stock-note b { font-weight: 700; }
.size-stock { min-height: 20px; margin: 10px 0 0; font-size: 13.5px; font-weight: 600; color: var(--ok); }
.size-stock.low { color: var(--terra-dark); }
/* Wide layout (shop pages): less empty space at the sides of big screens, and 5 products per row */
.container-wide { max-width: 1640px; }
@media (min-width: 1200px) {
    .container-wide .pgrid { grid-template-columns: repeat(5, 1fr); gap: 34px 20px; }
    .container-wide .rail { grid-auto-columns: calc((100% - 4 * 20px) / 5); gap: 20px; } /* home page sliding rows: 5 in view too */
}
/* My account → Referrals */
.ref-code { margin: 0 0 12px; font: 700 28px/1 var(--sans); letter-spacing: .12em; color: var(--ink); }
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ref-stats div { display: flex; flex-direction: column; }
.ref-stats b { font: 600 20px var(--serif); }
.ref-stats span { font-size: 12px; color: var(--muted); }
/* Admin → Referrals: pay / reject a payout in one row */
.payout-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.payout-form input { width: 130px; padding: 7px 10px; }
.rewards-hero p b { font: inherit; font-weight: 700; margin: 0; } /* bold words in the explanation, not the big figure style */
/* Shop header: obvious "you're signed in" state — initials badge with a green dot, and "Hi, Name" on wider screens */
.me-badge { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--terra-fill); color: #fff; font: 700 11.5px/1 var(--sans); letter-spacing: .02em; }
.me-badge i { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #1fa463; border: 2px solid var(--paper); }
.icon-btn.signed-in { padding-left: 6px; }
.icon-btn.signed-in .label { font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-who { display: flex; align-items: center; gap: 6px; margin-top: 4px; font: 400 12px var(--sans); color: var(--muted); overflow-wrap: anywhere; }
.online-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #1fa463; }
.share-preview { margin-top: 6px; }
.share-preview summary { cursor: pointer; list-style: none; }
.share-preview p { margin: 8px 0 0; padding: 12px 14px; border-radius: 12px 12px 12px 2px; background: #e7f8dd; color: #1b2a1b; font-size: 13px; line-height: 1.5; }
/* Confirm your email (6-digit code) */
.verify-box { text-align: center; }
.verify-box .code-input { display: block; width: 100%; max-width: 260px; margin: 18px auto 14px; text-align: center; font: 700 30px/1 var(--sans); letter-spacing: .45em; padding: 14px 0 14px .45em; }
.verify-resend { margin: 16px 0 8px; }
.verify-change { margin-bottom: 12px; }
.verify-change summary { cursor: pointer; list-style: none; }
.verify-change form { margin-top: 10px; text-align: left; }
/* Account: confirm-your-email reminder */
.verify-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.verified-tag { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 10px; font-weight: 700; vertical-align: 1px; }
/* Forgot password: code field and "can't get into your email?" help */
.auth-box .code-input { text-align: center; font: 700 26px/1 var(--sans); letter-spacing: .4em; padding-left: .4em; }
.recovery-help { display: grid; gap: 4px; margin-top: 18px; padding: 14px 16px; border-radius: var(--r); background: var(--sand); font-size: 13px; text-align: left; }
.recovery-help span { color: var(--ink-soft); }
.ready-chip { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: var(--pill); background: #eef8f2; color: var(--ok); font-size: 13px; font-weight: 600; }
.collect-box { display: grid; gap: 4px; margin-top: 16px; font-size: 14px; }
/* Order page: cancel box for orders not yet processed */
.cancel-box { display: grid; gap: 8px; }
.cancel-box select { padding: 9px 12px; }

/* Checkout: door-delivery map pin (Leaflet). z-index 0 keeps the map's own layers under the sticky header. */
.map-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.map-tools input[type=search] { flex: 1 1 220px; min-width: 0; }
.map-tools .btn svg { width: 16px; height: 16px; }
.map-box { position: relative; z-index: 0; height: 280px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--sand); }
.map-box .leaflet-container { font: 12px var(--sans); }
/* The chosen delivery spot, shown above the map once pinned */
.pin-card { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 12px 14px; border: 2px solid #1d7a4a; border-radius: var(--r); background: #eaf6ef; animation: pin-in .45s ease; }
.pin-card[hidden] { display: none; }
.pin-card-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #1d7a4a; color: #fff; }
.pin-card-icon svg { width: 20px; height: 20px; }
.pin-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.pin-card-text b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #1d7a4a; }
.pin-card-text span { font-size: 15px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pin-card-text small { font-size: 12.5px; color: var(--muted); }
.map-tools .btn.is-busy { opacity: .7; pointer-events: none; }
@keyframes pin-in { from { transform: scale(.97); box-shadow: 0 0 0 0 rgba(29, 122, 74, .45); } 60% { box-shadow: 0 0 0 10px rgba(29, 122, 74, 0); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pin-card { animation: none; } }
@media (max-width: 600px) { .map-box { height: 240px; } .map-tools .btn { flex: 1 1 auto; } }

/* M-Pesa payment page: waiting for the customer's PIN */
.pay-wait { margin: 8px 0 16px; }
.pay-wait[hidden], [data-pay-problem][hidden], [data-pay-retry][hidden] { display: none; }
.pay-spinner { display: block; width: 46px; height: 46px; margin: 6px auto 14px; border-radius: 50%; border: 4px solid #d9eed6; border-top-color: #3fa535; animation: pay-spin .9s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pay-spinner { animation-duration: 2.5s; } }

/* M-Pesa payment page: success screen and failure explanation */
.pay-done-check { display: grid; place-items: center; width: 72px; height: 72px; margin: 4px auto 14px; border-radius: 50%; background: #1d7a4a; color: #fff; box-shadow: 0 0 0 8px #e3f3e9; animation: pin-in .5s ease; }
.pay-done-check svg { width: 38px; height: 38px; }
.pay-done h1 { color: #1d7a4a; margin-bottom: 8px; }
.pay-done-lead { font-size: 17px; line-height: 1.5; }
.pay-done-details { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 18px 0; padding: 14px 18px; text-align: left; background: #eaf6ef; border: 1px solid #cfe8d9; border-radius: var(--r); font-size: 14.5px; }
.pay-done-details dt { color: var(--muted); }
.pay-done-details dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.pay-done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.pay-problem { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 16px; padding: 14px 16px; text-align: left; border: 1px solid #f0c9c2; border-left: 4px solid var(--danger); border-radius: var(--r); background: #fdf3f1; font-size: 14.5px; line-height: 1.5; }
.pay-problem[hidden] { display: none; }
.pay-problem-title { font-size: 16.5px; color: var(--danger); }
.pay-problem-tip { font-weight: 600; color: var(--ink); }
