*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fff;
  --surface: #f7f7f7;
  --border: #e8e8e8;
  --text: #0a0a0a;
  --muted: #888;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --radius: 3px;
  --max: 1200px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html, body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); height: 56px;
}
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 2rem; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo-link { display: flex; align-items: center; text-decoration: none; }
.nav-logo { width: 28px; height: auto; }
.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-size: .78rem; color: var(--text); text-decoration: none; letter-spacing: .08em; text-transform: uppercase; transition: opacity .15s; }
.nav-link:hover { opacity: .45; }
.cart-link { position: relative; }
.cart-badge {
  position: absolute; top: -7px; right: -10px;
  background: var(--text); color: #fff;
  font-size: .58rem; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px;
  display: none; align-items: center; justify-content: center;
}

/* ── Hero ── */
.hero {
  min-height: calc(100vh - 56px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 4rem 2rem;
}
.hero-logo { width: 68px; margin-bottom: 2.5rem; opacity: 0; animation: rise .7s ease .1s forwards; }
.hero-title { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.05; margin-bottom: .85rem; opacity: 0; animation: rise .7s ease .2s forwards; }
.hero-sub { font-size: .72rem; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 2.75rem; opacity: 0; animation: rise .7s ease .3s forwards; }
.hero-cta {
  display: inline-block; padding: .875rem 2.5rem;
  background: var(--text); color: #fff; border-radius: var(--radius);
  font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; transition: background .15s;
  opacity: 0; animation: rise .7s ease .4s forwards;
}
.hero-cta:hover { background: #222; }

/* ── Section ── */
.section { max-width: var(--max); margin: 0 auto; padding: 4rem 2rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2rem; }
.section-title { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.section-link { font-size: .78rem; color: var(--muted); text-decoration: none; }
.section-link:hover { color: var(--text); }

/* ── Product grid ── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.product-card { cursor: pointer; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: var(--bg); transition: box-shadow .2s, transform .2s; box-shadow: var(--shadow-sm); }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-img { aspect-ratio: 3/4; background: var(--surface); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img-ph { width: 44px; opacity: .12; }
.disc-badge { position: absolute; top: .75rem; left: .75rem; background: var(--text); color: #fff; font-size: .62rem; font-weight: 600; letter-spacing: .06em; padding: .2rem .5rem; border-radius: 2px; }
.oos-label { position: absolute; bottom: .75rem; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.9); color: var(--text); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .75rem; border-radius: 2px; white-space: nowrap; }
.product-info { padding: 1rem; }
.product-name { font-size: .875rem; font-weight: 500; margin-bottom: .3rem; }
.product-price { font-size: .825rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.price-orig { text-decoration: line-through; font-size: .78rem; }
.price-disc { color: var(--text); font-weight: 500; }
.product-card.oos { opacity: .65; }

/* ── Drawer ── */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.18); z-index: 100; display: none; }
.drawer-overlay.open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100vw;
  background: var(--bg); z-index: 101;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--bg); z-index: 1; }
