/* MelbsVapes demo storefront — design system stylesheet
   Tokens mirror the MelbsVapes design system (dark theme default, light theme opt-in). */

:root {
  /* Brand */
  --lime: #b0f801;
  --on-lime: #000000;
  --brand-black: #000000;
  --brand-white: #ffffff;

  /* Surfaces + text (dark theme) */
  --surface: #1a1c1e;
  --surface-raised: #24272a;
  --surface-sunken: #121416;
  --text: #ffffff;
  --text-muted: #b4bac0;
  --accent-text: #b0f801;
  --border: #383c40;
  --border-strong: #7e858c;
  --focus: #b0f801;
  --danger: #ff8a7a;

  /* Flavour accents */
  --flavour-mango: #ff9f1c;
  --flavour-berry: #ff4f8b;
  --flavour-ice: #39d3f5;
  --flavour-grape: #b07cff;
  --flavour-citrus: #ffe03d;
  --on-flavour: #000000;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-10: 40px;

  /* Radius */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 10px;

  /* Motion */
  --slant: -14deg;

  /* Type */
  --font-display: "Saira", "Arial Black", system-ui, sans-serif;
  --font-sans: "Barlow", "Helvetica Neue", Arial, system-ui, sans-serif;

  --page-gutter: 80px;
  --page-max: 1440px;
}

[data-theme="light"] {
  --surface: #ffffff;
  --surface-raised: #f3f3f0;
  --surface-sunken: #e9eae5;
  --text: #000000;
  --text-muted: #5c5c5c;
  --accent-text: #3d6b00;
  --border: #dededa;
  --border-strong: #767676;
  --focus: #000000;
  --danger: #b3261e;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
}

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

a { color: var(--accent-text); }
a:hover { color: var(--text); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-style: italic; margin: 0; }

.display { font-weight: 900; font-size: 80px; line-height: 0.95; letter-spacing: -0.01em; }
.h1 { font-weight: 900; font-size: 64px; line-height: 0.95; letter-spacing: -0.01em; }
.h2 { font-weight: 800; font-size: 40px; line-height: 1; }
.h3 { font-weight: 800; font-size: 28px; line-height: 1.1; }
.title { font-family: var(--font-sans); font-style: normal; font-size: 20px; line-height: 28px; font-weight: 600; }
.body { font-size: 16px; line-height: 24px; }
.small { font-size: 13px; line-height: 18px; }
.label {
  font-size: 13px; line-height: 16px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
}
.muted { color: var(--text-muted); }
.lead { font-size: 18px; line-height: 28px; color: var(--text-muted); }

.wrap { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--page-gutter); }
.section { padding: 80px 0 40px; }
.section-tight { padding: 40px 0; }
.stack { display: flex; flex-direction: column; gap: var(--space-6); }
.row { display: flex; align-items: center; gap: var(--space-4); }
.row-between { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.split-main { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.split-side { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.split-380 { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 16px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
}
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 17px; }
.btn-primary { background: var(--lime); color: var(--on-lime); }
.btn-primary:hover { background: var(--brand-white); color: var(--on-lime); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-dark { background: var(--brand-black); color: var(--brand-white); }
.btn-dark:hover { background: var(--surface-raised); color: var(--brand-white); }
.btn-icon {
  width: 44px; height: 44px; min-height: 44px; padding: 0;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: transparent; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.btn-icon:hover { border-color: var(--lime); }

/* ---------- Header ---------- */
.topbar {
  background: var(--lime); color: var(--on-lime);
  display: flex; align-items: center; justify-content: center; gap: var(--space-10);
  min-height: 36px; padding: 6px var(--space-4); text-align: center;
}
.topbar span { font-size: 13px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; }

.site-header { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: var(--space-6); min-height: 88px; }
.logo { display: block; width: 214px; height: 40px; overflow: hidden; flex-shrink: 0; }
.logo img { width: 214px; height: 72px; margin-top: -12px; max-width: none; }
.nav { display: flex; gap: 26px; flex-grow: 1; justify-content: center; }
.nav a {
  font-size: 16px; font-weight: 600; text-decoration: none; color: var(--text-muted);
  padding: 10px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--lime); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--lime); }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.cart-btn { background: var(--lime); color: var(--on-lime); border: none; }
.cart-count {
  min-width: 24px; height: 24px; border-radius: 12px; background: var(--surface);
  color: var(--lime); display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; padding: 0 6px;
}
.burger { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-raised); border-top: 1px solid var(--border); padding: 64px 0 32px; position: relative; overflow: hidden; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-10); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-legal {
  display: flex; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap;
  margin-top: var(--space-10); padding-top: var(--space-6);
  border-top: 1px solid var(--border); font-size: 13px; line-height: 18px; color: var(--text-muted);
}
.footer-slash { position: absolute; right: 0; top: 24px; pointer-events: none; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
label { font-size: 15px; font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 16px; line-height: 24px;
}
textarea { min-height: 160px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9aa0a6; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--lime); margin: 0; flex-shrink: 0; }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-weight: 400; font-size: 15px; line-height: 22px; color: var(--text-muted); cursor: pointer; }
.error-text { color: var(--danger); font-size: 13px; line-height: 18px; }
.field.invalid input, .field.invalid textarea { border: 2px solid var(--danger); }

