/* ==========================================================================
   GridCast — Design Tokens & Base Styles
   ========================================================================== */

:root {
  /* Color tokens */
  --bg: #0b0d10;
  --bg-alt: #0e1114;
  --surface: #14171c;
  --surface-hover: #1b1f26;
  --surface-2: #191d23;
  --border: #23272e;
  --border-strong: #2f343c;
  --fg: #f5f7fa;
  --fg-muted: #9aa3af;
  --fg-faint: #666e79;
  --accent: #22c55e;
  --accent-hover: #2fdb6c;
  --accent-active: #16a34a;
  --accent-soft: rgba(34, 197, 94, 0.12);
  --accent-soft-strong: rgba(34, 197, 94, 0.22);
  --accent-contrast: #04140a;
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --warning: #fbbf24;

  /* Typography */
  --font-head: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Spacing scale (4pt) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 400ms;

  /* Layout */
  --container: 1280px;
  --nav-h: 76px;

  color-scheme: dark;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; background: none; border: none; }
table { border-collapse: collapse; width: 100%; }

a, button, [role="button"], input, select, textarea, summary {
  -webkit-tap-highlight-color: transparent;
}
a:not([class]), button:not([class]) { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--accent-soft-strong); color: var(--fg); }

/* ---- Typography scale ---- */
.h-display { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; }
.h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; }
.h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.h4 { font-size: 1.125rem; }
.text-lg { font-size: 1.125rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--fg-muted); }
.text-faint { color: var(--fg-faint); }
.text-accent { color: var(--accent); }
.text-danger { color: var(--danger); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-7); }
}
.section { padding-block: var(--space-9); }
@media (max-width: 767px) {
  .section { padding-block: var(--space-7); }
}
.grid { display: grid; gap: var(--space-5); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.center { align-items: center; justify-content: center; }
.gap-1 { gap: var(--space-1); } .gap-2 { gap: var(--space-2); } .gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); } .gap-5 { gap: var(--space-5); } .gap-6 { gap: var(--space-6); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-full);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 0 0 0 rgba(34,197,94,0.4);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 8px 24px -8px rgba(34,197,94,0.55); }
.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--fg);
}
.btn-secondary:hover { background: var(--surface-hover); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { color: var(--accent); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 var(--space-4); font-size: 0.875rem; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn-icon {
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---- Icons ---- */
.icon { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.navbar.scrolled { border-bottom-color: var(--border); background: rgba(11, 13, 16, 0.92); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand .logo-mark { width: 34px; height: 34px; }
.nav-links { display: none; align-items: center; gap: var(--space-6); }
.nav-links a { position: relative; font-size: 0.9375rem; font-weight: 500; color: var(--fg-muted); transition: color var(--dur-base) var(--ease-out); padding-block: var(--space-2); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--accent); transition: right var(--dur-base) var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-actions { display: flex; align-items: center; gap: var(--space-2); }
.cart-btn { position: relative; }
.cart-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-contrast);
  font-size: 0.625rem; font-weight: 700; border-radius: 999px;
  transform: scale(0); transition: transform var(--dur-fast) var(--ease-spring);
}
.cart-badge.show { transform: scale(1); }
.cart-badge.bump { animation: bump 380ms var(--ease-spring); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }

.menu-toggle { display: inline-flex; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.categories-toggle { display: inline-flex; }

.category-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 199;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), visibility 0s var(--dur-base);
}
.category-drawer-backdrop.open { opacity: 1; visibility: visible; transition-delay: 0s; }

.category-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(360px, 86vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 200;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-base) var(--ease-out);
  overflow-y: auto;
}
.category-drawer.open { transform: translateX(0); }
.category-drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-5); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface);
}
.category-drawer-head h3 { font-family: var(--font-head); font-size: 1.0625rem; font-weight: 600; }
.category-drawer-list { padding: var(--space-3); display: flex; flex-direction: column; gap: 2px; }
.category-drawer-list a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3); border-radius: var(--radius-md);
  font-size: 0.9375rem; font-weight: 500; color: var(--fg-muted);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.category-drawer-list a:hover { background: var(--surface-hover); color: var(--fg); }
.category-drawer-list a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.category-drawer-list a .count { font-size: 0.75rem; color: var(--fg-faint); }
body.category-drawer-open { overflow: hidden; }

.mobile-menu {
  position: fixed; inset: 0; top: var(--nav-h);
  background: var(--bg);
  z-index: 90;
  padding: var(--space-6) var(--space-5);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out), visibility 0s var(--dur-base);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; transition-delay: 0s; }
