:root {
  --paper: #EFEEEB;
  --paper-2: #E4E2DE;
  --card: #F7F6F3;
  --ink: #18191B;
  --ink-2: #4A4B4F;
  --ink-3: #6B6C70;
  --line: rgb(24 25 27 / 0.12);
  --accent: #8C4A22;      /* cognac, from the brogues in the footage */
  --accent-2: #A65A2B;
  --ok: #2F6B45;
  --warn: #9A5B12;
  --radius: 14px;
  --gutter: 16px;
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: "Instrument Serif", Georgia, serif;
  --text: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 15px/1.55 var(--text); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Lighthouse demo strip (doubles as the store's announcement bar) --- */
.lh-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px var(--gutter); background: var(--ink); color: #EDEBE6; font-size: 12.5px;
}
.lh-strip a { padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.lh-strip a:hover { background: rgb(255 255 255 / .1); }
.lh-strip .lh-get { background: #25D366; color: #06210f; font-weight: 700; }
.lh-strip .lh-get:hover { background: #2fe375; }
.lh-strip__mid { opacity: .78; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .lh-strip__mid { display: none; } }

/* --- Header --- */
.hdr { position: sticky; top: 0; z-index: 40; background: rgb(239 238 235 / .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 20px; height: 62px; }
.mark { font: 400 28px/1 var(--display); letter-spacing: .14em; }
.hdr nav { display: flex; gap: 22px; margin-left: 18px; font-size: 14px; font-weight: 500; }
.hdr nav a { color: var(--ink-2); position: relative; }
.hdr nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.hdr nav a:hover { color: var(--ink); }
.hdr nav a:hover::after { transform: scaleX(1); }
.hdr__tools { margin-left: auto; display: flex; gap: 4px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: background-color .2s; }
.icon-btn:hover { background: rgb(24 25 27 / .06); }
.icon-btn svg { width: 22px; height: 22px; }
.count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  transform: scale(0); transition: transform .25s var(--ease);
}
.count.is-on { transform: scale(1); }
.count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }
@media (max-width: 760px) { .hdr nav { display: none; } .mark { font-size: 24px; } }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: var(--ink); color: #fff; transition: background-color .2s, transform .15s;
}
.btn:hover { background: #33353A; }
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }

/* --- Product card --- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; } }
.card { position: relative; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.card.is-out { opacity: 0; transform: translateY(14px) scale(.98); }
.card__frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); aspect-ratio: 3 / 4.4; }
.card__frame > a { position: absolute; inset: 0; }
.card__frame img, .card__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.card__frame img { transition: transform .8s var(--ease); }
.card__frame video { opacity: 0; transition: opacity .35s; }
.card__frame.is-playing video { opacity: 1; }
.card:hover .card__frame img { transform: scale(1.04); }
.card__tag { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px; background: var(--card); font-size: 11px; font-weight: 700; letter-spacing: .04em; pointer-events: none; }
.card__walk { position: absolute; bottom: 10px; left: 10px; display: flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: rgb(24 25 27 / .6); color: #fff; font-size: 11px; font-weight: 600; pointer-events: none; transition: opacity .25s; }
.card__frame.is-playing .card__walk { opacity: 0; }
.heart { position: absolute; top: 6px; right: 6px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); }
.heart svg { width: 20px; height: 20px; fill: transparent; stroke: currentColor; stroke-width: 1.8; transition: fill .2s, transform .3s var(--ease); }
.heart[aria-pressed="true"] svg { fill: #C2410C; stroke: #C2410C; animation: bump .45s var(--ease); }
.card__quick {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; padding: 10px; border-radius: 12px;
  background: rgb(247 246 243 / .94); backdrop-filter: blur(8px);
  transform: translateY(calc(100% + 12px)); transition: transform .3s var(--ease);
}
.card__quick p { font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.card__quick div { display: flex; gap: 4px; }
.card__quick button { flex: 1; min-height: 34px; border-radius: 8px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; transition: background-color .15s, color .15s; }
.card__quick button:hover:not(:disabled) { background: var(--ink); color: #fff; }
.card__quick button:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
@media (hover: hover) { .card:hover .card__quick, .card:focus-within .card__quick { transform: none; } .card:hover .card__walk { opacity: 0; } }
@media (hover: none) { .card__quick { display: none; } }
.card__body { padding: 12px 2px 0; }
.card__name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.card__meta { color: var(--ink-3); font-size: 13px; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--line); display: inline-block; }
.price { margin-top: 6px; font-weight: 700; }
.price s { color: var(--ink-3); font-weight: 500; margin-left: 6px; }
.price em { font-style: normal; color: var(--accent); font-size: 12px; margin-left: 6px; }

/* --- Bag drawer --- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgb(24 25 27 / .4); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.is-on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(420px, 100%);
  display: flex; flex-direction: column; background: var(--card);
  transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s;
}
.drawer.is-on { transform: none; visibility: visible; transition: transform .4s var(--ease); box-shadow: -20px 0 50px rgb(0 0 0 / .12); }
.drawer__hd { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__hd h2 { font: 400 28px/1 var(--display); }
.ship { padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 13px; }
.ship__bar { height: 6px; border-radius: 3px; background: var(--paper-2); margin-top: 8px; overflow: hidden; }
.ship__bar i { display: block; height: 100%; width: 0; background: var(--ok); border-radius: 3px; transition: width .5s var(--ease); }
.drawer__list { flex: 1; overflow-y: auto; padding: 8px 20px; list-style: none; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); animation: lineIn .35s var(--ease); }
@keyframes lineIn { from { opacity: 0; transform: translateX(16px); } }
.line img { width: 72px; height: 96px; object-fit: cover; object-position: 50% 25%; border-radius: 8px; background: var(--paper-2); }
.line h3 { font-size: 14px; font-weight: 600; line-height: 1.3; }
.line p { font-size: 12.5px; color: var(--ink-3); }
.line .rm { font-size: 12px; text-decoration: underline; color: var(--ink-3); margin-top: 6px; }
.line .line__price { font-weight: 700; font-size: 14px; text-align: right; color: var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 8px; }
.qty button { width: 32px; height: 32px; font-size: 16px; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: 13px; }
.drawer__empty { padding: 50px 20px; text-align: center; color: var(--ink-3); }
.drawer__empty .btn { margin-top: 16px; }
.drawer__ft { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer__sub { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 4px; }
.drawer__note { font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }

/* --- Toast --- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 120;
  max-width: min(440px, calc(100% - 32px)); padding: 13px 18px; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: 14px; text-align: center;
  opacity: 0; translate: -50% 16px; pointer-events: none; transition: opacity .3s, translate .3s var(--ease);
}
.toast.is-on { opacity: 1; translate: -50% 0; }

/* Thumbnail that flies into the bag */
.fly { position: fixed; z-index: 130; border-radius: 10px; object-fit: cover; pointer-events: none; box-shadow: 0 10px 30px rgb(0 0 0 / .25); transition: transform .7s cubic-bezier(.5, -0.3, .7, 1), opacity .7s; }

/* --- Footer --- */
.foot { margin-top: 90px; border-top: 1px solid var(--line); padding: 36px 0 120px; color: var(--ink-3); font-size: 13px; }
.foot__in { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; }
.foot .mark { color: var(--ink); font-size: 22px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
