/* Little Austria — demo store. Brand palette in :root (red from Logo.svg #9b0000,
   cream/ink from main-site look). Money-path buttons: white on red = 8.8:1 (WCAG AAA). */
:root {
  --red: #9b0000;
  --red-dark: #7c0000;
  --cream: #faf6ef;
  --cream-deep: #f1e9db;
  --ink: #191411;
  --ink-soft: #4d443e;
  --line: #e5dccd;
  --white: #ffffff;
  --gold: #b98a2f;
  --shadow: 0 2px 14px rgba(25, 20, 17, .10);
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Raleway', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: .01em; line-height: 1.2; }
button { font-family: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.1rem; }

/* ── Announcement bar ── */
.announce {
  background: var(--ink); color: #f5efe4;
  text-align: center; font-size: .8rem; letter-spacing: .06em;
  padding: .45rem .8rem; text-transform: uppercase;
}
.announce strong { color: #fff; }

/* ── Header ── */
header.site {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 246, 239, .96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-inner { display: flex; align-items: center; gap: 1rem; padding: .55rem 1.1rem; max-width: 1120px; margin: 0 auto; }
.site-logo img { height: 44px; width: auto; }
nav.main { display: flex; gap: 1.3rem; margin-left: auto; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; }
nav.main a { text-decoration: none; color: var(--ink-soft); font-weight: 600; }
nav.main a:hover { color: var(--red); }
.cart-btn {
  margin-left: auto; position: relative; background: none; border: 1.5px solid var(--ink);
  border-radius: 999px; padding: .45rem 1rem; font-weight: 700; font-size: .85rem;
  cursor: pointer; letter-spacing: .05em; display: flex; align-items: center; gap: .45rem;
}
nav.main + .cart-btn { margin-left: 1rem; }
.cart-btn:hover { background: var(--ink); color: var(--cream); }
.cart-count {
  background: var(--red); color: #fff; border-radius: 999px;
  min-width: 1.35rem; height: 1.35rem; display: inline-flex; align-items: center;
  justify-content: center; font-size: .75rem; padding: 0 .3rem;
}

/* ── Hero (scrim over photo — David's text-on-image rule) ── */
.hero { position: relative; min-height: 72vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 45%; }
/* Scrim alphas are computed, not eyeballed: hero photo's brightest tile (powdered sugar)
   has luminance .93 — white text needs alpha ≥ .80 in the text band for ≥4.5:1. */
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(20, 12, 8, .90) 0%, rgba(20, 12, 8, .82) 55%, rgba(20, 12, 8, .15) 85%);
}
@media (max-width: 749px) {
  .hero-scrim { background: linear-gradient(180deg, rgba(20, 12, 8, .86) 0%, rgba(20, 12, 8, .82) 70%, rgba(20, 12, 8, .70) 100%); }
}
.hero-content { position: relative; z-index: 2; color: #fff; padding: 4rem 0 4.5rem; max-width: 620px; }
.hero-kicker { font-size: .85rem; letter-spacing: .28em; text-transform: uppercase; color: #f0dfc0; font-weight: 700; }
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); margin: .55rem 0 .9rem; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.hero p.sub { font-size: 1.06rem; color: #f3ece0; max-width: 30rem; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero-trust { display: flex; align-items: center; gap: .8rem; margin-top: 1.15rem; font-size: .86rem; color: #ffe9c9; flex-wrap: wrap; }
.hero-trust .badges { display: flex; gap: .4rem; }
.hero-trust .badges img { height: 34px; width: auto; border-radius: 50%; background: #fff; padding: 2px; }

/* CTA — the money path. One primary per view. */
.btn-cta {
  display: inline-block; background: var(--red); color: #fff; border: none; cursor: pointer;
  font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  font-size: 1rem; padding: .95rem 2.2rem; border-radius: 6px; margin-top: 1.4rem;
  box-shadow: 0 4px 18px rgba(155, 0, 0, .35); transition: background .15s ease;
}
.btn-cta:hover { background: var(--red-dark); }
.btn-cta[disabled] { background: #b9a99b; box-shadow: none; cursor: not-allowed; }

/* ── Sections ── */
section { padding: 3.6rem 0; }
.sec-kicker { color: var(--red); font-size: .8rem; font-weight: 800; letter-spacing: .25em; text-transform: uppercase; }
.sec-title { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: .3rem 0 .6rem; }
.sec-sub { color: var(--ink-soft); max-width: 44rem; }

/* ── Shop grids ── */
.channel-head { display: flex; align-items: baseline; gap: .8rem; margin: 2.1rem 0 1rem; flex-wrap: wrap; }
.channel-head h3 { font-size: 1.2rem; }
.channel-tag { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; }
.tag-pickup { background: #e8f2e4; color: #2c5e26; }
.tag-ship { background: #e8eef7; color: #274f80; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  text-decoration: none; position: relative; transition: transform .15s ease;
}
.card:hover { transform: translateY(-3px); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-deep); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-logo { display: flex; align-items: center; justify-content: center; height: 100%; }
.card-logo img { width: 55%; height: auto; object-fit: contain; opacity: .9; }
.card-badge {
  position: absolute; top: .7rem; left: .7rem; background: var(--red); color: #fff;
  font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 4px;
}
.card-body { padding: .85rem .95rem 1.05rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.card-body h4 { font-size: 1rem; }
.card-serves { font-size: .8rem; color: var(--ink-soft); }
.card-price { margin-top: auto; padding-top: .45rem; font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.card-compare { text-decoration: line-through; opacity: .5; font-weight: 600; font-size: .9rem; }
.card-cta { font-size: .8rem; font-weight: 700; color: var(--red); letter-spacing: .04em; text-transform: uppercase; }

/* ── Story ── */
.story { background: var(--white); }
.story-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.2rem; align-items: center; }
.story-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.press-strip { margin-top: 1.4rem; font-size: .85rem; color: var(--ink-soft); }
.press-strip strong { color: var(--ink); }
.awards-row { display: flex; gap: .7rem; margin-top: 1rem; flex-wrap: wrap; }
.awards-row img { height: 52px; width: auto; border-radius: 50%; background: #fff; box-shadow: var(--shadow); padding: 3px; }

/* ── Reviews carousel ── */
.reviews { background: var(--cream-deep); }
.love-score { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.4rem; }
.love-num { font-size: 2.4rem; font-weight: 800; color: var(--red); }
.love-copy { font-size: .9rem; color: var(--ink-soft); max-width: 26rem; }
.carousel-shell { position: relative; }
.carousel {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: .8rem; scrollbar-width: thin;
}
.review-card {
  flex: 0 0 320px; scroll-snap-align: start; background: var(--white);
  border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .7rem;
}
.review-stars { color: var(--gold); font-size: .74rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.review-quote { font-size: .95rem; flex: 1; }
.review-meta { font-size: .8rem; color: var(--ink-soft); }
.review-meta strong { color: var(--ink); }
.carousel-nav { position: absolute; top: -3.4rem; right: 0; display: flex; gap: .5rem; }
.carousel-nav button {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1.5px solid var(--ink);
  background: none; font-size: 1.1rem; cursor: pointer; line-height: 1;
}
.carousel-nav button:hover { background: var(--ink); color: var(--cream); }
.reviews-attr { font-size: .78rem; color: var(--ink-soft); margin-top: .6rem; }

/* ── Visit / markets (scrim over photo) ── */
.visit { position: relative; color: #fff; overflow: hidden; padding: 4.5rem 0; }
.visit-bg { position: absolute; inset: 0; }
.visit-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.visit-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 11, 7, .88) 0%, rgba(18, 11, 7, .82) 55%, rgba(18, 11, 7, .88) 100%); }
.visit .wrap { position: relative; z-index: 2; }
.visit h2, .visit .sec-kicker { text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.visit .sec-kicker { color: #ffd9a0; }
.markets { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 1.6rem; }
.market-col h4 { font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; color: #ffd9a0; margin-bottom: .5rem; }
.market-col ul { list-style: none; font-size: .95rem; }
.market-col li { padding: .28rem 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.visit-address { margin-top: 1.6rem; font-size: .95rem; color: #f3e9d8; }

/* ── FAQ ── */
details.faq {
  background: var(--white); border-radius: 8px; margin-bottom: .6rem;
  box-shadow: var(--shadow); overflow: hidden;
}
details.faq summary {
  cursor: pointer; font-weight: 700; padding: .95rem 1.15rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
details.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--red); flex-shrink: 0; }
details.faq[open] summary::after { content: '−'; }
details.faq .faq-body { padding: 0 1.15rem 1rem; color: var(--ink-soft); font-size: .95rem; }

/* ── Footer ── */
footer.site {
  background: var(--ink); color: #cfc4b8; padding: 2.6rem 0 2rem; font-size: .88rem;
}
footer.site .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
footer.site h5 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6rem; }
footer.site a { color: #e8ddcd; text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site ul { list-style: none; }
footer.site li { padding: .14rem 0; }
.foot-logo { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .9; margin-bottom: .7rem; }
.demo-note { grid-column: 1 / -1; border-top: 1px solid #3a322c; margin-top: 1.4rem; padding-top: 1rem; font-size: .78rem; color: #8f857b; }

/* ── PDP ── */
.pdp { padding: 2.2rem 0 3.5rem; }
.crumbs { font-size: .82rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.crumbs a { color: var(--ink-soft); }
.pdp-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.4rem; align-items: start; }
.pdp-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); position: sticky; top: 90px; }
.pdp-photo img { width: 100%; height: auto; }
.pdp-photo .card-logo { aspect-ratio: 4/3; }
.pdp-info h1 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
.pdp-serves { color: var(--ink-soft); font-size: .92rem; margin-top: .3rem; }
.pdp-price { font-size: 1.7rem; font-weight: 800; margin: .8rem 0 .2rem; display: flex; align-items: center; gap: .7rem; }
.pdp-price .card-compare { font-size: 1.1rem; }
.pdp-love { font-size: .86rem; color: var(--ink-soft); margin-bottom: 1rem; }
.pdp-love strong { color: var(--red); }
.pdp-desc { color: var(--ink-soft); margin-bottom: 1.2rem; }

.flavor-label { font-weight: 700; font-size: .92rem; margin-bottom: .5rem; }
.flavor-label .flavor-picked { color: var(--red); }
.flavor-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .4rem; }
.flavor-pill {
  border: 1.5px solid var(--line); background: var(--white); border-radius: 999px;
  padding: .42rem .85rem; font-size: .82rem; font-weight: 600; cursor: pointer;
}
.flavor-pill:hover { border-color: var(--ink); }
.flavor-pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.flavor-pill[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; text-decoration: line-through; }
.flavor-hint { font-size: .8rem; color: var(--ink-soft); margin-bottom: 1rem; }
.vegan-dot { font-size: .72rem; color: #2c5e26; font-weight: 800; }

.qty-row { display: flex; align-items: center; gap: 1rem; margin: 1rem 0 .4rem; }
.qty-box { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 6px; background: var(--white); }
.qty-box button { width: 2.5rem; height: 2.7rem; border: none; background: none; font-size: 1.2rem; cursor: pointer; }
.qty-box span { min-width: 2.2rem; text-align: center; font-weight: 700; }

#atcBtn { width: 100%; margin-top: .6rem; font-size: 1.05rem; padding: 1.05rem; }
.gb-cta-note { font-size: .84rem; color: var(--ink-soft); margin-top: .5rem; }

.pdp-trust {
  display: flex; align-items: center; gap: .9rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; margin-top: 1.1rem;
  font-size: .84rem; color: var(--ink-soft);
}
.pdp-trust .badges { display: flex; gap: .35rem; flex-shrink: 0; }
.pdp-trust img { height: 38px; width: auto; border-radius: 50%; }

.pdp-reviews { margin-top: 1.3rem; background: var(--cream-deep); border-radius: 8px; padding: 1rem 1.15rem; }
.pdp-reviews .review-quote { font-size: .9rem; }
.pdp-reviews .review-meta { margin-top: .35rem; }
.pdp-rev-nav { margin-top: .5rem; display: flex; gap: .4rem; }
.pdp-rev-nav button { border: 1px solid var(--ink-soft); background: none; border-radius: 50%; width: 1.9rem; height: 1.9rem; cursor: pointer; }

.pdp-rows { margin-top: 1.5rem; }
.related { margin-top: 3rem; }
.related h3 { margin-bottom: 1rem; }

/* ── Cart drawer ── */
.overlay { position: fixed; inset: 0; background: rgba(20, 13, 8, .5); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(430px, 100vw);
  background: var(--cream); z-index: 50; transform: translateX(105%);
  transition: transform .25s ease; display: flex; flex-direction: column;
  box-shadow: -6px 0 30px rgba(0,0,0,.2);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 1.05rem; }
.drawer-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.progress-wrap { padding: .85rem 1.2rem .2rem; }
.progress-track { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--red); border-radius: 999px; transition: width .3s ease; }
.progress-text { font-size: .8rem; color: var(--ink-soft); margin-top: .4rem; }
.drawer-items { flex: 1; overflow-y: auto; padding: .9rem 1.2rem; }
.drawer-empty { color: var(--ink-soft); text-align: center; margin-top: 2rem; }
.drawer-item { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.drawer-item img { width: 62px; height: 62px; object-fit: cover; border-radius: 6px; }
.di-info { flex: 1; min-width: 0; }
.di-info h4 { font-size: .9rem; }
.di-flavor { font-size: .78rem; color: var(--ink-soft); }
.di-price { font-size: .85rem; font-weight: 700; margin-top: .15rem; }
.qty { display: flex; align-items: center; gap: .45rem; }
.qty button { width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 1px solid var(--ink-soft); background: none; cursor: pointer; font-size: 1rem; line-height: 1; }
.drawer-foot { border-top: 1px solid var(--line); padding: 1rem 1.2rem calc(1rem + env(safe-area-inset-bottom, 0)); background: var(--white); }
.tot-row { display: flex; justify-content: space-between; font-size: .92rem; padding: .14rem 0; }
.tot-row.total { font-size: 1.15rem; font-weight: 800; padding-top: .4rem; }
.tot-row.disc { color: #2c5e26; font-weight: 700; }
#btnCheckout { width: 100%; margin-top: .7rem; font-size: 1rem; padding: 1rem; }
.drawer-trust { text-align: center; font-size: .76rem; color: var(--ink-soft); margin-top: .55rem; }
.drawer-msg { display: none; margin-top: .7rem; font-size: .86rem; border-radius: 6px; padding: .7rem .85rem; }
.drawer-msg.err { display: block; background: #fbe9e7; color: #8c1d18; }
.drawer-msg.info { display: block; background: #e8f2e4; color: #204d1b; }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%) translateY(150%);
  background: var(--ink); color: #fff; padding: .7rem 1.3rem; border-radius: 999px;
  font-size: .88rem; transition: transform .25s ease; z-index: 60;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── Sticky ATC bar (mobile only; JS toggles .is-visible) ── */
.sticky-atc {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom, 0));
  background: var(--ink); box-shadow: 0 -2px 12px rgba(0,0,0,.25);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-atc.is-visible { transform: translateY(0); }
.sticky-atc button {
  width: 100%; min-height: 3.1rem; border: none; border-radius: 6px;
  font-size: 1rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
@media (min-width: 750px) { .sticky-atc { display: none; } }

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid, .pdp-grid { grid-template-columns: 1fr; }
  .pdp-photo { position: static; }
  footer.site .wrap { grid-template-columns: 1fr 1fr; }
  nav.main { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .card-body h4 { font-size: .88rem; }
  .card-price { font-size: .95rem; }
  .markets { grid-template-columns: 1fr; }
  .hero { min-height: 66vh; }
  .review-card { flex-basis: 270px; }
  section { padding: 2.6rem 0; }
}
