:root {
  --bg: #fff;
  --fg: #000;
  --muted: #737373;
  --line: #e6e6e6;
  --panel: #fff;
  --tile: #f3f3f3;
  --skel: #e8e8e8;
  --ok: #1a7f37;
  --warn: #9a6700;
  --bad: #c8102e;
  --hat-red: #d4142f;
  --hat-red-hi: #f0475a;
  --hat-red-lo: #7d0819;
  --fur-hi: #ffffff;
  --fur-lo: #d6d6d6;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; margin: 0; overflow-x: clip; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 14px;
  display: flex; flex-direction: column; min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); max-width: 1440px; margin: 0 auto; width: 100%; }

/* header */
header.site { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-block: 18px; gap: 12px; }
.btn {
  background: none; border: 0; color: var(--fg); cursor: pointer; text-decoration: none;
  font: 500 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 0; display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { color: var(--muted); }
:is(.btn, .close, a, button, input, select, textarea):focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
.bar > :last-child { justify-self: end; }
.logo { font: 800 15px/1 var(--display); font-stretch: 125%; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--fg); text-decoration: none; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid var(--fg); border-radius: 10px; font-size: 11px; letter-spacing: 0; font-variant-numeric: tabular-nums; }

/* hero */
.hero { display: grid; place-items: center; text-align: center; padding-block: 12vh; }
.mark { margin: 0; font: 900 clamp(56px, 15vw, 200px)/.82 var(--display); font-stretch: 62%; text-transform: uppercase; letter-spacing: -.01em; }
.hat-d { position: relative; display: inline-block; }
.hat-d svg { position: absolute; left: -16%; top: -0.48em; width: 0.9em; transform: rotate(12deg); pointer-events: none; overflow: visible; }
.sub { margin: 28px 0 0; color: var(--muted); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }

/* collections */
.drop { border-top: 1px solid var(--line); padding-block: 64px 96px; scroll-margin-top: 60px; }
.drop-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.drop-head h2 { margin: 0; font: 900 clamp(28px, 5vw, 56px)/.9 var(--display); font-stretch: 62%; text-transform: uppercase; letter-spacing: .005em; }
.drop-head span { color: var(--muted); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 16px; }
.item { display: flex; flex-direction: column; gap: 10px; background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.item[disabled] { cursor: default; }
.ph { aspect-ratio: 3 / 4; max-width: 100%; background: var(--tile); position: relative; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.item:hover .ph img { transform: scale(1.03); }
.tag { position: absolute; left: 10px; top: 10px; background: var(--fg); color: var(--bg); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; padding: 5px 8px; }
.iname { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.iprice { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.bar-1, .bar-2 { height: 10px; background: var(--skel); }
.bar-1 { width: 70%; } .bar-2 { width: 30%; }
@media (max-width: 800px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* footer */
footer.site { border-top: 1px solid var(--line); margin-top: auto; }
.foot-main { padding-block: 48px 40px; display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 32px; align-items: start; }
.foot-brand { margin: 0; font: 900 clamp(40px, 6vw, 72px)/.85 var(--display); font-stretch: 62%; text-transform: uppercase; }
.tm { font-size: .3em; vertical-align: super; font-stretch: 100%; font-weight: 500; margin-left: .1em; }
.foot-about { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.foot-about p { margin: 0; font-size: 15px; }
.foot-about small { color: var(--muted); font-size: 12px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.foot-links a, .foot-bottom a { color: var(--fg); text-decoration: none; font-size: 13px; }
.foot-links a:hover, .foot-bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { border-top: 1px solid var(--line); padding-block: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.foot-bottom a { font-size: 12px; }
@media (max-width: 700px) { .foot-main { grid-template-columns: 1fr; } }

/* panels */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 20; }
.panel {
  position: fixed; top: 0; bottom: 0; z-index: 21; width: min(440px, 100%);
  background: var(--panel); border: 0 solid var(--line);
  display: flex; flex-direction: column; visibility: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s linear .35s;
}
.panel.right { right: 0; border-left-width: 1px; transform: translateX(100%); }
.panel.left { left: 0; border-right-width: 1px; transform: translateX(-100%); }
.panel.open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.phead { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.phead h2 { margin: 0; font: 800 13px/1 var(--display); font-stretch: 125%; letter-spacing: .1em; text-transform: uppercase; }
.close { background: none; border: 0; color: var(--fg); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px; }
.pbody { flex: 1; overflow: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.empty { margin: auto 0; text-align: center; color: var(--muted); line-height: 1.6; }
.empty strong { display: block; color: var(--fg); font: 800 22px/1 var(--display); font-stretch: 75%; text-transform: uppercase; margin-bottom: 10px; letter-spacing: .02em; }
.pfoot { padding: 20px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.row.small { color: var(--muted); letter-spacing: .08em; }
.cta { width: 100%; padding: 16px; background: var(--fg); color: var(--bg); border: 1px solid var(--fg); cursor: pointer; font: 600 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.cta:hover { background: #222; }
.cta[disabled] { opacity: .35; cursor: not-allowed; }
.cta.ghost { background: var(--bg); color: var(--fg); }
.cta.ghost:hover { background: var(--tile); }
.err { color: var(--bad); font-size: 13px; line-height: 1.5; margin: 0; }
.err:empty { display: none; }

.coll-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.coll-list a { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; font: 800 20px/1 var(--display); font-stretch: 75%; text-transform: uppercase; }
.coll-list a span { font: 400 12px/1 var(--body); color: var(--muted); align-self: center; }

/* cart lines */
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: start; }
.line .thumb { aspect-ratio: 3/4; background: var(--tile); overflow: hidden; }
.line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line .meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.line .meta b { font-weight: 500; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.line .meta small { color: var(--muted); }
.qty { display: inline-flex; border: 1px solid var(--line); width: max-content; }
.qty button { background: none; border: 0; width: 28px; height: 28px; cursor: pointer; font-size: 15px; color: var(--fg); }
.qty span { min-width: 28px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }

/* product view */
.pv-img { aspect-ratio: 3/4; background: var(--tile); overflow: hidden; }
.pv-img img { width: 100%; height: 100%; object-fit: cover; }
.pv-name { margin: 0; font: 900 34px/.9 var(--display); font-stretch: 62%; text-transform: uppercase; }
.pv-price { font-size: 15px; font-variant-numeric: tabular-nums; }
.pv-desc { margin: 0; color: #333; line-height: 1.6; white-space: pre-line; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.sizes legend { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sizes span { display: grid; place-items: center; min-width: 48px; height: 40px; padding: 0 12px; border: 1px solid var(--line); font-size: 12px; letter-spacing: .06em; }
.sizes input:checked + span { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.sizes input:focus-visible + span { outline: 1px solid var(--fg); outline-offset: 2px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 12px 18px; font-size: 13px; z-index: 40; max-width: calc(100% - 32px); }

/* success page */
.thanks { padding-block: 12vh; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.thanks h1 { margin: 0; font: 900 clamp(44px, 9vw, 96px)/.85 var(--display); font-stretch: 62%; text-transform: uppercase; }
.thanks p { margin: 0; line-height: 1.6; color: #333; }

@media (prefers-reduced-motion: reduce) { .panel, .ph img { transition: none !important; } }
