/* HoneyMe v3 — warm illustrated-paper homepage direction (bee doodles,
   arched category cards, torn-note tags, membership card). Independent of
   style-v2.css (used by cakes.html) so the two directions don't collide
   while we're still deciding between them. Scoped under .v3-body. */

/* index.html/bakery.html only load this stylesheet (not shared.css), so
   the reset has to live here too — without it, .v3-wrap's `padding: 0 28px`
   adds on top of its `max-width` (content-box default) instead of being
   absorbed by it, overflowing the viewport and clipping text/buttons on
   narrow screens (confirmed 2026-09-14 on the hero section at 390px). */
* { box-sizing: border-box; }

:root {
  --v3-paper: #f5e6d3;
  --v3-card: #e8d7c3;
  --v3-ink: #5a4234;
  --v3-ink-soft: #8b7355;
  --v3-line: #d4c4b0;
  --v3-dark: #3d2817;
  --v3-cream: #faf5f0;
  --v3-accent: #c9880a;
}

.v3-body {
  margin: 0; color: var(--v3-ink);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  /* subtle brown gingham/plaid, matching the logo's warm brown-on-tan palette —
     kept faint so it reads as paper texture, not a loud pattern */
  background-color: var(--v3-paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(169,120,47,0.07) 0 2px, transparent 2px 34px),
    repeating-linear-gradient(90deg, rgba(169,120,47,0.07) 0 2px, transparent 2px 34px);
}
.v3-logo-badge { border-radius: 50%; }
.v3-brand img { height: 60px; width: auto; display: block; }
.v3-body img { max-width: 100%; display: block; }
.v3-body h1, .v3-body h2, .v3-body h3 { font-family: "Fraunces", serif; margin: 0; text-wrap: balance; }
.v3-script { font-family: "Caveat", cursive; font-weight: 600; }
.v3-wrap { max-width: 1220px; margin: 0 auto; padding: 0 28px; }
.v3-placeholder {
  background: repeating-linear-gradient(45deg, #e4d6b8, #e4d6b8 10px, #ddccA6 10px, #ddccA6 20px);
  border: 1.5px dashed var(--v3-accent); color: var(--v3-ink-soft);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 0.78rem; padding: 10px; line-height: 1.4;
}

/* ---------- top decorative band (scalloped/flag pattern) ---------- */
.v3-deco-band {
  height: 28px;
  background:
    radial-gradient(circle at 20px 0, #c9880a 20px, transparent 20px);
  background-size: 40px 28px;
  background-position: 0 0;
  background-repeat: repeat-x;
}

/* ---------- nav ---------- */
.v3-nav { padding: 18px 0 8px; position: relative; }
.v3-nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.v3-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--v3-ink); }
.v3-brand .word { font-family: "Fraunces", serif; font-style: italic; font-weight: 600; font-size: 1.5rem; }
.v3-brand small { display: block; font-size: 0.62rem; letter-spacing: 0.16em; color: var(--v3-ink-soft); font-style: normal; }
.v3-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.v3-links a { text-decoration: none; color: var(--v3-ink); font-size: 0.85rem; font-weight: 500; border-bottom: 1.5px solid transparent; padding-bottom: 4px; }
.v3-links a.active, .v3-links a:hover { border-color: var(--v3-accent); }

/* ---------- nav dropdown (Weddings & Events) ---------- */
.v3-links li.has-dropdown { position: relative; }
.v3-dropdown-menu {
  display: none; position: absolute; top: 100%; right: 0; margin: 8px 0 0; padding: 6px 0;
  list-style: none; min-width: 160px; background: var(--v3-paper); border: 1px solid var(--v3-line);
  border-radius: 8px; box-shadow: 0 10px 26px rgba(40,28,10,0.16); z-index: 50;
}
.v3-links li.has-dropdown.open .v3-dropdown-menu { display: block; }
/* Hover-to-reveal only on devices that actually have hover (a mouse) — on
   touch, tapping a link can leave it stuck matching :hover (notably iOS
   Safari) until the next tap elsewhere on the page, which fought with the
   JS .open toggle and made the menu impossible to close by tapping again. */
