/* beju — leather bags. Black on white, thin type, big images. */
:root {
  --ink: #000;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --bg: #fff;
  --soft: #f4f2ef;
  --err: #b3261e;
  --pad: clamp(16px, 3vw, 40px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 12px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: .02em; text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { text-transform: none; letter-spacing: .01em; font-size: 13px; }
.muted { color: var(--muted); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* header */
header {
  position: sticky; top: 0; z-index: 10; background: var(--bg);
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad); border-bottom: 1px solid var(--line);
}
.logo { font-size: 30px; letter-spacing: .32em; font-weight: 300; text-transform: lowercase; line-height: 1; }
header nav { display: flex; gap: 28px; align-items: center; }

/* hero */
.hero { position: relative; height: min(86vh, 900px); background: var(--soft); overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .copy { position: absolute; left: var(--pad); bottom: var(--pad); color: #fff; text-shadow: 0 0 24px rgba(0,0,0,.25); }
.hero h1 { font-size: clamp(48px, 10vw, 140px); font-weight: 300; letter-spacing: .1em; line-height: .9; text-transform: lowercase; }
.hero a { display: inline-block; margin-top: 18px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* grid */
.section-head { display: flex; justify-content: space-between; align-items: baseline; padding: 48px var(--pad) 20px; }
.section-head h2 { font-size: 12px; }
.section-head > span { white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 4px; padding: 0 4px 80px; }
.card .img { aspect-ratio: 3 / 4; background: var(--soft); overflow: hidden; position: relative; }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.card .img img + img { position: absolute; inset: 0; opacity: 0; }
.card:hover .img img + img { opacity: 1; }
.card .meta { padding: 10px 8px 0; display: flex; justify-content: space-between; gap: 12px; }
.card { min-width: 0; }
.card .meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { header nav { gap: 16px; } .logo { font-size: 24px; } .card .meta { flex-direction: column; gap: 2px; } }

/* trust strip + filters (Hyna: trust builders, curated categories) */
.trust { list-style: none; margin: 0; padding: 14px var(--pad); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 40px; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.filters button { color: var(--muted); padding: 4px 0; border-bottom: 1px solid transparent; }
.filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 700px) { .trust { justify-content: flex-start; gap: 6px 20px; font-size: 11px; } .hero { height: 62vh; } }

/* editorial */
.strip { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 0 4px; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--soft); }
.note { max-width: 520px; margin: 0 auto; padding: 96px var(--pad); text-align: center; }
.note h2 { font-size: 12px; margin-bottom: 14px; }
@media (max-width: 700px) { .strip { grid-template-columns: 1fr; } }

/* product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--soft); }
.gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 1; }
.buy { position: sticky; top: 72px; align-self: start; padding: 40px var(--pad); max-width: 460px; }
.buy h1 { font-size: 14px; }
.buy .price { margin: 8px 0 28px; font-size: 13px; }
.buy p { color: #333; }
.buy dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.buy dt { color: var(--muted); }
.buy dd { margin: 0; text-transform: none; }
.colors { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 20px; }
.colors label { position: relative; border: 1px solid var(--line); padding: 8px 12px; cursor: pointer; color: var(--ink); }
.colors input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.colors label:has(input:checked) { border-color: var(--ink); }
.colors label:has(input:focus-visible) { outline: 1px solid var(--ink); outline-offset: 2px; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  .buy { position: static; max-width: none; }
}

/* scannable specs (Dagne Dover: dimensions + materials easy to scan) */
.specs { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.specs li { padding: 12px; border-left: 1px solid var(--line); text-transform: none; font-size: 12px; }
.specs li:first-child { border-left: 0; }
.specs small { display: block; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; font-size: 11px; }
.trust-row { color: var(--muted); font-size: 11px; text-align: center; margin: 10px 0 0; }
.nudge { margin: 8px 0 12px; font-size: 12px; color: var(--ink); }
.buy .nudge { text-align: center; }
.pairs { border-top: 1px solid var(--line); }
@media (max-width: 500px) { .specs { grid-template-columns: 1fr; } .specs li { border-left: 0; border-top: 1px solid var(--line); } .specs li:first-child { border-top: 0; } }
/* mobile: keep "Add to bag" in reach */
@media (max-width: 900px) {
  #add { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  body:has(#add) footer { padding-bottom: 110px; }
}

/* buttons */
.btn { display: block; width: 100%; text-align: center; background: var(--ink); color: #fff; padding: 16px; border: 1px solid var(--ink); }
.btn:hover { background: #222; }
.btn.ghost { background: none; color: var(--ink); }

/* cart drawer */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--bg); }
dialog::backdrop { background: rgba(0,0,0,.25); }
#cart { margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(440px, 100vw); max-width: 100vw; }
#cart[open] { display: flex; flex-direction: column; }
.drawer-head { display: flex; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.lines { flex: 1; overflow: auto; padding: 8px 24px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 76px; aspect-ratio: 3 / 4; object-fit: cover; background: var(--soft); }
.line h3 { font-size: 12px; }
.line small { display: block; color: var(--muted); margin-top: 4px; }
.qty { display: inline-flex; gap: 14px; margin-top: 10px; align-items: center; }
.qty button { width: 20px; }
.pair { margin-top: 18px; }
.pair .line { border-bottom: 0; }
.add-pair { margin-top: 8px; border-bottom: 1px solid currentColor; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); }
.sum { display: flex; justify-content: space-between; margin-bottom: 8px; }
.sum.total { font-size: 14px; margin-top: 12px; }

/* checkout */
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 64px; padding: 40px var(--pad) 96px; max-width: 1200px; margin: 0 auto; }
.checkout h1 { font-size: 14px; margin-bottom: 8px; }
fieldset { border: 0; padding: 0; margin: 36px 0 0; min-width: 0; }
legend { padding: 0; margin-bottom: 16px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.fields .full { grid-column: 1 / -1; }
label { display: block; color: var(--muted); }
label small { text-transform: none; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 0; font: 400 14px "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink); background: none; border: 0; border-bottom: 1px solid #bbb; border-radius: 0; outline: none;
}
input:focus, select:focus, textarea:focus { border-bottom-color: var(--ink); }
.choice { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); cursor: pointer; }
.choice input { width: auto; margin: 0; accent-color: #000; }
.choice span { flex: 1; }
.summary { align-self: start; position: sticky; top: 90px; }
.summary h2 { font-size: 12px; margin-bottom: 8px; }
.summary .lines { padding: 0; margin-bottom: 16px; }
.pay-note { padding: 18px; text-align: center; color: var(--muted); border: 1px solid var(--line); }
.err { color: var(--err); text-transform: none; }
.done { max-width: 520px; margin: 0 auto; padding: 120px var(--pad); text-align: center; }
.done h1 { font-size: 22px; margin-bottom: 16px; }
@media (max-width: 900px) {
  .checkout { grid-template-columns: 1fr; gap: 40px; }
  .summary { position: static; order: -1; }
}
@media (max-width: 500px) { .fields { grid-template-columns: 1fr; } }

/* info pages */
.info { max-width: 680px; padding: 48px var(--pad) 96px; }
.info h1 { font-size: 14px; margin-bottom: 32px; }
.info h2 { font-size: 12px; margin: 40px 0 10px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px var(--pad); display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
