/* ==========================================================================
   Myt Online — storefront styles
   ========================================================================== */

:root {
  --bg: #f6f1e8;
  --surface: #fffdf8;
  --sand: #ece3d2;
  --ink: #1e2620;
  --ink-soft: #3b443d;
  --muted: #6d6a5f;
  --line: #e2d8c6;
  --accent: #2f4a3a;
  --accent-ink: #f6f1e8;
  --accent-hover: #233a2c;
  --clay: #b0603a;
  --clay-soft: #f3e2d6;
  --success: #2f6b46;
  --danger: #a33a2b;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(30, 38, 32, .06), 0 8px 24px rgba(30, 38, 32, .08);
  --shadow-lg: 0 24px 60px rgba(30, 38, 32, .18);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); font-weight: 600; margin: 0 0 .9rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius); z-index: 1000; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.5rem;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; letter-spacing: .01em;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-light { background: var(--surface); color: var(--ink); }
.btn-light:hover { background: var(--sand); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 1.1rem; font-size: .88rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--clay); }

/* ---------- Announcement + header ---------- */
.announce { background: var(--accent); color: var(--accent-ink); font-size: .82rem; text-align: center; padding: 8px var(--gutter); letter-spacing: .02em; }
.announce strong { font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 241, 232, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); gap: 1rem; }
.header-left { display: none; }
.logo { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; text-decoration: none; letter-spacing: -.02em; justify-self: start; display: inline-flex; align-items: baseline; gap: .1em; }
.logo span { color: var(--clay); }
.main-nav ul { display: flex; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-size: .93rem; font-weight: 500; padding: 6px 0; border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-color: var(--ink); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: .25rem; }
.icon-btn { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: 999px; text-decoration: none; }
.icon-btn:hover { background: var(--sand); }
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--clay); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.cart-count[hidden] { display: none; }
.menu-toggle { display: none; }

