/* Confire Uniform Store — brand colours taken from the Confire logo (confire-logo.svg):
   blue #1F4FA8 (arrowhead), red #D9262E (CONFIRE), gray #808285 (EMS • MOBILE HEALTH). */
:root {
  --blue: #1F4FA8; --blue-dark: #173c80; --blue-tint: #e8eef9;
  --red: #D9262E; --red-dark: #b01d24; --red-tint: #fdeced;
  --gray: #808285; --gray-light: #c7c8ca;
  --ink: #1b2330; --muted: #5f6266; --bg: #f5f6f8; --card: #fff; --line: #e3e5e8;
  --ok: #166534; --ok-bg: #dcfce7; --err: #991b1b; --err-bg: #fee2e2; --info-bg: var(--blue-tint);
  --brand: var(--blue); --brand-dark: var(--blue-dark);
  --radius: 10px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5; }
a { color: var(--blue); }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.topbar { background: var(--blue); color: #fff; text-align: center; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; }
.site-header { background: #fff; border-bottom: 3px solid var(--red); box-shadow: 0 1px 6px rgba(27,35,48,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-logo { height: 56px; width: auto; display: block; }
.brand-text { color: var(--gray); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .12em; border-left: 2px solid var(--gray-light); padding-left: 14px; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a, .link-btn { color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.main-nav a.active, .main-nav a:hover { color: var(--blue); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.main-nav .link-btn { color: var(--muted); font-weight: 500; }
.cart .link-btn, .qty-form .link-btn { color: var(--blue); font-size: .85rem; }
.inline { display: inline; }
.demo-banner { background: #fff4d6; color: #6b4e00; text-align: center; padding: 6px 12px; font-size: .88rem; border-bottom: 1px solid #f1dfa6; }
main { padding: 28px 20px 48px; }
h1 { margin: 0 0 16px; font-size: 1.7rem; color: var(--ink); }
h2 { font-size: 1.15rem; margin: 0 0 12px; }

/* Store hero */
.store-hero { background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 70%); color: #fff; border-radius: var(--radius); padding: 22px 26px; margin-bottom: 22px; position: relative; overflow: hidden; }
.store-hero::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 10px; background: var(--red); }
.store-hero h1 { color: #fff; margin: 0 0 4px; font-size: 1.6rem; }
.store-hero p { margin: 0; opacity: .9; }

/* Cards, forms */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.narrow { max-width: 440px; margin: 40px auto; }
.login-card { text-align: left; border-top: 4px solid var(--red); }
.login-logo { display: block; width: 240px; height: auto; margin: 4px auto 18px; }
.login-card h1 { text-align: center; font-size: 1.4rem; }
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 4px; font-size: .9rem; font-weight: 600; }
input, select { font: inherit; padding: 9px 11px; border: 1px solid #cfd3d8; border-radius: 8px; background: #fff; min-width: 0; }
input:focus, select:focus, .btn:focus-visible { outline: 3px solid rgba(31,79,168,.35); outline-offset: 1px; border-color: var(--blue); }
.btn { display: inline-block; font: inherit; font-weight: 700; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--blue); background: #fff; color: var(--blue); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--blue-tint); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.block { width: 100%; }
.btn.small { padding: 5px 10px; font-size: .85rem; }
.alert { padding: 10px 14px; border-radius: 8px; }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.err { background: var(--err-bg); color: var(--err); }
.alert.info { background: var(--info-bg); color: var(--blue-dark); }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Tabs */
.tabs { display: flex; gap: 8px; border-bottom: 2px solid var(--line); margin-bottom: 12px; flex-wrap: wrap; }
.tab { padding: 12px 22px; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -2px; font-size: 1.05rem; }
.tab:hover { color: var(--blue); }
.tab.active { color: var(--blue); border-color: var(--red); }
.tab-num { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; background: var(--line); color: var(--ink); padding: 2px 6px; border-radius: 4px; margin-right: 4px; vertical-align: middle; }
.tab.active .tab-num { background: var(--blue); color: #fff; }
.tab-help { color: var(--muted); margin: 0 0 16px; }
.category-filter { scroll-margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.category-filter-label { color: var(--muted); font-weight: 700; margin-right: 2px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; box-sizing: border-box; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: #fff; font-weight: 600; font-size: .95rem; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip-count { font-size: .8rem; opacity: .7; margin-left: 2px; }
@media (max-width: 700px) {
  .category-filter { gap: 8px; max-width: 100%; }
  .category-filter-label { flex: 0 0 100%; margin: 0; }
  .chip { flex: 0 1 auto; max-width: 100%; font-size: 1rem; }
}
.allowance { font-size: 1rem; background: var(--blue-tint); border-left: 4px solid var(--blue); padding: 8px 12px; border-radius: 6px; }

/* Product grid */
.shop-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.product:hover { box-shadow: 0 6px 18px rgba(27,35,48,.10); transform: translateY(-2px); }
.product-img { aspect-ratio: 1 / 1; background: #eef0f3; display: grid; place-items: center; color: var(--gray); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 14px; display: grid; gap: 6px; flex: 1; align-content: start; }
.vendor { margin: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gray); font-weight: 700; }
.product-body h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.price { margin: 0 0 4px; color: var(--red); font-weight: 800; font-size: 1.05rem; }
.add-form { display: grid; grid-template-columns: 1fr 64px auto; gap: 6px; margin-top: auto; }
.add-form select { grid-column: 1 / -1; }
.add-form .btn { background: var(--blue); color: #fff; }
.add-form .btn:hover { background: var(--blue-dark); }

/* Cart */
.cart { position: sticky; top: 16px; border-top: 4px solid var(--blue); }
.cart-lines { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 12px; }
.cart-lines li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.qty-form { display: flex; gap: 6px; align-items: center; }
.qty-form input { width: 64px; padding: 5px 8px; }
.total { display: flex; justify-content: space-between; font-size: 1.05rem; }

/* Orders / admin */
.orders { display: grid; gap: 14px; }
.order header { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.badge { font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--line); }
.badge.voucher { background: var(--blue-tint); color: var(--blue-dark); } .badge.optional { background: var(--red-tint); color: var(--red-dark); }
.status { margin-left: auto; font-weight: 600; font-size: .9rem; }
.subnav { display: flex; gap: 16px; margin-bottom: 16px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.row-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; }
.table-scroll { overflow-x: auto; }
code { background: #eef0f3; padding: 1px 5px; border-radius: 4px; } .break { word-break: break-all; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); color: var(--ink); font-size: .82rem; }
.footer-inner { display: flex; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 22px; }
.footer-inner p { margin: 0; }


/* Co-branding: Confire stays primary; 2 Hot Activewear shown as partner */
.partner { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); margin-right: auto; padding-left: 4px; }
.partner-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); }
.partner-logo { height: 38px; width: auto; display: block; }
.partner-name { font-weight: 800; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.cobrand { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .85rem; color: var(--gray); margin: -8px 0 14px; }
.cobrand img { height: 31px; width: auto; }
.footer-x { color: var(--gray); font-size: 1.1rem; }
.footer-partner { height: 40px; width: auto; }

/* Voucher balance bar (header) */
.voucher-bar { background: var(--blue-tint); color: var(--blue-dark); font-size: .9rem; border-bottom: 1px solid #cdd9f0; padding: 6px 0; }
.muted-inv { color: var(--muted); }
.cart-est { background: #f7f8fa; border-radius: 6px; padding: 6px 8px; }

/* Coverage groups (checkout review, receipts) */
.cov { margin-bottom: 18px; }
.cov h3 { font-size: 1rem; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.cov-voucher h3 { color: var(--blue-dark); } .cov-card h3 { color: var(--red-dark); }
table.lines tfoot td { font-weight: 600; border-bottom: 0; }
.num { text-align: right; white-space: nowrap; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--line); color: var(--ink); text-transform: none; }
.pill.voucher, .pill.reserved { background: var(--blue-tint); color: var(--blue-dark); }
.pill.card, .pill.voucher_overage, .pill.charged { background: var(--red-tint); color: var(--red-dark); }
.pill.adjustment, .pill.refund, .pill.released { background: var(--ok-bg); color: var(--ok); }
.tag-overage { font-size: .7rem; font-weight: 700; color: var(--red-dark); border: 1px solid var(--red); border-radius: 4px; padding: 0 5px; margin-left: 4px; }
table.totals { max-width: 460px; margin-left: auto; margin-bottom: 14px; }
table.totals td { border-bottom: 1px solid var(--line); }
table.totals tr.grand td { font-weight: 800; border-top: 2px solid var(--ink); }
.breakdown { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 16px; margin: 8px 0; }
.breakdown div { background: #f7f8fa; border-radius: 6px; padding: 6px 10px; }
.breakdown dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.breakdown dd { margin: 0; font-size: 1rem; }
.order-ref { color: var(--ink); text-decoration: none; }
.order-actions { display: flex; gap: 8px; margin: 6px 0 0; }
.status.st-shipped { color: var(--ok); } .status.st-cancelled, .status.st-failed { color: var(--err); } .status.st-pending { color: var(--blue-dark); }
.ship-form { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; } .ship-form input { width: 110px; padding: 4px 6px; font-size: .85rem; }
tr.low td { background: #fff7e6; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }

/* Receipt */
.receipt { max-width: 900px; margin: 0 auto 16px; border-top: 4px solid var(--red); }
.receipt-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.receipt-brands { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.receipt-x { font-size: .75rem; color: var(--gray); text-transform: uppercase; letter-spacing: .06em; }
.receipt-meta { text-align: right; } .receipt-meta h1 { margin: 0 0 4px; }
.receipt-parties { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .92rem; }
.balance-after { background: var(--blue-tint); padding: 8px 12px; border-radius: 6px; }

@media print {
  .topbar, .site-header, .voucher-bar, .demo-banner, .no-print, .site-footer, .subnav { display: none !important; }
  .site-header { border: 0; box-shadow: none; }
  body { background: #fff; }
  main { padding: 0; }
  .card { border: 0; padding: 0; }
  .receipt { border-top: 0; max-width: none; }
  a { color: inherit; text-decoration: none; }
  .pill, .tag-overage { border: 1px solid #999; }
  table { page-break-inside: auto; } tr { page-break-inside: avoid; }
}

@media (max-width: 860px) { .shop-layout { grid-template-columns: 1fr; } .cart { position: static; } }
@media (max-width: 560px) {
  .header-inner { min-height: 60px; }
  .brand-logo { height: 42px; }
  .brand-text { display: none; }
  .partner-label { display: none; } .partner-logo { height: 30px; } .partner-name { font-size: .75rem; }
  .main-nav { gap: 14px; font-size: .92rem; }
  .store-hero { padding: 16px 18px; } .store-hero h1 { font-size: 1.3rem; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-body { padding: 10px; }
  .add-form { grid-template-columns: 1fr 56px; }
  .add-form .btn { grid-column: 1 / -1; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .tab { text-align: center; padding: 10px 6px; font-size: .95rem; }
  .tab-num { display: block; width: max-content; margin: 0 auto 4px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* Option picker (Style / Color / Size) + product page */
.picker { display: grid; gap: 6px; grid-column: 1 / -1; }
.opt-selects { display: grid; gap: 6px; }
.opt { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 6px; font-size: .82rem; }
.opt select { width: 100%; }
.picker-price:empty { display: none; }
.product-body h3 a { color: inherit; text-decoration: none; }
a.product-img { text-decoration: none; }
.product-img { position: relative; background: #fff; }
.product-img img { position: absolute; inset: 0; object-fit: contain; background: #fff; }
.crumbs { margin: 4px 0 14px; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.pdp-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.pdp-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pdp-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumb { width: 72px; height: 72px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info h1 { margin: 0 0 6px; font-size: 1.5rem; line-height: 1.25; }
.pdp-form { display: grid; gap: 12px; margin: 14px 0; max-width: 420px; }
.pdp-form .opt { grid-template-columns: 70px 1fr; font-size: .95rem; }
.pdp-form .qty { grid-template-columns: 70px 90px; display: grid; align-items: center; }
.tab-badge { font-size: .85rem; padding: 6px 10px; border-radius: 6px; background: #eef3fb; display: inline-block; }
.tab-badge.optional { background: #fdecec; }
.pdp-desc { border-top: 1px solid var(--line); padding-top: 12px; font-size: .95rem; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
/* Admin bulk customer upload */
.page-actions { display: flex; gap: 8px; margin: 0 0 16px; }
.err-text { color: var(--err); }
tr.row-bad td { background: #fff4f4; }

/* Embroidery name / rank on product and shop add forms */
.emb-fields { display: grid; gap: 8px; grid-column: 1 / -1; }
.emb-help { margin: 0; font-size: .82rem; color: var(--muted, #5f6266); }
.emb-fields label { display: grid; gap: 2px; font-size: .85rem; }
.emb-fields input[type="text"], .emb-fields input[type="number"] { width: 100%; padding: 6px 8px; }
.pdp-form .emb-fields label { font-size: .95rem; }
.emb-note { display: inline-block; margin-top: 2px; }

/* Admin orders */
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; margin: 0 0 16px; }
.filters label { display: grid; gap: 2px; font-size: .85rem; font-weight: 500; }
.filters input, .filters select { min-width: 160px; }
.fulfill-form { display: grid; gap: 14px; max-width: 520px; margin: 12px 0; }
.method-choice { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; }
.method-fields { display: grid; gap: 8px; }
.method-fields label { display: grid; gap: 2px; font-size: .9rem; }
.status.st-ready-for-pickup { color: #8a5a00; }
.status.st-picked-up, .status.st-shipped { color: #1a7f37; }
.status.st-cancelled, .status.st-failed { color: var(--err, #b42318); }

/* Addresses (ship-to / bill-to) */
.addr-set { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px 12px; margin: 0; }
.addr-set legend { font-weight: 600; padding: 0 6px; }
.addr-fields { display: grid; gap: 8px; }
.addr-fields label { display: grid; gap: 2px; font-size: .9rem; }
.addr-row { display: grid; grid-template-columns: 1fr 5.5rem 7.5rem; gap: 8px; }
.addr-fields input.invalid { border-color: var(--err, #b42318); }
.addr-block { line-height: 1.4; }
.addr-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 24px; margin: 14px 0; }
.addr-edit summary { cursor: pointer; font-weight: 600; margin: 6px 0; }
.addr-edit { margin: 8px 0 14px; }
.address-form .check, .addr-edit .check { display: flex; gap: 8px; align-items: center; }
[hidden] { display: none !important; }
@media print { .addr-edit { display: none; } }
.receipt-addresses { margin-top: 14px; margin-bottom: 18px; }

.fulfillment-choice { display: grid; gap: 6px; margin: 12px 0; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; }
.fulfillment-choice legend { font-weight: 600; padding: 0 4px; }
/* Keep both radios the same size: the global input { min-width: 0 } plus flex-shrink
   would squash the pickup radio when its longer label (the store address) wraps. */
.fulfillment-choice input[type="radio"] { flex-shrink: 0; min-width: auto; }

/* ==== Style refresh (display only): livelier palette, bolder tabs and headers ====
   Builds on the Confire logo colours (blue #1F4FA8, red #D9262E, gray #808285); adds a deep navy and a warm gold accent.
   Text pairs checked for WCAG AA: white on #1F4FA8 8.1:1, white on #D9262E 4.9:1, white on #0B2A66 14:1, #0B2A66 on #FFB81C 9.2:1. */
:root {
  --navy: #0B2A66; --blue-bright: #2F6FE0; --blue-tint: #e3ecfd; --red-tint: #fde8e9; --gold: #FFB81C; --gold-tint: #fff4d1;
  --bg: #eef2f9; --line: #d5deee; --muted: #4f5560;
}
body { background: linear-gradient(180deg, #e3ecfd 0, var(--bg) 320px) no-repeat, var(--bg); }

/* Top strip + header */
.topbar { background: linear-gradient(90deg, var(--navy), var(--blue) 55%, var(--navy)); font-weight: 600; }
.site-header { border-bottom: 4px solid var(--red); box-shadow: 0 3px 0 var(--gold), 0 6px 14px rgba(11,42,102,.12); position: relative; }
.brand-text { color: var(--navy); border-left-color: var(--red); font-weight: 800; }
.main-nav { flex-wrap: wrap; row-gap: 4px; }
.main-nav a { font-weight: 700; padding: 6px 2px; }
.main-nav a.active, .main-nav a:hover { color: var(--blue); text-decoration-color: var(--red); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.main-nav .link-btn { color: var(--navy); font-weight: 600; padding: 6px 2px; }
.voucher-bar { background: var(--navy); color: #fff; border-bottom: 3px solid var(--gold); font-weight: 500; }
.voucher-bar strong { color: var(--gold); }
.voucher-bar .muted-inv { color: #cfdcf7; }

/* Headers */
h1 { color: var(--navy); font-weight: 800; letter-spacing: -.01em; }
h2 { color: var(--navy); font-weight: 800; letter-spacing: -.005em; padding-bottom: 6px; border-bottom: 3px solid var(--red-tint); }
.store-hero { background: linear-gradient(115deg, var(--navy) 0%, var(--blue) 62%, var(--blue-bright) 100%); padding: 26px 30px; border-bottom: 5px solid var(--gold); box-shadow: 0 8px 20px rgba(11,42,102,.22); }
.store-hero::after { width: 14px; background: var(--red); }
.store-hero h1 { color: #fff; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.store-hero p { opacity: 1; font-size: 1.05rem; color: #e6eeff; }
.login-card { border-top: 6px solid var(--red); box-shadow: 0 10px 28px rgba(11,42,102,.14); }
.login-card h1 { font-size: 1.7rem; color: var(--navy); }
.card { border-color: var(--line); box-shadow: 0 1px 3px rgba(11,42,102,.06); }
.cart { border-top: 5px solid var(--red); }
.cart h2 { border-bottom-color: var(--gold-tint); }
.allowance { background: var(--gold-tint); border-left-color: var(--gold); color: var(--ink); }
.product { border-color: var(--line); }
.product:hover { box-shadow: 0 8px 22px rgba(11,42,102,.18); }
.price { color: #C3202A; }
.add-form .btn { background: var(--blue); }
.btn { border-color: var(--blue); }
.btn.primary { background: var(--red); border-color: var(--red); }

/* Tabs: tab-shaped, solid colour when active (blue = voucher, red = optional), soft tint when not */
.tabs { gap: 6px; border-bottom: 4px solid var(--blue); margin-bottom: 16px; }
.tabs:has(.tab[href$="/optional"].active) { border-bottom-color: var(--red); }
.tab { background: #fff; color: var(--navy); border: 2px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; margin-bottom: 0; padding: 12px 24px; font-weight: 700; }
.tab:hover { background: var(--blue-tint); color: var(--blue); border-color: #b4c6ea; }
.tab.active { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 -4px 0 var(--gold) inset; padding-top: 16px; font-weight: 800; }
.tab[href$="/optional"].active { background: var(--red); border-color: var(--red); }
.tab[href$="/optional"]:hover:not(.active) { background: var(--red-tint); color: var(--red-dark); border-color: #f0b4b7; }
.tab-num { background: var(--blue-tint); color: var(--navy); font-weight: 800; }
.tab.active .tab-num { background: var(--gold); color: var(--navy); }
.tab-help { color: var(--muted); }

/* Filter chips */
.category-filter-label { color: var(--navy); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.chip { border: 2px solid #b4c6ea; color: var(--navy); font-weight: 700; }
.chip:hover { background: var(--blue-tint); border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 3px 0 var(--gold); }
.chip-count { opacity: .8; }

/* Orders / badges / tables pick up the same accents */
.badge.voucher, .pill.voucher, .pill.reserved { background: var(--blue-tint); color: var(--navy); }
th { color: var(--navy); }
.site-footer { border-top: 4px solid var(--blue); }

/* Phones: keep the whole top menu on screen (wraps instead of clipping "Sign out") and never scroll sideways */
body { overflow-x: clip; }
@media (max-width: 560px) {
  .header-inner { gap: 6px 12px; }
  .main-nav { width: 100%; gap: 2px 16px; font-size: .95rem; justify-content: flex-start; }
  .main-nav a, .main-nav .link-btn { padding: 8px 0; }
  .store-hero { padding: 18px 18px; } .store-hero h1 { font-size: 1.5rem; }
  .tabs { gap: 4px; border-bottom-width: 4px; }
  .tab { border-radius: 10px 10px 0 0; padding: 10px 6px; }
  .tab.active { padding-top: 14px; }
}

/* Optional tab: titled sections (the voucher tab stays one ungrouped grid) */
.shop-sections { min-width: 0; }
.shop-section { margin: 0 0 28px; }
.shop-section:last-child { margin-bottom: 0; }
.shop-section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 0 0 8px; color: #0B2A66; font-size: 1.35rem; font-weight: 800; letter-spacing: .02em; border-bottom: 3px solid #FFB81C; }
.shop-section-count { display: inline-block; min-width: 1.6em; padding: 2px 9px; border-radius: 999px; background: #0B2A66; color: #fff; font-size: .8rem; font-weight: 700; text-align: center; }
@media (max-width: 700px) {
  .shop-section-title { font-size: 1.2rem; }
}
