/* Modaku storefront. Brand: Black #111111, Paper #F7F5F0, White #FFFFFF;
   Instrument Serif for headlines, Instrument Sans for everything else. */

:root {
  --black: #111111;
  --paper: #f7f5f0;
  --white: #ffffff;

  --ink: var(--black);
  --ink-soft: #57544e;
  --line: #e7e3da;
  --line-strong: #c9c4b9;
  --error: #b42318;
  --low: #8a4b08;
  --review-bg: #fef0c7;
  --review-border: #f5d27a;
  --review-text: #7a2e0e;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-text: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --page-max: 1320px;
  --gutter: 32px;
  --header-h: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 15px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
#main:focus { outline: none; }

.container { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--black); color: var(--white); padding: 8px 12px; }
.skip-link:focus { left: 8px; }

/* Labels: Instrument Sans Medium, small, tracked */
.eyebrow, .option-label, .mega-title, .footer-title, .summary-title, .announcement, .btn, .nav-link, .pill, .tile-flag, .accordions summary {
  font-family: var(--font-text);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Top bars ---------- */
.test-banner {
  background: var(--paper); color: var(--ink); border-bottom: 1px dashed var(--line-strong);
  text-align: center; font-size: 13px; padding: 7px 16px;
}
.announcement {
  background: var(--black); color: var(--paper);
  text-align: center; font-size: 11.5px; padding: 9px 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.header-bar {
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.header-right { display: flex; justify-content: flex-end; }
.logo { display: block; padding: 8px 0; }
.logo img { width: 148px; height: auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--ink); text-decoration: none; position: relative;
}
.menu-toggle { display: none; margin-left: -10px; }
.cart-btn { margin-right: -10px; }
.cart-count {
  position: absolute; top: 6px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--black); color: var(--white);
  font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}

/* Desktop category bar with dropdowns */
.main-nav { position: relative; }
.nav-list { display: flex; justify-content: center; gap: 4px; }
.nav-item { position: static; }
.nav-link {
  display: block; padding: 14px 13px 15px; font-size: 12px; text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.nav-item:hover .nav-link, .nav-item:focus-within .nav-link, .nav-item.active .nav-link { border-bottom-color: var(--black); }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px -24px rgba(17, 17, 17, 0.35);
  visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}
.nav-item:hover .mega, .nav-item:focus-within .mega {
  visibility: visible; opacity: 1; transform: none; transition-delay: 0.12s;
}
.main-nav.nav-suppress .mega { visibility: hidden; opacity: 0; }
.mega-inner { display: flex; justify-content: space-between; gap: 48px; padding-top: 32px; padding-bottom: 36px; }
.mega-title { font-size: 12px; margin-bottom: 14px; color: var(--ink-soft); }
.mega-links { display: grid; gap: 10px; }
.mega-links a { text-decoration: none; font-size: 15px; }
.mega-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mega-feature { display: grid; gap: 10px; width: 200px; text-decoration: none; font-size: 13px; font-weight: 500; }
.mega-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper); }

