/* ============================================================
   KSB — app.css
   Brand colours:
     #4D2E18  dark brown (primary)
     #FDBB15  yellow (accent)
     #B7A98A  tan (secondary)
     #F8FAF2  cream (background)
   Fonts: Cardo (headings) · Karla (body)
   Mobile-first.
   ============================================================ */

/* ── Brand tokens ── */
:root {
  --ksb-brown: #4D2E18;
  --ksb-yellow: #FDBB15;
  --ksb-tan: #B7A98A;
  --ksb-cream: #FAF6EE;
  --ksb-text: #1A1A1A;
  --ksb-muted: #6B6B6B;
}

/* ── Unified card system ── */
.ksb-card,
.bundle-pick-card,
.bundle-card,
.product-card,
.rec-bundle-option {
  background: #fff;
  border: 1.5px solid #e8e1d6;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ksb-card:hover,
.bundle-pick-card:hover,
.bundle-card:hover,
.product-card:hover,
.rec-bundle-option:hover {
  border-color: var(--ksb-tan);
  box-shadow: 0 6px 20px rgba(77,46,24,0.1);
  transform: translateY(-2px);
}

.ksb-card.selected,
.bundle-pick-card.bundle-pick-selected,
.rec-bundle-option.rec-bundle-selected {
  border-color: var(--ksb-yellow);
  box-shadow: 0 4px 16px rgba(253,187,21,0.15);
}

.ksb-card img,
.bundle-pick-card .bundle-pick-img,
.bundle-card img,
.product-card img {
  width: 100%;
  object-fit: cover;
}

.ksb-card .card-body,
.bundle-pick-card .bundle-pick-info,
.bundle-card .bundle-card-body,
.product-card .card-body {
  padding: 0.6rem 0.75rem;
}

.ksb-card .card-name,
.bundle-pick-card .bundle-pick-name,
.bundle-card-body h3,
.product-card .card-name {
  font-family: 'Cardo', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ksb-brown);
  line-height: 1.25;
}

.ksb-card .card-price,
.bundle-pick-card .bundle-pick-price,
.bundle-price,
.product-card .card-price {
  font-family: 'Cardo', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ksb-brown);
}

.ksb-card .card-meta,
.bundle-pick-card .bundle-pick-per,
.bundle-per-pax,
.product-card .card-meta {
  font-size: 0.72rem;
  color: var(--ksb-muted);
}

/* ── Reset / base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Karla', sans-serif;
  background-color: var(--ksb-cream);
  color: #2C1A0E;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Cardo', serif;
  color: var(--ksb-brown);
  line-height: 1.2;
}

a { color: var(--ksb-brown); text-decoration: underline; }
a:hover { color: var(--ksb-yellow); }

img { max-width: 100%; height: auto; display: block; }

/* ── Layout container ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ksb-tan);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  flex-wrap: wrap;
  /* Hidden on load — JS adds .is-visible after scrolling past hero */
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 300ms ease, transform 300ms ease;
  pointer-events: none;
}

.site-nav.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Non-home pages: nav always visible */
body:not(.page-home) .site-nav {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Homepage nav — hidden initially, revealed on scroll past hero via JS (.is-visible) */
.page-home .site-nav {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

/* Add top padding on non-home pages to account for fixed nav */
body:not(.page-home) main {
  padding-top: 56px;
}

/* Exit — "Looking for something else?" */
.flow-exit {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #ede8e0;
  text-align: center;
}

.flow-exit span {
  display: block;
  font-size: 0.78rem;
  color: var(--ksb-muted);
  margin-bottom: 0.4rem;
}

.flow-exit a {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ksb-brown);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 1.5px solid var(--ksb-tan);
  transition: border-color 0.15s ease;
}

.flow-exit a:hover {
  border-color: var(--ksb-brown);
}

/* Compact inline exit link (inside flow-options) */
.flow-exit-link {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ksb-muted);
  text-decoration: none;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  transition: color 0.15s ease;
}
.flow-exit-link:hover {
  color: var(--ksb-brown);
}

.nav-logo {
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--ksb-brown);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--ksb-yellow); }
.nav-links a.nav-active {
  color: var(--ksb-yellow);
  font-weight: 700;
}

/* Mega menu */
.nav-mega-parent { position: relative; }
.nav-mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 0.75rem;
  z-index: 100;
}
.nav-mega-parent:hover .nav-mega { display: block; }
.nav-mega-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: #fff;
  border: 1px solid #e0d9ce;
  border-radius: 10px;
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 32px rgba(77,46,24,0.12);
  min-width: 420px;
}
.nav-mega-col h4 {
  font-family: 'Cardo', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ksb-brown);
  margin: 0 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #f0ebe3;
}
.nav-mega-col a {
  display: block;
  font-size: 0.82rem;
  color: var(--ksb-brown);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.15s;
}
.nav-mega-col a:hover {
  color: var(--ksb-yellow);
}

@media (max-width: 768px) {
  .nav-mega { display: none !important; }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cart {
  color: var(--ksb-brown);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--ksb-tan);
  border-radius: 4px;
  transition: background 0.15s, border-color 0.15s;
}

.nav-cart:hover {
  background: rgba(253,187,21,0.15);
  border-color: var(--ksb-yellow);
  color: var(--ksb-brown);
}

.nav-whatsapp {
  background: #25D366;
  color: #fff !important;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  transition: background 0.15s;
}

.nav-whatsapp:hover { background: #1ebe5d; }

/* ── Hamburger menu (mobile) ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ksb-brown);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
    order: 3;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 4;
    gap: 0;
    padding: 0.5rem 0;
    border-top: 1px solid #e8e1d6;
  }
  .nav-links.nav-links-open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 0.6rem 0.5rem;
    font-size: 0.95rem;
  }
  .site-nav {
    flex-wrap: wrap;
  }
  .nav-logo {
    order: 1;
  }
  .nav-right {
    order: 2;
    margin-left: auto;
  }
}

/* ============================================================
   MAIN
   ============================================================ */
main { min-height: 60vh; }
.page-home main { min-height: 0; }
.page-home .site-nav { display: none; }

/* ============================================================
   HERO
   ============================================================ */
/* ── Full-viewport hero ──────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  max-height: 1000px;
  overflow: hidden;
  background: var(--ksb-brown);
  --bottom-bar-h: 30px;
}

/* Hero trust — inline inside hero card copy */
.hero-trust-inline {
  margin-top: 0.4rem;
}

.hero-trust-label {
  font-family: 'Karla', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ksb-tan);
  margin-bottom: 0.2rem;
}

.hero-trust-logos {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.hero-trust-logos a {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.hero-trust-logos a:hover {
  opacity: 1;
}

.hero-trust-logos img {
  height: 15px;
  width: auto;
}

.hero-trust-google {
  gap: 0.25rem;
  font-family: 'Karla', sans-serif;
  font-size: 0.8rem;
  color: var(--ksb-brown);
}

.hero-trust-rating {
  font-weight: 700;
  font-size: 0.85rem;
}

.hero-trust-reviews {
  opacity: 0.6;
  font-size: 0.7rem;
}

@media (max-width: 768px) {
  .hero-trust-logos {
    gap: 0.65rem;
  }
  .hero-trust-logos img {
    height: 14px;
  }
  .hero-trust-google {
    font-size: 0.7rem;
  }
}

/* Hero bottom bar — pinned to bottom of viewport */
.hero-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  padding: 0.3rem 1rem;
  background: var(--ksb-brown);
  font-size: 0.7rem;
  color: #e0d9ce;
  z-index: 20;
}

.hero-bottom-bar a {
  color: var(--ksb-yellow);
  text-decoration: none;
}

.hero-bottom-bar a:hover { text-decoration: underline; }

.hero-bar-sep {
  color: var(--ksb-tan);
  margin: 0 0.2rem;
}

/* Slides cover entire hero */
.hero .hero-bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Minimal bottom overlay — headline only, no widget */
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 3rem 2.5rem;
  background: linear-gradient(to top, rgba(30,15,5,0.72) 0%, transparent 100%);
  z-index: 2;
}

.hero-overlay .hero-eyebrow {
  font-family: 'Cardo', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.hero-overlay h1 {
  font-family: 'Cardo', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-scroll-hint {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: ksb-fade-in 1s ease both;
  animation-delay: 1.2s;
}

/* ── Hero pull-out drawer ─────────────────────────────────────── */

/* Drawer sits on right edge, 35% from top */
.hero-drawer {
  position: absolute;
  right: 0;
  top: 35%;
  z-index: 10;
  display: flex;
  align-items: flex-start;
}

/* Pulsing tab — the always-visible trigger */
.hero-drawer-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(77, 46, 24, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  border-radius: 10px 0 0 10px;
  padding: 1rem 0.7rem;
  cursor: pointer;
  color: #fff;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  flex-direction: row;
  writing-mode: horizontal-tb;
  width: auto;
  min-width: 44px;
  flex-direction: column;
  transition: background 200ms ease;
}

.hero-drawer-tab:hover {
  background: rgba(77, 46, 24, 0.95);
}

.hero-drawer-tab-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.hero-drawer-tab-arrow {
  font-size: 1.2rem;
  color: var(--ksb-yellow);
  transition: transform 300ms ease;
  line-height: 1;
}

.hero-drawer-tab-arrow.is-open {
  transform: rotate(180deg);
}

/* Pulse ring around the tab */
.hero-drawer-pulse {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ksb-yellow);
  position: relative;
  flex-shrink: 0;
}

.hero-drawer-pulse::before,
.hero-drawer-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--ksb-yellow);
  opacity: 0;
  animation: hero-pulse 2.4s ease-out infinite;
}

.hero-drawer-pulse::after {
  animation-delay: 1.2s;
}

@keyframes hero-pulse {
  0%   { transform: scale(0.8); opacity: 0.8; }
  80%  { transform: scale(2.2); opacity: 0; }
  100% { opacity: 0; }
}

/* Panel — frosted glass, slides in from right */
.hero-drawer-panel {
  width: min(420px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px 0 0 14px;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.22);
  padding: 2rem 1.75rem 1.75rem;
}

/* Alpine transition helpers */
.drawer-enter       { transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1), opacity 250ms ease; }
.drawer-enter-start { transform: translateX(100%); opacity: 0; }
.drawer-enter-end   { transform: translateX(0);    opacity: 1; }
.drawer-leave       { transition: transform 280ms cubic-bezier(0.4, 0, 1, 1),    opacity 200ms ease; }
.drawer-leave-start { transform: translateX(0);    opacity: 1; }
.drawer-leave-end   { transform: translateX(100%); opacity: 0; }

/* Header inside panel */
.hero-drawer-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e8e1d8;
}

.hero-drawer-header .hero-eyebrow {
  font-family: 'Cardo', Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  color: #9a7c5a;
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.hero-drawer-header h1 {
  font-family: 'Cardo', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ksb-brown);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero-drawer-header .hero-sub {
  font-size: 0.88rem;
  color: #6b5744;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.hero-drawer-header .halal-badge {
  font-size: 0.75rem;
}

/* Mobile: drawer becomes bottom sheet */
@media (max-width: 699px) {
  .hero-drawer {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .hero-drawer-tab {
    border-radius: 10px 10px 0 0;
    flex-direction: row;
    writing-mode: horizontal-tb;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    width: 100%;
  }

  .hero-drawer-panel {
    width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 75vh;
  }

  .drawer-enter-start { transform: translateY(100%); opacity: 0; }
  .drawer-enter-end   { transform: translateY(0);    opacity: 1; }
  .drawer-leave-start { transform: translateY(0);    opacity: 1; }
  .drawer-leave-end   { transform: translateY(100%); opacity: 0; }
}

.hero h1 {
  font-family: 'Cardo', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--ksb-cream);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.05rem;
  color: #e0d9ce;
  margin-bottom: 1.25rem;
  line-height: 1.65;
  max-width: 420px;
}

.halal-badge {
  display: inline-block;
  background: var(--ksb-yellow);
  color: var(--ksb-brown);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-tagline {
  font-family: 'Cardo', serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(248,250,242,0.7);
  margin-top: 0.75rem;
  letter-spacing: 0.03em;
}

/* ============================================================
   GUIDED FLOW
   ============================================================ */
.guided-flow {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  /* no background/shadow — it lives inside .hero-card */
}

@media (max-width: 899px) {
  .guided-flow { max-width: 100%; }
}

/* Nav row — back link left, progress dots right */
.flow-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.5rem 0.25rem;
  flex-shrink: 0;
}

.flow-back-link {
  font-family: 'Karla', sans-serif;
  font-size: 0.78rem;
  color: var(--ksb-tan);
  text-decoration: none;
}

.flow-back-link:hover {
  color: var(--ksb-brown);
}

.flow-dots-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.flow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0d9ce;
  transition: background 0.2s;
}

