:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --sand: #f1ebe2;
  --line: #e6dfd4;
  --ink: #1f1b16;
  --ink-2: #4a433a;
  --muted: #857b6e;
  --accent: #9a5b34;
  --accent-soft: #f4e7dc;
  --olive: #4f5a3c;
  --danger: #b2402f;
  --ok: #3f6d4a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 27, 22, .04), 0 8px 24px rgba(31, 27, 22, .06);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 0 0 .8em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.section { padding: 64px 24px; }
.container.section { padding-left: 24px; padding-right: 24px; }
.eyebrow { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,.85); margin-bottom: 1rem; }
.eyebrow.dark { color: var(--accent); }
.page-title { margin-bottom: .3em; }
.sub-title { font-size: 1.8rem; margin-top: 2.5rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.6em; border-radius: 999px; border: 1px solid transparent; font: 500 .9rem/1.2 var(--sans); cursor: pointer; transition: all .2s ease; white-space: nowrap; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sand); }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: .55em 1.1em; font-size: .82rem; }
.btn-lg { padding: 1em 2em; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--danger); }
.link-arrow { font-size: .9rem; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " →"; }
.link-arrow.back::after { content: ""; }
.link-arrow.back::before { content: "← "; }
.link-arrow.center { display: table; margin: 1rem auto 0; }

