:root {
  --bg: #fdf6ef;
  --card: #ffffff;
  --ink: #3a352f;
  --muted: #676560;
  --accent: #c9702f;
  --accent-dark: #8a4a1c;
  --accent-warm: #fb8e28;
  --tan: #d3cbab;
  --border: #ece2d2;
  --radius: 14px;
}

:root[data-theme="dark"] {
  --bg: #1c1a17;
  --card: #26231f;
  --ink: #f0ece3;
  --muted: #b2aa9c;
  --border: #3c362f;
  --tan: #8f8570;
  --accent-dark: #ffab5e;
}

* { box-sizing: border-box; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -60px;
  right: 14px;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 10px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

body {
  margin: 0;
  font-family: "Rubik", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  padding-top: 58px;
}

h1, h2 { font-family: "Frank Ruhl Libre", serif; }

/* Subtle hover affordance on every clickable control, mouse devices only
   (touch taps shouldn't get a "stuck" hover state). Elements with their
   own tailored :hover further down the cascade win on specificity. */
button, summary, .topbar-cart, .contact-row {
  transition: filter 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
  button:not(:disabled):hover,
  summary:hover,
  .topbar-cart:hover,
  .contact-row:hover {
    filter: brightness(0.93);
  }
}

/* WhatsApp float button and the whole side menu grow instead of darken.
   (Each side-menu element keeps/owns its base `transition` so this doesn't
   clobber an existing color/filter transition via ID specificity.) */
@media (hover: hover) and (pointer: fine) {
  .whatsapp-float:hover,
  #side-menu button:hover,
  #side-menu a:hover,
  #side-menu summary:hover {
    filter: none;
    transform: scale(1.05);
  }
}

#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 100% at 50% 50%, #4a4740 0%, #2f2b25 45%, #103b42 100%);
  transition: opacity 0.5s ease;
}

#loading-screen.fade-out { opacity: 0; pointer-events: none; }

.loading-logo {
  width: min(45vw, 190px);
  height: min(45vw, 190px);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.9);
  box-shadow: 0 0 0 0 rgba(0,183,205,0.55);
  animation: pulse-glow 1.6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,183,205,0.55); }
  70% { transform: scale(1.04); box-shadow: 0 0 0 26px rgba(0,183,205,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,183,205,0); }
}

/* Top bar (always fixed, visible while scrolling) */
#topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(58,53,47,0.06);
  z-index: 50;
}
#logo-home {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.topbar-icons, .topbar-left-icons { display: flex; align-items: center; gap: 4px; }

.topbar-icons button,
.topbar-left-icons button,
.topbar-cart {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink);
  padding: 8px;
  line-height: 1;
  border-radius: 8px;
  font-family: inherit;
  transition: background 0.15s ease, filter 0.15s ease;
}
.topbar-icons button:active,
.topbar-left-icons button:active,
.topbar-cart:active { background: var(--bg); }

.lang-toggle {
  font-size: 0.8rem !important;
  font-weight: 700;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  padding: 5px 10px !important;
}

#logo-home {
  justify-self: center;
  display: block;
  line-height: 0;
}

.topbar-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  transition: transform 0.15s ease;
}
#logo-home:active .topbar-logo { transform: scale(0.92); }

.topbar-cart {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}
#cart-count {
  background: var(--accent-warm);
  color: #2a1d08;
  font-size: 0.72rem;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

#cart-restore-banner {
  position: fixed;
  top: 66px;
  right: 14px;
  left: 14px;
  z-index: 45;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  font-size: 0.9rem;
}
#cart-restore-banner.hidden { display: none; }
#cart-restore-banner span { flex: 1; }
#restore-cart-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}
#dismiss-cart-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
}

#cart-toast {
  position: fixed;
  top: 66px;
  left: 14px;
  background: var(--ink);
  color: #fff;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  z-index: 55;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  max-width: 70vw;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
#cart-toast.show { opacity: 1; transform: translateY(0); }

.fly-dot {
  position: fixed;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  background: var(--accent-warm);
  border-radius: 50%;
  z-index: 60;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(.3,.6,.4,1), opacity 0.55s ease;
}

