/* ================================================================
   CLICK IT — NZ Technology Store
   Amazon-inspired design system — built from scratch
   ================================================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --c-navy: #004c91;
  --c-navy-light: #003d7a;
  --c-navy-lighter: #003068;
  --c-blue: #0071CE;
  --c-blue-hover: #0060b3;
  --c-orange: #FFC220;
  --c-orange-dark: #e6b01d;
  --c-yellow: #FFC220;
  --c-yellow-border: #e6b01d;
  --c-green: #2a8703;
  --c-green-light: #1a7a00;
  --c-red: #d32f2f;
  --c-red-light: #c62828;
  --c-link: #0071CE;
  --c-link-hover: #005bb5;
  --c-text: #0f1111;
  --c-text-secondary: #565959;
  --c-text-light: #888c8c;
  --c-border: #d5d9d9;
  --c-border-light: #e7e7e7;
  --c-surface: #fff;
  --c-surface-alt: #f7f8f8;
  --c-surface-hover: #f2f3f3;
  --c-radius: 8px;
  --c-radius-sm: 4px;
  --c-radius-lg: 12px;
  /* Multi-colour main navigation tokens (professional, coordinated) */
  --nav-c-departments: var(--c-blue);
  --nav-c-deals: #e65100;
  --nav-c-computers: #6a3aa2;
  --nav-c-laptops: #0066cc;
  --nav-c-gaming: #b02aa0;
  --nav-c-components: #0f62fe;
  --nav-c-monitors: #0077b6;
  --nav-c-printers: #0b6e99;
  --nav-c-networking: #1a7f6a;
  --nav-c-clearance: #c62828;
  --nav-c-business: #2c3e50;
  --nav-c-microsoft: #005a9e;
  --nav-c-trackorder: #355070;
  --c-shadow: 0 1px 3px rgba(0,0,0,.08);
  --c-shadow-md: 0 2px 8px rgba(0,0,0,.1);
  --c-shadow-lg: 0 4px 16px rgba(0,0,0,.14);
  --container: 1440px;
  --header-h: 56px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gutter: 16px;
}
@media (max-width: 768px) { :root { --gutter: 12px; --header-h: 52px; } }
@media (max-width: 480px) { :root { --gutter: 10px; } }

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--c-text); background: #f0f2f4; line-height: 1.5; overflow-x: hidden; width: 100%; }
a { color: var(--c-link); text-decoration: none; }
a:hover { color: var(--c-link-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
/* Auto-fit container: centers content with responsive margins */
.container-auto { width: 100%; max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 20px; font-weight: 600; font-size: 13px;
  transition: all .15s; cursor: pointer; white-space: nowrap; text-decoration: none;
  border: 1px solid transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--c-yellow); border-color: var(--c-yellow-border); color: var(--c-text); }
.btn-primary:hover { background: #fcd200; text-decoration: none; }
.btn-secondary { background: var(--c-surface); border-color: var(--c-border); color: var(--c-text); }
.btn-secondary:hover { background: var(--c-surface-hover); border-color: #adb1b8; text-decoration: none; }
.btn-orange { background: var(--c-orange); color: #fff; border-color: transparent; }
.btn-orange:hover { background: var(--c-orange-dark); text-decoration: none; }
.btn-link { color: var(--c-link); padding: 4px 8px; }
.btn-link:hover { color: var(--c-link-hover); text-decoration: underline; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ================================================================
   MAIN HEADER
   ================================================================ */
.main-header { background: var(--c-blue); position: sticky; top: 0; z-index: 100; width: 100%; }
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 12px; height: var(--header-h);
}
.hdr-logo {
  display: flex; align-items: center; gap: 8px; color: #fff;
  text-decoration: none; flex-shrink: 0;
}
.hdr-logo:hover { text-decoration: none; }
.hdr-logo-icon {
  width: 40px; height: 40px; background: var(--c-yellow); color: var(--c-navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px; border-radius: 6px;
}
.hdr-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.hdr-logo-name { font-weight: 800; font-size: 18px; color: #fff; }
.hdr-logo-tag { font-size: 10px; color: #aab8c8; }

/* Delivery */
.hdr-deliver {
  display: flex; align-items: center; gap: 7px; color: #d0e4f7; flex-shrink: 0;
  cursor: pointer; padding: 4px 10px; border-radius: 6px; max-width: 170px;
}
.hdr-deliver:hover { background: rgba(255,255,255,.1); }
.hdr-deliver-pin { display: flex; align-items: center; color: #fff; flex-shrink: 0; }
.hdr-deliver-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.hdr-deliver-label { font-size: 11px; color: #bcd6ef; white-space: nowrap; }
.hdr-deliver-loc { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; }
@media (max-width: 768px) {
  .hdr-deliver { display: none; } /* moved to mobile drawer */
}

/* Search */
.hdr-search {
  flex: 1; display: flex; position: relative; max-width: 700px; height: 42px; min-width: 0;
}
@media (max-width: 768px) { .hdr-search { max-width: none; height: 38px; } }
.hdr-search-cat {
  background: var(--c-surface-alt); border: none; border-right: 1px solid var(--c-border);
  padding: 0 12px; font-size: 12px; color: var(--c-text-secondary);
  border-radius: var(--c-radius-sm) 0 0 var(--c-radius-sm); cursor: pointer;
  max-width: 120px;
}
.hdr-search-input {
  flex: 1; border: none; padding: 0 14px; font-size: 14px; outline: none;
  min-width: 0;
}
.hdr-search-btn {
  background: var(--c-orange); color: var(--c-navy); border: none;
  width: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 0 var(--c-radius-sm) var(--c-radius-sm) 0;
  transition: background .15s;
}
.hdr-search-btn:hover { background: var(--c-orange-dark); }

/* Autocomplete */
.hdr-ac {
  position: absolute; top: 100%; left: 0; right: 0; background: #fff;
  border-radius: 0 0 var(--c-radius) var(--c-radius); box-shadow: var(--c-shadow-lg);
  z-index: 200; max-height: 400px; overflow-y: auto;
  border: 1px solid var(--c-border);
}
.hdr-ac-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  cursor: pointer; transition: background .1s; font-size: 13px;
}
.hdr-ac-item:hover { background: var(--c-surface-hover); }
.hdr-ac-item img { width: 36px; height: 36px; object-fit: contain; border-radius: 4px; }
.hdr-ac-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdr-ac-price { color: var(--c-red); font-weight: 700; font-size: 13px; white-space: nowrap; }
.hdr-ac-section { padding: 8px 14px; font-size: 11px; font-weight: 700; color: var(--c-text-secondary); text-transform: uppercase; letter-spacing: .5px; border-top: 1px solid var(--c-border-light); }
.hdr-ac-item { position: relative; }
.hdr-ac-item.active { background: var(--c-surface-hover); box-shadow: inset 3px 0 0 var(--c-blue); }
.hdr-ac-item mark { background: transparent; color: inherit; font-weight: 700; }
.hdr-ac-thumb { width: 36px; height: 36px; flex: 0 0 36px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; background: var(--c-surface-alt); border-radius: 4px; }
.hdr-ac-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hdr-ac-title { font-size: 13px; line-height: 1.3; }
.hdr-ac-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; color: var(--c-text-light); }
.hdr-ac-brand { font-weight: 600; color: var(--c-navy); text-transform: uppercase; letter-spacing: .3px; }
.hdr-ac-cat { text-transform: capitalize; }
.hdr-ac-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: 0 0 auto; }
.hdr-ac-stock { font-size: 10.5px; font-weight: 700; }
.hdr-ac-stock.in { color: var(--c-green-light); }
.hdr-ac-stock.out { color: var(--c-red); }
.hdr-ac-status { color: var(--c-text-secondary); justify-content: flex-start; }
.hdr-ac-spinner { width: 14px; height: 14px; flex: 0 0 14px; border: 2px solid var(--c-border); border-top-color: var(--c-blue); border-radius: 50%; animation: acSpin .7s linear infinite; }
@keyframes acSpin { to { transform: rotate(360deg); } }
.hdr-ac-viewall { justify-content: center; font-weight: 700; color: var(--c-navy); border-top: 1px solid var(--c-border-light); }
@media (max-width: 768px) {
  .hdr-ac { max-height: 300px; }
  .hdr-ac-item { padding: 9px 12px; }
}

/* Actions */
.hdr-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.hdr-action {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 10px; color: #ccc; border-radius: 4px; text-decoration: none;
  transition: background .15s; position: relative;
}
.hdr-action:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.hdr-action-label { font-size: 11px; font-weight: 600; white-space: nowrap; }
.hdr-cart { position: relative; }
.hdr-cart-count {
  position: absolute; top: 0; right: 2px; background: var(--c-orange);
  color: #004c91; font-size: 11px; font-weight: 800; min-width: 18px;
  height: 18px; border-radius: 9px; display: flex; align-items: center;
  justify-content: center; padding: 0 4px;
}
.hdr-hamburger { display: none; color: #fff; padding: 8px; }

/* ================================================================
   CATEGORY NAV — Walmart-style pill navigation
   ================================================================ */
.cat-nav {
  background: var(--c-blue); border-bottom: 1px solid rgba(0,0,0,.08);
  position: relative; z-index: 90;
}
.cat-nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 6px var(--gutter);
  display: flex; align-items: center; gap: 6px; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }

/* Keep the nav row and dropdowns from overflowing the screen width. */
html, body { overflow-x: hidden; max-width: 100%; }
.nav-mega { width: min(820px, calc(100vw - 24px)); }
@media (max-width: 900px) {
  .nav-mega { width: calc(100vw - 24px); }
  .nav-mega-left { width: 220px; }
}

/* Pill buttons */
.cat-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
  white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: all .15s; flex-shrink: 0; border: none;
  background: rgba(255,255,255,.92); color: var(--c-navy);
}
.cat-pill:hover { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); text-decoration: none; }
.cat-pill-dept {
  background: var(--c-yellow); color: var(--c-navy); font-weight: 700;
  padding: 6px 16px;
}
.cat-pill-dept:hover { background: #e6b01d; }
.cat-pill-dept .pill-chevron { font-size: 10px; transition: transform .2s; }
.cat-pill-dept[aria-expanded='true'] .pill-chevron { transform: rotate(180deg); }
.cat-pill-svc {
  background: rgba(255,255,255,.85); color: var(--c-navy); font-weight: 600;
}
.cat-pill-svc:hover { background: #fff; }
.cat-pill-promo {
  font-weight: 600;
}
.cat-pill-deal {
  color: #e65100; background: #fff3e0;
}
.cat-pill-deal:hover { background: #ffe0b2; }
.cat-pill-new {
  color: #1b5e20; background: #e8f5e9;
}
.cat-pill-new:hover { background: #c8e6c9; }

/* Multi-colour nav — colours come from tokens so they stay consistent across
   desktop and mobile and are easy to restyle. Each link uses a soft tinted
   background and a strong, accessible text colour. A plain background is
   declared first as a fallback where color-mix() is unsupported. */
.cat-pill-c-dept    { color: var(--nav-c-departments);  background: #e7f1fb; background: color-mix(in srgb, var(--nav-c-departments) 10%, #fff); }
.cat-pill-c-deals   { color: var(--nav-c-deals);       background: #fff0e0; background: color-mix(in srgb, var(--nav-c-deals) 10%, #fff); }
.cat-pill-c-computers { color: var(--nav-c-computers); background: #f0e9f8; background: color-mix(in srgb, var(--nav-c-computers) 10%, #fff); }
.cat-pill-c-laptops { color: var(--nav-c-laptops);     background: #e7f0fc; background: color-mix(in srgb, var(--nav-c-laptops) 10%, #fff); }
.cat-pill-c-gaming  { color: var(--nav-c-gaming);      background: #f8eaf5; background: color-mix(in srgb, var(--nav-c-gaming) 10%, #fff); }
.cat-pill-c-components { color: var(--nav-c-components); background: #e8effe; background: color-mix(in srgb, var(--nav-c-components) 10%, #fff); }
.cat-pill-c-monitors { color: var(--nav-c-monitors);   background: #e6f2fa; background: color-mix(in srgb, var(--nav-c-monitors) 10%, #fff); }
.cat-pill-c-printers { color: var(--nav-c-printers);   background: #e7f2f8; background: color-mix(in srgb, var(--nav-c-printers) 10%, #fff); }
.cat-pill-c-networking { color: var(--nav-c-networking); background: #e5f4ef; background: color-mix(in srgb, var(--nav-c-networking) 10%, #fff); }
.cat-pill-c-clearance { color: var(--nav-c-clearance); background: #fceaec; background: color-mix(in srgb, var(--nav-c-clearance) 9%, #fff); font-weight: 700; }
.cat-pill-c-business { color: var(--nav-c-business);   background: #e9edf1; background: color-mix(in srgb, var(--nav-c-business) 10%, #fff); }
.cat-pill-c-microsoft { color: var(--nav-c-microsoft); background: #e6f0f9; background: color-mix(in srgb, var(--nav-c-microsoft) 10%, #fff); }
.cat-pill-c-trackorder { color: var(--nav-c-trackorder); background: #eaeef4; background: color-mix(in srgb, var(--nav-c-trackorder) 10%, #fff); }

.cat-pill:hover.cat-pill-c-dept, .cat-pill:hover.cat-pill-c-deals, .cat-pill:hover.cat-pill-c-computers,
.cat-pill:hover.cat-pill-c-laptops, .cat-pill:hover.cat-pill-c-gaming, .cat-pill:hover.cat-pill-c-components,
.cat-pill:hover.cat-pill-c-monitors, .cat-pill:hover.cat-pill-c-printers, .cat-pill:hover.cat-pill-c-networking,
.cat-pill:hover.cat-pill-c-clearance, .cat-pill:hover.cat-pill-c-business, .cat-pill:hover.cat-pill-c-microsoft,
.cat-pill:hover.cat-pill-c-trackorder {
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.16); transform: translateY(-1px);
}
.cat-pill:focus-visible {
  outline: 2px solid var(--c-orange); outline-offset: 2px;
}

/* Nav separator */
.nav-sep {
  width: 1px; height: 20px; background: rgba(255,255,255,.25); flex-shrink: 0; margin: 0 2px;
}

/* ================================================================
   MOBILE DRAWER
   ================================================================ */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 500;
  transition: opacity .3s;
}
.drawer-overlay[hidden] { display: none; }
.drawer {
  position: fixed; top: 0; left: -320px; width: 320px; height: 100vh;
  background: #fff; z-index: 510; overflow-y: auto; transition: left .3s;
  box-shadow: var(--c-shadow-lg);
}
.drawer.open { left: 0; }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 16px; background: var(--c-navy); color: #fff; font-weight: 700; }
.drawer-close { color: #fff; font-size: 20px; padding: 4px 8px; margin-left: auto; }
.drawer-item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--c-border-light); color: var(--c-text); font-size: 14px; }
.drawer-item:hover { background: var(--c-surface-hover); text-decoration: none; }
.drawer-nav-col { font-weight: 600; }
.drawer-nav-col.c-deals     { color: var(--nav-c-deals); }
.drawer-nav-col.c-clearance { color: var(--nav-c-clearance); }
.drawer-nav-col.c-home      { color: var(--nav-c-departments); }
.drawer-sub { padding-left: 32px; font-size: 13px; color: var(--c-text-secondary); }

/* ================================================================
   MAIN APP CONTAINER
   ================================================================ */
.app { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); min-height: 400px; width: 100%; }

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero { display: grid; grid-template-columns: 220px 1fr; gap: 10px; margin: 12px 0; width: 100%; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

/* Category sidebar in hero */
.hero-cats {
  background: #fff; border-radius: var(--c-radius); padding: 8px 0;
  box-shadow: var(--c-shadow); overflow-y: auto; max-height: 420px;
}
.hero-cat-link {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px;
  font-size: 13px; color: var(--c-text); transition: background .1s;
  text-decoration: none;
}
.hero-cat-link:hover { background: var(--c-surface-hover); text-decoration: none; }
.hero-cat-link .ic { font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }

/* Hero carousel */
.hero-carousel {
  position: relative; border-radius: var(--c-radius); overflow: hidden;
  background: var(--c-navy); width: 100%;
  /* Fluid autosize: height scales smoothly with the available width so the
     slider always fits the screen (aspect-ratio keeps images from distorting).
     The height nudges down on narrower viewports to give more breathing room. */
  aspect-ratio: 16 / 4.6;
}
@media (max-width: 1200px) { .hero-carousel { aspect-ratio: 16 / 5; } }
@media (max-width: 1024px) { .hero-carousel { aspect-ratio: 16 / 5.6; } }
@media (max-width: 768px) { .hero-carousel { aspect-ratio: 16 / 7; } }
@media (max-width: 480px) { .hero-carousel { aspect-ratio: 16 / 8.5; } }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  padding: 32px 40px; opacity: 0; transition: opacity .6s;
}
.hero-slide.active { opacity: 1; }
.hero-slide-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,76,145,.85) 0%, rgba(0,76,145,.4) 60%, transparent 100%);
}
.hero-slide-content {
  position: relative; z-index: 2; max-width: 520px; color: #fff;
}
.hero-eyebrow {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--c-orange); margin-bottom: 8px;
}
.hero-title { font-size: 28px; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.hero-subtitle { font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.5; margin-bottom: 16px; }
.hero-cta {
  display: inline-flex; padding: 12px 28px; background: var(--c-yellow);
  color: var(--c-text); border-radius: 20px; font-weight: 700; font-size: 14px;
  transition: background .15s;
}
.hero-cta:hover { background: var(--c-yellow-border); text-decoration: none; }
.hero-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.4); cursor: pointer; transition: background .2s;
}
.hero-dot.active { background: #fff; }
.hero-arrows { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); display: flex; justify-content: space-between; padding: 0 12px; z-index: 3; pointer-events: none; }
.hero-arrow {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--c-text); box-shadow: var(--c-shadow);
  pointer-events: auto; cursor: pointer; transition: background .15s;
}
.hero-arrow:hover { background: #fff; }

/* Accessibility: users who prefer reduced motion get a static (non-rotating),
   pause-friendly slider with cross-fades only. Autoplay is also suppressed in JS. */
@media (prefers-reduced-motion: reduce) {
  .hero-carousel { scroll-behavior: auto; }
  .hero-slide { transition: opacity .01s linear; }
  .hero-carousel [class*="hero"] { animation: none; }
}

/* Promo panels under hero */
.hero-promos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; width: 100%; }
@media (max-width: 768px) { .hero-promos { grid-template-columns: 1fr; } }
.promo-panel {
  position: relative; border-radius: var(--c-radius); overflow: hidden;
  background: var(--c-navy); min-height: 120px; display: flex;
  text-decoration: none; color: #fff;
}
.promo-panel-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.promo-panel-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,76,145,.8) 0%, rgba(0,76,145,.3) 100%);
}
.promo-panel-content {
  position: relative; z-index: 2; padding: 20px 24px; display: flex;
  flex-direction: column; justify-content: center;
}
.promo-panel-content h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.promo-panel-content p { font-size: 12px; color: rgba(255,255,255,.8); margin-bottom: 10px; }
.promo-panel .btn { font-size: 12px; padding: 6px 16px; }

/* ================================================================
   TRUST STRIP
   ================================================================ */
.trust-strip {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0;
  background: var(--c-navy); border-radius: var(--c-radius); margin: 12px 0;
  overflow: hidden; width: 100%;
}
.trust-item {
  display: flex; flex-direction: row; align-items: flex-start; gap: 12px;
  padding: 16px 18px; border-right: 1px solid rgba(255,255,255,.12);
  color: #d0e4f7; min-width: 0;
}
.trust-item:last-child { border-right: 0; }
.trust-item:hover { background: rgba(255,255,255,.04); }
.trust-icon {
  font-size: 22px; flex-shrink: 0; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,194,32,.15); border-radius: 8px; margin-top: 2px;
}
.trust-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.trust-text strong { color: #fff; font-size: 13px; font-weight: 700; line-height: 1.3; }
.trust-text span { font-size: 11.5px; color: #a9c8e8; line-height: 1.4; }

/* ================================================================
   SECTION HEADERS
   ================================================================ */
.section { margin: 16px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 10px; gap: 12px;
}
.section-head h2 { font-size: 18px; font-weight: 800; color: var(--c-text); }
.section-head p { font-size: 13px; color: var(--c-text-secondary); }
.section-head .btn-link { font-size: 13px; white-space: nowrap; }

/* ================================================================
   PRODUCT CARDS
   ================================================================ */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; width: 100%;
}
.product-card {
  background: #fff; border-radius: var(--c-radius); overflow: hidden;
  border: 1px solid var(--c-border-light); transition: box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--c-shadow-md); border-color: var(--c-border); }
.pc-img-wrap {
  position: relative; padding: 8px; display: flex; align-items: center;
  justify-content: center; height: 180px; background: #fff; overflow: hidden;
}
.pc-img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.product-card:hover .pc-img { transform: scale(1.04); }
.pc-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; }
.pc-badge {
  padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3px;
}
.pc-badge-sale { background: var(--c-red-light); color: #fff; }
.pc-badge-new { background: var(--c-green); color: #fff; }
.pc-badge-clearance { background: #7b1fa2; color: #fff; }
.pc-badge-bestseller { background: var(--c-orange); color: #fff; }
.pc-wishlist {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px;
  border-radius: 50%; background: rgba(255,255,255,.9); display: flex;
  align-items: center; justify-content: center; font-size: 16px;
  border: 1px solid var(--c-border-light); transition: all .15s;
  cursor: pointer; color: var(--c-text-secondary);
}
.pc-wishlist:hover { background: #fff; color: var(--c-red); border-color: var(--c-red); }

.pc-body { padding: 0 10px 10px; flex: 1; display: flex; flex-direction: column; }
.pc-brand { font-size: 10px; color: var(--c-text-light); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.pc-title {
  font-size: 12px; font-weight: 500; color: var(--c-text); line-height: 1.3;
  margin: 3px 0; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; min-height: 30px;
}
.pc-title:hover { color: var(--c-link-hover); }
.pc-rating { display: flex; align-items: center; gap: 4px; margin: 2px 0; }
.pc-stars { color: var(--c-orange); font-size: 13px; letter-spacing: 1px; }
.pc-reviews { font-size: 11px; color: var(--c-link); }
.pc-price { margin-top: auto; padding-top: 6px; }
.pc-price-now { font-size: 16px; font-weight: 800; color: var(--c-text); }
.pc-price-was { font-size: 11px; color: var(--c-text-light); text-decoration: line-through; margin-left: 4px; }
.pc-price-tax { font-size: 10px; color: var(--c-text-secondary); font-weight: 600; margin-left: 4px; white-space: nowrap; }
.pc-stock { font-size: 11px; margin-top: 4px; }
.pc-stock-in { color: var(--c-green-light); }
.pc-stock-out { color: var(--c-red); }
.pc-stock-low { color: var(--c-orange-dark); }
.pc-delivery { font-size: 11px; color: var(--c-text-secondary); margin-top: 2px; }

.pc-actions { padding: 0 12px 12px; }
.pc-add-btn {
  width: 100%; padding: 8px; border-radius: 20px; font-size: 13px;
  font-weight: 600; background: var(--c-yellow); border: 1px solid var(--c-yellow-border);
  color: #004c91; cursor: pointer; transition: background .15s;
}
.pc-add-btn:hover { background: var(--c-yellow-border); }
.pc-add-btn.added { background: var(--c-green); border-color: var(--c-green); color: #fff; }

/* Product rail (horizontal scroll) */
.product-rail { position: relative; }
.product-rail-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; padding: 2px 0; width: 100%;
}
.product-rail-track::-webkit-scrollbar { display: none; }
.product-rail-track .product-card { min-width: 210px; max-width: 210px; flex-shrink: 0; }
.rail-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px;
  border-radius: 50%; background: #fff; box-shadow: var(--c-shadow-md);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  cursor: pointer; z-index: 5; border: 1px solid var(--c-border-light);
  transition: background .15s;
}
.rail-arrow:hover { background: var(--c-surface-hover); }
.rail-prev { left: -12px; }
.rail-next { right: -12px; }

/* ================================================================
   CATEGORY GRID
   ================================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; width: 100%; }
.cat-card {
  background: #fff; border-radius: var(--c-radius); padding: 12px;
  text-align: center; border: 1px solid var(--c-border-light);
  transition: box-shadow .2s, border-color .2s; text-decoration: none; color: var(--c-text);
}
.cat-card:hover { box-shadow: var(--c-shadow-md); border-color: var(--c-orange); text-decoration: none; }
.cat-card-img {
  width: 80px; height: 80px; margin: 0 auto 10px; display: flex;
  align-items: center; justify-content: center; font-size: 36px;
  border-radius: 50%; overflow: hidden;
}
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card-name { font-size: 13px; font-weight: 600; color: var(--c-text); }
.cat-card-count { font-size: 11px; color: var(--c-text-light); margin-top: 2px; }

/* ================================================================
   SUBCATEGORY TILES (listing page)
   ================================================================ */
.subcat-tiles { background: #fff; border-radius: var(--c-radius); padding: 16px; box-shadow: var(--c-shadow); }
.subcat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.subcat-tile {
  display: flex; flex-direction: column; padding: 12px 14px; background: var(--c-surface);
  border: 1px solid var(--c-border-light); border-radius: var(--c-radius-sm);
  text-decoration: none; color: var(--c-text); transition: all .15s;
}
.subcat-tile:hover { background: #e8f0fe; border-color: var(--c-blue); text-decoration: none; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.subcat-tile-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.subcat-tile-count { font-size: 11px; color: var(--c-text-light); }

/* ================================================================
   BRAND STRIP
   ================================================================ */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; width: 100%; }
.brand-tile {
  display: flex; align-items: center; justify-content: center; padding: 12px;
  background: #fff; border: 1px solid var(--c-border-light); border-radius: var(--c-radius);
  font-size: 13px; font-weight: 700; color: var(--c-text); text-decoration: none;
  transition: box-shadow .2s, border-color .2s; min-height: 50px;
}
.brand-tile:hover { box-shadow: var(--c-shadow); border-color: var(--c-orange); text-decoration: none; }

/* ================================================================
   LISTING / CATEGORY PAGE
   ================================================================ */
.listing-layout { display: grid; grid-template-columns: 240px 1fr; gap: 16px; margin: 16px 0; width: 100%; }
@media (max-width: 1024px) { .listing-layout { grid-template-columns: 200px 1fr; } }
@media (max-width: 768px) { .listing-layout { grid-template-columns: 1fr; } .sidebar { display: none; } .filter-toggle { display: block; } }
.sidebar {
  background: #fff; border-radius: var(--c-radius); padding: 16px;
  box-shadow: var(--c-shadow); position: sticky; top: calc(var(--header-h) + 56px);
  max-height: calc(100vh - var(--header-h) - 80px); overflow-y: auto;
}
.sidebar-section { border-bottom: 1px solid var(--c-border-light); padding-bottom: 14px; margin-bottom: 14px; }
.sidebar-section:last-child { border-bottom: 0; margin-bottom: 0; }
.sidebar-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--c-text); }
.sidebar-option {
  display: flex; align-items: center; gap: 6px; padding: 4px 8px;
  font-size: 13px; color: var(--c-text); border-radius: var(--c-radius-sm);
  transition: background .1s; cursor: pointer; text-decoration: none;
}
.sidebar-option:hover { background: var(--c-surface-hover); text-decoration: none; }
.sidebar-option.active { background: #fff3e0; color: var(--c-orange-dark); font-weight: 600; }
.sidebar-count { font-size: 11px; color: var(--c-text-light); margin-left: auto; }
.sidebar-parent { display: block; padding: 6px 0; font-size: 13px; color: var(--c-link); margin-bottom: 8px; }

/* Toolbar */
.listing-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: #fff; border-radius: var(--c-radius);
  box-shadow: var(--c-shadow); margin-bottom: 12px; flex-wrap: wrap; gap: 8px;
}
.listing-count { font-size: 13px; color: var(--c-text-secondary); }
.listing-count strong { color: var(--c-text); }
.listing-sort { display: flex; align-items: center; gap: 6px; }
.listing-sort label { font-size: 13px; color: var(--c-text-secondary); white-space: nowrap; }
.listing-sort select {
  padding: 6px 28px 6px 10px; border: 1px solid var(--c-border);
  border-radius: var(--c-radius-sm); font-size: 13px; background: #fff;
  appearance: auto;
}
.listing-views { display: flex; gap: 4px; }
.listing-view-btn {
  width: 32px; height: 32px; border-radius: var(--c-radius-sm);
  border: 1px solid var(--c-border); display: flex; align-items: center;
  justify-content: center; font-size: 16px; color: var(--c-text-secondary);
  transition: all .15s;
}
.listing-view-btn:hover { background: var(--c-surface-hover); }
.listing-view-btn.active { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.filter-toggle { display: none; }

/* Breadcrumbs */
.breadcrumbs {
  display: flex; align-items: center; gap: 4px; padding: 12px 0;
  font-size: 13px; color: var(--c-text-secondary); flex-wrap: wrap;
}
.breadcrumbs a { color: var(--c-link); }
.breadcrumbs .sep { color: var(--c-text-light); margin: 0 2px; }

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 20px 0;
}
.page-btn {
  min-width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; border: 1px solid var(--c-border); border-radius: var(--c-radius-sm);
  font-size: 13px; color: var(--c-text); text-decoration: none;
  transition: background .15s;
}
.page-btn:hover { background: var(--c-surface-hover); text-decoration: none; }
.page-btn.active { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.page-info { font-size: 12px; color: var(--c-text-light); margin-left: 8px; }
.load-more-btn { display: block; margin: 16px auto 0; }

/* ================================================================
   PRODUCT DETAIL PAGE
   ================================================================ */
.pdp { display: grid; grid-template-columns: minmax(300px, 480px) 1fr; gap: 24px; margin: 16px 0; width: 100%; }
@media (max-width: 768px) { .pdp { grid-template-columns: 1fr; } .pdp-gallery { position: static; } }
.pdp-gallery { position: sticky; top: calc(var(--header-h) + 56px); align-self: start; }
.pdp-main-img {
  width: 100%; aspect-ratio: 1; background: #fff; border-radius: var(--c-radius);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border: 1px solid var(--c-border-light); cursor: zoom-in;
}
.pdp-main-img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.pdp-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pdp-thumb {
  width: 56px; height: 56px; border-radius: var(--c-radius-sm); overflow: hidden;
  border: 2px solid transparent; cursor: pointer; flex-shrink: 0;
  transition: border-color .15s; background: #fff;
}
.pdp-thumb.active { border-color: var(--c-orange); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }

.pdp-info { display: flex; flex-direction: column; gap: 12px; }
.pdp-brand { font-size: 13px; color: var(--c-link); font-weight: 600; }
.pdp-title { font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--c-text); }
.pdp-rating { display: flex; align-items: center; gap: 6px; }
.pdp-stars { color: var(--c-orange); font-size: 16px; }
.pdp-review-count { font-size: 13px; color: var(--c-link); }
.pdp-divider { border: 0; border-top: 1px solid var(--c-border-light); }
.pdp-price-box {
  background: var(--c-surface-alt); border-radius: var(--c-radius); padding: 16px;
}
.pdp-price-label { font-size: 13px; color: var(--c-text-secondary); }
.pdp-price { font-size: 28px; font-weight: 800; color: var(--c-text); }
.pdp-rrp { font-size: 14px; color: var(--c-text-light); text-decoration: line-through; margin-left: 8px; }
.pdp-stock { font-size: 13px; margin-top: 6px; }
.pdp-stock-in { color: var(--c-green-light); font-weight: 600; }
.pdp-stock-out { color: var(--c-red); font-weight: 600; }
.pdp-stock-low { color: var(--c-orange-dark); font-weight: 600; }
.pdp-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.pdp-qty { display: flex; align-items: center; gap: 8px; }
.pdp-qty label { font-size: 13px; font-weight: 600; }
.pdp-qty select { padding: 6px 10px; border: 1px solid var(--c-border); border-radius: var(--c-radius-sm); }
.pdp-meta { font-size: 12px; color: var(--c-text-light); line-height: 1.8; }
.pdp-meta strong { color: var(--c-text-secondary); }

/* PDP Tabs */
.pdp-tabs { margin: 24px 0; }
.pdp-tab-bar { display: flex; gap: 0; border-bottom: 2px solid var(--c-border-light); }
.pdp-tab {
  padding: 12px 20px; font-size: 14px; font-weight: 600; color: var(--c-text-secondary);
  border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer;
  transition: all .15s; background: none; border-top: 0; border-left: 0; border-right: 0;
}
.pdp-tab:hover { color: var(--c-text); }
.pdp-tab.active { color: var(--c-orange-dark); border-bottom-color: var(--c-orange); }
.pdp-tab-content { padding: 20px 0; background: #fff; border-radius: 0 0 var(--c-radius) var(--c-radius); }
.pdp-tab-content p { margin-bottom: 12px; font-size: 14px; line-height: 1.7; }

/* Specs table */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr:nth-child(even) { background: var(--c-surface-alt); }
.specs-table td { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--c-border-light); }
.specs-table td:first-child { font-weight: 600; color: var(--c-text-secondary); width: 200px; }

/* --- incl. GST price notes --- */
.pc-price-tax { font-size: 10px; color: var(--c-text-secondary); font-weight: 600; margin-left: 4px; white-space: nowrap; }
.pdp-price-tax { font-size: 12px; color: var(--c-text-secondary); font-weight: 600; margin-left: 6px; }

/* --- PDP Full Specs popup --- */
.pdp-desc { line-height: 1.75; font-size: 14.5px; color: var(--c-text); }
.pdp-desc p { margin-bottom: 12px; }
.pdp-specs-btn { margin-top: 16px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.modal-head h3 { margin: 0; font-size: 16px; line-height: 1.4; }
.modal-close { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: var(--c-text-secondary); padding: 2px 4px; }
.modal-close:hover { color: var(--c-text); }
.pdp-specs-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--c-text-secondary); background: var(--c-surface-alt); padding: 10px 14px; border-radius: var(--c-radius-sm); margin-bottom: 14px; }
.pdp-specs-meta span { display: inline-flex; gap: 6px; align-items: center; }
.pdp-specs-table { max-height: 480px; overflow-y: auto; border: 1px solid var(--c-border-light); border-radius: var(--c-radius-sm); }
.pdp-specs-table .specs-table td { white-space: normal; }
.pdp-specs-table .specs-table td:first-child { width: 38%; }

/* --- PDP Reviews --- */
.pdp-reviews { display: flex; flex-direction: column; gap: 18px; }
.pdp-reviews-summary { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--c-border-light); font-size: 14px; color: var(--c-text-secondary); }
.pdp-stars-lg { font-size: 22px; letter-spacing: 1px; }
.pdp-reviews-count { font-size: 14px; color: var(--c-link); font-weight: 600; }
.pdp-review { border: 1px solid var(--c-border-light); border-radius: var(--c-radius); padding: 16px; background: #fff; }
.pdp-review-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-size: 13px; color: var(--c-text-secondary); }
.pdp-review-avatar { width: 26px; height: 26px; border-radius: 50%; background: #004c91; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; text-transform: uppercase; }
.pdp-review-name { font-weight: 700; color: var(--c-text); font-size: 14px; }
.pdp-review-verified { color: var(--c-green-light); font-weight: 600; font-size: 11px; }
.pdp-review-date { margin-left: auto; }
.pdp-review-stars { color: var(--c-orange); margin-bottom: 4px; letter-spacing: 1px; }
.pdp-review-title { font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.pdp-review-content { font-size: 14px; line-height: 1.65; color: var(--c-text); margin: 0; }
.pdp-review-admin { margin-top: 8px; font-size: 13px; color: #004c91; background: var(--c-surface-alt); padding: 8px 12px; border-radius: var(--c-radius-sm); }

/* ================================================================
   CART
   ================================================================ */
.cart-layout { display: grid; grid-template-columns: 1fr minmax(280px, 340px); gap: 16px; margin: 16px 0; width: 100%; }
@media (max-width: 768px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-items { background: #fff; border-radius: var(--c-radius); box-shadow: var(--c-shadow); }
.cart-item {
  display: flex; gap: 16px; padding: 16px; border-bottom: 1px solid var(--c-border-light);
  align-items: flex-start;
}
.cart-item-img { width: 120px; height: 120px; flex-shrink: 0; border-radius: var(--c-radius-sm); overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; }
.cart-item-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.cart-item-title:hover { color: var(--c-link-hover); }
.cart-item-price { font-size: 18px; font-weight: 700; }
.cart-item-stock { font-size: 12px; margin-top: 4px; }
.cart-item-qty { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.cart-item-qty select { padding: 4px 8px; border: 1px solid var(--c-border); border-radius: var(--c-radius-sm); }
.cart-item-actions { display: flex; gap: 12px; margin-top: 8px; }
.cart-summary {
  background: #fff; border-radius: var(--c-radius); box-shadow: var(--c-shadow);
  padding: 20px; position: sticky; top: calc(var(--header-h) + 20px);
}
.cart-summary h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.cart-summary-total { border-top: 2px solid var(--c-border); padding-top: 10px; margin-top: 6px; font-weight: 700; font-size: 18px; }
.cart-summary .btn { margin-top: 16px; }

/* ================================================================
   CHECKOUT
   ================================================================ */
.checkout-layout { display: grid; grid-template-columns: 1fr minmax(300px, 380px); gap: 16px; margin: 16px 0; width: 100%; }
.payment-option { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--c-border); border-radius: 10px; cursor: pointer; transition: border-color .15s, box-shadow .15s; background: #fff; }
.payment-option:has(input:checked) { border-color: var(--c-orange); box-shadow: 0 0 0 3px rgba(255,153,0,.12); }
.payment-option input[type=radio] { margin-top: 3px; accent-color: var(--c-orange); }
.payment-option-body { display: flex; flex-direction: column; gap: 2px; }
.payment-option-body small { color: var(--c-text-secondary); line-height: 1.4; }
.payment-option-body strong { font-size: 14.5px; }
@media (max-width: 768px) { .checkout-layout { grid-template-columns: 1fr; } }
.checkout-form { background: #fff; border-radius: var(--c-radius); padding: 20px; box-shadow: var(--c-shadow); }
.checkout-section { margin-bottom: 20px; }
.checkout-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--c-text-secondary); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--c-border);
  border-radius: var(--c-radius-sm); font-size: 14px; transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--c-orange); outline: none; box-shadow: 0 0 0 3px rgba(255,153,0,.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.footer-cat-row {
  display: grid; grid-template-columns: auto minmax(140px, 1fr) minmax(200px, 1.4fr) 70px auto;
  gap: 8px; align-items: end; padding: 10px; border: 1px solid var(--c-border);
  border-radius: 8px; background: var(--c-surface); margin-bottom: 8px;
}
.footer-cat-order { flex-direction: row; gap: 4px; }
.footer-cat-check { flex-direction: row; gap: 6px; font-size: 13px; white-space: nowrap; }
@media (max-width: 768px) {
  .footer-cat-row { grid-template-columns: 1fr 1fr; }
  .footer-cat-row .fc-label, .footer-cat-row .fc-cat { grid-column: 1 / -1; }
  .footer-cat-remove { justify-self: start; }
}
.footer-allcats { font-weight: 600; margin-top: 4px; }

/* ================================================================
   SEARCH
   ================================================================ */
.search-suggestions {
  background: #fff; border: 1px solid var(--c-border-light); border-radius: var(--c-radius);
  margin: 16px 0; padding: 16px; box-shadow: var(--c-shadow);
}
.search-suggestions h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.search-cats { display: flex; flex-wrap: wrap; gap: 8px; }

/* ================================================================
   ACCOUNT
   ================================================================ */
.account-layout { display: grid; grid-template-columns: minmax(180px, 220px) 1fr; gap: 16px; margin: 16px 0; width: 100%; }
@media (max-width: 768px) { .account-layout { grid-template-columns: 1fr; } }
.account-sidebar {
  background: #fff; border-radius: var(--c-radius); padding: 12px;
  box-shadow: var(--c-shadow);
}
.account-nav-item {
  display: block; padding: 10px 14px; border-radius: var(--c-radius-sm);
  font-size: 13px; color: var(--c-text); transition: background .1s;
  text-decoration: none; cursor: pointer;
}
.account-nav-item:hover { background: var(--c-surface-hover); text-decoration: none; }
.account-nav-item.active { background: #fff3e0; color: var(--c-orange-dark); font-weight: 600; }
.account-content { background: #fff; border-radius: var(--c-radius); padding: 20px; box-shadow: var(--c-shadow); }

/* ================================================================
   EMPTY / ERROR STATES
   ================================================================ */
.empty-state {
  text-align: center; padding: 48px 24px; background: #fff;
  border-radius: var(--c-radius);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.empty-state p { font-size: 14px; color: var(--c-text-secondary); margin-bottom: 16px; }

/* ================================================================
   TOAST
   ================================================================ */
.toast-container {
  position: fixed; bottom: 20px; right: 20px; z-index: 1000;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 12px 20px; border-radius: var(--c-radius); color: #fff;
  font-size: 13px; font-weight: 600; box-shadow: var(--c-shadow-lg);
  animation: toastIn .3s; min-width: 200px;
}
.toast.success { background: var(--c-green); }
.toast.error { background: var(--c-red); }
.toast.info { background: var(--c-blue); }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ================================================================
   MEGA MENU
   ================================================================ */
/* ================================================================
   DEPARTMENTS MEGA-MENU
   ================================================================ */
.nav-wrap { position: relative; flex-shrink: 0; }
.nav-mega {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; width: 820px;
  background: #fff; border-radius: var(--c-radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.18); z-index: 150;
  flex-direction: row; min-height: 380px; overflow: hidden;
  border: 1px solid var(--c-border-light);
}
.nav-mega.open { display: flex; }
.nav-mega-left {
  width: 270px; flex-shrink: 0; border-right: 1px solid var(--c-border-light);
  overflow-y: auto; max-height: 420px; background: #f8f9fa;
}
.nav-mega-dept {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  cursor: pointer; transition: background .1s; font-size: 13px; color: var(--c-text);
  border-bottom: 1px solid var(--c-border-light);
}
.nav-mega-dept:hover, .nav-mega-dept.active { background: #fff; color: var(--c-blue); }
.nav-mega-dept.active { border-left: 3px solid var(--c-blue); font-weight: 600; }
.nav-mega-dept-name { flex: 1; }
.nav-mega-dept-count {
  font-size: 11px; color: var(--c-text-light); background: var(--c-surface-alt);
  padding: 1px 6px; border-radius: 8px;
}
.nav-mega-dept-arrow { font-size: 14px; color: var(--c-text-light); }
.nav-mega-right { flex: 1; padding: 20px; overflow-y: auto; max-height: 420px; }
.nav-mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.nav-mega-link {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 12px;
  border-radius: var(--c-radius-sm); text-decoration: none; color: var(--c-text);
  transition: background .1s;
}
.nav-mega-link:hover { background: var(--c-surface-hover); text-decoration: none; }
.nav-mega-link-name { font-size: 13px; font-weight: 500; }
.nav-mega-link-count { font-size: 11px; color: var(--c-text-light); }
.nav-mega-empty { padding: 20px; color: var(--c-text-light); font-size: 13px; text-align: center; }
.nav-mega-viewall {
  display: block; margin-top: 16px; padding: 10px 16px; background: var(--c-surface-alt);
  border-radius: var(--c-radius-sm); font-size: 13px; font-weight: 600; color: var(--c-blue);
  text-decoration: none; text-align: center; transition: background .15s;
}
.nav-mega-viewall:hover { background: #e8f0fe; text-decoration: none; }

/* Services dropdown */
.nav-svc-panel {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 260px; background: #fff; border-radius: var(--c-radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.18); z-index: 150;
  border: 1px solid var(--c-border-light); padding: 8px 0;
}
.nav-svc-panel.open { display: block; }
.nav-svc-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  text-decoration: none; color: var(--c-text); font-size: 13px; transition: background .1s;
}
.nav-svc-link:hover { background: var(--c-surface-hover); text-decoration: none; }
.nav-svc-icon { font-size: 18px; flex-shrink: 0; }

/* Mobile drawer accordion */
.drawer-dept-header {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; background: #f5f5f5; cursor: pointer; user-select: none;
}
.drawer-dept-header .drawer-dept-arrow {
  transition: transform .2s; font-size: 14px; color: var(--c-text-light);
}
.drawer-dept-header.open .drawer-dept-arrow { transform: rotate(90deg); }
.drawer-sub-list { display: none; }
.drawer-sub-list.open { display: block; }
.drawer-sub { padding-left: 32px; font-size: 13px; }

@media (max-width: 1024px) {
  .nav-mega { width: 600px; }
  .nav-mega-left { width: 220px; }
  .nav-mega-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-mega { display: none !important; }
  .nav-svc-panel { display: none !important; }
  .cat-pill:not(.cat-pill-dept) { font-size: 12px; padding: 5px 10px; }
}

/* ================================================================
   LOADING / SKELETON
   ================================================================ */
.skeleton { background: linear-gradient(90deg, #eee 25%, #e0e0e0 50%, #eee 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--c-radius-sm); }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ================================================================
   FOOTER
   ================================================================ */
.footer { background: var(--c-navy); color: #d0e4f7; margin-top: 32px; }
.footer-top { background: var(--c-navy-light); }
.footer-back-top {
  display: block; width: 100%; padding: 14px; text-align: center;
  color: #fff; font-size: 13px; cursor: pointer; border: none;
  background: var(--c-navy-light); transition: background .15s;
}
.footer-back-top:hover { background: var(--c-navy-lighter); }
.footer-main { max-width: var(--container); margin: 0 auto; padding: 32px 16px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px; width: 100%; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.footer-col a { display: block; padding: 3px 0; font-size: 13px; color: #a9c8e8; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-newsletter { background: rgba(0,76,145,.3); padding: 20px 24px; }
.footer-newsletter-inner { max-width: var(--container); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-newsletter strong { color: #fff; display: block; margin-bottom: 2px; font-size: 14px; }
.footer-newsletter span { color: #888; font-size: 12px; }
.footer-nl-form { display: flex; gap: 8px; }
.footer-nl-form input { padding: 8px 14px; border: 1px solid #4a7fb5; border-radius: var(--c-radius-sm); font-size: 13px; min-width: 240px; background: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); }
.footer-bottom-inner { max-width: var(--container); margin: 0 auto; padding: 16px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #8ab0d4; flex-wrap: wrap; gap: 8px; }
.footer-brand-row { display: flex; align-items: center; gap: 6px; color: #d0e4f7; font-weight: 600; }
.footer-payments { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pay-icon { font-size: 16px; }
.pay-icon-img { height: 17px; width: auto; display: inline-block; vertical-align: middle; }
.afterpay-logo { width: auto; vertical-align: middle; }
.afterpay-messaging { font-size: 12.5px; }
.afterpay-messaging .afterpay-logo { height: 14px; margin-left: 2px; }
.afterpay-messaging.hidden { display: none; }

/* Footer trust bar */
.footer-trust {
  display: flex; justify-content: center; gap: 32px; padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 24px;
}
.footer-trust-item {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: #a9c8e8;
}
.footer-trust-icon { font-size: 18px; }
.footer-copyright { font-size: 12px; }

/* ================================================================
   WALMART-STYLE HOMEPAGE SECTIONS
   ================================================================ */

/* Three-card promotional grid */
.promo-3grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 10px; margin: 16px 0; }
.promo-3card {
  position: relative; border-radius: var(--c-radius); overflow: hidden;
  min-height: 180px; display: flex; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-blue) 100%);
}
.promo-3card-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.promo-3card-overlay {
  position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,76,145,.85) 0%, rgba(0,113,206,.4) 100%);
}
.promo-3card-content {
  position: relative; z-index: 2; padding: 24px; display: flex;
  flex-direction: column; justify-content: center; flex: 1;
}
.promo-3card-content h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; line-height: 1.2; }
.promo-3card-content p { font-size: 13px; color: rgba(255,255,255,.85); margin-bottom: 12px; line-height: 1.5; }
.promo-3card .btn { align-self: flex-start; }

/* Deals grid (dense 4-col) */
.deals-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.deal-card {
  background: #fff; border-radius: var(--c-radius); overflow: hidden;
  border: 1px solid var(--c-border-light); transition: box-shadow .2s;
  display: flex; flex-direction: column;
}
.deal-card:hover { box-shadow: var(--c-shadow-md); }
.deal-card .pc-img-wrap { height: 160px; }
.deal-badge {
  position: absolute; top: 8px; left: 8px; background: #d32f2f;
  color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 3px; z-index: 2;
}
.deal-savings {
  font-size: 11px; color: #d32f2f; font-weight: 700; margin-top: 2px;
}

/* Category icon strip */
.cat-icon-strip {
  display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none;
  padding: 8px 0; margin: 12px 0;
}
.cat-icon-strip::-webkit-scrollbar { display: none; }
.cat-icon-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 80px; text-decoration: none; color: var(--c-text);
  transition: transform .15s;
}
.cat-icon-item:hover { transform: translateY(-2px); text-decoration: none; }
.cat-icon-img {
  width: 64px; height: 64px; border-radius: 50%; background: #fff;
  border: 2px solid var(--c-border-light); display: flex;
  align-items: center; justify-content: center; font-size: 28px;
  transition: border-color .15s;
}
.cat-icon-item:hover .cat-icon-img { border-color: var(--c-blue); }
.cat-icon-name { font-size: 11px; font-weight: 600; text-align: center; white-space: nowrap; }

/* Flash deals with countdown */
.flash-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: var(--c-radius); padding: 20px; margin: 16px 0;
}
.flash-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.flash-header h2 { color: #fff; font-size: 20px; font-weight: 800; }
.flash-countdown {
  display: flex; gap: 6px; align-items: center;
}
.flash-time {
  background: #d32f2f; color: #fff; padding: 4px 8px; border-radius: 4px;
  font-size: 14px; font-weight: 700; min-width: 32px; text-align: center;
}
.flash-sep { color: #fff; font-weight: 700; }
.flash-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.flash-card {
  background: #fff; border-radius: var(--c-radius); overflow: hidden;
  border: 1px solid var(--c-border-light); transition: box-shadow .2s;
}
.flash-card:hover { box-shadow: var(--c-shadow-md); }
.flash-card .pc-img-wrap { height: 140px; }
.flash-card .pc-body { padding: 8px 10px; }
.flash-card .pc-price-now { font-size: 15px; color: #d32f2f; }

/* Services section */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin: 16px 0;
}
.service-card {
  background: #fff; border-radius: var(--c-radius); padding: 20px;
  border: 1px solid var(--c-border-light); text-decoration: none;
  color: var(--c-text); text-align: center; transition: box-shadow .2s, border-color .2s;
}
.service-card:hover { box-shadow: var(--c-shadow-md); border-color: var(--c-blue); text-decoration: none; }
.service-icon { font-size: 32px; margin-bottom: 8px; }
.service-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.service-card p { font-size: 12px; color: var(--c-text-secondary); }

/* Trending content */
.trending-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.trending-card {
  background: #fff; border-radius: var(--c-radius); overflow: hidden;
  border: 1px solid var(--c-border-light); text-decoration: none;
  color: var(--c-text); transition: box-shadow .2s;
}
.trending-card:hover { box-shadow: var(--c-shadow-md); text-decoration: none; }
.trending-img {
  width: 100%; height: 160px; object-fit: cover; display: block;
}
.trending-body { padding: 12px; }
.trending-body h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.trending-body p { font-size: 12px; color: var(--c-text-secondary); line-height: 1.5; }

/* Bottom mosaic */
.mosaic-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto;
  gap: 10px; margin: 16px 0;
}
.mosaic-card {
  border-radius: var(--c-radius); overflow: hidden; min-height: 140px;
  display: flex; text-decoration: none; color: #fff;
  position: relative;
}
.mosaic-card-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.mosaic-card-overlay {
  position: absolute; inset: 0;
}
.mosaic-card-content {
  position: relative; z-index: 2; padding: 20px; display: flex;
  flex-direction: column; justify-content: center; flex: 1;
}
.mosaic-card-content h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.mosaic-card-content p { font-size: 12px; color: rgba(255,255,255,.85); margin-bottom: 8px; }
.mosaic-wide { grid-column: span 2; }

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .deals-grid { grid-template-columns: repeat(3, 1fr); }
  .flash-grid { grid-template-columns: repeat(3, 1fr); }
  .promo-3grid { grid-template-columns: 1fr 1fr; }
  .promo-3card:last-child { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .trending-grid { grid-template-columns: repeat(2, 1fr); }
  .mosaic-grid { grid-template-columns: 1fr 1fr; }
  .mosaic-wide { grid-column: span 2; }
}
@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .deals-grid { grid-template-columns: repeat(2, 1fr); }
  .flash-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-3grid { grid-template-columns: 1fr; }
  .promo-3card:last-child { display: flex; }
  .cat-icon-strip { gap: 8px; }
  .cat-icon-item { min-width: 68px; }
  .cat-icon-img { width: 56px; height: 56px; font-size: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .trending-grid { grid-template-columns: 1fr; }
  .mosaic-grid { grid-template-columns: 1fr; }
  .mosaic-wide { grid-column: span 1; }
}

/* Content pages */
.content-page { max-width: 900px; margin: 0 auto; padding: 32px 16px; }
.content-page h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; color: var(--c-text); }
.content-page h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; color: var(--c-text); }
.content-page h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; color: var(--c-text); }
.content-page p { font-size: 14px; line-height: 1.7; color: var(--c-text-secondary); margin-bottom: 14px; }
.content-page ul, .content-page ol { margin: 12px 0 14px 20px; }
.content-page li { font-size: 14px; line-height: 1.7; color: var(--c-text-secondary); margin-bottom: 6px; }
.content-page .subtitle { font-size: 16px; color: var(--c-text-secondary); margin-bottom: 24px; }

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-blue) 100%);
  color: #fff; padding: 48px 32px; border-radius: var(--c-radius);
  margin-bottom: 32px; text-align: center;
}
.page-hero h1 { color: #fff; font-size: 32px; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 16px; max-width: 600px; margin: 0 auto; }

/* Value cards */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0; }
.value-card {
  background: #fff; border-radius: var(--c-radius); padding: 24px;
  border: 1px solid var(--c-border-light); text-align: center;
  transition: box-shadow .2s;
}
.value-card:hover { box-shadow: var(--c-shadow-md); }
.value-card-icon { font-size: 36px; margin-bottom: 12px; }
.value-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.value-card p { font-size: 13px; color: var(--c-text-secondary); }

/* Steps */
.steps { display: flex; gap: 16px; margin: 24px 0; }
.step {
  flex: 1; background: #fff; border-radius: var(--c-radius); padding: 20px;
  border: 1px solid var(--c-border-light); text-align: center; position: relative;
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--c-blue);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; margin: 0 auto 10px;
}
.step h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 12px; color: var(--c-text-secondary); }

/* FAQ accordion */
.faq-item { border: 1px solid var(--c-border-light); border-radius: var(--c-radius); margin-bottom: 8px; overflow: hidden; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; cursor: pointer; font-size: 14px; font-weight: 600;
  background: #fff; border: none; width: 100%; text-align: left; color: var(--c-text);
}
.faq-q:hover { background: var(--c-surface-hover); }
.faq-arrow { font-size: 12px; transition: transform .2s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { padding: 0 16px 14px; font-size: 13px; line-height: 1.7; color: var(--c-text-secondary); display: none; }
.faq-item.open .faq-a { display: block; }

/* Contact grid */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.contact-card {
  background: #fff; border-radius: var(--c-radius); padding: 20px;
  border: 1px solid var(--c-border-light); display: flex; gap: 12px;
  align-items: flex-start; transition: box-shadow .2s;
}
.contact-card:hover { box-shadow: var(--c-shadow-md); }
.contact-card-icon { font-size: 28px; flex-shrink: 0; }
.contact-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.contact-card p { font-size: 13px; color: var(--c-text-secondary); margin: 0; }

/* Help search */
.help-search {
  display: flex; gap: 8px; max-width: 500px; margin: 0 auto 32px;
}
.help-search input {
  flex: 1; padding: 12px 16px; border: 2px solid var(--c-border);
  border-radius: var(--c-radius); font-size: 15px;
}
.help-search input:focus { border-color: var(--c-blue); outline: none; }
.help-search button { padding: 12px 24px; background: var(--c-blue); color: #fff; border: none; border-radius: var(--c-radius); font-weight: 600; cursor: pointer; }
.help-search button:hover { background: var(--c-navy); }

/* Help categories */
.help-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.help-cat {
  background: #fff; border-radius: var(--c-radius); padding: 16px;
  border: 1px solid var(--c-border-light); text-decoration: none;
  color: var(--c-text); display: flex; align-items: center; gap: 10px;
  transition: box-shadow .2s, border-color .2s;
}
.help-cat:hover { box-shadow: var(--c-shadow); border-color: var(--c-blue); text-decoration: none; }
.help-cat-icon { font-size: 24px; }
.help-cat span { font-size: 14px; font-weight: 600; }

/* Quote steps */
.quote-info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
.quote-info-card { background: #fff; border-radius: var(--c-radius); padding: 20px; border: 1px solid var(--c-border-light); }
.quote-info-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.quote-info-card ul { margin: 0; padding-left: 16px; }
.quote-info-card li { font-size: 13px; color: var(--c-text-secondary); margin-bottom: 4px; }

@media (max-width: 768px) {
  .footer-trust { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .help-cats { grid-template-columns: 1fr; }
  .quote-info { grid-template-columns: 1fr; }
  .page-hero { padding: 32px 16px; }
  .page-hero h1 { font-size: 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   ADMIN — full layout & components (Click IT branding)
   ================================================================ */
.admin-body { background: var(--c-surface-alt); margin: 0; color: var(--c-text); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; overflow-x: clip; min-height: 100vh; }
.admin-body * { box-sizing: border-box; }
html.admin-box, html { scrollbar-gutter: stable; }
.admin-app {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  grid-auto-rows: auto;
  width: 100%; max-width: 100vw; height: 100%; min-height: 100vh;
}
.admin-app > .admin-main { min-width: 0; }
/* Explicit placement so the fixed backdrop never participates in the grid
   flow. Without this, grid auto-placement pushes #admin-main into a second
   implicit row beneath the sidebar's 100vh column, leaving a huge empty
   navy block above the dashboard. */
.admin-app > .admin-sidebar { grid-row: 1; grid-column: 1; min-height: 0; }
.admin-app > .admin-main    { grid-row: 1; grid-column: 2; min-height: 0; }
.admin-app > .admin-backdrop { position: fixed; inset: 0; grid-row: 1; grid-column: 1 / -1; }

/* ---- Sidebar ---- */
.admin-sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden;
  background: linear-gradient(180deg, var(--c-navy) 0%, var(--c-navy-light) 100%);
  color: #fff; display: flex; flex-direction: column; z-index: 40;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent;
}
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px; text-decoration: none; flex-shrink: 0; }
.admin-brand .brand-mark { background: var(--c-orange); color: var(--c-navy); }
.admin-brand .brand-copy { color: #fff; }
.admin-brand .brand-copy > span { color: rgba(255,255,255,.72); }
.admin-nav { flex: 1 1 auto; padding: 4px 10px 24px; }
.admin-nav-toggle, .admin-nav-link {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: 6px; background: transparent;
  color: rgba(255,255,255,.85); font: inherit; font-size: 13.5px; font-weight: 500;
  text-align: left; text-decoration: none; cursor: pointer;
}
.admin-nav-toggle:hover, .admin-nav-link:hover { background: rgba(255,255,255,.09); color: #fff; }
.admin-nav-toggle:focus-visible, .admin-nav-link:focus-visible { outline: 2px solid var(--c-orange); outline-offset: -2px; }
.admin-nav-toggle { font-weight: 600; }
.admin-nav-link.active { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 3px 0 0 var(--c-orange); }
.admin-nav-top { margin-top: 2px; }
.admin-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.admin-nav-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-nav-chevron { display: inline-flex; color: rgba(255,255,255,.6); }
.admin-nav-chevron .admin-icon { width: 15px; height: 15px; flex-basis: 15px; transition: transform .15s; }
.admin-nav-toggle[aria-expanded="true"] .admin-nav-chevron .admin-icon { transform: rotate(180deg); }
.admin-nav-sub { list-style: none; margin: 2px 0 6px; padding: 0 0 0 10px; }
.admin-nav-sub[hidden] { display: none; }
.admin-nav-sub .admin-nav-link { padding: 7px 10px; font-size: 13px; font-weight: 400; color: rgba(255,255,255,.78); }
.admin-nav-sub .admin-nav-link .admin-icon { width: 15px; height: 15px; flex-basis: 15px; }

/* ---- Main column ---- */
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; background: #fff; border-bottom: 1px solid var(--c-border);
}
.admin-title { flex: 1 1 auto; min-width: 0; }
.admin-breadcrumb { font-size: 15px; font-weight: 700; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-hamburger {
  display: inline-flex; width: 38px; height: 38px; flex: 0 0 38px;
  border: 1px solid var(--c-border); border-radius: var(--c-radius-sm); background: #fff;
  color: var(--c-text); align-items: center; justify-content: center; cursor: pointer;
}
/* Desktop sidebar collapse-to-icons mode. */
body.sidebar-collapsed .admin-app { grid-template-columns: 70px minmax(0, 1fr); }
body.sidebar-collapsed .admin-brand { justify-content: center; padding: 18px 8px; gap: 0; }
body.sidebar-collapsed .admin-brand .brand-copy { display: none; }
body.sidebar-collapsed .admin-nav { padding: 6px 8px 24px; }
body.sidebar-collapsed .admin-nav-toggle, body.sidebar-collapsed .admin-nav-link { justify-content: center; padding: 10px 0; }
body.sidebar-collapsed .admin-nav-toggle .admin-nav-chevron { display: none; }
body.sidebar-collapsed .admin-nav-label { display: none; }
body.sidebar-collapsed .admin-nav-toggle .admin-icon, body.sidebar-collapsed .admin-nav-link .admin-icon { width: 20px; height: 20px; flex-basis: 20px; }
body.sidebar-collapsed .admin-nav-sub { padding-left: 0; }
.admin-hamburger svg { width: 20px; height: 20px; }
.admin-hamburger:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 1px; }
.admin-content { padding: 20px; min-width: 0; }
.admin-content:focus { outline: none; }

/* Admin products pagination: buttons + drag scrubber */
.admin-pagination { display: grid; gap: 8px; margin: 12px 4px 4px; }
.admin-page-buttons { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.admin-page-buttons .btn-active, .admin-page-buttons .btn-active:disabled { background: var(--c-navy); color: #fff; opacity: 1; }
.admin-page-scrub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-page-scrub input[type="range"] { accent-color: var(--c-navy); }

/* Trade Me category search dropdown */
.tm-cat-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50;
  background: #fff; border: 1px solid var(--c-border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14); max-height: 260px; overflow-y: auto; padding: 4px;
}
.tm-cat-result {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; background: none; border: 0; border-radius: 6px;
  padding: 8px 10px; cursor: pointer; text-align: left; font: inherit; font-size: 13px;
}
.tm-cat-result:hover, .tm-cat-result:focus-visible { background: var(--c-surface-hover); outline: none; }
.tm-cat-path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-cat-id { flex: 0 0 auto; font-size: 11.5px; color: var(--c-text-light); }
.tm-cat-empty { padding: 10px; font-size: 13px; color: var(--c-text-secondary); }

/* ---- Account menu (topbar) ---- */
.admin-user { position: relative; flex: 0 0 auto; }
.admin-user-toggle {
  display: flex; align-items: center; gap: 10px; max-width: 260px;
  border: 1px solid var(--c-border); background: #fff; border-radius: 8px;
  padding: 5px 10px 5px 6px; cursor: pointer; font: inherit;
}
.admin-user-toggle:hover { background: var(--c-surface-hover); }
.admin-user-avatar {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--c-navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.admin-user-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; min-width: 0; }
.admin-user-name { font-size: 13px; font-weight: 600; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-role { font-size: 11px; color: var(--c-text-light); text-transform: capitalize; }
.admin-user-chevron { display: inline-flex; color: var(--c-text-light); }
.admin-user-chevron .admin-icon { width: 14px; height: 14px; }
.admin-user-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px;
  background: #fff; border: 1px solid var(--c-border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 6px; z-index: 60;
}
.admin-user-menu[hidden] { display: none; }
.admin-user-menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--c-border-light); margin-bottom: 6px; display: flex; flex-direction: column; gap: 4px; }
.admin-user-menu-head strong { font-size: 13.5px; }
.admin-user-menu-link {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px;
  border: 0; background: none; border-radius: 6px; color: var(--c-text);
  font: inherit; font-size: 13.5px; text-decoration: none; cursor: pointer;
}
.admin-user-menu-link:hover { background: var(--c-surface-hover); }
.admin-user-menu-link .admin-icon { width: 16px; height: 16px; }
.admin-user-menu-signout { color: var(--c-red); }
.admin-user-menu-signout:hover { background: #fdf0f0; }

/* ---- Backdrop + drawer states ---- */
.admin-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 35; }
.admin-backdrop[hidden] { display: none; }
body.admin-drawer-open { overflow: hidden; }

/* ---- Loading + error states ---- */
.admin-loading { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.admin-loading[hidden] { display: none; }
.admin-loading-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.admin-loading-inner .brand-mark { width: 44px; height: 44px; font-size: 24px; }
.admin-loading-label { font-size: 13px; color: var(--c-text-secondary); }
.admin-error { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.admin-error[hidden] { display: none; }
.admin-error-card { background: #fff; border: 1px solid var(--c-border); border-radius: 12px; box-shadow: var(--c-shadow); padding: 32px; max-width: 460px; text-align: center; }
.admin-error-card h1 { font-size: 20px; margin: 0 0 8px; }
.admin-error-card p { color: var(--c-text-secondary); margin: 0 0 20px; line-height: 1.5; }
.admin-skeleton { display: flex; flex-direction: column; gap: 12px; }

/* ---- Page scaffolding ---- */
.admin-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-page-head h1 { font-size: 22px; font-weight: 800; margin: 0; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0; width: 100%; }

/* ---- Cards ---- */
.card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--c-radius); box-shadow: 0 1px 2px rgba(0,0,0,.04); margin-bottom: 16px; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--c-border-light); }
.card-head h2 { font-size: 15px; font-weight: 700; margin: 0; }
.card > .card-head + * , .card > *:not(.card-head) { padding: 16px; }
.card .table-wrap { padding: 0; }
.card .table { margin: 0; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; width: 100%; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }

/* Wide admin tables (e.g. Products / All Products): keep columns on one line
   and scroll left/right inside the card. The horizontal scrollbar is always
   visible (not just while scrolling) so users can see they can drag it. */
.table-scroll { overflow-x: scroll; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-color: rgba(0, 0, 0, .35) #eef0f2; scrollbar-width: auto; }
.table-scroll .table { width: max-content; min-width: 100%; }
.table-scroll th, .table-scroll td { white-space: nowrap; }
.table-scroll::-webkit-scrollbar { height: 14px; }
.table-scroll::-webkit-scrollbar-track { background: #eef0f2; border-radius: 8px; }
.table-scroll::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .35); border-radius: 8px; border: 3px solid #eef0f2; }
.table-scroll::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, .5); }

/* Labels + fields used by the bulk Map-to-Trade-Me listing form. */
.field-label { display: block; font-size: 12px; font-weight: 600; color: var(--c-text-secondary, #555); margin-bottom: 4px; }
.admin-map-field .input { width: 100%; }
.admin-map-grid .input-sm { min-width: 120px; }

/* Custom horizontal scroller under wide admin tables: static & always
   visible (never auto-hides like the OS scrollbar), with ◀ ▶ jump buttons
   and a draggable thumb sized to the visible fraction. It is hidden by JS
   when the table fits, so narrow tables are unaffected. */
.card > .table-scroll-root { padding: 0; }
.table-scroll-root { width: 100%; min-width: 0; }
.table-scroll-root .table-scroll { overflow-x: scroll; overflow-y: hidden; }
.h-scroller {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 8px; border-top: 1px solid var(--c-border-light);
  background: var(--c-surface-alt); border-radius: 0 0 var(--c-radius) var(--c-radius);
  /* Static / pinned: the bar sticks to the bottom of the window while the
     wide table is on screen, instead of scrolling away with the page.
     It only leaves once you have scrolled past the whole table. */
  position: sticky; left: 0; bottom: 0; z-index: 8;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, .08);
}
.h-scroll-btn {
  flex: 0 0 auto; width: 28px; height: 24px; cursor: pointer; border: 1px solid var(--c-border);
  background: #fff; color: var(--c-text); border-radius: 6px; font-size: 11px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.h-scroll-btn:hover { border-color: var(--c-navy, #004c91); color: var(--c-navy, #004c91); }
.h-scroll-track {
  flex: 1 1 auto; height: 8px; background: #dee2e6; border-radius: 999px;
  position: relative; cursor: pointer; min-width: 40px;
}
.h-scroll-thumb {
  position: absolute; top: 0; left: 0; height: 100%; min-width: 30px;
  background: var(--c-navy, #004c91); border-radius: 999px; cursor: grab;
  transition: background .15s ease;
}
.h-scroll-thumb:hover { background: var(--c-navy-light, #003d7a); }
.h-scroll-thumb:active { cursor: grabbing; }
.table th { background: var(--c-surface-alt); font-weight: 600; padding: 10px 12px; text-align: left; border-bottom: 2px solid var(--c-border); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--c-border-light); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover { background: var(--c-surface-hover); }
/* Products already listed on Trade Me get a light-yellow row so it is obvious
   at a glance which store products have a live Trade Me listing. */
.table tr.row-on-trademe td { background: #fff8e1; }
.table tr.row-on-trademe:hover td { background: #ffecb3; }
/* Products with NO image get a light-red row — store rule: no image means
   the product is disabled and must never be listed on Trade Me. */
.table tr.row-no-image td { background: #fdecea; }
.table tr.row-no-image:hover td { background: #fbd7d2; }
/* Massive price drops (sale price >= 20% below the normal price) get a red
   row so a typo'd / wrongly bulk-updated price is impossible to miss. */
.table tr.tm-drop-row td { background: #fdecea; }
.table tr.tm-drop-row:hover td { background: #fbd7d2; }
.table tr.tm-drop-row td.tm-drop-now { color: #c0392b; font-weight: 700; }
.table tr.tm-drop-row td.tm-drop-now .strike { color: #7f8c8d; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { background: var(--c-surface-alt); font-weight: 600; padding: 10px 12px; text-align: left; border-bottom: 2px solid var(--c-border); }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--c-border-light); }

/* ---- Status pills ---- */
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: capitalize; background: var(--c-surface-alt); color: var(--c-text-secondary); border: 1px solid var(--c-border); white-space: nowrap; }
.status-active, .status-publish, .status-completed, .status-ok, .status-true { background: #eaf6e3; color: var(--c-green-light); border-color: #cde8bd; }
.status-draft, .status-inactive, .status-pending, .status-false { background: var(--c-surface-alt); color: var(--c-text-secondary); border-color: var(--c-border); }
.status-processing, .status-on_hold { background: #fff4e0; color: #a06400; border-color: #f3dcae; }
.status-failed, .status-cancelled, .status-refunded, .status-error, .status-icecat-danger { background: #fdecec; color: var(--c-red-light); border-color: #f3c5c5; }
.status-icecat-success { background: #eaf6e3; color: var(--c-green-light); border-color: #cde8bd; }
.status-icecat-warn { background: #fff4e0; color: #a06400; border-color: #f3dcae; }
.status-icecat-neutral { background: var(--c-surface-alt); color: var(--c-text-secondary); border-color: var(--c-border); }
.status-info { background: #e0eefe; color: var(--c-navy); border-color: #b9d8fb; }
.action-chip { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--c-surface-alt); color: var(--c-navy); border: 1px solid var(--c-border); white-space: nowrap; }

/* ---- Stats ---- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin: 0 0 18px; }
.stat-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--c-radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: 12px; color: var(--c-text-light); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.stat-value { font-size: 22px; font-weight: 800; color: var(--c-text); }
.stat-sub { font-size: 12px; color: var(--c-text-light); }

/* ---- Toolbars & chips ---- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.date-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--c-text-secondary); background: #fff; border: 1px solid var(--c-border); text-decoration: none; }
.chip:hover { border-color: var(--c-navy); color: var(--c-navy); }
.chip.active { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }
.chip-brand { background: #fff3e0; color: #e65100; border-color: #ffb74d; }

/* ---- Forms ---- */
.input { width: 100%; padding: 9px 12px; border: 1px solid var(--c-border); border-radius: 6px; font: inherit; font-size: 13.5px; background: #fff; color: var(--c-text); }
.input:focus { outline: none; border-color: var(--c-orange-dark); box-shadow: 0 0 0 3px rgba(255, 194, 32, .25); }
select.input { cursor: pointer; }
textarea.input { resize: vertical; min-height: 80px; }
.input-sm { padding: 6px 10px; font-size: 12.5px; }
.input-xs { padding: 4px 8px; font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--c-text); }
.form-field > .input { font-weight: 400; }
.form-hint { font-size: 11.5px; color: var(--c-text-light); font-weight: 400; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.editor-form { display: flex; flex-direction: column; gap: 16px; max-width: 1100px; margin: 0 auto; padding: 0 6px 24px; font-size: 14px; }
.editor-form .form-grid { font-size: 14px; }
.editor-form .input, .editor-form textarea, .editor-form select { font-size: 14px; }
.editor-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 10px 16px; border-top: 1px solid var(--c-border-light); background: #fff; }
.editor-actions-sticky { position: sticky; bottom: 0; z-index: 25; box-shadow: 0 -2px 8px rgba(0,0,0,.06); margin: 0 -8px; }
.editor-actions .btn-lg { font-size: 14.5px; padding: 10px 18px; }
.tab-head-sticky { position: sticky; top: 0; z-index: 24; background: #fff; padding: 8px 0 0; margin: 0 -8px 16px; }

/* Trade Me tab on the product editor */
.tm-cat-results { position: absolute; z-index: 60; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--c-border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 320px; overflow-y: auto; }
.tm-cat-result { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; background: #fff; border: 0; border-bottom: 1px solid var(--c-border-light); font: inherit; font-size: 12.5px; cursor: pointer; }
.tm-cat-result:hover { background: var(--c-surface-hover); }

/* Side-by-side Trade Me category mapping rows (store category | TM search | Map) */
.tm-map-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--c-border-light); border-radius: 8px; margin-bottom: 8px;
  background: #fff; flex-wrap: wrap;
}
.tm-map-row:hover { border-color: var(--c-border); }
.tm-map-store { flex: 0 1 320px; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.tm-map-store strong { font-size: 13.5px; line-height: 1.3; }
.tm-cat-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-cat-id { color: var(--c-text-light); font-size: 11px; flex: 0 0 auto; }
.tm-cat-empty { padding: 10px; font-size: 12.5px; color: var(--c-text-light); }
.tm-tree { max-height: 260px; overflow-y: auto; border: 1px solid var(--c-border-light); border-radius: 8px; padding: 6px; background: #fafbfc; }
.tm-tree-row { display: flex; align-items: center; }
.tm-tree-toggle { width: 22px; height: 22px; border: 0; background: transparent; cursor: pointer; color: var(--c-text-secondary); font-size: 12px; flex: 0 0 22px; }
.tm-tree-cat { background: transparent; border: 0; font: inherit; font-size: 12.5px; padding: 3px 6px; border-radius: 4px; cursor: pointer; color: var(--c-text); text-align: left; display: flex; align-items: center; }
.tm-tree-cat:hover { background: var(--c-surface-hover); color: var(--c-orange); }
.tm-tree-kids { border-left: 1px dashed var(--c-border); margin-left: 10px; padding-left: 4px; }
.suggest-confidence { height: 8px; border-radius: 4px; background: var(--c-border-light); overflow: hidden; margin: 6px 0; }
.suggest-confidence-bar { height: 100%; background: linear-gradient(90deg, var(--c-orange), #ff8a3d); border-radius: 4px; }
.checkbox-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; max-height: 220px; overflow-y: auto; padding: 8px; border: 1px solid var(--c-border-light); border-radius: 6px; }
.checkbox-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; cursor: pointer; }
.checkbox-item input { width: 16px; height: 16px; accent-color: var(--c-navy); }

/* ---- Tabs ---- */
.tab-head { display: flex; gap: 4px; border-bottom: 2px solid var(--c-border-light); margin-bottom: 16px; flex-wrap: wrap; }
.tab-btn { padding: 9px 16px; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--c-text-secondary); border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; }
.tab-btn:hover { color: var(--c-navy); }
.tab-btn.active { color: var(--c-navy); border-bottom-color: var(--c-navy); }
.tab-panel[hidden] { display: none; }

/* ---- Variants ---- */
.variant-list-editor { display: flex; flex-direction: column; gap: 8px; }
.variant-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1.6fr auto; gap: 8px; align-items: center; }

/* ---- Modals ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px 16px; overflow-y: auto; z-index: 100; }
.modal { background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.25); width: 100%; max-width: 520px; padding: 20px; position: relative; }
.modal.wide { max-width: 820px; }
.modal.modal-sm { max-width: 400px; }
.modal h3 { margin: 0 0 8px; font-size: 17px; }
.modal p.muted { margin: 0 0 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* ---- Import modal ---- */
.import-modal h3 { margin-top: 0; }
.import-options { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }
.import-profit-note { font-size: 12.5px; color: var(--c-text-secondary); }
.import-map-table { border: 1px solid var(--c-border); border-radius: 8px; overflow: hidden; }
.import-map-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; padding: 10px 12px; background: var(--c-surface-alt); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.import-map-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--c-border-light); align-items: center; }
.import-map-value { display: flex; flex-direction: column; gap: 2px; }

/* ---- Buttons (admin extras) ---- */
.btn-ghost { background: #fff; border-color: var(--c-border); color: var(--c-text); }
.btn-ghost:hover { background: var(--c-surface-hover); border-color: #adb1b8; }
.btn-danger { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.btn-danger:hover { background: var(--c-red-light); }
.btn-xs { padding: 4px 10px; font-size: 11.5px; border-radius: 999px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--c-link); cursor: pointer; text-decoration: none; }
.link-btn:hover { color: var(--c-link-hover); text-decoration: underline; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ---- Charts ---- */
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding: 10px 0 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bar { width: 100%; max-width: 36px; background: var(--c-navy); border-radius: 4px 4px 0 0; min-height: 4px; }
.bar-col:hover .bar { background: var(--c-orange-dark); }
.bar-label { font-size: 9.5px; color: var(--c-text-light); white-space: nowrap; }

/* ---- Category tree ---- */
.category-admin-tree { display: flex; flex-direction: column; gap: 4px; }
.category-tree-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #fff; border: 1px solid var(--c-border-light); border-radius: 6px; font-size: 13px; flex-wrap: wrap; }
.category-drag-handle { color: var(--c-text-light); cursor: grab; user-select: none; }

/* ---- Order / customer detail ---- */
.order-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 16px; font-size: 13px; }
.order-meta div { display: flex; flex-direction: column; gap: 2px; }
.order-meta span { color: var(--c-text-light); font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
.order-meta strong { font-weight: 600; }
.summary-box { display: flex; flex-direction: column; gap: 8px; }
.summary-row { display: flex; justify-content: space-between; font-size: 13px; }
.summary-row.total { border-top: 1px solid var(--c-border); padding-top: 8px; font-weight: 700; font-size: 14px; }
.order-list { display: flex; flex-direction: column; gap: 8px; }
.order-row { display: block; padding: 10px 12px; border: 1px solid var(--c-border-light); border-radius: 6px; text-decoration: none; color: var(--c-text); font-size: 13px; background: #fff; }
.order-row:hover { border-color: var(--c-navy); }
.timeline { display: flex; flex-direction: column; gap: 10px; }
.timeline-item { position: relative; padding-left: 18px; font-size: 13px; }
.timeline-item::before { content: ''; position: absolute; left: 3px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-orange); }
.timeline-item::after { content: ''; position: absolute; left: 6px; top: 18px; bottom: -12px; width: 2px; background: var(--c-border-light); }
.timeline-item:last-child::after { display: none; }

/* ---- Media library ---- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.media-item { background: #fff; border: 1px solid var(--c-border); border-radius: 8px; overflow: hidden; }
.media-item img { width: 100%; height: 120px; object-fit: cover; display: block; }
.media-meta { padding: 8px 10px; font-size: 11.5px; color: var(--c-text-light); }

/* ---- Misc ---- */
.muted { color: var(--c-text-light); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--c-surface-alt); color: var(--c-text-secondary); border: 1px solid var(--c-border); }
.badge-role { background: var(--c-navy); color: #fff; border-color: var(--c-navy); text-transform: capitalize; align-self: flex-start; }
.image-enrichment-callout { background: var(--c-surface-alt); }
#admin-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 16px; box-sizing: border-box;
  background: linear-gradient(160deg, #003068 0%, #004c91 48%, #0060b3 100%);
}
#admin-login[hidden] { display: none; }
.admin-login-card {
  width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--c-border);
  border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.28);
  padding: clamp(24px, 5vw, 36px); box-sizing: border-box;
}
.admin-login-card h1 { font-size: clamp(19px, 2.4vw, 22px); margin: 16px 0 4px; letter-spacing: -.2px; }
.admin-login-brand { display: flex; align-items: center; gap: 12px; }
.admin-login-brand .brand-mark { width: 46px; height: 46px; font-size: 22px; border-radius: 10px; }
.admin-login-brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.admin-login-brand-copy strong { font-size: 18px; color: var(--c-navy); }
.admin-login-brand-copy span { font-size: 11.5px; color: var(--c-text-light); }
.admin-login-sub { font-size: 13px; margin: 0 0 6px; }
.admin-login-form-slot form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; width: 100%; box-sizing: border-box; }
.admin-login-card .form-field { gap: 5px; }
.admin-login-card .form-field > span { font-size: 12.5px; font-weight: 600; color: var(--c-text-secondary); }
.admin-pwd-wrap { position: relative; }
.admin-pwd-wrap .input { padding-right: 44px; }
.admin-pwd-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; background: none; cursor: pointer;
  font-size: 16px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-text-light); border-radius: 6px;
}
.admin-pwd-toggle:hover { background: var(--c-surface-hover); color: var(--c-text); }
.admin-pwd-toggle:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 0; }
.admin-login-options {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px;
}
.admin-login-remember { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--c-text-secondary); }
.admin-login-remember input { width: 15px; height: 15px; accent-color: var(--c-navy); }
.admin-login-forgot { color: var(--c-link); }
.admin-login-error {
  background: #fdecea; color: #9f1239; border: 1px solid #f5c2c2; border-radius: 8px;
  padding: 10px 12px; font-size: 13px; margin-top: 14px;
}
.admin-login-error[hidden] { display: none; }
.admin-login-notice { background: #fef3c7; color: #92400e; border: 1px solid #f3dcae; border-radius: 8px; padding: 10px 12px; font-size: 13px; text-align: center; margin-top: 16px; }
.admin-login-help { font-size: 12px; text-align: center; margin: 4px 0 0; }
.admin-login-mfa-title { font-size: 17px; margin: 0; }
.admin-mfa-input { text-align: center; font-size: 22px; letter-spacing: 8px; font-weight: 700; }
.admin-login-back { margin-top: 2px; }
@media (max-width: 480px) {
  #admin-login { padding: 24px 16px; }
  .admin-login-card { max-width: none; border-radius: 12px; }
}
.admin-ph { color: var(--c-orange); font-weight: 600; }

/* ---- Products list: filters, columns, bulk bar, pagination ---- */
.admin-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-filters .input { width: auto; min-width: 130px; flex: 0 1 auto; }
.admin-filters .input[placeholder*="Search"] { flex: 2 1 240px; min-width: 220px; }
.admin-list-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; position: relative; }
.col-toggle { position: relative; }
.col-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 50; background: #fff; border: 1px solid var(--c-border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 10px; min-width: 200px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.col-menu[hidden] { display: none; }
.admin-view-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.admin-bulkbar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 8px 10px; background: var(--c-navy); color: #fff; border-radius: 8px; margin-bottom: 12px; }
.admin-bulkbar[hidden] { display: none; }
.admin-bulkbar-count { font-size: 12.5px; font-weight: 700; margin-right: 6px; }
.admin-bulkbar .btn-ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.admin-bulkbar .btn-ghost:hover { background: rgba(255,255,255,.2); }
.admin-bulkbar .btn-danger { background: var(--c-red); }
.admin-bulk-menu { display: flex; flex-direction: column; gap: 10px; min-width: 240px; }
.admin-pagination { display: flex; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 12px; }
.admin-thumb { width: 46px; height: 46px; object-fit: contain; border: 1px solid var(--c-border-light); border-radius: 6px; background: #fff; display: inline-block; }
.admin-thumb-empty { display: inline-flex; align-items: center; justify-content: center; color: var(--c-text-light); font-size: 11px; }
.admin-thumb-logo { width: 40px; height: 30px; object-fit: contain; }

/* ---- Product editor ---- */
.gallery-editor { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-item { position: relative; width: 80px; }
.gallery-item img { width: 80px; height: 64px; object-fit: cover; border: 1px solid var(--c-border-light); border-radius: 6px; }
.gallery-item .btn { position: absolute; top: -6px; right: -6px; }
.media-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-height: 60vh; overflow-y: auto; }
.media-pick-item { border: 1px solid var(--c-border); border-radius: 8px; padding: 6px; background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 4px; align-items: center; font-size: 11px; }
.media-pick-item:hover { border-color: var(--c-navy); }
.media-pick-item img { width: 100%; height: 80px; object-fit: cover; border-radius: 4px; }
.variant-list-editor { display: flex; flex-direction: column; gap: 10px; }
.variant-row-full { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--c-border-light); border-radius: 8px; padding: 10px; background: var(--c-surface-alt); }
.variant-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.related-editor { display: flex; flex-direction: column; gap: 14px; }
.related-group { display: flex; flex-direction: column; gap: 6px; }
.related-suggest { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

/* ---- Media library ---- */
.media-dropzone { border: 2px dashed var(--c-border); border-radius: 10px; padding: 28px; text-align: center; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.media-dropzone:hover, .media-dropzone.over { border-color: var(--c-navy); background: var(--c-surface-alt); }

@media (max-width: 1024px) {
  .admin-app { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr); }
  .admin-app > .admin-sidebar { grid-row: 1; grid-column: 1; }
  .admin-app > .admin-main { grid-row: 1; grid-column: 1; }
  .admin-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 264px; height: 100vh;
    transform: translateX(-100%); transition: transform .22s ease; box-shadow: none;
  }
  .admin-sidebar.open { transform: translateX(0); box-shadow: 0 0 48px rgba(0,0,0,.28); }
  .admin-hamburger { display: inline-flex; }
  .admin-topbar { padding: 10px 14px; }
  .admin-content { padding: 16px 14px; }
}
@media (max-width: 768px) {
  .admin-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  /* ---- production-audit additions: payments, integrations, dashboard ---- */
  .tab-bar { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--c-border); padding-bottom: 8px; }
  .kv { display: grid; gap: 2px; }
  .kv-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--c-border); font-size: 13.5px; }
  .kv-key { color: var(--c-text-secondary); }
  .kv-value { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
  .notice { padding: 10px 14px; border-radius: 8px; margin-bottom: 10px; font-size: 13.5px; }
  .notice-success { background: #e6f6ec; color: #166534; border: 1px solid #bbe6c9; }
  .notice-warn { background: #fff7e6; color: #92400e; border: 1px solid #f5d78e; }
  .notice-info { background: #e9f2fd; color: #1e40af; border: 1px solid #c3d8f7; }
  .notice-error { background: #fdecea; color: #9f1239; border: 1px solid #f5c2c2; }
  .delta-up { color: #15803d; font-size: 12px; }
  .delta-down { color: #b91c1c; font-size: 12px; }
  .alert-stack { display: grid; gap: 6px; margin-bottom: 14px; }
  .alert-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--c-border); background: #fff; text-decoration: none; color: inherit; }
  .alert-row:hover { border-color: var(--c-orange); }
  .alert-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
  .alert-critical .alert-dot { background: #dc2626; }
  .alert-warning .alert-dot { background: #f59e0b; }
  .alert-info .alert-dot { background: #3b82f6; }
  .status-awaiting { background: #fef3c7; color: #92400e; }
  .status-paid { background: #dcfce7; color: #166534; }
  .status-failed { background: #fee2e2; color: #991b1b; }
  .variant-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .admin-user-meta { display: none; }
  .admin-user-chevron { display: none; }
  .admin-user-toggle { max-width: 44px; padding: 4px; }
  .modal { padding: 16px; }
}

/* ================================================================
   COMPARE
   ================================================================ */
.compare-table-wrap { overflow-x: auto; background: #fff; border-radius: var(--c-radius); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.compare-table th, .compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--c-border-light); text-align: center; vertical-align: top; }
.compare-table th { background: var(--c-surface-alt); font-weight: 600; text-align: left; width: 140px; }

/* ================================================================
   RESPONSIVE — Auto-sizing for all screens
   ================================================================ */
@media (max-width: 1200px) {
  .hero-cats { display: none; }
  .hero { grid-template-columns: 1fr; }
}

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

@media (max-width: 768px) {
  .hdr-deliver { display: none; }
  .hdr-search-cat { display: none; }
  .hdr-action-label { display: none; }
  .hdr-hamburger { display: block; }
  .cat-nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-carousel { aspect-ratio: 16/9; }
  .hero-title { font-size: 20px; }
  .hero-promos { grid-template-columns: 1fr; }
  .product-rail-track .product-card { min-width: 170px; max-width: 170px; }
  .trust-strip { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .account-alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; margin-bottom: 16px; font-size: 14px; }
  .account-layout { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-newsletter-inner { flex-direction: column; text-align: center; }
  .footer-nl-form { flex-direction: column; width: 100%; }
  .footer-nl-form input { min-width: 0; width: 100%; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .header-inner { gap: 8px; padding: 0 12px; }
  .hdr-logo-name { font-size: 15px; }
  .hdr-logo-icon { width: 32px; height: 32px; font-size: 13px; }
  .hdr-search { max-width: none; }
  .section-head h2 { font-size: 16px; }
}

@media (max-width: 480px) {
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .pc-img-wrap { height: 150px; }
  .pc-title { min-height: 28px; font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 18px; }
  .hero-subtitle { font-size: 13px; }
  .hero-cta { padding: 10px 20px; font-size: 13px; }
  .hdr-logo-tag { display: none; }
  .section { margin: 10px 0; }
}

/* ================================================================
   LEGAL / POLICY PAGES
   ================================================================ */
.policy-meta {
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center;
  padding: 12px 16px; background: var(--c-surface-alt); border: 1px solid var(--c-border-light);
  border-radius: 8px; margin-bottom: 20px;
}
.policy-meta-item { display: flex; flex-direction: column; }
.policy-meta-k { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--c-text-light); }
.policy-meta-v { font-size: 14px; font-weight: 600; color: var(--c-text); }
.policy-meta .btn { margin-left: auto; }
.policy-toc {
  background: #fff; border: 1px solid var(--c-border-light); border-radius: 8px;
  padding: 16px 18px; margin-bottom: 24px;
}
.policy-toc h3 { margin-bottom: 10px; font-size: 15px; }
.policy-toc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 18px; }
.policy-toc-link { color: var(--c-blue); font-size: 13.5px; text-decoration: none; padding: 3px 0; }
.policy-toc-link:hover { text-decoration: underline; }
.policy-section { margin-bottom: 28px; }
.policy-section h2 { font-size: 21px; margin-bottom: 12px; scroll-margin-top: 90px; }
.policy-section h3 { font-size: 17px; margin: 18px 0 10px; scroll-margin-top: 90px; }
.policy-section h4 { font-size: 15px; margin: 14px 0 8px; }
.policy-section p, .policy-section li { line-height: 1.65; }
.policy-section ul { margin: 8px 0; padding-left: 22px; }
.policy-cols { display: grid; gap: 8px; list-style: none; padding-left: 0 !important; }
.policy-cols li { padding: 10px 12px; background: var(--c-surface-alt); border-radius: 6px; }
.policy-note {
  border-left: 4px solid var(--c-blue); background: #eef4fb; padding: 14px 16px;
  border-radius: 6px; margin: 24px 0; font-size: 13.5px;
}
.policy-note p { margin: 0 0 8px; }
.policy-note p:last-child { margin-bottom: 0; }
.policy-related { margin-top: 24px; }
.policy-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.policy-contact { background: #fff; border: 1px solid var(--c-border-light); border-radius: 8px; padding: 16px 18px; margin: 14px 0; }
.policy-contact h3 { margin-bottom: 10px; }
.policy-contact p { margin: 4px 0; }
.policy-contact-row { display: flex; gap: 12px; padding: 4px 0; font-size: 13.5px; }
.policy-contact-label { font-weight: 600; min-width: 190px; color: var(--c-text-secondary); }
.admin-ph { color: var(--c-orange); font-weight: 600; }
@media (max-width: 768px) {
  .policy-meta .btn { margin-left: 0; }
  .policy-contact-row { flex-direction: column; gap: 2px; }
  .policy-toc-list { grid-template-columns: 1fr; }
}

.footer-cookie-link {
  display: inline-block; background: none; border: none; padding: 0;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
  text-decoration: underline; color: var(--c-link, inherit);
}
.footer-cookie-link:hover { text-decoration: underline; }

/* Cookie consent banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 600;
  background: #fff; border: 1px solid var(--c-border-light); border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0,0,0,.18); padding: 18px 20px; max-width: 560px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h3 { font-size: 16px; margin-bottom: 6px; }
.cookie-banner p { font-size: 13px; color: var(--c-text-secondary); margin-bottom: 12px; line-height: 1.5; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-config { margin-top: 12px; border-top: 1px solid var(--c-border-light); padding-top: 12px; }
.cookie-config label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 5px 0; }
.cookie-config label input { width: 16px; height: 16px; }

/* ================================================================
   ACCOUNT DROPDOWN (header)
   ================================================================ */
.hdr-account-wrap { position: relative; }
.hdr-account-toggle {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 10px; color: #ccc; border-radius: 4px; text-decoration: none;
  transition: background .15s;
}
.hdr-account-toggle:hover { color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }
.hdr-account-wrap.open .hdr-account-toggle { background: rgba(255,255,255,.1); color: #fff; }
.hdr-account-menu {
  position: absolute; top: 100%; right: 0; margin-top: 6px; background: #fff;
  border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,.18); min-width: 245px;
  padding: 8px 0; z-index: 220; border: 1px solid var(--c-border-light);
}
.hdr-acc-head { padding: 10px 16px; border-bottom: 1px solid var(--c-border-light); margin-bottom: 4px; }
.hdr-acc-head strong { display: block; font-size: 14px; color: var(--c-text); }
.hdr-acc-email { font-size: 12px; color: var(--c-text-light); }
.hdr-acc-link {
  display: block; padding: 10px 16px; color: var(--c-text); font-size: 13px;
  text-decoration: none; transition: background .1s;
}
.hdr-acc-link:hover { background: var(--c-surface-hover); text-decoration: none; }
.hdr-acc-signin { font-weight: 700; color: var(--c-blue); }
.hdr-acc-sep { height: 1px; background: var(--c-border-light); margin: 6px 0; }
.hdr-acc-btn {
  width: 100%; text-align: left; padding: 10px 16px; background: none; border: none;
  font-size: 13px; color: var(--c-text); cursor: pointer; transition: background .1s;
}
.hdr-acc-btn:hover { background: var(--c-surface-hover); }

/* ================================================================
   HOME REFINEMENTS — cart total, product brand/GST, hero controls
   ================================================================ */
.hdr-cart-total {
  font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap;
}

.pc-brand {
  font-size: 12px; color: var(--c-text-light); font-weight: 600;
  margin-bottom: 2px; text-transform: capitalize;
}
.pc-gst {
  font-size: 10px; color: var(--c-text-light); margin-top: 3px;
}

.hero-carousel:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 2px; }
.hero-play {
  position: absolute; right: 16px; bottom: 14px; z-index: 4;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.9); color: var(--c-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; box-shadow: var(--c-shadow); cursor: pointer;
  transition: background .15s;
}
.hero-play:hover { background: #fff; }

@media (max-width: 768px) {
  .hdr-cart-total { display: none; }
  .hero-play { width: 28px; height: 28px; right: 12px; bottom: 12px; }
  .pc-gst { display: none; }
}

/* ---- Narrow mobile: move search to its own row so header controls never
   overlap, keep tap targets comfortable, and keep the full catalogue grid
   inside the viewport. ---- */
@media (max-width: 620px) {
  .header-inner { flex-wrap: wrap; height: auto; gap: 8px 10px; padding: 8px 10px; }
  .header-inner .hdr-search { order: 10; flex: 1 1 100%; max-width: none; height: 40px; }
  .hdr-logo { flex: 1 1 auto; min-width: 0; }
  .hdr-logo-text .hdr-logo-tag { display: none; }
  .hdr-actions { margin-left: auto; }
  /* De-clutter: hide the Orders and Wishlist shortcuts on very narrow screens. */
  .hdr-action[href="#/account/orders"],
  .hdr-action[href="#/account/wishlist"] { display: none; }
}
@media (max-width: 520px) {
  .hdr-account-toggle { padding: 6px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
}

/* MFA setup panel (admin > My security) */
.mfa-setup-key {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: var(--c-surface-alt); border: 1px dashed var(--c-border); border-radius: 8px;
  padding: 12px 14px; margin: 8px 0;
}
.mfa-setup-key code { font-size: 13px; font-weight: 700; letter-spacing: 1px; word-break: break-all; color: var(--c-navy); }