.flow-dot.active { background: var(--ksb-yellow); }
.flow-dot.done   { background: var(--ksb-brown); }

/* Cards — each step has its own padding */
.flow-card {
  width: 100%;
  padding: 0.75rem 1.5rem 1rem;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Expanded state: flow-card direct child div fills remaining space */
/* Exclude .bundle-detail-view — it needs row direction (image left, info right) */
.flow-expanded .flow-card > div:not(.bundle-detail-view) {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.flow-expanded .flow-card > .bundle-detail-view {
  flex: 1 1 auto;
  min-height: 0;
}

.flow-question {
  font-family: 'Cardo', serif;
  font-size: 1.3rem;
  color: var(--ksb-brown);
  margin-bottom: 0.4rem;
}

.flow-sub {
  font-size: 0.88rem;
  color: #7a6a58;
  margin-bottom: 1rem;
}

/* Option grid */
.flow-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.flow-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

/* Option buttons */
.option-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.75rem 1rem;
  border: 2px solid #e0d9ce;
  border-radius: 8px;
  background: var(--ksb-cream);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: left;
  font-family: 'Karla', sans-serif;
}

.option-btn:hover {
  border-color: var(--ksb-tan);
  background: #f4f0e8;
}

.option-btn.selected {
  border-color: var(--ksb-yellow);
  background: #fffbee;
}

.option-btn.prominent {
  border-color: var(--ksb-tan);
}

.option-btn.prominent.selected {
  border-color: var(--ksb-yellow);
  background: #fffbee;
}

.option-btn-wide {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  padding: 0.75rem 1.25rem;
  width: 100%;
  gap: 1rem;
}

.option-btn-wide .option-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.option-btn-wide .option-text {
  flex: 1;
}

.option-btn-wide .option-label {
  font-weight: 600;
  font-size: 1rem;
  display: block;
}

.option-btn-wide .option-sub {
  font-size: 0.78rem;
  color: var(--ksb-muted);
  display: block;
  margin-top: 0.15rem;
}

.option-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.option-icon-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}

.option-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ksb-brown);
}

.option-sub {
  font-size: 0.78rem;
  color: #7a6a58;
}

/* Flow skip link */
.flow-skip {
  display: block;
  font-size: 0.82rem;
  color: var(--ksb-tan);
  text-align: center;
  margin-top: 0.75rem;
  text-decoration: none;
}

.flow-skip:hover { color: var(--ksb-brown); text-decoration: underline; }

/* Flow action row */
.flow-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Inquiry inline (large orders) */
.inquiry-inline {
  margin-top: 0.75rem;
  padding: 1rem;
  background: #f4f0e8;
  border-radius: 8px;
  font-size: 0.9rem;
}

.inquiry-inline p { margin-bottom: 0.5rem; }

.input-inline {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 2px solid var(--ksb-tan);
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Karla', sans-serif;
  background: #fff;
  margin-bottom: 0.5rem;
  outline: none;
  transition: border-color 0.15s;
}

.input-inline:focus { border-color: var(--ksb-yellow); }

.btn-whatsapp {
  display: inline-block;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 5px;
  margin-top: 0.25rem;
  transition: background 0.15s;
}

.btn-whatsapp:hover { background: #1ebe5d; color: #fff; }

/* ============================================================
   RECOMMENDATION CARD
   ============================================================ */
.rec-card { }

.rec-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rec-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ksb-tan);
}

.rec-bundle-img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.rec-contents {
  font-size: 0.85rem;
  color: var(--ksb-muted);
  line-height: 1.4;
}

.rec-name {
  font-family: 'Cardo', serif;
  font-size: 1.6rem;
  color: var(--ksb-brown);
}

.rec-includes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.88rem;
  color: var(--ksb-brown);
}

.rec-includes span { display: flex; align-items: center; gap: 0.3rem; }

.rec-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.25rem 0;
}

.price-main {
  font-family: 'Cardo', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ksb-brown);
}

.price-per {
  font-size: 0.85rem;
  color: #7a6a58;
}

.rec-leadtime {
  font-size: 0.82rem;
  color: #7a6a58;
}

.btn-order {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--ksb-yellow);
  color: var(--ksb-brown);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Karla', sans-serif;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s, transform 0.1s;
}

.btn-order:hover {
  background: #e6a800;
  transform: translateY(-1px);
}

.btn-order:active { transform: translateY(0); }

.rec-secondary-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
}

.rec-mini-link {
  margin-top: 0.75rem;
  text-align: center;
}

.rec-mini-link .link-btn {
  font-size: 0.82rem;
  color: var(--ksb-brown);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--ksb-tan);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: 'Karla', sans-serif;
  padding: 0;
  transition: color 0.15s;
}

.link-btn:hover { color: var(--ksb-brown); }

/* ── Bundle picker (multi-recommendation) ────────────────────── */
.rec-bundle-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.rec-bundle-option {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem;
  border: 2px solid #e0d9ce;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
}

.rec-bundle-option:hover {
  border-color: var(--ksb-tan);
}

.rec-bundle-selected {
  border-color: var(--ksb-yellow);
  box-shadow: 0 2px 12px rgba(253,187,21,0.15);
}

/* Gallery within each bundle option */
.rec-gallery {
  flex: 0 0 140px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.rec-gallery-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.rec-gallery-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.rec-gallery-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s;
}

.rec-dot.active {
  background: #fff;
}

.rec-gallery-prev,
.rec-gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.rec-gallery-prev:hover,
.rec-gallery-next:hover {
  background: rgba(0,0,0,0.5);
}

.rec-gallery-prev { left: 4px; }
.rec-gallery-next { right: 4px; }

/* Option body text */
.rec-option-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  justify-content: center;
}

.rec-option-name {
  font-family: 'Cardo', serif;
  font-size: 1rem;
  color: var(--ksb-brown);
  line-height: 1.2;
}

.rec-option-desc {
  font-size: 0.78rem;
  color: var(--ksb-muted);
  line-height: 1.3;
}

.rec-option-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.rec-option-total {
  font-family: 'Cardo', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ksb-brown);
}

.rec-option-per {
  font-size: 0.78rem;
  color: #7a6a58;
}

/* Checkout strip (price breakdown + CTA) */
.rec-checkout-strip {
  padding: 0.75rem 0;
  border-top: 1px solid #ede8e0;
}

.rec-price-breakdown {
  margin-bottom: 0.75rem;
}

.rec-price-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ksb-muted);
  padding: 0.15rem 0;
}

.rec-price-total {
  font-weight: 700;
  color: var(--ksb-brown);
  font-size: 0.95rem;
  border-top: 1px solid #ede8e0;
  padding-top: 0.4rem;
  margin-top: 0.25rem;
}

.rec-free-delivery {
  font-size: 0.8rem;
  color: #27ae60;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Mini upsell strip */
.rec-mini-upsell {
  padding: 0.75rem 0;
  border-top: 1px solid #ede8e0;
  text-align: center;
}

.rec-mini-pitch {
  font-size: 0.88rem;
  color: var(--ksb-brown);
}

.rec-mini-sub {
  font-size: 0.78rem;
  color: var(--ksb-muted);
  margin-top: 0.15rem;
}

.rec-mini-panel {
  padding: 1rem 0;
  border-top: 1px solid #ede8e0;
}

/* ============================================================
   BUTTONS (global)
   ============================================================ */
.btn-primary {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  background: var(--ksb-yellow);
  color: var(--ksb-brown);
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Karla', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  text-align: center;
}

.btn-primary:hover {
  background: #e6a800;
  color: var(--ksb-brown);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: #e0d9ce;
  color: var(--ksb-tan);
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  background: transparent;
  color: var(--ksb-brown);
  border: 2px solid var(--ksb-tan);
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: 'Karla', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.btn-ghost:hover {
  border-color: var(--ksb-brown);
  background: #f4f0e8;
  color: var(--ksb-brown);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: var(--ksb-yellow);
  border-top: 2px solid rgba(77,46,24,0.15);
  border-bottom: 2px solid rgba(77,46,24,0.15);
}

.trust-item {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ksb-brown);
}

.trust-item:not(:last-child)::after {
  content: "·";
  margin-left: 2rem;
  opacity: 0.5;
}

/* ============================================================
   LOCATION STRIP
   ============================================================ */
.location-strip {
  text-align: center;
  padding: 0.75rem 1.5rem;
  background: #f4f0e8;
  font-size: 0.88rem;
  color: var(--ksb-brown);
  border-bottom: 1px solid #e0d9ce;
}

.location-strip a {
  color: var(--ksb-brown);
  font-weight: 600;
}

.location-strip a:hover { color: var(--ksb-yellow); }

/* ============================================================
   FEATURED BUNDLES
   ============================================================ */
.featured-section {
  padding: 3rem 1.5rem;
  background: linear-gradient(to bottom, var(--ksb-cream), #f0ede4);
}

.featured-section > .bundle-grid,
.featured-section > h2,
.featured-section > p,
.featured-section > .view-all-link {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

.featured-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: -0.01em;
  position: relative;
}

.featured-section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--ksb-yellow);
  margin: 0.5rem auto 0;
}

.bundle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .bundle-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .bundle-grid { grid-template-columns: repeat(3, 1fr); }
}

.bundle-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e0d9ce;
  transition: box-shadow 0.2s;
}

.bundle-card:hover {
  box-shadow: 0 6px 24px rgba(77,46,24,0.1);
}

