/* ---------------------------------------------------------------------------
   SjiekGeprint design system — modern CSS, no framework.
   Warm, light-only theme (cream + orange + sage), cross-document view
   transitions, and scroll-driven reveal animations (progressive enhancements).
--------------------------------------------------------------------------- */

@view-transition {
    navigation: auto;
}

:root {
    color-scheme: light only;

    /* SjiekGeprint palette: warm cream surfaces, brand orange accent, sage-green
       secondary, near-black ink and a soft grey for muted text. Light-only. */
    --bg: #faf5ee;
    --surface: #ffffff;
    --ink: #1a1a1a;
    --muted: #6b6b6b;
    --line: #e8ddcd;

    --cream: #f4e8db;
    --brand-green: #639b8f;

    /* Brand orange (#f28c00) as a light→brand→deep ramp. --brand-b is the core
       accent (focus rings, borders, links), so it recolors the whole UI at once. */
    --brand-a: #ffab3d;
    --brand-b: #f28c00;
    --brand-c: #d97400;
    --brand-gradient: linear-gradient(120deg, var(--brand-a), var(--brand-b) 52%, var(--brand-c));

    --radius: 1.25rem;
    --radius-sm: 0.75rem;
    --shadow: 0 1px 2px rgb(26 26 26 / 0.06), 0 8px 24px -12px rgb(26 26 26 / 0.18);
    --shadow-lift: 0 2px 4px rgb(26 26 26 / 0.08), 0 20px 40px -16px rgb(26 26 26 / 0.28);

    --font-display: "Nunito", system-ui, sans-serif;
    --font-body: "Nunito", system-ui, sans-serif;
    --font-accent: "Playfair Display", Georgia, serif;

    /* Print-layer motif: fine horizontal lines, like the layers of a 3D print. */
    --layer-lines: repeating-linear-gradient(
        to bottom,
        transparent 0 7px,
        color-mix(in srgb, var(--ink) 5%, transparent) 7px 8px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Without this, WebKit/Chrome mobile auto-inflate text in narrow flex columns
       (e.g. Huisnummer/Postcode next to their wider siblings) when the viewport is
       short — most visible in landscape. That desyncs label/input sizing and
       breaks the row alignment; this is invisible in desktop devtools emulation
       and headless testing, only on real mobile browsers. */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Global: both MainLayout and AdminLayout render their own #blazor-error-ui div, so
   this must live here rather than in a *.razor.css file — CSS isolation would scope
   the rule to just one of the two layouts, leaving the banner permanently visible
   (not display:none) on the other. */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    color: #1c1917;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); }
h3 { font-size: 1.15rem; }

h1:focus {
    outline: none;
}

p {
    margin: 0 0 1em;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1200px, 100% - 2.5rem);
    margin-inline: auto;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.site-main {
    flex: 1;
    width: min(1200px, 100% - 2.5rem);
    margin-inline: auto;
    padding-block: 2rem 5rem;
}

/* --- Announcement bar ---------------------------------------------------- */

.announce {
    background: var(--ink);
    color: color-mix(in srgb, var(--surface) 92%, var(--ink));
}

.announce-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem 1.5rem;
    padding-block: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.announce-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.announce-item svg {
    width: 0.95rem;
    height: 0.95rem;
    color: var(--brand-a);
}

@media (max-width: 640px) {
    .announce-item.announce-secondary {
        display: none;
    }
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.site-header-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-block: 0.8rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

/* SjiekGeprint logo (stacked wordmark + nozzle, transparent PNG); sized by height. */
.brand-logo {
    height: 3rem;
    width: auto;
    display: block;
    object-fit: contain;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-name em {
    font-style: normal;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 26rem;
    margin-inline: auto;
    padding: 0.45rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search:focus-within {
    border-color: var(--brand-b);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-b) 20%, transparent);
    color: var(--ink);
}

.header-search svg {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.header-search input {
    all: unset;
    flex: 1;
    min-width: 0;
    color: var(--ink);
}

.header-search input::placeholder {
    color: var(--muted);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.header-nav a {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

.header-nav a:hover {
    background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.header-nav a.active {
    background: var(--ink);
    color: var(--bg);
}

/* Category dropdown in the header (US §7) — pure CSS/no-JS via <details>. */
.cats-menu {
    position: relative;
}

.cats-menu summary {
    list-style: none;
    cursor: pointer;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s;
    user-select: none;
}

.cats-menu summary::-webkit-details-marker {
    display: none;
}

.cats-menu summary::after {
    content: "";
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-left: 0.4rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-1px) rotate(45deg);
}

.cats-menu[open] summary,
.cats-menu summary:hover {
    background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.cats-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    z-index: 40;
    min-width: 12rem;
    display: flex;
    flex-direction: column;
    padding: 0.4rem;
    border-radius: 0.9rem;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--ink) 14%, transparent);
}

.cats-panel a {
    padding: 0.5rem 0.75rem;
    border-radius: 0.6rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.cats-panel a:hover {
    background: color-mix(in srgb, var(--ink) 7%, transparent);
}

@media (max-width: 640px) {
    .site-header-inner {
        flex-wrap: wrap;
        row-gap: 0.6rem;
    }

    .header-search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: clip;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background:
        radial-gradient(60rem 26rem at 85% -20%, color-mix(in srgb, var(--brand-c) 16%, transparent), transparent 60%),
        radial-gradient(48rem 22rem at 0% 110%, color-mix(in srgb, var(--brand-a) 14%, transparent), transparent 60%),
        var(--surface);
    padding: clamp(2.5rem, 2rem + 4vw, 5.5rem) clamp(1.5rem, 1rem + 3vw, 4rem);
    margin-block: 1rem 3.5rem;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--layer-lines);
    mask-image: linear-gradient(115deg, transparent 45%, black 90%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 34rem;
    z-index: 1;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    margin-bottom: 1.25rem;
    background: color-mix(in srgb, var(--bg) 60%, transparent);
}

.hero-kicker::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--brand-gradient);
}

.hero h1 em {
    font-style: normal;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.usp-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.25rem;
}

.usp {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    background: color-mix(in srgb, var(--bg) 70%, transparent);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
}

.usp svg {
    width: 1rem;
    height: 1rem;
    color: var(--brand-b);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 999px;
    font: 600 1rem var(--font-body);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--ink);
    color: var(--bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}

.btn-ghost:hover {
    border-color: var(--ink);
}

/* --- Section headings ----------------------------------------------------- */

.section {
    margin-block: 3.5rem;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-head h2 {
    margin: 0;
}

.section-head a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--muted);
}

.section-head a:hover {
    color: var(--ink);
}

/* --- Cards (categories & products) ---------------------------------------- */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
    gap: 1.25rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
    gap: 1.25rem;
}

.category-card,
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: clip;
    transition: transform 0.2s, box-shadow 0.25s, border-color 0.25s;
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: color-mix(in srgb, var(--brand-b) 45%, var(--line));
}

