:root {
    /* Erra Style palette */
    --coffee-bean: #6f4e3d;
    --antique-white: #f0e4d2;
    --parchment: #fbf7f1;
    --smoky-rose: #a26769;
    --wine-plum: #6e1f2e;

    /* Roles (contrast on parchment) */
    --bg: var(--parchment);              /* page */
    --surface: var(--antique-white);     /* cards, bars, footer */
    --ink: var(--coffee-bean);           /* text 6.95:1 */
    --muted: #7a5f50;                    /* secondary text 5.50:1 (coffee tint) */
    --accent: var(--wine-plum);          /* primary buttons, links, active 10.36:1 */
    --accent-dark: #561724;              /* hover / pressed */
    --accent-soft: var(--antique-white); /* selected chips, highlights (plum text 8.81:1) */
    --rose: var(--smoky-rose);           /* decoration + large text only (4.20:1) */
    --line: rgba(111, 78, 61, .16);      /* hairlines and dividers only */
    --line-control: rgba(111, 78, 61, .7); /* control edges and unfilled stars, 3:1 on parchment (WCAG 1.4.11) */
    --star-off: var(--line-control);
    --radius: 5px;            /* cards, images, sheets */
    --radius-sm: 3px;          /* buttons, inputs, chips */
    --header-h: 64px;
    --badge-h: 20px;                     /* shared height of SALE / SOLD OUT tags and numeric counts */
    --badge-inset: var(--space-sm);      /* offset of a badge from its host's corner */
    --container: 1280px;                 /* one page width for every storefront view */
    --gutter: var(--space-lg);           /* page side margin, widens on desktop */
    --content: min(100% - 2 * var(--gutter), var(--container) - 2 * var(--gutter));
    --bottom-h: 56px;
    --buy-h: 0px;                        /* PDP sticky buy bar height, set below on pages that have one */
    --bar-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); /* fixed bottom tab bar incl. safe area */

    /* Spacing, 4/8 scale; each nesting level ~1.4x its child: inline 4-8 / card content 12 / card 16 / section 24-32 / page 48-64 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;
    --space-3xl: 48px;
    --space-4xl: 64px;
    --space-5xl: 96px;

    /* Type scale */
    --fs-xs: .75rem;
    --fs-sm: .875rem;
    --fs-md: .9375rem;
    --fs-base: 1rem;
    --fs-lg: 1.375rem;
    --fs-h3: 1.5rem;
    --fs-h2: 2rem;

    --radius-pill: 999px;
    --glass: rgba(251, 247, 241, .78);   /* header + tab bar */
    --scrim: rgba(60, 40, 30, .4);
    --shadow-pop: 0 12px 32px rgba(111, 78, 61, .16);
    --on-media: #fff;                    /* text/dots over photos */
    --media-shade: rgba(0, 0, 0, .55);
    --ease: cubic-bezier(.32, .72, 0, 1);
    --t-fast: 100ms;
    --t-base: 200ms;
    --t-slow: 350ms;

    --z-sticky: 9;
    --z-bar: 10;
    --z-toast: 20;
    --z-scrim: 40;
    --z-drawer: 41;
    --z-modal-scrim: 50;
    --z-modal: 51;
}
:root:has(.buy-bar) { --buy-h: 72px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* the hidden attribute always wins over component display rules */
html { scrollbar-gutter: stable; scrollbar-color: color-mix(in srgb, var(--muted) 55%, transparent) transparent; scroll-behavior: smooth; scroll-padding: var(--header-h) 0 calc(var(--bar-bottom) + var(--buy-h) + var(--space-lg)); } /* focus/anchors clear the sticky header and the fixed bottom bars */
body {
    display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; /* footer stays at the bottom on short pages */
    margin: 0;
    padding-bottom: calc(var(--bar-bottom) + var(--buy-h));
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.6 'Manrope', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
.script { font-family: 'Italianno', 'Marck Script', cursive; font-weight: 400; }
.muted { color: var(--muted); }
/* Shared page container: same left edge and width for hero, shelves, catalog, product, cart, checkout, order and text pages */
.hero, .shelf, .page, .catalog, .pdp, .reviews { width: var(--content); margin-inline: auto; }

.site-header {
    position: sticky; top: 0; z-index: var(--z-bar);
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg);
    height: var(--header-h); padding: 0 max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); /* logo and cart line up with the page content */
    background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; min-height: 44px; color: var(--ink); }