.bundle-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.bundle-card-body {
  padding: 1.1rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bundle-card-body h3 {
  font-size: 1.1rem;
  color: var(--ksb-brown);
}

.bundle-packs {
  font-size: 0.82rem;
  color: var(--ksb-tan);
  font-weight: 500;
}

.bundle-price {
  font-family: 'Cardo', serif;
  font-size: 1.4rem;
  color: var(--ksb-brown);
  font-weight: 700;
  margin-bottom: 0;
}

.bundle-per-pax {
  font-size: 0.8rem;
  color: var(--ksb-muted);
  margin-bottom: 0.25rem;
}

.bundle-desc {
  font-size: 0.82rem;
  color: var(--ksb-muted);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.bundle-pack-toggle {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.pack-pill {
  padding: 0.3rem 0.75rem;
  border: 1.5px solid var(--ksb-tan);
  border-radius: 20px;
  background: transparent;
  color: var(--ksb-brown);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pack-pill.selected {
  background: var(--ksb-brown);
  border-color: var(--ksb-brown);
  color: #fff;
}

.pack-pill:hover:not(.selected) {
  border-color: var(--ksb-brown);
}

.view-all-link {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.95rem;
}

.view-all-link a {
  color: var(--ksb-brown);
  font-weight: 600;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  background: var(--ksb-brown);
  padding: 3rem 1.5rem;
  color: var(--ksb-cream);
}

.testimonials h2 {
  color: var(--ksb-yellow);
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.testimonials h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--ksb-yellow);
  margin: 0.5rem auto 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Premium card style — replaces border-left treatment */
.testimonial-grid blockquote {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(253,187,21,0.25);
  border-radius: 10px;
  padding: 1.5rem;
  position: relative;
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Decorative opening quote mark */
.testimonial-grid blockquote::before {
  content: '\201C';
  font-family: 'Cardo', serif;
  font-size: 4rem;
  color: var(--ksb-yellow);
  opacity: 0.4;
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  line-height: 1;
}

.testimonial-grid blockquote p {
  color: #e0d9ce;
  margin-bottom: 0.75rem;
  font-style: italic;
  padding-top: 1.5rem;
}

.testimonial-grid cite {
  font-size: 0.78rem;
  color: var(--ksb-tan);
  font-style: normal;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 3rem 1.5rem;
  background: var(--ksb-cream);
}

.faq > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.faq h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.faq details {
  border-bottom: 1px solid #e0d9ce;
  padding: 0.75rem 0;
}

.faq summary {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  color: var(--ksb-brown);
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2rem;
  color: var(--ksb-tan);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  padding: 0.6rem 0 0.25rem;
  font-size: 0.92rem;
  color: #4a3626;
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 11;
  background: var(--ksb-brown);
  border-top: 3px solid var(--ksb-yellow);
  color: #d5cfc5;
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-logo {
  width: 120px;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  font-family: 'Cardo', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ksb-tan);
  margin: 0;
}
.footer-notice {
  font-family: 'Karla', sans-serif;
  font-style: normal;
  font-size: 0.78rem;
  margin-top: 0.5rem;
  opacity: 0.85;
}
.footer-notice a {
  color: var(--ksb-yellow);
  text-decoration: underline;
}
.footer-col h4 {
  font-family: 'Cardo', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ksb-yellow);
  margin: 0 0 0.75rem;
}
.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.82rem;
  color: #d5cfc5;
  text-decoration: none;
  line-height: 1.5;
  margin: 0;
}
.footer-col a:hover { color: var(--ksb-yellow); }
.footer-bottom {
  max-width: 960px;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.75rem;
  color: var(--ksb-tan);
}
.footer-sep {
  color: var(--ksb-tan);
  margin: 0 0.25rem;
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
}


/* ============================================================
   UTILITIES
   ============================================================ */
[x-cloak] { display: none !important; }

/* Hide Alpine transitions before JS loads */
[x-transition] { }

/* ── Checkout ─────────────────────────────────────────────────── */
.checkout-wrap { max-width: 900px; margin: 3rem auto; padding: 0 1.5rem; }
.checkout-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem; margin-top: 2rem; }
.order-summary { background: white; padding: 1.5rem; border-radius: var(--radius, 8px); border: 1px solid #e0d9ce; position: sticky; top: 80px; align-self: start; }
@media (max-width: 700px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}
.summary-line { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid #f0ede8; font-size: 0.95rem; }
.summary-subtotal { display: flex; justify-content: space-between; padding: 0.75rem 0 0; font-weight: 700; }
.delivery-note { font-size: 0.85rem; color: var(--ksb-muted); margin-top: 0.75rem; }
.checkout-form { background: white; padding: 1.5rem 2rem 2rem; border-radius: var(--radius, 8px); border: 1px solid #e0d9ce; }
.checkout-form h2:first-child { margin-top: 0; }
.checkout-form h2 { margin-top: 2rem; margin-bottom: 1rem; font-size: 1.1rem; }
.summary-delivery-fee { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.9rem; color: var(--ksb-muted); border-bottom: 1px solid #f0ede8; }
.summary-delivery-fee .free-tag { color: #2E7D32; font-weight: 600; }
.summary-estimated-total { display: flex; justify-content: space-between; padding: 1rem 0 0.5rem; font-family: 'Cardo', serif; font-size: 1.2rem; font-weight: 700; color: var(--ksb-brown); }
.summary-minimum-note { font-size: 0.78rem; color: #C62828; margin-top: 0.25rem; }
.field-group { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .field-group { grid-template-columns: 1fr; } }
.checkout-form label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 500; font-size: 0.9rem; }
.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form input[type="tel"],
.checkout-form textarea {
  padding: 0.6rem 0.8rem; border: 1px solid #ccc; border-radius: 4px;
  font-family: 'Karla', sans-serif; font-size: 1rem; width: 100%;
}
.radio-group { display: flex; gap: 2rem; margin-bottom: 1rem; }
.radio-group label { flex-direction: row; align-items: center; gap: 0.5rem; font-weight: 400; }
.pickup-fields .radio-group { flex-direction: column; gap: 0.75rem; }
.pickup-option { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.75rem 1rem; border: 1px solid #e0d6c8; border-radius: 6px; cursor: pointer; transition: border-color 0.15s; }
.pickup-option:has(input:checked) { border-color: var(--ksb-brown, #4D2E18); background: #faf6f0; }
.pickup-option input[type="radio"] { margin-top: 0.25rem; }
.pickup-option strong { font-size: 0.92rem; }
.pickup-option small { color: var(--ksb-muted, #8a7a6a); font-size: 0.82rem; }
.error-box { background: #fff0f0; border: 1px solid #ffcccc; padding: 1rem; border-radius: 4px; margin-bottom: 1.5rem; }
.error-box p { margin: 0.25rem 0; color: #cc0000; }
.btn-checkout { width: 100%; margin-top: 1.5rem; font-size: 1.1rem; }
.checkout-secure { text-align: center; font-size: 0.85rem; color: var(--ksb-muted); margin-top: 0.75rem; }
.confirm-wrap { max-width: 600px; margin: 4rem auto; padding: 0 1.5rem; text-align: center; }
.confirm-wrap h1 { font-size: 2rem; margin-bottom: 1rem; }
.confirm-wrap p { margin-bottom: 1rem; }

/* ═══ Shop page (catalog rebuild) ═══ */

/* Intro header */
.shop-intro {
  text-align: center;
  padding: 3rem 2rem 1.5rem;
  position: relative;
  background: linear-gradient(to bottom, #f0ede4, var(--ksb-cream));
  border-bottom: none;
}
.shop-intro h1 {
  font-family: 'Cardo', serif;
  font-size: 2.2rem;
  color: var(--ksb-brown);
  margin-bottom: 0.4rem;
}
.shop-intro p {
  color: var(--ksb-muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 1rem;
}
.shop-help-link {
  font-size: 0.88rem;
  color: var(--ksb-tan);
}
.shop-help-link a {
  color: var(--ksb-brown);
  font-weight: 600;
}

/* Catalog section */
.shop-catalog-section {
  padding: 2rem 2rem 2.5rem;
  border-bottom: 1px solid #ede8e0;
}

.shop-section-header {
  margin-bottom: 1.25rem;
}
.shop-section-header h2 {
  font-family: 'Cardo', serif;
  font-size: 1.8rem;
  color: var(--ksb-brown);
  margin-bottom: 0.2rem;
}
.shop-section-sub {
  font-size: 0.9rem;
  color: var(--ksb-muted);
  margin-bottom: 0.75rem;
}
.shop-section-header .pax-filter {
  margin-top: 0.5rem;
}

/* Full-width slider (not constrained by hero card) */
.shop-slider-wrap {
  position: relative;
}
.shop-slider-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 2.5rem 1rem;
}
.shop-slider-grid::-webkit-scrollbar { display: none; }
.shop-slider-grid .bundle-pick-card {
  flex: 0 0 280px;
  height: 360px;
}
.shop-slider-grid .bundle-pick-img {
  height: 240px;
}

/* Detail view — full page width (image left, info right) */
.shop-detail-view {
  display: flex;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  min-height: 420px;
}
.shop-detail-img {
  flex: 0 0 45%;
  border-radius: 12px;
  overflow: hidden;
}
.shop-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-detail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.5rem 0;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  scrollbar-width: none;
  position: relative;
}

.detail-cart-btn {
  position: absolute;
  top: 0.5rem;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  background: var(--ksb-brown);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Karla', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s;
  z-index: 2;
}

.detail-cart-btn:hover {
  background: #3a2112;
}

.detail-cart-btn svg {
  stroke: #fff;
}
.shop-detail-info::-webkit-scrollbar { display: none; }

@media (max-width: 700px) {
  .shop-detail-view {
    flex-direction: column;
    min-height: auto;
  }
  .shop-detail-info {
    max-height: none;
    overflow-y: visible;
  }
  .shop-detail-img {
    flex: none;
    max-height: 280px;
  }
  .shop-slider-grid .bundle-pick-card {
    flex: 0 0 220px;
    height: 300px;
  }
  .shop-slider-grid .bundle-pick-img {
    height: 180px;
  }
  .shop-intro h1 { font-size: 1.7rem; }
  .shop-catalog-section { padding: 1.5rem 1rem 2rem; }
  .shop-slider-grid { padding: 0.5rem 1rem 1rem; }
}

/* Individual products filter bar */
.shop-filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.shop-filter-bar .search-bar {
  flex: 1;
  min-width: 200px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--ksb-tan);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: 'Karla', sans-serif;
}
.shop-filter-bar .category-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.shop-filter-bar .pill {
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--ksb-tan);
  background: white;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: 'Karla', sans-serif;
  transition: background 0.15s, border-color 0.15s;
}
.shop-filter-bar .pill:hover { background: #f4f0e8; border-color: var(--ksb-brown); }
.shop-filter-bar .pill.active { background: var(--ksb-brown); color: white; border-color: var(--ksb-brown); box-shadow: 0 2px 8px rgba(77,46,24,0.25); }

/* Legacy shop classes kept for backwards compat */
.page-shop .shop-header { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 2rem 2rem 1.5rem; background: linear-gradient(to bottom, #f0ede4, var(--ksb-cream)); border-bottom: 1px solid #e0d9ce; }
.page-shop .search-bar { flex: 1; min-width: 200px; padding: 0.5rem 0.8rem; border: 1px solid var(--ksb-tan); border-radius: var(--radius, 6px); font-size: 0.95rem; }
.page-shop .shop-section { padding: 2rem; }
.page-shop .shop-section h2 { font-family: 'Cardo', serif; font-size: 1.8rem; margin-bottom: 1.2rem; color: var(--ksb-brown); padding-bottom: 0.5rem; border-bottom: 2px solid var(--ksb-yellow); }
.page-shop .product-grid,
.page-shop-category .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.page-shop .shop-empty { color: var(--ksb-muted); font-size: 0.95rem; padding: 1rem 0; }
.product-card { background: white; border-radius: 10px; overflow: hidden; border: 1px solid #ede8df; box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: box-shadow 0.2s, transform 0.2s; }
.product-card:hover { box-shadow: 0 6px 20px rgba(77,46,24,0.12); transform: translateY(-2px); }
.product-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--ksb-cream); }
.product-card .card-img-placeholder { width: 100%; aspect-ratio: 1 / 1; background: var(--ksb-cream); display: flex; align-items: center; justify-content: center; color: var(--ksb-tan); font-size: 2rem; }
.product-card .placeholder-logo { width: 60%; height: auto; aspect-ratio: auto; opacity: 0.25; object-fit: contain; }
.product-card .card-body { padding: 0.85rem 1rem; }
.product-card .card-name { font-family: 'Cardo', serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--ksb-brown); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .card-meta { display: none; }
.product-card .card-price { font-family: 'Cardo', serif; font-size: 1.05rem; font-weight: 700; color: var(--ksb-brown); margin-bottom: 0.75rem; }
.product-card .btn-sm { padding: 0.35rem 0.8rem; font-size: 0.85rem; background: var(--ksb-brown); color: white; }
.product-card .btn-sm:hover { background: #3a2112; }
a.product-card-link { text-decoration: none; color: inherit; display: block; cursor: pointer; }
a.product-card-link:hover { text-decoration: none; color: inherit; }

@media (max-width: 768px) {
  .page-shop .product-grid,
  .page-shop-category .product-grid,
  .shop-catalog-section .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* (removed: shop-section-nav — replaced by category tile navigation) */

/* ═══ Whole Cakes promoted section ═══ */
.whole-cakes-section {
  background: linear-gradient(135deg, #faf6ee 0%, #f5efe3 100%);
  padding: 2.5rem 2rem 3rem;
}
.whole-cakes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.whole-cake-card {
  background: white; border-radius: 12px; overflow: hidden;
  border: 1.5px solid #ede8df;
  box-shadow: 0 2px 8px rgba(77,46,24,0.06);
  transition: box-shadow 0.25s, transform 0.25s;
  text-decoration: none; color: inherit; display: block;
}
.whole-cake-card:hover {
  box-shadow: 0 8px 24px rgba(77,46,24,0.14);
  transform: translateY(-3px);
}
.whole-cake-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.whole-cake-info { padding: 1rem 1.2rem; }
.whole-cake-name {
  font-family: 'Cardo', serif; font-size: 1.1rem; font-weight: 700;
  color: var(--ksb-brown); margin: 0 0 0.3rem;
}
.whole-cake-price { font-size: 0.95rem; color: var(--ksb-muted); margin: 0; }
@media (max-width: 768px) {
  .whole-cakes-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .whole-cakes-section { padding: 1.5rem 1rem 2rem; }
}

/* ═══ Whole Cakes guided flow grid ═══ */
.whole-cakes-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  padding: 0.5rem 0;
  max-height: 60vh;
  overflow-y: auto;
}
.whole-cake-flow-card {
  background: white; border-radius: 10px; overflow: hidden;
  border: 1.5px solid #ede8df; text-decoration: none; color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.whole-cake-flow-card:hover {
  box-shadow: 0 6px 20px rgba(77,46,24,0.12);
  transform: translateY(-2px);
}
.whole-cake-flow-card img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
}
.whole-cake-flow-info { padding: 0.75rem 1rem; }
.whole-cake-flow-info strong {
  font-family: 'Cardo', serif;
  font-size: 0.95rem; color: var(--ksb-brown); display: block;
}
.whole-cake-flow-price { font-size: 0.85rem; color: var(--ksb-muted); }

/* (removed: shop-divider — no longer used) */

/* (removed: old category-hero — replaced below with full-width hero + overlay) */

/* ═══ Product grid within catalog sections ═══ */
.shop-catalog-section .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* ═══ Global search bar in shop intro ═══ */
/* Legacy — hidden, replaced by collapsible search */
.shop-search-wrap { display: none; }
.shop-help-link { display: none; }

.shop-global-search {
  width: 100%;
  padding: 0.55rem 1rem;
  border: 1px solid var(--ksb-tan);
  border-radius: 999px;
  font-size: 0.95rem;
  font-family: 'Karla', sans-serif;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.shop-global-search:focus { border-color: var(--ksb-yellow); }

/* ═══ Collapsible search — toggle button ═══ */
.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ksb-brown);
  cursor: pointer;
  transition: background 0.15s;
}
.search-toggle:hover { background: #f4f0e8; }

/* ═══ Collapsible search — expandable overlay ═══ */
.shop-search-expand {
  position: fixed;
  top: 112px; /* 56px site-nav + 56px section-nav */
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.shop-search-expand .shop-global-search {
  flex: 1;
}
.search-expand-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ksb-brown);
  cursor: pointer;
  transition: background 0.15s;
}
.search-expand-close:hover { background: #f4f0e8; }

/* Transition classes for search overlay */
.search-expand-enter { transition: opacity 0.15s ease, transform 0.15s ease; }
.search-expand-enter-start { opacity: 0; transform: translateY(-8px); }
.search-expand-enter-end { opacity: 1; transform: translateY(0); }
.search-expand-leave { transition: opacity 0.1s ease, transform 0.1s ease; }
.search-expand-leave-start { opacity: 1; transform: translateY(0); }
.search-expand-leave-end { opacity: 0; transform: translateY(-8px); }

/* Section hidden by search */
.shop-catalog-section.search-hidden { display: none; }
.product-card.search-hidden { display: none; }

/* ═══ Variant select dropdown ═══ */
.variant-select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--ksb-tan);
  border-radius: 6px;
  font-family: 'Karla', sans-serif;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ksb-brown);
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
.variant-select:focus { border-color: var(--ksb-yellow); outline: none; }

/* ═══ Product detail ═══ */
.page-product .product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 2rem; max-width: 900px; margin: 0 auto; }
@media (max-width: 640px) { .page-product .product-detail { grid-template-columns: 1fr; } }
.product-detail .product-image { border-radius: 12px; overflow: hidden; }
.product-detail .product-image img { width: 100%; border-radius: 12px; box-shadow: 0 4px 20px rgba(77,46,24,0.1); }
.product-detail .product-image .img-placeholder { width: 100%; aspect-ratio: 1; background: var(--ksb-cream); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.product-detail .product-info h1 { font-size: 2rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.product-detail .product-price { font-family: 'Cardo', serif; font-size: 1.5rem; font-weight: 700; color: var(--ksb-brown); margin: 0.75rem 0; }
.product-detail .product-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.product-detail .tag-pill { background: var(--ksb-cream); border: 1px solid var(--ksb-tan); padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.78rem; }
.product-detail .add-to-cart { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.5rem; }
.product-detail .add-to-cart .variant-select { flex: 0 0 100%; margin-bottom: 0; }
.product-detail .qty-input { width: 70px; padding: 0.5rem; border: 1px solid var(--ksb-tan); border-radius: var(--radius, 6px); text-align: center; font-size: 1rem; }
/* Dispenser details panel */
.dispenser-details-panel { background: #faf6f0; border: 1px solid #e0d6c8; border-radius: 8px; padding: 1.25rem; margin-bottom: 1.25rem; }
.dispenser-details-header { display: flex; align-items: center; margin-bottom: 0.75rem; }
.dispenser-includes { margin: 0 0 1rem; padding-left: 1.2rem; font-size: 0.9rem; line-height: 1.7; }
.dispenser-includes li { margin-bottom: 0.25rem; }
.dispenser-pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.dispenser-price-card { background: #fff; border: 2px solid #e0d6c8; border-radius: 8px; padding: 0.75rem; text-align: center; transition: border-color 0.15s, background-color 0.15s; cursor: pointer; }
.dispenser-price-card:hover { border-color: var(--ksb-yellow); }
.dispenser-price-card--active { border-color: var(--ksb-yellow); background-color: #FFF9E6; }
.dispenser-price-card--active .dispenser-price-tag { color: var(--ksb-brown); }
.dispenser-price-card strong { display: block; font-size: 0.9rem; margin-bottom: 0.25rem; }
.dispenser-price-tag { display: block; font-family: 'Cardo', serif; font-size: 1.15rem; font-weight: 700; color: var(--ksb-brown); margin-bottom: 0.15rem; }
.dispenser-price-card small { color: var(--ksb-muted); font-size: 0.78rem; }
/* Drink choice selector */
.dispenser-drink-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.75rem; }
.dispenser-drink-option { display: flex; flex-direction: column; align-items: center; padding: 0.75rem; border: 2px solid #e0d6c8; border-radius: 8px; cursor: pointer; text-align: center; transition: border-color 0.15s, background-color 0.15s; }
.dispenser-drink-option:hover { border-color: var(--ksb-yellow); }
.dispenser-drink-option--active { border-color: var(--ksb-yellow); background-color: #FFF9E6; }
.dispenser-drink-option strong { font-size: 0.95rem; }
/* Milk add-on */
.dispenser-addon { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1rem; margin-top: 0.75rem; border: 2px solid #e0d6c8; border-radius: 8px; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.dispenser-addon:hover { border-color: var(--ksb-yellow); }
.dispenser-addon input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ksb-brown); cursor: pointer; flex-shrink: 0; }
.dispenser-addon-text { display: flex; justify-content: space-between; align-items: center; flex: 1; font-size: 0.9rem; }
.dispenser-addon-price { font-family: 'Cardo', serif; font-weight: 700; color: var(--ksb-brown); }
/* Cake customisation */
.cake-customise { background: #faf6f0; border: 1px solid #e0d6c8; border-radius: 8px; padding: 1.25rem; margin-bottom: 1.25rem; }
.cake-field span { display: block; font-size: 0.9rem; margin-bottom: 0.25rem; }
.cake-field small { display: block; margin-top: 0.25rem; }

/* Cake sub-sections */
.cake-section-header { max-width: 1100px; margin: 2rem auto 0.75rem; padding: 0 1rem; }
.cake-section-header h2 { font-family: 'Cardo', serif; font-size: 1.5rem; color: var(--ksb-brown); margin-bottom: 0.25rem; }
.cake-section-header p { font-size: 0.9rem; color: var(--ksb-muted); margin: 0; }
.cake-section-divider { max-width: 1100px; margin: 2rem auto; border: none; border-top: 1px solid #e0d6c8; }

.related-products { padding: 2rem; }
.related-products h2 { font-family: 'Cardo', serif; font-size: 1.4rem; margin-bottom: 1rem; color: var(--ksb-brown); }
.related-products .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }

/* ═══ Cart page ═══ */
.page-cart .cart-wrap { max-width: 960px; margin: 3rem auto; padding: 0 1.5rem; }
.page-cart .cart-wrap h1 { font-size: 2rem; margin-bottom: 2rem; }

.cart-empty { text-align: center; padding: 3rem 0; }
.cart-empty-msg { font-size: 1.15rem; color: var(--ksb-muted); margin-bottom: 1.5rem; }

.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
@media (max-width: 780px) { .cart-layout { grid-template-columns: 1fr; } }

/* Cart rows */
.cart-items { display: flex; flex-direction: column; gap: 0; }
.cart-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #e0d9ce; flex-wrap: wrap;
}
.cart-row-img { width: 64px; height: 64px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: #f8f5ef; }
.cart-row-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 480px) { .cart-row-img { width: 52px; height: 52px; } }
.cart-row-info { flex: 1; min-width: 0; }
.cart-item-name { font-family: 'Cardo', serif; font-size: 1rem; font-weight: 700; color: var(--ksb-brown); margin-bottom: 0.2rem; }
.cart-item-meta { display: block; font-family: 'Karla', sans-serif; font-size: 0.8rem; color: var(--ksb-muted); font-weight: 400; }
.cart-item-price { font-size: 0.88rem; color: var(--ksb-muted); }

.cart-row-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.qty-controls { display: flex; align-items: center; gap: 0.5rem; }
.qty-btn {
  width: 28px; height: 28px; border-radius: 4px; border: 1px solid var(--ksb-tan);
  background: var(--ksb-cream); color: var(--ksb-brown); font-size: 1rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1;
  transition: background 0.15s, border-color 0.15s;
}
.qty-btn:hover:not(:disabled) { background: #f4f0e8; border-color: var(--ksb-brown); }
.qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.qty-btn--minus { background: var(--ksb-cream); border-color: var(--ksb-tan); }
.qty-btn--minus:hover:not(:disabled) { background: #f4f0e8; border-color: var(--ksb-brown); }
.qty-btn--add { background: var(--ksb-yellow); border-color: var(--ksb-yellow); }
.qty-btn--add:hover:not(:disabled) { background: #e6a800; border-color: #e6a800; }
.qty-value { min-width: 24px; text-align: center; font-weight: 700; font-size: 1rem; }
.qty-input { width: 48px; padding: 2px 4px; border: 1px solid var(--ksb-tan); border-radius: 4px; background: #fff; -moz-appearance: textfield; }
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:focus { outline: 2px solid var(--ksb-yellow); border-color: var(--ksb-yellow); }
.cart-row-line-total { font-size: 0.88rem; color: var(--ksb-muted); white-space: nowrap; }

/* Cart summary sidebar */
.cart-summary {
  background: #fff; border: 1px solid #e0d9ce; border-radius: 8px;
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem;
  position: sticky; top: 80px;
}
.cart-summary h2 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.cart-summary .summary-line { display: flex; justify-content: space-between; font-size: 0.95rem; padding: 0.25rem 0; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 1.05rem; padding-top: 0.75rem; border-top: 2px solid var(--ksb-brown); margin-top: 0.25rem; }
.cart-total-row strong { font-family: 'Cardo', serif; font-size: 1.25rem; }

.btn-checkout-cta { width: 100%; text-align: center; padding: 0.85rem; font-size: 1rem; margin-top: 0.5rem; }
.btn-primary--disabled { background: #e0d9ce; color: var(--ksb-tan); pointer-events: none; }
.cart-continue-link { display: block; text-align: center; font-size: 0.88rem; color: var(--ksb-muted); text-decoration: none; margin-top: 0.25rem; }
.cart-continue-link:hover { color: var(--ksb-brown); text-decoration: underline; }

.cart-free-delivery-note { font-size: 0.85rem; color: #5a7a3a; background: #f0f7ea; padding: 0.5rem 0.75rem; border-radius: 4px; }
.cart-min-order-notice { font-size: 0.85rem; color: #8a3a00; background: #fff3e8; padding: 0.5rem 0.75rem; border-radius: 4px; }

/* ═══ Content pages (about, contact) ═══ */
.content-section { max-width: 700px; margin: 3rem auto; padding: 1rem 2rem 0; }
.content-section h1 { font-size: 2.2rem; margin-bottom: 1rem; letter-spacing: -0.01em; line-height: 1.1; }
.content-section p { margin-bottom: 1rem; line-height: 1.7; }

/* ═══ About page ═══ */
.about-section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 2rem 3rem;
}

.about-hero-band {
  background: var(--ksb-brown);
  background-image: radial-gradient(circle, rgba(253,187,21,0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  color: var(--ksb-cream);
  padding: 3rem 2rem;
  text-align: center;
  border-bottom: 3px solid var(--ksb-yellow);
  margin-bottom: 0;
}

.about-hero-band h1 {
  font-family: 'Cardo', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--ksb-cream);
  margin-bottom: 0.5rem;
}

.about-hero-band .tagline {
  font-family: 'Cardo', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(248,250,242,0.75);
  letter-spacing: 0.03em;
}

.about-block {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid #e0d9ce;
}

.about-block:last-child { border-bottom: none; }

.about-block h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.about-block h2::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--ksb-yellow);
  margin-top: 0.4rem;
}

.about-block p {
  line-height: 1.75;
  color: #3a2210;
  margin-bottom: 0.85rem;
  font-size: 1.02rem;
}

.about-cta {
  margin-top: 2.5rem;
  text-align: center;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, #f4f0e8 0%, var(--ksb-cream) 100%);
  border-radius: 10px;
  border: 1px solid #e0d9ce;
}

.about-cta p {
  margin-bottom: 1.25rem;
  color: var(--ksb-brown);
  font-size: 1rem;
}

.about-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 1.25rem;
}

/* ═══ Contact page ═══ */
.contact-wrap {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2rem 3rem;
}

.contact-wrap h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.contact-wrap .contact-intro {
  font-size: 1rem;
  color: var(--ksb-muted);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.contact-info-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ksb-tan);
  font-weight: 600;
}

.contact-info-value {
  font-size: 1rem;
  color: var(--ksb-brown);
  font-weight: 500;
}

.contact-info-value a {
  color: var(--ksb-brown);
  text-decoration: none;
  font-weight: 600;
}

.contact-info-value a:hover {
  color: var(--ksb-yellow);
}

.contact-inquiry-box {
  background: var(--ksb-brown);
  color: var(--ksb-cream);
  padding: 2rem;
  border-radius: 10px;
  border-top: 3px solid var(--ksb-yellow);
}

.contact-inquiry-box h2 {
  font-family: 'Cardo', serif;
  color: var(--ksb-yellow);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.contact-inquiry-box p {
  font-size: 0.95rem;
  color: #e0d9ce;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.btn-whatsapp-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.02em;
}

.btn-whatsapp-lg:hover {
  background: #1ebe5d;
  color: #fff;
  transform: translateY(-1px);
}

.contact-map {
  margin-top: 3rem;
}

.contact-map h2 {
  font-family: 'Cardo', serif;
  font-size: 1.4rem;
  color: var(--ksb-brown);
  margin-bottom: 0.5rem;
}
.btn-map-toggle { padding: 0.5rem 1rem; border: 1px solid #e0d6c8; border-radius: 6px; background: #fff; font-family: 'Karla', sans-serif; font-size: 0.85rem; cursor: pointer; transition: all 0.15s; }
.btn-map-toggle.active { background: var(--ksb-brown); color: #fff; border-color: var(--ksb-brown); }
.btn-map-toggle:not(.active):hover { border-color: var(--ksb-brown); }

/* Mobile fix: nav wraps to multiple rows on small screens, increase top padding */
@media (max-width: 480px) {
  body:not(.page-home) main {
    padding-top: 90px;
  }
  .contact-wrap h1 {
    font-size: 1.8rem;
  }
}

/* Checkout select (time slot dropdown) */
.checkout-select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  background: #fff;
  color: var(--ksb-brown);
  appearance: auto;
}

/* ============================================================
   KSB HERO + ANIMATIONS
   ============================================================ */

/* ── Slideshow images ───────────────────────────────────────── */
.hero-bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1200ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 7000ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
  /* Warm premium filter — craft bakery, not fast food */
  filter: sepia(15%) saturate(120%) brightness(103%);
}

/* First slide visible by default — no JS required */
.hero-bg-slide:first-child {
  opacity: 1;
  transform: scale(1);
}

.hero-bg-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-bg-slide.is-exiting {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1200ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 1200ms ease-in;
}

/* ── Hero logo overlay ──────────────────────────────────────── */
/* ── Full-height right panel inside sticky hero ──────────────── */
.hero-logo {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 12;
}

.hero-logo-img {
  width: 140px;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
  transition: filter 800ms ease;
}

/* Dark background → invert logo to white */
.hero-logo-img.logo-inverted {
  filter: brightness(0) invert(1);
  box-shadow: 0 2px 16px rgba(255,255,255,0.2);
}

.hero-card {
  position: absolute;
  right: 0;
  top: 0;
  bottom: var(--bottom-bar-h);
  width: 380px;
  max-width: 45vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px 0 0 16px;
  box-shadow: -8px 0 40px rgba(0,0,0,0.18);
  z-index: 10;
  transition: width 400ms ease-in-out, max-width 400ms ease-in-out;
}

/* Expand card after step 1 — 82% screen for bundle slider */
.hero-card:has(.flow-expanded) {
  width: 82vw;
  max-width: 82vw;
  border-radius: 16px 0 0 16px;
}

.hero-card-copy {
  flex-shrink: 0;
  padding: 1.25rem 2rem 0.75rem;
  border-bottom: 1px solid #ede8e0;
}

.hero-eyebrow {
  font-family: 'Cardo', Georgia, serif;
  font-style: italic;
  font-size: 0.88rem;
  color: #9a7c5a;
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
  display: block;
}

.hero-card-copy h1 {
  font-family: 'Cardo', serif;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  color: var(--ksb-brown);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.hero-card-copy .hero-sub {
  font-size: 0.82rem;
  color: #6b5744;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.hero-card-widget {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

/* ── Step accordion / slide-up transitions ───────────────────── */
.step-enter      { transition: opacity 260ms ease, transform 260ms ease; }
.step-enter-from { opacity: 0; transform: translateY(18px); }
.step-enter-to   { opacity: 1; transform: translateY(0); }

.step-leave      { transition: opacity 180ms ease, transform 180ms ease;
                   position: absolute !important; /* leaves DOM flow — no height jump */
                   top: 0; left: 0; right: 0; }
.step-leave-from { opacity: 1; transform: translateY(0); }
.step-leave-to   { opacity: 0; transform: translateY(-14px); }

/* ── Step 1: Hover — inline sketch preview ───────────────── */
.option-btn-wrap {
  width: 100%;
}

.option-btn-wide.is-peeking {
  border-color: var(--ksb-yellow);
  background: #fffbee;
}

/* Sketch preview strip — expands below each button on hover */
.sketch-preview {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  transition: max-height 300ms ease-out, padding 300ms ease-out;
}

.sketch-preview.sketch-open {
  max-height: 100px;
  padding: 0.5rem 0.5rem 0.75rem;
}

/* Each sketch item: squiggly line + illustration */
.sketch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  opacity: 0;
  transform: scale(0.6) translateY(8px);
  transition: opacity 250ms ease-out, transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sketch-item.sketch-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Exit: fast, no stagger */
.sketch-item:not(.sketch-visible) {
  transition-delay: 0ms !important;
  transition-duration: 150ms;
}

/* Squiggly connecting line */
.squiggle-line {
  width: 30px;
  height: 8px;
  opacity: 0.5;
}

/* Illustration thumbnail */
.sketch-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
}

/* Mobile: always show, no animation */
@media (max-width: 899px) {
  .sketch-preview {
    max-height: 80px !important;
    padding: 0.4rem 0.5rem !important;
  }
  .sketch-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .sketch-img {
    width: 44px;
    height: 44px;
  }
  .squiggle-line { display: none; }
}

/* ── Bundle pick header + pax filter ──────────────────────── */
.bundle-pick-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem 0.4rem;
}

.bundle-pick-header .flow-question {
  margin-bottom: 0;
}

.pax-filter {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
}

.pax-pill {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid #e0d9ce;
  background: #fff;
  font-family: 'Karla', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ksb-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.pax-pill:hover {
  border-color: var(--ksb-tan);
  color: var(--ksb-brown);
}

.pax-pill.active {
  background: var(--ksb-brown);
  border-color: var(--ksb-brown);
  color: #fff;
}

/* ── Bundle pick grid (Step 2) ────────────────────────────── */
.bundle-pick-wrap {
  position: relative;
}

.bundle-pick-grid {
  display: flex;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 2.5rem 0.5rem;
}

.bundle-pick-grid::-webkit-scrollbar { display: none; }

/* Left/right navigation arrows */
.bundle-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 1px solid #e0d9ce;
  color: var(--ksb-brown);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bundle-slider-arrow:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.bundle-slider-prev { left: 0.25rem; }
.bundle-slider-next { right: 0.25rem; }

.bundle-pick-card {
  background: #fff;
  border: 2px solid #e0d9ce;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  flex: 0 0 280px;
  scroll-snap-align: start;
  min-height: 0;
}

.bundle-pick-card:hover {
  border-color: var(--ksb-tan);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(77,46,24,0.08);
}

.bundle-pick-selected {
  border-color: var(--ksb-yellow);
  box-shadow: 0 4px 16px rgba(253,187,21,0.15);
}

.bundle-pick-img {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: cover;
}

.bundle-pick-info {
  padding: 0.4rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex-shrink: 0;
}

.bundle-pick-name {
  font-family: 'Cardo', serif;
  font-size: 0.78rem;
  color: var(--ksb-brown);
  line-height: 1.2;
}

.bundle-pick-price {
  font-family: 'Cardo', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ksb-brown);
}

.bundle-pick-per {
  font-size: 0.68rem;
  color: var(--ksb-muted);
}

/* ── Bundle detail view: image left + info right ─────────── */
.bundle-detail-view {
  display: flex;
  gap: 1.5rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.bundle-detail-img {
  flex: 0 0 45%;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
}

.bundle-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bundle-detail {
  flex: 1 1 50%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Scroll hint — gradient fade + bouncing pill at bottom of detail column */
.bundle-detail-scroll-hint {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 0.5rem;
  background: linear-gradient(to top, #fff 30%, transparent);
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.bundle-detail-scroll-hint.hidden {
  opacity: 0;
}

.scroll-hint-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  background: var(--ksb-brown);
  color: #fff;
  font-family: 'Karla', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 20px;
  animation: scrollHintBounce 1.8s ease-in-out infinite;
}

.scroll-hint-pill svg {
  width: 12px;
  height: 12px;
}

@keyframes scrollHintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.bundle-detail-inner {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bundle-detail-name {
  font-family: 'Cardo', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ksb-brown);
}

.bundle-detail-desc {
  font-size: 0.82rem;
  color: var(--ksb-muted);
  line-height: 1.45;
}

.bundle-detail-pax {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ksb-tan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bundle-detail-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.bundle-detail-total {
  font-family: 'Cardo', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ksb-brown);
}

.bundle-detail-per {
  font-size: 0.75rem;
  color: var(--ksb-muted);
}

/* Dispenser add-on (grid selector) */
.dispenser-addon {
  border-top: 1px solid #ede8e0;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

/* ── Dispenser toggle checkbox ── */
.dispenser-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.dispenser-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--ksb-brown);
  cursor: pointer;
  flex-shrink: 0;
}

.dispenser-toggle-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.dispenser-toggle-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.dispenser-toggle-label {
  font-family: 'Karla', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ksb-brown);
}

.dispenser-toggle-from {
  font-family: 'Karla', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--ksb-muted);
}

/* ── Dispenser grid ── */
.dispenser-grid-wrap {
  background: #f5efe5;
  border: 1.5px solid #e8e1d6;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  overflow-x: auto;
}

.dispenser-grid {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Karla', sans-serif;
  font-size: 0.8rem;
}

.dispenser-grid th {
  font-weight: 600;
  color: var(--ksb-brown);
  padding: 0.2rem 0.15rem 0.3rem;
  text-align: center;
  white-space: nowrap;
  font-size: 0.82rem;
}

.dispenser-grid td {
  padding: 0.2rem 0.1rem;
  text-align: center;
  vertical-align: middle;
}

.dispenser-size-label {
  text-align: left !important;
  font-weight: 700;
  color: var(--ksb-brown);
  padding-right: 0.35rem !important;
  white-space: nowrap;
  font-size: 0.82rem;
}

.dispenser-serves {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--ksb-muted);
  line-height: 1.1;
}

.dispenser-milk-col {
  transition: opacity 0.2s ease, max-width 0.2s ease;
}

.dispenser-milk-cell {
  vertical-align: middle;
}

.dispenser-milk-note {
  display: block;
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--ksb-muted);
}

.dispenser-cell-price {
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--ksb-tan);
  margin-top: 0.1rem;
}

/* Best value nudge on 5L row */
.dispenser-best-value {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--ksb-yellow);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

/* ── Qty stepper (shared) ── */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d5cfc5;
  border-radius: 4px;
  overflow: hidden;
}

.qty-stepper .qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: #f8f5ef;
  color: var(--ksb-brown);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.qty-stepper .qty-btn:hover {
  background: #ede8e0;
}

.qty-stepper .qty-value {
  width: 28px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ksb-brown);
}

/* Smaller stepper for grid cells */
.qty-stepper-sm .qty-btn {
  width: 24px;
  height: 24px;
  font-size: 0.9rem;
}

.qty-stepper-sm .qty-value {
  width: 22px;
  font-size: 0.75rem;
}

/* ── Milk add-on row ── */
.dispenser-milk-addon {
  border-top: 1px dashed #e8e1d6;
  margin-top: 0.4rem;
  padding-top: 0.45rem;
}

.dispenser-milk-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dispenser-milk-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

img.dispenser-milk-icon {
  border-radius: 4px;
}

.dispenser-milk-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.dispenser-milk-label {
  font-family: 'Karla', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ksb-brown);
}

.dispenser-milk-limit {
  font-family: 'Karla', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--ksb-muted);
}

.dispenser-milk-stepper {
  flex-shrink: 0;
}

.dispenser-milk-price {
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--ksb-tan);
  min-width: 42px;
  text-align: right;
  margin-left: auto;
}

.dispenser-subtotal {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0 0.2rem;
  margin-top: 0.35rem;
  border-top: 1px solid #ede8e0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ksb-brown);
  letter-spacing: 0.01em;
}

/* Mobile: grid compress */
@media (max-width: 480px) {
  .dispenser-grid-wrap { padding: 0.4rem 0.35rem; }
  .dispenser-grid th,
  .dispenser-grid td { padding: 0.15rem 0.1rem; }
  .dispenser-grid th { font-size: 0.72rem; }
  .dispenser-toggle-icon { width: 30px; height: 30px; }
  .dispenser-toggle-from { font-size: 0.68rem; }
  .dispenser-serves { font-size: 0.62rem; }
  .dispenser-best-value { font-size: 0.55rem; }
  .dispenser-milk-icon { width: 30px; height: 30px; }
  .dispenser-milk-label { font-size: 0.78rem; }
  .qty-stepper-sm .qty-btn { width: 22px; height: 22px; font-size: 0.85rem; }
  .qty-stepper-sm .qty-value { width: 20px; font-size: 0.7rem; }
}

/* Discount section in checkout */
.discount-section {
  margin: 0.75rem 0;
  padding-top: 0.5rem;
  border-top: 1px solid #ede8e0;
}

.discount-input-row {
  display: flex;
  gap: 0.4rem;
}

.discount-input {
  flex: 1;
  padding: 0.55rem 0.8rem;
  border: 1px solid #d5cfc5;
  border-radius: 6px;
  font-size: 0.88rem;
  font-family: 'Karla', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: border-color 0.15s;
}
.discount-input:focus {
  outline: none;
  border-color: var(--ksb-brown);
  box-shadow: 0 0 0 2px rgba(77,46,24,0.1);
}

.btn-discount-apply {
  padding: 0.55rem 1rem;
  background: var(--ksb-brown);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: 'Karla', sans-serif;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-discount-apply:hover:not(:disabled) {
  background: #3a2112;
}

.btn-discount-apply:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.discount-msg {
  font-size: 0.75rem;
  margin-top: 0.3rem;
}

.discount-msg-ok {
  color: #2E7D32;
}

.discount-msg-err {
  color: #C62828;
}

/* Summary sub-lines (dispensers, fees) */
.summary-line-sub {
  font-size: 0.8rem;
  color: var(--ksb-muted);
}

.summary-line-fee {
  font-size: 0.82rem;
  color: var(--ksb-brown);
}

/* Mobile: dispenser accordion already stacks naturally */

/* Bundle contents list */
.bundle-contents {
  border-top: 1px solid #ede8e0;
  padding-top: 0.5rem;
  margin-top: 0.2rem;
}

.bundle-contents-heading {
  font-family: 'Cardo', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ksb-brown);
  margin-bottom: 0.3rem;
}

.bundle-contents-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bundle-contents-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 72px;
  text-align: center;
}

.bundle-contents-item span {
  font-size: 0.62rem;
  color: var(--ksb-muted);
  line-height: 1.2;
}

.bundle-contents-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Action bar: Back + ORDER side by side */
.bundle-detail-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.bundle-detail-actions .bundle-change-btn {
  flex: 0 0 auto;
  font-size: 0.82rem;
  padding: 0.6rem 1rem;
  margin: 0;
  white-space: nowrap;
}
.bundle-detail-actions .btn-order {
  flex: 1;
}

/* Detail checkout strip */
.bundle-detail-checkout {
  border-top: 1px solid #ede8e0;
  padding-top: 0.6rem;
  margin-top: auto;
  position: sticky;
  bottom: 0;
  background: var(--ksb-cream);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
  z-index: 2;
  padding-bottom: 0.5rem;
}

/* GST note — used across guided flow, cart, checkout, shop category */
.gst-note {
  font-family: 'Karla', sans-serif;
  font-size: 0.72rem;
  color: var(--ksb-muted);
  text-align: center;
  margin: 0.25rem 0 0;
}

.bundle-detail-line-total {
  display: flex;
  justify-content: space-between;
  font-family: 'Cardo', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ksb-brown);
  margin-bottom: 0.5rem;
}

/* ── Minis two-column layout ─────────────────────────────── */
.minis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  flex: 1 1 auto;
  min-height: 0;
}

.mini-column-card {
  background: #fff;
  border: 1.5px solid #e8e1d6;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mini-column-card:hover {
  border-color: var(--ksb-tan);
  box-shadow: 0 6px 20px rgba(77,46,24,0.1);
}

.mini-column-active {
  border-color: var(--ksb-yellow);
  box-shadow: 0 4px 16px rgba(253,187,21,0.15);
}

.mini-hero-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
}

.mini-column-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mini-column-body h3 {
  font-family: 'Cardo', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ksb-brown);
}

.mini-column-desc {
  font-size: 0.78rem;
  color: var(--ksb-muted);
  line-height: 1.4;
}

.mini-sizes {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.3rem;
}

.mini-size-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1.5px solid #e0d9ce;
  background: #fff;
  font-size: 0.8rem;
  color: var(--ksb-brown);
  cursor: pointer;
  transition: all 0.15s ease;
}

.mini-size-pill:hover {
  border-color: var(--ksb-tan);
  background: #faf8f5;
}

.mini-size-pill.active {
  border-color: var(--ksb-yellow);
  background: #fffdf5;
  font-weight: 600;
}

.mini-size-price {
  font-family: 'Cardo', serif;
  font-weight: 700;
}

@media (max-width: 700px) {
  .bundle-detail-view {
    flex-direction: column;
  }
  .bundle-detail-img {
    max-height: 250px;
  }
  .bundle-detail {
    flex: none;
  }
  .minis-grid {
    grid-template-columns: 1fr;
  }
}

/* Bottom bar — Back + hint + catalog link */
.bundle-pick-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.4rem 0;
  flex-shrink: 0;
}

.bundle-pick-hint {
  font-size: 0.78rem;
  color: var(--ksb-tan);
}

@media (max-width: 900px) {
  .bundle-pick-card {
    flex: 0 0 220px;
  }
}

@media (max-width: 500px) {
  .bundle-pick-card {
    flex: 0 0 200px;
  }
  .bundle-pick-grid {
    min-height: 0;
  }
}

/* ── Sprint 1: Pax pills (horizontal layout) ────────────────── */
.flow-options-inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.option-pill {
  flex: 0 1 auto;
  padding: 0.55rem 1.25rem;
  text-align: center;
  border-radius: 999px;
  align-items: center;
}

/* ── Sprint 1: Demote "No thanks" dispenser option ───────────── */
.option-demoted {
  background: transparent;
  border-color: #e0d9ce;
  opacity: 0.7;
}

.option-demoted .option-label {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ksb-muted);
}

.option-demoted .option-sub { display: none; }

.option-demoted:hover {
  opacity: 1;
  border-color: var(--ksb-tan);
}

/* ── Sprint 1: Collapse hero copy after step 1 — top bar layout ── */
.hero-card:has(.flow-expanded) .hero-card-copy {
  padding: 0.6rem 1.5rem;
  border-bottom: 1px solid #ede8e0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.hero-card:has(.flow-expanded) .hero-eyebrow {
  display: none;
}

.hero-card:has(.flow-expanded) .hero-card-copy h1 {
  font-family: 'Cardo', serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--ksb-brown);
  letter-spacing: -0.01em;
}

.hero-card:has(.flow-expanded) .hero-sub {
  display: none;
}

.hero-card:has(.flow-expanded) .halal-badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
}

/* ── Sprint 1: Loading text ──────────────────────────────────── */
.flow-loading {
  font-size: 0.88rem;
  color: var(--ksb-tan);
  font-style: italic;
}

/* Mobile: card drops below image */
@media (max-width: 699px) {
  .hero {
    height: auto;
    min-height: 0;
    background: #fff;
  }

  /* Must use .hero .hero-bg-slide to beat desktop specificity (.hero .hero-bg-slide at line 518) */
  .hero .hero-bg-slide {
    position: relative;
    height: 56vw;
    min-height: 220px;
    max-height: 340px;
    inset: auto;
    width: 100%;
    display: block;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero .hero-bg-slide:not(:first-child) { display: none; }

  .hero-logo {
    position: relative;
    top: auto;
    left: auto;
    padding: 1rem 1.25rem 0;
  }

  .hero-logo-img {
    width: 120px;
    filter: none;
  }

  .hero-card,
  .hero-card:has(.flow-expanded) {
    position: static;
    width: 100% !important;
    height: auto;
    max-width: 100% !important;
    border-radius: 0;
    box-shadow: none;
    border-top: none;
  }
}

/* ── Keyframes ───────────────────────────────────────────────── */
@keyframes ksb-fade-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ksb-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-slide { transform: scale(1) !important; transition: opacity 400ms ease !important; }
}

/* ── Scroll-reveal system ────────────────────────────────────── */
[data-reveal] {
  transition-property: opacity, transform;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-duration: 550ms;
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal="fade-up"]     { opacity: 0; transform: translateY(24px); }
[data-reveal="fade-in"]     { opacity: 0; transform: none; }
[data-reveal="slide-left"]  { opacity: 0; transform: translateX(-28px); }
[data-reveal="slide-right"] { opacity: 0; transform: translateX(28px); }
[data-reveal].is-revealed   { opacity: 1; transform: translate(0, 0); }

/* ── Product card hover enhanced ────────────────────────────── */
.product-card {
  transition: box-shadow 300ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 300ms ease;
}

.product-card:hover {
  box-shadow: 0 8px 28px rgba(77,46,24,0.15), 0 2px 8px rgba(77,46,24,0.08);
  border-color: var(--ksb-tan);
}

.product-card img {
  transition: transform 450ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}

.product-card:hover img { transform: scale(1.045); }

.product-card .card-name { position: relative; display: inline-block; }

.product-card .card-name::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  height: 1.5px; width: 0;
  background: var(--ksb-yellow);
  transition: width 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .card-name::after { width: 100%; }

/* ── Bundle card hover ───────────────────────────────────────── */
.bundle-card {
  transition: box-shadow 300ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bundle-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(77,46,24,0.13);
}

.bundle-card img {
  transition: transform 450ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  object-position: center top;
}

.bundle-card:hover img { transform: scale(1.04); }

/* ── Testimonials background ─────────────────────────────────── */
.testimonials {
  background-image: url('/assets/img/products/party_bundles-3.webp');
  background-size: cover;
  background-position: center;
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(77,46,24,0.88);
  z-index: 0;
}

.testimonials > * { position: relative; z-index: 1; }

/* ── Product preview film strip ──────────────────────────────── */
.preview-strip {
  background: var(--ksb-cream);
  border-top: 1px solid #e0d9ce;
  border-bottom: 1px solid #e0d9ce;
  overflow: hidden;
}

.preview-strip-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.preview-strip-inner::-webkit-scrollbar { display: none; }

.preview-strip-inner a,
.preview-strip-inner > img {
  flex: 0 0 calc(100% / 3);
  display: block;
}

.preview-strip-inner img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center;
  transition: transform 400ms cubic-bezier(0.22,1,0.36,1);
}

.preview-strip-inner img:hover { transform: scale(1.03); }

@media (min-width: 600px) {
  .preview-strip-inner a,
  .preview-strip-inner > img { flex: 0 0 calc(100% / 6); }
}

/* ── Section sub-heading ─────────────────────────────────────── */
.section-sub {
  text-align: center;
  color: var(--ksb-muted, #888);
  font-size: 0.95rem;
  margin-top: -1rem;
  margin-bottom: 1.75rem;
}

/* ── Category tile grid (shop page — 4:3 landscape) ──────── */
.category-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 1rem 1rem 0;
}

.category-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s ease;
  text-decoration: none;
  display: block;
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(77,46,24,0.22);
}

.category-tile:hover img {
  transform: scale(1.05);
}

.category-tile-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

.category-tile-name {
  font-family: 'Cardo', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.category-tile-count {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin: 0.2rem 0 0;
}

@media (max-width: 768px) {
  .category-tile-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .category-tile {
    aspect-ratio: 3 / 4;
  }
  .category-tile:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
  .category-tile-name {
    font-size: 1.1rem;
  }
}

/* ── Category breadcrumb ─────────────────────────────────── */
.category-breadcrumb {
  max-width: 1100px;
  margin: 2.5rem auto 0.75rem;
  padding: 0 1rem;
  font-size: 0.9rem;
  font-family: 'Karla', sans-serif;
  font-weight: 500;
}

.category-breadcrumb a {
  color: var(--ksb-brown);
  text-decoration: none;
}

.category-breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 0.4rem;
  color: var(--ksb-tan);
}

/* ── Category page hero + overlay ────────────────────────── */
.category-hero {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.category-hero img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.category-hero-overlay {
  position: absolute;
  bottom: 0; left: 1rem; right: 1rem;
  padding: 2.5rem 2rem 2rem;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%);
}

.category-hero-overlay h1 {
  font-family: 'Cardo', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.category-hero-overlay p {
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin: 0.3rem 0 0;
}

@media (max-width: 768px) {
  .category-hero img {
    height: 220px;
    border-radius: 0;
  }
  .category-hero {
    padding: 0;
  }
  .category-hero-overlay {
    left: 0; right: 0;
    border-radius: 0;
    padding: 2rem 1.25rem 1.5rem;
  }
  .category-hero-overlay h1 {
    font-size: 1.8rem;
  }
}

/* ── Bundle card grid (category pages) ───────────────────── */
.bundle-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .bundle-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* ── Media trust bar ────────────────────────────────────── */
.media-trust-bar {
  text-align: center;
  padding: 2rem 1rem;
  margin: 1.5rem 0;
  border-top: 1px solid #e8e1d6;
  border-bottom: 1px solid #e8e1d6;
  background: #faf8f4;
}

.media-trust-label {
  font-family: 'Karla', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ksb-tan);
  margin-bottom: 1rem;
}

.media-trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.media-trust-logos a {
  display: block;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.media-trust-logos a:hover {
  opacity: 1;
}

.media-trust-logos img {
  height: 48px;
  width: auto;
  border-radius: 6px;
  filter: grayscale(30%);
  transition: filter 0.2s;
}

.media-trust-logos a:hover img {
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  .media-trust-logos {
    gap: 1.25rem;
  }
  .media-trust-logos img {
    height: 40px;
  }
}

/* ── Pagination ─────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.pagination-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-family: 'Karla', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ksb-brown);
  border: 1.5px solid var(--ksb-tan);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.pagination-btn:hover {
  background: var(--ksb-cream);
  border-color: var(--ksb-brown);
}

.pagination-info {
  font-family: 'Karla', sans-serif;
  font-size: 0.9rem;
  color: var(--ksb-muted);
}

/* ── Nav search dropdown ─────────────────────────────────── */
.nav-search-btn {
  background: none;
  border: none;
  color: var(--ksb-brown);
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

.nav-right {
  position: relative;
}

.nav-search-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 360px;
  background: #fff;
  border: 1.5px solid #e8e1d6;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(77,46,24,0.15);
  z-index: 1000;
  padding: 0.75rem;
}

.nav-search-input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid #e8e1d6;
  border-radius: 8px;
  font-family: 'Karla', sans-serif;
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
}

.nav-search-input:focus {
  border-color: var(--ksb-brown);
}

.nav-search-results {
  margin-top: 0.5rem;
  max-height: 360px;
  overflow-y: auto;
}

.nav-search-result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.4rem;
  text-decoration: none;
  color: var(--ksb-text);
  border-radius: 8px;
  transition: background 0.15s;
}