.category-card-image,
.product-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: scale 0.4s;
}

.category-card:hover .category-card-image,
.product-card:hover .product-card-image {
    scale: 1.04;
}

.category-card-body,
.product-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.15rem 1.15rem;
}

.category-card-name,
.product-card-name {
    margin: 0;
    font-size: 1.05rem;
}

/* Colour preview on the product card (US §7). */
.product-card-swatches {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0.15rem 0 0.1rem;
}

.card-swatch {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent);
}

.card-swatch-more {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
}

.category-card-description {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Homepage: hero visual, steps, features, CTA band, FAQ --------------- */

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
    align-items: center;
}

.hero-grid .hero-content {
    max-width: none;
}

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

    .hero-visual {
        order: -1;
    }
}

/* A pure-CSS "personalised lightbox" mock — no photo needed. */
.hero-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
}

.hero-lightbox {
    position: relative;
    width: 84%;
    aspect-ratio: 5 / 4;
    border-radius: calc(var(--radius) * 0.9);
    background:
        radial-gradient(130% 90% at 50% 12%, color-mix(in srgb, var(--brand-b) 24%, transparent), transparent 70%),
        var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    display: grid;
    place-items: center;
    overflow: clip;
}

.hero-lightbox::before {
    content: "";
    position: absolute;
    bottom: 9%;
    width: 48%;
    height: 5px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ink) 16%, transparent);
    filter: blur(1px);
}