/* ---------- Pieces ---------- */
.card { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); }
.card-pad { padding: 32px; }
.slash-band { position: absolute; top: -40px; height: 200%; transform: skewX(var(--slant)); }
.bar { display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--lime); }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  font-size: 13px; line-height: 18px; color: var(--text);
}
.tag {
  position: absolute; left: 12px; top: 12px; padding: 4px 8px; border-radius: var(--radius-sm);
  background: var(--lime); color: var(--on-flavour);
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: transparent; color: var(--text);
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.pill:hover { border-color: var(--lime); }
.pill[aria-checked="true"], .pill[aria-pressed="true"], .pill.is-on {
  background: var(--lime); border-color: var(--lime); color: var(--on-lime);
}
.pill[disabled] { border-color: var(--border); color: var(--border-strong); cursor: not-allowed; background: transparent; }
.dot { display: block; width: 10px; height: 16px; border-radius: 2px; transform: skewX(var(--slant)); background: var(--lime); }

/* Image placeholders */
.ph {
  position: relative; overflow: hidden; background: var(--surface-sunken);
  display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md);
}
.ph .ph-inner {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-muted); text-align: center;
}
.ph .ph-inner span { font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; }
.ph .ph-inner .ph-note { letter-spacing: 0; text-transform: none; font-weight: 400; font-size: 13px; }

/* Product card */
.pcard { display: flex; flex-direction: column; overflow: hidden; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); }
.pcard:hover { border-color: var(--lime); }
.pcard .ph { height: 260px; border-radius: 0; }
.pcard-body { flex-grow: 1; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.pcard-body a.name { color: var(--text); text-decoration: none; font-size: 20px; line-height: 26px; font-weight: 600; }
.pcard-body a.name:hover { color: var(--lime); }
.price { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 24px; color: var(--text); }
.price-was { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.pcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; }
.added { background: transparent; border: 1px solid var(--lime); color: var(--lime); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-art { position: relative; min-height: 448px; }
.hero-art .ph { position: absolute; inset: 0; }

/* Marquee band */
.band {
  background: var(--lime); color: var(--on-lime);
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 24px;
  padding: 20px 0;
}
.band .wrap { display: flex; align-items: center; justify-content: space-around; gap: var(--space-6); flex-wrap: wrap; }

/* Page title band */
.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); padding: 40px 0; }
.page-head .stack { gap: 12px; position: relative; z-index: 1; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--lime); }