.mobile-menu a { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
body.menu-open { overflow: hidden; }

/* ---- Logo mark ---- */
.logo-mark { color: var(--accent); }

/* ---- Card ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}

/* ---- Reveal-on-scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Badges / chips ---- */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(34,197,94,0.25);
}
.badge-muted { background: var(--surface-2); color: var(--fg-muted); border-color: var(--border); }
.badge-warn { background: rgba(251,191,36,0.12); color: var(--warning); border-color: rgba(251,191,36,0.25); }

/* ---- Forms ---- */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: 0.875rem; font-weight: 600; }
.field .hint { font-size: 0.8125rem; color: var(--fg-muted); }
.field .error { font-size: 0.8125rem; color: var(--danger); display: none; }
.field.has-error .error { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger) !important; }
.input, select.input, textarea.input {
  min-height: 48px;
  padding: 0 var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--fg);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
textarea.input { padding-block: var(--space-3); min-height: 120px; resize: vertical; }
.input::placeholder { color: var(--fg-faint); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.required::after { content: ' *'; color: var(--accent); }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--border); padding-block: var(--space-8) var(--space-6); background: var(--bg-alt); }
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); gap: var(--space-6); } }
.footer h4 { font-size: 0.875rem; margin-bottom: var(--space-4); color: var(--fg); }
.footer ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer a { color: var(--fg-muted); font-size: 0.9375rem; transition: color var(--dur-base) var(--ease-out); }
.footer a:hover { color: var(--accent); }
.footer-bottom { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center; color: var(--fg-faint); font-size: 0.8125rem; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.footer-legal-links a { font-size: 0.8125rem; }
.social-row { display: flex; gap: var(--space-3); }
.social-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; transition: border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }
.social-row a:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Legal / policy content ---- */
.legal-content { max-width: 72ch; }
.legal-content h2 { font-family: var(--font-head); font-size: 1.375rem; font-weight: 600; margin-top: var(--space-7); margin-bottom: var(--space-3); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.0625rem; font-weight: 600; margin-top: var(--space-5); margin-bottom: var(--space-2); }
.legal-content p { color: var(--fg-muted); line-height: 1.7; margin-bottom: var(--space-4); }
.legal-content ul, .legal-content ol { margin: 0 0 var(--space-4); padding-left: 1.4em; color: var(--fg-muted); line-height: 1.7; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: var(--space-2); }
.legal-content li::marker { color: var(--fg-faint); }
.legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-content strong { color: var(--fg); font-weight: 600; }
.legal-note { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-5); margin-bottom: var(--space-6); color: var(--fg-muted); font-size: 0.9375rem; line-height: 1.65; }
.legal-updated { color: var(--fg-faint); font-size: 0.875rem; }

/* ---- Utility ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-contrast);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.divider { height: 1px; background: var(--border); border: none; }
.glow-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.glow-bg::before, .glow-bg::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35;
}
.glow-bg::before { width: 480px; height: 480px; background: var(--accent); top: -160px; right: -120px; }
.glow-bg::after { width: 420px; height: 420px; background: #3b82f6; bottom: -180px; left: -140px; opacity: 0.18; }

.price { font-family: var(--font-head); font-variant-numeric: tabular-nums; }
.price-lg { font-size: 1.75rem; font-weight: 700; }
.price-old { text-decoration: line-through; color: var(--fg-faint); font-weight: 500; }

.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25); border-top-color: var(--accent-contrast);
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 1400ms; } }

.toast {
  position: fixed; bottom: var(--space-5); left: 50%;
  transform: translate(-50%, 16px);
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--fg); padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md); box-shadow: 0 20px 40px -12px rgba(0,0,0,0.5);
  display: flex; align-items: center; gap: var(--space-3);
  z-index: 300; opacity: 0; pointer-events: none;
  transition: transform var(--dur-base) var(--ease-spring), opacity var(--dur-base) var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* ==========================================================================
   Page components
   ========================================================================== */

