:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f4f1ea;
  --ink: #14161c;
  --ink-2: #3c414d;
  --ink-3: #6b7280;
  --line: #e7e2d8;
  --line-2: #d8d2c5;
  --brand: #c0492b;
  --brand-2: #e4724a;
  --brand-ink: #8f3219;
  --gold: #b0862f;
  --ok: #1f7a4d;
  --ok-2: #e5f3ec;
  --warn: #b45309;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 28, .06), 0 2px 8px rgba(20, 22, 28, .05);
  --shadow: 0 6px 24px rgba(20, 22, 28, .09);
  --shadow-lg: 0 18px 50px rgba(20, 22, 28, .16);
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --max: 1320px;
}

* { box-sizing: border-box; }
html, body, #root { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
input, select, textarea { font-family: inherit; font-size: 15px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.16; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; width: 100%; }
.serif { font-family: var(--serif); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 650; font-size: 14.5px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s;
  white-space: nowrap; border: 1px solid transparent;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(192, 73, 43, .28); }
.btn-primary:hover { background: var(--brand-ink); box-shadow: 0 8px 26px rgba(192, 73, 43, .36); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.btn-soft { background: var(--surface-2); color: var(--ink); }
.btn-soft:hover { background: #ece7dc; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: all .15s; cursor: pointer;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 750; letter-spacing: .02em; text-transform: uppercase;
}
.badge-deal { background: var(--brand); color: #fff; }
.badge-new { background: var(--ink); color: #fff; }
.badge-soft { background: var(--surface-2); color: var(--ink-2); }
.badge-ok { background: var(--ok-2); color: var(--ok); }
.badge-gold { background: #f7efd8; color: var(--gold); }

/* ---------- Header ---------- */
.hdr { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 60; }
.hdr-top { display: flex; align-items: center; gap: 18px; padding: 14px 0; }
.hdr-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.hdr-brand .dot { color: var(--brand-2); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand-2), var(--brand)); color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.brand-logo { display:block; width:176px; height:42px; object-fit:contain; object-position:left center; filter:brightness(0) saturate(100%) invert(48%) sepia(92%) saturate(1580%) hue-rotate(342deg) brightness(102%) contrast(94%); }
.hdr-search { flex: 1; position: relative; }
.hdr-search input {
  width: 100%; padding: 12px 16px 12px 44px; border-radius: 999px; border: 2px solid transparent;
  background: #fff; color: var(--ink); outline: none; transition: box-shadow .2s, border-color .2s;
}
.hdr-search input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(228, 114, 74, .22); }
.hdr-search .si { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search-panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line);
  z-index: 80; animation: pop .16s ease;
}
.search-panel .row { display: flex; gap: 12px; align-items: center; padding: 10px 14px; cursor: pointer; }
.search-panel .row:hover { background: var(--surface-2); }
.search-panel .row img { width: 34px; border-radius: 6px; }
.search-panel .tag { font-size: 12px; color: var(--ink-3); padding: 8px 14px 2px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.hdr-actions { display: flex; align-items: center; gap: 6px; }
.hdr-act {
  display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 10px; transition: background .15s;
  color: #fff; position: relative;
}
.hdr-act:hover { background: rgba(255,255,255,.1); }
.hdr-act small { display: block; font-size: 11px; opacity: .72; line-height: 1.1; }
.hdr-act strong { display: block; font-size: 13.5px; font-weight: 700; }
.cart-count {
  position: absolute; top: 2px; right: 4px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800;
  min-width: 19px; height: 19px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px;
  box-shadow: 0 0 0 2px var(--ink);
}
.drawer-backdrop { position: fixed; inset: 0; background: rgba(10,11,15,.5); z-index: 90; animation: fade .2s; }

.hdr-sub { background: #1d2029; border-top: 1px solid rgba(255,255,255,.07); }
.hdr-sub .wrap { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.hdr-sub .wrap::-webkit-scrollbar { display: none; }
.hdr-sub a { padding: 7px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.82); white-space: nowrap; transition: .15s; }
.hdr-sub a:hover { background: rgba(255,255,255,.1); color: #fff; }
.hdr-sub a.hot { color: #ffb892; }

.mobile-only { display: none; }

/* ---------- Product card ---------- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 20px; }
.pcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  position: relative;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.pcard .thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--surface-2); }
.pcard .thumb .badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; align-items: flex-start; }
.pcard .body { padding: 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pcard .brand { font-size: 11.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pcard .name { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.pcard .price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.pcard .now { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.pcard .was { font-size: 13px; color: var(--ink-3); text-decoration: line-through; }
.pcard .off { font-size: 12px; font-weight: 750; color: var(--brand); }
.pcard .meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.stars { color: #d99a1f; letter-spacing: 1px; }
.pcard .foot { display: flex; gap: 8px; margin-top: 10px; }

.wish-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.92); backdrop-filter: blur(4px); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; color: var(--ink-2); transition: .18s;
}
.wish-btn:hover { transform: scale(1.08); }
.wish-btn.on { color: var(--brand); }

/* ---------- Product image ---------- */
.pimg { position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; }
.pimg .emoji { font-size: clamp(40px, 34%, 88px); filter: drop-shadow(0 10px 18px rgba(0,0,0,.28)); z-index: 2; transition: transform .4s cubic-bezier(.2,.8,.3,1); }
.pcard:hover .pimg .emoji { transform: scale(1.12) rotate(-4deg); }
.pimg .glow { position: absolute; inset: 0; background: radial-gradient(120% 90% at 30% 15%, rgba(255,255,255,.55), transparent 55%); }
.pimg .brandtag { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 10.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .55; z-index: 3; }
.pimg .mesh { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 26px 26px; }

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-head h2 { font-size: clamp(20px, 2.4vw, 27px); }
.sec-head .eyebrow { font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.sec-head .more { font-size: 14px; font-weight: 650; color: var(--brand); }
.sec-head .more:hover { text-decoration: underline; }

.rail { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.rail > * { scroll-snap-align: start; flex: 0 0 240px; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }

/* ---------- Hero ---------- */
.hero { padding: 26px 0 10px; }
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; }
.hero-main {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 380px;
  background: linear-gradient(135deg, #1a1d26 0%, #2a1e1a 58%, #4a2318 100%); color: #fff; display: flex; flex-direction: column;
  justify-content: center; padding: clamp(28px, 4vw, 56px); isolation: isolate;
}
.hero-main::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(228,114,74,.5), transparent 65%); z-index: -1; }
.hero-main::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 22px 22px; opacity: .5; }
.hero-main .kicker { font-size: 13px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: #ffb892; margin-bottom: 16px; }
.hero-main h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 58px); line-height: 1.03; letter-spacing: -.02em; max-width: 15ch; }
.hero-main p { margin-top: 16px; max-width: 46ch; color: rgba(255,255,255,.82); font-size: 16px; }
.hero-main .cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.hero-card { border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.hero-card h3 { font-size: 21px; }
.hero-card p { font-size: 13.5px; opacity: .82; margin-top: 6px; }
.hero-card .go { font-size: 13.5px; font-weight: 700; margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; }
.hero-a { background: linear-gradient(135deg, #e9f1ff, #d3e2ff); color: #12224a; }
.hero-b { background: linear-gradient(135deg, #ffe9df, #ffd6c2); color: #5c2312; }

.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.usp .u { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: center; }
.usp .u .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center; flex: none; color: var(--brand); }
.usp .u strong { font-size: 14px; display: block; }
.usp .u span { font-size: 12.5px; color: var(--ink-3); }

/* category tiles */
.cats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.cat-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; transition: .18s;
}
.cat-tile:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.cat-tile .ic { font-size: 26px; }
.cat-tile span { font-size: 12.5px; font-weight: 650; line-height: 1.25; }

/* deals strip */
.deal-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- Layout / product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding: 28px 0; }
.gallery .main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); aspect-ratio: 1/1; overflow: hidden; position: relative; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery .thumbs button { width: 74px; height: 74px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.gallery .thumbs button.active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }

.pdp h1 { font-size: clamp(22px, 2.6vw, 31px); margin: 8px 0 6px; }
.pdp .pricebox { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 18px 0 6px; }
.pdp .pricebox .now { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.pdp .pricebox .was { font-size: 17px; color: var(--ink-3); text-decoration: line-through; }
.spec { display: grid; gap: 10px; margin: 18px 0; }
.spec .li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.spec .li .d { color: var(--brand); margin-top: 2px; }
.buybox { position: sticky; top: 132px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.buybox .row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 13.5px; border-bottom: 1px dashed var(--line); }
.buybox .row:last-of-type { border-bottom: none; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.qty button { width: 38px; height: 38px; font-size: 18px; color: var(--ink-2); }
.qty button:hover { background: var(--surface-2); }
.qty span { min-width: 40px; text-align: center; font-weight: 700; }

.reviews { display: grid; gap: 14px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.rbar { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.rbar .track { flex: 1; height: 7px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.rbar .fill { height: 100%; background: #d99a1f; }

/* ---------- Tables / lists ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--surface-2); }

/* ---------- Credit cards ---------- */
.ccard {
  position: relative; border-radius: 18px; padding: 20px; color: #fff; overflow: hidden;
  aspect-ratio: 1.6/1; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; min-height: 168px;
}
.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ccard.black { background: linear-gradient(135deg, #0c0d11, #23252e 60%, #0c0d11); }
.ccard.platinum { background: linear-gradient(135deg, #6d7278, #c3c8cd 50%, #8a9096); color: #14161c; }
.ccard.graphite { background: linear-gradient(135deg, #1b1f27, #3a424f 50%, #12151b); }
.ccard.navy { background: linear-gradient(135deg, #0f1c3a, #23386b 55%, #0d1830); }
.ccard.steel { background: linear-gradient(135deg, #3a3f46, #6e767f 50%, #33383f); }
.ccard::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 80% 10%, rgba(255,255,255,.28), transparent 55%); }
.ccard .cc-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 2; }
.ccard .cc-type { font-size: 13px; font-weight: 750; letter-spacing: .01em; }
.ccard .cc-chip { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #d9b45f, #f0d68f 50%, #b8913c); opacity: .9; }
.ccard .cc-num { font-size: 19px; letter-spacing: .16em; font-weight: 600; position: relative; z-index: 2; font-variant-numeric: tabular-nums; }
.ccard .cc-bot { display: flex; justify-content: space-between; align-items: flex-end; font-size: 12px; position: relative; z-index: 2; }
.ccard .cc-bot small { display: block; opacity: .7; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; }
.ccard .cc-net { font-weight: 800; font-style: italic; font-size: 15px; letter-spacing: -.01em; }
.card-select { border: 2px solid var(--line); border-radius: 20px; padding: 8px; cursor: pointer; transition: .18s; background: var(--surface); }
.card-select:hover { border-color: var(--line-2); }
.card-select.on { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(192,73,43,.12); }
.card-select .foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 4px; gap: 10px; }

/* ---------- Steps / progress ---------- */
.steps { display: flex; align-items: center; }
.steps .st { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.steps .st .bubble { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); font-weight: 700; z-index: 2; border: 2px solid var(--line); }
.steps .st::before { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 1; }
.steps .st:first-child::before { display: none; }
.steps .st.done .bubble { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps .st.done::before { background: var(--ok); }
.steps .st.active .bubble { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 5px rgba(192,73,43,.16); }
.steps .st.done, .steps .st.active { color: var(--ink); font-weight: 650; }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding: 26px 0 60px; }
.co-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 18px; }
.co-step .hd { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.co-step .hd .n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.co-step .hd h3 { font-size: 17px; }
.pick { display: flex; gap: 14px; align-items: flex-start; padding: 15px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: .16s; margin-bottom: 10px; }
.pick:hover { border-color: var(--line-2); }
.pick.on { border-color: var(--brand); background: #fdf6f3; }
.pick .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; margin-top: 2px; display: grid; place-items: center; }
.pick.on .radio { border-color: var(--brand); }
.pick.on .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.summary-side { position: sticky; top: 132px; }

.toast-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink); color: #fff; border-radius: 14px; padding: 13px 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-lg); min-width: 280px; animation: slideIn .28s cubic-bezier(.2,.9,.3,1); }
.toast .tic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.toast.ok .tic { background: var(--ok); }
.toast.warn .tic { background: var(--warn); }
.toast strong { font-size: 14px; display: block; }
.toast small { opacity: .7; font-size: 12.5px; }

/* ---------- Sim reveal ---------- */
.sim-reveal {
  border-radius: var(--radius-lg); padding: 30px; text-align: center;
  background: linear-gradient(135deg, #101218, #1e2129); color: #fff; position: relative; overflow: hidden;
}
.sim-reveal::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 0%, rgba(192,73,43,.4), transparent 70%); }
.sim-reveal .zero { font-size: clamp(46px, 9vw, 82px); font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.sim-reveal .lbl { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: #ffb892; font-weight: 750; }
.counter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.counter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.counter .v { font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.counter .k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Account ---------- */
.acct { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 28px; align-items: start; padding: 26px 0 60px; }
.acct-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; position: sticky; top: 112px; align-self:start; }
.acct-side .who { display: flex; gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(140deg, var(--brand-2), var(--brand)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; flex: none; }
.acct-side a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: .14s; }
.acct-side a:hover { background: var(--surface-2); color: var(--ink); }
.acct-side a.on { background: var(--ink); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ---------- Footer ---------- */
.ftr { background: var(--ink); color: rgba(255,255,255,.72); margin-top: 60px; padding-top: 48px; }
.ftr-cols { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; padding-bottom: 36px; }
.ftr h4 { color: #fff; font-size: 13.5px; margin-bottom: 14px; letter-spacing: .02em; }
.ftr a { display: block; font-size: 13.5px; padding: 5px 0; color: rgba(255,255,255,.66); }
.ftr a:hover { color: #fff; }
.ftr .brandrow { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 14px; }
.ftr .note { font-size: 12.5px; line-height: 1.6; max-width: 34ch; }
.ftr-disclaimer { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0 40px; font-size: 12px; line-height: 1.65; color: rgba(255,255,255,.6); }
.ftr-disclaimer strong { color: #ffb892; }
.payrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.payrow span { border: 1px solid rgba(255,255,255,.2); border-radius: 6px; padding: 4px 9px; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; }
.sim-note { display: inline-flex; align-items: center; gap: 8px; background: rgba(228,114,74,.14); border: 1px solid rgba(228,114,74,.4); color: #ffb892; border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 650; }

/* ---------- Skeleton ---------- */
.sk { background: linear-gradient(90deg, #ece7dc 25%, #f4f1ea 37%, #ece7dc 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite linear; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------- Empty ---------- */
.empty { text-align: center; padding: 70px 20px; }
.empty .ic { font-size: 52px; margin-bottom: 14px; }
.empty h3 { font-size: 21px; margin-bottom: 8px; }
.empty p { color: var(--ink-3); margin-bottom: 20px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-3); padding: 18px 0 0; flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand); }

/* ---------- Filters ---------- */
.catalog { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; padding: 22px 0 60px; }
.filters { position: sticky; top: 132px; }
.fgroup { border-bottom: 1px solid var(--line); padding: 16px 0; }
.fgroup:first-child { padding-top: 0; }
.fgroup h4 { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.range { display: flex; gap: 10px; align-items: center; }
.range input { width: 100%; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 9px; }
select.sort { padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 13.5px; }

/* ---------- Misc ---------- */
.pill-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.bar-stock { height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.bar-stock .f { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.kpi { display: flex; gap: 12px; align-items: center; }
.notice { display: flex; gap: 10px; align-items: flex-start; background: #fff8ec; border: 1px solid #f3dfb5; color: #7a5a12; border-radius: var(--radius); padding: 13px 15px; font-size: 13.5px; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .5s cubic-bezier(.2,.8,.3,1) both; }
.rise-2 { animation: rise .5s .08s cubic-bezier(.2,.8,.3,1) both; }
.rise-3 { animation: rise .5s .16s cubic-bezier(.2,.8,.3,1) both; }

.spinner { width: 26px; height: 26px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pay-overlay { position: fixed; inset: 0; background: rgba(10,11,15,.72); backdrop-filter: blur(6px); z-index: 300; display: grid; place-items: center; animation: fade .25s; }
.pay-card { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 44px; text-align: center; width: min(440px, 92vw); box-shadow: var(--shadow-lg); }
.pay-card h3 { font-size: 22px; margin: 18px 0 8px; }
.pay-card p { color: rgba(255,255,255,.72); font-size: 14px; }
.pay-icon { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.pay-icon.go { background: var(--ok); animation: pop .4s cubic-bezier(.2,1.4,.4,1); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .pdp { grid-template-columns: 1fr 1fr; }
  .buybox { grid-column: 1 / -1; position: static; }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .usp { grid-template-columns: repeat(2, 1fr); }
  .deal-row { grid-template-columns: repeat(2, 1fr); }
  .checkout { grid-template-columns: 1fr; }
  .summary-side { position: static; }
  .acct { grid-template-columns: 1fr; }
  .acct-side { position: static; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .ftr-cols { grid-template-columns: 1fr 1fr; }
  .hdr-act small { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .hdr-top { flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  .hdr-search { order: 3; flex-basis: 100%; }
  .desk-only { display: none !important; }
  .mobile-only { display: inline-flex; }
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard .body { padding: 11px; }
  .pcard .name { font-size: 13px; min-height: 34px; }
  .pcard .now { font-size: 16.5px; }
  .pdp { grid-template-columns: 1fr; gap: 20px; padding: 16px 0; }
  .counter-grid { grid-template-columns: 1fr; }
  .hero-main { min-height: 320px; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .deal-row { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .table { font-size: 13px; }
  .table th, .table td { padding: 10px 8px; }
  .table .hide-sm { display: none; }
  .toast-wrap { left: 14px; right: 14px; bottom: 14px; }
  .toast { min-width: 0; }
  .steps .st span { font-size: 10.5px; }
  .sim-reveal { padding: 22px; }
  .co-step { padding: 17px; }
  .rail > * { flex: 0 0 176px; }
  .sec-head h2 { font-size: 20px; }
}
@media (max-width: 440px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
  .ftr-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Foto reali prodotto ---------- */
.pimg.real { padding: 0; }
.pimg.real img { transition: transform .45s cubic-bezier(.2,.8,.3,1); }
.pimg.real .realtag { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); opacity: .6; z-index: 3; }
.pcard:hover .pimg.real img { transform: scale(1.06); }

/* ---------- Immagine prodotto statica (SVG locale) ---------- */
.pimg.art { background: #fff; }
.pimg.art img { width: 100%; height: 100%; object-fit: contain; padding: 2%; transition: transform .45s cubic-bezier(.2,.8,.3,1), filter .25s ease; }
.pcard:hover .pimg.art img { transform: scale(1.07); }

/* ---------- Nav / hash routing ---------- */
a.hdr-act { cursor: pointer; }
.page-hidden { display: none !important; }

/* ---------- Blocchi pagina statici ---------- */
.hdr-deliver { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.hdr-deliver small { display: block; font-size: 11px; opacity: .72; }
.hdr-deliver strong { font-size: 13.5px; }
.deal-feat { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.deal-feat-body { padding: clamp(22px,3vw,40px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.premium-banner { border-radius: var(--radius-lg); padding: clamp(28px,4vw,52px); color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg,#14161c,#3a231c 60%,#5c2a18); }
.premium-banner::after { content:""; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 20px 20px; }
.premium-banner > * { position: relative; z-index: 2; }
.premium-banner h2 { font-size: clamp(26px,3.4vw,42px); margin: 14px 0 12px; }
.premium-banner p { color: rgba(255,255,255,.82); font-size: 15.5px; max-width: 620px; }
.confirm-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 18px; margin-top: 30px;
  text-align: left; background: var(--surface-2); border-radius: var(--radius); padding: 22px; }
.confirm-grid .k { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.confirm-grid .v { font-size: 16px; font-weight: 800; margin-top: 4px; }
.drawer-left { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px,86vw); background: #fff; z-index: 100; padding: 20px; overflow-y: auto; animation: slideIn .22s ease; }
.drawer-right { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px,90vw); background: #fff; z-index: 100; padding: 20px; overflow-y: auto; animation: slideIn .22s ease; }
.drawer-left a { display: flex; gap: 12px; align-items: center; padding: 12px 10px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.drawer-left a:hover { background: var(--surface-2); }
.order-head { width: 100%; display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 16px; padding: 20px; align-items: center; text-align: left; background: transparent; }
.order-head .k, .counter .k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.input-pill { flex: 1 1 240px; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--line-2); outline: none; }
.input-pill:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(192,73,43,.12); }
.pimg.art img { object-fit: contain; padding: 2%; }

/* NotAStore: estensioni funzionali che riusano il design system esistente */
.auth-shell { max-width: 520px; margin: 42px auto 70px; }
.form-grid { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 650; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(192,73,43,.1); }
.variant-group { margin: 16px 0; }
.variant-label { display: block; font-size: 12.5px; font-weight: 750; margin-bottom: 8px; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-option { padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; font-size: 13px; font-weight: 650; }
.variant-option.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--paper-2); }
.cart-variants{display:flex;gap:9px;flex-wrap:wrap;margin-top:10px}.cart-variants label{font-size:11px;font-weight:700;color:var(--ink-3);display:grid;gap:3px}.cart-variants select{border:1px solid var(--line-2);border-radius:8px;background:#fff;padding:7px 28px 7px 9px;font:inherit;color:var(--ink)}
.wallet-card { min-height: 220px; border-radius: 20px; padding: 22px; color: #fff; background: linear-gradient(145deg,#272a31,#0c0d10); display: flex; flex-direction: column; box-shadow: 0 20px 40px rgba(13,16,21,.18); position:relative; overflow:hidden; }
.wallet-card::after { content:""; position:absolute; width:230px; height:230px; border:1px solid rgba(255,255,255,.13); border-radius:50%; right:-95px; bottom:-135px; }
.wallet-card.red { background: linear-gradient(145deg,#bd3346,#6f1424); }.wallet-card.blue { background: linear-gradient(145deg,#1958a8,#102d5a); }.wallet-card.gold { background: linear-gradient(145deg,#b9974c,#4e3d18); }.wallet-card.green { background: linear-gradient(145deg,#246c62,#0e2927); }.wallet-card.platinum { background: linear-gradient(145deg,#8b949d,#31363d); }.wallet-card.centurion { background: linear-gradient(145deg,#171717,#000); border: 1px solid #b9a36a; }
.wallet-card.red{background:radial-gradient(circle at 85% 15%,rgba(255,255,255,.22),transparent 28%),linear-gradient(135deg,#e6a29a,#b22624 55%,#6d080b)}.wallet-card.blue{background:radial-gradient(circle at 20% 10%,rgba(255,255,255,.24),transparent 30%),linear-gradient(135deg,#2a7fd1,#082d6c 65%,#031a43)}.wallet-card.gold{background:linear-gradient(125deg,#6d4d13,#d3b766 48%,#7d591b 72%,#352307)}.wallet-card.green{background:linear-gradient(135deg,#153e39,#247a6d 48%,#071f1c)}.wallet-card.platinum{background:linear-gradient(125deg,#2f3338,#c5c9cd 44%,#6c7279 68%,#202328)}.wallet-card.centurion{background:radial-gradient(circle at 75% 35%,#313131,transparent 35%),linear-gradient(145deg,#161616,#000);border:1px solid #c4aa69}
.wallet-card.active{box-shadow:0 20px 45px rgba(13,16,21,.28),inset 0 0 0 1px rgba(255,255,255,.18)}
.wallet-card .number { letter-spacing: .16em; font-size: 18px; }.wallet-card small { color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .08em; }
.card-name,.card-top,.card-bottom { display:flex; align-items:center; justify-content:space-between; gap:12px; position:relative; z-index:1; }.card-top{margin:20px 0 22px;justify-content:flex-start}.card-bottom{margin-top:auto}.card-bottom>div:last-child{text-align:right}.card-bottom strong{display:block;font-size:12px;margin-top:3px}.card-chip{width:42px;height:31px;border-radius:6px;background:linear-gradient(135deg,#f6df8c,#b59438);box-shadow:inset 0 0 0 1px rgba(0,0,0,.18)}.contactless{font-weight:800;transform:rotate(90deg);opacity:.8}.network{margin-left:auto;font-weight:900;line-height:.8;text-align:center}.network.visa{font-style:italic;font-size:24px}.network.amex{font-size:10px;border:2px solid #fff;padding:4px}.network.postepay{font-size:13px}.network.mastercard{display:flex}.network.mastercard i{display:block;width:28px;height:28px;border-radius:50%;background:#e4262e}.network.mastercard i+ i{background:#f6a01a;margin-left:-9px;mix-blend-mode:screen}
.spend-panel{margin-top:20px}.spend-panel .sec-head p{font-size:13px;color:var(--ink-3);margin-top:3px}.spend-total{font-size:24px}.spend-chart{height:290px;display:grid;grid-template-columns:72px 1fr;gap:12px;margin-top:14px}.y-axis{display:flex;flex-direction:column;justify-content:space-between;text-align:right;font-size:11px;color:var(--ink-3);padding:2px 0 28px}.plot{display:flex;align-items:flex-end;gap:10px;border-left:1px solid var(--line);border-bottom:1px solid var(--line);background:repeating-linear-gradient(to bottom,var(--line) 0,var(--line) 1px,transparent 1px,transparent 50%);padding:16px 12px 0;height:255px}.bar-col{height:100%;flex:1;min-width:44px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative}.bar-col strong{font-size:10px;margin-bottom:5px;white-space:nowrap}.bar-col .bar{width:min(42px,75%);background:linear-gradient(180deg,var(--brand-2),var(--brand));border-radius:7px 7px 0 0;min-height:8px}.bar-col>span{font-size:10px;color:var(--ink-3);height:27px;padding-top:6px}.chart-empty{padding:60px 0;text-align:center;color:var(--ink-3)}
.chart-range{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:14px 0 8px}.chart-range select,.chart-range input{border:1px solid var(--line-2);border-radius:9px;background:#fff;padding:9px 11px;font:inherit}.chart-range label{display:grid;gap:4px;font-size:11px;font-weight:700;color:var(--ink-3)}
.custom-date{display:none!important}.custom-date.show{display:grid!important}
.progress-track { height: 9px; border-radius: 99px; overflow: hidden; background: var(--paper-3); }.progress-track > span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.leader-row { display: grid; grid-template-columns: 55px minmax(150px,1fr) 90px minmax(130px,.7fr) minmax(120px,.7fr); gap: 12px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.leader-row.me { background: var(--brand-2); }
.mail-item { display: grid; gap: 7px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.sim-caption { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }
@media (max-width:760px) { .leader-row { grid-template-columns: 42px minmax(0,1fr) auto; }.leader-row .leader-hide { display:none; }.wallet-card { min-height:190px; }.auth-shell { margin-top:24px; } }

@media (max-width: 760px) {
  .deal-feat { grid-template-columns: 1fr; }
  .rev-grid { grid-template-columns: 1fr !important; }
  .cart-row { grid-template-columns: 76px minmax(0,1fr) !important; gap: 12px !important; padding: 14px !important; }
  .cart-row > a { width: 76px !important; height: 76px !important; }
  .confirm-grid { grid-template-columns: 1fr 1fr; }
  .hdr-deliver { display: none; }
  .brand-logo{width:116px;height:34px}.hdr-top{gap:8px}.hdr-search{order:3;width:100%;flex-basis:100%}.hdr-actions{gap:3px}.pdp{grid-template-columns:1fr!important}.gallery .main{aspect-ratio:1/1}.buybox{position:static!important}.variant-option{padding:10px 11px;flex:1 0 auto}.acct{display:block}.acct-side{position:sticky;top:0;z-index:15;display:flex;overflow-x:auto;gap:6px;border-radius:0;margin:0 -16px 18px;padding:9px 16px;box-shadow:0 5px 16px rgba(0,0,0,.08)}.acct-side .who{display:none}.acct-side a{white-space:nowrap;flex:none;padding:9px 12px}.spend-chart{grid-template-columns:52px minmax(520px,1fr);overflow-x:auto}.spend-panel{overflow:hidden}.chart-range{align-items:stretch}.chart-range select,.chart-range .btn{width:100%}.cart-variants{display:grid;grid-template-columns:1fr 1fr}.cart-variants select{width:100%}.wallet-card{min-height:180px}.table{font-size:12px}
}
.pimg[style*="--product-scale"] img { transform: scale(var(--product-scale)); }
.pcard:hover .pimg[style*="--product-scale"] img { transform: scale(calc(var(--product-scale) + .04)); }
.pimg.art.packshot img { padding: 8%; object-fit: contain; transform: none; }
.pcard:hover .pimg.art.packshot img { transform: none; }