.logo-mark {
    width: 52px; height: 38px; background: currentColor;
    -webkit-mask: url(/brand/monogram-mark.png) center / contain no-repeat; mask: url(/brand/monogram-mark.png) center / contain no-repeat;
}
.main-nav { display: none; gap: var(--space-xl); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; }
.main-nav a, .bottom-nav a { color: var(--muted); transition: color var(--t-base); }
.main-nav a { display: flex; align-items: center; min-height: 44px; }
[aria-current="page"] { color: var(--ink) !important; }
@media (hover: hover) { .main-nav a:hover { color: var(--ink); } }
.header-tools { display: flex; align-items: center; gap: var(--space-xs); }
.lang-menu { position: relative; }
.lang-menu summary {
    display: flex; align-items: center; gap: var(--space-sm); min-width: 48px; min-height: 48px; padding: 0 var(--space-md);
    font-size: var(--fs-sm); font-weight: 600; letter-spacing: .04em; color: var(--ink);
    list-style: none; cursor: pointer; border-radius: var(--radius-sm); touch-action: manipulation;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:active { transform: scale(.97); transition: transform var(--t-fast) ease-out; }
.lang-menu[open] summary { background: var(--surface); }
.lang-menu ul {
    position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; margin: 0; padding: var(--space-sm); list-style: none;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-pop); transform-origin: top right;
    animation: lang-menu-in var(--t-base) var(--ease);
}
.lang-menu li a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--space-md); border-radius: var(--radius-sm); }
.lang-menu li a[aria-current] { color: var(--accent); font-weight: 600; background: var(--accent-soft); }
@media (hover: hover) { .lang-menu li a:hover { background: var(--surface); } }
@keyframes lang-menu-in { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .lang-menu ul { animation-duration: 1ms; } }

/* Home fallback hero: photo on top (phone), text left / photo right (desktop) */
.hero { display: grid; width: 100%; padding-bottom: var(--space-3xl); } /* full-bleed photo on phones */
.hero-media { margin: 0; overflow: hidden; aspect-ratio: 6 / 5; background: var(--surface); }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero-copy { padding: var(--space-2xl) var(--space-lg) 0; text-align: center; }
.hero-eyebrow { margin: 0 0 var(--space-md); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero-eyebrow .script { font-size: var(--fs-h2); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--accent); margin-right: var(--space-xs); }
.hero h1 { margin: 0; font-size: clamp(2.75rem, 11vw, 4.5rem); line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
.hero-sub { margin: var(--space-lg) auto var(--space-xl); max-width: 32ch; color: var(--muted); line-height: 1.6; }
/* Free-delivery note + link to the delivery page, on the hero and under the PDP buy button */
.delivery-line { margin: var(--space-md) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.delivery-line a { padding: var(--space-md) 0; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; } /* padding extends the tap area to 44px */
@media (min-width: 1024px) {
    .hero { grid-template-columns: 45fr 55fr; align-items: center; gap: var(--space-3xl); width: var(--content); padding-block: var(--space-3xl); }
    .hero-media { grid-column: 2; grid-row: 1; aspect-ratio: 1200 / 955; border-radius: var(--radius); }
    .hero-copy { grid-column: 1; grid-row: 1; padding: 0; text-align: left; }
    .hero-sub { margin-left: 0; }
}
.btn {
    display: inline-block; padding: var(--space-md) var(--space-2xl); border-radius: var(--radius-sm);
    background: var(--accent); color: var(--bg);
    min-height: 48px; font-size: var(--fs-md); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
    transition: background var(--t-base);
}
@media (hover: hover) { .btn:hover { background: var(--accent-dark); } }

.shelf, .page { padding-block: var(--space-3xl); }
.prose > * { max-width: 68ch; } /* text pages keep a readable measure on the shared left edge */
.shelf h2, .page h1 { margin: 0 0 var(--space-lg); font-size: var(--fs-h2); letter-spacing: -.02em; }
.page h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.2; letter-spacing: -.015em; } /* same size as the catalog heading */
.shelf { border-top: 1px solid var(--line); text-align: center; }
/* Signature swash (traced from the logo) as a hairline flourish under main headings; decorative only */
.page h1::after, .shelf h2::before, .shelf h2::after {
    content: ''; display: block; width: 128px; aspect-ratio: 1940 / 556;
    background: var(--rose); -webkit-mask: url(/brand/swash.svg) center / contain no-repeat; mask: url(/brand/swash.svg) center / contain no-repeat;
}
.page h1::after { margin-top: var(--space-sm); }
/* Centred section headings: mirrored flourishes on both sides, swept outward by motion.js via --swash (0 → 1) */
.shelf h2 {
    --swash-w: clamp(44px, 11vw, 112px); --swash-gap: clamp(10px, 2.5vw, 20px);
    position: relative; display: inline-block; max-width: calc(100% - 2 * (var(--swash-w) + var(--swash-gap)));
}
.shelf h2::before, .shelf h2::after {
    position: absolute; top: 50%; width: var(--swash-w); opacity: var(--swash, 1); pointer-events: none;
}
.shelf h2::before { right: calc(100% + var(--swash-gap)); transform: translateY(-50%) scaleX(var(--swash, 1)); transform-origin: right center; }
.shelf h2::after { left: calc(100% + var(--swash-gap)); transform: translate(calc(var(--swash-w) * var(--swash, 1)), -50%) scaleX(calc(-1 * var(--swash, 1))); transform-origin: left center; } /* mirrored, still growing from the title */

.site-footer { padding: var(--space-3xl) var(--space-lg) var(--space-2xl); text-align: center; border-top: 1px solid var(--line); }
.site-footer .script { margin: 0 0 var(--space-sm); font-size: 36px; }
.social { display: flex; justify-content: center; gap: var(--space-xl); margin-bottom: var(--space-md); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; }
.social a { display: inline-flex; align-items: center; min-height: 44px; }
.social a:hover { color: var(--accent-dark); }
.site-footer small { color: var(--muted); }

.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
    display: flex; height: var(--bar-bottom); padding-bottom: env(safe-area-inset-bottom);
    background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--line);
}
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 44px; font-size: var(--fs-xs); font-weight: 500; }
.bottom-nav svg { width: 24px; height: 24px; }

