:root {
    --brand-yellow: #fbd10a;
    --brand-orange: #e8890f;
    --brand-gray: #7a7566;
    --brand-dark: #241d13;
    --gradient-primary: linear-gradient(135deg, #fbd10a 0%, #e8890f 100%);
    --border: #ece3cd;
    --bg-muted: #fbf3e0;
    --text: #241d13;
    --text-muted: #8a8272;
    --danger: #b5402d;
    --success: #4b7a54;
    --on-accent: #211a0d;
    --bg-page: #fffcf5;
    --surface: #ffffff;
    --danger-bg: #fdf1ef;
    --danger-border: #f3c9c2;
    --success-bg: #eef8f1;
    --success-border: #bfe4cb;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 999px;
    --shadow: 0 2px 10px rgba(36, 29, 19, 0.06);
    --shadow-hover: 0 8px 24px rgba(232, 137, 15, 0.18);
    --font-heading: 'Manrope', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Dark theme: same accent hues (kept a touch brighter for contrast on a dark
   ground), inverted neutrals. --on-accent never flips here on purpose — the
   gradient buttons stay yellow/orange in both themes, so their text must
   stay dark in both themes too, or it goes illegible in dark mode. */
:root[data-theme="dark"] {
    --brand-yellow: #ffd83d;
    --brand-orange: #ff9d2e;
    --brand-gray: #a89f8b;
    --brand-dark: #f6efdd;
    --gradient-primary: linear-gradient(135deg, #ffd83d 0%, #ff9d2e 100%);
    --border: #3a3021;
    --bg-muted: #2c2416;
    --text: #f6efdd;
    --text-muted: #a89f8b;
    --danger: #ea7f6b;
    --success: #7fbf8c;
    --bg-page: #1c1710;
    --surface: #241e15;
    --danger-bg: #35201b;
    --danger-border: #5a3327;
    --success-bg: #1c2b1f;
    --success-border: #35503d;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 8px 24px rgba(255, 157, 46, 0.22);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --brand-yellow: #ffd83d;
        --brand-orange: #ff9d2e;
        --brand-gray: #a89f8b;
        --brand-dark: #f6efdd;
        --gradient-primary: linear-gradient(135deg, #ffd83d 0%, #ff9d2e 100%);
        --border: #3a3021;
        --bg-muted: #2c2416;
        --text: #f6efdd;
        --text-muted: #a89f8b;
        --danger: #ea7f6b;
        --success: #7fbf8c;
        --bg-page: #1c1710;
        --surface: #241e15;
        --danger-bg: #35201b;
        --danger-border: #5a3327;
        --success-bg: #1c2b1f;
        --success-border: #35503d;
        --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
        --shadow-hover: 0 8px 24px rgba(255, 157, 46, 0.22);
    }
}


* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg-page);
    line-height: 1.5;
}

a { color: var(--brand-orange); }

.wrap {
    max-width: 1208px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Floating "acrylic pill" header (2026-09-08 redesign — previous solid-gold
   bar backed up in design-backups/header-2026-09-08-before-glass-pill.css;
   toned down the same day after Jordi's first look ran too strong).
   Inset from all four sides of the viewport instead of bleeding edge-to-edge,
   rounded on all four corners, and built as translucent frosted glass
   (backdrop-filter blur) rather than a flat fill. Two separate light effects,
   kept deliberately faint: a soft orange/gold tint entering from the left
   edge (like sunlight hitting the side of a sheet of tinted plexiglass), and
   an unrelated diagonal white sheen band standing in for a glass surface
   reflection — neither should read as "colored", just as a hint of material. */
.site-header {
    position: relative;
    margin: 1px 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow: 0 6px 20px rgba(36, 29, 19, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* The glass fill lives on ::before rather than directly on .site-header.
   backdrop-filter (like transform/filter) makes the element it's set on a
   containing block for position:fixed descendants — .nav-mobile-panel is
   fixed specifically to escape this element's own overflow:hidden and reach
   the viewport (see that rule's own comment), and having backdrop-filter
   here too would silently re-trap and clip it invisible. Keeping the filter
   on a decorative pseudo-element instead means .site-header itself never
   carries a filter, so it never becomes that containing block. */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
        radial-gradient(70% 140% at 8% 15%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 60%),
        radial-gradient(55% 90% at 38% 82%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 65%),
        radial-gradient(120% 260% at -8% 50%, rgba(251, 209, 10, 0.5) 0%, rgba(232, 137, 15, 0.24) 28%, rgba(255, 255, 255, 0) 58%),
        rgba(255, 248, 230, 0.82);
    background-size: 180px 180px, auto, auto, auto, auto;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

@media (max-width: 760px) {
    .site-header {
        margin: 1px 10px 0;
        border-radius: 20px;
    }
}

/* Dark mode: same two-effect construction, on a translucent dark pane
   instead of a translucent light one. */
:root[data-theme="dark"] .site-header {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

:root[data-theme="dark"] .site-header::before {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
        radial-gradient(70% 140% at 8% 15%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 60%),
        radial-gradient(55% 90% at 38% 82%, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 65%),
        radial-gradient(120% 260% at -8% 50%, rgba(255, 216, 61, 0.16) 0%, rgba(255, 157, 46, 0.08) 26%, rgba(255, 255, 255, 0) 55%),
        rgba(36, 30, 21, 0.6);
    background-size: 180px 180px, auto, auto, auto, auto;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .site-header {
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: var(--shadow);
    }

    :root:not([data-theme="light"]) .site-header::before {
        background:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
            radial-gradient(70% 140% at 8% 15%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 60%),
            radial-gradient(55% 90% at 38% 82%, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 65%),
            radial-gradient(120% 260% at -8% 50%, rgba(255, 216, 61, 0.16) 0%, rgba(255, 157, 46, 0.08) 26%, rgba(255, 255, 255, 0) 55%),
            rgba(36, 30, 21, 0.6);
        background-size: 180px 180px, auto, auto, auto, auto;
    }
}

.header-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 16px 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-self: end;
}

@media (max-width: 760px) {
    .header-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: 14px;
    }

    .header-inner .header-actions {
        justify-self: stretch;
        justify-content: center;
        flex-wrap: wrap;
    }
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
}

.brand img {
    height: 56px;
    display: block;
}

/* Two pre-rendered logo files (only "CENTRE" differs — white vs. brand
   gold) rather than one image recolored via CSS filters, since exact-swap
   colors matter and a filter hack would drift off the real brand hex.
   SVG (vector-traced 2026-09-08 from the original raster, which pixelated
   on Retina/iPhone screens) rather than a raster now, so it stays crisp at
   any pixel density. Selectors are ".brand .brand-logo-*"
   (two classes) rather than bare ".brand-logo-*" (one class) so they
   reliably outrank ".brand img" (a class + an element) — otherwise that
   base rule's "display: block" wins on specificity and both logos show at
   once regardless of theme. */
.brand .brand-logo-dark {
    display: none;
}

:root[data-theme="dark"] .brand .brand-logo-light {
    display: none;
}

:root[data-theme="dark"] .brand .brand-logo-dark {
    display: block;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .brand .brand-logo-light {
        display: none;
    }

    :root:not([data-theme="light"]) .brand .brand-logo-dark {
        display: block;
    }
}

/* --on-accent is dark brown, correct on the gold header in light mode —
   but the dark-mode header isn't gold, so it needs a light color instead. */
.brand-tagline {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--on-accent);
}

:root[data-theme="dark"] .brand-tagline {
    color: var(--text);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .brand-tagline {
        color: var(--text);
    }
}

.search-form {
    display: flex;
    width: 100%;
    max-width: 480px;
    justify-self: center;
}

.search-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    background: var(--bg-page);
    color: var(--text);
    border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}

.search-form input:focus {
    outline: none;
    border-color: var(--brand-orange);
}

.search-form button {
    padding: 10px 18px;
    border: 1px solid rgba(178, 105, 12, 0.35);
    background: var(--gradient-primary);
    color: var(--on-accent);
    font-weight: 700;
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    cursor: pointer;
}

/* The button previews the theme a click switches TO, not the current one:
   on the light site it's a dark circle with a bright bulb (switch to dark);
   on the dark site it's a light circle with a bold dark bulb (switch to light). */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid transparent;
    background: #241d13;
    color: #fffcf5;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover {
    background: #3a2f1c;
}

:root[data-theme="dark"] .theme-toggle {
    background: #fffcf5;
    color: #1c1710;
}

:root[data-theme="dark"] .theme-toggle:hover {
    background: #f0e9d6;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle {
        background: #fffcf5;
        color: #1c1710;
    }

    :root:not([data-theme="light"]) .theme-toggle:hover {
        background: #f0e9d6;
    }
}

.lang-switch {
    display: flex;
    gap: 2px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 3px;
    flex-shrink: 0;
}

.lang-switch a {
    display: inline-block;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
}

.lang-switch a.active {
    background: var(--surface);
    color: var(--brand-dark);
    box-shadow: var(--shadow);
}

.cart-link {
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 700;
    background: var(--bg-muted);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
}

.cart-link:hover {
    border-color: var(--brand-orange);
}

.site-nav {
    position: relative;
    z-index: 1;
    padding: 10px 0 23px;
}

/* Mobile-only "Brands" / "Categories" summary pills — replaces the full
   desktop pill wall on narrow viewports. Each opens its own dropdown
   (position:absolute, capped height with its own scrollbar) so a long list
   (14 brands, 18 categories) can never get clipped or shove page content
   down the way an inline-expanding block did. Desktop never sees this bar;
   #nav-browse (the pill wall) only ever hides on narrow viewports. */
.nav-mobile-bar {
    display: none;
}

/* 1300px, not 760px: the desktop pill wall needs ~1150-1200px to lay every
   brand + category pill on one line each. Below that (a very common laptop
   window width — not just phones/tablets) it wrapped brands into an
   uneven 10+3 split, turning a 2-row nav into 3-4 rows. The two-pill
   dropdown covers that whole gap cleanly instead of only the narrow end. */
@media (max-width: 1300px) {
    #nav-browse {
        display: none;
    }

    .nav-mobile-bar {
        display: flex;
        gap: 10px;
        padding: 0 20px;
    }

    .nav-mobile-dropdown {
        position: relative;
        flex: 1;
        min-width: 0;
    }

    .nav-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px 16px;
        background: var(--gradient-primary);
        color: var(--on-accent);
        border: none;
        border-radius: var(--radius-pill);
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.02em;
        box-shadow: var(--shadow);
    }

    .nav-mobile-toggle svg {
        transition: transform 0.15s ease;
        flex-shrink: 0;
    }

    .nav-mobile-toggle[aria-expanded="true"] svg {
        transform: rotate(180deg);
    }

    /* position:fixed (not absolute) on purpose — .site-header sets
       overflow:hidden to contain its decorative gradient, which would clip
       an absolutely-positioned panel the moment it's a header descendant.
       Fixed positioning's containing block is the viewport, so it escapes
       that clipping entirely; nav-toggle.js sets top/left/width inline
       from the toggle button's own position since a fixed element can't
       anchor to a CSS-only offset the way an absolute one could. */
    .nav-mobile-panel {
        display: none;
        position: fixed;
        z-index: 200;
        flex-direction: column;
        max-height: 60vh;
        overflow-y: auto;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-hover);
        padding: 8px;
    }

    .nav-mobile-panel.nav-mobile-panel-open {
        display: flex;
    }

    .nav-mobile-panel a {
        display: block;
        padding: 10px 12px;
        color: var(--text);
        text-decoration: none;
        font-size: 14px;
        text-align: center;
        border-radius: var(--radius-sm);
    }

    .nav-mobile-panel a:active {
        background: var(--bg-muted);
    }
}

