/* ============================================================
   QUICKPAPA — Earbuds Ecommerce Design System
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --bg: #0a0a12;
  --bg-soft: #12121f;
  --surface: #1a1a2e;
  --surface-2: #22223a;
  --surface-3: #2c2c47;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f5f5fa;
  --text-muted: #a8a8c0;
  --text-dim: #71718a;

  --accent: #7c5cff;
  --accent-2: #00d4ff;
  --accent-3: #ff4d8d;
  --gradient: linear-gradient(135deg, #7c5cff 0%, #00d4ff 100%);
  --gradient-warm: linear-gradient(135deg, #ff4d8d 0%, #7c5cff 100%);
  --gradient-text: linear-gradient(120deg, #b9a6ff, #00d4ff);

  --success: #2ecc71;
  --danger: #ff5470;
  --warning: #ffb347;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 60px rgba(124, 92, 255, 0.35);

  --container: 1200px;
  --header-h: 72px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.hide { display: none !important; }
.stack { display: flex; flex-direction: column; }
.gap-sm { gap: 8px; } .gap { gap: 16px; } .gap-lg { gap: 28px; }
.row { display: flex; }

/* ---------- Ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient::before, .ambient::after {
  content: ""; position: absolute; width: 60vw; height: 60vw; border-radius: 50%;
  filter: blur(120px); opacity: 0.4;
}
.ambient::before { background: #7c5cff; top: -20vw; left: -15vw; }
.ambient::after { background: #00d4ff; bottom: -25vw; right: -15vw; opacity: 0.25; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--gradient); color: #0a0a12; box-shadow: 0 8px 30px rgba(124, 92, 255, 0.4); }
.btn-primary:hover { box-shadow: 0 12px 40px rgba(124, 92, 255, 0.6); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--border-strong); }
.btn-light { background: #fff; color: #0a0a12; }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 36px; font-size: 1.05rem; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(10, 10, 18, 0.7); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.header .container { display: flex; align-items: center; height: 100%; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--gradient);
  display: grid; place-items: center; color: #0a0a12; font-weight: 800; font-size: 1rem;
  box-shadow: 0 4px 18px rgba(124, 92, 255, 0.5);
}
.nav { display: flex; gap: 28px; margin-left: 12px; }
.nav a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; position: relative; padding: 4px 0; transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gradient); border-radius: 2px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid var(--border); display: grid; place-items: center; position: relative; transition: background .2s, border-color .2s; }
.icon-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--border-strong); }
.icon-btn svg { width: 20px; height: 20px; stroke: var(--text); }
.cart-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent-3); color: #fff; font-size: 0.7rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.cart-badge.empty { display: none; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 100px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(124,92,255,0.12); border: 1px solid rgba(124,92,255,0.3); color: #c9b8ff; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 22px 0; }
.hero h1 .grad { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; }
.hero-stat .label { font-size: 0.85rem; color: var(--text-dim); }

/* Product visual stage */
.product-stage { position: relative; display: grid; place-items: center; min-height: 460px; }
.stage-glow { position: absolute; inset: 10%; border-radius: 50%; background: var(--gradient); filter: blur(80px); opacity: 0.4; z-index: 0; }
.earbuds-svg { position: relative; z-index: 1; width: 80%; max-width: 360px; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.6)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-18px)} }
.price-tag { position: absolute; z-index: 2; bottom: 8%; right: 4%; background: rgba(20,20,32,0.85); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 14px 20px; backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.price-tag .now { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; }
.price-tag .was { color: var(--text-dim); text-decoration: line-through; font-size: 0.95rem; margin-left: 8px; }
.price-tag .save { display: block; font-size: 0.78rem; color: var(--success); font-weight: 600; margin-top: 2px; }

/* ---------- Section heading ---------- */
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; }
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; transition: transform .2s, border-color .2s, background .2s; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.feature-icon { width: 54px; height: 54px; border-radius: 16px; background: rgba(124,92,255,0.14); display: grid; place-items: center; margin-bottom: 20px; }
.feature-icon svg { width: 28px; height: 28px; stroke: var(--accent); }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Product cards (catalog) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.product-thumb { position: relative; aspect-ratio: 1/1; background: linear-gradient(160deg, var(--surface-2), var(--surface)); display: grid; place-items: center; overflow: hidden; }
.product-thumb svg { width: 62%; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5)); transition: transform .3s; }
.product-card:hover .product-thumb svg { transform: scale(1.08) rotate(-2deg); }
.badge-flag { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.badge-flag.sale { background: var(--accent-3); color: #fff; }
.badge-flag.new { background: var(--accent-2); color: #0a0a12; }
.badge-flag.hot { background: var(--warning); color: #0a0a12; }
.product-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body .cat { font-size: 0.74rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.product-body h3 { font-size: 1.15rem; }
.product-body .desc { color: var(--text-muted); font-size: 0.88rem; flex: 1; }
.rating { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-muted); }
.stars { color: var(--warning); letter-spacing: 1px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.price .was { font-size: 0.95rem; color: var(--text-dim); text-decoration: line-through; font-weight: 400; margin-left: 6px; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 24px); }
.gallery-main { aspect-ratio: 1/1; background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: var(--radius-xl); display: grid; place-items: center; position: relative; overflow: hidden; }
.gallery-main svg { width: 66%; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.5)); transition: opacity .25s; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 16px; }
.thumb { aspect-ratio: 1/1; flex: 1; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--border); display: grid; place-items: center; cursor: pointer; transition: border-color .2s; }
.thumb.active { border-color: var(--accent); }
.thumb svg { width: 56%; opacity: 0.85; }
.pdp-info h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 10px 0 12px; }
.pdp-info .sub { color: var(--text-muted); margin-bottom: 18px; }
.price-block { display: flex; align-items: baseline; gap: 14px; margin: 20px 0; }
.price-block .now { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; }
.price-block .was { color: var(--text-dim); text-decoration: line-through; font-size: 1.2rem; }
.price-block .save { background: rgba(46,204,113,0.15); color: var(--success); padding: 4px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; }
.divider { height: 1px; background: var(--border); margin: 26px 0; }
.option-label { font-size: 0.82rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.color-swatches { display: flex; gap: 12px; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; position: relative; transition: transform .15s, border-color .15s; }
.swatch:hover { transform: scale(1.08); }
.swatch.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,0.3); }
.qty-row { display: flex; align-items: center; gap: 20px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--surface); }
.qty button { width: 42px; height: 42px; font-size: 1.2rem; color: var(--text); display: grid; place-items: center; transition: background .15s; }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 48px; height: 42px; text-align: center; background: transparent; border: none; color: var(--text); font-weight: 600; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.pdp-actions .btn { flex: 1; }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.spec-item { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.spec-item .k { color: var(--text-dim); }
.spec-item .v { color: var(--text); font-weight: 500; text-align: right; }

/* ---------- Tabs ---------- */
.tabs { margin-top: 64px; }
.tab-nav { display: flex; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 32px; overflow-x: auto; }
.tab-btn { padding: 14px 22px; color: var(--text-muted); font-weight: 600; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; white-space: nowrap; }
.tab-btn.active { color: var(--text); border-color: var(--accent); }
.tab-panel { display: none; animation: fadeIn .3s; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tab-panel p { color: var(--text-muted); margin-bottom: 14px; }
.tab-panel ul.bullets li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--text-muted); }
.tab-panel ul.bullets li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }
.review { padding: 20px 0; border-bottom: 1px solid var(--border); }
.review .who { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gradient); display: grid; place-items: center; color: #0a0a12; font-weight: 700; }
.review .name { font-weight: 600; }
.review .date { font-size: 0.8rem; color: var(--text-dim); }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: 32px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; align-items: center; }
.cart-item .thumb { width: 90px; height: 90px; border-radius: var(--radius); background: linear-gradient(160deg, var(--surface-2), var(--surface)); display: grid; place-items: center; }
.cart-item .thumb svg { width: 76%; }
.cart-item .meta h4 { font-size: 1.05rem; margin-bottom: 4px; }
.cart-item .meta .variant { font-size: 0.85rem; color: var(--text-dim); }
.cart-item .meta .price-each { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.cart-item .right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item .line-total { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.remove-btn { color: var(--text-dim); font-size: 0.8rem; display: inline-flex; align-items: center; gap: 5px; transition: color .15s; }
.remove-btn:hover { color: var(--danger); }

.summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; position: sticky; top: calc(var(--header-h) + 24px); }
.summary-card h3 { font-size: 1.2rem; margin-bottom: 22px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; color: var(--text-muted); font-size: 0.95rem; }
.summary-row.total { color: var(--text); font-weight: 700; font-size: 1.2rem; border-top: 1px solid var(--border); margin-top: 10px; padding-top: 18px; }
.summary-row .amount { color: var(--text); font-family: var(--font-display); }
.summary-row.total .amount { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.promo { display: flex; gap: 8px; margin: 18px 0; }
.promo input { flex: 1; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); }
.promo input:focus { outline: none; border-color: var(--accent); }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 80px 24px; max-width: 520px; margin: 0 auto; }
.empty svg { width: 80px; height: 80px; stroke: var(--text-dim); margin: 0 auto 24px; opacity: 0.6; }
.empty h3 { font-size: 1.6rem; margin-bottom: 10px; }
.empty p { color: var(--text-muted); margin-bottom: 26px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.field input, .field textarea, .field select {
  padding: 13px 16px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); transition: border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.field .err { color: var(--danger); font-size: 0.78rem; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .err { display: block; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 0.85fr; gap: 32px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px; }
.panel h3 { font-size: 1.2rem; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; }
.panel h3 .step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--gradient); color: #0a0a12; font-size: 0.85rem; display: grid; place-items: center; }
.panel .sub { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 20px; }
.pay-options { display: flex; flex-direction: column; gap: 12px; }
.pay-option { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; }
.pay-option:hover { border-color: var(--border-strong); }
.pay-option.active { border-color: var(--accent); background: rgba(124,92,255,0.07); }
.pay-option input { accent-color: var(--accent); }
.pay-option .name { font-weight: 600; }
.pay-option .desc { font-size: 0.82rem; color: var(--text-dim); }
.order-items { display: flex; flex-direction: column; gap: 14px; }
.order-line { display: flex; gap: 12px; align-items: center; }
.order-line .thumb { width: 52px; height: 52px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; }
.order-line .thumb svg { width: 70%; }
.order-line .info { flex: 1; font-size: 0.88rem; }
.order-line .info .qty-x { color: var(--text-dim); }
.order-line .amt { font-weight: 600; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 14px 20px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); animation: slideIn .25s ease; min-width: 260px; }
.toast .check { width: 22px; height: 22px; border-radius: 50%; background: var(--success); display: grid; place-items: center; color: #0a0a12; font-weight: 800; flex-shrink: 0; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.out { animation: slideOut .25s ease forwards; }
@keyframes slideOut { to { transform: translateX(40px); opacity: 0; } }

/* ---------- Misc sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .visual { aspect-ratio: 4/3; border-radius: var(--radius-xl); background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); display: grid; place-items: center; position: relative; overflow: hidden; }
.split .visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(124,92,255,0.25), transparent 60%); }
.split .visual svg { width: 60%; position: relative; z-index: 1; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 16px; color: var(--text-muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(46,204,113,0.15); color: var(--success); display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; }
.check-list li strong { color: var(--text); }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.testimonial .stars { font-size: 1.1rem; margin-bottom: 14px; }
.testimonial p { color: var(--text-muted); margin-bottom: 18px; font-style: italic; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .who .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient-warm); display: grid; place-items: center; color: #fff; font-weight: 700; }
.testimonial .who .name { font-weight: 600; }
.testimonial .who .meta { font-size: 0.8rem; color: var(--text-dim); }

/* CTA banner */
.cta-banner { background: var(--gradient); border-radius: var(--radius-xl); padding: 64px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.2), transparent 50%); }
.cta-banner h2 { color: #0a0a12; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; position: relative; }
.cta-banner p { color: rgba(10,10,18,0.7); font-size: 1.1rem; margin-bottom: 26px; position: relative; }
.cta-banner .btn-light { position: relative; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 32px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-muted); margin: 16px 0; max-width: 320px; font-size: 0.92rem; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; transition: background .2s, transform .15s; }
.socials a:hover { background: var(--surface-2); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); margin-bottom: 10px; font-size: 0.92rem; transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; color: var(--text-dim); font-size: 0.85rem; flex-wrap: wrap; gap: 12px; }
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input { flex: 1; padding: 11px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text); min-width: 0; }
.newsletter input:focus { outline: none; border-color: var(--accent); }