@media (min-width: 900px) {
    :root, :root:has(.buy-bar) { --bar-bottom: 0px; --buy-h: 0px; } /* no fixed bottom bars on desktop */
    :root { --gutter: var(--space-2xl); }
    .main-nav { display: flex; }
    .bottom-nav { display: none; }
}

/* Hero slider */
.hero-slider { position: relative; }
.slides { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; border-radius: var(--radius); flex: 0 0 100%; scroll-snap-align: start; display: block; aspect-ratio: 16 / 9; max-height: 70vh; overflow: hidden; background: var(--line); }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide-copy { position: absolute; inset: auto 0 0 0; display: grid; justify-items: start; gap: var(--space-sm); padding: var(--space-3xl) var(--space-lg) var(--space-2xl); color: var(--on-media); background: linear-gradient(to top, var(--media-shade), transparent); }
.slide-title { font: 500 clamp(1.75rem, 6vw, 3.25rem)/1.1 'Cormorant Garamond', Georgia, serif; letter-spacing: -.01em; }
.slide-sub { max-width: 40ch; font-size: var(--fs-base); line-height: 1.5; }
.slide-dots { position: absolute; inset: auto 0 8px 0; display: flex; justify-content: center; }
.slide-dots button { position: relative; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
.slide-dots button::after { content: ''; position: absolute; inset: 17px; background: color-mix(in srgb, var(--on-media) 70%, transparent); border: 1px solid var(--media-shade); border-radius: 50%; transition: transform var(--t-slow) var(--ease); }
.slide-dots button[aria-current]::after { background: var(--on-media); transform: scale(1.5); }
.slide-dots button:active { transform: scale(.97); transition: transform var(--t-fast) ease-out; }
.slide-dots button:focus-visible { outline: 3px solid var(--accent); outline-offset: -4px; }

/* Instagram grid */
.insta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); margin-bottom: var(--space-xl); }
.insta-grid a { display: block; border-radius: var(--radius); aspect-ratio: 1; overflow: hidden; background: var(--line); touch-action: manipulation; }
.insta-grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.insta-grid a:active img { transform: scale(.97); transition-duration: var(--t-fast); }
@media (hover: hover) { .insta-grid a:hover img { transform: scale(1.04); } }
@media (min-width: 700px) { .insta-grid { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) {
    .slides { scroll-behavior: auto; }
    .slide-dots button::after, .insta-grid img { transition: none; }
    .insta-grid a:hover img, .insta-grid a:active img { transform: none; }
}

/* ---- Catalog, product cards, product page ---- */
.catalog, .pdp { padding-block: var(--space-xl) var(--space-3xl); }
.catalog-head h1 { margin: 0 0 var(--space-lg); font-size: clamp(2rem, 6vw, 3rem); line-height: 1.2; letter-spacing: -.015em; }
/* Count left, sort right, on the grid's own column so both line up with the products */
.toolbar { display: flex; align-items: center; gap: var(--space-md); min-height: 44px; margin-bottom: var(--space-lg); }
.results-count { flex: 1; min-width: 0; margin: 0; font-size: var(--fs-md); }
.toolbar .sort { margin-left: auto; }
.sort-label { display: none; }
.btn-line, .sort select, .price-inputs input {
    min-height: 44px; padding: 0 var(--space-lg); font: inherit; font-size: var(--fs-base); color: var(--ink);
    background: transparent; border: 1px solid var(--line-control); border-radius: var(--radius-sm); touch-action: manipulation;
}
.btn-line { display: inline-flex; align-items: center; gap: var(--space-sm); cursor: pointer; transition: transform var(--t-fast) ease-out; }
.sort { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; color: var(--muted); font-size: var(--fs-md); }
.sort select { min-width: 0; max-width: 100%; padding-right: var(--space-sm); }
.btn:active, .btn-line:active, .card-product:active, .chip:active, .icon-btn:active { transform: scale(.97); transition: transform var(--t-fast) ease-out; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; font-family: inherit; cursor: pointer; touch-action: manipulation; }
.btn:disabled { background: var(--surface); color: var(--muted); cursor: not-allowed; }
.link, .link-btn { color: var(--accent); background: none; border: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; padding: 0 var(--space-sm); touch-action: manipulation; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: var(--fs-h3); line-height: 1.2; color: var(--ink); background: transparent; border: 0; cursor: pointer; touch-action: manipulation; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-md); }
.card-product { display: block; touch-action: manipulation; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); border-radius: var(--radius); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-top: var(--space-sm); font-size: var(--fs-base); line-height: 1.3; overflow-wrap: anywhere; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-sm); margin-top: 2px; font-size: var(--fs-base); }
.card-product .price { font-size: var(--fs-sm); }
.card-product .price > * { white-space: nowrap; } /* each price stays whole; the old price drops below only when the card is too narrow */
.card-product .price-was { font-size: var(--fs-xs); }
.price-now.sale { color: var(--accent); font-weight: 600; }
.price-was { color: var(--muted); font-size: var(--fs-md); }
.price-lg { font-size: var(--fs-lg); margin: var(--space-sm) 0 var(--space-lg); }
/* One badge style: SALE / SOLD OUT tags (.badge), accent variants for sale and for numeric counts (cart, active filters) */
.badge { display: inline-flex; align-items: center; justify-content: center; min-height: var(--badge-h); padding: 0 var(--space-sm); font-size: var(--fs-xs); font-weight: 600; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--bg); border-radius: var(--radius-sm); }
.badge-sale, .badge-count { color: var(--bg); background: var(--accent); }
.badge-count { min-width: var(--badge-h); letter-spacing: 0; border-radius: var(--radius-pill); }
.card-media .badge { position: absolute; left: var(--badge-inset); top: var(--badge-inset); }
.shelf .product-grid { text-align: left; margin-top: var(--space-xl); }
.shelf-more { margin-top: var(--space-xl); }

