/* St Lucie Smoke & Cigars — site stylesheet (draft, unpublished) */

:root {
  --brown: #2b2320;
  --brown-2: #3a2e29;
  --brown-3: #1c1614;
  --gold: #c29a3d;
  --gold-2: #d9b86a;
  --gold-3: #9e7a2a;
  --cream: #f6f0e4;
  --ivory: #efe6d6;
  --line: #ddcfb6;
  --ink: #221b18;
  --muted: #6b5d54;
  --white: #fdfaf4;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1140px;
  --gutter: 20px;
  --shadow: 0 18px 50px rgba(28, 22, 20, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brown); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--brown);
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 46ch; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-3);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.on-dark .eyebrow, .section--dark .eyebrow, .section--photo .eyebrow, .page-head .eyebrow, .hero .eyebrow { color: var(--gold-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.85rem 1.7rem;
  border-radius: 2px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--brown);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--brown); }
.btn--outline { background: transparent; border-color: rgba(43, 35, 32, 0.45); color: var(--brown); }
.btn--outline:hover { background: rgba(43, 35, 32, 0.06); border-color: var(--brown); color: var(--brown); }
.on-dark .btn--outline, .section--dark .btn--outline, .section--photo .btn--outline, .hero .btn--outline, .gate .btn--outline, .page-head .btn--outline {
  border-color: rgba(246, 240, 228, 0.5); color: var(--cream);
}
.on-dark .btn--outline:hover, .section--dark .btn--outline:hover, .section--photo .btn--outline:hover, .hero .btn--outline:hover, .gate .btn--outline:hover {
  background: rgba(246, 240, 228, 0.08); border-color: var(--cream); color: var(--cream);
}
/* filled buttons stay brown-on-gold inside dark sections (their "a" colour rule would otherwise win) */
.section--dark a.btn:not(.btn--outline), .section--photo a.btn:not(.btn--outline), .site-footer a.btn:not(.btn--outline) { color: var(--brown); }
.btn--small { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.72rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 22, 20, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(194, 154, 61, 0.28);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 62px; width: auto; }
@media (min-width: 900px) { .brand img { height: 82px; } .header-inner { min-height: 104px; } }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid rgba(246, 240, 228, 0.28);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--cream); }

.site-nav {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--brown-3);
  border-bottom: 1px solid rgba(194, 154, 61, 0.28);
  box-shadow: var(--shadow);
  padding: 0.5rem var(--gutter) 1.25rem;
}
.site-nav.open { display: flex; flex-direction: column; gap: 0; }
.site-nav a:not(.btn) {
  display: block;
  padding: 0.85rem 0.25rem;
  font-weight: 500;
  font-size: 1rem;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 240, 228, 0.1);
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--gold-2); }
.site-nav .btn { margin-top: 1rem; align-self: flex-start; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .site-nav a:not(.btn) { padding: 0.25rem 0; border: 0; font-size: 0.95rem; letter-spacing: 0.01em; }
  .site-nav .btn { margin: 0; }
}