.hero-lightbox-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 1rem + 6vw, 3.6rem);
    letter-spacing: -0.02em;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px color-mix(in srgb, var(--brand-b) 40%, transparent);
}

.hero-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    box-shadow: var(--shadow);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
}

.hero-chip-swatches {
    top: 4%;
    left: -0.5rem;
}

.hero-chip-price {
    bottom: 6%;
    right: -0.5rem;
}

.hero-chip-swatches i {
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    background: var(--sw);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent);
}

/* Shared icon badge for steps + features. */
.icon-badge {
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border-radius: 0.9rem;
    background: color-mix(in srgb, var(--brand-b) 12%, var(--surface));
    color: var(--brand-b);
    margin-bottom: 0.95rem;
}

.icon-badge svg {
    width: 1.45rem;
    height: 1.45rem;
}

/* Steps */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
    gap: 1.25rem;
    counter-reset: step;
}

.step {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 1.4rem;
    right: 1.5rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    color: color-mix(in srgb, var(--brand-b) 55%, var(--line));
}

.step h3,
.feature h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.step p,
.feature p {
    margin: 0;
    color: var(--muted);
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
    gap: 1.25rem;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
    transition: transform 0.2s, border-color 0.25s, box-shadow 0.25s;
}

.feature:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--brand-b) 45%, var(--line));
    box-shadow: var(--shadow-lift);
}

.feature p {
    font-size: 0.95rem;
}

/* CTA band */
.cta-band {
    position: relative;
    overflow: clip;
    border-radius: var(--radius);
    background: var(--brand-gradient);
    color: #fff;
    padding: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
    margin-block: 3.5rem;
    text-align: center;
}

.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0 7px,
        rgb(255 255 255 / 0.08) 7px 8px);
    mask-image: linear-gradient(115deg, transparent 40%, black 95%);
    pointer-events: none;
}

.cta-band-inner {
    position: relative;
    z-index: 1;
    max-width: 42rem;
    margin-inline: auto;
}

.cta-band h2 {
    color: #fff;
    margin: 0 0 0.6rem;
    font-size: clamp(1.5rem, 1rem + 2vw, 2.2rem);
}

.cta-band p {
    color: rgb(255 255 255 / 0.92);
    margin: 0 auto 1.6rem;
}

.cta-band .btn-primary {
    background: #fff;
    color: var(--ink);
}

/* FAQ */
.faq {
    display: grid;
    gap: 0.75rem;
    max-width: 48rem;
}

.faq details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0 1.35rem;
    transition: border-color 0.2s;
}

.faq details[open] {
    border-color: color-mix(in srgb, var(--brand-b) 40%, var(--line));
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    padding: 1.05rem 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    font-size: 1.5rem;
    line-height: 1;
    color: var(--brand-b);
    transition: transform 0.2s;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq details p {
    margin: 0 0 1.15rem;
    color: var(--muted);
}

.product-card-price {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: fit-content;
}

/* Badges & sale display (plan §4). */
.product-card-media {
    position: relative;
    overflow: clip;
}

.badge {
    position: absolute;
    top: 0.6rem;
    z-index: 2;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    box-shadow: 0 1px 4px rgb(0 0 0 / 0.18);
}

.badge-sale {
    left: 0.6rem;
    background: var(--brand-gradient);
    color: #fff;
}

.badge-marketing {
    right: 0.6rem;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
}

.product-gallery .badge {
    top: 1rem;
}

.product-gallery .badge-sale {
    left: 1rem;
}

.product-gallery .badge-marketing {
    right: 1rem;
}

/* Cross-sell section (plan §3): a light rule separates it from the content above. */
.related-section {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}

/* The "van"-price sits inside a gradient text-clip parent; force its own colour. */
.price-was {
    margin-left: 0.5rem;
    font-weight: 500;
    text-decoration: line-through;
    color: var(--muted);
    -webkit-text-fill-color: var(--muted);
}

/* Scroll-driven reveal — progressive enhancement, respects reduced motion. */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .category-card,
        .product-card {
            animation: card-reveal linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 40%;
        }
    }
}