.empty-state { padding: var(--space-4xl) var(--space-lg); text-align: center; }
.empty-state p { margin: 0 0 var(--space-xl); color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); margin-top: var(--space-2xl); }
.pager a, .pager .gap { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 var(--space-md); color: var(--ink); border-radius: var(--radius-sm); }
.pager a.current { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

/* Chips (size, color, gender pickers) */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.chip { position: relative; display: inline-flex; touch-action: manipulation; transition: transform var(--t-fast) ease-out; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: var(--space-sm); min-width: 44px; min-height: 44px; padding: 0 var(--space-lg); justify-content: center; border: 1px solid var(--line-control); border-radius: var(--radius-sm); font-size: var(--fs-base); font-weight: 500; }
.chip input:checked + span { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip input:disabled { cursor: not-allowed; }
.chip input:disabled + span { color: var(--muted); text-decoration: line-through; opacity: .55; }
.swatch { display: inline-block; width: 16px; height: 16px; border: 1px solid var(--ink); border-radius: 50%; }
/* Two-column option list (colours): swatch + name left, count right */
.chips-grid { display: grid; grid-template-columns: 1fr 1fr; }
.chips-grid .chip { display: flex; }
.chips-grid .chip span { flex: 1; justify-content: flex-start; padding: 0 var(--space-md); }
fieldset { margin: 0 0 var(--space-xl); padding: 0; border: 0; }
legend { padding: 0; margin-bottom: var(--space-sm); font-size: var(--fs-sm); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Filter drawer: bottom sheet on mobile, static sidebar on desktop */
.scrim { position: fixed; inset: 0; z-index: var(--z-scrim); background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity var(--t-slow) var(--ease); }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-drawer); max-height: 88vh; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain;
    padding: var(--space-lg) var(--space-lg) 0; background: var(--bg); border-radius: var(--radius) var(--radius) 0 0;
    transform: translateY(100%); transition: transform var(--t-slow) var(--ease); visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer:not(.open) { transition: transform var(--t-slow) var(--ease), visibility 0s var(--t-slow); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: var(--space-lg); }
.drawer-head h2 { margin: 0; font-size: var(--fs-h3); }
.drawer-foot { position: sticky; bottom: 0; display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md) 0 calc(var(--space-lg) + env(safe-area-inset-bottom)); background: var(--bg); }
.drawer-foot .btn { flex: 1; } /* sits flush on the sheet edge so scrolled content never shows beneath it */
.cat-list { margin: 0; padding: 0; list-style: none; }
.cat-list a, .cat-list [aria-disabled] { display: flex; align-items: center; min-height: 44px; }
.cat-list .sub a, .cat-list .sub [aria-disabled] { padding-left: var(--space-lg); }
.cat-list a[aria-current] { color: var(--accent); font-weight: 600; }
.cat-list [aria-disabled] { color: var(--muted); opacity: .55; cursor: not-allowed; }
/* Facet counts: tabular digits; inline after the label in chips, right-aligned in their own column in lists */
.count { font-size: var(--fs-sm); font-weight: 400; line-height: 1.2; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-list .count, .check .count { margin-left: auto; padding-left: var(--space-sm); }
.chips-grid .count { margin-left: auto; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.price-inputs input { width: 100%; }
.check { display: flex; align-items: center; gap: var(--space-md); min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }
.check span { display: flex; flex: 1; align-items: center; }
html:has(body.sheet-open) { overflow: hidden; } /* lock on the root so the reserved gutter stays and nothing shifts */

/* Active filters: one removable pill per applied filter */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.pill { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 44px; padding: 0 var(--space-md) 0 var(--space-lg); font-size: var(--fs-sm); color: var(--accent); background: var(--accent-soft); border: 1px solid var(--line-control); border-radius: var(--radius-pill); touch-action: manipulation; }
.pill span { font-size: var(--fs-lg); line-height: 1.2; }

/* Product page */
.pdp { display: grid; gap: var(--space-xl); }
.gallery { position: relative; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); background: var(--surface); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img, .gallery-empty { flex: 0 0 100%; width: 100%; height: auto; /* beats the img height attribute so 4:5 holds */ aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: center; scroll-snap-stop: always; display: block; }
.gallery-nav { display: none; position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; font-size: var(--fs-h3); color: var(--ink); background: var(--bg); border: 0; border-radius: 50%; cursor: pointer; }
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
.gallery-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: var(--space-sm); }
.gallery-dots span { width: 8px; height: 8px; background: var(--bg); border: 1px solid var(--ink); border-radius: 50%; opacity: .7; transition: transform var(--t-slow) var(--ease), opacity var(--t-slow) var(--ease); }
.gallery-dots span.active { background: var(--accent); border-color: var(--accent); opacity: 1; transform: scale(1.3); }
.crumbs { font-size: var(--fs-sm); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.buy h1 { margin: var(--space-sm) 0 0; font-size: clamp(2rem, 7vw, 2.75rem); line-height: 1.2; letter-spacing: -.015em; }
.picker legend { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.picked { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
.picker legend .link-btn { text-transform: none; letter-spacing: 0; font-size: var(--fs-md); }
.form-msg { min-height: 1.5em; margin: 0 0 var(--space-md); color: var(--accent); }
.form-msg a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.desc h2 { font-size: var(--fs-h3); margin: var(--space-xl) 0 var(--space-sm); }
.desc p { margin: 0; color: var(--ink); line-height: 1.6; }
.buy-bar {
    position: fixed; left: 0; right: 0; bottom: var(--bar-bottom); z-index: var(--z-sticky);
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); height: var(--buy-h); padding: 0 var(--space-lg);
    background: var(--surface); border-top: 1px solid var(--line);
}
.buy-bar .price { flex-direction: column; gap: 0; margin: 0; }
.buy-bar .btn { flex: 1; max-width: 260px; white-space: nowrap; padding-inline: var(--space-md); }
.buy .delivery-line { margin-bottom: var(--space-xl); }

/* Size chart bottom sheet */
.sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-modal); max-height: 80vh; max-height: 80dvh; display: flex; flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom); background: var(--bg); border-radius: var(--radius) var(--radius) 0 0;
    transform: translateY(100%); transition: transform var(--t-slow) var(--ease); max-width: 640px; margin: 0 auto;
}
.sheet.open { transform: none; }
.sheet[hidden] { display: none; }
.sheet-scrim { z-index: var(--z-modal-scrim); }
.sheet-grab { display: flex; justify-content: center; padding: var(--space-sm) 0 var(--space-xs); touch-action: none; cursor: grab; }
.sheet-grab span { width: 40px; height: 5px; background: var(--rose); border-radius: var(--radius-sm); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--space-sm) 0 var(--space-lg); touch-action: none; }
.sheet-head h2 { margin: 0; font-size: var(--fs-h3); }
.sheet-body { overflow: auto; scrollbar-gutter: stable both-edges; padding: var(--space-sm) var(--space-lg) var(--space-xl); }
table.chart { width: 100%; border-collapse: collapse; font-size: var(--fs-base); text-align: center; }
.chart th, .chart td { padding: var(--space-md) var(--space-sm); border-bottom: 1px solid var(--line); }
.chart th { font-weight: 600; color: var(--muted); }
.chart tr > :first-child { text-align: left; font-weight: 600; }

