:root {
  --amber: #F59E0B; --amber-d: #D97706; --red: #DC2626; --dark: #1F2937; --darker: #111827;
  --ink: #111827; --text: #374151; --muted: #6B7280; --line: #E5E7EB; --bg: #F9FAFB; --r: 8px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; font: 400 15px/1.5 "Inter", system-ui, sans-serif; color: var(--text); background: var(--bg); }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.15; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.amber { color: var(--amber); }
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); }
.icon-btn:hover { background: #F3F4F6; }
.icon-btn.ring { border: 1px solid var(--line); background: #fff; border-radius: 50%; }
.btn-amber { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--r); background: var(--amber); color: #fff; font-weight: 700; text-decoration: none; transition: background .2s, transform .1s; }
.btn-amber:hover { background: var(--amber-d); }
.btn-amber:active { transform: scale(.98); }
.btn-amber.added { background: #16A34A; }
.btn-lg { min-height: 52px; padding: 0 32px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-dark { min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--r); background: var(--dark); color: #fff; font-weight: 700; }

/* announcement */
.announce { background: var(--amber); color: #1F2937; font-weight: 700; font-size: 14px; overflow: hidden; }
.ann-track { display: flex; justify-content: center; }
.ann-track span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 24px; white-space: nowrap; }
.ann-track span + span { display: none; }
.ann-track .i { width: 16px; height: 16px; fill: currentColor; stroke: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 6px; font: 900 22px "Inter"; color: var(--ink); text-decoration: none; letter-spacing: -.03em; }
.logo .i { width: 26px; height: 26px; color: var(--amber); fill: var(--amber); stroke: none; }
.links { display: flex; gap: 4px; margin-left: 12px; }
.links a { padding: 10px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--text); }
.links a:hover { background: #F3F4F6; }
.links a.on { background: #FEF3C7; color: #92400E; }
.search { position: relative; width: 280px; margin-left: auto; }
.search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search input { width: 100%; min-height: 44px; padding: 0 12px 0 38px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font: inherit; }
.search input:focus { outline: none; border-color: var(--amber); background: #fff; box-shadow: 0 0 0 3px rgba(245,158,11,.2); }
.badge { position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.badge[hidden] { display: none; }
.badge.pop { animation: pop .4s; }
@keyframes pop { 50% { transform: scale(1.35); } }

/* hero */
.hero { position: relative; min-height: 50vh; display: flex; align-items: center; overflow: hidden; color: #fff; padding: 56px 0;
  background-color: var(--darker);
  background-image: linear-gradient(135deg, rgba(31,41,55,.95), rgba(17,24,39,.98)), repeating-linear-gradient(60deg, rgba(245,158,11,.06) 0 2px, transparent 2px 36px), repeating-linear-gradient(-60deg, rgba(245,158,11,.06) 0 2px, transparent 2px 36px); }
.hero-in { position: relative; z-index: 1; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; color: #FCD34D; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; }
.eyebrow .i { width: 16px; height: 16px; fill: currentColor; stroke: none; }
h1 { font-size: 72px; font-weight: 900; color: var(--amber); letter-spacing: -.02em; text-shadow: 0 0 24px rgba(245,158,11,.55), 0 0 64px rgba(245,158,11,.3); }
.sub { font-size: 19px; margin: 10px auto 28px; max-width: 600px; color: #F3F4F6; }
.cd { display: flex; justify-content: center; align-items: flex-start; gap: 12px; margin-bottom: 30px; }
.cd > b { font: 800 40px/80px var(--mono); color: var(--amber); }
.unit { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.box { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 10px; background: var(--amber); color: var(--dark); font: 800 38px var(--mono); box-shadow: 0 10px 30px -10px rgba(245,158,11,.6); }
.box.flip { animation: flip .45s ease; }
@keyframes flip { 0% { transform: perspective(300px) rotateX(0); } 50% { transform: perspective(300px) rotateX(-80deg); } 100% { transform: perspective(300px) rotateX(0); } }
.unit small { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #D1D5DB; }
.float { position: absolute; width: 230px; filter: drop-shadow(0 30px 30px rgba(0,0,0,.5)); opacity: .9; animation: drift 7s ease-in-out infinite; }
.float svg { width: 100%; height: auto; display: block; border-radius: 16px; }
.f1 { left: 4%; top: 14%; transform: rotate(-10deg); }
.f2 { right: 4%; top: 10%; width: 260px; animation-delay: -2s; }
.f3 { right: 10%; bottom: 6%; width: 180px; animation-delay: -4s; }
@keyframes drift { 50% { translate: 0 -14px; } }

/* categories */
.cats { position: sticky; top: 68px; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.cats.stuck { box-shadow: 0 6px 14px -8px rgba(17,24,39,.2); }
.cat-scroll { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-scroll button { flex: none; min-height: 52px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent; background: none; font-weight: 600; font-size: 14px; color: var(--muted); white-space: nowrap; }
.cat-scroll button:hover { color: var(--ink); }
.cat-scroll button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--amber); }

/* sections */
.sec { padding: 48px 0; }
.sec.tight { padding: 24px 0 40px; }
.head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.head.row { align-items: center; justify-content: space-between; }
.head h2 { display: flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 800; }
.head h2 .i { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.filter-note { margin: 0; color: var(--muted); }
.arrows { display: flex; gap: 8px; }

/* deal of the day */
.dotd { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 2px solid var(--amber); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(245,158,11,.5); }
.d-img { position: relative; background: #FFFBEB; display: grid; place-items: center; padding: 32px; }
.d-img > div { width: 100%; max-width: 460px; }
.d-img svg { width: 100%; height: auto; display: block; border-radius: 12px; }
.save-badge { position: absolute; top: 20px; left: 20px; z-index: 1; padding: 8px 14px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 900; font-size: 15px; transform: rotate(-4deg); box-shadow: 0 8px 16px -6px rgba(220,38,38,.6); }
.d-body { padding: 32px 36px; display: flex; flex-direction: column; gap: 10px; }
.label { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--amber-d); font-weight: 800; font-size: 13px; letter-spacing: .14em; }
.label .i { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.dotd h2 { font-size: 30px; font-weight: 800; }
.rate { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 14px; }
.rate b { color: var(--ink); }
.stars { display: inline-flex; gap: 1px; color: var(--amber); }
.stars .i { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.stars .i.off { color: #D1D5DB; }
.prices { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 0; }
.prices s { color: #9CA3AF; font-size: 20px; }
.prices .sale { font-size: 44px; font-weight: 900; color: var(--amber); letter-spacing: -.02em; }
.you { margin: 0; color: #15803D; font-weight: 700; }
.feats { margin: 4px 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.feats li { display: flex; gap: 8px; align-items: center; }
.feats li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: #FEF3C7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23D97706' stroke-width='3.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.ends { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-weight: 600; }
.ends .i { color: var(--red); }
.ends .mono { padding: 3px 8px; border-radius: 6px; background: var(--dark); color: var(--amber); font-weight: 800; }
.stock .bar { height: 8px; border-radius: 4px; background: #F3F4F6; overflow: hidden; }
.stock .bar i { display: block; height: 100%; border-radius: 4px; background: var(--c, var(--amber)); transition: width .5s; }
.stock.big .bar { height: 12px; border-radius: 6px; }
.stock.big .bar i { background: linear-gradient(90deg, #EF4444, #F59E0B); }
.low { margin: 6px 0 0; color: var(--red); font-weight: 700; font-size: 14px; }
.trust-b { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; color: var(--muted); font-size: 13px; }
.trust-b .i { width: 16px; height: 16px; }

/* grid cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: 0 18px 36px -18px rgba(17,24,39,.3); transform: translateY(-3px); }
.c-img { position: relative; aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--line); }
.c-img svg { width: 100%; height: 100%; display: block; }
.disc { position: absolute; top: 12px; left: 12px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 900; font-size: 14px; }
.wish { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.1); color: var(--muted); }
.wish .i { width: 20px; height: 20px; }
.wish[aria-pressed="true"] { color: var(--red); }
.wish[aria-pressed="true"] .i { fill: currentColor; }
.c-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.c-cat { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.card h3 { font-size: 16px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.3em; }
.c-rate { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.c-price { display: flex; align-items: baseline; gap: 8px; }
.c-price s { color: #9CA3AF; font-size: 14px; }
.c-price b { font-size: 22px; font-weight: 800; color: var(--amber-d); }
.mini-cd { display: inline-flex; align-items: center; gap: 4px; font: 700 13px var(--mono); color: var(--red); }
.mini-cd .i { width: 14px; height: 14px; }
.c-stock { display: grid; gap: 4px; }
.c-stock span { font-size: 13px; font-weight: 700; }
.card .btn-amber { margin-top: 6px; min-height: 44px; }
.card.sold { opacity: .6; }
.urgent { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-radius: 12px; color: #fff; text-align: center; background: linear-gradient(90deg, #DC2626, #F59E0B); }
.urgent b { font-size: 22px; font-weight: 900; }
.urgent p { margin: 0; font-weight: 500; }
.urgent .fire { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.2); animation: pulse 1.4s ease-in-out infinite; }
.urgent .fire .i { width: 24px; height: 24px; fill: #FDE68A; stroke: #fff; }
@keyframes pulse { 50% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(255,255,255,.12); } }
.empty { grid-column: 1 / -1; padding: 40px; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: 12px; }

/* lightning carousel */
.ld { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; cursor: grab; scrollbar-width: thin; }
.ld.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.ld .card { flex: 0 0 220px; scroll-snap-align: start; }
.ld .card:hover { transform: none; }
.extra { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px; background: var(--dark); color: var(--amber); font-weight: 900; font-size: 12px; text-align: center; letter-spacing: .1em; }
.ld .c-body { padding: 12px; }
.ld .c-price b { font-size: 19px; }
.ld .mini-cd { background: #FEF2F2; padding: 3px 6px; border-radius: 6px; }

/* recently viewed */
.recent { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.viewed { margin: 0; padding: 6px 8px; border-radius: 6px; background: #FFFBEB; color: #92400E; font-size: 12px; font-weight: 600; }

/* alerts */
.alerts { background: #FFFBEB; border-block: 1px solid #FDE68A; padding: 40px 0; }
.al-in { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.alerts h2 { display: flex; align-items: center; gap: 8px; font-size: 28px; font-weight: 800; }
.alerts h2 .i { width: 26px; height: 26px; }
.alerts p { margin: 6px 0 0; }
.al-row { display: flex; gap: 8px; }
.al-row input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border: 1px solid #FCD34D; border-radius: var(--r); font: inherit; background: #fff; }
.al-row input:focus { outline: none; border-color: var(--amber-d); box-shadow: 0 0 0 3px rgba(245,158,11,.25); }
.al-msg { font-size: 13px; color: #92400E; font-weight: 600; }
.al-msg.ok { color: #15803D; } .al-msg.bad { color: var(--red); }

/* trust + footer */
.trustbar { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0; }
.trustbar ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trustbar li { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 14px; }
.trustbar .i { width: 26px; height: 26px; color: var(--amber-d); }
.foot { background: var(--dark); color: #9CA3AF; padding: 28px 0; font-size: 13px; }
.foot p { margin: 0 0 4px; }
.foot b { color: #fff; }
.demo { font-size: 12px; color: #6B7280; }

/* mobile bar + drawer */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(17,24,39,.12); display: none; }
.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(17,24,39,.5); display: flex; justify-content: flex-end; }
.drawer[hidden] { display: none; }
.dr-in { width: min(420px, 100%); height: 100%; background: #fff; display: flex; flex-direction: column; animation: slide .25s ease; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.dr-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dr-head h2 { font-size: 20px; }
.dr-list { list-style: none; margin: 0; padding: 8px 20px; flex: 1; overflow: auto; }
.dr-list li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dr-list .th { width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.dr-list .th svg { width: 100%; height: 100%; display: block; }
.dr-list b { display: block; font-size: 14px; color: var(--ink); }
.dr-list small { color: var(--amber-d); font-weight: 700; }
.qty { display: flex; align-items: center; gap: 2px; }
.qty button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: grid; place-items: center; }
.qty button .i { width: 16px; height: 16px; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; }
.dr-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.dr-foot .row { display: flex; justify-content: space-between; }
.dr-foot .tot { font-size: 18px; font-weight: 800; color: var(--ink); }
.dr-foot .saved { color: #15803D; font-weight: 700; }
.dr-empty { padding: 40px 0; text-align: center; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--dark); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; font-weight: 500; transition: opacity .25s, transform .25s; z-index: 120; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .links { display: none; }
  .float { opacity: .35; }
  .recent { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .dotd { grid-template-columns: 1fr; }
  .al-in { grid-template-columns: 1fr; gap: 16px; }
  .trustbar ul { grid-template-columns: 1fr 1fr; }
  .trustbar li { justify-content: flex-start; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 120px; }
  body.has-cart { padding-bottom: 76px; }
  .wrap { padding: 0 14px; }
  .ann-track { justify-content: flex-start; width: max-content; animation: marquee 14s linear infinite; }
  .ann-track span + span { display: inline-flex; }
  @keyframes marquee { to { transform: translateX(-50%); } }
  .nav-in { height: 60px; gap: 6px; }
  .search { width: auto; flex: 1; margin-left: 6px; }
  .search input { font-size: 16px; }
  .logo { font-size: 19px; }
  .cats { top: 60px; }
  .hero { padding: 40px 0; }
  .float { display: none; }
  h1 { font-size: 40px; }
  .sub { font-size: 16px; }
  .box { width: 56px; height: 56px; font-size: 26px; }
  .cd { gap: 8px; }
  .cd > b { font-size: 28px; line-height: 56px; }
  .d-img { padding: 20px; }
  .d-body { padding: 20px 18px; }
  .dotd h2 { font-size: 23px; }
  .prices .sale { font-size: 36px; }
  .grid, .recent { grid-template-columns: 1fr; gap: 12px; }
  .grid .card, .recent .card { display: grid; grid-template-columns: 132px 1fr; }
  .grid .c-img, .recent .c-img { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .grid .disc, .recent .disc { width: 42px; height: 42px; font-size: 12px; top: 8px; left: 8px; }
  .grid .wish, .recent .wish { top: auto; bottom: 6px; right: 6px; }
  .grid .c-body, .recent .c-body { padding: 12px; gap: 4px; }
  .card h3 { font-size: 15px; min-height: 0; }
  .c-price b { font-size: 19px; }
  .ld .card { flex-basis: 200px; }
  .arrows { display: none; }
  .head h2 { font-size: 21px; }
  .al-row { flex-direction: column; }
  .trustbar li { font-size: 13px; }
  .mbar:not([hidden]) { display: block; }
  .toast { bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