@media (hover: hover) and (pointer: fine) {
  .v3-links li.has-dropdown:hover .v3-dropdown-menu,
  .v3-links li.has-dropdown:focus-within .v3-dropdown-menu { display: block; }
}
.v3-dropdown-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 14px; font-size: 0.8rem; font-weight: 400; border-bottom: none;
}
.v3-dropdown-menu a:hover { background: var(--v3-card); border-color: transparent; }
.v3-dropdown-menu a.coming-soon { color: var(--v3-ink-soft); cursor: default; pointer-events: none; }
.v3-dropdown-menu a.coming-soon .soon-tag {
  font-size: 0.64rem; font-weight: 700; color: var(--v3-accent); background: var(--v3-card);
  border: 1px solid var(--v3-line); border-radius: 999px; padding: 1px 8px; white-space: nowrap;
}
.dropdown-label .chev { display: inline-block; font-size: 0.7rem; margin-left: 4px; transition: transform 0.15s; }
.has-dropdown.open .dropdown-label .chev { transform: rotate(180deg); }
/* On mobile the dropdown stays collapsed behind a tap, same as desktop's
   hover-to-reveal — it should never just sit flattened-open inside the
   hamburger menu by default. */
@media (max-width: 940px) {
  .v3-dropdown-menu {
    position: static; box-shadow: none; border: none; background: none;
    margin: 0 0 4px 14px; padding: 0;
  }
  .v3-dropdown-menu a { padding: 8px 0; border-bottom: 1px solid var(--v3-line); }
}
.v3-nav-icons { display: flex; gap: 16px; align-items: center; }
.v3-nav-icons button, .v3-nav-icons a { background: none; border: none; font-size: 1.05rem; cursor: pointer; color: var(--v3-ink); text-decoration: none; }
.v3-menu-toggle { display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--v3-ink); }
/* Below 940px the inline nav links would overflow the header, so they move
   into a dropdown panel toggled by a hamburger button instead of just
   disappearing — losing top navigation entirely on mobile (with only the
   footer's link list left) was the actual bug here. */
@media (max-width: 940px) {
  .v3-menu-toggle { display: block; }
  .v3-links {
    display: none; flex-direction: column; gap: 10px; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--v3-paper); border-bottom: 1px solid var(--v3-line); padding: 10px 28px 18px; z-index: 40;
  }
  /* 2 × 3 button grid (owner 2026-10-08, "下拉菜单可以是2*3个button嘛") instead
     of six stacked rows: six links, two per row, each a tappable tile. */
  .v3-links.open { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 20px 18px; }
  .v3-links > li { min-width: 0; }
  .v3-links a {
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 14px 10px; min-height: 52px; line-height: 1.3; font-size: 0.92rem; font-weight: 600;
    background: var(--v3-card); border: 1px solid var(--v3-line); border-radius: 12px;
  }
  .v3-links a.active { border-color: var(--v3-accent); box-shadow: inset 0 0 0 1px var(--v3-accent); }
  /* Weddings & Events: the tile opens its sub-links as a full-width row of
     smaller tiles underneath, pushing the rest of the grid down. */
  .v3-links li.has-dropdown.open { grid-column: 1 / -1; }
  .v3-links li.has-dropdown.open > .dropdown-label { border-color: var(--v3-accent); border-radius: 12px 12px 0 0; }
  .v3-dropdown-menu { margin: 0; padding: 8px; background: var(--v3-paper); border: 1px solid var(--v3-line); border-top: none; border-radius: 0 0 12px 12px; }
  .v3-links li.has-dropdown.open .v3-dropdown-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .v3-dropdown-menu a { padding: 11px 8px; min-height: 44px; font-size: 0.82rem; font-weight: 500; border-radius: 10px; }
  .v3-dropdown-menu li:first-child { grid-column: 1 / -1; }
}

/* ---------- buttons ---------- */
.v3-btn {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: 0.82rem;
  padding: 12px 22px; border-radius: 3px; border: 1.5px solid var(--v3-ink); cursor: pointer; text-decoration: none;
  background: var(--v3-ink); color: var(--v3-cream);
}
.v3-btn-outline { background: transparent; color: var(--v3-ink); }
.v3-btn.on-dark { background: var(--v3-cream); color: var(--v3-dark); border-color: var(--v3-cream); }
.v3-btn-outline.on-dark { background: transparent; color: var(--v3-cream); border-color: var(--v3-cream); }