.nav-search-result:hover,
.nav-search-result.highlighted {
  background: var(--ksb-cream);
}

.nav-search-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.nav-search-result-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nav-search-result-name {
  font-family: 'Cardo', serif;
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-search-result-cat {
  font-size: 0.75rem;
  color: var(--ksb-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-search-result-price {
  margin-left: auto;
  font-family: 'Cardo', serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ksb-brown);
  white-space: nowrap;
}

.nav-search-empty {
  padding: 1rem 0.4rem;
  font-size: 0.9rem;
  color: var(--ksb-muted);
  text-align: center;
}

@media (max-width: 768px) {
  .nav-search-dropdown {
    width: calc(100vw - 2rem);
    right: -0.5rem;
  }
}

/* ── Cart confirmation bottom sheet ─────────────────────── */
.cart-confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(77, 46, 24, 0.40);
  z-index: 998;
}

.cart-confirm-sheet {
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
  background: #FEFBF6;
  border-radius: 20px;
  box-shadow: 0 -4px 24px rgba(77, 46, 24, 0.2),
              0 -1px 6px rgba(77, 46, 24, 0.08);
  padding: 0.75rem 1.5rem 1.5rem;
  z-index: 999;
  max-width: 520px;
  margin: 0 auto;
}

.cart-confirm-handle {
  width: 40px;
  height: 4px;
  background: #d4cbbf;
  border-radius: 2px;
  margin: 4px auto 0.75rem;
}

.cart-confirm-close {
  position: absolute;
  top: 0.65rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--ksb-brown);
  opacity: 0.45;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  line-height: 1;
  transition: opacity 0.15s;
}