.cart-link { position: relative; display: flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; color: var(--ink); }
.cart-link .badge { position: absolute; top: var(--space-xs); right: 0; }

@media (hover: hover) {
    .btn-line:hover, .pager a:hover, .pill:hover { background: var(--surface); }
    .chip input:not(:disabled):not(:checked):hover + span { border-color: var(--accent); }
    .cat-list a:hover, .crumbs a:hover { color: var(--accent); }
}
@media (min-width: 700px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl) var(--space-lg); }
    .card-product .price { font-size: var(--fs-md); }
    .card-product .price-was { font-size: var(--fs-sm); }
    .gallery-nav { display: block; }
}
@media (min-width: 900px) {
    .catalog { padding-block: var(--space-2xl) var(--space-4xl); }
    .catalog-body { display: grid; grid-template-columns: 320px 1fr; align-items: start; gap: var(--space-2xl); }
    .toolbar [data-open-filters], .drawer-head .icon-btn { display: none; }
    .sort-label { display: inline; }
    /* Sidebar stays in view while the grid scrolls, with its own scroll when taller than the window; padding keeps focus rings unclipped */
    .drawer {
        position: sticky; top: calc(var(--header-h) + var(--space-lg)); z-index: auto;
        max-height: calc(100vh - var(--header-h) - 2 * var(--space-lg)); max-height: calc(100dvh - var(--header-h) - 2 * var(--space-lg));
        margin: calc(-1 * var(--space-xs)); padding: var(--space-xs) var(--space-lg) var(--space-xs) var(--space-xs); overflow-y: auto; /* right padding: overlay scrollbars (Firefox, macOS) take no space, so they sit over padding, never over the counts */ scrollbar-width: thin; scrollbar-gutter: stable; overscroll-behavior: auto;
        transform: none; visibility: visible; transition: none; border-radius: 0;
    }
    .drawer-foot { position: static; padding-bottom: 0; }
    [data-instant] .drawer-foot { display: none; } /* filters apply as you pick; the pills above the grid carry Clear all */
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .catalog-body .scrim { display: none; }
    .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: var(--space-3xl); padding-block: var(--space-2xl) var(--space-4xl); }
    .buy { position: sticky; top: calc(var(--header-h) + var(--space-xl)); }
    .buy-bar { position: static; height: auto; padding: 0; margin-bottom: var(--space-md); background: none; border: 0; }
    .buy-bar .price { display: none; }
    .buy-bar .btn { max-width: none; }
    .sheet { bottom: 50%; transform: translateY(50%) scale(.96); opacity: 0; left: 0; right: 0; max-height: 80vh; border-radius: var(--radius); transition: transform var(--t-slow) var(--ease), opacity var(--t-slow) var(--ease); }
    .sheet.open { transform: translateY(50%); opacity: 1; }
}
@media (min-width: 900px) and (pointer: fine) { .cat-list a, .cat-list [aria-disabled] { min-height: 36px; } }
@media (prefers-reduced-motion: reduce) {
    .drawer, .sheet, .scrim, .gallery-dots span { transition: opacity var(--t-base) linear; }
    .drawer:not(.open), .sheet:not(.open) { opacity: 0; }
    .drawer.open, .sheet.open { opacity: 1; }
    .btn:active, .card-product:active, .chip:active, .icon-btn:active, .btn-line:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) { .scrim { background: rgb(60, 40, 30); } }