/* ---- Hero ---- */
.hero { position: relative; padding-block: var(--space-9) var(--space-8); overflow: hidden; }
.hero-grid { display: grid; gap: var(--space-8); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero-copy p.text-lg { max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }
.hero-stats { display: flex; gap: var(--space-7); margin-top: var(--space-8); flex-wrap: wrap; }
.stat-num { font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-visual img { width: 100%; max-width: 460px; filter: drop-shadow(0 40px 60px rgba(0,0,0,0.55)); animation: float 6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hero-visual img { animation: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.hero-ring { position: absolute; inset: 8% ; border: 1px dashed var(--border-strong); border-radius: 50%; opacity: 0.5; }

/* Cursor-tracked hero spotlight — pure hover/position response, no autoplay motion */
.hero-spotlight {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,0.14), transparent 72%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
  z-index: 0;
}
@media (hover: hover) and (pointer: fine) {
  .hero:hover .hero-spotlight { opacity: 1; }
}

/* Hero headline — per-word micro lift on hover */
.hero-headline span { display: inline-block; transition: transform 320ms var(--ease-spring), color 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .hero-headline span:hover { transform: translateY(-5px); color: var(--accent); }
}

/* Custom cursor (desktop, fine-pointer only; see assets/js/cursor.js) */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  will-change: transform;
  transition: opacity 200ms var(--ease-out);
}
.cursor-dot {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--accent);
}
.cursor-ring {
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.5px solid rgba(34, 197, 94, 0.45);
  transition: width 240ms var(--ease-spring), height 240ms var(--ease-spring), margin 240ms var(--ease-spring), border-color 200ms var(--ease-out), background-color 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.cursor-ring.cursor-hover { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: var(--accent-soft); border-color: var(--accent); }
.cursor-ring.cursor-active { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button, body.has-custom-cursor [role="button"], body.has-custom-cursor input, body.has-custom-cursor select, body.has-custom-cursor textarea {
  cursor: none;
}

/* ---- Marquee strip ---- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-block: var(--space-5); background: var(--bg-alt); }
.marquee-item { display: flex; align-items: center; gap: var(--space-2); padding-inline: var(--space-6); font-family: var(--font-head); font-weight: 600; color: var(--fg-muted); font-size: 0.9375rem; white-space: nowrap; }
.marquee-item .icon { color: var(--accent); }

/* ---- Category cards ---- */
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.75) 100%), var(--surface-2);
}
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 32px; box-sizing: border-box; opacity: 0.92; transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out); }
.category-card:hover img { transform: scale(1.06); opacity: 1; }
.category-card .art-wrap { position: absolute; inset: 0; opacity: 0.65; transition: transform var(--dur-slow) var(--ease-out); }
.category-card:hover .art-wrap { transform: scale(1.06); }
.category-card .art-wrap svg { width: 100%; height: 100%; }
.category-card-body { position: relative; z-index: 1; }
.category-card .cta-link { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3); font-weight: 600; color: var(--accent); }
.category-card .cta-link svg { transition: transform var(--dur-base) var(--ease-out); }
.category-card:hover .cta-link svg { transform: translateX(4px); }

/* ---- Bento grid ---- */
.bento { display: grid; gap: var(--space-5); grid-template-columns: repeat(1, 1fr); }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .bento { grid-template-columns: repeat(4, 1fr); } }
.bento-card { padding: var(--space-6); border-radius: var(--radius-lg); }
.bento-card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-hover); }
.bento-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--accent-soft); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-4); }
.bento-icon .icon { color: var(--accent); width: 24px; height: 24px; }

/* ---- Product grid & cards ---- */
.product-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product-card { display: flex; flex-direction: column; overflow: hidden; }
.product-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.product-thumb { position: relative; aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; }
.product-thumb::after, .pdp-gallery-main::after, .cart-thumb::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
  pointer-events: none;
}
.pdp-gallery-main, .cart-thumb { position: relative; }
.product-thumb svg { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 22px; box-sizing: border-box; transition: transform var(--dur-slow) var(--ease-out); }
.product-card:hover .product-thumb img, .product-card:hover .product-thumb svg { transform: scale(1.05); }
.product-badges { position: absolute; top: var(--space-3); left: var(--space-3); display: flex; gap: var(--space-2); z-index: 1; }
.product-quick-add {
  position: absolute; bottom: var(--space-3); right: var(--space-3);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--accent-contrast);
  display: flex; align-items: center; justify-content: center;
  transform: translateY(12px) scale(0.9); opacity: 0;
  transition: transform var(--dur-base) var(--ease-spring), opacity var(--dur-base) var(--ease-out);
}
.product-card:hover .product-quick-add, .product-quick-add:focus-visible { transform: translateY(0) scale(1); opacity: 1; }
@media (hover: none) { .product-quick-add { transform: translateY(0) scale(1); opacity: 1; } }
.product-body { padding: var(--space-4) var(--space-4) var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.product-cat { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-faint); font-weight: 600; }
.product-name { font-family: var(--font-head); font-size: 1rem; font-weight: 600; }
.product-name a::after { content: ''; position: absolute; inset: 0; }
.product-price-row { display: flex; align-items: baseline; gap: var(--space-2); margin-top: auto; padding-top: var(--space-2); }
.rating-row { display: flex; align-items: center; gap: var(--space-1); font-size: 0.8125rem; color: var(--fg-muted); }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars svg { width: 13px; height: 13px; }