/* ---------- Hero (photographic) ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 880px);
  display: flex;
  align-items: center;
  color: var(--cream);
  background: var(--brown-3);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 35%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 22, 20, 0.82) 0%, rgba(28, 22, 20, 0.55) 45%, rgba(28, 22, 20, 0.15) 100%),
    linear-gradient(180deg, rgba(28, 22, 20, 0.35) 0%, rgba(28, 22, 20, 0.2) 50%, rgba(28, 22, 20, 0.95) 100%);
}
.hero .wrap { position: relative; }
.hero-inner { max-width: 640px; padding: clamp(4rem, 9vw, 7rem) 0 clamp(4rem, 9vw, 6rem); }
.hero-badge { width: 180px; margin: 0 0 2.25rem; }
.hero h1 { color: var(--cream); margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero .sub { font-size: 1.15rem; line-height: 1.6; color: rgba(246, 240, 228, 0.86); max-width: 44ch; margin: 0 0 2.25rem; }
.hero-actions .btn { min-width: 170px; }
.hero-hours { margin: 2rem 0 0; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-2); }
@media (max-width: 719px) {
  .hero { min-height: 0; text-align: center; }
  .hero-bg { object-position: 66% 30%; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(28, 22, 20, 0.6) 0%, rgba(28, 22, 20, 0.72) 45%, rgba(28, 22, 20, 0.97) 100%);
  }
  .hero-inner { margin: 0 auto; }
  .hero-badge { width: 150px; margin: 0 auto 1.75rem; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn { min-width: 0; flex: 1 1 140px; }
  .hero-hours { font-size: 0.72rem; letter-spacing: 0.12em; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--ivory { background: var(--ivory); }
.section--dark { background: var(--brown); color: var(--cream); }
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark p { color: rgba(246, 240, 228, 0.8); }
.section--dark a:not(.btn) { color: var(--gold-2); }
.section--dark a:not(.btn):hover { color: var(--cream); }

.section--photo { position: relative; color: var(--cream); background: var(--brown-3) center / cover no-repeat; }
.section--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 22, 20, 0.86), rgba(28, 22, 20, 0.84)); }
.section--photo > .wrap { position: relative; }
.section--photo h2, .section--photo h3 { color: var(--cream); }
.section--photo p { color: rgba(246, 240, 228, 0.8); }
.section--photo a:not(.btn) { color: var(--gold-2); }
.section--photo a:not(.btn):hover { color: var(--cream); }
.bg-shelves { background-image: url("../assets/bg-shelves.jpg"); background-position: center 40%; }
.bg-bartop { background-image: url("../assets/bg-bartop.jpg"); background-position: center 60%; }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--dark .section-head p, .section--photo .section-head p { color: rgba(246, 240, 228, 0.82); }
.section-foot { margin-top: clamp(2rem, 4vw, 3rem); }
.section-head.center, .section-foot.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .eyebrow::before { display: none; }

.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1.05fr 1fr; gap: clamp(3rem, 6vw, 5.5rem); } }

.cols { display: grid; gap: 2rem; }
@media (min-width: 760px) { .cols { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.col { border-top: 1px solid rgba(194, 154, 61, 0.55); padding-top: 1.4rem; }
.col h3 { margin-bottom: 0.6rem; }
.col p { color: var(--muted); margin: 0; font-size: 1rem; }
.section--photo .col p, .section--dark .col p { color: rgba(246, 240, 228, 0.78); }

.roster { columns: 2; column-gap: 2.5rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .roster { columns: 3; } }
.roster li { break-inside: avoid; padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.15rem; }
.roster a { color: var(--brown); text-decoration: none; }
.roster a:hover { color: var(--gold-3); }

.notes { list-style: none; padding: 0; margin: 0; }
.notes li { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.notes li:last-child { border-bottom: 1px solid var(--line); }
.notes strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--brown); margin-bottom: 0.15rem; }
.section--dark .notes li, .section--photo .notes li { border-color: rgba(246, 240, 228, 0.18); }

.fineprint { font-size: 0.85rem; color: var(--muted); }
.section--dark .fineprint, .section--photo .fineprint { color: rgba(246, 240, 228, 0.6); }
.stat { font-family: var(--font-display); font-size: 1.15rem; color: var(--brown); margin: 1.5rem 0 0; }
.stat span { color: var(--gold-3); }

/* ---------- Visit ---------- */
.hours { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: 0.98rem; }
.hours caption { text-align: left; caption-side: top; }
.hours th, .hours td { text-align: left; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 500; color: var(--brown); width: 45%; }
.hours td { color: var(--muted); }
.hours tr.today th, .hours tr.today td { color: var(--gold-3); font-weight: 600; }
.address { font-style: normal; line-height: 1.55; margin-bottom: 1.25rem; font-size: 1.05rem; }
.address a { font-weight: 600; }
.map {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 3;
  background: var(--brown-3);
}
.map-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  color: var(--cream);
  background: var(--brown-3) url("../assets/bg-shelves.jpg") center 40% / cover no-repeat;
}
.map-fallback::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 22, 20, 0.55), rgba(28, 22, 20, 0.92)); }
.map-fallback > * { position: relative; }
.map-fallback .btn--outline { border-color: rgba(246, 240, 228, 0.5); color: var(--cream); }
.map-fallback strong { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; display: block; margin-bottom: 0.25rem; }
.map-fallback p { color: rgba(246, 240, 228, 0.82); margin-bottom: 1rem; }
.map iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; }
.map-link { display: inline-block; margin-top: 0.75rem; font-size: 0.9rem; }