/* ---------- hero (full width with overlay) ---------- */
.v3-hero-fullwidth { position: relative; width: 100%; height: 480px; overflow: hidden; }
.v3-hero-photo-full { width: 100%; height: 100%; object-fit: cover; }
.v3-hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.v3-hero-slide.active { opacity: 1; }
.v3-hero-dots {
  position: absolute; left: 0; right: 0; bottom: 16px; z-index: 2;
  display: flex; justify-content: center; gap: 8px;
}
.v3-hero-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.45); transition: background 0.2s, transform 0.2s;
}
.v3-hero-dots button.active { background: var(--v3-cream); transform: scale(1.3); }
.v3-hero-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.25);
  display: flex; flex-direction: column; justify-content: center;
}
.v3-hero-overlay h1 { font-style: italic; font-size: 3.2rem; line-height: 1.1; margin-bottom: 12px; color: var(--v3-cream); text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.v3-hero-overlay p { font-size: 1.1rem; color: var(--v3-cream); margin-bottom: 20px; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.v3-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* Buttons over the hero slideshow: the dark/outline defaults vanished against bright frames
   (owner 2026-10-08). Solid cream for the two order buttons, frosted dark for the workshop one. */
.v3-hero-overlay .v3-btn { background: var(--v3-cream); color: var(--v3-dark); border-color: var(--v3-cream); box-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.v3-hero-overlay .v3-btn-outline { background: rgba(40,28,10,0.55); color: #fff; border-color: rgba(255,255,255,0.85); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.v3-hero-overlay .v3-btn:hover { filter: brightness(0.96); }
@media (max-width: 860px) {
  .v3-hero-fullwidth { height: 360px; }
  .v3-hero-overlay h1 { font-size: 2.2rem; }
}

/* ---------- hero (original) ---------- */
.v3-hero { padding: 26px 0 50px; position: relative; }
.v3-hero-grid { display: grid; grid-template-columns: 0.85fr 1.4fr; gap: 44px; align-items: center; }
.v3-hero h1 { font-style: italic; font-size: 3.1rem; line-height: 1.08; margin-bottom: 14px; }
.v3-hero .sub { font-size: 1rem; margin-bottom: 10px; }
.v3-hero .fine { color: var(--v3-ink-soft); font-size: 0.9rem; margin-bottom: 22px; }
.v3-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.v3-hero-photo { position: relative; }
.v3-hero-photo .v3-placeholder { aspect-ratio: 16/9; border-radius: 6px; }
.v3-hero-note {
  position: absolute; left: 24px; bottom: -18px; background: var(--v3-card); border: 1px solid var(--v3-line);
  padding: 10px 16px; box-shadow: 0 8px 16px rgba(40,28,10,0.18); font-family: "Caveat", cursive; font-weight: 600;
  font-size: 1.15rem; transform: rotate(-2deg);
}
.v3-hero-stamp {
  position: absolute; right: -18px; bottom: -34px; width: 110px; height: 110px; border-radius: 50%;
  background: var(--v3-card); border: 1.5px dashed var(--v3-accent); display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.03em; padding: 10px; color: var(--v3-ink-soft);
  transform: rotate(8deg);
}
.v3-hero-tag {
  position: absolute; top: -14px; right: 40px; background: var(--v3-card); border: 1px solid var(--v3-line);
  padding: 8px 14px; font-family: "Caveat", cursive; font-weight: 600; font-size: 1.05rem; transform: rotate(4deg);
  box-shadow: 0 6px 14px rgba(40,28,10,0.16);
}
@media (max-width: 860px) {
  .v3-hero-grid { grid-template-columns: 1fr; }
  .v3-hero h1 { font-size: 2.3rem; }
}

/* ---------- arched category cards ---------- */
/* ---------- signature feature (Salt Bread gets top billing) ---------- */
.v3-signature { padding: 46px 0 10px; }
.v3-signature-card {
  background: var(--v3-card); border: 1px solid var(--v3-line); border-radius: 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden;
}
.v3-signature-card .v3-placeholder { aspect-ratio: 1; border-radius: 0; border-width: 0 0 0 1px; }
.v3-signature-text { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.v3-signature-eyebrow { font-family: "Caveat", cursive; font-size: 1.3rem; color: var(--v3-accent); margin-bottom: 4px; }
.v3-signature-text h2 { font-size: 2rem; font-style: italic; margin-bottom: 10px; }
.v3-signature-text p { color: var(--v3-ink-soft); font-size: 0.92rem; margin: 0 0 20px; max-width: 42ch; }
@media (max-width: 780px) { .v3-signature-card { grid-template-columns: 1fr; } .v3-signature-card .v3-placeholder { border-width: 1px 0 0; } }

.v3-categories { padding: 30px 0 20px; }
.v3-cat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.v3-cat-row.secondary { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin: 18px auto 0; }
.v3-cat-row.secondary .v3-cat-card { padding: 16px 14px 14px; border-radius: 90px 90px 8px 8px; }
.v3-cat-row.secondary h3 { font-size: 0.95rem; }
.v3-cat-row.secondary .v3-placeholder { aspect-ratio: 16/10; }
.v3-cat-card {
  background: var(--v3-card); border: 1px solid var(--v3-line); border-radius: 120px 120px 10px 10px;
  padding: 26px 20px 20px; text-align: center; text-decoration: none; color: var(--v3-ink);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.v3-cat-card .icon { font-size: 1.6rem; margin-bottom: 4px; }
.v3-cat-card h3 { font-size: 1.15rem; }
.v3-cat-card .desc { font-size: 0.78rem; color: var(--v3-ink-soft); line-height: 1.4; min-height: 2.6em; }
.v3-cat-card .v3-placeholder { width: 100%; aspect-ratio: 4/3; border-radius: 6px; margin: 6px 0 4px; }
.v3-cat-card .shop { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; margin-top: 4px; }
@media (max-width: 900px) { .v3-cat-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- two-up bands ---------- */
.v3-band { padding: 20px 0; }
.v3-band-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.v3-band-card {
  border-radius: 10px; padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center;
  border: 1px solid var(--v3-line); position: relative; overflow: hidden;
}
.v3-band-card.dark { background: var(--v3-dark); color: var(--v3-cream); border-color: var(--v3-dark); }
.v3-band-card.light { background: var(--v3-card); }
.v3-band-card h2 { font-size: 1.4rem; margin-bottom: 6px; }
.v3-band-card p { font-size: 0.86rem; margin: 0 0 16px; }
.v3-band-card.dark p { color: var(--v3-cream); opacity: 0.85; }
.v3-band-card.light p { color: var(--v3-ink-soft); }
.v3-band-card .v3-placeholder { aspect-ratio: 4/3; border-radius: 6px; }
.v3-band-row.solo { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.v3-perk-row { display: flex; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.v3-perk { font-size: 0.72rem; text-align: center; opacity: 0.9; }
.v3-perk .icn { font-size: 1.1rem; display: block; margin-bottom: 2px; }
@media (max-width: 860px) {
  .v3-band-row { grid-template-columns: 1fr; }
  .v3-band-card { grid-template-columns: 1fr; }
}

/* ---------- partners / collaborate ---------- */
.v3-partners { padding: 36px 0; }
.v3-partners-card {
  background: var(--v3-card); border: 1px solid var(--v3-line); border-radius: 10px; padding: 34px 36px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.v3-partners-card h2 { font-size: 1.4rem; margin-bottom: 6px; }
.v3-partners-card p { color: var(--v3-ink-soft); font-size: 0.88rem; margin: 0; max-width: 46ch; }
.v3-partner-logos { display: flex; gap: 14px; margin: 18px 0; flex-wrap: wrap; }
.v3-partner-logos .v3-placeholder { width: 110px; height: 64px; border-radius: 6px; font-size: 0.66rem; }
@media (max-width: 700px) { .v3-partners-card { flex-direction: column; align-items: flex-start; } }

/* ---------- community quote ---------- */
.v3-quote { padding: 50px 0; }
.v3-quote-grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 40px; align-items: center; }
.v3-quote .v3-placeholder { aspect-ratio: 4/3; border-radius: 6px; }
.v3-quote h2 { font-size: 1.7rem; margin-bottom: 10px; }
.v3-quote blockquote { font-family: "Fraunces", serif; font-style: italic; font-size: 1.2rem; margin: 0 0 20px; color: var(--v3-ink-soft); }
.v3-quote-trio { display: flex; gap: 26px; flex-wrap: wrap; }
.v3-quote-trio div { font-size: 0.78rem; text-align: center; color: var(--v3-ink-soft); max-width: 120px; }
.v3-quote-trio .icn { font-size: 1.3rem; display: block; margin-bottom: 6px; }
@media (max-width: 860px) { .v3-quote-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.v3-footer { background: var(--v3-dark); color: var(--v3-cream); padding: 56px 0 24px; margin-top: 40px; }
.v3-footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.v3-footer-brand .word { font-family: "Fraunces", serif; font-style: italic; font-size: 1.3rem; }
.v3-footer-brand small { display: block; font-size: 0.7rem; opacity: 0.75; margin-bottom: 14px; }
.v3-footer-addr { font-size: 0.84rem; opacity: 0.9; line-height: 1.6; margin-bottom: 14px; }
.v3-hours { font-size: 0.8rem; opacity: 0.85; border-collapse: collapse; }
.v3-hours td { padding: 1px 12px 1px 0; }
.v3-footer-links { display: flex; gap: 36px; flex-wrap: wrap; }
.v3-footer-links ul { list-style: none; margin: 0; padding: 0; }
.v3-footer-links li { margin-bottom: 8px; }
.v3-footer-links a { color: var(--v3-cream); text-decoration: none; font-size: 0.86rem; opacity: 0.85; white-space: nowrap; }
.v3-footer-links a:hover { opacity: 1; text-decoration: underline; }
.v3-footer-social { display: flex; gap: 14px; margin-top: 10px; white-space: nowrap; }
.v3-footer-styles { margin-top: 30px; font-size: 0.82rem; opacity: 0.85; line-height: 2; }
.v3-footer-styles a { color: var(--v3-cream); text-decoration: none; white-space: nowrap; }
.v3-footer-styles a:hover { text-decoration: underline; }
.v3-footer-social a { color: var(--v3-cream); opacity: 0.85; text-decoration: none; font-size: 0.9rem; }
.v3-footer-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(243,232,210,0.2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.76rem; opacity: 0.7; }
@media (max-width: 760px) { .v3-footer-grid { flex-direction: column; } .v3-footer-links { gap: 24px; } }

/* ---------- section head (reused by several sections below) ---------- */
.v3-section-head { padding: 46px 0 24px; text-align: center; }
.v3-section-head .eyebrow { font-family: "Caveat", cursive; font-size: 1.2rem; color: var(--v3-accent); margin-bottom: 2px; }
.v3-section-head h2 { font-size: 1.8rem; font-style: italic; }
.v3-section-head p { color: var(--v3-ink-soft); font-size: 0.9rem; margin-top: 6px; }

/* ---------- our specialty (salt bread intro, home only) ---------- */
.v3-specialty { padding: 20px 0 60px; }
.v3-specialty-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 440px); gap: 64px; align-items: center; justify-content: center; max-width: 1040px; margin: 0 auto; }
.v3-specialty-kicker { font-size: 1.6rem; color: var(--v3-accent); margin-bottom: 6px; }
.v3-specialty-text h2 { font-size: 2.1rem; font-style: italic; margin-bottom: 18px; }
.v3-specialty-text p { color: var(--v3-ink-soft); font-size: 0.95rem; line-height: 1.7; margin-bottom: 16px; }
.v3-specialty-link { display: inline-block; margin-top: 6px; color: var(--v3-ink); font-weight: 600; font-size: 0.92rem; text-decoration: underline; text-underline-offset: 4px; }
.v3-specialty-photo img { width: 100%; height: auto; display: block; }
.v3-specialty-photo { display: flex; justify-content: center; }
.v3-specialty-reel { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.v3-specialty-video { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: 16px; box-shadow: 0 10px 28px rgba(0,0,0,0.14); background: #e8d9c4; }
.v3-specialty-ig { font-size: 0.9rem; font-weight: 600; color: #5a3e2b; text-decoration: none; border-bottom: 1.5px solid currentColor; }
.v3-specialty-ig:hover { color: #c17d2a; }
@media (max-width: 760px) { .v3-specialty-grid { grid-template-columns: 1fr; gap: 24px; } .v3-specialty-photo { order: -1; } }

/* ---------- box / bundle entry cards ---------- */
.v3-box-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.v3-box-card { background: var(--v3-card); border: 1px solid var(--v3-line); border-radius: 10px; padding: 26px 22px; text-decoration: none; color: var(--v3-ink); }
.v3-box-card .icon { font-size: 1.6rem; margin-bottom: 8px; }
.v3-box-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.v3-box-card p { font-size: 0.82rem; color: var(--v3-ink-soft); margin: 0 0 14px; }
.v3-box-card .go { font-size: 0.74rem; font-weight: 700; }
@media (max-width: 780px) { .v3-box-row { grid-template-columns: 1fr; } }

/* ---------- compact "other desserts" links band ---------- */
.v3-compact { background: var(--v3-card); border: 1px solid var(--v3-line); border-radius: 10px; padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.v3-compact h3 { font-size: 1.1rem; margin-bottom: 4px; }
.v3-compact p { color: var(--v3-ink-soft); font-size: 0.84rem; margin: 0; }
.v3-compact-links { display: flex; gap: 22px; flex-wrap: wrap; }
.v3-compact-links a { text-decoration: none; color: var(--v3-ink); font-size: 0.86rem; font-weight: 600; border-bottom: 1.5px solid var(--v3-accent); padding-bottom: 2px; }

/* ---------- pop-up & collaboration grid ---------- */
.v3-popup-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.v3-popup-card { background: var(--v3-card); border: 1px solid var(--v3-line); border-radius: 10px; padding: 22px 18px; text-align: center; }
.v3-popup-card .icon { font-size: 1.5rem; margin-bottom: 8px; }
.v3-popup-card h4 { font-family: "Fraunces", serif; font-size: 0.95rem; margin-bottom: 6px; }
.v3-popup-card p { font-size: 0.78rem; color: var(--v3-ink-soft); margin: 0 0 12px; line-height: 1.4; }
.v3-popup-card a { font-size: 0.72rem; font-weight: 700; text-decoration: none; color: var(--v3-ink); border-bottom: 1.5px solid var(--v3-accent); }
@media (max-width: 900px) { .v3-popup-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- latest news carousel ---------- */
.v3-news { padding: 40px 0; background: var(--v3-paper); }
.v3-news-head { text-align: center; margin-bottom: 28px; }
.v3-news-head .eyebrow { font-family: "Caveat", cursive; font-size: 1.2rem; color: var(--v3-accent); margin-bottom: 2px; }
.v3-news-head h2 { font-size: 1.8rem; font-style: italic; }

.v3-carousel { position: relative; overflow: hidden; }
.v3-carousel-track { display: flex; transition: transform 0.5s ease; }
.v3-carousel-slide { flex: 0 0 100%; padding: 0 12px; }
.v3-news-card {
  background: var(--v3-card); border: 1px solid var(--v3-line); border-radius: 12px;
  padding: 24px; min-height: 200px; display: flex; flex-direction: column; justify-content: center;
  text-decoration: none; color: var(--v3-ink);
}
.v3-news-card .tag { display: inline-block; background: var(--v3-accent); color: var(--v3-cream); font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; width: fit-content; margin-bottom: 10px; }
.v3-news-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.v3-news-card p { font-size: 0.85rem; color: var(--v3-ink-soft); margin: 0; }
.v3-news-card.has-image { padding: 0; flex-direction: row; align-items: stretch; height: 200px; }
.v3-news-card.has-image .thumb { width: 40%; min-width: 110px; height: 200px; object-fit: cover; border-radius: 12px 0 0 12px; }
.v3-news-card.has-image .v3-news-card-body { padding: 20px; display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; }
@media (max-width: 560px) {
  .v3-news-card.has-image { flex-direction: column; height: auto; }
  .v3-news-card.has-image .thumb { width: 100%; height: 120px; border-radius: 12px 12px 0 0; }
}

.v3-carousel-nav {
  display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 24px;
}
.v3-carousel-arrow {
  background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--v3-accent);
  padding: 4px 8px; opacity: 0.7; transition: opacity 0.2s;
}
.v3-carousel-arrow:hover { opacity: 1; }
.v3-carousel-dots { display: flex; gap: 8px; }
.v3-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--v3-line); border: none;
  cursor: pointer; transition: background 0.3s;
}
.v3-dot.active { background: var(--v3-accent); }

/* ---------- ingredients section ---------- */
.v3-ingredients { padding: 50px 0; }
.v3-ingredients-head { text-align: center; margin-bottom: 36px; }
.v3-ingredients-head .eyebrow { font-family: "Caveat", cursive; font-size: 1.2rem; color: var(--v3-accent); margin-bottom: 2px; }
.v3-ingredients-head h2 { font-size: 1.8rem; font-style: italic; }

.v3-ingredient-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.v3-ingredient-card { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; }
.v3-ingredient-photo { width: 140px; height: 140px; border-radius: 10px; object-fit: cover; }
.v3-ingredient-text h3 { font-size: 1.1rem; margin-bottom: 6px; }
.v3-ingredient-text p { font-size: 0.82rem; color: var(--v3-ink-soft); line-height: 1.5; margin: 0; }
@media (max-width: 900px) { .v3-ingredient-grid { grid-template-columns: 1fr; } .v3-ingredient-card { grid-template-columns: 100px 1fr; gap: 16px; } .v3-ingredient-photo { width: 100px; height: 100px; } }

/* ---------- store display photo ---------- */
.v3-store-section { padding: 50px 0; }
.v3-store-head { text-align: center; margin-bottom: 28px; }
.v3-store-head .eyebrow { font-family: "Caveat", cursive; font-size: 1.2rem; color: var(--v3-accent); margin-bottom: 2px; }
.v3-store-head h2 { font-size: 1.8rem; font-style: italic; }
.v3-store-photo { width: 100%; border-radius: 10px; }

/* ---------- footer ---------- */
.v3-footer {
  background: var(--v3-ink); color: var(--v3-cream); padding: 40px 0; margin-top: 50px;
}
.v3-footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px;
}
.v3-footer-brand { }
.v3-footer-addr {
  font-size: 0.82rem; line-height: 1.6; opacity: 0.85;
}
.v3-footer-links ul {
  list-style: none; margin: 0; padding: 0;
}
.v3-footer-links li {
  margin-bottom: 8px;
}
.v3-footer-links a {
  color: var(--v3-cream); text-decoration: none; font-size: 0.82rem; opacity: 0.85;
}
.v3-footer-links a:hover {
  opacity: 1; border-bottom: 1px solid var(--v3-accent);
}
.v3-footer-social {
  display: flex; gap: 16px;
}
.v3-footer-social a {
  color: var(--v3-cream); text-decoration: none; font-size: 0.82rem; opacity: 0.85;
}
.v3-footer-social a:hover {
  opacity: 1;
}

/* Pickup/Delivery fields — shared by shared.js's deliveryFieldsHtml(),
   used on the bakery cart and per-item checkout panels alike. */
.fulfillment-row { display: flex; gap: 18px; margin-bottom: 12px; }
.fulfillment-option { display: flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--v3-ink); cursor: pointer; }
.fulfillment-option input { width: auto; margin: 0; }
.delivery-fields { margin-bottom: 14px; }
.delivery-fields label { display: block; font-size: 0.78rem; font-weight: 600; margin-bottom: 4px; color: var(--v3-ink-soft); }
.delivery-fields textarea {
  width: 100%; font: inherit; font-size: 0.86rem; padding: 8px 10px; resize: vertical;
  border: 1px solid var(--v3-line); border-radius: 6px; background: var(--v3-cream); color: var(--v3-ink);
}
.delivery-quote-result { font-size: 0.8rem; margin-top: 6px; min-height: 1.2em; }
.delivery-normalized-address { color: var(--v3-ink-soft); font-size: 0.76rem; margin-top: 4px; font-style: italic; }
.delivery-use-address-btn {
  display: block; margin-top: 6px; font: inherit; font-size: 0.78rem; font-style: normal; font-weight: 600;
  color: var(--v3-cream); background: var(--v3-ink); border: none; border-radius: 5px; padding: 6px 12px; cursor: pointer;
}
.delivery-ok { color: #2f6f4f; font-weight: 600; }
.delivery-ok .compare-price { text-decoration: line-through; opacity: 0.6; margin-right: 5px; font-weight: 400; }
.delivery-warn { color: #b3452f; font-size: 0.8rem; }
.delivery-checking { color: var(--v3-ink-soft); font-style: italic; }

/* Region/weekday delivery scheduling (date select, fixed 2-7pm window,
   house/apartment + no-answer choice, mandatory consent checkbox) — shown
   once a quote resolves with a recognized delivery zip. */
.delivery-fields select {
  width: 100%; font: inherit; font-size: 0.86rem; padding: 8px 10px;
  border: 1px solid var(--v3-line); border-radius: 6px; background: var(--v3-cream); color: var(--v3-ink);
}
.delivery-window-note { font-size: 0.8rem; color: var(--v3-ink-soft); margin: 6px 0 14px; }
.delivery-consent-label {
  display: flex !important; align-items: flex-start; gap: 8px; font-size: 0.8rem !important;
  font-weight: 400 !important; color: var(--v3-ink-soft); line-height: 1.4; margin-top: 4px; cursor: pointer;
}
.delivery-consent-label input { width: auto; margin: 2px 0 0; flex-shrink: 0; }

/* ---- floating cart — shared by both cart instances: the bakery cart
   (#cart-*, bakery.html) and the custom-cake cart (#cake-cart-*,
   cakes.html; see initCakeCartUI() in shared.js). Was previously defined
   only inside bakery.html's own <style>, which meant cakes.html's cart
   button rendered with zero styling at all (unstyled, static-positioned,
   buried at the bottom of the page — confirmed via a real customer
   screenshot, 2026-09-24) until moved here. */
.cart-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 39;
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--v3-ink); color: var(--v3-cream); font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(61,40,23,0.35);
}
.cart-badge {
  position: absolute; top: -4px; right: -4px; background: var(--v3-accent); color: var(--v3-cream);
  font-size: 0.68rem; font-weight: 700; border-radius: 999px; min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
  font-variant-numeric: tabular-nums; border: 2px solid var(--v3-paper);
}
.cart-badge[hidden] { display: none; }
.cart-overlay {
  position: fixed; inset: 0; background: rgba(40,28,10,0.45); z-index: 40;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 100%);
  background: var(--v3-paper); z-index: 41; box-shadow: -12px 0 30px rgba(0,0,0,0.18);
  transform: translateX(100%); transition: transform 0.25s ease;
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--v3-line); }
.cart-drawer-head h3 { margin: 0; font-size: 1.1rem; font-style: italic; }
.cart-close { background: none; border: none; font-size: 1.15rem; cursor: pointer; color: var(--v3-ink-soft); }
/* Everything that can grow tall (the item list AND the delivery form)
   scrolls together as one region — previously .cart-items alone had
   flex:1/overflow-y, which meant a tall delivery form (address, date,
   house/apartment, no-answer choice, consent) squeezed the item list
   down to almost nothing instead of scrolling itself (confirmed via a
   real screenshot, 2026-09-25 — the first item's name was cut off,
   only its quantity controls still fit). min-height:0 is required here
   for the scroll to actually kick in inside a flex column in every
   browser, not just the ones that happen to be lenient about it. */
.cart-scroll-body { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.cart-items { padding: 6px 22px; }
.cart-line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--v3-line); align-items: flex-start; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-info .name { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.cart-line-info .note { font-size: 0.76rem; color: var(--v3-ink-soft); margin-bottom: 8px; }
.cart-line-controls { display: flex; align-items: center; gap: 10px; }
.cart-qty-btn {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--v3-line);
  background: var(--v3-card); color: var(--v3-ink); cursor: pointer; font: inherit; line-height: 1;
}
.cart-line-price { font-weight: 600; color: var(--v3-accent); white-space: nowrap; }
.cart-remove { background: none; border: none; color: #b3452f; font-size: 0.76rem; cursor: pointer; text-decoration: underline; padding: 0; }
.cart-empty { color: var(--v3-ink-soft); text-align: center; padding: 60px 16px; font-size: 0.9rem; }
.cart-footer { border-top: 1px solid var(--v3-line); padding: 8px 22px 4px; }
/* Total + checkout button live outside the scrolling region, in their own
   flex: 0 0 auto block — always visible at the bottom of the drawer
   regardless of how long the item list or delivery form gets, rather
   than being scrolled out of view or squeezed away. */
.cart-drawer-bottom { border-top: 1px solid var(--v3-line); padding: 16px 22px 22px; flex: 0 0 auto; }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 12px; font-size: 1.02rem; }
.cart-checkout-error { color: #b3452f; font-size: 0.82rem; margin-top: 8px; display: none; }
.cart-checkout-error.show { display: block; }
.cart-drawer-bottom button.v3-btn { width: 100%; justify-content: center; }
/* Stacked, not side-by-side — the cart drawer is always narrow
   (width: min(400px, 100%)), and a date input squeezed to ~half that
   width crowds its own native calendar-icon button right up against
   the time field next to it, making the icon hard to see/tap
   (confirmed by real-device feedback, 2026-09-24). Full width each. */
.cart-pickup-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.cart-pickup-row .field { flex: 1; }
.cart-pickup-row label { display: block; font-size: 0.78rem; font-weight: 600; margin-bottom: 4px; color: var(--v3-ink-soft); }
.cart-pickup-row input, .cart-pickup-row select {
  width: 100%; font: inherit; font-size: 0.86rem; padding: 8px 10px;
  border: 1px solid var(--v3-line); border-radius: 6px; background: var(--v3-cream); color: var(--v3-ink);
}