@media (prefers-contrast: more) {
    .chip span, .btn-line, .price-inputs input, .sort select { border-color: var(--ink); }
    .price-was, .muted, legend { color: var(--ink); }
}

/* Design review fixes: accessibility preferences for the shared chrome */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-reduced-transparency: reduce) {
    .site-header, .bottom-nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Cart, checkout, payment */
.stars { --size: 1.125rem; position: relative; display: inline-block; font-size: var(--size); line-height: 1.2; letter-spacing: .1em; vertical-align: middle; }
.stars::before, .stars::after { content: "\2605\2605\2605\2605\2605"; }
.stars::before { color: var(--star-off); }
.stars::after { position: absolute; left: 0; top: 0; width: calc(var(--stars) / 5 * 100%); overflow: hidden; white-space: nowrap; color: var(--accent); }
.rating-sum { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 44px; margin-bottom: var(--space-sm); }
.reviews { padding-bottom: var(--space-3xl); }
.reviews > * { max-width: 720px; }
.reviews h2 { margin: 0 0 var(--space-lg); font-size: var(--fs-h2); }
.review-list { display: grid; gap: var(--space-lg); margin: 0 0 var(--space-xl); padding: 0; list-style: none; }
.review-list li { padding: var(--space-lg); background: var(--surface); border-radius: var(--radius); }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); }
.review-head time { margin-left: auto; }
.review-list p { margin: var(--space-sm) 0 0; line-height: 1.6; overflow-wrap: anywhere; }
.review-item { padding: var(--space-lg) 0; border-top: 1px solid var(--line); }
.review-item > p { margin: 0 0 var(--space-sm); }
.rate { margin-bottom: var(--space-md); }
.rate legend { margin-bottom: var(--space-xs); font-weight: 600; }
.rate-stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; }
.rate label { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; font-size: var(--fs-h2); color: var(--star-off); cursor: pointer; touch-action: manipulation; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--accent); }
.rate input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.order > * { max-width: 720px; } /* single-column pages: heading and cards share one left edge */
.card-box { padding: var(--space-lg); background: var(--surface); border-radius: var(--radius); }
/* Customer cancel: a quiet disclosure, then a plum destructive confirm (two steps, no JS) */
.cancel-order summary { list-style: none; }
.cancel-order summary::-webkit-details-marker { display: none; }
.cancel-order form { margin-top: var(--space-md); }
.cancel-order button { color: var(--accent); border-color: var(--accent); }
.small { font-size: var(--fs-sm); }
.notice { margin: 0 0 var(--space-lg); padding: var(--space-md) var(--space-lg); color: var(--ink); background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.notice.warn, .note.warn, .form-msg.warn { color: var(--accent); }
.notice.warn { border-color: var(--accent); }

.field { display: grid; gap: var(--space-sm); margin-bottom: var(--space-lg); font-size: var(--fs-base); font-weight: 600; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 44px; padding: var(--space-sm) var(--space-md); font: inherit; font-weight: 400; color: var(--ink);
    background: var(--bg); border: 1px solid var(--muted); border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; }
.field :is(input, select, textarea):focus-visible { border-color: var(--accent); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--accent); border-width: 2px; }
.field small { font-weight: 400; }
.field-error { min-height: 0; font-size: var(--fs-md); font-weight: 500; color: var(--accent); }
.field-error:empty { display: none; }