/* ---------- Reviews ---------- */
.reviews-box { max-width: 60ch; margin: 0 auto; text-align: center; }
.reviews-box .actions { justify-content: center; margin-top: 1.5rem; }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 500; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.45rem; }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.form-note { font-size: 0.88rem; color: var(--muted); margin: 0; }
.form-status { display: none; padding: 1rem 1.25rem; border-radius: 2px; background: var(--ivory); border: 1px solid var(--line); }
.form-status.show { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown-3); color: rgba(246, 240, 228, 0.78); padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; }
.site-footer h3 { color: var(--gold-2); font-size: 0.75rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 0.8rem; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold-2); }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; } }
.footer-brand img { width: 170px; margin-bottom: 1rem; }
.footer-brand p { color: var(--gold-2); font-family: var(--font-display); font-style: italic; font-size: 1.05rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { text-decoration: none; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(194, 154, 61, 0.25);
  font-size: 0.8rem;
  color: rgba(246, 240, 228, 0.55);
}
.footer-bottom p { margin-bottom: 0.4rem; }

/* ---------- Age gate ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(28, 22, 20, 0.9) url("../assets/bg-shelves.jpg") center / cover no-repeat;
  background-blend-mode: multiply;
}
html.age-ok .gate { display: none; }
.gate-card {
  width: 100%;
  max-width: 460px;
  padding: 2.5rem 1.75rem;
  border-radius: 2px;
  background: rgba(43, 35, 32, 0.96);
  border: 1px solid rgba(194, 154, 61, 0.45);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  text-align: center;
  color: var(--cream);
}
.gate-card img { width: 190px; margin: 0 auto 1.5rem; }
.gate-card h2 { color: var(--cream); font-size: 2rem; }
.gate-card p { color: rgba(246, 240, 228, 0.78); }
.gate-actions { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.5rem; }
@media (min-width: 480px) { .gate-actions { flex-direction: row; justify-content: center; } }
.gate-denied { margin-top: 1rem; color: var(--gold-2); }
body.gate-open { overflow: hidden; }

/* ---------- Page header (inner pages, photographic) ---------- */
.page-head {
  position: relative;
  color: var(--cream);
  background: var(--brown-3) url("../assets/bg-shelves.jpg") center 45% / cover no-repeat;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.page-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 22, 20, 0.8), rgba(28, 22, 20, 0.9)); }
.page-head .wrap { position: relative; }
.page-head h1 { color: var(--cream); margin-bottom: 0.6rem; }
.page-head p { color: rgba(246, 240, 228, 0.82); max-width: 58ch; margin: 0; font-size: 1.1rem; }
.page-head p a { color: var(--gold-2); }

/* ---------- Catalog ---------- */
.catalog-tools {
  position: sticky;
  top: 80px; /* js/catalog.js sets this to the real header height */
  z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}
.tools-row { display: grid; gap: 0.6rem; }
@media (min-width: 640px) { .tools-row { grid-template-columns: 1.4fr 1fr auto; align-items: center; } }
.tools-row input, .tools-row select {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
}
.tools-row .count { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }

.brand-section { padding: 2.25rem 0 0.75rem; border-bottom: 1px solid var(--line); scroll-margin-top: 170px; /* js sets the exact value */ }
.brand-section:last-child { border-bottom: 0; }
.brand-section h2 { font-size: 1.7rem; display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; }
.brand-section h2 small { font-family: var(--font-body); font-size: 0.75rem; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.group-label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-3); font-weight: 600; margin: 1rem 0 0.35rem; }
.items { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.1rem 2.75rem; }
@media (min-width: 760px) { .items { grid-template-columns: 1fr 1fr; } }
.item { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.45rem 0; font-size: 0.98rem; }
.item .leader { flex: 1; border-bottom: 1px dotted rgba(107, 93, 84, 0.45); min-width: 1rem; transform: translateY(-4px); }
.item .price { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--brown); white-space: nowrap; }
.item .tag {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--gold-3);
  border: 1px solid rgba(194, 154, 61, 0.5);
  border-radius: 2px;
  padding: 0.12rem 0.55rem;
  white-space: nowrap;
}
.item.hidden, .brand-section.hidden, .group-label.hidden, .range-list li.hidden { display: none; }
.empty { padding: 3rem 0; text-align: center; color: var(--muted); }
.empty.hidden { display: none; }

.range-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.6rem; }
@media (min-width: 640px) { .range-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.range-list li { padding: 0.9rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 2px; font-size: 0.95rem; }
.range-list strong { display: block; color: var(--brown); font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; }
.range-list span { color: var(--muted); }

.catalog-note { margin: 2rem 0 0; font-size: 0.9rem; color: var(--muted); max-width: 70ch; }

/* ---------- About page ---------- */
.prose { max-width: 60ch; }
.prose p { font-size: 1.1rem; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--brown); padding: 0.5rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* =====================================================================================
   Online ordering: cart link, add-to-cart controls, cart drawer, cart page, confirmation
   ===================================================================================== */

/* the hidden attribute always wins, even over a class that sets display */
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Cart link in the header ---------- */
.cart-link {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(246, 240, 228, 0.28);
  border-radius: 2px;
  color: var(--cream);
  text-decoration: none;
  transition: border-color 0.15s;
}
.cart-link:hover, .cart-link[aria-current="page"] { border-color: var(--gold); color: var(--gold-2); }
.cart-link svg { display: block; }
.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--brown);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 900px) {
  .site-nav, .site-nav.open { order: 1; margin-left: auto; }
  .cart-link { order: 2; margin-left: 0.25rem; }
}

/* ---------- Add to cart + quantity stepper (product lists) ---------- */
.item .name .pickup-only { display: block; margin-top: 0.1rem; }
.pickup-only { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-3); }
.section-pickup { margin: 0.25rem 0 0.6rem; font-size: 0.88rem; color: var(--muted); }
.item .buy { flex: none; display: inline-flex; justify-content: flex-end; margin-left: 0.25rem; }
.btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 3.5rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: transparent;
  color: var(--brown);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-add:hover { background: var(--gold); }
.add-long { display: none; }
.stepper {
  display: inline-flex;
  align-items: stretch;
  height: 40px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: var(--white);
  vertical-align: middle;
}
.stepper .step {
  width: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.stepper .step:hover { background: rgba(194, 154, 61, 0.18); }
.stepper .step:disabled { opacity: 0.35; cursor: default; background: transparent; }
.stepper .qty, .qty-input {
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brown);
  font-variant-numeric: tabular-nums;
}
/* 16px: phones zoom the page when a smaller text box is tapped */
.qty-input { width: 46px; padding: 0; font-size: 1rem; text-align: center; background: transparent; border-radius: 0; -moz-appearance: textfield; appearance: textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (min-width: 1000px) {
  .add-long { display: inline; }
  .add-short { display: none; }
  .btn-add { min-height: 34px; width: 100%; }
  .item .buy { width: 6.6rem; }
  .item .stepper { height: 34px; width: 100%; }
  .item .stepper .step { flex: 1; }
  .item .stepper .qty { flex: 1.2; }
}

/* ---------- Cart drawer (slides over from the right) ---------- */
.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(28, 22, 20, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--cream);
  box-shadow: -18px 0 50px rgba(28, 22, 20, 0.3);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s;
}
html.cart-open .cart-backdrop { opacity: 1; visibility: visible; }
html.cart-open .cart-drawer { transform: none; visibility: visible; }
html.cart-open body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .cart-backdrop, .cart-drawer { transition: none; } }
.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem;
  background: var(--brown);
  border-bottom: 1px solid rgba(194, 154, 61, 0.45);
}
.cart-drawer-head h2 { margin: 0; font-size: 1.5rem; color: var(--cream); }
.cart-close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(246, 240, 228, 0.4);
  border-radius: 2px;
  background: transparent;
  color: var(--cream);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.cart-close:hover { border-color: var(--cream); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 0.25rem 1.4rem 1rem; }