.topbar-cart.bump { animation: cart-bump 0.3s ease; }
@keyframes cart-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

#search-bar {
  position: fixed;
  top: 58px;
  right: 0;
  left: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  z-index: 49;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
#search-bar.hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }

#search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--ink);
}
#search-input:focus { outline: none; border-color: var(--accent); }

#search-results {
  margin-top: 8px;
  max-height: 60vh;
  overflow-y: auto;
}
#search-results:empty { margin-top: 0; }
.search-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: right;
  font-family: inherit;
  color: var(--ink);
}
.search-result-row:hover, .search-result-row:focus-visible { background: var(--bg); }
.search-result-row img, .search-result-row .search-result-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.search-result-row .search-result-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  color: var(--muted);
}
.search-result-row .search-result-placeholder svg { width: 20px; height: 20px; }
.search-result-name { font-size: 0.9rem; font-weight: 600; }
.search-no-results { padding: 10px 8px; color: var(--muted); font-size: 0.9rem; }

#backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30,26,20,0.4);
  z-index: 25;
  transition: opacity 0.25s ease;
}
#backdrop.hidden { opacity: 0; pointer-events: none; }

#side-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 82%);
  height: 100%;
  background: var(--card);
  box-shadow: 6px 0 20px rgba(0,0,0,0.15);
  padding: 74px 22px 22px;
  z-index: 30;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}
#side-menu.hidden { transform: translateX(105%); }

.side-menu-categories { margin-bottom: 4px; }
.side-menu-categories summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  font-family: "Frank Ruhl Libre", serif;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 4px 0 12px;
  list-style: none;
  transition: transform 0.15s ease;
}
.side-menu-categories summary::-webkit-details-marker { display: none; }
.side-menu-categories .chevron { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.2s ease; }
.side-menu-categories[open] .chevron { transform: rotate(180deg); }

.side-menu-categories[open] #side-menu-links { display: flex; flex-direction: column; gap: 4px; }
#side-menu-links button {
  text-align: right;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 6px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.15s ease;
}
#side-menu-links button:active { color: var(--accent-dark); }

.side-menu-toggles {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin: 14px 0 0;
}
.side-menu-toggles button {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.side-menu-toggles button:active,
.side-menu-toggles button:hover { color: var(--accent-dark); }
.side-menu-toggles .lang-toggle {
  font-size: 0.95rem !important;
  font-weight: 700;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

#reorder-btn {
  display: block;
  width: 100%;
  text-align: right;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  margin-bottom: 10px;
}
#reorder-btn.hidden { display: none; }

.side-menu-static {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}
.side-menu-static a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  padding: 12px 6px;
  border-bottom: 1px solid var(--border);
  transition: transform 0.15s ease;
}
.side-menu-static a:active { color: var(--accent-dark); }

.side-menu-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  margin: 18px 0 14px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px;
  border-radius: 6px;
  transition: transform 0.15s ease;
}
.side-menu-call .icon { width: 18px; height: 18px; }

.side-menu-socials {
  display: flex;
  justify-content: center;
  gap: 22px;
}
.side-menu-socials a {
  color: var(--muted);
  transition: color 0.15s ease, transform 0.15s ease;
}
.side-menu-socials a:active,
.side-menu-socials a:hover { color: var(--accent-dark); }
.side-menu-socials .icon { width: 24px; height: 24px; }

.icon { width: 22px; height: 22px; flex-shrink: 0; }

/* Hero */
.hero {
  position: relative;
  /* app.js replaces this with the real hero photo (MENU.business.heroImage)
     once it loads from Supabase - this is just the fallback shown before
     that (or if it fails to load). Uses a small compressed placeholder
     (hero-fallback.jpg, ~75KB) instead of the original 2.3MB hero-demo.jpg,
     which stays around only because og:image tags still reference it. */
  background:
    linear-gradient(180deg, rgba(25,18,10,0.35) 0%, rgba(25,18,10,0.6) 55%, rgba(25,18,10,0.88) 100%),
    url("assets/hero-fallback.jpg") center 35% / cover no-repeat;
  background-color: #19120a;
  color: #fff;
  text-align: center;
  padding: 90px 20px 48px;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-inner { max-width: 520px; margin: 0 auto; }

.hero-logo-corner {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.85);
}

