/* JakeMakes storefront - fresh dark theme. Tokens mirror brand.config.js (keep in sync; later: per-store theme).
   Accent is a single variable - swap --accent to re-tone the whole site. */
:root {
  --bg: #0b0b0d;
  --surface: #15151a;
  --surface-2: #1d1d25;
  --fg: #f4f4f6;
  --muted: #9a9aa6;
  --accent: #2dd4bf;          /* teal - fresh/maker. Swap to retone everything. */
  --accent-2: #22d3ee;        /* cyan - for gradients/glows */
  --accent-fg: #052b25;       /* text on accent */
  --line: #26262e;
  --radius: 14px;
  --maxw: 1140px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: 'Space Grotesk', var(--font);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--fg); background: var(--bg); line-height: 1.55;
  background-image: radial-gradient(900px 500px at 80% -10%, rgba(45,212,191,.10), transparent 60%); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.01em; line-height: 1.15; }
.muted { color: var(--muted); }
.error { color: #fca5a5; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line);
  background: rgba(11,11,13,.72); backdrop-filter: saturate(140%) blur(10px); }
.header-inner { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 26px; letter-spacing: .14em; color: var(--fg); display: inline-flex; }
.logo span { color: var(--accent); }
.logo img { height: 44px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.nav a { margin-left: 24px; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; transition: color .15s; }
.nav a:hover { color: var(--fg); }
.cart-link { position: relative; }
.cart-badge { background: var(--accent); color: var(--accent-fg); border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; margin-left: 5px; }

/* buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 999px;
  padding: 12px 22px; font-size: 15px; font-weight: 700; cursor: pointer; transition: transform .12s, box-shadow .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 8px 26px rgba(45,212,191,.28); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }
.btn-secondary { background: transparent; color: var(--fg); border: 1px solid var(--line); box-shadow: none; }
.btn-secondary:hover { border-color: var(--accent); box-shadow: none; }

/* hero */
.hero { text-align: center; padding: 64px 0 36px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); margin: 0 0 14px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto 24px; }

/* grid */
.section-title { font-size: 22px; margin: 8px 0 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; padding: 22px 0 8px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface);
  transition: transform .15s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: rgba(45,212,191,.5); box-shadow: 0 12px 34px rgba(0,0,0,.5); }
.card-img { aspect-ratio: 1/1; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.card-body { padding: 14px 16px; }
.card-title { font-weight: 600; font-family: var(--font-head); }
.badge { display: inline-block; margin-top: 8px; font-size: 11px; color: var(--accent); border: 1px solid rgba(45,212,191,.4);
  border-radius: 999px; padding: 2px 9px; text-transform: uppercase; letter-spacing: .08em; }

/* product */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; padding: 34px 0; }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; gap: 26px; } }
.product-media img { border-radius: var(--radius); border: 1px solid var(--line); }
.product h1 { margin: 0 0 6px; font-size: 30px; }
.price { font-size: 24px; font-weight: 700; font-family: var(--font-head); color: var(--accent); margin: 10px 0 20px; }
.opt { margin: 14px 0; }
.opt label, .field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.opt select, input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px;
  font-family: inherit; background: var(--surface); color: var(--fg); }
.opt select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent); }
.opt select option { background: var(--surface); color: var(--fg); }
.designer { border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; margin: 18px 0; background: var(--surface); }
.designer .spec { font-size: 13px; color: var(--muted); }
.mockups { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.mockups img { width: 120px; border: 1px solid var(--line); border-radius: 10px; }

/* cart / checkout */
.cart-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.cart-row .grow { flex: 1; }
.totals { margin: 18px 0; }
.totals .row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.totals .total { font-weight: 700; font-size: 18px; font-family: var(--font-head); color: var(--fg); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.field { margin: 12px 0; }
.radio-row { display: flex; gap: 18px; }
.checkout-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .checkout-cols { grid-template-columns: 1fr; } }
h1 { font-size: 30px; }

footer.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 32px 0; color: var(--muted); font-size: 14px; }
footer.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