.nav-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 0 20px;
}

/* One row = one solid pill capsule, TONEO-style: rounded ends,
   a subtle internal gradient rather than a flat fill, items scroll inside
   the capsule instead of wrapping if the list runs long. */
.nav-pill-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

/* Sits directly on .site-header's own background (no box of its own), so
   its color has to track that background rather than the page's neutral
   text tokens: dark text in light mode (strong gold header), the usual
   muted tone in dark mode (still a mostly-neutral dark header there). */
.nav-label {
    color: var(--on-accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

:root[data-theme="dark"] .nav-label {
    color: var(--text-muted);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .nav-label {
        color: var(--text-muted);
    }
}

/* Flat, flush segmented buttons — same soft diagonal gradient as the search
   button (var(--gradient-primary)), no bevel/mechanical relief, just a
   hairline seam between buttons and rounding only at the two outer ends. */
.nav-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 0;
    max-width: 100%;
}

.nav-group a {
    color: var(--on-accent);
    text-decoration: none;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 8px 17px;
    /* Vertical (not diagonal) so every button reads the same top-to-bottom
       band regardless of its own width — a diagonal gradient repeated
       across many flush, differently-sized buttons cuts at a different
       point in each one and the row reads as a jagged mess. */
    background: linear-gradient(180deg, #fbd10a 0%, #e8890f 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.12);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    transition: filter 0.15s ease;
}

.nav-group a:first-child {
    border-top-left-radius: var(--radius-pill);
    border-bottom-left-radius: var(--radius-pill);
}

.nav-group a:last-child {
    border-top-right-radius: var(--radius-pill);
    border-bottom-right-radius: var(--radius-pill);
    border-right: none;
}

.nav-group a:hover {
    filter: brightness(1.06);
}

.nav-group a:active {
    filter: brightness(0.94);
}

main.wrap {
    padding: 32px 20px 64px;
    min-height: 60vh;
}

h1, h2, h3, h4,
.product-card-name {
    font-family: var(--font-heading);
    font-weight: 800;
}

h1 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--brand-dark);
}