.cart-confirm-close:hover { opacity: 1; }

.cart-confirm-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.cart-confirm-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--ksb-brown);
  color: #fff;
  border: 2px solid var(--ksb-yellow);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cart-confirm-header h3 {
  font-family: 'Cardo', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ksb-brown);
  margin: 0;
}

.cart-confirm-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  background: var(--ksb-cream);
  border-radius: 10px;
  border: 1.5px solid #e8e1d6;
}

.cart-confirm-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.cart-confirm-detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cart-confirm-detail strong {
  font-family: 'Cardo', serif;
  font-size: 0.95rem;
  color: var(--ksb-brown);
  line-height: 1.2;
}

.cart-confirm-price {
  font-family: 'Karla', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #6b4c2a;
}

.cart-confirm-divider {
  border: none;
  border-top: 1.5px solid #e8e1d6;
  margin: 1rem 0;
}

.cart-confirm-actions {
  display: flex;
  gap: 0.75rem;
}

.cart-confirm-btn {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-family: 'Karla', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cart-confirm-btn:active { transform: scale(0.97); }

.cart-confirm-btn--secondary {
  background: var(--ksb-cream);
  color: var(--ksb-brown);
  border: 1.5px solid #e8e1d6;
}

.cart-confirm-btn--secondary:hover { background: #f3ede2; }

.cart-confirm-btn--primary {
  flex: 1.3;
  background: var(--ksb-brown);
  color: #fff;
  box-shadow: 0 4px 12px rgba(77, 46, 24, 0.25);
  letter-spacing: 0.03em;
}

.cart-confirm-btn--primary:hover {
  background: #3a2212;
  box-shadow: 0 6px 16px rgba(77, 46, 24, 0.3);
}

/* Hide cart bar when sheet is open */
.cart-confirm-open .cart-sticky-bar { display: none; }

/* Hide drag handle on desktop */
@media (min-width: 769px) {
  .cart-confirm-handle { display: none; }
}

/* Transitions */
.confirm-backdrop-enter { transition: opacity 0.25s ease; }
.confirm-backdrop-leave { transition: opacity 0.2s ease; }
.confirm-backdrop-from { opacity: 0; }
.confirm-backdrop-to { opacity: 1; }
.confirm-sheet-enter { transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1); }
.confirm-sheet-leave { transition: transform 0.2s ease-in; }
.confirm-sheet-from { transform: translateY(100%); }
.confirm-sheet-to { transform: translateY(0); }

@media (max-width: 768px) {
  .cart-confirm-sheet {
    bottom: 0;
    max-width: none;
    padding: 0.5rem 1.25rem 1.25rem;
    border-radius: 16px 16px 0 0;
  }
  .cart-confirm-handle { display: block; }
  .cart-confirm-img { width: 60px; height: 60px; }
  .cart-confirm-btn { font-size: 0.82rem; padding: 0.8rem 0.75rem; }
}

/* ── Sticky cart bar ─────────────────────────────────────── */
.cart-sticky-bar {
  position: fixed;
  bottom: var(--bottom-bar-h, 30px);
  left: 0;
  right: 0;
  background: var(--ksb-yellow);
  color: var(--ksb-brown);
  padding: 0.2rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Karla', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 15;
}

.cart-sticky-bar .btn-primary {
  background: var(--ksb-brown);
  color: #fff;
  font-size: 0.68rem;
  padding: 0.15rem 0.6rem;
  font-weight: 600;
}

@media (max-width: 699px) {
  .cart-sticky-bar {
    position: fixed;
    bottom: 0;
    padding: 0.65rem 1.25rem;
    font-size: 0.88rem;
    gap: 0.75rem;
    justify-content: space-between;
    border-top: 2px solid var(--ksb-brown);
    z-index: 20;
  }

  .cart-sticky-bar .btn-primary {
    font-size: 0.82rem;
    padding: 0.45rem 1rem;
    border-radius: 6px;
  }
}

/* When cart bar is showing on homepage, push hero card above both bars */
body.page-home.has-cart-items .hero {
  --bottom-bar-h: calc(30px + 20px);
}

/* ── Viewport height responsive — prevent hero card clipping ── */
/* Tier 1: medium-short desktops (750px tall and under) */
@media (min-width: 700px) and (max-height: 750px) {
  .hero-card-copy {
    padding: 0.75rem 1.5rem 0.5rem;
  }
  .hero-card-copy h1 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 0.25rem;
  }
  .hero-card-copy .hero-sub {
    font-size: 0.75rem;
    line-height: 1.35;
    margin-bottom: 0.3rem;
  }
  .hero-eyebrow {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
  }
  .halal-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
  .hero-trust-inline {
    margin-top: 0.2rem;
  }
  .hero-trust-label {
    font-size: 0.6rem;
    margin-bottom: 0.1rem;
  }
  .hero-trust-logos {
    gap: 0.5rem;
  }
  .hero-trust-logos img {
    height: 13px;
  }
  .flow-card {
    padding: 0.5rem 1.25rem 0.75rem;
  }
  .flow-question {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }
  .flow-sub {
    font-size: 0.82rem;
    margin-bottom: 0.6rem;
  }
  .flow-options {
    gap: 0.45rem;
    margin-bottom: 0.6rem;
  }
  .option-btn {
    padding: 0.55rem 0.85rem;
  }
  .option-btn-wide {
    padding: 0.55rem 1rem;
    gap: 0.75rem;
  }
  .option-btn-wide .option-icon {
    font-size: 1.3rem;
  }
  .option-btn-wide .option-label {
    font-size: 0.92rem;
  }
  .option-btn-wide .option-sub {
    font-size: 0.72rem;
  }
  .option-icon {
    font-size: 1.3rem;
  }
  .flow-exit {
    margin-top: 0.75rem;
    padding-top: 0.6rem;
  }
  .flow-exit span {
    font-size: 0.72rem;
    margin-bottom: 0.25rem;
  }
  .flow-exit a {
    font-size: 0.82rem;
    padding: 0.3rem 0;
  }
}