/* ---------- Drawers ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 40; background: rgba(17, 17, 17, 0.4);
  opacity: 0; transition: opacity 0.2s ease;
}
.backdrop.open { opacity: 1; }
.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 50; width: min(400px, 100vw);
  background: var(--white); display: flex; flex-direction: column;
  transition: transform 0.25s ease; overflow-y: auto;
}
.drawer-left { left: 0; transform: translateX(-100%); }
.drawer-right { right: 0; transform: translateX(100%); }
.drawer.open { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line);
}
.drawer-title { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.drawer-body { padding: 20px; flex: 1; }
.drawer-foot { padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-foot .row { margin-bottom: 6px; }
.added-item { display: grid; grid-template-columns: 96px 1fr; gap: 16px; }
.added-thumb img, .added-thumb .img-missing { width: 96px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper); }
.added-name { font-weight: 500; margin-bottom: 4px; }

.mobile-list > li { border-bottom: 1px solid var(--line); }
.mobile-top, .mobile-cat summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; font-size: 16px; text-decoration: none; cursor: pointer; list-style: none;
}
.mobile-cat summary::-webkit-details-marker { display: none; }
.mobile-cat summary::after { content: '+'; font-size: 20px; font-weight: 300; }
.mobile-cat[open] summary::after { content: '−'; }
.mobile-cat ul { padding: 0 20px 14px 32px; display: grid; gap: 4px; }
.mobile-cat ul a { display: block; padding: 8px 0; text-decoration: none; color: var(--ink-soft); }

/* ---------- Buttons & controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px; font-size: 12.5px;
  border: 1px solid var(--black); border-radius: 0; cursor: pointer; text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: #2b2b2b; }
.btn-secondary { background: var(--white); color: var(--black); }
.btn-secondary:hover { background: var(--paper); }
.btn:disabled { background: var(--line); border-color: var(--line); color: var(--ink-soft); cursor: not-allowed; }
.btn-block { width: 100%; }
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px;
  text-decoration: underline; text-underline-offset: 3px; color: var(--ink);
}
.link-more { font-size: 13px; font-weight: 500; text-underline-offset: 4px; }
.link-more.center { display: block; text-align: center; margin-top: 14px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); height: 36px; }
.qty button {
  width: 34px; height: 100%; background: none; border: 0; cursor: pointer; font-size: 17px; line-height: 1;
}
.qty button:disabled { color: var(--line-strong); cursor: not-allowed; }
.qty span { min-width: 28px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.qty-lg { height: 48px; }
.qty-lg button { width: 42px; }

/* ---------- Page layout ---------- */
.page { padding-top: 20px; padding-bottom: 72px; }
.page.narrow { max-width: 720px; }
.page-loading { padding: 120px 24px; text-align: center; color: var(--ink-soft); }
.page-title { font: 400 44px/1.05 var(--font-display); letter-spacing: -0.005em; }
.title-count { font-family: var(--font-text); font-size: 18px; color: var(--ink-soft); vertical-align: middle; }
.section { padding-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-title { font: 400 34px/1.1 var(--font-display); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 24px; padding: 0; font-size: 12.5px; color: var(--ink-soft); }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); }
.notice { background: var(--paper); border-left: 2px solid var(--black); padding: 12px 16px; margin: 20px 0; font-size: 14px; }
.form-error { color: var(--error); font-size: 14px; margin: 10px 0; }
.empty { text-align: center; padding: 72px 16px; display: grid; justify-items: center; gap: 12px; }
.empty-title { font: 400 30px/1.1 var(--font-display); }
.empty .btn { margin-top: 12px; }
.message { text-align: center; max-width: 560px; padding-top: 72px; display: grid; justify-items: center; gap: 14px; }
.message-mark { width: 48px; height: 48px; margin-bottom: 8px; }
.message-actions { margin-top: 16px; }
.order-number { font-size: 15px; letter-spacing: 0.02em; }