/* The homepage's only heading — the tagline itself, sized like toneocolor's
   own display h1 rather than a regular page title. */
.home-hero-title {
    font-size: clamp(28px, 4vw, 50px);
    line-height: 1.15;
    margin: 8px auto 32px;
    text-align: center;
}

h2 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--brand-dark);
}

h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--brand-dark);
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.alert-error {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger);
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success);
}

.alert-info {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.filter-tabs {
    display: flex;
    gap: 6px;
    margin: 4px 0 20px;
}

.filter-tab {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.filter-tab:hover {
    color: var(--text);
}

.filter-tab.active {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.home-section {
    margin: 40px 0;
}

.home-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
}

.home-section-head h2 {
    margin: 0;
}

.home-section-seeall {
    flex-shrink: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--brand-orange);
    text-decoration: none;
    white-space: nowrap;
}

.home-section-seeall:hover {
    text-decoration: underline;
}

.product-card {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-decoration: none;
    color: var(--text);
    position: relative;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.product-card:hover {
    border-color: var(--brand-orange);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.product-card-image {
    position: relative;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 14px;
    box-sizing: border-box;
    /* Fixed white, not themed: product photos are shot on white, so the
       frame should always match that instead of flipping dark in dark mode. */
    background: #ffffff;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.product-gallery {
    position: relative;
}

.product-card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    z-index: 1;
}

.product-detail-badges {
    top: 12px;
    left: 12px;
}

.product-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    white-space: nowrap;
}

.product-badge--new { background: #16a34a; }
.product-badge--offer { background: #dc2626; }
.product-badge--favorite { background: #db2777; }
.product-badge--used { background: #6b7280; }
.product-badge--ex-demo { background: #0891b2; }
.product-badge--eol { background: #78716c; }
.product-badge--open-box { background: #7c3aed; }
.product-badge--in-stock { background: #0d9488; }

/* Status sub-filter bar on a brand/category listing: same "flush buttons,
   only the outer ends rounded" language as the main nav, but each button
   keeps its own badge color instead of the gold metal treatment. */
.status-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 4px 0 24px;
}

.status-filter-btn {
    color: #fff;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 9px 18px;
    border-right: 1px solid rgba(0, 0, 0, 0.12);
    transition: filter 0.15s ease;
}

.status-filter-btn:first-child {
    border-top-left-radius: var(--radius-pill);
    border-bottom-left-radius: var(--radius-pill);
}

.status-filter-btn:last-child {
    border-top-right-radius: var(--radius-pill);
    border-bottom-right-radius: var(--radius-pill);
    border-right: none;
}

.status-filter-btn:hover {
    filter: brightness(1.1);
}

.status-filter-btn.active {
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Active/inactive used to differ by a small brightness tweak on the button's
   own (different-per-button) color — too subtle to scan at a glance across
   8 different hues. Dimming every OTHER button instead, once one is picked,
   makes the active one pop by contrast rather than by a shade of its own
   color, and doubles as the "click any dimmed pill to change filter, or the
   lit one again to clear it" affordance. :has() keeps this pure-CSS, no
   template change needed to know "is anything active" at the bar level. */
.status-filter-bar:has(.status-filter-btn.active) .status-filter-btn:not(.active) {
    filter: grayscale(55%) brightness(0.62);
    opacity: 0.8;
}

.status-filter-bar:has(.status-filter-btn.active) .status-filter-btn:not(.active):hover {
    filter: grayscale(20%) brightness(0.9);
    opacity: 0.95;
}

.status-filter-btn--new { background: #16a34a; }
.status-filter-btn--offer { background: #dc2626; }
.status-filter-btn--favorite { background: #db2777; }
.status-filter-btn--used { background: #6b7280; }
.status-filter-btn--ex-demo { background: #0891b2; }
.status-filter-btn--eol { background: #78716c; }
.status-filter-btn--open-box { background: #7c3aed; }
.status-filter-btn--in-stock { background: #0d9488; }

.product-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card-noimage {
    color: var(--text-muted);
    font-size: 13px;
}

.product-card-noimage.large {
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-muted);
    border-radius: var(--radius);
}

.product-card-brand {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--brand-gray);
    letter-spacing: 0.04em;
    font-weight: 600;
}

.product-card-name {
    font-size: 18px;
    margin: 4px 0;
    color: var(--brand-dark);
}

.product-card-price {
    font-weight: 700;
    color: var(--brand-dark);
}

.product-card-price-tax {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.badge-outofstock {
    display: inline-block;
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-top: 6px;
    font-weight: 600;
}

.badge-instock {
    display: inline-block;
    background: var(--success-bg);
    color: var(--success);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-top: 6px;
    font-weight: 600;
}

.pagination {
    display: flex;
    gap: 6px;
    margin: 24px 0;
}

.pagination a {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
}

.pagination a.active {
    background: var(--gradient-primary);
    color: var(--on-accent);
    border-color: transparent;
}

/* Product detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 760px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
}

.product-gallery-main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 28px;
    box-sizing: border-box;
    margin: 0 0 12px;
    border: 2px solid var(--brand-orange);
    border-radius: var(--radius);
    background: #ffffff;
    cursor: zoom-in;
    transition: box-shadow 0.15s ease;
}

.product-gallery-main:hover {
    box-shadow: var(--shadow-hover);
}

.product-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-gallery-thumb {
    width: 64px;
    height: 64px;
    padding: 8px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.product-gallery-thumb.active {
    border-color: var(--brand-orange);
}

.product-gallery-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-detail-brand {
    text-transform: uppercase;
    font-size: 13px;
    color: var(--brand-gray);
    font-weight: 700;
    letter-spacing: 0.03em;
}

.product-detail-sku {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.product-detail-price {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--brand-dark);
}

.product-detail-price-tax {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.vat-note {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.product-warranty-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px 12px 6px 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
}

.product-warranty-badge img {
    flex-shrink: 0;
}

.product-warranty-badge span {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.product-award-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.product-award-badges img {
    height: 56px;
    width: auto;
    display: block;
}

.product-detail-info form {
    margin-bottom: 12px;
}

.product-detail-info label {
    display: block;
    margin-bottom: 10px;
}

.product-detail-info input[type="number"],
.product-detail-info select {
    width: 80px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-left: 8px;
    background: var(--surface);
    color: var(--text);
}

.product-detail-buy-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.product-detail-buy-row label {
    margin-bottom: 0;
}

.qty-option-backorder {
    color: var(--brand-orange);
}

.qty-split-note {
    font-size: 13px;
    color: var(--brand-orange);
    font-weight: 600;
    margin: 8px 0 0;
}

.cart-backorder-note {
    font-size: 12px;
    color: var(--brand-orange);
    font-weight: 600;
    margin: 6px 0 0;
    white-space: nowrap;
}

.stock-note {
    color: var(--success);
    font-size: 13px;
    font-weight: 600;
}

.stock-note-eu {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 400;
    margin-top: 2px;
}

.product-detail-short {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 4px 0 18px;
    max-width: 46ch;
}

.product-detail-notes {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg-muted);
    border-left: 3px solid var(--brand-orange);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin: 0 0 18px;
    max-width: 46ch;
}

/* ---- tabs ---- */
.product-tabs {
    margin-top: 48px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.product-tabs-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
}

.product-tab-btn {
    border: none;
    background: none;
    padding: 12px 4px;
    margin-right: 24px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.product-tab-btn:hover {
    color: var(--brand-dark);
}

.product-tab-btn.active {
    color: var(--brand-dark);
    border-bottom-color: var(--brand-orange);
}

.product-tab-panel {
    line-height: 1.6;
    color: var(--text);
}

.product-tab-panel p {
    max-width: 90ch;
}

.product-tab-panel[hidden] {
    display: none;
}

.product-tech-specs :is(ul, ol) {
    padding-left: 20px;
}

.product-tech-specs table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.product-tech-specs th,
.product-tech-specs td {
    border-bottom: 1px solid var(--border);
    padding: 6px 8px;
    text-align: left;
    font-size: 14px;
}

.product-tech-specs h3,
.product-tech-specs h4,
.product-detail-description h3,
.product-detail-description h4 {
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--brand-dark);
}

.product-detail-description p {
    margin: 0 0 14px;
}

.product-downloads-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-downloads-list li {
    margin-bottom: 10px;
}

.product-downloads-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
}

.product-downloads-list a:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

/* ---- lightbox ---- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(17, 13, 6, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
    z-index: 1000;
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #ffffff;
    border-radius: var(--radius-sm);
    padding: 20px;
    box-sizing: border-box;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fffcf5;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 252, 245, 0.92);
    color: var(--brand-orange);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.lightbox-nav:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.06);
}

.lightbox-nav[hidden] {
    display: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--on-accent);
    box-shadow: 0 4px 14px rgba(232, 137, 15, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(232, 137, 15, 0.4);
}

/* Save button dirty/clean state: intense gold with pending edits (default
   .btn-primary look), greyed-out "Saved" once the page matches the DB (on
   load, and right after a successful save reloads the page fresh). */
.btn-primary.is-saved {
    background: var(--bg-muted);
    color: var(--text-muted);
    box-shadow: none;
    cursor: default;
}

.btn-primary.is-saved:hover {
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--bg-muted);
}

.btn-link {
    border: none;
    background: none;
    color: var(--brand-orange);
    text-decoration: underline;
    padding: 10px 4px;
}

.actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
}

/* Cart & checkout tables */
table.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table.data-table th,
table.data-table td {
    border-bottom: 1px solid var(--border);
    padding: 12px 8px;
    text-align: left;
}

table.data-table td.num,
table.data-table th.num {
    text-align: right;
}

table.data-table tr.supplier-stock-mismatch {
    background: color-mix(in srgb, #dc2626 12%, transparent);
}

.download-relabel-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-label-input {
    flex: 1;
    min-width: 160px;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
}

.totals {
    width: 340px;
    margin-left: auto;
    border-collapse: collapse;
}

.totals td {
    padding: 8px;
}

.totals td.num {
    text-align: right;
}

.totals tr.grand-total td {
    border-top: 2px solid var(--brand-dark);
    font-size: 17px;
    font-weight: 800;
}

.bank-transfer-details {
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 24px 0;
}

.bank-transfer-details h2 {
    font-size: 16px;
    margin: 0 0 14px;
    color: var(--brand-dark);
}

.bank-transfer-fields {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    margin: 0;
}

.bank-transfer-fields dt {
    font-weight: 700;
    color: var(--text-muted);
}

.bank-transfer-fields dd {
    margin: 0;
    font-family: ui-monospace, monospace;
}

.admin-form {
    max-width: 420px;
    margin-top: 24px;
}

.admin-form label {
    display: block;
    margin-bottom: 14px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.checkout-form input:focus,
.checkout-form select:focus {
    outline: none;
    border-color: var(--brand-orange);
}

/* Product editor reads for long stretches at a time — bump body text up
   from the site-wide default so labels/inputs are comfortable to work in. */
.admin-form label,
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-form button {
    font-size: 16px;
}

.admin-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.admin-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.admin-breadcrumb a:hover {
    color: var(--brand-orange);
    text-decoration: underline;
}

.admin-breadcrumb-sep {
    color: var(--border);
}

.admin-breadcrumb-current {
    color: var(--text);
    font-weight: 600;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-page-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-listings-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.related-listings-list li {
    font-size: 13.5px;
}

.admin-page-header h1 {
    margin-bottom: 0;
}

.product-edit-form {
    max-width: 1120px;
}

.product-edit-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 860px) {
    .product-edit-grid {
        grid-template-columns: 1fr;
    }
}

.product-edit-sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-price-block,
.admin-flags {
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-top: 0;
}

.admin-price-block h3,
.admin-flags h3 {
    margin: 0 0 14px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

#price-net,
#price-gross,
#stock-quantity {
    font-size: 22px;
    font-weight: 700;
}

.admin-price-toggle {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

.admin-price-toggle input {
    width: auto !important;
    margin: 0 !important;
}

.admin-flag {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin-bottom: 10px !important;
}

.admin-flag input {
    width: auto !important;
    margin: 0 !important;
}

.admin-flag-sub {
    margin: -4px 0 12px 26px;
}

.admin-flag-sub label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

.admin-flag-sub input {
    width: 64px !important;
    display: inline-block !important;
    margin: 0 !important;
}

.admin-extra-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin-bottom: 18px;
}

.admin-extra-categories-label {
    flex-basis: 100%;
    font-weight: 600;
    margin-bottom: 4px;
}

.admin-extra-categories .admin-flag {
    margin-bottom: 6px !important;
}

.dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    text-align: center;
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: 10px;
    font-size: 14px;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.dropzone.dragover {
    border-color: var(--brand-orange);
    background: var(--bg-muted);
    color: var(--text);
}

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

.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 760px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

.checkout-form label {
    display: block;
    margin-bottom: 14px;
}

.checkout-form input,
.checkout-form select {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
}

.checkout-form h2 {
    font-size: 16px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--brand-dark);
}

.checkout-summary {
    background: var(--bg-muted);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
}

.hint {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 400;
}

.payment-methods {
    flex-direction: column;
    align-items: flex-start;
    max-width: 320px;
}

.payment-method-choice {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.payment-method-option {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-bottom: 0 !important;
}

.payment-method-option input[type="radio"] {
    width: auto !important;
    margin: 0 !important;
    flex-shrink: 0;
}

.payment-method-option:has(input:checked) {
    border-color: var(--brand-orange);
    background: var(--bg-muted);
}

.payment-methods form {
    width: 100%;
}

.payment-methods button {
    width: 100%;
}

.payment-card-icons {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.payment-icon {
    height: 36px;
    width: auto;
    border-radius: 4px;
}

.payment-security-note {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 12px;
    max-width: 420px;
    margin-top: 14px;
}

.payment-security-note svg {
    flex-shrink: 0;
    opacity: 0.8;
}

/* Admin */
.admin-nav {
    display: flex;
    gap: 4px;
    flex: 1;
    flex-wrap: wrap;
}

.admin-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
}

.admin-nav a:hover {
    color: var(--brand-dark);
    background: var(--bg-muted);
}

.admin-nav a.active {
    color: var(--brand-dark);
    background: var(--bg-muted);
}

.admin-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.admin-toolbar input,
.admin-toolbar select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
}

.admin-toolbar-spacer {
    flex: 1;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0 32px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    display: block;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--brand-dark);
    font-variant-numeric: tabular-nums;
}

.stat-card-label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}

.thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.status-pill {
    display: inline-block;
    padding: 3px 11px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-pill.status-pending_payment { background: var(--bg-muted); color: var(--text-muted); }
.status-pill.status-paid { background: var(--success-bg); color: var(--success); }
.status-pill.status-fulfilled { background: var(--success-bg); color: var(--success); }
.status-pill.status-expired { background: var(--danger-bg); color: var(--danger); }
.status-pill.status-cancelled { background: var(--danger-bg); color: var(--danger); }
.status-pill.status-refunded { background: var(--danger-bg); color: var(--danger); }
.status-pill.status-awaiting_bank_transfer { background: #fdf1df; color: #b2690c; }
.status-pill.status-backordered { background: #fdf1df; color: #b2690c; }
.status-pill.status-manual { background: var(--bg-muted); color: var(--brand-orange); border: 1px solid var(--border); }

/* Order pipeline — the two payment stages are read-only pills (never a
   button, since faking "payment validated" must never be a UI action), the
   six fulfillment stages are real clickable buttons, not sequentially
   gated — any of them can be clicked at any time, whichever the order
   actually needs next. */
.fulfillment-pills {
    display: flex;
    gap: 10px;
    margin: 10px 0 16px;
}

.fulfillment-pill {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--border);
}

.fulfillment-pill--done { background: var(--success-bg); color: var(--success); border-color: transparent; }
.fulfillment-pill--pending { background: var(--bg-muted); color: var(--text-muted); }

.fulfillment-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.fulfillment-btn {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.15s, transform 0.1s;
}

.fulfillment-btn:hover { opacity: 0.85; }
.fulfillment-btn:active { transform: scale(0.98); }

.fulfillment-btn.is-current {
    opacity: 1;
    box-shadow: 0 0 0 3px var(--bg-page), 0 0 0 5px currentColor;
}

.fulfillment-btn--order-processed { background: #3b82f6; }
.fulfillment-btn--shipping-in-progress { background: #f59e0b; }
.fulfillment-btn--shipped { background: #0891b2; }
.fulfillment-btn--invoice-sent { background: #7c3aed; }
.fulfillment-btn--closed { background: #16a34a; }
.fulfillment-btn--refunded { background: #dc2626; }

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

.row-actions form { display: inline; }

.text-muted { color: var(--text-muted); }

.image-strip {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.image-strip figure {
    margin: 0;
    text-align: center;
    position: relative;
}

.image-strip img {
    width: 100px;
    height: 100px;
    padding: 8px;
    box-sizing: border-box;
    object-fit: contain;
    background: #ffffff;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.image-strip figure.is-cover img {
    border-color: var(--brand-orange);
    border-width: 2px;
}

.image-strip .cover-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--brand-orange);
    color: #1a1a1a;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.image-strip figcaption {
    margin-top: 6px;
}

.image-strip .btn-link {
    font-size: 12px;
    padding: 2px;
}

/* Footer */
/* Deliberately theme-invariant (like .theme-toggle and the nav buttons) —
   always a dark band regardless of light/dark mode, so it must NOT use
   --brand-dark, which is itself a theme-adaptive token (light in dark mode). */
.site-footer {
    margin-top: 48px;
    background: #241d13;
    color: #d8cfbe;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 44px 20px 32px;
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-yellow);
    margin: 0 0 14px;
}

.footer-col address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.6;
    color: #d8cfbe;
}

.footer-col p {
    margin: 10px 0 0;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-col a {
    color: #d8cfbe;
    text-decoration: none;
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--brand-yellow);
    text-decoration: underline;
}

.footer-badge-legend li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-badge-legend .product-badge {
    flex-shrink: 0;
    min-width: 56px;
    text-align: center;
}

.footer-badge-legend span:last-child {
    font-size: 12.5px;
    color: #b3a992;
    line-height: 1.3;
}

.footer-bottom {
    padding: 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #a89f8b;
}

/* Legal / static content pages (terms, privacy, delivery, etc.) */
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.legal-intro {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.legal-content {
    line-height: 1.7;
    color: var(--text);
}

.legal-content h2 {
    font-size: 18px;
    margin: 32px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin: 0 0 14px;
}

.legal-content ul {
    margin: 0 0 14px;
    padding-left: 22px;
}

.legal-content li {
    margin-bottom: 6px;
}

.legal-content strong {
    color: var(--brand-dark);
}

.legal-content a {
    word-break: break-word;
}