.hero-title {
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  letter-spacing: 0.01em;
  color: #fff;
  font-weight: 700;
  margin: 0;
}

.hero p { color: #e8e3d8; margin: 8px 0 26px; font-size: 1rem; }

.hero-cta {
  display: inline-block;
  background: var(--accent-warm);
  color: #2a1d08;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }

#testimonials { padding: 8px 16px 4px; max-width: 720px; margin: 0 auto; }
#testimonials .category-title { margin: 24px 0 14px; }

.testimonial-scroll {
  overflow: hidden;
  padding-bottom: 8px;
  /* Forced LTR so the duplicated track lays out predictably (card 1 at
     x:0, extending right) - card text stays RTL via dir="rtl" per card. */
  direction: ltr;
}
.testimonial-track {
  display: flex;
  gap: 12px;
  width: max-content;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}
.testimonial-track.dragging { cursor: grabbing; }

.testimonial-card {
  flex: 0 0 auto;
  width: min(78vw, 300px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
}
.testimonial-card::before {
  content: "\201C";
  font-family: "Frank Ruhl Libre", serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent-warm);
  opacity: 0.35;
  position: absolute;
  top: 4px;
  right: 12px;
}
.testimonial-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 20px 0 10px;
  position: relative;
}
.testimonial-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--accent-dark);
  font-weight: 700;
}
.testimonial-name .icon { width: 15px; height: 15px; flex-shrink: 0; }
.testimonial-source-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
}

#category-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 16px;
  position: sticky;
  top: 58px;
  background: var(--bg);
  z-index: 5;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
#category-nav::-webkit-scrollbar { display: none; }

#category-nav button {
  white-space: nowrap;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 6px;
  padding: 9px 18px;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, filter 0.15s ease;
}

#category-nav button:active { transform: scale(0.96); }

#category-nav button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

main { padding: 8px 16px; max-width: 1100px; margin: 0 auto; }

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

@media (max-width: 640px) {
  .items-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .item-card-body { padding: 10px 12px 12px; }
  .item-card h3 { font-size: 0.95rem; }
  .item-info-btn { font-size: 0.76rem; margin-bottom: 6px; }
  .item-price-row { gap: 5px; }
  .item-card .price { font-size: 0.92rem; }
  .item-card .unit { font-size: 0.7rem; }
  .qty-add-row { gap: 4px; }
  .qty-stepper .qty-btn { width: 20px; height: 26px; font-size: 0.8rem; }
  .qty-stepper input[type="number"] { width: 18px; font-size: 0.8rem; }
  .qty-add-row .add-to-cart-btn { padding: 6px 4px; font-size: 0.68rem; line-height: 1.15; }
  .qty-add-row .out-of-stock-btn { padding: 6px 4px; font-size: 0.68rem; line-height: 1.15; }
}

.category-title {
  margin: 32px 0 14px;
  font-size: 1.4rem;
  color: var(--ink);
  position: relative;
  padding-bottom: 8px;
  scroll-margin-top: 116px;
}
#menu .category-title {
  margin-top: 44px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
#menu .category-title:first-of-type {
  margin-top: 20px;
  padding-top: 0;
  border-top: none;
}
.category-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 48px;
  height: 3px;
  background: var(--accent-warm);
  border-radius: 3px;
}

.item-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.2s ease;
}

.item-card.in-view { opacity: 1; transform: translateY(0); }
.item-card.out-of-stock { opacity: 0.6; }

.stock-badge {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  vertical-align: middle;
}

.out-of-stock-btn {
  background: var(--border);
  color: var(--muted);
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-family: inherit;
  cursor: not-allowed;
}
.item-card:hover { box-shadow: 0 8px 20px rgba(58,53,47,0.08); }

