:root {
  --green: #4A5D32;
  --green-dark: #3A4A27;
  --ember: #A84F1F;
  --ember-dark: #8C4019;
  --ink: #2B2B2B;
  --muted: #555555;
  --bg: #F7F4EE;
  --card: #FFFFFF;
  --line: #DDD6C8;
  --sand: #E9E4D8;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }

/* Header */
.site-header { background: #fff; border-bottom: 4px solid var(--green); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.logo { height: 88px; width: auto; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: .06em; text-transform: uppercase; }
.main-nav a { text-decoration: none; color: var(--ink); padding: 10px 0; }
.main-nav a:hover { color: var(--green); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 2px solid var(--green); border-radius: 6px; background: #fff; color: var(--green); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.cart-btn:hover { background: var(--green); color: #fff; }
.cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--ember); color: #fff; font-size: 15px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 6px; border: 2px solid transparent; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn-ember { background: var(--ember); color: #fff; }
.btn-ember:hover { background: var(--ember-dark); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--green-dark); }
.btn[disabled] { opacity: .6; cursor: wait; }
.icon-btn { width: 44px; height: 44px; border: none; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink); border-radius: 6px; }
.icon-btn:hover { background: var(--sand); }

/* Hero */
.hero { color: #fff; background: linear-gradient(rgba(30,38,20,.78), rgba(30,38,20,.78)), url('../images/AC4705_2.jpg') center / cover no-repeat, var(--green); }
.hero-inner { padding-top: 84px; padding-bottom: 84px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.eyebrow { margin: 0; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: .12em; text-transform: uppercase; color: #E9E4D8; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: .02em; text-transform: uppercase; max-width: 820px; }
.lead { margin: 0; font-size: 19px; max-width: 640px; color: #F1EEE6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Catalog */
.cat-section { padding: 56px 0 16px; }
.cat-section, .custom, .hero { scroll-margin-top: 100px; }
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 22px; }
.cat-head h2, .custom h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 40px; letter-spacing: .04em; text-transform: uppercase; }
.cat-head p { margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product { display: flex; flex-direction: column; }
.product-img-btn { position: relative; padding: 0; border: none; background: var(--sand); cursor: pointer; aspect-ratio: 1 / 1; overflow: hidden; }
.product-img-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-img-btn:hover img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--ember); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; }
.product-info { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.product-info h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; }
.price { margin: 0; font-size: 17px; color: var(--muted); }
.price strong { color: var(--ink); }
.product-info .btn { margin-top: auto; font-size: 18px; padding: 0 12px; }

/* Custom */
.custom { padding: 64px 0; }
.custom-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; align-items: start; }
.custom-copy p { font-size: 17px; color: #3F3F3F; }
.form { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row .field { flex: 1 1 160px; }
.field-row { display: flex; flex-wrap: wrap; gap: 14px; }
label, .legend { font-weight: 600; font-size: 15px; }
input, textarea, select { font: inherit; font-size: 16px; padding: 10px 12px; min-height: 44px; border: 1px solid #A9A293; border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
textarea { resize: vertical; }
.hint { margin: 0; font-size: 14px; color: var(--muted); }
.form-msg { margin: 0; font-size: 15px; }
.form-msg.err { color: #9B1C1C; }

/* Footer */
.site-footer { background: var(--ink); color: #E9E4D8; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 36px; padding-bottom: 36px; font-size: 15px; }
.footer-row p { margin: 0 0 4px; }
.footer-brand { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.footer-links a { color: #E9E4D8; }

/* Product dialog */
dialog { width: min(1000px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: none; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(20,20,20,.6); }
.dialog-close-form { position: sticky; top: 0; display: flex; justify-content: flex-end; height: 0; z-index: 2; }
.close-btn { margin: 8px; background: rgba(255,255,255,.92); }
.pd { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; padding: 24px; }
.pd-main { aspect-ratio: 1 / 1; background: var(--sand); border-radius: 8px; overflow: hidden; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumb { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--sand); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--ember); }
.pd-info { display: flex; flex-direction: column; gap: 14px; }
.pd-info h2 { padding-right: 48px; margin: 0; font-family: var(--display); font-size: 34px; line-height: 1.05; text-transform: uppercase; letter-spacing: .03em; }
.pd-price { margin: 0; font-size: 22px; font-weight: 600; }
.pd-desc p { margin: 0 0 8px; color: #3F3F3F; }
fieldset { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 15px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 2px solid #A9A293; border-radius: 22px; cursor: pointer; font-size: 15px; font-weight: 500; background: #fff; }
.choice input:checked + span { border-color: var(--green); background: var(--green); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--ember); outline-offset: 2px; }
.qty { display: inline-flex; align-items: center; border: 1px solid #A9A293; border-radius: 6px; overflow: hidden; width: max-content; }
.qty button { width: 44px; height: 44px; border: none; background: #fff; font-size: 20px; cursor: pointer; }
.qty button:hover { background: var(--sand); }
.qty output { min-width: 36px; text-align: center; font-weight: 600; }
.note-box { background: var(--sand); border-radius: 8px; padding: 12px 14px; font-size: 15px; }

/* Drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20,20,20,.5); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 100vw); background: #fff; z-index: 50; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; box-shadow: -10px 0 40px rgba(0,0,0,.2); }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-family: var(--display); font-size: 28px; text-transform: uppercase; letter-spacing: .04em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 18px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--sand); }
.cart-line h3 { margin: 0; font-size: 15px; }
.cart-opts { margin: 2px 0 6px; font-size: 13px; color: var(--muted); }
.cart-line-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.link-btn { border: none; background: none; color: #8C2F2F; text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; min-height: 44px; }
.sum-row { display: flex; justify-content: space-between; font-size: 15px; }
.sum-row.total { font-size: 18px; font-weight: 700; }
.empty { padding: 32px 0; text-align: center; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px; z-index: 60; transition: transform .25s; max-width: calc(100vw - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); }

@media (max-width: 640px) {
  .logo { height: 64px; }
  .header-row { gap: 4px; }
  .main-nav { font-size: 15px; gap: 0 14px; }
  .main-nav a { padding: 12px 0; }
  .cart-btn { padding: 0 10px; }
  .hero-inner { padding-top: 56px; padding-bottom: 56px; }
  .cat-head h2, .custom h2 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .drawer, .toast, .product-img-btn img { transition: none; }
}

/* Discourage casual saving of photos */
img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