.cart-empty { padding: var(--space-2xl) 0; text-align: center; }
.cart-layout, .checkout-layout { display: grid; gap: var(--space-xl); align-items: start; }
.cart-lines, .summary-lines { display: grid; gap: var(--space-md); margin: 0; padding: 0; list-style: none; }
.cart-line { display: grid; grid-template-columns: 80px 1fr; gap: var(--space-md) var(--space-lg); padding: var(--space-md); }
.cart-line img { width: 80px; height: 100px; object-fit: cover; border-radius: var(--radius-sm); background: var(--line); }
.cart-ph { width: 80px; height: 100px; background: var(--line); border-radius: var(--radius-sm); }
.cart-info { display: grid; gap: 2px; align-content: start; overflow-wrap: anywhere; }
.cart-controls { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-lg); }
.stepper { display: inline-flex; align-items: center; background: var(--bg); border: 1px solid var(--line-control); border-radius: var(--radius-sm); }
.stepper output { min-width: 32px; text-align: center; font-weight: 600; }
.stepper .icon-btn:disabled { color: var(--muted); opacity: .5; cursor: not-allowed; }
.summary { display: grid; gap: var(--space-xs); }
.summary h2 { margin: 0 0 var(--space-sm); font-size: var(--fs-h3); }
.summary-lines li { overflow-wrap: anywhere; }
.promo { display: grid; grid-template-columns: 1fr auto; gap: var(--space-sm); align-items: end; }
.promo .field { margin-bottom: 0; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: var(--space-sm) var(--space-lg); margin: var(--space-md) 0; }
.totals dt, .totals dd { margin: 0; }
.totals dd { text-align: right; }
.totals .grand { padding-top: var(--space-sm); font-size: var(--fs-lg); font-weight: 700; border-top: 1px solid var(--line); }
.btn.disabled, .btn[aria-disabled="true"] { background: var(--surface); color: var(--muted); cursor: not-allowed; pointer-events: auto; }
.summary .btn { width: 100%; }
.summary .cf-turnstile { margin: var(--space-sm) 0; }

.toast {
    position: fixed; left: 50%; bottom: calc(var(--bar-bottom) + var(--space-lg)); z-index: var(--z-toast);
    display: flex; align-items: center; gap: var(--space-md); max-width: calc(100% - 32px); padding: var(--space-xs) var(--space-sm) var(--space-xs) var(--space-lg);
    color: var(--bg); background: var(--ink); border-radius: var(--radius); transform: translateX(-50%);
}
.toast[hidden] { display: none; }
.toast .link-btn { color: var(--bg); }

.pay { display: grid; gap: var(--space-sm); margin-bottom: var(--space-xl); text-align: center; }
.pay h2, .receipt-form h2, .order .card-box h2 { margin: 0; font-size: var(--fs-h3); }
.amount { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(2.5rem, 12vw, 4rem); line-height: 1.2; color: var(--accent); }
.pay-card { display: grid; gap: var(--space-xs); margin: var(--space-sm) 0 0; }
.pay-card dt { font-size: var(--fs-sm); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.pay-card dd { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-sm) var(--space-lg); margin: 0 0 var(--space-sm); }
.card-number { font-size: var(--fs-lg); font-weight: 600; letter-spacing: .06em; user-select: all; }
.receipt-form { display: grid; gap: var(--space-md); margin-bottom: var(--space-xl); }
.receipt-form p { margin: 0; }
.file-pick { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: var(--space-md) var(--space-lg); font-weight: 600; text-align: center; background: var(--bg); border: 2px dashed var(--muted); border-radius: var(--radius); cursor: pointer; touch-action: manipulation; transition: transform var(--t-fast) ease-out; }
.file-pick:active { transform: scale(.97); }
.file-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.file-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.order .card-box { margin-bottom: var(--space-xl); }
.timeline { display: grid; gap: var(--space-sm); margin: var(--space-md) 0; padding-left: 0; list-style: none; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xs) var(--space-md); padding-left: var(--space-lg); }
.timeline li::before { content: ''; position: absolute; left: -6px; top: .5em; width: 10px; height: 10px; background: var(--accent); border-radius: 50%; }
.timeline time { color: var(--muted); }