/* Info pages (shipping, returns, privacy…) */
.info-page .page-title { margin-bottom: 28px; }
.prose { display: grid; gap: 14px; font-size: 15.5px; line-height: 1.65; }
.prose h2 { font: 400 26px/1.15 var(--font-display); margin-top: 18px; }
.prose ul { padding-left: 20px; list-style: disc; display: grid; gap: 6px; }
.prose a { text-underline-offset: 3px; }

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); min-height: 520px; }
.hero-text {
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: 64px max(var(--gutter), calc((100vw - var(--page-max)) / 2 + var(--gutter)));
  padding-right: 64px;
}
.eyebrow { font-size: 12px; color: var(--ink-soft); }
.display { font: 400 clamp(48px, 6vw, 84px)/0.98 var(--font-display); letter-spacing: -0.01em; }
.hero-sub { font-size: 17px; max-width: 30em; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.hero-media {
  position: relative; background: var(--black); overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 48px;
}
.hero-media::before {
  content: ''; position: absolute; inset: 0; opacity: 0.22;
  background: url('/brand/pattern-paper-on-black.svg') 0 0 / 132px repeat;
}
.hero-photo { position: relative; display: block; width: min(360px, 80%); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.category-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.category-tile { position: relative; display: block; text-decoration: none; background: var(--paper); overflow: hidden; }
.category-tile img, .category-tile .img-missing { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.4s ease; }
.category-tile:hover img { transform: scale(1.03); }
.category-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px;
  background: linear-gradient(transparent, rgba(17, 17, 17, 0.55)); color: var(--white);
  font: 400 30px/1 var(--font-display); display: flex; flex-direction: column; gap: 6px;
}
.category-label small { font: 500 11px/1 var(--font-text); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Collection ---------- */
.collection-head { display: grid; gap: 20px; margin-bottom: 28px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px;
  border: 1px solid var(--line-strong); font-size: 11.5px; text-decoration: none; background: var(--white);
}
.pill:hover { border-color: var(--black); }
.pill.active { background: var(--black); border-color: var(--black); color: var(--white); }
.toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 0; margin-bottom: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.sort { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.sort select {
  font: inherit; font-size: 13px; padding: 8px 32px 8px 12px; border: 1px solid var(--line-strong); border-radius: 0;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23111' fill='none'/%3E%3C/svg%3E") right 12px center no-repeat;
  appearance: none; color: var(--ink); cursor: pointer;
}

/* ---------- Product tiles ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; }
.tile { display: flex; flex-direction: column; min-width: 0; }
.tile-media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--paper); overflow: hidden; }
.tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s ease; }
.tile-img-alt { opacity: 0; }
.tile-media:hover .tile-img-alt { opacity: 1; }
.tile-flag {
  position: absolute; left: 10px; top: 10px; background: var(--white); padding: 5px 8px; font-size: 10.5px;
}
.tile-info { padding-top: 14px; display: grid; gap: 4px; }
.tile-name { font: 500 15px/1.35 var(--font-text); }
.tile-name a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tile-price { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tile-review { font-size: 12px; color: var(--review-text); }
.tile .swatches { margin-top: 8px; }

/* Colour swatches: a square chip; the picked one gets a black frame */
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch {
  padding: 3px; background: none; border: 1px solid transparent; cursor: pointer; line-height: 0;
}
.swatch-fill {
  display: block; background: var(--paper) center 40% / 400% no-repeat;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.18);
}
.swatch-sm .swatch-fill { width: 20px; height: 20px; }
.swatch-lg .swatch-fill { width: 30px; height: 30px; }
.swatch:hover { border-color: var(--line-strong); }
.swatch[aria-pressed='true'] { border: 1.5px solid var(--black); padding: 2.5px; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.pdp-gallery { display: grid; gap: 12px; }
.gallery-main { position: relative; aspect-ratio: 4 / 5; background: var(--paper); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.9); border: 0; cursor: pointer;
}
.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }
.gallery-count {
  position: absolute; right: 12px; bottom: 12px; background: rgba(255, 255, 255, 0.9);
  font-size: 12px; padding: 3px 8px; font-variant-numeric: tabular-nums;
}
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; }
.thumb { flex: 0 0 76px; padding: 0; border: 1px solid transparent; background: var(--paper); cursor: pointer; }
.thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.thumb[aria-pressed='true'] { border-color: var(--black); }