@keyframes card-reveal {
    from {
        opacity: 0;
        translate: 0 1.5rem;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}

/* --- Breadcrumbs, pagination ----------------------------------------------- */

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.breadcrumbs a:hover {
    color: var(--ink);
}

.pagination {
    display: flex;
    gap: 0.4rem;
    margin-top: 2rem;
}

.pagination a,
.pagination-current {
    display: grid;
    place-items: center;
    min-width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-weight: 600;
    font-size: 0.95rem;
}

.pagination a:hover {
    border-color: var(--ink);
}

.pagination-current {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

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

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 1rem + 3vw, 4rem);
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 5.5rem;
}

.product-gallery-main {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.product-gallery-thumbs {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.product-gallery-thumbs img {
    width: 4.5rem;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}

.product-info h1 {
    margin-bottom: 0.35rem;
}

.product-price {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: fit-content;
    margin-bottom: 0.75rem;
}

.product-lead-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    background: var(--surface);
}

.product-lead-time::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #22c55e;
}

.product-description {
    color: var(--muted);
    border-top: 1px solid var(--line);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

/* --- Configurator (Epic 2) ----------------------------------------------------- */

.thumb-button {
    all: unset;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.thumb-button img {
    width: 4.5rem;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--line);
    transition: border-color 0.2s;
}

.thumb-button.is-active img,
.thumb-button:hover img {
    border-color: var(--brand-b);
}

.configurator {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    border-top: 1px solid var(--line);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.config-option-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.config-optional {
    font-weight: 400;
    color: var(--muted);
}

.swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.swatch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font: 500 0.95rem var(--font-body);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.swatch:hover {
    border-color: color-mix(in srgb, var(--brand-b) 50%, var(--line));
    transform: translateY(-1px);
}

.swatch.is-selected {
    border-color: var(--brand-b);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-b) 22%, transparent);
}

.swatch-visual {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
    object-fit: cover;
    flex-shrink: 0;
}

.swatch-modifier {
    font-size: 0.85rem;
    color: var(--muted);
}

.swatch-finish {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
    background: color-mix(in srgb, var(--brand-a) 14%, transparent);
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
}

.config-text-input {
    width: 100%;
    max-width: 22rem;
    padding: 0.65rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font: 400 1rem var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.config-text-input:focus {
    outline: none;
    border-color: var(--brand-b);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-b) 22%, transparent);
}

.char-counter {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.personalization-notice {
    margin: 0.6rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
    border-left: 3px solid var(--brand-a);
    padding-left: 0.75rem;
}

.config-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.config-checkbox input {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    accent-color: var(--brand-b);
}

/* The terms/consent checkbox sits inside a .form-field, whose `label { display:block }`
   rule (higher specificity) would otherwise stack the box above its text. Make it a
   full-width flex row — checkbox at the left, label filling the rest beside it. */
.form-field .config-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    text-align: left;
}

/* `.form-field input { width:100% }` (same specificity, later rule) otherwise
   stretches the checkbox to full width and shoves the label aside — keep it small. */
.form-field .config-checkbox input {
    width: 1.15rem;
}