/* Shop layout */
.shop-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: var(--space-10); align-items: start; }
.filters { display: flex; flex-direction: column; gap: var(--space-6); }
.filter-group { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-6); border-top: 1px solid var(--border); }
.filter-btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  min-height: 44px; padding: 0 12px; border: none; border-radius: var(--radius-sm);
  background: transparent; color: var(--text); font-family: inherit; font-size: 16px; font-weight: 600;
  cursor: pointer; text-align: left;
}
.filter-btn:hover { color: var(--lime); }
.filter-btn[aria-pressed="true"] { background: var(--lime); color: var(--on-lime); }
.filter-btn[aria-pressed="true"] .count { color: var(--on-lime); }
.filter-btn .count { font-size: 13px; color: var(--text-muted); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.toolbar select { width: auto; min-width: 200px; min-height: 44px; background: var(--surface-raised); }
.empty { border: 1px dashed var(--border-strong); border-radius: var(--radius-md); padding: 64px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pager { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-6); }
.pager button {
  width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: transparent; color: var(--text); font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
}
.pager button:hover { border-color: var(--lime); }
.pager button[aria-current="page"] { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }

/* Product detail */
.product-grid { display: grid; grid-template-columns: 640px minmax(0, 1fr); gap: 64px; align-items: start; }
.gallery-main { height: 520px; border: 1px solid var(--border); }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-4); }
.thumb {
  height: 120px; border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--surface-sunken); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; cursor: pointer; color: var(--text-muted);
  font-family: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
}
.thumb:hover, .thumb.is-on { border-color: var(--lime); }
.thumb .bar { width: 24px; height: 40px; transform: skewX(var(--slant)); border-radius: 2px; }
.swatch { }
.swatch[aria-checked="true"] { background: transparent; color: var(--text); }
.qty { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); }
.qty button { width: 44px; height: 44px; border: none; border-radius: var(--radius-sm); background: transparent; color: var(--text); font-family: inherit; font-size: 20px; cursor: pointer; }
.qty button:hover { color: var(--lime); }
.qty output { min-width: 40px; text-align: center; font-size: 18px; font-weight: 600; }
.tabs { display: flex; gap: var(--space-2); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tab {
  min-height: 56px; padding: 0 20px; border: none; background: transparent; color: var(--text-muted);
  border-bottom: 3px solid transparent; font-family: inherit; font-size: 17px; font-weight: 600; cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--lime); }
.spec-row { display: flex; justify-content: space-between; gap: var(--space-6); padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.spec-row dt { color: var(--text-muted); }
.spec-row dd { margin: 0; }

/* Services */
.svc { display: flex; flex-direction: column; gap: 12px; min-height: 300px; }
.svc:hover { border-color: var(--lime); }
.svc .price-line { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--border); margin-top: auto; }
.svc .svc-price { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 22px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { display: flex; flex-direction: column; gap: 8px; padding-top: var(--space-4); border-top: 3px solid var(--lime); }
.steps .num { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 40px; line-height: 1; }
.slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); }
.slots .pill { justify-content: center; }

/* Notices */
.notice {
  padding: 40px; border-radius: var(--radius-md); background: var(--surface);
  border: 1px solid var(--lime); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4);
}
.notice .tick {
  width: 48px; height: 48px; border-radius: 24px; background: var(--lime); color: var(--on-lime);
  display: flex; align-items: center; justify-content: center;
}

/* Age gate */
.gate { position: fixed; inset: 0; z-index: 100; background: rgba(18, 20, 22, 0.94); display: flex; align-items: flex-start; justify-content: center; padding: 10vh 16px; overflow: auto; }
.gate[hidden] { display: none; }
.gate-box {
  position: relative; width: 100%; max-width: 560px; padding: 48px; border-radius: var(--radius-md);
  background: var(--surface-raised); border: 1px solid var(--border); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-4); text-align: center;
}
.gate-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--lime); }