/* Tier 2: short desktops (650px tall and under) — expand card width */
@media (min-width: 700px) and (max-height: 650px) {
  .hero-card {
    width: 420px;
    max-width: 50vw;
  }
  .hero-card-copy {
    padding: 0.5rem 1.25rem 0.35rem;
  }
  .hero-card-copy h1 {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    margin-bottom: 0.15rem;
    line-height: 1.15;
  }
  .hero-card-copy .hero-sub {
    font-size: 0.7rem;
    line-height: 1.3;
    margin-bottom: 0.2rem;
  }
  .hero-eyebrow {
    font-size: 0.75rem;
    margin-bottom: 0.15rem;
  }
  .halal-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
  }
  .hero-trust-inline {
    margin-top: 0.15rem;
  }
  .hero-trust-label {
    display: none;
  }
  .hero-trust-logos img {
    height: 11px;
  }
  .hero-trust-google {
    font-size: 0.65rem;
  }
  .hero-trust-rating {
    font-size: 0.7rem;
  }
  .flow-card {
    padding: 0.35rem 1.25rem 0.5rem;
  }
  .flow-question {
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }
  .flow-sub {
    font-size: 0.78rem;
    margin-bottom: 0.4rem;
  }
  .flow-options {
    gap: 0.35rem;
    margin-bottom: 0.5rem;
  }
  .option-btn {
    padding: 0.45rem 0.75rem;
  }
  .option-btn-wide {
    padding: 0.45rem 0.85rem;
    gap: 0.6rem;
  }
  .option-btn-wide .option-icon {
    font-size: 1.15rem;
  }
  .option-btn-wide .option-label {
    font-size: 0.85rem;
  }
  .option-btn-wide .option-sub {
    font-size: 0.68rem;
  }
  .option-icon {
    font-size: 1.15rem;
  }
  .flow-exit {
    margin-top: 0.5rem;
    padding-top: 0.4rem;
  }
  .flow-exit span {
    font-size: 0.68rem;
    margin-bottom: 0.15rem;
  }
  .flow-exit a {
    font-size: 0.78rem;
    padding: 0.2rem 0;
  }
}