/* Mobile nav */
.mobile-nav { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.mobile-nav.open { visibility: visible; }
.mobile-nav .scrim { position: absolute; inset: 0; background: rgba(20, 24, 21, .45); opacity: 0; transition: opacity .25s; }
.mobile-nav.open .scrim { opacity: 1; }
.mobile-nav .panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(340px, 86vw); background: var(--bg); padding: 20px 24px; transform: translateX(-100%); transition: transform .3s ease; display: flex; flex-direction: column; gap: 1rem; overflow-y: auto; }
.mobile-nav.open .panel { transform: none; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--serif); font-size: 1.35rem; }
.mobile-nav .panel-head { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav .small-links a { font-family: var(--sans); font-size: .95rem; padding: 10px 0; border: 0; color: var(--muted); }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 95; visibility: hidden; }
.search-overlay.open { visibility: visible; }
.search-overlay .scrim { position: absolute; inset: 0; background: rgba(20, 24, 21, .45); opacity: 0; transition: opacity .2s; }
.search-overlay.open .scrim { opacity: 1; }
.search-panel { position: relative; background: var(--bg); padding: 28px 0 32px; transform: translateY(-20px); opacity: 0; transition: transform .25s, opacity .25s; box-shadow: var(--shadow-lg); }
.search-overlay.open .search-panel { transform: none; opacity: 1; }
.search-form { display: flex; gap: .75rem; align-items: center; border-bottom: 1.5px solid var(--ink); padding-bottom: 8px; }
.search-form input { flex: 1; border: 0; background: transparent; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); padding: 6px 0; outline: none; min-width: 0; }
.search-results { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.search-hit { display: flex; gap: 12px; align-items: center; text-decoration: none; padding: 8px; border-radius: var(--radius); }
.search-hit:hover, .search-hit:focus { background: var(--sand); }
.search-hit img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
.search-hit .t { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.search-hit .p { font-size: .85rem; color: var(--muted); }
.search-empty { color: var(--muted); margin-top: 16px; }
.search-suggest { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; color: var(--muted); }

/* ---------- Drawer (cart) ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(20, 24, 21, .45); opacity: 0; transition: opacity .25s; }
.drawer.open .scrim { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--surface); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s ease; box-shadow: var(--shadow-lg); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.4rem; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 24px 24px; display: grid; gap: 10px; }
.drawer-foot .row { display: flex; justify-content: space-between; font-weight: 600; }
.drawer-foot .note { font-size: .82rem; color: var(--muted); margin: 0; }
.drawer-empty { text-align: center; padding: 48px 8px; }
.drawer-empty p { color: var(--muted); }

/* Free shipping meter */
.ship-meter { background: var(--sand); border-radius: var(--radius); padding: 12px 14px; font-size: .86rem; margin: 14px 0 6px; }
.ship-meter .bar { height: 6px; background: var(--line); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.ship-meter .bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .4s ease; }
.ship-meter.done { background: #e4eee5; color: var(--success); }

/* Line items */
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line:last-child { border-bottom: 0; }
.line img { width: 76px; height: 92px; object-fit: cover; border-radius: 4px; background: var(--sand); }
.line .name { font-weight: 600; text-decoration: none; line-height: 1.3; display: block; }
.line .name:hover { text-decoration: underline; }
.line .meta { font-size: .85rem; color: var(--muted); margin: 2px 0 10px; }
.line .price { font-weight: 600; text-align: right; }
.line .remove { background: none; border: 0; padding: 0; color: var(--muted); font-size: .82rem; text-decoration: underline; margin-left: 12px; }
.line .remove:hover { color: var(--danger); }
.line .controls { display: flex; align-items: center; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 999px; font-size: 1.1rem; line-height: 1; display: grid; place-items: center; }
.qty button:hover { background: var(--sand); }
.qty input { width: 36px; text-align: center; border: 0; background: transparent; font-weight: 600; -moz-appearance: textfield; padding: 0; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.lg button { width: 44px; height: 46px; }
.qty.lg input { width: 44px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 200; display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: none; border: 0; color: #f0c9b2; font-weight: 600; text-decoration: underline; padding: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; min-height: min(calc(100vh - 110px), 660px); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 48px var(--gutter) 64px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.hero-copy h1 { max-width: 13ch; margin-bottom: .4em; }
.hero-copy h1 em { font-style: italic; color: var(--clay); font-weight: 400; }
.hero-copy .lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 42ch; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { position: relative; overflow: hidden; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; left: 24px; bottom: 24px; background: var(--surface); padding: 14px 18px; border-radius: var(--radius-lg); box-shadow: var(--shadow); font-size: .88rem; max-width: 260px; }
.hero-badge strong { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 500; }
.hero-points { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.hero-points span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.7; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: .4rem 0 0; color: var(--muted); max-width: 52ch; }
.bg-surface { background: var(--surface); }
.bg-sand { background: var(--sand); }
.bg-ink { background: var(--accent); color: var(--accent-ink); }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-tile { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: #fff; isolation: isolate; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; z-index: -2; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 22, 19, .72), rgba(18, 22, 19, .05) 55%); z-index: -1; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile .label { position: absolute; left: 20px; right: 20px; bottom: 18px; }
.cat-tile h3 { font-size: 1.6rem; margin: 0; color: #fff; }
.cat-tile span { font-size: .85rem; opacity: .85; }

/* Product grid + cards */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 20px; }
.card { display: flex; flex-direction: column; position: relative; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-quick { position: absolute; left: 12px; right: 12px; bottom: 12px; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.card:hover .card-quick, .card:focus-within .card-quick { opacity: 1; transform: none; }
.card-quick .btn { width: 100%; min-height: 42px; box-shadow: var(--shadow); }
.card-tag { position: absolute; top: 12px; left: 12px; background: var(--surface); color: var(--ink); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.card-body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 2px; }
.card-cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.card-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; line-height: 1.25; text-decoration: none; }
.card-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-summary { font-size: .88rem; color: var(--muted); margin: 2px 0 4px; }
.card-price { font-weight: 600; }
.card-price small { font-weight: 400; color: var(--muted); }

/* Value props */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value svg { width: 34px; height: 34px; stroke: var(--clay); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.value h3 { font-size: 1.35rem; }
.value p { color: var(--muted); margin: 0; }
.bg-ink .value p { color: rgba(246, 241, 232, .75); }
.bg-ink .value svg { stroke: #e7b394; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 1.2rem; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 1.18rem; line-height: 1.45; }
.quote figcaption { font-size: .88rem; color: var(--muted); }
.quote figcaption strong { color: var(--ink); font-weight: 600; }

/* Split / story */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy p { color: var(--ink-soft); font-size: 1.05rem; }

/* Banner */
.banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; display: flex; align-items: center; color: #fff; isolation: isolate; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 26, 20, .78), rgba(18, 26, 20, .15) 70%); z-index: -1; }
.banner-copy { padding: clamp(28px, 5vw, 64px); max-width: 560px; }
.banner-copy h2 { color: #fff; }
.banner-copy p { opacity: .9; font-size: 1.05rem; }

/* ---------- Page header ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 36px); }
.page-head h1 { margin-bottom: .25em; }
.page-head p { color: var(--muted); max-width: 60ch; font-size: 1.05rem; margin: 0; }
.cat-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 260px; display: flex; align-items: end; color: #fff; isolation: isolate; margin-top: 24px; }
.cat-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cat-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 22, 19, .7), rgba(18, 22, 19, .1)); z-index: -1; }
.cat-hero .inner { padding: 32px; }
.cat-hero h1 { color: #fff; margin: 0 0 .2em; }
.cat-hero p { color: rgba(255, 255, 255, .88); margin: 0; max-width: 56ch; }

.breadcrumb { font-size: .85rem; color: var(--muted); padding-top: 24px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Shop toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 32px; position: sticky; top: var(--header-h); background: var(--bg); z-index: 20; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 15px; font-size: .88rem; font-weight: 500; text-decoration: none; }
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill .n { opacity: .6; margin-left: 4px; font-weight: 400; }
.toolbar-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.field-inline { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.select, .input-sm { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: .9rem; min-height: 40px; }
.select { padding-right: 34px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231e2620' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input-sm { width: 200px; }
.result-count { font-size: .88rem; color: var(--muted); margin: -12px 0 20px; }
.empty-state { text-align: center; padding: 64px 16px; }
.empty-state p { color: var(--muted); }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); padding: 24px 0 clamp(48px, 6vw, 80px); align-items: start; }
.pdp-media { position: sticky; top: calc(var(--header-h) + 20px); }
.pdp-media .main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); cursor: zoom-in; }
.pdp-media .main img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; transform-origin: center; }
.pdp-media .main.zoom img { transform: scale(1.8); }
.pdp-info h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: .25em; }
.pdp-price { font-size: 1.45rem; font-weight: 600; margin: 0 0 1rem; }
.pdp-price small { font-size: .9rem; font-weight: 400; color: var(--muted); }
.pdp-summary { font-size: 1.12rem; color: var(--ink-soft); }
.pdp-blurb { color: var(--muted); }
.opt-label { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 600; margin: 1.6rem 0 .6rem; }
.opt-label span { font-weight: 400; color: var(--muted); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.sizes legend { padding: 0; }
.size-opt input { position: absolute; opacity: 0; pointer-events: none; }
.size-opt label { display: inline-flex; flex-direction: column; align-items: center; min-width: 96px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.size-opt label b { font-weight: 600; font-size: .95rem; }
.size-opt label small { color: var(--muted); font-size: .8rem; }
.size-opt label:hover { border-color: var(--ink); }
.size-opt input:checked + label { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.size-opt input:focus-visible + label { outline: 2px solid var(--clay); outline-offset: 2px; }
.buy-row { display: flex; gap: 12px; margin-top: 1.6rem; }
.buy-row .btn { flex: 1; }
.pdp-assure { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: 10px; font-size: .92rem; }
.pdp-assure li { display: flex; gap: 10px; align-items: flex-start; }
.pdp-assure svg { flex: none; width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.6; margin-top: 2px; }
.field-error { color: var(--danger); font-size: .85rem; margin-top: 8px; min-height: 1.2em; }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.4rem; font-weight: 300; transition: transform .2s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .content { padding: 0 0 18px; color: var(--ink-soft); font-size: .95rem; }
.accordion .content p:last-child { margin: 0; }
.spec { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec th, .spec td { text-align: left; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.spec th { font-weight: 600; width: 40%; }

/* Sticky mobile buy bar */
.mobile-buy { display: none; }

/* ---------- Cart page ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 80px; }
.cart-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 4px 24px; }
.cart-list .line { grid-template-columns: 100px 1fr auto; }
.cart-list .line img { width: 100px; height: 120px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary h2 { font-size: 1.4rem; }
.summary dl { margin: 0; display: grid; gap: 10px; font-size: .95rem; }
.summary dl div { display: flex; justify-content: space-between; gap: 1rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.summary .total { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; font-size: 1.15rem; }
.summary .total dt { color: var(--ink); font-weight: 600; }
.summary .btn { margin-top: 18px; }
.summary .fine { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.pay-icons { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.pay-icons span { border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 420px; gap: clamp(24px, 4vw, 64px); align-items: start; padding-bottom: 80px; }
.checkout-steps { display: flex; gap: 10px; font-size: .85rem; color: var(--muted); margin-bottom: 24px; flex-wrap: wrap; }
.checkout-steps b { color: var(--ink); }
.fieldset { border: 0; padding: 0; margin: 0 0 32px; }
.fieldset legend { font-family: var(--serif); font-size: 1.45rem; margin-bottom: 14px; padding: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.grid-2 .field, .grid-3 .field { margin-bottom: 0; }
.grid-2 + .field, .grid-3 + .field, .field + .grid-2, .field + .grid-3, .grid-2 + .grid-2, .grid-2 + .grid-3 { margin-top: 14px; }
.field label { font-size: .86rem; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 12px 14px; font-size: 1rem; min-height: 48px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231e2620' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 74, 58, .15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .8rem; display: none; }
.field.invalid .err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 8px 0; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.radio-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--ink); box-shadow: inset 0 0 0 1px var(--ink); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); }
.radio-card .t { font-weight: 600; }
.radio-card .s { font-size: .85rem; color: var(--muted); }
.pay-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.pay-box svg { width: 28px; height: 28px; flex: none; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.pay-box p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.summary .line { grid-template-columns: 64px 1fr auto; padding: 12px 0; }
.summary .line img { width: 64px; height: 76px; }
.thumb-wrap { position: relative; }
.thumb-wrap .badge { position: absolute; top: -8px; right: -8px; background: var(--muted); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; font-size: .75rem; display: grid; place-items: center; font-weight: 700; padding: 0 6px; }
.summary-lines { max-height: 340px; overflow-y: auto; margin: 0 -6px 16px; padding: 0 6px; border-bottom: 1px solid var(--line); }
.form-alert { background: #f7e3df; color: var(--danger); border-radius: var(--radius); padding: 12px 16px; font-size: .92rem; margin-bottom: 18px; display: none; }
.form-alert.show { display: block; }

.confirm { text-align: center; max-width: 640px; margin: 0 auto; padding: 56px 0 96px; }
.confirm .tick { width: 72px; height: 72px; border-radius: 50%; background: #e4eee5; display: grid; place-items: center; margin: 0 auto 20px; }
.confirm .tick svg { width: 34px; height: 34px; stroke: var(--success); fill: none; stroke-width: 2.2; }
.confirm .order-no { display: inline-block; font-family: var(--serif); font-size: 1.3rem; background: var(--surface); border: 1px dashed var(--line); padding: 8px 18px; border-radius: var(--radius); margin: 8px 0 20px; }
.confirm .box { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin: 24px 0; }

/* ---------- Prose (policy pages) ---------- */
.prose { max-width: 720px; padding-bottom: 96px; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); font-size: 1.04rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--clay); padding: 18px 22px; border-radius: var(--radius); margin: 1.6rem 0; }
.callout p { margin: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.policy-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }

/* Facts row */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 40px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.fact b { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; line-height: 1.1; margin-bottom: 4px; }
.fact span { color: var(--muted); font-size: .9rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); padding-bottom: 96px; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.contact-card h2 { font-size: 1.5rem; }
.faq { margin-top: 32px; }

/* Credits */
.credits-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.credits-list li { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; font-size: .85rem; }
.credits-list img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; flex: none; }
.credits-list a { color: var(--accent); font-weight: 600; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: #1b231d; color: #d9d3c6; padding: 72px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .logo { color: #f6f1e8; margin-bottom: 14px; }
.site-footer p { color: #aaa597; font-size: .92rem; max-width: 36ch; }
.site-footer h3 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #f6f1e8; font-weight: 600; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: #d9d3c6; font-size: .93rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 56px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #8f8a7d; }
.footer-bottom .pay-icons span { border-color: rgba(255, 255, 255, .18); color: #aaa597; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; color: #f6f1e8 !important; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 96px 0 120px; }
.notfound .big { font-family: var(--serif); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--clay); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .main-nav ul { gap: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .logo { justify-self: center; grid-column: 2; font-size: 1.45rem; }
  .header-left { display: block; grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 3; grid-row: 1; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { aspect-ratio: 4 / 3.4; order: -1; }
  .hero-copy { padding: 40px var(--gutter) 48px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .values, .quotes { grid-template-columns: 1fr; gap: 24px; }
  .split, .pdp, .cart-layout, .checkout-layout, .contact-grid { grid-template-columns: 1fr; }
  .pdp-media { position: static; }
  .summary { position: static; }
  .checkout-layout .summary { order: -1; }
  .facts { grid-template-columns: 1fr; }
  .toolbar { position: static; }
  .mobile-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 12px; align-items: center; transform: translateY(110%); transition: transform .25s; }
  .mobile-buy.show { transform: none; }
  .mobile-buy .p { font-weight: 600; flex: none; }
  .mobile-buy .btn { flex: 1; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .card-title { font-size: 1rem; }
  .card-summary { display: none; }
  .card-quick { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toolbar-right { width: 100%; }
  .toolbar-right .input-sm { flex: 1; width: auto; min-width: 0; }
  .cart-list { padding: 4px 14px; }
  .cart-list .line { grid-template-columns: 76px 1fr; }
  .cart-list .line img { width: 76px; height: 92px; }
  .cart-list .line .price { grid-column: 2; text-align: left; }
  .hero-badge { display: none; }
  .announce { font-size: .76rem; }
  .banner { min-height: 320px; }
  .section-head { margin-bottom: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