.privacy-page { text-align: right; }
.privacy-page h1 { text-align: center; }
.privacy-section { margin-bottom: 22px; }
.privacy-section h2 { font-size: 1.05rem; margin-bottom: 6px; }
.privacy-section p, .privacy-section ul, .privacy-note { color: var(--muted); line-height: 1.7; font-size: 0.92rem; }
.privacy-section ul { margin: 0; padding-inline-start: 22px; }
.privacy-section li { margin-bottom: 4px; }
.privacy-note { text-align: center; font-style: italic; margin: 24px 0; }
.privacy-section a { color: var(--accent-dark); }

.load-error {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.load-error p { margin: 8px 0; }
.load-error a { color: var(--accent-dark); font-weight: 700; }

#store-closed-banner {
  background: #c0392b;
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 16px;
  position: sticky;
  top: 58px;
  z-index: 40;
}

.item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.item-tag {
  background: var(--bg);
  border: 1px solid var(--accent);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 6px;
}

.item-includes {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 6px 0;
  padding-inline-start: 18px;
}
.item-includes li { margin-bottom: 2px; }

.item-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: radial-gradient(circle at 50% 40%, var(--card) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.item-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tan);
}
.item-photo-placeholder svg { width: 36%; height: 36%; }

.item-photo-wrap { position: relative; }
.item-tags-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}
.item-tag-chip {
  background: rgba(255,255,255,0.92);
  color: var(--accent-dark);
  border: 1px solid var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.item-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.item-card h3 { margin: 0 0 6px; font-size: 1.1rem; font-family: "Rubik", sans-serif; font-weight: 700; text-align: center; }
.item-card .unit { color: var(--muted); font-size: 0.78rem; }
.item-card .desc { font-size: 0.9rem; margin: 6px 0; color: #55504a; }
.item-card .price { font-weight: 700; color: var(--accent-dark); font-size: 1.05rem; white-space: nowrap; }

.info-buttons-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.item-info-btn {
  background: none;
  border: none;
  color: var(--accent-dark);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.item-options {
  margin: 10px 0;
  font-size: 0.88rem;
  background: var(--bg);
  border-radius: 10px;
  padding: 8px 10px;
}
.item-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0;
  padding: 6px 4px;
  cursor: pointer;
}
.item-options input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  display: grid;
  place-content: center;
}
.item-options input[type="radio"]::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.12s ease;
}
.item-options input[type="radio"]:checked {
  border-color: var(--accent);
}
.item-options input[type="radio"]:checked::before {
  transform: scale(1);
}

.item-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.qty-add-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.qty-add-row .qty-stepper {
  flex: 1;
  min-width: 0;
  justify-content: center;
}
.qty-add-row .add-to-cart-btn,
.qty-add-row .out-of-stock-btn {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 9px 8px;
}

.item-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}


.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.qty-stepper input[type="number"] {
  width: 32px;
  border: none;
  background: none;
  text-align: center;
  font-family: inherit;
  font-weight: 700;
  color: var(--ink);
  padding: 0;
  -moz-appearance: textfield;
}
.qty-stepper input[type="number"]::-webkit-outer-spin-button,
.qty-stepper input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-btn {
  background: var(--bg);
  border: none;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}
.qty-btn:active { background: var(--accent); color: #fff; }

.add-to-cart-btn {
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 9px 20px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.add-to-cart-btn:hover { background: var(--ink); color: var(--card); }
.add-to-cart-btn:active { transform: scale(0.95); }

/* Small popup modal for extra item info (details/options) */
#item-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, 88vw);
  max-height: 80vh;
  overflow-y: auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  padding: 22px 20px;
  z-index: 35;
}
#item-modal.hidden { display: none; }
#item-modal h3 { margin: 0 0 10px; font-family: "Rubik", sans-serif; }
.modal-warning {
  background: #fdecea;
  color: #c0392b;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  margin: 4px 0 10px;
}
.modal-add-btn { display: block; width: 100%; text-align: center; margin-top: 14px; }
#item-modal-close {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--bg);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
}

#photo-lightbox {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  z-index: 35;
}
#photo-lightbox.hidden { display: none; }
#photo-lightbox img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--card);
}
#photo-lightbox-details { padding: 4px 20px 20px; }
#photo-lightbox-details h3 { margin: 0 0 10px; font-family: "Rubik", sans-serif; }
#photo-lightbox-close {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--card);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  color: var(--ink);
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  z-index: 1;
}