/* Tier 3: Very short desktop viewports (half-screen, split-view) */
@media (min-width: 700px) and (max-height: 560px) {
  .hero {
    min-height: 0;
  }
  .hero-card {
    width: 440px;
    max-width: 55vw;
  }
  .hero-card-copy .hero-sub {
    display: none;
  }
  .halal-badge {
    display: none;
  }
  .hero-card-copy {
    padding: 0.4rem 1.25rem 0.3rem;
  }
  .hero-card-copy h1 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
  }
  .hero-trust-inline {
    margin-top: 0.1rem;
  }
  .hero-trust-logos {
    gap: 0.4rem;
  }
  .hero-trust-logos img {
    height: 10px;
  }
  .hero-trust-google {
    font-size: 0.6rem;
  }
  .flow-card {
    padding: 0.25rem 1rem 0.4rem;
  }
  .flow-question {
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
  }
  .option-btn-wide {
    padding: 0.35rem 0.75rem;
    gap: 0.5rem;
  }
  .option-icon-img {
    width: 44px;
    height: 44px;
  }
  .option-btn-wide .option-label {
    font-size: 0.8rem;
  }
  .option-btn-wide .option-sub {
    font-size: 0.65rem;
  }
  .flow-exit {
    margin-top: 0.3rem;
    padding-top: 0.25rem;
  }
  .flow-exit span {
    font-size: 0.65rem;
    margin-bottom: 0.1rem;
  }
  .flow-exit a {
    font-size: 0.75rem;
  }
}

