:root {
  --bg: #F6F6F3; --surface: #FFFFFF; --ink: #0E1116; --muted: #667085; --line: #E7E7E2; --line-strong: #D5D5CE;
  --accent: #E5391F; --accent-soft: #FDEBE7; --green: #0F7B5F; --green-soft: #E6F4EF;
  --radius: 16px; --top: 68px; --shopbar: 60px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .05);
  --shadow-up: 0 12px 28px rgba(16, 24, 40, .12);
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); }
body.locked { overflow: hidden; }
a { color: var(--green); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 30; height: var(--top); background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.bar { height: 100%; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.mark { width: 38px; height: 38px; flex: none; }
.wordbox { display: flex; flex-direction: column; gap: 4px; }
.tag { font-size: 13px; font-weight: 500; letter-spacing: .01em; color: var(--muted); line-height: 1; }
.word { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.word b { color: var(--accent); font-weight: inherit; }
.search { flex: 1 1 auto; max-width: 560px; margin: 0 auto 0 12px; position: relative; display: block; color: var(--muted); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search input { width: 100%; height: 42px; padding: 0 16px 0 42px; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid transparent; border-radius: 999px; transition: background .15s, border-color .15s, box-shadow .15s; }
.search input::placeholder { color: var(--muted); }
.search input:hover { border-color: var(--line-strong); }
.search input:focus { outline: none; background: #fff; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14, 17, 22, .08); }
.nav { display: flex; gap: 4px; font-size: 14px; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--bg); }

/* hero */
.hero { background: radial-gradient(1200px 380px at 85% -20%, #FFE2DB 0%, rgba(255, 226, 219, 0) 60%), var(--surface); border-bottom: 1px solid var(--line); }
.hero-in { padding-top: 28px; padding-bottom: 24px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.hero-text { padding-top: 10px; display: flex; flex-direction: column; gap: 14px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(15, 123, 95, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(15, 123, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 123, 95, 0); } }
.hero h1 { font-size: 46px; line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
.hero p { margin: 0; font-size: 16px; color: var(--muted); max-width: 520px; }
.onsale { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.onsale b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.onsale span { font-size: 14px; color: var(--muted); font-weight: 600; }
/* home banner: Shop of the day + best in a few Shops */
.banner { display: grid; gap: 10px; min-width: 0; }
.spot { position: relative; overflow: hidden; border-radius: 20px; padding: 20px 22px 18px; color: #fff; display: flex; flex-direction: column; gap: 6px;
  background: radial-gradient(420px 220px at 100% 0%, rgba(229, 57, 31, .55), rgba(229, 57, 31, 0) 70%), linear-gradient(135deg, #171B22, #0E1116); box-shadow: var(--shadow-up); }
.spot-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 5px 12px; }
.spark { color: #FFB020; }
.spot-name { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-top: 4px; }
.spot-line { font-size: 14px; color: rgba(255, 255, 255, .78); }
.spot-line b { color: #fff; font-weight: 800; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 8px; }
.thumb { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #2A2F38; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.thumb:hover img { transform: scale(1.06); }
.t-badge { position: absolute; left: 6px; bottom: 6px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 8px; }
.spot-cta { align-self: flex-start; background: #fff; color: var(--ink); border: 0; border-radius: 999px; height: 40px; padding: 0 18px; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .1s, background .15s; }
.spot-cta:hover { background: #FFE9E4; }
.spot-cta:active { transform: scale(.98); }
.leaders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.leader { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; min-width: 0;
  transition: border-color .15s, transform .15s, box-shadow .15s; }
.leader:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.l-label { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.l-name { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l-up { font-size: 12px; font-weight: 700; color: var(--accent); }

/* shop tabs */
.shopbar { position: sticky; top: var(--top); z-index: 20; height: var(--shopbar); background: rgba(246, 246, 243, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.shopbar .wrap { height: 100%; }
.tabs { height: 100%; display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.tab small { font-size: 12px; font-weight: 600; color: var(--muted); }
.tab:hover { border-color: var(--ink); }
.tab:active { transform: scale(.97); }
.tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab[aria-pressed="true"] small { color: rgba(255, 255, 255, .7); }

/* layout */
.section { padding: 32px 0 8px; }
.section h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.sub.wide { max-width: 640px; margin-bottom: 20px; }
.layout { display: grid; grid-template-columns: 276px minmax(0, 1fr); gap: 28px; align-items: start; }

/* sidebar */
.side { position: sticky; top: calc(var(--top) + var(--shopbar) + 16px); max-height: calc(100vh - var(--top) - var(--shopbar) - 32px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px 18px; box-shadow: var(--shadow); scrollbar-width: thin; }
.side-head { display: flex; align-items: center; gap: 12px; padding: 14px 0 8px; font-size: 16px; }
.side-head b { font-weight: 800; letter-spacing: -0.01em; }
.side-head .link { margin-left: auto; }
.x { display: none; margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg); cursor: pointer; font-size: 16px; }
.fgroup { padding: 14px 0; border-top: 1px solid var(--line); }
.fgroup[hidden] { display: none; }
.fgroup h3 { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.opts { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; padding: 0 8px; }
.opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 6px 8px; border: 0; background: none; border-radius: 10px; cursor: pointer; text-align: left; font-size: 14px; font-weight: 500; }
.opt:hover { background: var(--bg); }
.opt .box { flex: 0 0 18px; height: 18px; border: 1.5px solid var(--line-strong); border-radius: 5px; display: grid; place-items: center; background: #fff; transition: all .12s; }
.opt[data-kind="one"] .box { border-radius: 50%; }
.opt .lab { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt small { color: var(--muted); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.opt[aria-pressed="true"] { font-weight: 700; }
.opt[aria-pressed="true"] .box { background: var(--ink); border-color: var(--ink); }
.opt[aria-pressed="true"] .box::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.opt[data-kind="many"][aria-pressed="true"] .box::after { width: 4px; height: 8px; border-radius: 0; background: none; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.opt.empty-opt { opacity: .5; }
.apply { display: none; margin-top: 12px; width: 100%; }

/* results */
.results { min-width: 0; }
.results-head h2 { font-size: 26px; }
.toolbar { display: flex; align-items: center; gap: 12px; margin: 16px 0 10px; }
.meta { margin: 0 auto 0 0; color: var(--muted); font-size: 13px; font-weight: 500; min-height: 20px; }
.open-filters { display: none; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; margin-left: 6px; }
.count[hidden] { display: none; }
.sel { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.sel select { font: inherit; font-weight: 600; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; height: 40px; cursor: pointer; }
.link { background: none; border: 0; color: var(--accent); font-weight: 700; font-size: 13px; cursor: pointer; padding: 6px 0; }
.link:hover { text-decoration: underline; }
.active { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.active:empty { display: none; }
.achip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--ink); color: #fff; border: 0; font-size: 13px; font-weight: 600; cursor: pointer; }
.achip i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-size: 11px; }
.achip:hover i { background: var(--accent); }

.btn { font-weight: 700; font-size: 14px; padding: 0 20px; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; transition: transform .1s, background .15s; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(.98); }
.btn.solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.solid:hover { background: #262b33; }
.btn:disabled { opacity: .5; cursor: wait; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { background: var(--surface); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.pic { position: relative; display: block; aspect-ratio: 1 / 1.1; background: #EFEFEA; overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.card:hover .pic img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; border-radius: 999px; padding: 5px 11px; box-shadow: 0 4px 10px rgba(229, 57, 31, .35); }
.info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-width: 0; }
.brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0; text-transform: none; }
.name { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cmeta { font-size: 12px; color: var(--muted); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; margin-top: 6px; }
.price b { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price s { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.save { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-soft); border-radius: 6px; padding: 2px 8px; }
.sizes { font-size: 12px; color: var(--muted); }
.foot-line { display: flex; flex-direction: column-reverse; gap: 2px; margin-top: auto; padding-top: 12px; }
.foot-line span { font-size: 11px; color: var(--muted); }
.foot-line a { font-size: 13px; font-weight: 700; text-decoration: none; color: var(--ink); }
.foot-line a:hover { color: var(--accent); }

.skeleton { aspect-ratio: 1 / 1.55; border-radius: 18px; background: linear-gradient(90deg, #ECECE6, #F7F7F3, #ECECE6); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty, .error { text-align: center; color: var(--muted); padding: 56px 0; }
.more { text-align: center; margin: 28px 0 8px; }

/* store table */
.table-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.table { min-width: 820px; padding: 8px 22px 12px; }
.t-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.t-head { border-top: 0; padding: 12px 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.c-name { flex: 0 0 190px; font-weight: 700; }
.c-n { flex: 1 1 110px; font-variant-numeric: tabular-nums; }
.c-n.big { font-size: 18px; font-weight: 800; }
.c-go { flex: 0 0 70px; text-align: right; }
.c-go button { background: var(--bg); border: 0; border-radius: 999px; color: var(--ink); font-weight: 700; cursor: pointer; font-size: 13px; padding: 6px 12px; }
.c-go button:hover { background: var(--ink); color: #fff; }
.share { color: var(--muted); }

/* events */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.event { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.when { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.etitle { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.etext { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* footer */
.foot { background: var(--surface); border-top: 1px solid var(--line); margin-top: 56px; padding: 36px 0 44px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.foot-in { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.how { flex: 1 1 360px; min-width: 0; }
.checked-box { flex: 0 1 260px; }
.how-title { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.formula { font-family: ui-monospace, Menlo, monospace; background: var(--bg); color: var(--ink); padding: 10px 12px; border-radius: 10px; display: inline-block; max-width: 100%; margin: 0 0 10px; font-size: 13px; }
.checked { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.fine { font-size: 12px; margin: 20px 0 0; }

.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(14, 17, 22, .45); }
.scrim[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skeleton, .live { animation: none; }
  .card, .card .pic img, .tab, .btn { transition: none; }
  .card:hover { transform: none; }
}

/* tablet */
@media (max-width: 1100px) {
  .hero-in { grid-template-columns: 1fr; align-items: start; }
  .hero h1 { font-size: 40px; }
}

/* sidebar becomes a drawer */
@media (max-width: 959px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 50; top: 0; left: 0; bottom: 0; width: min(88vw, 360px); max-height: none; border-radius: 0 var(--radius) var(--radius) 0;
    transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--shadow-up); padding-bottom: 28px; }
  .side.open { transform: none; }
  .x { display: grid; place-items: center; }
  .side-head .link { margin-left: auto; }
  .side-head .link + .x { margin-left: 8px; }
  .apply { display: block; position: sticky; bottom: 0; box-shadow: 0 -12px 16px -4px var(--surface); }
  .open-filters { display: inline-flex; align-items: center; }
  .nav { display: none; }
  .search { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }

@media (max-width: 640px) {
  :root { --top: 60px; --shopbar: 56px; }
  .wrap { padding: 0 16px; }
  .logo span:last-child { display: none; }
  .hero-in { padding-top: 24px; padding-bottom: 24px; gap: 20px; }
  .hero h1 { font-size: 30px; }
  .hero p { display: none; }
  .onsale b { font-size: 28px; }
  .spot { padding: 16px; border-radius: 16px; }
  .spot-name { font-size: 24px; }
  .leaders { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .leader { padding: 10px; }
  .l-name { font-size: 13px; }
    .section h2 { font-size: 24px; }
  .results-head h2 { font-size: 22px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .info { padding: 12px; }
  .price b { font-size: 18px; }
  .sel span { display: none; }
  .meta { display: none; }
  .toolbar { justify-content: space-between; }
}
@media (max-width: 360px) { .grid { grid-template-columns: 1fr; } }