/* ---------- header ---------- */
.announce { background: var(--ink); color: #e9e1d4; text-align: center; font-size: .78rem; letter-spacing: .04em; padding: 8px 16px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 242, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; letter-spacing: -.01em; }
.logo span { font-style: italic; color: var(--accent); }
.logo.light { color: #fff; }
.main-nav { display: flex; gap: 22px; flex: 1; }
.main-nav a { font-size: .88rem; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; transition: .2s; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); border-color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px; border-radius: 999px; background: none; border: 0; color: var(--ink); font-size: .88rem; cursor: pointer; position: relative; white-space: nowrap; }
.icon-btn:hover { background: var(--sand); }
.menu-toggle { display: none; }
.search { position: relative; }
.search input { width: 180px; padding: 9px 14px 9px 34px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: inherit; font-size: .85rem; transition: width .25s; }
.search input:focus { outline: none; border-color: var(--ink-2); width: 220px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.cart-badge { position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 600; display: grid; place-items: center; }
.cart-badge[hidden] { display: none; }
.cart-badge.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

.flashes { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 10px; font-size: .9rem; border: 1px solid; }
.flash-success { background: #eef4ec; border-color: #cfe0cb; color: var(--ok); }
.flash-info { background: var(--accent-soft); border-color: #ead4c3; color: var(--accent); }
.flash-error { background: #fbecea; border-color: #f0cdc8; color: var(--danger); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,.1) 0%, rgba(20,16,12,.25) 40%, rgba(20,16,12,.7) 100%); }
.hero-content { position: relative; padding-bottom: 72px; padding-top: 120px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 14ch; }
.hero .lead { font-size: 1.1rem; max-width: 40ch; color: rgba(255,255,255,.9); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.perks div { display: flex; flex-direction: column; }
.perks strong { font-weight: 600; font-size: .92rem; }
.perks span { color: var(--muted); font-size: .85rem; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; gap: 16px; }
.section-head h2 { margin: 0; }

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; color: #fff; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20,16,12,.65)); }
.cat-tile:hover img { transform: scale(1.05); }
.cat-label { position: absolute; left: 22px; bottom: 18px; right: 22px; z-index: 1; }
.cat-label h3 { margin: 0; font-size: 1.9rem; }
.cat-label span { font-size: .82rem; opacity: .9; }

/* ---------- product grid / card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 22px; }
.product-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.product-card { display: flex; flex-direction: column; }
.pc-media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover .pc-media img { transform: scale(1.045); }
.tag { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ink); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.tag-sale { background: var(--accent); color: #fff; }
.pc-body { padding-top: 14px; display: flex; flex-direction: column; flex: 1; }
.pc-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.pc-name { font-weight: 500; font-size: .98rem; }
.pc-name:hover { color: var(--accent); }
.pc-price { font-weight: 600; white-space: nowrap; text-align: right; font-size: .95rem; }
.pc-price s { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.pc-meta { font-size: .82rem; color: var(--muted); margin: 2px 0 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pc-add { margin-top: auto; }
.pc-add .btn { width: 100%; }

.stars { display: inline-flex; gap: 1px; vertical-align: -1px; }
.star { width: 12px; height: 12px; display: inline-block; background: #d9cfc1; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.star.full { background: #c08a3e; }
.star.half { background: linear-gradient(90deg, #c08a3e 50%, #d9cfc1 50%); }

/* ---------- story / newsletter ---------- */
.story { background: var(--sand); padding: 80px 0; }
.story-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.story-grid img { border-radius: var(--radius); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.story-grid p { color: var(--ink-2); max-width: 48ch; }
.newsletter { text-align: center; padding: 80px 0; }
.newsletter p { color: var(--muted); }
.nl-form { display: flex; gap: 10px; max-width: 460px; margin: 24px auto 0; }
.nl-form input { flex: 1; }

/* ---------- forms ---------- */
input, select, textarea { font: inherit; font-size: .95rem; color: var(--ink); width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(154, 91, 52, .12); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 500; color: var(--ink-2); margin-bottom: 16px; }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .8rem; font-weight: 400; }
.field-hint { color: var(--muted); font-size: .8rem; font-weight: 400; min-height: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr; gap: 0 16px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .88rem; margin: 12px 0 16px; cursor: pointer; }
.check input { width: auto; }

/* ---------- shop ---------- */
.page-head { padding: 48px 0 36px; border-bottom: 1px solid var(--line); position: relative; }
.page-head.has-image { color: #fff; padding: 110px 0 44px; overflow: hidden; border: 0; }
.page-head.has-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,.15), rgba(20,16,12,.65)); z-index: 1; }
.page-head.has-image .container { position: relative; z-index: 2; }
.page-head.has-image .muted, .page-head.has-image .crumbs { color: rgba(255,255,255,.85); }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { text-decoration: underline; }
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding-top: 40px; padding-bottom: 80px; }
.filters { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; }
.filters > a { padding: 6px 0; font-size: .92rem; color: var(--ink-2); }
.filters > a:hover { color: var(--ink); }
.filters > a.active { color: var(--ink); font-weight: 600; }
.filters > a.active::before { content: "— "; color: var(--accent); }
.price-filter { margin-top: 28px; }
.price-row { display: flex; align-items: center; gap: 8px; }
.price-row input { padding: 9px 10px; }
.clear-link { display: block; text-align: center; margin-top: 10px; font-size: .82rem; color: var(--muted); text-decoration: underline; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.sort select { width: auto; padding: 8px 12px; }
.empty { text-align: center; padding: 64px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- product page ---------- */
.product-page { padding-top: 28px; padding-bottom: 32px; }
.pp-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
.pp-gallery { position: sticky; top: 96px; }
.pp-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sand); aspect-ratio: 1 / 1; cursor: zoom-in; }
.pp-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; transform-origin: center; }
.pp-main.zooming img { transform: scale(1.8); }
.pp-info h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: .25em; }
.pp-rating { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.pp-price { font-size: 1.6rem; font-weight: 600; margin: 8px 0 14px; }
.pp-price s { font-size: 1.05rem; color: var(--muted); font-weight: 400; margin-left: 8px; }
.pp-short { font-size: 1.05rem; color: var(--ink-2); }
.pp-specs-inline { display: grid; grid-template-columns: auto 1fr; gap: 0 28px; margin: 20px 0; }
.pp-specs-inline div { display: contents; }
.pp-specs-inline dt { color: var(--muted); font-size: .85rem; }
.pp-specs-inline dd { margin: 0 0 6px; font-size: .9rem; font-weight: 500; }
.pp-specs-inline dd.ok { color: var(--ok); }
.pp-specs-inline dd.low { color: var(--accent); }
.pp-buy { display: flex; gap: 12px; margin: 24px 0 10px; }
.pp-buy .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { width: 42px; height: 48px; border: 0; background: none; font-size: 1.15rem; cursor: pointer; color: var(--ink-2); }
.qty button:hover { color: var(--accent); }
.qty input { width: 42px; border: 0; padding: 0; text-align: center; font-weight: 600; background: none; -moz-appearance: textfield; }
.qty input:focus { box-shadow: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm button { width: 32px; height: 34px; font-size: 1rem; }
.qty-sm input { width: 30px; font-size: .9rem; }
.pp-perks { list-style: none; padding: 18px 0; margin: 18px 0 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 8px; font-size: .88rem; color: var(--ink-2); }
.pp-perks li::before { content: "✓"; color: var(--ok); margin-right: 10px; font-weight: 600; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 500; display: flex; justify-content: space-between; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); transition: transform .2s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.acc-body { padding-bottom: 18px; color: var(--ink-2); font-size: .93rem; }
.specs { display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; margin: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

/* ---------- cart ---------- */
.cart-grid, .checkout-grid, .order-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; margin-top: 24px; }
.ship-meter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; font-size: .9rem; }
.ship-meter p { margin-bottom: 10px; }
.meter { height: 6px; background: var(--sand); border-radius: 3px; overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #c58a5c); border-radius: 3px; transition: width .4s ease; }
.cart-items { list-style: none; padding: 0; margin: 16px 0; }
.cart-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; transition: opacity .3s, transform .3s; }
.cart-item.removing { opacity: 0; transform: translateX(20px); }
.ci-img { border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--sand); }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-info { display: flex; flex-direction: column; gap: 4px; }
.ci-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.ci-qty { margin-top: 8px; }
.ci-right { text-align: right; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.cart-footer-links { display: flex; justify-content: space-between; align-items: center; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: 96px; box-shadow: var(--shadow); }
.summary h3 { font-size: 1.6rem; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 20px 0; font-size: .92rem; }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; text-align: right; font-weight: 500; }
.summary .total { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.summary h4 { margin-top: 22px; }
.summary address { font-style: normal; font-size: .9rem; color: var(--ink-2); }
.summary-cards { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.card-logo { width: 38px; height: 25px; display: inline-block; vertical-align: middle; }
.stack { display: grid; gap: 10px; margin-top: 24px; }

/* ---------- checkout ---------- */
.card-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 0 0 24px; }
fieldset.card-box { min-width: 0; }
.card-box legend { float: left; width: 100%; font-family: var(--serif); font-size: 1.6rem; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.card-box legend + * { clear: both; }
.step { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 .85rem var(--sans); display: inline-grid; place-items: center; }
.accepted { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.card-input { position: relative; display: block; }
.card-input input { padding-right: 64px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.card-input-logo { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; }
.card-input-logo .card-logo { display: none; width: 40px; height: 26px; }
.card-input-logo[data-active="visa"] [data-brand="visa"],
.card-input-logo[data-active="mastercard"] [data-brand="mastercard"],
.card-input-logo[data-active="amex"] [data-brand="amex"],
.card-input-logo[data-active="discover"] [data-brand="discover"] { display: block; animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.accepted .card-logo { opacity: 1; transition: opacity .25s, filter .25s; }
.accepted.has-brand .card-logo { opacity: .25; filter: grayscale(1); }
.accepted.has-brand .card-logo.match { opacity: 1; filter: none; }

.card-preview { position: relative; max-width: 360px; aspect-ratio: 1.586; border-radius: 16px; padding: 22px 24px; color: #fff; margin: 0 0 24px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(135deg, #3a332b, #1f1b16); box-shadow: 0 14px 30px rgba(31,27,22,.25); transition: background .5s ease; overflow: hidden; }
.card-preview::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; right: -90px; top: -120px; background: rgba(255,255,255,.07); }
.card-preview[data-brand="visa"] { background: linear-gradient(135deg, #1a3fb8, #0b1f6b); }
.card-preview[data-brand="mastercard"] { background: linear-gradient(135deg, #2b2b2b, #0f0f0f); }
.card-preview[data-brand="amex"] { background: linear-gradient(135deg, #2a7fd6, #145a9c); }
.card-preview[data-brand="discover"] { background: linear-gradient(135deg, #e8822d, #b9541a); }
.cp-top { display: flex; justify-content: space-between; align-items: center; }
.cp-chip { width: 42px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #e9d29b, #b99a52); }
.cp-brand .card-logo { width: 58px; height: 38px; }
.cp-number { font-size: 1.35rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.cp-bottom { display: flex; justify-content: space-between; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.secure-note { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin: 6px 0 0; }
.mini-items { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.mini-items li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; font-size: .9rem; }
.mini-items.big li { grid-template-columns: 80px 1fr auto; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mi-img { position: relative; }
.mi-img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.mi-img b { position: absolute; top: -6px; right: -6px; background: var(--ink); color: #fff; font-size: .7rem; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; }
.mi-name { display: flex; flex-direction: column; font-weight: 500; }
.mi-name small { color: var(--muted); font-weight: 400; }
.mi-name a:hover { color: var(--accent); }

/* ---------- auth ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 110px); }
.auth-art img { width: 100%; height: 100%; object-fit: cover; }
.auth-panel { padding: 72px clamp(24px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; max-width: 620px; }
.auth-form { margin-top: 24px; }
.auth-switch { margin-top: 20px; font-size: .9rem; color: var(--muted); }
.auth-switch a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- account / orders ---------- */
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; display: flex; flex-direction: column; }
.stats span { color: var(--muted); font-size: .82rem; }
.stats strong { font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.order-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.order-row { display: grid; grid-template-columns: auto 1fr auto auto 20px; align-items: center; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; transition: .2s; }
.order-row:hover { border-color: var(--ink-2); box-shadow: var(--shadow); }
.or-thumbs { display: flex; }
.or-thumbs img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; border: 2px solid #fff; margin-left: -14px; }
.or-thumbs img:first-child { margin-left: 0; }
.or-main { display: flex; flex-direction: column; }
.or-total { font-size: 1.05rem; }
.chev { font-size: 1.4rem; color: var(--muted); }
.status { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--sand); color: var(--ink-2); }
.status-paid { background: #eef4ec; color: var(--ok); }
.order-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.order-meta div { display: flex; flex-direction: column; }
.order-meta span { font-size: .8rem; color: var(--muted); }
.paid-with { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.success-hero { text-align: center; padding: 16px 0 24px; }
.success-hero p { color: var(--ink-2); }
.check-circle { width: 72px; height: 72px; border-radius: 50%; background: #eef4ec; color: var(--ok); display: grid; place-items: center; margin: 0 auto 20px; animation: pop .5s ease; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cfc6b8; margin-top: 40px; padding: 64px 0 28px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; }
.footer-grid a, .footer-grid span { display: block; padding: 3px 0; color: #cfc6b8; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { max-width: 36ch; margin-top: 14px; color: #a39a8c; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid #3a342c; font-size: .8rem; color: #8f8679; gap: 16px; flex-wrap: wrap; }
.pay-icons { display: flex; gap: 6px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 12px; font-size: .9rem; box-shadow: 0 12px 30px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: .3s ease; z-index: 100; display: flex; gap: 16px; align-items: center; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #f0c9a6; text-decoration: underline; white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { gap: 16px; }
  .search input { width: 140px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-row { gap: 12px; }
  .search { display: none; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .product-grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
  .story-grid, .pp-grid { grid-template-columns: 1fr; gap: 32px; }
  .pp-gallery { position: static; }
  .shop-layout { grid-template-columns: 1fr; gap: 24px; }
  .filters { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
  .filters h4 { width: 100%; }
  .price-filter { width: 100%; margin-top: 12px; }
  .cart-grid, .checkout-grid, .order-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .container, .container.section { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 44px; padding-bottom: 44px; }
  .hide-sm { display: none; }
  .logo { font-size: 1.5rem; }
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid, .product-grid.grid-3 { gap: 24px 12px; }
  .pc-top { flex-direction: column; gap: 2px; }
  .pc-price { text-align: left; }
  .pc-price s { display: inline; margin-left: 6px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 84px 1fr; }
  .ci-right { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
  .pp-buy { flex-direction: column; }
  .qty { align-self: flex-start; }
  .order-row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .or-thumbs, .chev { display: none; }
  .stats { grid-template-columns: 1fr; }
  .order-meta { grid-template-columns: 1fr 1fr; }
  .nl-form { flex-direction: column; }
  .card-box, .summary { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