#cart-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: min(400px, 100%);
  height: 100%;
  background: var(--card);
  box-shadow: 6px 0 20px rgba(0,0,0,0.15);
  padding: 22px;
  overflow-y: auto;
  z-index: 30;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}

#cart-panel.hidden { transform: translateX(-105%); }
#cart-panel h2 { margin-top: 0; }

.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 20px;
}
.wizard-step-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.wizard-step-dot.active {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}
.wizard-panel.hidden { display: none; }
.wizard-nav {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.wizard-nav button,
.wizard-panel > .wizard-next {
  flex: 1;
  padding: 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.wizard-nav .wizard-back {
  background: none;
  border: 1px solid var(--border);
  color: var(--ink);
}
.wizard-panel > .wizard-next,
.wizard-nav .wizard-next,
.wizard-nav #send-order {
  background: var(--accent-warm);
  color: #2a1d08;
  border: none;
}
.wizard-nav #send-order {
  background: #25d366;
  color: #0a2e16;
}
.wizard-panel > .wizard-next {
  display: block;
  width: 100%;
  margin-top: 16px;
}
.upsell-toggle {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--bg);
  border-radius: 6px;
  padding: 12px;
  margin: 14px 0;
  font-size: 0.9rem;
  cursor: pointer;
}
.upsell-toggle input { margin-top: 3px; }
.upsell-image { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.date-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: -8px 0 14px;
}

#order-confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 60px;
}
#order-confirmation.hidden { display: none; }
#order-confirmation .confirmation-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
}
#order-confirmation p { color: var(--muted); margin-bottom: 24px; }
#order-confirmation button { align-self: center; }

.cart-line {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 0.9rem;
}

.cart-line button {
  background: none;
  border: none;
  color: #c0392b;
  cursor: pointer;
  font-family: inherit;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 0;
  border-top: 2px solid var(--ink);
  margin-top: 4px;
}

#details-form label {
  display: block;
  margin: 12px 0 4px;
  font-size: 0.9rem;
  font-weight: 600;
}

#details-form input, #details-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--card);
  color: var(--ink);
}
#details-form input:focus, #details-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.date-field { position: relative; margin: 12px 0 4px; }
.date-field > span { display: block; margin-bottom: 4px; font-size: 0.9rem; font-weight: 600; }
.date-picker-trigger {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--card);
  color: var(--muted);
  text-align: right;
  cursor: pointer;
}
.date-picker-trigger:hover, .date-picker-trigger:focus-visible { outline: none; border-color: var(--accent); }
.date-picker-trigger.has-value { color: var(--ink); }

.date-picker-popup {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  padding: 14px;
}
.date-picker-popup.hidden { display: none; }

.date-picker-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.date-picker-nav button {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  color: var(--ink);
  cursor: pointer;
}
.date-picker-nav button:hover { border-color: var(--accent); color: var(--accent-dark); }
.date-picker-nav button:disabled { opacity: 0.4; cursor: default; }
.date-picker-nav button:disabled:hover { border-color: var(--border); color: var(--ink); }
.date-picker-nav h3 { margin: 0; font-size: 1rem; font-family: "Frank Ruhl Libre", serif; }

.date-picker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.date-picker-day {
  aspect-ratio: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
}
.date-picker-day:hover { border-color: var(--accent); }
.date-picker-day.empty { visibility: hidden; cursor: default; }
.date-picker-day.disabled { color: var(--muted); opacity: 0.4; cursor: not-allowed; }
.date-picker-day.disabled:hover { border-color: var(--border); }
.date-picker-day.today { border-color: var(--accent); border-width: 2px; }
.date-picker-day.selected { background: var(--accent); border-color: var(--accent); color: #2a1505; font-weight: 700; }

.note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }

.static-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 20px;
  text-align: center;
}
.static-page h1 { font-size: 1.8rem; margin-bottom: 16px; }
.static-page p { color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.static-page .hero-cta { display: inline-block; margin-top: 24px; color: #2a1d08; }
.coming-soon { margin-bottom: 8px; }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 28px 0;
  text-align: right;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1rem;
}
a.contact-row:active { border-color: var(--accent); }
.contact-row .icon { color: var(--muted); }

.faq-list { text-align: right; margin: 28px 0; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
}
.faq-item p { color: var(--muted); margin: 10px 0 0; line-height: 1.6; }

@media (min-width: 640px) {
  .hero h1 { font-size: 2.6rem; }
  main { padding: 8px 24px; }
}

.float-buttons {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 20;
}
.whatsapp-float {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.15s ease;
  background: #25d366;
}
.whatsapp-float:active { transform: scale(0.94); }
.whatsapp-float svg { width: 30px; height: 30px; }

.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 32px 16px;
  max-width: 1000px;
  margin: 0 auto;
}
.how-step {
  position: relative;
  text-align: center;
  padding: 20px 10px;
}
.how-num {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Frank Ruhl Libre", serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  z-index: 0;
}
.how-step h3 {
  position: relative;
  margin: 40px 0 6px;
  font-size: 1rem;
  font-family: "Rubik", sans-serif;
}
.how-step p {
  position: relative;
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .how-it-works { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; }
}

#category-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px 10px;
}
.category-icon-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 6px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
}
.category-icon-tile .icon { width: 24px; height: 24px; color: var(--accent); }
.category-icon-tile span { font-size: 0.72rem; font-weight: 600; text-align: center; line-height: 1.2; }
.category-icon-tile:active { background: var(--bg); }


.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 250;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 -2px 14px rgba(0,0,0,0.2);
}
#cookie-banner p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 560px;
}
#cookie-banner a {
  color: inherit;
  text-decoration: underline;
}
#cookie-banner button {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Accessibility toolbar */
#a11y-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #2f6fed;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  cursor: pointer;
  z-index: 60;
  transition: transform 0.15s ease;
}
#a11y-float svg { width: 28px; height: 28px; }
#a11y-float:active { transform: scale(0.94); }

#a11y-panel {
  position: fixed;
  bottom: 84px;
  right: 20px;
  width: min(300px, calc(100vw - 40px));
  max-height: 70vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 60;
  padding: 14px;
}
#a11y-panel.hidden { display: none; }
.a11y-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.a11y-panel-head button {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
}
.a11y-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.a11y-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  text-align: center;
}
.a11y-grid button.active { background: #2f6fed; color: #fff; border-color: #2f6fed; }
#a11y-reset {
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 8px;
}
#a11y-statement-link {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--accent-dark);
}

/* The stylesheet sizes text in rem, which scales off the root (html)
   font-size, not body's - these have to target html to reach all of it. */
html.a11y-text-lg { font-size: 112%; }
html.a11y-text-xl { font-size: 126%; }

body.a11y-contrast, body.a11y-contrast * {
  background-color: #000 !important;
  color: #ffeb3b !important;
  border-color: #ffeb3b !important;
}
body.a11y-contrast img, body.a11y-contrast svg:not(#a11y-float svg) { filter: grayscale(1) contrast(1.2); }

/* filter on children, not body itself - filter on an ancestor turns it
   into the containing block for position:fixed descendants, which would
   knock the topbar/floats/panels out of their normal fixed position */
body.a11y-grayscale > *:not(#a11y-float):not(#a11y-panel) { filter: grayscale(1); }

body.a11y-highlight-links a {
  background: #ffeb3b !important;
  color: #000 !important;
  text-decoration: underline !important;
  outline: 2px solid #000 !important;
}

body.a11y-big-cursor, body.a11y-big-cursor * {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 24 24"><path d="M2 2l7.5 19 2.5-7.5L19.5 11z" fill="black" stroke="white" stroke-width="1.5"/></svg>') 2 2, auto !important;
}

body.a11y-readable-font, body.a11y-readable-font * {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.01em !important;
  line-height: 1.8 !important;
}

body.a11y-no-motion *, body.a11y-no-motion *::before, body.a11y-no-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

.testimonial-date { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--muted); }
.item-ingredients { margin: 8px 0; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.item-ingredients strong { color: var(--ink); }
#wa-fallback-link { display: inline-block; margin-bottom: 12px; }
#wa-fallback-link.hidden { display: none; }