.delivery-choice {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.delivery-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.delivery-option:has(input:checked) {
    border-color: var(--brand-b);
    background: color-mix(in srgb, var(--brand-b) 6%, transparent);
}

.delivery-option input {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
    accent-color: var(--brand-b);
}

.delivery-option-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.delivery-price {
    font-weight: 600;
    white-space: nowrap;
}

.form-field .config-checkbox > span {
    flex: 1;
}

.config-error {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #c81e1e;
}

.add-to-cart-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.75rem;
}

.add-to-cart:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.added-toast {
    font-weight: 600;
    color: #16a34a;
    animation: toast-in 0.25s ease-out;
}

.added-toast a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Trust cluster below the buy button (US §7). */
.trust-row {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.trust-item svg {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    color: var(--brand-b);
}

.trust-item a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.trust-item a:hover {
    color: var(--ink);
}

@keyframes toast-in {
    from {
        opacity: 0;
        translate: -0.5rem 0;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}

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

    .product-gallery {
        position: static;
    }
}

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

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-gradient);
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: 1.5rem;
    padding-block: 2.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
}

.brand-logo.footer-mark {
    height: 3.25rem;
}

.footer-brand em {
    font-style: normal;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-tagline {
    color: var(--muted);
    margin: 0;
    max-width: 28rem;
}

.footer-pay {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.footer-pay svg {
    width: 2.5rem;
    height: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 12%, transparent);
}

.footer-secure {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0.7rem 0 0;
}

.footer-secure svg {
    width: 0.95rem;
    height: 0.95rem;
}

.footer-meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
    flex-basis: 100%;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-links-head {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0 0 0.25rem;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--ink);
    text-decoration: underline;
}

/* --- Content / legal pages (US-7.1) -------------------------------------------- */

.content-narrow {
    max-width: 48rem;
}

.content-updated {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0.25rem 0 2rem;
}

.content-body {
    line-height: 1.7;
}

.content-body h2 {
    font-family: var(--font-display);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.content-body ul,
.content-body ol {
    padding-left: 1.4rem;
}

.content-body li {
    margin-block: 0.35rem;
}

.content-body a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent);
}

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

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.cart-link svg {
    width: 1.55rem;
    height: 1.55rem;
}

.cart-link:hover {
    border-color: var(--brand-b);
    color: var(--brand-b);
    background: color-mix(in srgb, var(--brand-b) 8%, var(--surface));
}

.cart-badge {
    position: absolute;
    top: -0.1rem;
    right: -0.25rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding-inline: 0.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--brand-gradient);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr minmax(16rem, 22rem);
    gap: 2rem;
    align-items: start;
    margin-top: 1.5rem;
}