.drawer-head h2 { font-size: .9rem; font-weight: 600; }
.drawer-close { background: none; border: none; font-size: 1.5rem; color: var(--muted); cursor: pointer; line-height: 1; padding: 0 .2rem; }
.drawer-close:hover { color: var(--text); }
.drawer-img { aspect-ratio: 4/3; background: var(--surface); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.drawer-img img { width: 100%; height: 100%; object-fit: cover; }
.drawer-img-ph { width: 56px; opacity: .1; }
.drawer-body { padding: 1.5rem; flex: 1; }
.drawer-price { font-size: 1rem; margin-bottom: .85rem; display: flex; align-items: center; gap: .65rem; }
.drawer-desc { font-size: .85rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.5rem; }
.field-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .6rem; }
.sizes-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.size-btn { padding: .45rem .8rem; border: 1px solid var(--border); border-radius: 3px; font-family: var(--font); font-size: .78rem; background: var(--bg); cursor: pointer; transition: all .1s; }
.size-btn:hover { border-color: var(--text); }
.size-btn.active { background: var(--text); color: #fff; border-color: var(--text); }
.qty-row { display: flex; align-items: center; gap: .875rem; margin-bottom: 1.5rem; }
.qty-btn { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 3px; background: var(--bg); font-size: 1rem; cursor: pointer; transition: border-color .1s; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { border-color: var(--text); }
.qty-val { font-size: .9rem; font-weight: 500; min-width: 24px; text-align: center; }
.btn-atc { width: 100%; padding: 1rem; background: var(--text); color: #fff; border: none; border-radius: var(--radius); font-family: var(--font); font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .15s; }
.btn-atc:hover { background: #222; }
.btn-atc:disabled { opacity: .45; cursor: not-allowed; }

/* ── Shop page ── */
.page-hd { max-width: var(--max); margin: 0 auto; padding: 3rem 2rem 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.page-hd h1 { font-size: 1.5rem; font-weight: 300; letter-spacing: -.01em; }
.page-hd p { font-size: .825rem; color: var(--muted); margin-top: .2rem; }
.empty { text-align: center; padding: 6rem 2rem; color: var(--muted); font-size: .9rem; }
.empty a { color: var(--text); }

/* ── Cart page ── */
.cart-wrap { max-width: 860px; margin: 0 auto; padding: 3rem 2rem; }
.cart-wrap h1 { font-size: 1.25rem; font-weight: 400; margin-bottom: 2.5rem; }
.cart-empty { text-align: center; padding: 5rem 0; }
.cart-empty p { color: var(--muted); margin-bottom: 1.5rem; }
.cart-empty a { display: inline-block; padding: .75rem 1.75rem; background: var(--text); color: #fff; border-radius: var(--radius); text-decoration: none; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 1.25rem; align-items: start; padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.ci-img { width: 88px; aspect-ratio: 3/4; background: var(--surface); border-radius: 3px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-img-ph { width: 28px; opacity: .12; }
.ci-name { font-size: .9rem; font-weight: 500; margin-bottom: .2rem; }
.ci-meta { font-size: .8rem; color: var(--muted); margin-bottom: .75rem; }
.ci-qty { display: flex; align-items: center; gap: .6rem; }
.ci-qty button { width: 26px; height: 26px; border: 1px solid var(--border); background: var(--bg); font-size: .9rem; cursor: pointer; border-radius: 3px; transition: border-color .1s; display: flex; align-items: center; justify-content: center; }
.ci-qty button:hover { border-color: var(--text); }
.ci-qty span { font-size: .85rem; min-width: 20px; text-align: center; }
.ci-right { text-align: right; }
.ci-price { font-size: .9rem; font-weight: 500; margin-bottom: .4rem; }
.ci-remove { font-size: .75rem; color: var(--muted); background: none; border: none; cursor: pointer; padding: 0; }
.ci-remove:hover { color: #c00; }
.cart-summary { margin-top: 2rem; max-width: 320px; margin-left: auto; }
.cs-row { display: flex; justify-content: space-between; font-size: .875rem; padding: .5rem 0; }
.cs-row.total { font-size: 1rem; font-weight: 600; border-top: 1px solid var(--border); margin-top: .5rem; padding-top: 1rem; }
.btn-checkout { width: 100%; margin-top: 1.25rem; padding: 1rem; background: var(--text); color: #fff; border: none; border-radius: var(--radius); font-family: var(--font); font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .15s; }
.btn-checkout:hover { background: #222; }
.btn-checkout:disabled { opacity: .45; cursor: not-allowed; }

/* ── Success ── */
.success-pg { min-height: calc(100vh - 56px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3rem 2rem; }
.success-pg h1 { font-size: 2rem; font-weight: 300; margin-bottom: .75rem; }
.success-pg p { color: var(--muted); margin-bottom: 2rem; }
.success-pg a { display: inline-block; padding: .75rem 2rem; background: var(--text); color: #fff; border-radius: var(--radius); text-decoration: none; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

/* ── Toast ── */
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(6px); background: var(--text); color: #fff; padding: .7rem 1.5rem; border-radius: 3px; font-size: .8rem; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; white-space: nowrap; z-index: 200; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 2rem; text-align: center; font-size: .75rem; color: var(--muted); }
.footer a { color: var(--muted); text-decoration: none; margin: 0 .75rem; }
.footer a:hover { color: var(--text); }
.footer-top { margin-bottom: .5rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