.cart-drawer-foot { display: grid; gap: 0.7rem; padding: 1.1rem 1.4rem 1.4rem; background: var(--ivory); border-top: 1px solid var(--line); }
.cart-drawer-foot .fineprint { margin: 0; }
.cart-sub { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--font-display); font-size: 1.3rem; color: var(--brown); }
.cart-sub strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.cart-empty-note { padding: 3rem 0 2rem; text-align: center; }
.cart-empty-note p:first-child { font-family: var(--font-display); font-size: 1.4rem; color: var(--brown); margin-bottom: 0.4rem; }

/* ---------- Cart lines (drawer and cart page) ---------- */
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "main total" "controls controls";
  gap: 0.7rem 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-line:last-child { border-bottom: 0; }
.cart-line-main { grid-area: main; }
.cart-line-name { display: block; font-weight: 500; line-height: 1.35; color: var(--brown); }
.cart-line-meta { display: block; margin-top: 0.2rem; font-size: 0.85rem; color: var(--muted); }
.cart-line-total { grid-area: total; font-weight: 600; white-space: nowrap; color: var(--brown); font-variant-numeric: tabular-nums; }
.cart-line-controls { grid-area: controls; display: flex; align-items: center; gap: 1.1rem; }
.cart-remove {
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--gold-3);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cart-remove:hover { color: var(--brown); }

/* ---------- Cart page ---------- */
.test-ribbon {
  margin: 0;
  padding: 0.55rem 1rem;
  background: var(--gold);
  color: var(--brown);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}
.page-head--slim { padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.page-head--slim h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
.section--cart { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(4rem, 8vw, 6rem); }
.cart-empty { max-width: 44rem; padding: 1rem 0 1.5rem; }
.cart-empty .actions { margin: 1.75rem 0 1.5rem; }
.checkout { display: grid; gap: 2.25rem; align-items: start; }
.checkout-main { min-width: 0; }
@media (min-width: 960px) {
  .checkout { grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); gap: clamp(2.5rem, 5vw, 4rem); }
  .checkout-side { position: sticky; top: 120px; }
}
.panel { margin-bottom: 2.25rem; padding-bottom: 2.25rem; border-bottom: 1px solid var(--line); }
.panel:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.panel h2, .summary h2 { font-size: 1.6rem; margin-bottom: 0.9rem; }
.panel-foot { margin: 1rem 0 0; font-size: 0.9rem; }
.cart-lines--page .cart-line:first-child { padding-top: 0.4rem; }
.cart-notice { margin-bottom: 1rem; padding: 0.8rem 1rem; background: var(--ivory); border-left: 2px solid var(--gold); font-size: 0.92rem; }
.cart-notice p { margin: 0 0 0.3rem; }
.cart-notice p:last-child { margin: 0; }