/* ---- Filter tabs ---- */
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tab {
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
  border: 1px solid var(--border-strong); font-size: 0.875rem; font-weight: 600; color: var(--fg-muted);
  transition: all var(--dur-base) var(--ease-out);
}
.tab:hover { border-color: var(--accent); color: var(--fg); }
.tab.active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }

/* ---- Breadcrumb ---- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: 0.875rem; color: var(--fg-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--fg-faint); }

/* ---- Product detail ---- */
.pdp-grid { display: grid; gap: var(--space-8); grid-template-columns: 1fr; }
@media (min-width: 960px) { .pdp-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.pdp-gallery-main { aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.pdp-gallery-main svg { width: 100%; height: 100%; object-fit: cover; }
.pdp-gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 40px; box-sizing: border-box; transition: opacity var(--dur-fast) var(--ease-out); }
.pdp-thumb-row { display: flex; gap: var(--space-3); margin-top: var(--space-3); }
.pdp-thumb {
  width: 76px; height: 76px; flex-shrink: 0;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface-2); border: 1.5px solid var(--border);
  transition: border-color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; box-sizing: border-box; }
.pdp-thumb:hover { border-color: var(--border-strong); }
.pdp-thumb.active { border-color: var(--accent); }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-full); overflow: hidden; }
.qty-stepper button { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 1.125rem; transition: background-color var(--dur-fast); }
.qty-stepper button:hover { background: var(--surface-hover); }
.qty-stepper input { width: 44px; height: 44px; text-align: center; background: transparent; font-family: var(--font-head); font-weight: 600; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: var(--space-3) 0; font-size: 0.9375rem; }
.spec-table td:first-child { color: var(--fg-muted); width: 42%; }
.spec-table td:last-child { font-weight: 500; }
.trust-row { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-top: var(--space-6); }
.trust-item { display: flex; align-items: center; gap: var(--space-2); font-size: 0.8125rem; color: var(--fg-muted); }
.trust-item .icon { color: var(--accent); width: 18px; height: 18px; }

/* ---- Cart & tables ---- */
.cart-table { width: 100%; }
.cart-row { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: var(--space-4); align-items: center; padding-block: var(--space-5); border-bottom: 1px solid var(--border); }
@media (max-width: 640px) { .cart-row { grid-template-columns: 64px 1fr; row-gap: var(--space-3); } .cart-row .cart-qty, .cart-row .cart-linetotal, .cart-row .cart-remove { grid-column: 2; } }
.cart-thumb { width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.cart-thumb svg { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; box-sizing: border-box; }
.summary-card { padding: var(--space-6); position: sticky; top: calc(var(--nav-h) + 24px); }
.summary-row { display: flex; justify-content: space-between; padding-block: var(--space-2); font-size: 0.9375rem; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: var(--space-3); padding-top: var(--space-4); font-size: 1.125rem; font-weight: 700; font-family: var(--font-head); }
.empty-state { text-align: center; padding: var(--space-9) var(--space-5); }
.empty-state .icon-lg { width: 56px; height: 56px; color: var(--fg-faint); margin-inline: auto; margin-bottom: var(--space-4); }

/* ---- Checkout ---- */
.checkout-grid { display: grid; gap: var(--space-8); grid-template-columns: 1fr; }
@media (min-width: 960px) { .checkout-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.steps { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-7); flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: var(--space-2); font-size: 0.875rem; font-weight: 600; color: var(--fg-faint); }
.step .step-num { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-size: 0.8125rem; }
.step.active { color: var(--fg); }
.step.active .step-num { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.step.done .step-num { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.step-sep { width: 24px; height: 1px; background: var(--border-strong); }
.form-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.pay-option { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--border-strong); border-radius: var(--radius-md); cursor: pointer; transition: border-color var(--dur-base); }
.pay-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pay-option input { accent-color: var(--accent); width: 18px; height: 18px; }

/* ---- Quote / testimonial ---- */
.quote-section { text-align: center; }
.quote-mark { font-family: var(--font-head); font-size: 3rem; color: var(--accent); line-height: 1; }
.quote-text { font-family: var(--font-head); font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 500; max-width: 44ch; margin-inline: auto; letter-spacing: -0.01em; }

/* ---- Newsletter / CTA band ---- */
.cta-band {
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  background: radial-gradient(120% 140% at 100% 0%, rgba(34,197,94,0.16), transparent 60%), var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.newsletter-form { display: flex; gap: var(--space-3); max-width: 440px; margin: var(--space-5) auto 0; flex-wrap: wrap; }
.newsletter-form .input { flex: 1; min-width: 200px; }

/* ---- Page hero (interior pages) ---- */
.page-hero { padding-block: var(--space-8) var(--space-6); border-bottom: 1px solid var(--border); }

/* ---- Value/timeline (about) ---- */
.value-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 720px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }
.timeline { display: flex; flex-direction: column; gap: var(--space-6); position: relative; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 1px; background: var(--border-strong); }
.timeline-item { display: flex; gap: var(--space-5); position: relative; }
.timeline-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 1px solid var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; }
.timeline-dot .icon { width: 16px; height: 16px; color: var(--accent); }

/* ---- Contact ---- */
.contact-grid { display: grid; gap: var(--space-7); grid-template-columns: 1fr; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info-card { display: flex; gap: var(--space-4); padding: var(--space-5); align-items: flex-start; }
.contact-info-card .icon { color: var(--accent); }

/* ==========================================================================
   Accounts (nav icon, auth pages, account dashboard)
   ========================================================================== */

.account-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 0.8125rem;
  border: 1px solid rgba(34, 197, 94, 0.3);
  flex-shrink: 0;
}

.auth-wrap { max-width: 440px; margin-inline: auto; padding-block: 64px; }
.auth-card { padding: 40px 32px; }
.auth-switch { text-align: center; margin-top: 24px; font-size: 0.9375rem; color: var(--fg-muted); }
.auth-switch a { color: var(--accent); font-weight: 600; }
.auth-note {
  margin-top: 20px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.2);
  color: var(--warning); font-size: 0.8125rem; line-height: 1.5;
}
.auth-guest-link { text-align: center; margin-top: 16px; }

