:root {
  --bg: #f5f0e6;
  --surface: #fffdf8;
  --ink: #1c2420;
  --muted: #56615a;
  --green: #1f3d2f;
  --green-2: #2f5a45;
  --accent: #b4532c;
  --accent-2: #9a4423;
  --line: #dcd4c3;
  --danger: #a12a1f;
  --radius: 14px;
  --radius-control: 999px;
  --pad: clamp(18px, 4vw, 56px);
  --display: "Fraunces", Georgia, serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
em { font-style: italic; font-weight: 500; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border: 0; border-radius: var(--radius-control); background: var(--green); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--green-2); }
.btn:disabled { background: #b9bfb9; color: #fff; cursor: not-allowed; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-2); }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); min-height: 44px; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.text-link { font-weight: 700; text-underline-offset: 4px; }
.text-btn { background: none; border: 0; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--muted); font-size: .9rem; }
.text-btn:hover { color: var(--ink); }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 20px; padding: 14px var(--pad); min-height: 64px; }
.brand { font-family: var(--display); font-size: 1.5rem; font-weight: 700; text-decoration: none; white-space: nowrap; color: var(--green); }
.brand em { color: var(--accent); }
.nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1.5px solid var(--ink); border-radius: var(--radius-control); min-height: 44px; padding: 0 18px; font-weight: 700; cursor: pointer; }
.cart-btn:hover { background: var(--ink); color: #fff; }
.cart-count:empty { display: none; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .8rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; font-weight: 700; min-height: 44px; padding: 0 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 6px var(--pad) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px; background: var(--green); color: #f5f0e6; padding: clamp(40px, 8vw, 110px) var(--pad); }
.hero h1 em { color: #e9b58f; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: #a9d3a7; margin-bottom: 16px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 46ch; margin: 20px 0 30px; color: #e3e9e2; }
.hero-art svg { width: min(100%, 380px); margin: 0 auto; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } .hero-art { order: -1; } .hero-art svg { width: 190px; margin: 0; } }

.section { padding: clamp(36px, 6vw, 80px) var(--pad); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head { padding: clamp(28px, 5vw, 64px) var(--pad) 0; }
.page-head p { color: var(--muted); max-width: 60ch; margin-top: 10px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-underline-offset: 3px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.cat-card { display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; padding: 22px; border-radius: var(--radius); text-decoration: none; background: var(--surface); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.cat-card:hover { transform: translateY(-3px); border-color: var(--green); }
.cat-card:nth-child(4n+1) { background: #e4ecdf; }
.cat-card:nth-child(4n+2) { background: #f1dfd1; }
.cat-card:nth-child(4n+3) { background: #ece5cf; }
.cat-card:nth-child(4n+4) { background: #dfe6e9; }
.cat-card h3 { font-size: 1.45rem; }
.cat-card p { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.cat-card span { margin-top: 14px; font-weight: 700; font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 20px; }
.grid.dim { opacity: .5; }
.tile { display: flex; flex-direction: column; text-decoration: none; }
.tile-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tile:hover .tile-media img { transform: scale(1.04); }
.tile-name { font-weight: 700; margin-top: 12px; }
.tile-meta { color: var(--muted); font-size: .88rem; }
.tile-price { margin-top: 4px; }
.was { color: var(--muted); text-decoration: line-through; margin-left: 8px; }
.ribbons { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.ribbon { background: var(--green); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-control); }
.ph { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; background: linear-gradient(160deg, #e9efe4, #f3e6da); color: var(--green-2); font-size: .85rem; font-weight: 500; }
.ph svg { width: 54px; height: 54px; }
.skeleton .tile-media { background: linear-gradient(100deg, #ebe4d5 30%, #f5f0e6 50%, #ebe4d5 70%); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
.skeleton .line { height: 14px; width: 70%; margin-top: 12px; border-radius: 6px; background: #e6dfcf; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.steps-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.steps p { color: var(--muted); margin-top: 8px; }
.step-no { display: block; font-family: var(--display); font-size: 2.6rem; color: var(--accent); line-height: 1; margin-bottom: 10px; }

.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 22px var(--pad) 0; }
.toolbar .count { color: var(--muted); margin-right: auto; }
.field { min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); }
.field:focus { border-color: var(--green); outline: none; }
textarea.field { padding: 12px 14px; min-height: 96px; width: 100%; resize: vertical; }
.state { padding: 40px 0; text-align: center; color: var(--muted); grid-column: 1 / -1; }
.state .btn { margin-top: 16px; }
.more-wrap { display: flex; justify-content: center; padding-top: 32px; }

.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); padding: clamp(24px, 4vw, 56px) var(--pad) clamp(48px, 7vw, 96px); align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.gallery-main { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 68px; height: 68px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--green); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.p-info h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.p-price { font-size: 1.5rem; font-weight: 700; margin: 14px 0 6px; }
.p-desc { color: var(--muted); margin: 14px 0 22px; }
.p-desc p { margin: 0 0 8px; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
legend, .label { font-weight: 700; margin-bottom: 8px; display: block; padding: 0; }
.label small { font-weight: 400; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: var(--radius-control); background: var(--surface); cursor: pointer; font-weight: 500; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.swatch { width: 44px; padding: 0; }
.mod { margin-bottom: 20px; }
.hint { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.buy .btn { flex: 1 1 220px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-control); background: var(--surface); }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; border-radius: 999px; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper span { min-width: 28px; text-align: center; font-weight: 700; }
.note { color: var(--muted); font-size: .92rem; margin-top: 12px; }
.error { color: var(--danger); font-size: .92rem; margin-top: 12px; }
.info-sec { border-top: 1px solid var(--line); padding: 16px 0; margin-top: 22px; }
.info-sec h2 { font-size: 1.1rem; font-family: var(--body); margin-bottom: 6px; }

.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(20, 28, 24, .5); display: flex; justify-content: flex-end; }
.drawer { width: min(440px, 100%); height: 100%; background: var(--bg); display: flex; flex-direction: column; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.4rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.line-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-item .thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.line-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-item .thumb .ph span { display: none; }
.line-item .thumb .ph svg { width: 30px; height: 30px; }
.line-name { font-weight: 700; }
.line-desc { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.line-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.line-actions .stepper button { width: 36px; height: 36px; }
.line-price { font-weight: 700; text-align: right; white-space: nowrap; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin-bottom: 14px; }
.totals .total { font-weight: 700; font-size: 1.15rem; padding-top: 8px; border-top: 1px solid var(--line); }
.empty { text-align: center; padding: 48px 0; color: var(--muted); }
.empty .btn { margin-top: 18px; }

.prose { padding: clamp(24px, 4vw, 56px) var(--pad) clamp(48px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 62ch) 1fr; gap: 40px; }
.prose p { margin-bottom: 16px; font-size: 1.08rem; }
.prose h2 { margin: 28px 0 12px; }
@media (max-width: 820px) { .prose { grid-template-columns: 1fr; } }

.site-footer { background: var(--green); color: #e3e9e2; padding: 44px var(--pad) 32px; }
.foot { display: flex; gap: 32px; justify-content: space-between; flex-wrap: wrap; }
.foot .brand { color: #f5f0e6; }
.foot .brand em { color: #e9b58f; }
.foot p { max-width: 40ch; margin-top: 10px; color: #c5d2c7; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot a { text-underline-offset: 4px; }
.copy { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(245, 240, 230, .2); font-size: .85rem; color: #c5d2c7; }
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img { height: 46px; width: auto; max-width: 200px; object-fit: contain; }
