/* =========================================================
   Munster Sport - site styles
   Built from the wireframes: navy + Munster red, cream panels,
   Bebas Neue for impact (headings, prices, totals), Inter for
   everything people read or click. Fonts are self-hosted so the
   site works on the lab network without internet.
   ========================================================= */

@font-face { font-family: "Bebas Neue"; src: url("../fonts/bebas-neue-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-variable.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
    --navy: #0a1f44;
    --navy-2: #13305f;
    --red: #e4002b;
    --red-dark: #b80022;
    --red-soft: #fdecef;
    --cream: #f7f5f2;
    --line: #e3e1dd;
    --ink: #0a1f44;
    --muted: #5d6475;
    --ok: var(--navy-2);         /* good states (in stock, sent, saved) - navy, not green */
    --ok-soft: #e9eef6;
    --amber: #b35c00;
    --amber-soft: #fff6e5;
    --amber-dark: #9a4f00;
    --line-strong: #7f8696;      /* edges of controls: 3.6:1 on white, 3.3:1 on cream */
    --white: #fff;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 2px rgba(10, 31, 68, .06), 0 6px 20px rgba(10, 31, 68, .06);
    --head: "Bebas Neue", "Arial Narrow", sans-serif;   /* display only: headings, prices, totals */
    --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: 1240px;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-synthesis: none; }   /* Bebas Neue has one weight: never fake-bold it */
body {
    margin: 0;
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; text-transform: uppercase; line-height: 1; margin: 0 0 .4em; letter-spacing: .02em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
::selection { background: var(--red); color: #fff; }
:root { accent-color: var(--red); caret-color: var(--red); }
.ico { flex: none; vertical-align: middle; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.section { padding: 56px 0; }
.section--cream { background: var(--cream); }
.section--flush-top { padding-top: 12px; }
.page-title { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 16px; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.section__head h2 { margin: 0; }
.link-red { color: var(--red); font-weight: 600; text-decoration: none; }
.link-red:hover { text-decoration: underline; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin: 20px 0 8px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 28px;
    font-family: var(--body); font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
    border: 2px solid transparent; border-radius: var(--radius-sm);
    text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--cream); }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--outline-red { background: #fff; color: var(--red); border-color: var(--red); }
.btn--outline-red:hover { background: var(--red); color: #fff; }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; font-size: 1rem; }
.btn--sm { min-height: 36px; padding: 0 18px; font-size: .78rem; }
.btn--xs { min-height: 32px; padding: 0 12px; font-size: .74rem; }
.btn--disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-link { background: none; border: 0; padding: 0; color: var(--red); font-weight: 600; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-head { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-head__inner { display: flex; align-items: center; gap: 28px; min-height: 80px; }
.logo img { height: 58px; width: auto; }
.logo--white, .logo--white img { filter: brightness(0) invert(1); }
/* Vertical nav list: block links, navy hover, red for the current page */
.main-nav ul { list-style-type: none; margin: 0; padding: 0; background-color: #f1f1f1; }
.main-nav li a { display: block; color: var(--ink); padding: 8px 16px; text-decoration: none; font-family: var(--body); font-size: 1rem; font-weight: 500; }
.main-nav li a:hover { background-color: var(--navy); color: #fff; }
.main-nav li a.is-active { background-color: var(--red); color: #fff; font-weight: 600; }
.main-nav__sep { height: 1px; margin: 8px 16px; background: #c9c9c9; }
.site-head__tools { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.head-search { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 4px 0 14px; }
.head-search input { border: 0; outline: 0; width: 130px; min-height: 38px; background: transparent; }
.head-search button { background: none; border: 0; padding: 6px; cursor: pointer; display: flex; }
.account a, .account summary { display: flex; cursor: pointer; list-style: none; }
.account summary::-webkit-details-marker { display: none; }
.account__menu { position: relative; }
.account__panel { position: absolute; right: 0; top: 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; min-width: 210px; z-index: 40; font-size: .92rem; }
.account__panel p { margin-bottom: 8px; }
.account__panel a { display: flex; gap: 6px; align-items: center; padding: 6px 0; text-decoration: none; }
.account__panel a:hover { color: var(--red); }
.cart-link { position: relative; display: flex; text-decoration: none; }
.cart-count { font-variant-numeric: tabular-nums; position: absolute; top: -8px; right: -10px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.nav-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }

@media (max-width: 980px) {
    .site-head__inner { flex-wrap: wrap; gap: 12px; min-height: 68px; }
    .logo img { height: 46px; }
    .nav-toggle { display: flex; order: -1; }
    .main-nav { order: 10; flex-basis: 100%; display: none; padding-bottom: 12px; }
    .main-nav.is-open { display: block; }
    .main-nav li a { padding: 12px 16px; }
    .head-search input { width: 90px; }
}
@media (max-width: 560px) {
    .head-search { display: none; }
}

/* Desktop: the shop header becomes a fixed vertical rail on the left.
   Under 981px the horizontal bar + menu button above takes over. */
@media (min-width: 981px) {
    .shell-store { --rail: 200px; padding-left: var(--rail); }
    .shell-store .site-head { position: fixed; inset: 0 auto 0 0; width: var(--rail); background-color: #f1f1f1; border-bottom: 0; border-right: 1px solid var(--line); overflow-y: auto; }
    .shell-store .site-head__inner { flex-direction: column; align-items: stretch; gap: 24px; min-height: 100%; max-width: none; padding: 24px 0; }
    .shell-store .logo { padding: 0 16px; }
    .shell-store .logo img { height: 56px; }
    .shell-store .site-head__tools { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 18px 22px; margin: auto 0 0; padding: 0 16px; }
    .shell-store .head-search { grid-column: 1 / -1; background: #fff; }
    .shell-store .head-search input { width: 100%; min-width: 0; flex: 1; }
    .shell-store .account__panel { top: auto; bottom: calc(100% + 8px); right: auto; left: 0; transform-origin: bottom left; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy) center / cover no-repeat; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 31, 68, .92) 0%, rgba(10, 31, 68, .7) 45%, rgba(10, 31, 68, .35) 100%); z-index: -1; }
.hero__inner { padding: 88px 0; max-width: 720px; }
.hero__crest { width: 230px; margin-bottom: 28px; filter: brightness(0) invert(1); }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin-bottom: 14px; }
.hero p { font-size: 1.15rem; opacity: .95; margin-bottom: 28px; }

/* Home hero: a matchday poster - the headline is the image's caption, set at full display strength */
.hero--home { display: flex; align-items: flex-end; min-height: clamp(540px, 82vh, 780px); background-position: 70% center; }
.hero--home::before {
    background:
        linear-gradient(0deg, rgba(10, 31, 68, .95) 0%, rgba(10, 31, 68, .55) 42%, rgba(10, 31, 68, 0) 75%),
        linear-gradient(270deg, rgba(10, 31, 68, .85) 0%, rgba(10, 31, 68, .35) 55%, rgba(10, 31, 68, 0) 100%);
}
.hero--home .wrap { width: 100%; }
.hero--home .hero__inner { max-width: 880px; padding: 120px 0 64px; margin-left: auto; text-align: right; }
.hero--home .btn-row { justify-content: flex-end; }
.hero--home h1 { font-size: clamp(3.4rem, 9vw, 6rem); line-height: .9; letter-spacing: .01em; margin-bottom: 20px; text-wrap: balance; }
.hero__accent { color: var(--red); }
.hero--home p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34ch; margin-left: auto; }
@media (max-width: 600px) { .hero--home { min-height: 560px; } .hero--home .hero__photo { background-position: 38% center; } .hero--home .hero__inner { padding: 96px 0 40px; } }
.hero--home { overflow: hidden; }
.hero__photo { position: absolute; inset: 0; z-index: -2; background: var(--navy) 30% center / cover no-repeat; }

/* Matchday scroll: as the hero leaves, the camera pushes in on the squad and the headline
   lifts away.
   Scroll-driven (Chrome, Edge, Safari). Elsewhere, or with reduced motion, it stays still. */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .hero--home { view-timeline: --hero block; }
        .hero__photo { animation: hero-push linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
        .hero--home .hero__inner { animation: hero-lift linear both; animation-timeline: --hero; animation-range: exit 0% exit 65%; }
    }
}
@keyframes hero-push { to { transform: scale(1.16) translateY(4%); opacity: .35; } }
@keyframes hero-lift { 45% { opacity: 1; } to { transform: translateY(-90px); opacity: 0; } }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card--cream { background: var(--cream); border-color: transparent; }
.card--pad { padding: 32px; }
@media (max-width: 600px) { .card--pad { padding: 22px; } }

.center { text-align: center; }
.lead { font-size: 1.05rem; color: var(--muted); }

/* ---------- Product grid + card ---------- */
.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1060px) { .grid--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .grid--4, .grid--3 { grid-template-columns: 1fr; } }

.product-card { position: relative; display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card__media { position: relative; background: #f0f0f0; aspect-ratio: 4 / 5; display: block; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }   /* photos are pre-centred at 4:5 */
.product-card__media .badge { position: absolute; top: 12px; left: 12px; z-index: 1; height: 24px; padding: 0 10px; font-size: .72rem; }
.product-card__media .badge--red { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(10, 31, 68, .14); }
.product-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card__brand { font-size: .8rem; color: var(--muted); margin: 0 0 2px; }
.product-card__name { font-family: var(--body); text-transform: none; font-weight: 600; font-size: 1rem; letter-spacing: 0; line-height: 1.3; margin: 0 0 6px; min-height: 2.6em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.product-card__name a { text-decoration: none; }
.product-card__name a::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.product-card:hover .product-card__name a { color: var(--red); }
.product-card__name a:focus-visible { outline: none; }
.product-card:has(a:focus-visible) { outline: 3px solid var(--red); outline-offset: 3px; }
.product-card__body .price { margin-top: auto; padding-top: 8px; }
.price { font-family: var(--head); font-weight: 400; font-size: 1.75rem; letter-spacing: .02em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.price--xl { font-size: 3rem; }
/* On sale: the sale price in red, the full price struck through, and how much off */
.price-sale { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.product-card__body .price-sale { margin-top: auto; padding-top: 8px; }
.price-sale .price { margin: 0; padding: 0; }
.price--now { color: var(--red); }
.price-was { color: var(--muted); font-size: .92rem; text-decoration-thickness: 1px; font-variant-numeric: tabular-nums; }
.price-off { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--red); }
.price--xl ~ .price-was { font-size: 1.2rem; }

.stock { font-size: .82rem; font-weight: 500; margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock--in { color: var(--ok); }
.stock--low { color: var(--amber); }
.stock--out { color: var(--red); }

.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 14px; border-radius: 999px; font-family: var(--body); font-weight: 700; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--red); white-space: nowrap; }
.badge--red { background: var(--red); }
.badge--amber, .badge--low, .badge--pending { background: var(--amber); }
.badge--ok, .badge--in, .badge--delivered { background: var(--ok); }
.badge--navy { background: var(--navy); }
.badge--shipped { background: var(--muted); }
.badge--out { background: var(--red); }

/* ---------- Shop listing ---------- */
.shop-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.shop-head h1 { margin: 0; }
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.filters h2 { font-size: 1.25rem; margin-bottom: 12px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.filters legend { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.check { display: flex; align-items: center; gap: 10px; padding: 4px 0; cursor: pointer; font-size: .95rem; }
.check input { width: 18px; height: 18px; accent-color: var(--red); margin: 0; }
.filters .price-inputs { display: flex; gap: 8px; align-items: center; }
.filters .price-inputs input { width: 80px; }
.filters-toggle { display: none; }
@media (max-width: 860px) {
    .shop-layout { grid-template-columns: 1fr; gap: 16px; }
    .filters-toggle { display: inline-flex; }
    .filters { display: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
    .filters.is-open { display: block; }
}
.empty { text-align: center; padding: 72px 24px; background: var(--cream); border-radius: var(--radius); }
.empty .ico { color: #8b93a4; margin: 0 auto 16px; display: block; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; font-weight: 500; }
.pagination .is-current { background: var(--red); border-color: var(--red); color: #fff; }
.pagination a:hover { border-color: var(--navy); }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=tel], .field select, .field textarea {
    width: 100%; min-height: 52px; padding: 12px 16px;
    background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: none; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10, 31, 68, .12); }
.field--error input, .field--error textarea { border-color: var(--red); }
.hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 32px; }
@media (max-width: 640px) { .row-2, .row-3 { grid-template-columns: 1fr; } }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 22px; flex-wrap: wrap; }
.divider { display: flex; align-items: center; gap: 16px; color: var(--muted); margin: 28px 0 20px; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

.alert { display: flex; gap: 12px; align-items: center; padding: 16px 20px; border-radius: var(--radius-sm); margin: 0 0 22px; font-size: .95rem; border: 1px solid; }
.alert-err { background: var(--red-soft); border-color: var(--red); color: var(--red-dark); }
.alert-ok { background: var(--ok-soft); border-color: #b9c3d6; color: var(--ok); }
.alert-warn { background: var(--amber-soft); border-color: #f1d49b; color: #6b3d00; }

.strength { height: 6px; border-radius: 3px; background: var(--line); margin-top: 12px; overflow: hidden; }
.strength span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out), background .2s; }
.strength-label { font-size: .85rem; margin-top: 6px; min-height: 1.2em; }

/* Radio "tile" options - account type, delivery method, payment tabs */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 20px; }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr; } }
.tile { position: relative; display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; background: #fff; transition: border-color .15s; }
.tile input { position: absolute; opacity: 0; }
.tile__dot { width: 26px; height: 26px; border: 2px solid var(--line-strong); border-radius: 50%; flex: none; margin-top: 2px; display: grid; place-items: center; }
.tile__dot::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform .15s; }
.tile strong { display: block; font-size: 1.1rem; }
.tile span.muted { font-size: .92rem; }
.tile__note { display: block; margin-top: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.tile__price { margin-left: auto; font-weight: 700; align-self: center; }
.tile:has(input:checked) { border: 2px solid var(--red); padding: 19px; }
.tile:has(input:checked) .tile__dot { border-color: var(--red); }
.tile:has(input:checked) .tile__dot::after { transform: scale(1); }
.tile:has(input:checked) .tile__note { color: var(--red); }
.tile:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.tiles--stack { grid-template-columns: 1fr; gap: 14px; }

.pay-tabs { display: flex; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.pay-tab { position: relative; }
.pay-tab input { position: absolute; opacity: 0; }
.pay-tab span { display: grid; place-items: center; min-width: 150px; min-height: 52px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; }
.pay-tab input:checked + span { border: 2px solid var(--red); font-weight: 700; }
.pay-tab input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

/* Size / quantity pickers */
.sizes { display: flex; flex-wrap: wrap; gap: 12px; }
.size { position: relative; }
.size input { position: absolute; opacity: 0; }
.size span { display: grid; place-items: center; min-width: 64px; height: 52px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; background: #fff; }
.size input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.size input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.size input:disabled + span { color: #b5bac4; background: var(--cream); text-decoration: line-through; cursor: not-allowed; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); height: 52px; }
.qty button { width: 44px; height: 100%; background: none; border: 0; font-size: 1.2rem; cursor: pointer; }
.qty button:hover { color: var(--red); }
.qty input { width: 48px; text-align: center; border: 0; font-weight: 600; height: 100%; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm { height: 44px; }

/* ---------- Auth split screen ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.auth__form { background: var(--cream); display: flex; align-items: center; justify-content: center; padding: 64px 24px; }
.auth__form > div { width: 100%; max-width: 480px; }
.auth__art { position: relative; background: var(--navy) center / cover no-repeat; color: #fff; display: grid; place-items: center; text-align: center; padding: 40px; isolation: isolate; }
.auth__art::before { content: ""; position: absolute; inset: 0; background: rgba(10, 31, 68, .72); z-index: -1; }
.auth__art img { width: 280px; margin: 0 auto 36px; filter: brightness(0) invert(1); }
.auth__art h2 { font-size: 2.6rem; margin-bottom: 8px; }
.auth--staff .auth__form { background: #fff; }
.staff-tag { display: inline-flex; gap: 6px; align-items: center; background: var(--navy); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth__art { display: none; } }

.page-band { background: var(--cream); padding: 44px 0 36px; text-align: center; }
.page-band h1 { margin-bottom: 8px; }
.narrow { max-width: 1000px; margin: 0 auto; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; padding-bottom: 40px; }
.pdp__media { position: relative; background: #f0f0f0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-height: 720px; }
.pdp__media img { width: 100%; height: 100%; object-fit: contain; }
.pdp__media .badge { position: absolute; top: 20px; left: 20px; }
.pdp__brand { font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pdp__price { display: flex; align-items: baseline; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.pdp__label { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.pdp__qtyrow { display: flex; align-items: center; gap: 24px; margin: 24px 0; flex-wrap: wrap; }
.pdp__stock { font-size: 1rem; }
.pdp__actions { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.acc { background: var(--cream); border-radius: var(--radius-sm); margin-bottom: 12px; }
.acc summary { padding: 14px 20px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
/* Drawn plus that folds into a minus: the vertical bar collapses when open */
.acc summary::after {
    content: ""; width: 14px; height: 14px; flex: none; margin-left: 16px;
    background: linear-gradient(var(--muted), var(--muted)) center / 100% 2px no-repeat,
                linear-gradient(var(--muted), var(--muted)) center / 2px 100% no-repeat;
    transition: background-size .25s var(--ease-out), transform .25s var(--ease-out);
}
.acc[open] summary::after { background-size: 100% 2px, 2px 0; transform: rotate(180deg); }
.acc summary small { display: block; color: var(--muted); font-weight: 400; }
.acc > div { padding: 0 20px 16px; font-size: .95rem; color: var(--muted); }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 28px; } .pdp__actions { grid-template-columns: 1fr; } }

/* ---------- Cart + summaries ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
@media (max-width: 960px) { .cart-layout { grid-template-columns: 1fr; gap: 32px; } }
.table-head { display: grid; background: var(--cream); border-radius: var(--radius); padding: 22px 32px; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.cart-cols { grid-template-columns: 1fr 120px 150px 110px; gap: 16px; align-items: center; }
.cart-row { display: grid; padding: 20px 24px; margin-bottom: 16px; }
.cart-row__prod { display: flex; gap: 24px; align-items: center; }
.thumb { width: 110px; height: 110px; background: #f0f0f0; border-radius: var(--radius-sm); overflow: hidden; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb--sm { width: 80px; height: 80px; }
.thumb--xs { width: 64px; height: 64px; }
.cart-row h3 { font-family: var(--body); text-transform: none; font-size: 1.1rem; font-weight: 600; letter-spacing: 0; margin: 0 0 4px; }
.cart-row h3 a { text-decoration: none; }
.cart-row__total { font-family: var(--head); font-size: 1.6rem; font-weight: 400; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.cart-row .muted { font-size: .92rem; margin: 0 0 10px; }
.label-sm { display: none; }
@media (max-width: 760px) {
    .table-head { display: none; }
    .cart-cols { grid-template-columns: 1fr 1fr; }
    .cart-row__prod { grid-column: 1 / -1; }
    .label-sm { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
    .thumb { width: 84px; height: 84px; }
}
.summary { padding: 32px; }
.summary h2 { font-size: 1.8rem; margin-bottom: 20px; }
.sum-line { font-variant-numeric: tabular-nums; display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); }
.sum-line span:last-child { color: var(--ink); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 20px; margin: 20px 0 24px; }
.sum-total strong { font-family: var(--head); font-weight: 400; font-size: 1.9rem; letter-spacing: .02em; text-transform: uppercase; }
.sum-total .price { font-size: 2.2rem; }
.sum-item { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.sum-item .thumb { position: relative; overflow: visible; }
.sum-item .thumb img { border-radius: var(--radius-sm); }
.sum-item__qty { position: absolute; top: -8px; right: -8px; background: var(--navy); color: #fff; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.sum-item div { flex: 1; }
.sum-item strong { display: block; font-size: .98rem; }
.sum-item small { color: var(--muted); }

/* Checkout */
.checkout-head { border-bottom: 1px solid var(--line); }
.checkout-head__inner { display: flex; justify-content: space-between; align-items: center; min-height: 96px; }
.checkout-head .muted { display: inline-flex; gap: 8px; align-items: center; }
.steps { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 40px 0; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.step b { width: 40px; height: 40px; border: 2px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.step.is-on { color: var(--ink); font-weight: 600; }
.step.is-on b { background: var(--red); border-color: var(--red); color: #fff; }
.steps i { width: 90px; height: 2px; background: var(--line); }
@media (max-width: 600px) { .steps i { width: 24px; } .step span { display: none; } }
.checkout-layout { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: start; padding-bottom: 72px; }
@media (max-width: 1000px) { .checkout-layout { grid-template-columns: 1fr; } .checkout-layout aside { order: -1; } }
.checkout-layout h2 { margin-top: 12px; }

/* Order confirmation */
.confirm-band { background: var(--cream); padding: 64px 0 48px; text-align: center; }
.confirm-band__tick { width: 92px; height: 92px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 24px; }
/* Their name and order number, printed on a shirt back */
.shirt-back { display: block; width: 200px; height: auto; margin: 0 auto 28px; overflow: visible; filter: drop-shadow(0 10px 18px rgba(10, 31, 68, .18)); animation: shirt-land .7s var(--ease-out) both; }
.shirt-back__body { fill: var(--red); }
.shirt-back__collar { fill: none; stroke: var(--navy); stroke-width: 6; stroke-linecap: round; }
.shirt-back text { fill: #fff; font-family: var(--head); font-weight: 400; letter-spacing: .04em; }
@keyframes shirt-land { from { opacity: 0; transform: translateY(-18px) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .shirt-back { animation-name: fade-in; } }
.pill .ico { color: var(--ok); margin: -3px 4px 0 0; }
.pill { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 12px 40px; font-weight: 700; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 16px; padding-bottom: 18px; position: relative; }
.timeline li::before { content: ""; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); flex: none; background: #fff; }
.timeline li.is-done::before { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: var(--ok); }
.timeline strong { display: block; }
.timeline small { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 28px; }

/* Signed out / message pages */
.message-page { background: var(--cream); padding: 120px 0; text-align: center; }
.message-page__icon { width: 120px; height: 120px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto 28px; }
.message-page .card { max-width: 720px; margin: 48px auto 0; padding: 24px; }

/* ---------- About + contact ---------- */
.about-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about-intro img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .about-intro { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Company page: a stadium scoreboard ----------
   #13305f panels on a #0a1f44 frame, split by real 3px gaps; big Bebas figures;
   red only for Munster's scores and the live markers. Every figure is real. */
.sb { padding: 8px 0 24px; }
.sb--road { padding: 0 0 72px; }
.sb--close { padding: 72px 0; }
.sb__screen { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; padding: 3px; background: var(--navy); border-radius: 16px; overflow: hidden; }
.sb__panel { min-width: 0; padding: 32px 36px; background: var(--navy-2); color: #fff; }
.sb__intro { grid-column: 1 / 4; grid-row: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 44px; }
.sb__result { grid-column: 4 / 7; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 28px; }
.sb h1 { color: #fff; font-size: clamp(2.8rem, 5vw, 4.4rem); margin: 0 0 16px; }
.sb h2 { color: #fff; }
.sb__lead { margin: 0 0 10px; max-width: 30ch; font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 500; line-height: 1.35; color: #fff; text-wrap: balance; }
.sb__text { margin: 0 0 28px; max-width: 46ch; color: #b9c3d6; }
.sb__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; }
.sb__link { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 5px; }
.sb__link:hover { text-decoration-color: #fff; }
.sb__label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .14em; line-height: 1.3; text-transform: uppercase; color: #b9c3d6; }
.sb__label--wrap { flex-wrap: wrap; gap: 2px .4em; }
.sb__label--wrap > span { white-space: nowrap; }
.sb__live { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.sb__stat { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.sb__fig { display: block; font-family: var(--head); font-weight: 400; font-size: clamp(3.2rem, 5.6vw, 5rem); line-height: .9; font-variant-numeric: tabular-nums; }
.sb__score { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; align-items: center; gap: 0 24px; margin: 8px 0; }
.sb__team { padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: clamp(.9rem, 1.2vw, 1.05rem); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
/* The final score fills the panel it was given */
.sb__pts { font-family: var(--head); font-weight: 400; font-size: clamp(7rem, 18vw, 17rem); line-height: .8; text-align: right; font-variant-numeric: tabular-nums; }
.sb__pts--win { color: var(--red); }
.sb__ft { margin: 0; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #b9c3d6; }
.sb__note { margin: 10px 4px 0; font-size: .8rem; color: var(--muted); }
/* Road to the final: three away results, then the photo full-bleed in its cell and the story */
.sb__leg { grid-column: span 2; display: flex; flex-direction: column; padding: 28px 32px 32px; }
.sb .sb__leg-round { margin: 0; font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1; color: #fff; }
.sb__leg-where { margin: 6px 0 24px; font-size: .92rem; color: #b9c3d6; }
.sb__leg-score { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 16px; }
.sb__leg-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sb__leg-side b { font-family: var(--head); font-weight: 400; font-size: clamp(3.4rem, 5.4vw, 4.8rem); line-height: .85; font-variant-numeric: tabular-nums; }
.sb__leg-side + .sb__leg-side { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .14); }
.sb__leg-side + .sb__leg-side b { color: #b9c3d6; }
.sb__leg-side span { font-size: .85rem; font-weight: 600; line-height: 1.3; color: #fff; }.sb__photo { grid-column: 1 / 4; margin: 0; position: relative; min-height: 320px; background: var(--navy-2); }
.sb__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sb__photo figcaption { position: absolute; right: 10px; bottom: 8px; padding: 2px 6px; border-radius: 3px; background: rgba(10, 31, 68, .7); font-size: .72rem; color: #fff; }
.sb__story { grid-column: 4 / 7; display: flex; flex-direction: column; justify-content: center; }
.sb__story h2 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); margin: 0 0 16px; }
.sb__story p:not(.sb__text) { margin: 0 0 12px; color: #fff; }
.sb__story .btn { align-self: flex-start; }
.sb__closer { grid-column: 1 / 4; padding: 56px 48px; }
.sb__photo--close { grid-column: 4 / 7; min-height: 340px; }
.sb__closer h2 { font-size: clamp(2.6rem, 5vw, 4rem); margin: 0 0 10px; }

/* Below the board: one cream board. Headings in the left column, white tiles on
   the right, all split by the same 1px gaps, radius and padding */
.sb-light { padding: 72px 0; background: var(--cream); }
.lb { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1px; background: #e2ddd5; border: 1px solid #e2ddd5; border-radius: 16px; overflow: hidden; }
.lb__head, .lb__tile { min-width: 0; padding: 32px; background: #fff; }
.lb__head { background: var(--cream); }
.lb__head h2 { font-size: clamp(2rem, 3vw, 2.6rem); margin: 0 0 10px; }
.lb__head p { margin: 0; color: var(--muted); max-width: 36ch; }
.lb__rows, .lb__squad { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: #e2ddd5; }
.lb__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: baseline; gap: 6px 28px; padding: 24px 32px; }
.lb__row p { margin: 0; color: var(--muted); }
.lb__big { font-family: var(--head); font-weight: 400; font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1; color: var(--ink); }
.lb__big small { font-size: .55em; color: var(--muted); }
.lb__row--step { grid-template-columns: 56px minmax(0, 4fr) minmax(0, 6fr); }
.lb__num { font-family: var(--head); font-size: 2rem; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.lb__mid { font-family: var(--head); font-weight: 400; font-size: 1.6rem; line-height: 1.05; color: var(--ink); }
.lb__squad { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
/* The team takes the board's full width so names and roles stay on one line */
.lb__head--wide, .lb__squad--wide { grid-column: 1 / -1; }
.lb__head--wide { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 32px; }
.lb__head--wide h2 { margin: 0; }
.lb__squad--wide { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lb__player { display: grid; align-content: start; gap: 2px; padding: 24px; }
.lb__initials { margin-bottom: 12px; font-family: var(--head); font-size: 2.8rem; line-height: .9; color: var(--navy); }
.lb__player strong { font-size: 1rem; }
.lb__player span:not([class]) { font-size: .9rem; }
.lb__dept { font-size: .85rem; color: var(--muted); }
.partner__built { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.partner__built li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; font-weight: 500; }
.partner__built .ico { flex: none; color: var(--ok); margin-top: 2px; }
@media (max-width: 1000px) {
    .sb__intro { grid-column: 1 / -1; }
    .sb__result { grid-column: 1 / -1; grid-row: 2; }
    .sb__stat { grid-column: span 2; grid-row: 3; }
    .sb__photo, .sb__story, .sb__closer, .sb__photo--close { grid-column: 1 / -1; }
    .sb__photo { min-height: 0; aspect-ratio: 16 / 9; }
    .lb { grid-template-columns: minmax(0, 1fr); }
    .lb__squad--wide { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
@media (max-width: 900px) {
    .sb--road { padding-bottom: 48px; }
    .sb--close, .sb-light { padding: 48px 0; }
}
@media (max-width: 560px) {
    .sb__panel { padding: 24px 20px; }
    .sb__intro { padding-block: 32px; }
    .sb__stat { padding: 20px 14px; }
    .sb__stat .sb__label { font-size: .7rem; letter-spacing: .1em; }
    .sb__fig { font-size: 2.6rem; }
    .sb__closer { padding: 36px 24px; }
    .sb__leg { grid-column: 1 / -1; }
    .lb__head { padding: 28px 20px 20px; }
    .lb__row { grid-template-columns: minmax(0, 1fr); padding: 20px; }
    .lb__row--step { grid-template-columns: 44px minmax(0, 1fr); }
    .lb__row--step p { grid-column: 2; }
    .lb__squad, .lb__squad--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lb__player { padding: 20px 16px; }
    .lb__player:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.contact-layout { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-list .ico { color: var(--red); margin-top: 2px; }
.contact-list strong { display: block; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
/* Contact: the Company page's scoreboard, with the form as a light panel on the board */
.sb--contact { padding-bottom: 72px; }
.sb__contact-intro { grid-column: 1 / 3; display: flex; flex-direction: column; gap: 0; padding-block: 44px; }
.sb__contact-intro h1 { font-size: clamp(2.8rem, 4.4vw, 4rem); }
.sb__contact-list { list-style: none; margin: 32px 0 0; padding: 28px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 22px; }
.sb__contact-list li { display: flex; gap: 14px; color: #fff; overflow-wrap: anywhere; }
.sb__contact-list .ico { flex: none; color: var(--red); margin-top: 2px; }
.sb__contact-list .sb__label { margin-bottom: 4px; }
.sb__form { grid-column: 3 / 7; padding: 44px 48px; background: #fff; color: var(--ink); }
.sb__form h2 { color: var(--ink); font-size: clamp(2rem, 3vw, 2.6rem); margin: 0 0 24px; }
.sb__send { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 8px; }
.sb__send .hint { margin: 0; }
@media (max-width: 1000px) {
    .sb__contact-intro, .sb__form { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .sb__form { padding: 28px 20px; }
}

/* ---------- Footer ---------- */
.site-foot { background: var(--navy); color: #cfd6e4; padding: 56px 0 28px; margin-top: 0; }
.site-foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-foot__brand img { width: 130px; margin-bottom: 16px; }
.site-foot__brand p { margin: 0; }
.site-foot h2 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.site-foot a { display: flex; align-items: center; min-height: 36px; text-decoration: none; text-underline-offset: 3px; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot__grid > * { min-width: 0; }
.site-foot__base { display: flex; align-items: center; gap: 8px 32px; flex-wrap: wrap; background: linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, .12)) 0 -16px / 100% 1px no-repeat; background-origin: content-box; margin-top: 40px; padding-top: 16px; font-size: .85rem; }
.site-foot__base a { margin-left: auto; }
@media (max-width: 960px) { .site-foot__grid { grid-template-columns: 1fr 1fr; } .site-foot__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-foot__base { flex-direction: column; align-items: flex-start; } .site-foot__base a { margin-left: 0; } }

/* =========================================================
   Staff / seller dashboard
   ========================================================= */
.shell-seller { background: #fff; }
.staff-head { background: var(--navy); color: #fff; }
.staff-head__inner { display: flex; align-items: center; gap: 48px; min-height: 84px; padding: 0 32px; }
.staff-head .logo img { height: 60px; }
.staff-nav { display: flex; gap: 40px; flex: 1; }
.staff-nav a { text-decoration: none; color: #b9c3d6; font-size: 1.05rem; padding: 6px 0; position: relative; }
.staff-nav a:hover { color: #fff; }
.staff-nav a.is-active { color: #fff; font-weight: 600; }
.staff-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--red); border-radius: 2px; }
.staff-pill { display: inline-flex; align-items: center; gap: 12px; background: var(--navy-2); padding: 8px 20px 8px 8px; border-radius: 999px; }
.staff-pill__dot { width: 28px; height: 28px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.staff-body { display: grid; grid-template-columns: 280px 1fr; min-height: calc(100vh - 84px); }
.staff-side { background: var(--cream); border-right: 1px solid var(--line); padding: 40px 20px; }
.staff-side a { display: block; padding: 14px 24px; margin-bottom: 8px; text-decoration: none; color: var(--muted); border-radius: var(--radius-sm); border-left: 4px solid transparent; }
.staff-side a:hover { color: var(--ink); background: #fff; }
.staff-side a.is-active { background: #fff; color: var(--ink); font-weight: 700; border-left-color: var(--red); box-shadow: 0 0 0 1px var(--line); }
.staff-main { padding: 40px 48px 64px; min-width: 0; }
.staff-title { display: flex; justify-content: space-between; align-items: start; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.staff-title h1 { margin: 0 0 4px; }
.staff-title .badge { vertical-align: middle; margin-left: 20px; height: 34px; padding: 0 22px; font-size: .9rem; }
@media (max-width: 960px) {
    .staff-head__inner { flex-wrap: wrap; gap: 12px 24px; padding: 12px 16px; }
    .staff-nav { order: 3; flex-basis: 100%; gap: 24px; overflow-x: auto; }
    .staff-head .logo img { height: 44px; }
    .staff-body { grid-template-columns: 1fr; }
    .staff-side { display: none; }
    .staff-main { padding: 28px 16px 48px; }
}
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 44px; }
.kpi { padding: 28px 32px; border-radius: var(--radius); }
a.kpi { text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.kpi:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.kpi small { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.kpi b { font-family: var(--head); font-weight: 400; font-size: 3rem; line-height: 1; }
.kpi--ok b { color: var(--ok); }
.kpi--amber b { color: var(--amber); }
.kpi--red b { color: var(--red); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.prod-cols { grid-template-columns: minmax(0, 1fr) 96px 64px 116px 136px; gap: 16px; align-items: center; }
/* Products list: tighter rows so more products fit on screen */
.table-head.prod-cols { padding: 14px 20px 14px 92px; margin-bottom: 10px; }
.srow.prod-cols { padding: 10px 20px 10px 12px; margin-bottom: 8px; }
.prod-cols .srow__prod { gap: 16px; }
.prod-cols .srow__prod strong { font-size: 1rem; }
.prod-cols .thumb--sm { width: 64px; height: 64px; }
.prod-cols .size-chips { margin-top: 4px; }
.prod-cols--select { grid-template-columns: 24px minmax(0, 1fr) 110px 64px 116px 136px; }
.table-head.prod-cols--select { padding-left: 12px; }
.table-head.prod-cols--select > :nth-child(2) { padding-left: 80px; }
.srow__pick { display: grid; place-items: center; width: 24px; height: 40px; cursor: pointer; }
.srow__pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--red); }
.srow.is-picked { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.srow__price { display: flex; flex-direction: column; gap: 2px; }
.srow__price .price-was { font-size: .85rem; font-weight: 400; }
/* Bulk sale bar above the products list (admins) */
.bulk-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 10px 20px 10px 12px; margin-bottom: 10px; background: var(--cream); border-radius: var(--radius); }
.bulk-bar__all { padding-left: 3px; font-weight: 600; }
.bulk-bar__all input { accent-color: var(--red); }
.bulk-bar__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bulk-bar__pct { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); }
.bulk-bar__pct input { width: 64px; height: 36px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; font: inherit; color: var(--ink); text-align: right; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 1100px) {
    .srow.prod-cols--select { grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "pick prod prod" ". price stock" ". status actions"; }
    .srow.prod-cols--select > .srow__pick { grid-area: pick; align-self: start; }
    .srow.prod-cols--select > .srow__prod { grid-area: prod; }
    .srow.prod-cols--select > .srow__price { grid-area: price; }
    .srow.prod-cols--select > .srow__stock { grid-area: stock; }
    .srow.prod-cols--select > .srow__status { grid-area: status; }
    .srow.prod-cols--select > .srow__actions { grid-area: actions; }
}
.order-cols { grid-template-columns: 140px 1.4fr 130px 70px 120px 130px 170px; gap: 16px; align-items: center; }
.msg-cols { grid-template-columns: 1.2fr 2fr 150px; gap: 16px; align-items: start; }
.srow { display: grid; padding: 16px 32px 16px 24px; margin-bottom: 14px; }
.srow__prod { display: flex; gap: 22px; align-items: center; }
.srow__prod strong { display: block; font-size: 1.08rem; }
.srow .muted { font-size: .92rem; }
.srow__actions { display: flex; gap: 10px; }
.srow__actions form { margin: 0; }
.num { font-weight: 700; font-size: 1.05rem; }
@media (max-width: 1100px) {
    .staff-main .table-head { display: none; }
    .prod-cols, .order-cols, .msg-cols { grid-template-columns: 1fr 1fr; }
    .srow__prod, .srow > :first-child { grid-column: 1 / -1; }
    .srow { padding: 18px; }
}
.filter-bar { display: flex; gap: 20px; background: var(--cream); padding: 22px 32px; border-radius: var(--radius); margin-bottom: 28px; flex-wrap: wrap; align-items: center; }
.filter-bar select, .filter-bar input { min-height: 52px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; }
.filter-bar input { flex: 1; min-width: 200px; }
.filter-bar .btn { margin-left: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: start; }
@media (max-width: 1100px) { .form-grid { grid-template-columns: 1fr; } }
.upload-preview { background: #f0f0f0; border-radius: var(--radius-sm); aspect-ratio: 4 / 5; max-height: 380px; margin-left: auto; margin-right: auto; overflow: hidden; margin-bottom: 20px; display: grid; place-items: center; color: var(--muted); }
.upload-preview img { width: 100%; height: 100%; object-fit: contain; }
.file-btn { position: relative; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.counter { text-align: right; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.sizes--edit .size span { min-width: 80px; height: 58px; }

/* Delete confirmation dialog */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 31, 68, .55); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: #fff; border-radius: 14px; padding: 44px; width: 100%; max-width: 820px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal__head { display: flex; gap: 24px; align-items: center; margin-bottom: 36px; }
.modal__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: none; }
.modal__head h1 { font-size: 2.3rem; margin: 0 0 4px; }
.modal__item { display: flex; gap: 24px; align-items: center; background: var(--cream); border-radius: var(--radius); padding: 22px 28px; margin-bottom: 24px; }
.modal__item strong { font-size: 1.2rem; display: block; }
.modal .btn-row > * { flex: 1; }
.modal .btn-row form { display: flex; }
.modal .btn-row form .btn { flex: 1; }
@media (max-width: 600px) { .modal { padding: 24px; } .modal__head { flex-direction: column; align-items: start; } }

/* Print - packing slip */
@media print {
    .staff-head, .staff-side, .no-print { display: none !important; }
    .staff-body { display: block; }
    .staff-main { padding: 0; }
}

/* ---------- Product form (add / edit): details, then sizes, with image + save kept in view ---------- */
.product-form { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
.form-main { display: grid; gap: 28px; min-width: 0; }
.form-side { display: grid; gap: 20px; position: sticky; top: 24px; }
.form-section h2 { font-size: 1.7rem; margin: 0 0 22px; }
.field--last { margin-bottom: 0; }
.form-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 6px; }
.form-section__head h2 { margin: 0; }
.form-section__total { margin: 0; font-size: .92rem; color: var(--muted); }
.form-section__total strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.form-section__intro { margin: 0 0 24px; font-size: .92rem; }
.form-side h2 { font-size: 1.5rem; margin: 0 0 16px; }
.form-side .upload-preview { aspect-ratio: 1; max-height: 220px; margin-bottom: 16px; }
.form-side .hint.center { margin-bottom: 0; }

/* Stock per size: one compact row per size - tick on the left, count on the right */
.size-group { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.size-group:last-of-type { margin-bottom: 0; }
.size-group legend { padding: 0; margin-bottom: 8px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 8px; }
.size-stock { display: grid; grid-template-columns: minmax(0, 1fr) 68px; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--cream); transition: background-color .15s, border-color .15s; }
.size-stock:has(input:checked) { background: #fff; border-color: var(--line-strong); }
.size-stock__name { display: flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.size-stock__name input { width: 18px; height: 18px; margin: 0; flex: none; }
.size-stock__tag { display: block; font-size: .72rem; font-weight: 600; line-height: 1.2; }
.size-stock__tag:empty { display: none; }
.size-stock--low .size-stock__tag { color: var(--amber-dark); }
.size-stock--out .size-stock__tag { color: var(--red); }
.size-stock input[type="number"] { width: 100%; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; font: inherit; text-align: right; font-variant-numeric: tabular-nums; }
.size-stock input[type="number"]:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10, 31, 68, .12); }
.size-stock input[type="number"]:disabled { background: transparent; border-style: dashed; border-color: var(--line); color: transparent; }
.size-grid-wrap.field--error .size-grid { outline: 2px solid var(--red); outline-offset: 4px; border-radius: var(--radius-sm); }
@media (max-width: 1100px) {
    .product-form { grid-template-columns: minmax(0, 1fr); }
    .form-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
}
.size-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.size-chip { font-size: .75rem; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--cream); color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.size-chip--low { background: var(--amber-soft); color: var(--amber-dark); }
.size-chip--out { background: var(--red-soft); color: var(--red-dark); text-decoration: line-through; }

/* ---------- v2: staff hub ---------- */
.hub-links { display: grid; margin: 0; padding: 0; list-style: none; }
.hub-links li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.hub-links li:first-child { padding-top: 0; }
.hub-links li:last-child { border-bottom: 0; }
.card--cream .hub-links li { border-color: #e2ddd5; }
.hub-links a { overflow-wrap: anywhere; }
.hub-links code { font-size: .9rem; word-break: break-all; align-self: flex-start; max-width: 100%; background: #fff; padding: 2px 6px; border-radius: 4px; }
.dir-table, .log-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.dir-table th, .dir-table td, .log-table th, .log-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dir-table th, .log-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; }
.log-table td.num { font-variant-numeric: tabular-nums; font-weight: 700; }
.log-table .up { color: var(--ok); }
.log-table .down { color: var(--red); }
.table-scroll { overflow-x: auto; }

/* ---------- Stock log: search + when on one line, type chips under it ---------- */
.log-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 20px; }
.log-filters__row { display: flex; gap: 16px; flex-wrap: wrap; align-items: end; }
.log-search { position: relative; flex: 1 1 280px; min-width: 0; display: flex; align-items: center; min-height: 52px; padding: 6px 6px 6px 46px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; }
.log-search:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10, 31, 68, .12); }
.log-search > .ico { position: absolute; left: 16px; color: var(--muted); }
.log-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; }
.log-when { display: grid; gap: 4px; }
.log-when label { font-size: .8rem; color: var(--muted); }
.log-when select { min-height: 52px; padding: 0 40px 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; font: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; transition: background-color .15s, border-color .15s; }
.chip span { font-size: .78rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--navy); }
.chip[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip[aria-current] span { color: #b9c3d6; }
.chip--empty:not([aria-current]) { color: var(--muted); border-color: var(--line); }
.log-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; padding: 14px 0; margin-bottom: 16px; border-top: 1px solid var(--line); font-size: .95rem; }
.log-summary p { margin: 0; }
.log-summary .up, .log-summary .down { font-weight: 700; font-variant-numeric: tabular-nums; }
.log-summary .up { color: var(--ok); }
.log-summary .down { color: var(--red); }
.log-summary__sep { margin: 0 6px; color: var(--line-strong); }
.log-card { overflow: hidden; }
.log-table--full th, .log-table--full td { padding: 12px 16px; vertical-align: middle; }
.log-table--full thead th { background: #fff; }
.log-table--full th.num, .log-table--full td.num { text-align: right; }
.log-day th { background: var(--cream); color: var(--ink); font-family: var(--body); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 8px 16px; }
.log-time { width: 70px; color: var(--muted); font-variant-numeric: tabular-nums; }
.log-product a { color: var(--ink); font-weight: 600; text-decoration: none; }
.log-product a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.log-size { width: 100px; }
.log-change { width: 90px; }
.log-table--full tbody tr:not(.log-day):hover { background: #fafaf8; }
@media (max-width: 760px) {
    .log-when { flex: 1 1 100%; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
    .log-when select { width: 100%; min-width: 0; }
    .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
    .chip { flex: none; }
    /* Rows become entries: product + change, then time, size and why, then who */
    .log-table--full, .log-table--full tbody { display: block; }
    .log-table--full thead { display: none; }
    .log-day, .log-day th { display: block; }
    .log-table--full tr:not(.log-day) { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
    .log-table--full tr:not(.log-day) td { display: block; padding: 0; border: 0; width: auto; }
    .log-table--full .log-product { grid-column: 1 / 4; grid-row: 1; }
    .log-table--full .log-change { grid-column: 4; grid-row: 1; }
    .log-table--full .log-time { grid-column: 1; grid-row: 2; font-size: .85rem; }
    .log-table--full .log-size { grid-column: 2; grid-row: 2; }
    .log-table--full .log-why { grid-column: 3 / 5; grid-row: 2; font-size: .85rem; color: var(--muted); }
    .log-table--full .log-by { grid-column: 1 / -1; grid-row: 3; font-size: .8rem; color: var(--muted); }
}

/* ---------- Staff hub ---------- */
.seg { display: inline-flex; background: var(--cream); border-radius: 999px; padding: 4px; gap: 2px; }
.seg a { padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 500; white-space: nowrap; }
.seg a:hover { color: var(--ink); }
.seg a[aria-current] { background: var(--navy); color: #fff; font-weight: 600; }
.delta { font-weight: 700; color: var(--muted); }
.delta--up { color: var(--ok); }
.delta--down { color: var(--red); }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; align-items: start; }
.dash-grid h2, .dash-grid + .card h2 { font-size: 1.6rem; margin: 0 0 18px; }
.dash-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-card-head h2 { margin: 0; }
.dash-card-head > a { font-size: .9rem; }
.dash-span-all { grid-column: 1 / -1; }
.dir-table td.num { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* Sales board: a dark navy wall-board of tiles. Every figure on it is read
   from the shop's own tables; the status tile is checked live on each load. */
.board {
    /* the site's navy, red and cream; amber is lightened to read on navy */
    --b-bg: var(--navy); --b-tile: var(--navy-2); --b-line: #2b4a7e; --b-muted: #b9c3d6;
    --b-red: var(--red); --b-red-text: #ff8597; --b-cream: var(--cream); --b-ghost: #7c8db0; --b-ok: var(--cream); --b-amber: #f5a524;
    background: var(--b-bg); color: #fff; border-radius: 18px; padding: 14px 14px 10px; margin-bottom: 40px;
}
.board__grid {
    display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
        "sales  todo  status counties"
        "orders todo  status counties"
        "orders trend trend  best"
        "hours  stock cats   people";
}
.tile--sales { grid-area: sales; } .tile--todo { grid-area: todo; } .tile--status { grid-area: status; }
.tile--counties { grid-area: counties; } .tile--orders { grid-area: orders; } .tile--trend { grid-area: trend; }
.tile--best { grid-area: best; } .tile--hours { grid-area: hours; } .tile--stock { grid-area: stock; }
.tile--cats { grid-area: cats; } .tile--people { grid-area: people; }
.board-tile { background: var(--b-tile); border-radius: 10px; padding: 18px 20px 20px; min-width: 0; display: flex; flex-direction: column; }
.board-tile h2 { font-size: 1.35rem; color: #fff; margin: 0 0 14px; }
.tile__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tile__head h2 { margin: 0; }
.tile__sub { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 600; color: var(--b-muted); margin: 22px 0 10px; }
.tile__delta { margin: 8px 0 0; font-size: .85rem; color: var(--b-muted); }
.tile__empty { color: var(--b-muted); margin: 0; }
.board .muted { color: var(--b-muted); }
.board a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.board a:hover { text-decoration-color: currentColor; }
.board :focus-visible { outline-color: #fff; }
.board .delta { color: var(--b-muted); }
.board .delta--up { color: var(--b-ok); }
.board .delta--down { color: var(--b-red-text); }
.board .tone--cream { background: var(--b-cream); }
.board .tone--ok { background: var(--b-ok); }
.board .tone--amber { background: var(--b-amber); }
.board .tone--red { background: var(--b-red); }
.board .tone--ghost { background: var(--b-ghost); }
.board .share { background: var(--b-line); }
.board .share i + i { box-shadow: inset 2px 0 0 var(--b-tile); }
.board .legend b { color: #fff; }
.board .hbars__track { background: var(--b-line); }
.board .hbars__track i { background: var(--b-red); }

/* Big figures: Bebas, with the € and K set smaller */
.fig { font-family: var(--head); font-size: clamp(3rem, 4.2vw, 4.2rem); line-height: .9; margin: 0; font-variant-numeric: tabular-nums; }
.fig--xl { font-size: clamp(3.6rem, 5.4vw, 5.4rem); }
.fig__unit { font-size: .58em; margin: 0 .04em; }
.board-tile .fig__label { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 1.05rem; font-weight: 500; margin: 6px 0 0; }
.tile--sales .meter { margin-top: 24px; }
.meter { height: 8px; background: var(--b-line); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--b-red); border-radius: 999px; }
.meter__ends { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0 0; font-size: .75rem; color: var(--b-cream); }
.meter__ends span + span { color: var(--b-muted); }

/* Needs doing: a figure per job, lit red while something is waiting */
.board .metric { position: relative; display: block; padding: 12px 14px; margin: 0 -14px; border: 1px solid transparent; border-radius: 8px; color: #fff; text-decoration: none; transition: background-color .15s; }
.metric + .metric { margin-top: 8px; }
.metric:hover { background: rgba(255, 255, 255, .05); }
.metric > span { display: block; }
.metric__label { font-size: 1.05rem; margin-top: 4px; }
.metric__ok { font-size: .8rem; font-weight: 600; color: var(--b-ok); margin-top: 2px; }
.board .metric--alarm { background: rgba(228, 0, 43, .16); border-color: var(--b-red); }
.board .metric--alarm:hover { background: rgba(228, 0, 43, .26); }
.metric .metric__flag { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; background: var(--b-red); display: grid; place-items: center; }

/* Line and column charts: SVG lines and plain divs, axis labels in HTML */
.line { position: relative; height: 150px; margin: 0 6px 0 38px; border-bottom: 1px solid var(--b-line); background: linear-gradient(var(--b-line) 1px, transparent 1px) 0 0 / 100% 50%; }
.line--tall { height: 170px; margin-top: 20px; }
.line svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.line polyline { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.series--now { stroke: var(--b-red); }
.series--prev { stroke: var(--b-cream); opacity: .55; stroke-dasharray: 4 4; }
.line__y { position: absolute; right: calc(100% + 8px); transform: translateY(-50%); font-size: .72rem; color: var(--b-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.line__x { position: relative; height: 1.4em; margin: 6px 6px 0 38px; font-size: .72rem; color: var(--b-muted); }
.line__x span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.line__x span:first-child { transform: none; }
.line__x span:last-child:not(:first-child) { transform: translateX(-100%); }
.bars { position: relative; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); align-items: end; gap: 3px; height: 150px; margin-left: 30px; border-bottom: 1px solid var(--b-line); background: linear-gradient(var(--b-line) 1px, transparent 1px) 0 0 / 100% 50%; }
.bars__col { display: flex; flex-direction: column-reverse; height: 100%; }
.bars__col i { display: block; }
.bars__col i:last-child { border-radius: 2px 2px 0 0; }
.bars__x { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; margin: 6px 0 0 30px; font-size: .72rem; color: var(--b-muted); }
.bars__x span { white-space: nowrap; }
.key { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; font-size: .78rem; color: var(--b-muted); }
.key li { display: flex; align-items: center; gap: 6px; }
.key i { width: 10px; height: 10px; border-radius: 50%; }

/* Lists and small figures on the board */
.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--b-line); font-size: .95rem; }
.board-list li:first-child { padding-top: 0; }
.board-list li:last-child { border-bottom: 0; }
.board-list a, .board-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-list b { font-weight: 600; font-variant-numeric: tabular-nums; }
.board-list small { color: var(--b-muted); font-size: .8rem; }
.mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--b-line); }
.tile--stock .mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mini--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; margin: 0; padding: 0; border: 0; }
.mini dt { font-size: .78rem; color: var(--b-muted); }
.mini dd { margin: 2px 0 0; font-family: var(--head); font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.mini .mini__d { font-family: var(--body); font-size: .8rem; margin-top: 4px; color: var(--b-muted); }

/* Network status */
.status { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.status h3 { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 1.05rem; font-weight: 600; color: #fff; margin: 0 0 4px; }
.status p { margin: 0; font-size: .85rem; color: var(--b-muted); overflow-wrap: anywhere; }
.status .status__state { display: flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; color: #fff; margin-bottom: 2px; }
.status__state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.status__state.is-up::before { background: var(--b-ok); box-shadow: 0 0 0 4px rgba(247, 245, 242, .2); }
.status__state.is-warn::before { background: var(--b-amber); box-shadow: 0 0 0 4px rgba(245, 165, 36, .2); }
.status__state.is-down::before { background: var(--b-red); box-shadow: 0 0 0 4px rgba(228, 0, 43, .3); }

.board__foot { display: flex; align-items: center; gap: 16px; padding: 14px 8px 4px; }
.board__brand { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 500; }
.board__foot .muted { font-size: .85rem; }
.board__clock { margin-left: auto; font-family: var(--head); font-size: 1.7rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }

@media (max-width: 1280px) {
    .board__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: "sales todo" "orders todo" "orders status" "trend trend" "hours counties" "best cats" "stock people";
    }
}
@media (max-width: 760px) {
    .board { padding: 8px 8px 6px; border-radius: 14px; }
    .board__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; gap: 8px; }
    .board__grid > .board-tile { grid-area: auto; }
    .board-tile { padding: 16px; }
    .bars, .bars__x { gap: 1px; }
    .board__foot .muted { display: none; }
    .dash-grid { grid-template-columns: minmax(0, 1fr); }
    .seg { width: 100%; overflow-x: auto; }
    .seg a { flex: 1; text-align: center; padding: 8px 10px; }
    .kpis { gap: 12px; margin-bottom: 32px; }
    .kpi { padding: 18px 14px; min-width: 0; }
    .kpi small { font-size: .7rem; letter-spacing: .08em; }
    .kpi b { font-size: 2rem; }
}
/* Share bar + its legend */
.share { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--line); margin-bottom: 14px; }
.share i { display: block; height: 100%; }
.tone--amber { background: var(--amber); }
.tone--navy { background: var(--navy); }
.tone--ok { background: var(--ok); }
.tone--red { background: var(--red); }
.tone--grey { background: var(--line-strong); }
.share i + i { box-shadow: inset 2px 0 0 #fff; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.legend li { display: grid; grid-template-columns: auto 1fr auto 3.2em; align-items: center; gap: 10px; }
.legend b, .legend .muted { text-align: right; font-variant-numeric: tabular-nums; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
/* Horizontal bars */
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.hbars li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: .92rem; }
.hbars__label { font-weight: 600; }
.hbars__val { font-variant-numeric: tabular-nums; text-align: right; }
.hbars__track { grid-column: 1 / -1; height: 8px; background: var(--cream); border-radius: 999px; overflow: hidden; }
.hbars__track i { display: block; height: 100%; background: var(--red); border-radius: 999px; }
.tag-admin { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: var(--navy); color: #fff; vertical-align: middle; }
.badge--new { background: var(--red); }
.badge--replied { background: var(--ok); }
.badge--closed { background: #6b7280; }

/* =========================================================
   Motion
   One authored moment: the product photo travels between a
   product card and its product page (cross-page view
   transitions, Chrome/Edge). Everything else is feedback.
   ========================================================= */
@view-transition { navigation: auto; }
.site-head { view-transition-name: site-head; }
.pdp__media img { view-transition-name: product-photo; }
::view-transition-old(root) { animation: vt-out .16s ease-in both; }
::view-transition-new(root) { animation: vt-in .3s var(--ease-out) both; }
::view-transition-group(product-photo) { animation-duration: .45s; animation-timing-function: var(--ease-out); }
::view-transition-old(product-photo), ::view-transition-new(product-photo) { height: 100%; object-fit: contain; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }

/* Press feedback */
.btn { transition: background .15s, color .15s, border-color .15s, transform .1s; }
.btn:active:not(.btn--disabled) { transform: translateY(1px) scale(.98); }
.size span { transition: background .15s, border-color .15s, color .15s, transform .1s; }
.size:active input:not(:disabled) + span { transform: scale(.96); }

/* Things that open drop in from where they were triggered */
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes fade-in { from { opacity: 0; } }
.account__menu[open] .account__panel { animation: drop-in .18s var(--ease-out); transform-origin: top right; }
.main-nav.is-open, .filters.is-open { animation: drop-in .22s var(--ease-out); }
.alert { animation: drop-in .35s var(--ease-out); }

/* Accordions open to their real height where the browser supports it */
:root { interpolate-size: allow-keywords; }
.acc::details-content { block-size: 0; overflow: clip; transition: block-size .3s var(--ease-out), content-visibility .3s allow-discrete; }
.acc[open]::details-content { block-size: auto; }

/* Cart count lands when something was just added */
.cart-count.is-bumped { animation: cart-land .6s var(--ease-out); }
.cart-count.is-bumped::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 var(--red); animation: cart-ring .7s var(--ease-out); }
@keyframes cart-land { 0% { transform: scale(1); } 25% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes cart-ring { from { box-shadow: 0 0 0 0 rgba(228, 0, 43, .55); } to { box-shadow: 0 0 0 12px rgba(228, 0, 43, 0); } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    /* Keep the page cross-fade and colour feedback, drop movement and scaling */
    ::view-transition-new(root) { animation-name: fade-in; }
    ::view-transition-group(*) { animation-duration: 0s; }
    .product-card:hover, .btn:active:not(.btn--disabled), .size input + span { transform: none !important; }
    .account__menu[open] .account__panel, .main-nav.is-open, .filters.is-open, .alert { animation-name: fade-in; }
    .cart-count.is-bumped { animation: none; }
    .acc::details-content { transition: none; }
}