/* Account dashboard */
.account-layout { display: grid; gap: 32px; grid-template-columns: 220px 1fr; align-items: start; }
@media (max-width: 860px) { .account-layout { grid-template-columns: 1fr; } }
.account-sidebar { display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--nav-h) + 24px); }
@media (max-width: 860px) { .account-sidebar { position: static; flex-direction: row; overflow-x: auto; } }
.account-nav-item {
  padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9375rem;
  color: var(--fg-muted); display: flex; align-items: center; gap: 10px; white-space: nowrap;
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.account-nav-item:hover { background: var(--surface-hover); color: var(--fg); }
.account-nav-item.active { background: var(--accent-soft); color: var(--accent); }
.account-nav-item .icon { width: 18px; height: 18px; }
.account-nav-item.danger:hover { background: var(--danger-soft); color: var(--danger); }

.order-card { padding: 22px 24px; }
.order-card + .order-card { margin-top: 16px; }
.order-card-head {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px;
  padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border);
}
.order-status {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600;
}
.order-status.status-processing { background: rgba(251, 191, 36, 0.12); color: var(--warning); }
.order-status.status-shipped { background: var(--accent-soft); color: var(--accent); }
.order-status.status-delivered { background: rgba(96, 165, 250, 0.12); color: #60a5fa; }
.order-line { display: flex; gap: 14px; align-items: center; padding-block: 10px; }
.order-line-thumb { width: 52px; height: 52px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); flex-shrink: 0; }
.order-line-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.order-line-thumb svg { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Contact widget (floating message button, all pages)
   ========================================================================== */

.contact-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 500;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: var(--accent-contrast);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(34, 197, 94, 0.55);
  transition: transform var(--dur-base) var(--ease-spring);
}
.contact-fab:hover { transform: scale(1.08); }
.contact-fab:active { transform: scale(0.94); }
.contact-fab .icon { width: 22px; height: 22px; }
.contact-fab-dot {
  position: absolute; top: 2px; right: 2px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #22c55e; border: 2px solid var(--bg);
}

.contact-panel {
  position: fixed; right: 24px; bottom: 86px; z-index: 500;
  width: 320px;
  max-height: min(480px, calc(100vh - 130px));
  overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.55);
  padding: 20px;
  transform-origin: bottom right;
  transform: translateY(10px) scale(0.95); opacity: 0; visibility: hidden;
  transition: transform var(--dur-base) var(--ease-spring), opacity var(--dur-base) var(--ease-out), visibility 0s var(--dur-base);
}
.contact-panel.open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; transition-delay: 0s; }
.contact-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.contact-panel-close {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--fg-muted);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.contact-panel-close:hover { background: var(--surface-hover); color: var(--fg); }
@media (max-width: 420px) {
  .contact-panel { right: 12px; left: 12px; bottom: 82px; width: auto; }
  .contact-fab { right: 16px; bottom: 16px; }
}
