/* Lemonly — matte black · lemon yellow · green · white */
:root {
  color-scheme: dark;
  --bg: #0b0c0d;
  --bg-deep: #070808;
  --panel-a: #151719;
  --panel-b: #1a1c1f;
  --panel: linear-gradient(135deg, var(--panel-a), var(--panel-b));
  --well: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #e7e9ea;
  --text-hi: #ffffff;
  --muted: #a1a6ab;
  --dim: #6b7176;
  --ok: #22c55e;
  --ok-soft: rgba(34, 197, 94, 0.14);
  --ok-line: rgba(34, 197, 94, 0.32);
  --lemon: #facc15;
  --lemon-soft: rgba(250, 204, 21, 0.13);
  --lemon-line: rgba(250, 204, 21, 0.38);
  --sun: #facc15;
  --sun-soft: rgba(250, 204, 21, 0.13);
  --heat: #facc15;
  --heat-soft: rgba(250, 204, 21, 0.13);
  --link: #facc15;
  --blue: #22c55e;
  --bad: #f87171;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  --font: "Segoe UI", "Segoe UI Variable", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); }
body { padding-inline: 16px; min-height: 100vh; }
a { color: var(--link); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; }
.num { font-variant-numeric: tabular-nums; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(11, 12, 13, 0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); margin-inline: -16px; padding: 10px 16px; }
.top .wrap { display: flex; align-items: center; gap: 14px; }
.brand { font-weight: 700; letter-spacing: 0.01em; color: var(--text-hi); font-size: 21px; white-space: nowrap; cursor: pointer; text-decoration: none; }
.brand i { font-style: normal; color: var(--lemon); }
.search { flex: 1; min-width: 0; position: relative; }
.search input { width: 100%; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--well); }
.search input:focus { outline: none; border-color: var(--blue); }
.icon-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--well); cursor: pointer; white-space: nowrap; }
.icon-btn:hover { border-color: var(--ok-line); }
.badge-count { background: var(--ok); color: var(--bg); font-weight: 700; font-size: 11px; border-radius: 9px; padding: 0 6px; min-width: 18px; text-align: center; }
.nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 10px; }
.nav::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 5px 12px; border-radius: 14px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); background: transparent; cursor: pointer; transition: all .2s; }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.on { color: var(--text-hi); background: var(--ok-soft); border-color: var(--ok-line); }
.chip.sun.on { background: var(--lemon-soft); border-color: var(--lemon-line); }