.pdp-info { position: sticky; top: calc(var(--header-h) + 64px); display: grid; gap: 14px; }
.pdp-title { font: 400 40px/1.08 var(--font-display); }
.pdp-price { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.option { display: grid; gap: 10px; margin-top: 10px; }
.option-row { display: flex; justify-content: space-between; align-items: baseline; }
.option-label { font-size: 12px; }
.option-label span { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 14px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn {
  min-width: 56px; height: 46px; padding: 0 14px; background: var(--white);
  border: 1px solid var(--line-strong); cursor: pointer; font-size: 14px;
}
.size-btn:hover { border-color: var(--black); }
.size-btn[aria-pressed='true'] { background: var(--black); border-color: var(--black); color: var(--white); }
.size-btn.sold-out {
  color: var(--line-strong); cursor: not-allowed;
  background: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--line-strong) 50%, transparent calc(50% + 0.5px));
}
.fit-note { font-size: 13px; color: var(--ink-soft); }
.stock { font-size: 13px; color: var(--ink-soft); }
.stock.low { color: var(--low); }
.stock.out { color: var(--error); }
.buy { display: flex; gap: 10px; margin-top: 8px; }
.btn-grow { flex: 1; }
.ship-note { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.accordions { margin-top: 16px; border-top: 1px solid var(--line); }
.accordions details { border-bottom: 1px solid var(--line); }
.accordions summary {
  display: flex; justify-content: space-between; align-items: center; padding: 18px 0;
  font-size: 12px; cursor: pointer; list-style: none;
}
.accordions summary::-webkit-details-marker { display: none; }
.accordions summary::after { content: '+'; font-size: 20px; font-weight: 300; letter-spacing: 0; }
.accordions details[open] summary::after { content: '−'; }
.rich { padding-bottom: 20px; font-size: 14.5px; color: var(--ink-soft); display: grid; gap: 10px; }
.rich ul, .bullets { padding-left: 18px; list-style: disc; display: grid; gap: 4px; }
.rich strong { color: var(--ink); font-weight: 600; }

.review-flag {
  font-size: 13px; color: var(--review-text); background: var(--review-bg);
  border: 1px solid var(--review-border); padding: 8px 12px;
}
.review-flag summary { cursor: pointer; font-weight: 600; }
p.review-flag { font-weight: 600; }
.review-flag ul { margin-top: 6px; padding-left: 18px; list-style: disc; display: grid; gap: 4px; }

/* Size guide */
.size-dialog {
  width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 64px); border: 0; padding: 28px;
  display: none; gap: 16px;
}
.size-dialog[open] { display: grid; }
.size-dialog::backdrop { background: rgba(17, 17, 17, 0.45); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; }
.dialog-title { font: 400 32px/1 var(--font-display); }
.unit-toggle { display: inline-flex; border: 1px solid var(--line-strong); justify-self: start; }
.unit-toggle button { background: var(--white); border: 0; padding: 8px 14px; font-size: 13px; cursor: pointer; }
.unit-toggle button[aria-pressed='true'] { background: var(--black); color: var(--white); }
.table-wrap { overflow-x: auto; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.size-table thead th { font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.size-table tbody th { font-weight: 600; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; margin-top: 28px; }
.cart-lines { border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-thumb img, .cart-thumb .img-missing { width: 120px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper); }
.cart-line-info { display: grid; gap: 4px; align-content: start; }
.cart-line-name { font-weight: 500; text-decoration: none; font-size: 15.5px; }
.cart-line-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cart-line-actions { display: flex; align-items: center; gap: 20px; margin-top: 10px; }
.cart-line-total { font-weight: 600; font-variant-numeric: tabular-nums; }
.summary { background: var(--paper); padding: 28px; position: sticky; top: calc(var(--header-h) + 64px); display: grid; gap: 12px; }
.summary-title { font-size: 12px; margin-bottom: 6px; }
.summary .row { font-size: 14.5px; }
.summary .total { border-top: 1px solid var(--line-strong); padding-top: 14px; margin: 6px 0 8px; font-weight: 600; font-size: 17px; }
.summary .total small { font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Checkout ---------- */
.checkout-page { max-width: 1080px; }
.checkout-page .page-title { margin-bottom: 24px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; text-decoration: none; margin-bottom: 16px; color: var(--ink-soft); }
.back-link:hover { color: var(--ink); }
#checkout { min-height: 200px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--paper); margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand img { width: 132px; height: auto; }
.footer-brand p { color: #b9b5ac; max-width: 26em; }
.footer-title { font-size: 11.5px; color: #b9b5ac; margin-bottom: 14px; }
.footer-links { display: grid; gap: 8px; font-size: 14px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-base { border-top: 1px solid #2a2a2a; padding-top: 18px; padding-bottom: 28px; font-size: 12.5px; color: #8f8b83; }

.img-missing { display: block; background: var(--paper); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-link { padding-left: 9px; padding-right: 9px; font-size: 11.5px; }
}
@media (max-width: 1080px) {
  :root { --gutter: 24px; --header-h: 60px; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdp { gap: 36px; }
  .pdp-info, .summary { top: calc(var(--header-h) + 16px); }
  .cart-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 48px var(--gutter); }
  .hero-media { padding: 40px var(--gutter); }
  .pdp { grid-template-columns: 1fr; }
  .pdp-info { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 14.5px; }
  .logo img { width: 124px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .tile-name, .tile-price { font-size: 14px; }
  .page-title { font-size: 34px; }
  .section { padding-top: 40px; }
  .section-title { font-size: 28px; }
  .pdp-title { font-size: 32px; }
  .category-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .category-label { font-size: 22px; padding: 14px; }
  .cart-line { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .cart-thumb img, .cart-thumb .img-missing { width: 88px; }
  .cart-line-total { grid-column: 2; }
  .toolbar { flex-wrap: wrap; }
  .summary { padding: 20px; }
  .size-dialog { padding: 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