/* Desktop: hide mobile-only trust strip in logo bar */
.hero-logo-trust { display: none; }

/* ============================================================
   MOBILE OPTIMIZATION SPRINT — 23 Mar 2026
   Team: Mei (design) · Rex (CRO) · Dev (implementation)
   ============================================================ */

/* ── TASK 1: Homepage — guided flow visible above fold ────────
   On mobile (<699px), hero image takes ~45% of viewport height
   so the card with "What kind of spread?" is visible on load.
   ──────────────────────────────────────────────────────────── */
@media (max-width: 699px) {
  .hero .hero-bg-slide {
    height: 44vw;
    min-height: 180px;
    max-height: 280px;
  }

  .hero-logo {
    padding: 0.5rem 1.25rem;
    background: #fff;
    border-top: 3px solid var(--ksb-yellow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .hero-logo-img {
    width: 70px;
    flex-shrink: 0;
  }

  /* Card copy: compact headline, hide sub-text + old trust on mobile */
  .hero-card-copy {
    padding: 0.5rem 1.25rem 0.25rem;
    background: #fff;
  }

  .hero-card-copy h1 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 0;
  }

  .hero-card-copy .hero-sub,
  .hero-card-copy .halal-badge,
  .hero-card-copy .hero-trust-inline {
    display: none;
  }

  /* Trust logos sit next to logo in hero-logo bar (mobile only) */
  .hero-logo-trust {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: flex-end;
    overflow: hidden;
  }

  .hero-logo-trust img {
    height: 13px;
    flex-shrink: 0;
    opacity: 0.75;
  }

  .hero-logo-trust a {
    flex-shrink: 0;
    text-decoration: none;
  }

  .hero-logo-trust .hero-trust-google {
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.1rem;
    flex-shrink: 0;
    white-space: nowrap;
    color: var(--ksb-brown);
  }

  .hero-logo-trust .hero-trust-rating {
    font-size: 0.72rem;
    font-weight: 700;
  }

  .hero-logo-trust .hero-trust-reviews {
    font-size: 0.6rem;
    opacity: 0.6;
  }

  /* Homepage = single screen: hero fills viewport */
  .page-home .hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  .page-home .hero-card {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .page-home .hero-card-widget {
    flex: 1;
  }

  .hero-bottom-bar {
    position: static;
    padding: 0.5rem 1rem;
    font-size: 0.72rem;
    gap: 0.25rem;
  }

  /* Fix white space below homepage footer */
  .page-home main {
    min-height: 0;
  }

  .page-home .hero {
    overflow: visible;
  }
}

/* ── TASK 3: Sticky Add to Cart bar on product pages ──────── */
.product-sticky-bar {
  display: none;
}

@media (max-width: 768px) {
  .product-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border-top: 2px solid var(--ksb-yellow);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    padding: 0.6rem 1rem;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(100%);
    transition: transform 300ms ease;
  }

  .product-sticky-bar.is-visible {
    transform: translateY(0);
  }

  .product-sticky-bar-info {
    flex: 1;
    min-width: 0;
  }

  .product-sticky-bar-name {
    font-family: 'Cardo', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ksb-brown);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-sticky-bar-price {
    font-family: 'Cardo', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ksb-brown);
  }

  .product-sticky-bar .btn-primary {
    flex-shrink: 0;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  /* Pad bottom of product page so sticky bar doesn't cover content */
  .page-product main {
    padding-bottom: 72px;
  }
}

/* ── TASK 4: Related products — horizontal carousel on mobile ── */
@media (max-width: 768px) {
  .related-products {
    padding: 1.5rem 0 1.5rem 1rem;
  }

  .related-products h2 {
    padding-right: 1rem;
  }

  .related-products .product-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    padding-right: 1rem;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .related-products .product-grid::-webkit-scrollbar {
    display: none;
  }

  .related-products .product-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
  }

  .related-products .product-card img {
    aspect-ratio: 1 / 1;
  }

  .related-products .product-card .card-body {
    padding: 0.5rem 0.6rem;
  }

  .related-products .product-card .card-name {
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
  }

  .related-products .product-card .card-price {
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
  }

  .related-products .product-card .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }
}

/* ── TASK 5: Nav bar — tighter mobile layout ──────────────── */
@media (max-width: 480px) {
  .site-nav {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }

  .nav-logo-img {
    height: 40px;
  }

  .nav-right {
    gap: 0.5rem;
  }

  .nav-cart {
    font-size: 0.78rem;
    padding: 0.25rem 0.5rem;
  }

  .nav-whatsapp {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }

  .nav-search-btn img {
    width: 16px;
    height: 16px;
  }

  /* No longer needs extra top padding — nav fits in one row now */
  body:not(.page-home) main {
    padding-top: 52px;
  }
}

/* ── TASK 6: Category tiles — stronger gradient overlay ───── */
@media (max-width: 768px) {
  .category-tile-overlay {
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.78) 0%,
      rgba(0,0,0,0.35) 50%,
      rgba(0,0,0,0) 100%
    );
    padding: 2rem 1rem 1rem;
  }

  .category-tile-name {
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  }

  .category-tile-count {
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  }
}

/* ── TASK 7: Product card text truncation in grids ─────────── */
@media (max-width: 768px) {
  .page-shop-category .product-card .card-body {
    padding: 0.6rem 0.65rem;
  }

  .page-shop-category .product-card .card-name {
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
  }

  .page-shop-category .product-card .card-price {
    font-size: 0.92rem;
    margin-bottom: 0.4rem;
  }

  .page-shop-category .product-card .card-meta {
    display: block;
    font-size: 0.7rem;
  }

  .page-shop-category .product-card .btn-sm {
    display: none;
  }
}

/* ── TASK 8: Footer — 1-column on small phones ───────────── */
@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-col h4 {
    margin-bottom: 0.5rem;
  }

  .footer-col a,
  .footer-col p {
    font-size: 0.8rem;
  }

  .footer-bottom {
    font-size: 0.7rem;
  }
}

/* ── Bundle detail view (homepage flow) — mobile reorg ──────── */
@media (max-width: 699px) {
  /* Stack the detail view vertically */
  .bundle-detail-view {
    flex-direction: column;
  }

  .bundle-detail-img {
    max-height: none;
    background: var(--ksb-cream);
    border-radius: 10px;
    overflow: hidden;
  }

  .bundle-detail-img img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    aspect-ratio: 4 / 3;
  }

  /* Square/portrait images: contain so full product shows */
  .bundle-detail-img img.img-contain {
    object-fit: contain !important;
  }

  /* Reorder inside .bundle-detail-inner:
     name+price first, then dispenser, then Add to Cart, then What's Inside last */
  .bundle-detail-inner {
    display: flex;
    flex-direction: column;
  }

  .bundle-detail-name { order: 1; }
  .bundle-detail-pax { order: 2; }
  .bundle-detail-desc { order: 3; font-size: 0.82rem; margin-bottom: 0.5rem; }

  /* What's inside — above price */
  .bundle-contents { order: 4; }

  .bundle-detail-price { order: 5; }

  /* Dispenser addon — right after price */
  .bundle-detail-inner > .dispenser-addon { order: 6; }

  /* Total + Add to Cart — after dispenser */
  .bundle-detail-checkout { order: 7; }

  /* Dispenser addon: stack checkbox on top, grid below (full-width) */
  .dispenser-addon {
    display: block !important;
    padding: 0.5rem 0;
  }

  .dispenser-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border: 1.5px solid #e0d6c8;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: #fff;
  }

  .dispenser-toggle:has(input:checked) {
    border-color: var(--ksb-yellow);
    background: #fdf8ed;
  }

  /* Grid gets its own bordered card */
  .dispenser-grid-wrap {
    border: 1.5px solid #e0d6c8 !important;
    border-radius: 8px !important;
    background: #faf6f0 !important;
    padding: 0.4rem !important;
  }

  /* Remove outer .dispenser-addon border (wraps both toggle + grid) */
  .dispenser-addon {
    border: none !important;
    border-top: none !important;
    padding-top: 0 !important;
  }

  .dispenser-toggle-icon {
    width: 28px !important;
    height: 28px !important;
  }

  .dispenser-toggle-label {
    font-size: 0.85rem !important;
  }

  .dispenser-toggle-from {
    font-size: 0.68rem !important;
  }

  /* Grid: full-width below checkbox, keep table but compact */
  .dispenser-grid-wrap {
    overflow-x: visible !important;
    padding: 0.4rem;
  }

  .dispenser-grid {
    width: 100% !important;
    table-layout: fixed !important;
    font-size: 0.72rem !important;
  }

  .dispenser-grid th {
    font-size: 0.72rem !important;
    padding: 0.15rem 0.05rem 0.25rem !important;
  }

  .dispenser-grid td {
    padding: 0.15rem 0.05rem !important;
  }

  .dispenser-size-label {
    font-size: 0.68rem !important;
    padding-right: 0.15rem !important;
    white-space: normal !important;
  }

  .dispenser-serves {
    font-size: 0.58rem !important;
  }

  /* Compact qty steppers in grid */
  .qty-stepper-sm {
    gap: 0.1rem;
  }

  .qty-stepper-sm .qty-btn {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.75rem !important;
    padding: 0 !important;
  }

  .qty-stepper-sm .qty-value {
    font-size: 0.75rem !important;
    min-width: 16px !important;
  }

  .dispenser-cell-price {
    font-size: 0.62rem !important;
  }

  .dispenser-best-value {
    font-size: 0.58rem !important;
  }

  /* What's inside — compact on mobile */
  .bundle-contents {
    margin-top: 0.25rem;
  }

  .bundle-contents-heading {
    font-size: 0.85rem;
  }

  .bundle-contents-icon {
    width: 36px;
    height: 36px;
  }

  .bundle-contents-item {
    font-size: 0.8rem;
  }

  /* Fix: when bundle detail is expanded, let hero grow beyond 100vh
     so all content (image, What's Inside, price, Add to Cart) is reachable */
  .page-home .flow-expanded ~ .hero-bottom-bar,
  .flow-expanded {
    /* ensure guided flow can grow */
  }

  .page-home .hero:has(.flow-expanded) {
    height: auto;
    max-height: none;
  }

  /* Cap bundle image height so it doesn't eat the viewport */
  .flow-expanded .bundle-detail-img {
    max-height: 280px;
  }
}

/* ── Dispenser product page — mobile reorg ─────────────────── */
@media (max-width: 640px) {
  .dispenser-details-panel {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    margin-bottom: 0.75rem;
  }

  /* Reorder: drink choice first, then pricing, then milk, then includes/header last */
  .dispenser-details-header {
    order: 10;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e0d6c8;
    margin-bottom: 0.5rem;
  }

  .dispenser-details-header img {
    width: 36px !important;
  }

  .dispenser-details-header h3 {
    font-size: 0.88rem !important;
  }

  .dispenser-drink-grid {
    order: 1;
    gap: 0.6rem;
  }

  .dispenser-drink-option {
    padding: 0.85rem;
  }

  .dispenser-drink-option strong {
    font-size: 1rem;
  }

  .dispenser-pricing-grid {
    order: 2;
    gap: 0.6rem;
    margin-top: 0.5rem;
  }

  .dispenser-price-card {
    padding: 0.85rem 0.5rem;
  }

  .dispenser-price-tag {
    font-size: 1.25rem;
  }

  .dispenser-price-card small {
    font-size: 0.82rem;
    color: var(--ksb-tan);
  }

  .dispenser-addon {
    order: 3;
    margin-top: 0.6rem;
  }

  .dispenser-includes {
    order: 11;
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
    color: var(--ksb-muted);
  }

  /* "Perfect for corporate events" fine print */
  .dispenser-details-panel > p:last-child {
    order: 12;
    font-size: 0.75rem;
    margin-top: 0.25rem;
  }

  /* "Choose your drink" label */
  .dispenser-details-panel > p[style*="font-weight:600"] {
    order: 0;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
  }
}

/* ── Product detail page — mobile improvements ─────────────── */
@media (max-width: 640px) {
  .product-detail {
    gap: 1.25rem;
    padding: 1rem;
  }

  .product-image img {
    border-radius: 10px;
  }

  .product-info h1 {
    font-size: 1.6rem;
  }

  .add-to-cart {
    position: relative;
  }

  .add-to-cart .btn-primary {
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
    border-radius: 8px;
  }

  .add-to-cart .variant-select {
    font-size: 0.9rem;
  }

  .add-to-cart .qty-input {
    font-size: 1rem;
    width: 60px;
  }
}