/* hero — solar cameras */
.hero { margin-top: 18px; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; overflow: hidden; }
.hero-copy { padding: 28px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--sun); font-weight: 600; }
.hero h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.1; font-weight: 600; color: var(--text-hi); text-wrap: balance; }
.hero p { color: var(--muted); max-width: 48ch; }
.hero-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { background: var(--well); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.stat b { display: block; color: var(--text-hi); font-size: 18px; font-weight: 600; }
.stat span { font-size: 11px; color: var(--dim); }
.hero-media { position: relative; min-height: 280px; background: radial-gradient(120% 90% at 70% 20%, rgba(234,179,8,.18), transparent 55%), var(--bg-deep); display: grid; place-items: center; padding: 18px; }
.hero-media img { max-height: 300px; object-fit: contain; border-radius: 14px; background: #ffffff; box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06); }
.sunline { position: absolute; left: 18px; right: 18px; bottom: 14px; height: 38px; }
.eyebrow.lemon { color: var(--lemon); }

/* hero collage — top 3 trending products */
.collage { display: grid; place-items: stretch; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; padding: 16px; background: radial-gradient(120% 90% at 75% 15%, rgba(250,204,21,.16), transparent 55%), var(--bg-deep); }
.pick { position: relative; background: #ffffff; border-radius: 12px; overflow: hidden; display: grid; place-items: center; min-height: 120px; transition: transform .2s; }
.pick:hover { transform: translateY(-2px); }
.pick img { width: 80%; height: 80%; object-fit: contain; }
.pick.p0 { grid-row: 1 / 3; }
.pick-tag { position: absolute; left: 8px; bottom: 8px; background: rgba(15,20,25,.88); color: var(--text-hi); font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 8px; }

/* solar spotlight band */
.spot { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  background-image: radial-gradient(90% 120% at 0% 0%, rgba(234,179,8,.12), transparent 60%), linear-gradient(135deg, var(--panel-a), var(--panel-b)); }
.spot-copy { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.spot-copy h2 { font-size: 24px; font-weight: 600; color: var(--text-hi); text-wrap: balance; }
.spot-copy p { color: var(--muted); max-width: 44ch; }
.spot-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: none; cursor: pointer; font-weight: 600; }
.btn-go { background: var(--ok); color: #06200f; }
.btn-go:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--ok-line); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* trust bar */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.trust div { background: var(--well); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; color: var(--muted); }
.trust b { color: var(--text); display: block; font-size: 13px; font-weight: 600; }

/* sections */
.sec { margin-top: 28px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.sec-head h2 { font-size: 20px; font-weight: 500; color: var(--text-hi); text-wrap: balance; }
.sec-head small { color: var(--dim); font-size: 12px; }
.sub-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 230px); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.rail > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }

/* product card */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.card .ph { aspect-ratio: 1 / 1; background: #ffffff; display: grid; place-items: center; position: relative; }
.card .ph img { width: 82%; height: 82%; object-fit: contain; }
.ph-empty { color: #94a3b8; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.tags { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.tag { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 10px; letter-spacing: .04em; }
.tag.hot { background: var(--lemon); color: #1a1500; }
.tag.new { background: var(--ok); color: #05210f; }
.tag.solar { background: var(--sun); color: #1a1400; }
.card .body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .model { font-size: 11px; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }
.card .name { color: var(--text-hi); font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.price { color: var(--text-hi); font-weight: 700; font-size: 17px; }
.stars { color: var(--sun); font-size: 12px; letter-spacing: 1px; }
.stars span { color: var(--dim); letter-spacing: 0; margin-left: 4px; }
.add { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--ok-line); background: var(--ok-soft); color: var(--ok); font-size: 18px; cursor: pointer; }
.add:hover { background: var(--ok); color: var(--bg); }

/* product page */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.gallery { background: #ffffff; border-radius: var(--radius); aspect-ratio: 1/1; display: grid; place-items: center; overflow: hidden; }
.gallery img { width: 86%; height: 86%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumbs img { width: 64px; height: 64px; object-fit: contain; background: #ffffff; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.thumbs img.on { border-color: var(--ok); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.pdp h1 { font-size: 24px; font-weight: 500; color: var(--text-hi); line-height: 1.25; text-wrap: balance; margin: 4px 0 10px; }
.big-price { font-size: 30px; font-weight: 700; color: var(--text-hi); }
.fine { font-size: 12.5px; color: var(--dim); }
.feat { list-style: none; display: grid; gap: 6px; margin: 14px 0; }
.feat li { padding-left: 18px; position: relative; color: var(--text); font-size: 14px; }
.feat li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.qty { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.qty button { width: 36px; background: var(--well); border: none; cursor: pointer; }
.qty input { width: 44px; text-align: center; background: transparent; border: none; }
.specs { width: 100%; border-collapse: collapse; font-size: 13px; }
.specs td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs td:first-child { color: var(--dim); width: 34%; padding-right: 12px; }
.tabs { display: flex; gap: 6px; margin: 22px 0 12px; flex-wrap: wrap; }

/* reviews */
.rv-sum { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.rv-big { font-size: 40px; font-weight: 700; color: var(--text-hi); line-height: 1; }
.bars { display: grid; gap: 4px; min-width: 200px; flex: 1; max-width: 360px; }
.bar { display: grid; grid-template-columns: 26px 1fr 30px; gap: 8px; align-items: center; font-size: 12px; color: var(--dim); }
.bar i { height: 6px; background: var(--well); border-radius: 3px; overflow: hidden; display: block; }
.bar i b { display: block; height: 100%; background: var(--sun); }
.rv { border-top: 1px solid var(--line); padding: 12px 0; }
.rv h4 { color: var(--text-hi); font-weight: 600; font-size: 14px; }
.rv p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 12px; font-size: 12px; }
.pill.ok { background: var(--ok-soft); border: 1px solid var(--ok-line); color: var(--ok); }
.pill.sun { background: var(--sun-soft); border: 1px solid rgba(234,179,8,.35); color: var(--sun); }
.ext { display: grid; gap: 8px; }
.ext a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--well); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 14px; }
.ext a:hover { border-color: var(--line-2); }
.empty { color: var(--dim); font-size: 14px; padding: 14px; border: 1px dashed var(--line-2); border-radius: 10px; }

/* cart drawer */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); border-left: 1px solid var(--line); z-index: 41;
  display: flex; flex-direction: column; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.drawer h3 { color: var(--text-hi); font-weight: 500; font-size: 18px; display: flex; justify-content: space-between; align-items: center; }
.lines { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 10px; margin: 14px 0; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.line img, .line .noimg { width: 56px; height: 56px; object-fit: contain; background: #ffffff; border-radius: 8px; }
.line .n { font-size: 13px; color: var(--text-hi); line-height: 1.3; }
.line .x { background: none; border: none; color: var(--dim); cursor: pointer; font-size: 12px; }
.totals { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 18px; color: var(--text-hi); font-weight: 700; }
.freebar { height: 6px; background: var(--well); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.freebar b { display: block; height: 100%; background: var(--ok); }

/* checkout */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form .full { grid-column: 1 / -1; }
.form label { font-size: 12px; color: var(--muted); display: grid; gap: 4px; }
.form input, .form select, .form textarea { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--well); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); }
.err { color: var(--bad); font-size: 13px; min-height: 18px; }
.secure { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); background: var(--well); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.secure svg { flex: none; margin-top: 2px; }
.co { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: 18px; align-items: start; }

.foot { margin-top: 40px; padding: 24px 0 36px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.foot b { color: var(--muted); display: block; margin-bottom: 6px; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--panel-b); border: 1px solid var(--ok-line);
  color: var(--text-hi); padding: 10px 16px; border-radius: 10px; z-index: 60; box-shadow: var(--shadow); font-size: 14px; }
.crumb { margin-top: 16px; font-size: 13px; color: var(--dim); display: flex; gap: 6px; flex-wrap: wrap; }
.crumb a { color: var(--muted); cursor: pointer; }

@media (max-width: 860px) {
  .hero, .pdp, .co, .spot { grid-template-columns: 1fr; }
  .collage { min-height: 260px; }
  .hero-media { min-height: 220px; order: -1; }
  .trust { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .brand { font-size: 18px; }
  .top .wrap { flex-wrap: wrap; row-gap: 8px; }
  .top .brand { flex: 1; }
  .brand .wm { font-size: 19px; }
  .top .search { order: 3; flex-basis: 100%; }
  .seg a { font-size: 13px; }
  .icon-btn .lbl { display: none; }
  .form { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card .name { font-size: 13px; }
  .hero-copy { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── wordmark: Lemonly.co.za with a lemon for the "o" ───────── */
.wm { display: inline-flex; align-items: baseline; font-weight: 800; letter-spacing: -0.01em; color: var(--text-hi); white-space: nowrap; line-height: 1; }
.wm-tld { display: inline-flex; align-items: baseline; color: var(--muted); font-weight: 600; }
.wm-lemon { width: 0.98em; height: 0.74em; margin: 0 0.02em 0 0.01em; overflow: visible; transform: translateY(0.07em); }
.wm-lemon .l { fill: none; stroke: var(--lemon); stroke-width: 2.3; stroke-linejoin: round; }
.wm-lemon .leaf { fill: var(--ok); }
.brand .wm { font-size: 22px; }

/* ── account button ─────────────────────────────────────────── */
.acct-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--lemon); color: #111; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; text-transform: uppercase; }

/* ── auth pages: globe + card ───────────────────────────────── */
.auth { position: relative; margin: 18px 0 0; min-height: min(760px, calc(100vh - 150px)); border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(80% 70% at 35% 50%, #131416 0%, #080909 70%); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr minmax(320px, 420px); align-items: center; }
.auth canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.auth canvas:active { cursor: grabbing; }
.auth-legend { position: absolute; left: 20px; bottom: 16px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--dim); pointer-events: none; }
.auth-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.auth-card { position: relative; grid-column: 2; margin: 24px; padding: 26px; border-radius: 16px; background: rgba(16, 17, 19, 0.82); backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); display: grid; gap: 14px; }
.auth-card .wm { font-size: 28px; }
.auth-card h1 { font-size: 20px; font-weight: 600; color: var(--text-hi); }
.auth-card p.sub { color: var(--muted); font-size: 14px; margin-top: -6px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--well); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg a { text-align: center; padding: 8px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 14px; }
.seg a.on { background: var(--lemon); color: #111; }
.field { display: grid; gap: 5px; }
.field label { font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; }
.field label a { color: var(--lemon); font-size: 12.5px; }
.field input { width: 100%; padding: 11px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); }
.field input:focus { outline: none; border-color: var(--lemon); box-shadow: 0 0 0 3px var(--lemon-soft); }
.pw { position: relative; }
.pw input { padding-right: 46px; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: none; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.eye:hover, .eye[aria-pressed="true"] { color: var(--lemon); }
.rules { list-style: none; display: grid; gap: 3px; font-size: 12.5px; color: var(--dim); }
.rules li::before { content: "○"; margin-right: 6px; }
.rules li.ok { color: var(--ok); }
.rules li.ok::before { content: "●"; }
.btn-lemon { background: var(--lemon); color: #111; }
.btn-lemon:hover { filter: brightness(1.06); }
.auth-card .btn { width: 100%; padding: 12px; }
.auth-card .fine a { color: var(--lemon); }
.note-ok { color: var(--ok); font-size: 14px; }

/* account page */
.acct { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 18px; align-items: start; }
.order { border-top: 1px solid var(--line); padding: 12px 0; display: grid; gap: 6px; }
.order:first-of-type { border-top: none; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: 300px auto; min-height: 0; }
  .auth canvas { height: 300px; bottom: auto; }
  .auth-card { grid-column: 1; grid-row: 2; margin: 0 12px 16px; }
  .auth-legend { top: 268px; bottom: auto; left: 14px; }
  .acct { grid-template-columns: 1fr; }
}