.cart-lines {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.cart-line {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.cart-line-image {
    width: 6rem;
    height: 6rem;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.cart-line-info {
    flex: 1;
    min-width: 0;
}

.cart-line-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
}

a.cart-line-name:hover {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cart-line-options {
    margin: 0.3rem 0 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.cart-line-unit-price {
    margin: 0.3rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.cart-line-actions {
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: space-between;
    gap: 0.5rem;
    flex-shrink: 0;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}

.qty-stepper button {
    all: unset;
    width: 2rem;
    height: 2rem;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
    transition: background-color 0.15s;
}

.qty-stepper button:hover:not(:disabled) {
    background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.qty-stepper button:disabled {
    opacity: 0.35;
    cursor: default;
}

.qty-stepper span {
    min-width: 2rem;
    text-align: center;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.cart-line-total {
    margin: 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cart-line-remove {
    all: unset;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cart-line-remove:hover {
    color: #c81e1e;
}

.cart-summary {
    position: sticky;
    top: 5.5rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.cart-summary h2 {
    margin: 0 0 1rem;
    font-size: 1.15rem;
}

.cart-summary dl {
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.cart-summary-row dt {
    color: var(--muted);
}

.cart-summary-row dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.cart-summary-total {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-summary-total dt {
    color: var(--ink);
}

/* Discount line in order/checkout summaries (US §5). */
.cart-summary-discount dt,
.cart-summary-discount dd {
    color: #157f4e;
    font-weight: 500;
}

/* Coupon apply field in checkout (US §5). */
.coupon-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.coupon-input {
    flex: 1;
    text-transform: uppercase;
}

.coupon-row .btn {
    white-space: nowrap;
}

.coupon-applied {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #157f4e;
}

.free-shipping-hint {
    margin: 1rem 0 0;
    font-size: 0.9rem;
    color: var(--muted);
    border-left: 3px solid var(--brand-a);
    padding-left: 0.75rem;
}

.free-shipping-reached {
    color: #16a34a;
    border-left-color: #16a34a;
}

.cart-checkout-button {
    width: 100%;
    margin-top: 1.25rem;
}

.cart-checkout-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.cart-note {
    margin: 0.6rem 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.cart-empty {
    display: grid;
    justify-items: start;
    gap: 1.25rem;
    padding: 2.5rem 0;
}

.cart-empty-text {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

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

    .cart-summary {
        position: static;
    }

    .cart-line {
        flex-wrap: wrap;
    }

    .cart-line-actions {
        flex-direction: row;
        align-items: center;
        flex-basis: 100%;
    }
}

/* --- Checkout & order status ---------------------------------------------------- */

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr minmax(16rem, 24rem);
    gap: 2.5rem;
    align-items: start;
    margin-top: 1.5rem;
}

.checkout-form fieldset {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 1.5rem;
    margin: 0 0 1.5rem;
}

.checkout-form legend {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    padding-inline: 0.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

/* Fields flow in source order; a "wide" field takes twice the space. This keeps
   postcode (narrow) on the LEFT and plaats (wide) on the right, and street (wide)
   left with huisnummer (narrow) right — no forced column positions. */
.form-row .form-field {
    flex: 1;
    min-width: 0;
}

.form-row .form-field-wide {
    flex: 2;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font: 400 1rem var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--brand-b);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-b) 22%, transparent);
}

.form-field .validation-message {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #c81e1e;
}

.checkout-submit {
    width: 100%;
    margin-top: 0.5rem;
}

.checkout-submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.checkout-summary-lines {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0 0 1rem;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 0.75rem;
}

.checkout-summary-lines li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.15rem 1rem;
    font-size: 0.95rem;
}

.checkout-summary-lines .cart-line-options {
    grid-column: 1 / -1;
}

.cart-summary-vat dt,
.cart-summary-vat dd {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 400;
}

.order-confirm-intro {
    font-size: 1.1rem;
    max-width: 40rem;
}

.order-summary-card {
    max-width: 32rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.order-summary-card h2 {
    font-size: 1.1rem;
    margin: 0 0 1rem;
}

.order-summary-card h2 + .checkout-summary-lines {
    margin-top: 0;
}

.order-summary-card dl {
    margin: 0 0 1.5rem;
    display: grid;
    gap: 0.5rem;
}

.order-address {
    margin: 0;
    line-height: 1.6;
}

.order-summary-card .personalization-notice {
    margin-top: 1.25rem;
}

.order-status-checking {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.spinner {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    border: 2.5px solid var(--line);
    border-top-color: var(--brand-b);
    animation: spinner-turn 0.8s linear infinite;
}

@keyframes spinner-turn {
    to {
        rotate: 360deg;
    }
}

.order-retry-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.fake-payment {
    max-width: 32rem;
    padding: 2rem;
    border: 2px dashed var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.fake-payment-amount {
    font-size: 1.1rem;
}

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

    .checkout-layout .cart-summary {
        order: -1;
    }
}

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

.admin-shell {
    display: grid;
    grid-template-columns: 15rem 1fr;
    min-height: 100dvh;
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
    background: var(--surface);
    border-right: 1px solid var(--line);
    position: sticky;
    top: 0;
    height: 100dvh;
}

.admin-brand {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding-inline: 0.75rem;
}

.admin-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-nav a {
    padding: 0.55rem 0.75rem;
    border-radius: 0.6rem;
    font-weight: 600;
    transition: background-color 0.15s;
}

.admin-nav a:hover {
    background: color-mix(in srgb, var(--ink) 7%, transparent);
}

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

.admin-sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 0.5rem;
    padding-inline: 0.75rem;
}

.admin-nav-secondary {
    color: var(--muted);
    font-size: 0.9rem;
}

.admin-logout {
    all: unset;
    cursor: pointer;
    color: var(--muted);
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.admin-main {
    padding: 2rem 2.5rem 4rem;
    min-width: 0;
}

.admin-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 1rem;
    margin-block: 1.5rem 2.5rem;
}

.admin-stat {
    display: grid;
    gap: 0.25rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 0.9rem;
}

.admin-stat-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ink);
}

a.admin-stat:hover {
    border-color: var(--brand-b);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 0.65rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.admin-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table a {
    font-weight: 600;
}

.admin-num {
    text-align: right !important;
    font-variant-numeric: tabular-nums;
}

.admin-intro {
    color: var(--muted);
    max-width: 44rem;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.admin-code-area {
    font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.admin-code-input {
    font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-chip {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: color-mix(in srgb, var(--muted) 15%, transparent);
    vertical-align: middle;
}

.status-paid { background: color-mix(in srgb, #2563eb 18%, transparent); color: #1d4ed8; }
.status-inproduction { background: color-mix(in srgb, #d97706 18%, transparent); color: #b45309; }
.status-shipped { background: color-mix(in srgb, #7c3aed 18%, transparent); color: #6d28d9; }
.status-completed { background: color-mix(in srgb, #16a34a 18%, transparent); color: #15803d; }
.status-canceled { background: color-mix(in srgb, #dc2626 18%, transparent); color: #b91c1c; }

.admin-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-block: 1.25rem;
}

.admin-filters select,
.admin-filters input,
.admin-select {
    padding: 0.55rem 0.9rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font: 400 0.95rem var(--font-body);
}

.admin-card {
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-block: 1rem;
}

.admin-card h2 {
    font-size: 1.05rem;
    margin: 1.25rem 0 0.5rem;
}

.admin-card h2:first-child {
    margin-top: 0;
}

.admin-order-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.admin-order-totals {
    margin: 1rem 0 0;
    max-width: 20rem;
    margin-left: auto;
    display: grid;
    gap: 0.4rem;
}

.admin-personalization {
    font-weight: 700;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.order-admin-actions {
    display: grid;
    gap: 0.75rem;
    justify-items: start;
}

.admin-ship-form {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
    width: 100%;
}

.admin-ship-form h3 {
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
    color: var(--muted);
}

.admin-auth-card {
    max-width: 24rem;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.admin-edit-form fieldset,
.admin-settings-form fieldset {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 1.5rem;
    margin: 0 0 1.5rem;
    max-width: 52rem;
}

.admin-edit-form legend,
.admin-settings-form legend {
    font-family: var(--font-display);
    font-weight: 700;
    padding-inline: 0.5rem;
}

.admin-active-toggle {
    margin-top: 1.7rem;
}

.admin-image-preview {
    display: block;
    width: 10rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.admin-image-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.admin-image-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.admin-image-list img {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: cover;
    border-radius: 0.4rem;
    flex-shrink: 0;
}

.admin-image-fields {
    flex: 1;
    display: grid;
    gap: 0.5rem;
    min-width: 0;
}

.admin-row-actions {
    display: flex;
    gap: 0.35rem;
}

.admin-row-actions button {
    all: unset;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 0.4rem;
}

.admin-row-actions button:disabled {
    opacity: 0.3;
    cursor: default;
}

.admin-danger {
    color: #c81e1e !important;
}

.admin-option-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
}

.admin-option-actions {
    margin-top: 0.75rem;
}

.admin-option-actions button {
    width: auto;
    padding-inline: 0.6rem;
}

.admin-values-table input.config-text-input {
    max-width: none;
    padding: 0.4rem 0.6rem;
}

.admin-input-small {
    width: 6rem;
}

.admin-value-image {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: cover;
    border-radius: 0.3rem;
    vertical-align: middle;
}

.admin-swatch-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-swatch-preview {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 6px;
    border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
    flex-shrink: 0;
}

.admin-filament-table td {
    vertical-align: middle;
}

.admin-link-button {
    all: unset;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: underline;
}

.admin-small-button {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

.tfa-setup {
    display: flex;
    gap: 1.5rem;
    align-items: start;
    flex-wrap: wrap;
    margin-block: 1rem;
}

.tfa-qr {
    width: 11rem;
    background: white;
    border-radius: var(--radius-sm);
    padding: 0.5rem;
}

.tfa-qr svg {
    display: block;
    width: 100%;
    height: auto;
}

.tfa-steps {
    margin: 0.5rem 0 1rem;
    padding-left: 1.25rem;
}

@media (max-width: 900px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .admin-sidebar-footer {
        margin-top: 0;
    }

    .admin-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .admin-main {
        padding: 1.5rem 1rem 3rem;
    }

    .admin-order-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Forms & validation (Blazor) ---------------------------------------------- */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #b32121;
    border-radius: var(--radius-sm);
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "Er is een fout opgetreden.";
}

/* ---- Reviews & sterbeoordelingen (US §2) ---- */

/* Read-only star display: an empty track with a clipped filled overlay. */
.stars {
    position: relative;
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 0.08em;
    white-space: nowrap;
    vertical-align: middle;
}

.stars-track {
    color: color-mix(in srgb, var(--muted) 45%, transparent);
}

.stars-fill {
    position: absolute;
    inset: 0;
    overflow: hidden;
    width: calc(var(--pct) * 1%);
    color: #f2a900;
}

/* Stars on the product card, just under the name. */
.product-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.1rem 0 0.35rem;
    font-size: 0.9rem;
}

.product-card-rating-count {
    color: var(--muted);
    font-size: 0.82rem;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.reviews-average {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
}

.reviews-summary .stars {
    font-size: 1.2rem;
}

.reviews-count {
    color: var(--muted);
}

.reviews-empty {
    color: var(--muted);
}

.reviews-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    gap: 1rem;
}

.review {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
    background: var(--surface);
}

.review-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.review-title {
    font-weight: 600;
}

.review-body {
    margin: 0 0 0.5rem;
    white-space: pre-line;
}

.review-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.review-author {
    font-weight: 600;
    color: var(--ink);
}

.review-verified {
    color: #157f4e;
    font-weight: 600;
}

/* Review submission form. */
.review-form-wrap {
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
    max-width: 42rem;
}

.review-form-head {
    margin-top: 0;
}

.review-form .form-field {
    margin-bottom: 1rem;
}

.review-form .form-label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

/* Clickable star input: rendered high→low so CSS sibling hover fills leftward. */
.star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    font-size: 1.9rem;
    line-height: 1;
}

.star-input input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.star-input label {
    color: color-mix(in srgb, var(--muted) 45%, transparent);
    cursor: pointer;
    padding: 0 0.05em;
    transition: color 0.1s ease;
}

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
    color: #f2a900;
}

.review-thanks {
    border: 1px solid color-mix(in srgb, #157f4e 40%, var(--line));
    background: color-mix(in srgb, #157f4e 8%, var(--surface));
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
}

.review-thanks p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

/* Admin moderation table. */
.admin-row-pending {
    background: color-mix(in srgb, var(--brand-b) 7%, transparent);
}

.admin-review-cell {
    max-width: 26rem;
}

.admin-review-body {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
}

.admin-review-actions {
    display: flex;
    gap: 0.4rem;
    white-space: nowrap;
}

.admin-muted {
    color: var(--muted);
    font-size: 0.82rem;
}