.options { display: grid; gap: 0.6rem; }
/* the single line shown while pickup is the only way to get an order */
.method-only { margin: 0; padding: 1rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: 2px; font-weight: 500; color: var(--brown); }
.option {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
}
.option.is-selected { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.option.is-disabled { cursor: not-allowed; background: transparent; }
.option.is-disabled .option-title, .option.is-disabled .option-price { color: var(--muted); }
.option input { flex: none; width: 18px; height: 18px; margin: 0.25rem 0 0; accent-color: var(--gold-3); }
.option-body { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.option-title { font-weight: 600; color: var(--brown); }
.option-note { font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.option-price { font-weight: 600; white-space: nowrap; color: var(--brown); font-variant-numeric: tabular-nums; }
.option-reason { margin: 0 0 0.3rem; padding: 0.65rem 0.95rem; background: var(--ivory); border-left: 2px solid var(--gold); font-size: 0.9rem; color: var(--ink); }

.address-fields { min-width: 0; margin: 0.4rem 0 0; padding: 0; border: 0; }
.address-fields legend { padding: 0; margin-bottom: 0.9rem; font-family: var(--font-display); font-size: 1.25rem; color: var(--brown); }
.field-pair { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.1rem; }
.field-error { margin: 0.35rem 0 0; font-size: 0.85rem; color: #8c2f1b; }
.field [aria-invalid="true"] { border-color: #8c2f1b; }
.field select { appearance: auto; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.75rem; align-items: start; }
.check input { width: 20px; height: 20px; margin: 0.2rem 0 0; accent-color: var(--gold-3); }
.check label { font-weight: 500; color: var(--brown); cursor: pointer; }
.check .field-error { grid-column: 2; margin-top: 0; }

.summary { padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: 2px; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.42rem 0; font-size: 0.98rem; }
.sum-row span:last-child { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum-total { margin-top: 0.6rem; padding-top: 0.95rem; border-top: 1px solid var(--line); font-family: var(--font-display); font-size: 1.4rem; color: var(--brown); }
.pay-test { margin: 1.1rem 0 0; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-3); }
.pay-status { display: none; margin: 1rem 0 0; padding: 0.8rem 1rem; background: var(--ivory); border-left: 2px solid var(--gold); font-size: 0.92rem; color: var(--ink); }
.pay-status.show { display: block; }
.pay-status.is-error { border-left-color: #8c2f1b; }
/* own stacking context, so PayPal's buttons never ride over the sticky header */
.pay-buttons { position: relative; z-index: 0; min-height: 48px; margin: 1.1rem 0 0.9rem; }
.pay-buttons .fineprint { margin: 0; padding: 0.9rem 0; }
.summary > .fineprint { margin: 0.5rem 0 0; }

/* ---------- Order confirmation (also the printed order summary) ---------- */
.confirm { max-width: 880px; }
.confirm-title { font-size: clamp(2rem, 4.2vw, 2.9rem); outline: none; }
.confirm-test { display: inline-block; margin: 0 0 1.1rem; padding: 0.45rem 0.9rem; background: var(--gold); color: var(--brown); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.confirm .lead { max-width: 60ch; }
.confirm-grid { display: grid; gap: 1.25rem; margin: 2rem 0; }
@media (min-width: 760px) { .confirm-grid { grid-template-columns: 1fr 1fr; } }
.confirm-card { padding: 1.4rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: 2px; }
.confirm-card h3 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.confirm-card p { font-size: 0.97rem; }
.confirm-card p:last-child { margin-bottom: 0; }
.confirm-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.4rem 1.1rem; margin: 0; font-size: 0.95rem; }
.confirm-card dt { color: var(--muted); }
.confirm-card dd { margin: 0; overflow-wrap: anywhere; }
.order-id { font-weight: 600; letter-spacing: 0.03em; }
.confirm-items { width: 100%; margin: 0 0 2rem; border-collapse: collapse; font-size: 0.97rem; }
.confirm-items th, .confirm-items td { padding: 0.6rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.confirm-items thead th { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.confirm-items .num { padding-left: 1rem; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.confirm-items tfoot th { font-weight: 400; text-align: right; color: var(--muted); }
.confirm-items tfoot .grand th, .confirm-items tfoot .grand td { border-bottom: 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--brown); }
.confirm .actions { margin-bottom: 1.5rem; }
.confirm-shop { margin: 0 0 1.75rem; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; color: var(--brown); }
.confirm-shop small { font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); }
.print-only { display: none; }

@media print {
  .site-header, .site-footer, .gate, .cart-drawer, .cart-backdrop, .skip-link, .page-head, .no-print { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; font-size: 11pt; }
  .section--cart { padding: 0; }
  .confirm { max-width: none; }
  .confirm-card { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