@media (min-width: 900px) {
    .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
    .summary { position: sticky; top: calc(var(--header-h) + 24px); }
    .cart-line { grid-template-columns: 80px 1fr auto; }
    .cart-controls { grid-column: auto; flex-direction: column; align-items: flex-end; }
    .toast { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { .file-pick:active { transform: none; } }
@media (prefers-contrast: more) { .field input, .field select, .field textarea, .stepper { border-color: var(--ink); } }

/* Cloudflare Turnstile: reserve its height so the form doesn't jump when it loads */
.cf-turnstile { min-height: 65px; }

/* === Browse + wishlist (leg A) === */
.card-product { position: relative; }
.card-link { display: block; touch-action: manipulation; }
.wish-btn { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: var(--ink); background: transparent; border: 0; cursor: pointer; touch-action: manipulation; }
.wish-btn svg { padding: 6px; box-sizing: content-box; width: 22px; height: 22px; background: var(--bg); border-radius: 50%; transition: transform var(--t-base) var(--ease), color var(--t-base); }
.wish-btn:active svg { transform: scale(.9); }
.wish-btn[aria-pressed="true"] { color: var(--accent); }
.wish-btn[aria-pressed="true"] svg { fill: currentColor; }
.wish-link, .account-link { position: relative; display: flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; color: var(--ink); }
.wish-link .badge { position: absolute; top: var(--space-xs); right: 0; }
.buy-actions { display: flex; align-items: center; gap: var(--space-sm); }
.buy-actions .wish-btn { position: static; border: 1px solid var(--line-control); border-radius: var(--radius); }
.buy-actions .wish-btn svg { padding: 0; background: none; }
.avail { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-sm); margin: 0 0 var(--space-lg); }
.avail.in strong { color: var(--accent-dark); }
.avail.out strong { color: var(--muted); }
.picker legend { justify-content: flex-start; gap: var(--space-sm); }
.toast-add { bottom: calc(var(--bar-bottom) + var(--buy-h) + var(--space-lg)); width: min(420px, calc(100% - 32px)); justify-content: space-between; } /* left:50% halves the shrink-to-fit width, so give it a real one */
.toast-add .link-btn { flex: none; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
    .toast-add { animation: toast-add-in var(--t-slow) var(--ease); }
    @keyframes toast-add-in { from { opacity: 0; transform: translate(-50%, 12px); } }
}
.wish-empty { display: grid; justify-items: center; gap: var(--space-lg); padding: var(--space-2xl) 0; text-align: center; }
.wish-empty[hidden] { display: none; }
.wish-empty p { margin: 0; max-width: 32ch; }
.buy-bar .price > * { white-space: nowrap; }
.buy-bar .price { gap: 0 var(--space-sm); }

/* === Bag + checkout + order (leg B) === */
.steps { display: flex; justify-content: center; gap: var(--space-sm); margin: 0 0 var(--space-lg); padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: var(--space-xs); color: var(--muted); font-size: var(--fs-sm); }
.steps li + li::before { content: ''; width: 16px; height: 1px; background: var(--line); }
.step-dot { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; font-size: var(--fs-xs); font-weight: 600; border: 1px solid var(--line); border-radius: 50%; }
.steps .done { color: var(--ink); }
.steps .done .step-dot, .steps [aria-current="step"] .step-dot { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.steps [aria-current="step"] { color: var(--ink); font-weight: 600; }
.step-name { display: none; }
.steps [aria-current="step"] .step-name { display: inline; }
.cart-main { display: grid; gap: var(--space-xl); min-width: 0; }
.free-nudge { margin: 0; }
.free-nudge.ok { font-weight: 600; }
.pairs h2 { margin: 0 0 var(--space-md); font-size: var(--fs-h3); }
.remember { display: flex; align-items: center; gap: var(--space-sm); min-height: 44px; font-size: var(--fs-sm); }
.next-steps { margin-top: var(--space-sm); font-size: var(--fs-sm); color: var(--muted); }
.next-steps ol { margin: var(--space-xs) 0 0; padding-left: var(--space-lg); }
.timeline .upcoming { color: var(--muted); }
.timeline .upcoming::before { background: var(--line); }
.help-links { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
@media (min-width: 600px) { .step-name, .steps [aria-current="step"] .step-name { display: inline; } .steps { gap: var(--space-md); } .steps li + li::before { width: 32px; } }

/* === Customer account (Telegram login) === */
.account > * { max-width: 720px; }
.account .card-box { margin-bottom: var(--space-xl); }
.account .card-box h2 { margin: 0 0 var(--space-md); font-size: var(--fs-h3); }
.login-box { display: grid; justify-items: start; gap: var(--space-md); }
.login-box p { margin: 0; }
.login-code strong { display: block; margin-top: var(--space-xs); font-family: ui-monospace, monospace; font-size: 2rem; letter-spacing: .3em; color: var(--accent); font-variant-numeric: tabular-nums; }
.account-details { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-sm) var(--space-lg); margin: 0; }
.account-details dt { color: var(--muted); }
.account-details dd { margin: 0; overflow-wrap: anywhere; }
.account-orders { margin: 0; padding: 0; list-style: none; }
.account-orders li + li { border-top: 1px solid var(--line); }
.account-orders a { display: grid; grid-template-columns: 1fr auto; gap: var(--space-xs) var(--space-md); min-height: 48px; padding: var(--space-md) 0; color: var(--ink); }
.account-orders time, .account-orders .muted { font-size: var(--fs-sm); }
.account-total { grid-column: 2; grid-row: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .account-orders a:hover strong { color: var(--accent); } }
