:root {
  --text: #111; --muted: #6b6b6b; --line: #e6e6e6; --bg: #fff; --soft: #f4f4f2; --sale: #c8102e; --accent: #ff5a00;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.demo-ribbon { background: #111; color: #cfcfcf; text-align: center; font-size: 12px; padding: 7px 16px; }
.demo-ribbon b { color: #fff; }
.demo-ribbon a { color: var(--accent); font-weight: 600; }
.announce { background: var(--soft); text-align: center; font-size: 12.5px; padding: 9px 16px; color: #333; }

.top { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 64px; padding: 0 28px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { justify-self: start; font-weight: 700; font-size: 22px; letter-spacing: .32em; }
.nav { display: flex; gap: 30px; font-size: 14px; font-weight: 500; }
.nav a { padding: 22px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.on { border-color: var(--text); }
.nav .sale { color: var(--sale); }
.tools { justify-self: end; display: flex; gap: 4px; }
.icon-btn { all: unset; position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }
.icon-btn:hover { background: var(--soft); }
.icon-btn.menu { display: none; }
.bag span { position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--text); color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; }

main { max-width: 1440px; margin: 0 auto; padding: 0 28px 64px; }
.crumbs { padding: 22px 0 6px; font-size: 12.5px; color: var(--muted); }
.crumbs span { color: var(--text); }
.title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
h1 { margin: 6px 0 4px; font-size: 30px; font-weight: 600; letter-spacing: -.01em; }
.hint { margin: 0; font-size: 13.5px; color: #333; }
.spark { color: var(--accent); }

.cats { display: flex; gap: 8px; padding: 18px 0; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats button { all: unset; cursor: pointer; white-space: nowrap; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; }
.cats button:hover { border-color: #999; }
.cats button.on { background: var(--text); color: #fff; border-color: var(--text); }

.toolbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 18px; border-top: 1px solid var(--line); }
#count { font-size: 13px; color: var(--muted); }
.tb-right { display: flex; gap: 8px; }
.pill-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; }
.pill-btn svg { width: 16px; height: 16px; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 14px; }
.card { position: relative; }
.media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--soft); }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: opacity .35s, transform .5s; mix-blend-mode: multiply; }
.media img[src*="blazer"] { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.media .alt { opacity: 0; }
.card:hover .media .alt { opacity: 1; }
.card:hover .media img:not(.alt) { transform: scale(1.03); }
.card:hover .media .alt ~ img, .card:hover .media img:has(+ .alt) { opacity: 0; }
.badge { position: absolute; left: 10px; bottom: 10px; padding: 4px 8px; background: #fff; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.fav { all: unset; position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; z-index: 2; }
.fav:hover { background: rgba(255,255,255,.8); }
.fav.on svg { fill: var(--text); }
.info { padding: 10px 2px 0; display: grid; gap: 3px; }
.name { font-size: 13.5px; }
.name:hover { text-decoration: underline; }
.price { font-size: 13.5px; font-weight: 600; }
.swatches { display: flex; gap: 6px; margin-top: 4px; }
.swatches i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.add { all: unset; cursor: pointer; margin-top: 8px; justify-self: start; font-size: 12.5px; font-weight: 600; padding: 7px 12px; border: 1px solid var(--text); opacity: 0; transition: opacity .2s; }
.card:hover .add, .add:focus-visible { opacity: 1; }
.add:hover { background: var(--text); color: #fff; }

.retail { margin-top: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 32px; background: var(--soft); border-radius: 18px; }
.retail h2 { margin: 0 0 8px; font-size: 20px; }
.retail p { margin: 0 0 10px; color: #333; }
.retail ul { margin: 0; padding-left: 18px; color: #333; }
.retail code { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 12.5px; }
.retail pre { margin: 0; padding: 20px; background: #111; color: #f2f2f2; border-radius: 12px; overflow-x: auto; }
.retail pre code { color: #f2f2f2; font-size: 13px; line-height: 1.6; }

.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.foot b { color: var(--text); letter-spacing: .3em; margin-right: 12px; }
.foot-links { display: flex; gap: 18px; }
.foot-links a:hover { color: var(--text); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; padding: 12px 18px; background: #111; color: #fff; border-radius: 10px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }

@media (max-width: 1024px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .nav { gap: 20px; } }
@media (max-width: 760px) {
  .top { grid-template-columns: auto 1fr auto; padding: 0 8px; height: 56px; }
  .icon-btn.menu { display: grid; }
  .logo { justify-self: center; font-size: 19px; }
  .nav { display: none; }
  .tools .icon-btn:not(.bag):not([aria-label="Search"]) { display: none; }
  main { padding: 0 16px 48px; }
  h1 { font-size: 24px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; }
  .add { opacity: 1; }
  .retail { grid-template-columns: 1fr; padding: 20px; }
}