/* ---------- Page header (subpages) ---------- */
.page-hero { padding: 60px 0 30px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 620px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--text-dim); font-size: 0.85rem; margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--text-muted); }

/* Success page */
.success-card { max-width: 560px; margin: 0 auto; text-align: center; padding: 40px; }
.success-icon { width: 84px; height: 84px; border-radius: 50%; background: rgba(46,204,113,0.15); display: grid; place-items: center; margin: 0 auto 24px; }
.success-icon svg { width: 44px; height: 44px; stroke: var(--success); }
.order-receipt { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin: 28px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .pdp, .cart-layout, .checkout-layout { grid-template-columns: 1fr; gap: 40px; }
  .gallery { position: static; }
  .summary-card { position: static; }
  .feature-grid, .product-grid, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .spec-list { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--bg-soft); border-bottom: 1px solid var(--border); flex-direction: column; padding: 18px 24px; gap: 6px; }
  .nav.open { display: flex; }
  .nav.open a { padding: 12px 0; }
  .menu-toggle { display: grid; }
}
@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .feature-grid, .product-grid, .testimonials, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item .right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .hero-stats { gap: 24px; }
  .container { padding: 0 18px; }
  .cta-banner { padding: 40px 24px; }
}
/* ---------- Real product photos (graceful SVG fallback when no image) ----------
   When a card/visual holds an <img.product-photo>, switch to a light backdrop so
   white-background product shots blend cleanly; SVG-only slots keep the dark
   gradient. :has() degrades gracefully (unsupported = dark bg, still fine). */
.product-thumb:has(.product-photo),
.gallery-main:has(.product-photo),
.thumb:has(.product-photo),
.cart-item .thumb:has(.product-photo),
.order-line .thumb:has(.product-photo),
.split .visual:has(.product-photo) { background: #f4f5f7; }

.product-thumb .product-photo,
.gallery-main .product-photo,
.thumb .product-photo,
.cart-item .thumb .product-photo,
.order-line .thumb .product-photo,
.split .visual .product-photo {
  width: 100%; height: 100%; object-fit: contain; box-sizing: border-box;
}
.product-thumb .product-photo,
.cart-item .thumb .product-photo,
.order-line .thumb .product-photo { padding: 10%; }
.gallery-main .product-photo,
.thumb .product-photo { padding: 8%; }
.split .visual .product-photo { padding: 6%; position: relative; z-index: 1; }

/* Hero stage: keep the photo's natural aspect, no letterboxing against the hero */
.earbuds-svg .product-photo { width: 100%; height: auto; object-fit: contain; }

/* gentle hover lift on photo cards (mirrors the SVG hover) */
.product-card:hover .product-thumb .product-photo { transform: scale(1.04); transition: transform .3s; }