/* Style guide */
.tokens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.token { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.token .sw { height: 88px; }
.token .meta { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; background: var(--surface-raised); }
.token code { font-size: 13px; color: var(--text-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.sg-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.sg-block { padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-md); }
.theme-toggle { position: fixed; right: 24px; bottom: 24px; z-index: 50; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  :root { --page-gutter: 40px; }
  .display { font-size: 64px; }
  .h1 { font-size: 48px; }
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: 1fr; }
  .gallery-main { height: 420px; }
  .shop-layout { grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-6); }
}

@media (max-width: 900px) {
  :root { --page-gutter: 24px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--border);
    padding: var(--space-2) var(--page-gutter) var(--space-4);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav a[aria-current="page"] { border-bottom-color: var(--lime); }
  .burger { display: inline-flex; }
  .site-header .wrap { position: relative; justify-content: space-between; }
  .hero-grid, .grid-2, .grid-3, .split-main, .split-side, .split-380 { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 48px 0; }
  .hero-art { min-height: 300px; }
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .tokens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { gap: var(--space-4); }
  .topbar span { letter-spacing: 0.15em; font-size: 11px; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .header-actions .btn-icon:not(.burger) { display: none; }
  .cart-btn span:not(.cart-count) { display: none; }
  .cart-btn { padding: 0 12px; }
}

@media (max-width: 600px) {
  .display { font-size: 44px; }
  .h1 { font-size: 36px; }
  .h2 { font-size: 30px; }
  .grid-4, .grid-6, .grid-3, .tokens { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .band { font-size: 18px; }
  .logo, .logo img { width: 170px; }
  .logo { height: 32px; }
  .logo img { height: 57px; margin-top: -9px; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-pad, .gate-box { padding: var(--space-6); }
}

/* ================================================================
   MelbsVapes live-site additions: real logo sizing, announcement
   marquee, header search, glow/hover, cart & checkout, admin bits
   ================================================================ */

/* An element's [hidden] attribute must always win over utility classes like
   .stack/.notice/.empty that set their own display:flex — otherwise a hidden
   flex/grid container stays visible. */
[hidden] { display: none !important; }

/* Resets the global h1/h2/h3 display-type styling for headings used only for
   semantic/SEO structure around what is visually a card title, FAQ question, etc. */
.plain { font-family: inherit; font-style: normal; font-weight: inherit; font-size: inherit; line-height: inherit; }

/* Real logo (arbitrary aspect ratio) replaces the demo's cropped placeholder */
.logo { display: flex; align-items: center; width: auto; height: 48px; overflow: visible; }
.logo img { width: auto; height: 100%; max-width: none; margin: 0; }
@media (max-width: 600px) { .logo, .logo img { width: auto; height: 36px; } }

/* Announcement marquee bar */
.announce-bar {
  background: var(--lime); color: var(--on-lime); overflow: hidden;
  white-space: nowrap; padding: 9px 0;
}
.announce-track {
  display: inline-flex; gap: 40px; padding-left: 100%;
  animation: mv-marquee 28s linear infinite;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
}
.announce-bar:hover .announce-track { animation-play-state: paused; }
.announce-item { display: inline-flex; align-items: center; }
.announce-sep { opacity: 0.6; }
@keyframes mv-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .announce-track { animation: none; padding-left: 24px; } }

/* Header search */
.header-search { position: relative; display: flex; align-items: center; }
.header-search input[type="search"] {
  width: 0; min-height: 44px; opacity: 0; padding: 0; border: none;
  transition: width .2s ease, opacity .2s ease, padding .2s ease;
  position: absolute; right: 44px; background: var(--surface-raised);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
.header-search.is-open input[type="search"] { width: 220px; opacity: 1; padding: 0 14px; }

/* ---------- Glow / hover effects (desktop hover + touch :active) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .btn, .btn-icon, .pcard, .card, .pill, .cat-tile, .brand-tile { transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
}
.btn-primary:hover, .btn-primary:focus-visible, .btn-primary:active { box-shadow: 0 0 0 3px rgba(176,248,1,.25), 0 8px 24px rgba(176,248,1,.35); transform: translateY(-1px); }
.btn-ghost:hover, .btn-ghost:focus-visible, .btn-ghost:active { box-shadow: 0 0 0 3px rgba(176,248,1,.15); }
.btn-icon:hover, .btn-icon:focus-visible, .btn-icon:active { box-shadow: 0 0 0 3px rgba(176,248,1,.2); }
.pcard:hover, .pcard:focus-within { box-shadow: 0 0 0 1px var(--lime), 0 12px 32px rgba(176,248,1,.18); transform: translateY(-3px); }
.card:hover { box-shadow: 0 0 0 1px rgba(176,248,1,.4); }
.cat-tile:hover, .brand-tile:hover { box-shadow: 0 0 0 1px var(--lime), 0 10px 28px rgba(176,248,1,.2); transform: translateY(-3px); }
.pill:hover { box-shadow: 0 0 0 2px rgba(176,248,1,.2); }
.nav a:hover { text-shadow: 0 0 12px rgba(176,248,1,.5); }
@media (hover: none) {
  .btn-primary:active { box-shadow: 0 0 0 3px rgba(176,248,1,.3); }
  .pcard:active { box-shadow: 0 0 0 1px var(--lime); transform: none; }
}

/* Category / brand tiles */
.cat-tile, .brand-tile {
  display: flex; flex-direction: column; gap: 10px; padding: 24px; text-decoration: none; color: var(--text);
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.cat-tile .count, .brand-tile .count { font-size: 13px; color: var(--text-muted); }
.brand-tile img { max-height: 56px; width: auto; object-fit: contain; }

/* Star rating */
.stars { color: var(--lime); letter-spacing: 2px; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: transparent; border: none; color: var(--text); font-family: inherit; font-size: 17px; font-weight: 600;
  text-align: left; cursor: pointer; padding: 0;
}
.faq-icon { color: var(--lime); font-size: 22px; flex-shrink: 0; transition: transform .2s ease; }
.faq-item[data-open="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item[data-open="true"] .faq-a { max-height: 400px; }
.faq-a p { margin: 0 0 20px; color: var(--text-muted); max-width: 640px; }

/* Cart page */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.cart-table td { padding: 16px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-line-name { font-weight: 600; }
.cart-line-remove { color: var(--danger); background: none; border: none; cursor: pointer; font-size: 13px; text-decoration: underline; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.summary-row.total { font-weight: 800; font-size: 20px; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 16px; }

/* Checkout channel buttons */
.channel-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.copy-msg-box { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; font-size: 14px; white-space: pre-wrap; word-break: break-word; }

/* Discount / promo tag on product cards */
.badge-row { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 1; }
.badge-row .tag { position: static; }

/* Simple admin shell reuses tokens above */
.admin-shell { display: grid; grid-template-columns: 240px minmax(0,1fr); min-height: 100vh; }
.admin-side { background: var(--surface-raised); border-right: 1px solid var(--border); padding: 24px 0; }
.admin-side a { display: block; padding: 12px 24px; color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.admin-side a:hover, .admin-side a.is-active { color: var(--text); background: var(--surface-sunken); border-left: 3px solid var(--lime); padding-left: 21px; }
.admin-main { padding: 32px; max-width: 1200px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.admin-table th, .admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
.admin-table th { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--text-muted); }
.admin-table img.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: var(--surface-sunken); }
.admin-form { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.admin-form .grid-2 { gap: 16px; }
.admin-actions { display: flex; gap: 10px; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.status-new { background: var(--flavour-ice); color: #000; }
.status-contacted { background: var(--flavour-mango); color: #000; }
.status-confirmed, .status-fulfilled { background: var(--lime); color: #000; }
.status-cancelled { background: var(--border-strong); color: #000; }
@media (max-width: 900px) { .admin-shell { grid-template-columns: 1fr; } .admin-side { display: flex; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); padding: 8px; } .admin-side a { padding: 10px 14px; white-space: nowrap; } }
