/* ==========================================================================
   PVH CAKE PLANET — STYLES
   Brand palette drawn from the printed menu card: deep navy, warm red/orange,
   clean white, with soft cream backgrounds so the modern site still feels
   like the same bakery brand.
   ========================================================================== */

:root {
  --navy: #0f2f4f;
  --navy-dark: #0a2138;
  --red: #d92b2b;
  --red-dark: #b71f1f;
  --orange: #f2792b;
  --orange-light: #ffb066;
  --cream: #fff8f0;
  --cream-2: #fff1e0;
  --white: #ffffff;
  --ink: #24242a;
  --ink-light: #6b6b76;
  --border: #ecdfd0;
  --success: #1f9d55;
  --whatsapp: #25d366;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(15, 47, 79, 0.10);
  --shadow-lg: 0 16px 40px rgba(15, 47, 79, 0.18);
  --header-h: 72px;
  --tabbar-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

a { color: inherit; text-decoration: none; }

.icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; }
.btn-small { padding: 8px 14px; font-size: 0.82rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(217,43,43,0.35); }
.btn-primary:hover { background: var(--red-dark); }

.btn-secondary { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(15,47,79,0.3); }
.btn-secondary:hover { background: var(--navy-dark); }

.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-outline-light { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-light:hover { background: var(--navy); color: #fff; }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1eb955; }

.btn-cart { background: var(--cream-2); color: var(--navy); position: relative; }
.btn-cart:hover { background: var(--orange-light); }

.cart-count {
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ---------- Header (desktop) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  display: none;
}
@media (min-width: 900px) {
  .site-header { display: block; }
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: var(--navy); font-size: 1.05rem; letter-spacing: 0.3px; }
.brand-text small { color: var(--red); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.4px; }

.main-nav { display: flex; gap: 26px; }
.main-nav a { font-weight: 600; color: var(--ink); font-size: 0.94rem; padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color 0.15s, color 0.15s; }
.main-nav a:hover { color: var(--red); border-color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #fff3e2 0%, #ffe4c7 38%, #ffd9d0 68%, #ffe9d6 100%);
  color: var(--navy);
  padding: 54px 0 60px;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(242,121,43,0.28), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(255,176,102,0.35), transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(217,43,43,0.16), transparent 45%),
    radial-gradient(circle at 8% 88%, rgba(15,47,79,0.10), transparent 40%);
  pointer-events: none;
}

/* Scattered food photos — decorative, sit behind the text panel */
.hero-scatter { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.scatter-img {
  position: absolute;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.9);
  box-shadow: 0 10px 26px rgba(15,47,79,0.18);
  opacity: 0.85;
}
/* Cakes (brownie/birthday cakes) and fries get the biggest, boldest spots;
   supporting dishes fill in as smaller accents. Kept within the outer ~20%
   edge bands so nothing sits under the frosted text panel and blurs. */
.scatter-img.s1  { width: 122px; height: 122px; top: 5%;    left: 3%;   transform: rotate(-12deg); }                 /* Brownie */
.scatter-img.s2  { width: 130px; height: 130px; top: 4%;    right: 4%;  transform: rotate(12deg); }                  /* Real cake — pink heart */
.scatter-img.s3  { width: 110px; height: 110px; bottom: 28%; left: 2%;  transform: rotate(9deg); }                   /* French Fries */
.scatter-img.s4  { width: 90px;  height: 90px;  bottom: 6%;  right: 11%; transform: rotate(-9deg); }                 /* Fries close-up */
.scatter-img.s5  { width: 100px; height: 100px; bottom: 24%; right: 2%; transform: rotate(-11deg); }                 /* Waffle */
.scatter-img.s6  { width: 88px;  height: 88px;  top: 20%;   left: 15%; transform: rotate(8deg); }                    /* Real cake — chocolate heart HBD */
.scatter-img.s7  { width: 68px;  height: 68px;  bottom: 5%;  left: 15%; transform: rotate(7deg); }                   /* Muttai Mittai (sweet) */
.scatter-img.s8  { width: 82px;  height: 82px;  bottom: 13%; left: 2%;  transform: rotate(-6deg); }                  /* Real cake — chocolate drip */
.scatter-img.s9  { width: 86px;  height: 86px;  top: 24%;   right: 14%; transform: rotate(-14deg); }                 /* Real cake — Barbie doll */
.scatter-img.s10 { width: 78px;  height: 78px;  top: 10%;   right: 21%; transform: rotate(10deg); }                  /* Real cake — pistachio HBD */
.scatter-img.s11 { width: 76px;  height: 76px;  top: 42%;   left: 5%;  transform: rotate(-8deg); }                   /* Real cake — pistachio plain */

.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 28px;
  padding: 34px 22px 30px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(15,47,79,0.12);
}

.hero-logo-wrap {
  width: 132px; height: 132px;
  border-radius: 50%;
  background: #fff;
  padding: 8px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(15,47,79,0.25);
  border: 3px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, var(--red), var(--orange));
  background-origin: border-box;
  background-clip: content-box, border-box;
  margin-bottom: 16px;
}
.hero-logo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.hero h1 {
  font-size: clamp(2.3rem, 7vw, 3.6rem);
  margin: 0;
  letter-spacing: 1px;
  font-weight: 900;
  color: var(--navy);
  text-shadow: 0 2px 0 rgba(255,255,255,0.6);
}
.hero-tagline { color: var(--red); font-weight: 800; letter-spacing: 1.5px; margin: 8px 0 2px; text-transform: uppercase; font-size: 1.05rem; }
.hero-sub { color: var(--ink); font-size: 1.24rem; font-weight: 600; margin: 8px 0 24px; max-width: 480px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 26px; }
.badge {
  background: #fff;
  border: 1.5px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(15,47,79,0.08);
}
.badge-delivery { border-color: rgba(242,121,43,0.5); color: #a34c14; background: #fff6ec; }
.badge-cake { border-color: rgba(217,43,43,0.4); color: var(--red-dark); background: #fff1f0; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 18px; }
.hero-phone { color: var(--ink-light); font-size: 1rem; font-weight: 600; }
.hero-phone a { color: var(--red); font-weight: 800; text-decoration: underline; }

@media (max-width: 600px) {
  .hero { padding-top: 26px; padding-bottom: 26px; }
  .hero-inner { padding: 26px 16px 24px; border-radius: 22px; }
  .hero-logo-wrap { width: 108px; height: 108px; }

  /* On narrow screens the frosted panel fills the width, so scattered
     photos move into a top strip and a bottom strip instead of the sides,
     peeking above/below the panel rather than being hidden behind it.
     Brownie, Birthday Cakes and both Fries shots get priority placement. */
  .scatter-img { width: 58px !important; height: 58px !important; opacity: 0.92 !important; top: auto; bottom: auto; left: auto; right: auto; }
  /* On mobile the frosted panel covers nearly the full hero height, so only
     the two edge strips (above/below the panel) stay visible — mid-panel
     accents would just blur under the glass, so they're hidden here. */
  .scatter-img.s6, .scatter-img.s8, .scatter-img.s9, .scatter-img.s10, .scatter-img.s11 { display: none; }

  /* top strip */
  .scatter-img.s1 { top: 2px;  left: 3%;  transform: rotate(-12deg); }
  .scatter-img.s2 { top: 2px;  right: 3%; transform: rotate(12deg); }
  .scatter-img.s3 { top: -8px; left: 40%; width: 50px !important; height: 50px !important; transform: rotate(8deg); }

  /* bottom strip */
  .scatter-img.s4 { top: auto; bottom: 2px;  left: 4%;  transform: rotate(-9deg); }
  .scatter-img.s5 { top: auto; bottom: 2px;  right: 4%; transform: rotate(-11deg); }
  .scatter-img.s7 { top: auto; bottom: -8px; left: 40%; width: 50px !important; height: 50px !important; transform: rotate(7deg); }
}

/* ---------- Section basics ---------- */
.section-title {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0 0 16px;
  font-weight: 800;
  position: relative;
  padding-left: 14px;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 5px;
  background: var(--red);
  border-radius: 4px;
}

/* ---------- Popular categories ---------- */
.popular-cats { padding: 34px 0 6px; }
.cat-scroller {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  scroll-snap-type: x proximity;
}
.cat-scroller::-webkit-scrollbar { height: 6px; }
.cat-scroller::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }

.pop-cat-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 108px;
  text-align: center;
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  padding: 0;
}
.pop-cat-card img {
  width: 92px; height: 92px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  margin: 0 auto 8px;
  transition: transform 0.2s ease;
}
.pop-cat-card:hover img { transform: translateY(-4px) scale(1.03); }
.pop-cat-card span { font-size: 0.82rem; font-weight: 700; color: var(--navy); }

/* ---------- Menu ---------- */
.menu-section { padding: 34px 0 50px; }

.menu-toolbar { margin-bottom: 16px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: var(--shadow);
}
.search-box .icon { color: var(--ink-light); }
.search-box input {
  border: none; outline: none; flex: 1;
  font-size: 0.95rem; background: transparent; color: var(--ink);
}

.cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  position: sticky;
  top: var(--header-h);
  background: var(--cream);
  z-index: 10;
}
@media (max-width: 899px) { .cat-tabs { top: 0; } }
.cat-tab {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cat-tab.active { background: var(--red); border-color: var(--red); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .cat-tab:hover { background: var(--red); border-color: var(--red); color: #fff; }
}

.menu-cat-group { margin-bottom: 34px; scroll-margin-top: 130px; }
.menu-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.menu-cat-header img {
  width: 54px; height: 54px; border-radius: 14px; object-fit: cover; box-shadow: var(--shadow);
}
.menu-cat-header h3 { margin: 0; color: var(--navy); font-size: 1.2rem; }
.menu-cat-header .count { color: var(--ink-light); font-size: 0.82rem; }

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.item-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.item-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.item-card .item-name { font-weight: 700; color: var(--ink); font-size: 0.96rem; line-height: 1.3; }
.item-card .item-price { color: var(--red); font-weight: 800; font-size: 1.02rem; }

.item-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.size-options { display: flex; gap: 8px; margin-top: 2px; }
.size-btn {
  flex: 1;
  padding: 7px 6px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--cream);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--navy);
  cursor: pointer;
  text-align: center;
}
.size-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.add-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}
.add-btn:hover { background: var(--navy-dark); }
.add-btn:disabled { background: var(--ink-light); cursor: not-allowed; }

.qty-control {
  display: flex; align-items: center; gap: 10px;
  background: var(--navy);
  border-radius: 999px;
  padding: 4px 6px;
}
.qty-control button {
  width: 26px; height: 26px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.18); color: #fff; font-size: 1rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.qty-control button:hover { background: rgba(255,255,255,0.3); }
.qty-control span { color: #fff; font-weight: 800; min-width: 16px; text-align: center; }

.no-results { text-align: center; color: var(--ink-light); padding: 30px 0; }

/* ---------- Birthday section ---------- */
.birthday-section { background: linear-gradient(135deg, var(--cream-2), var(--cream)); padding: 46px 0; }
.birthday-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
}
@media (max-width: 780px) { .birthday-inner { grid-template-columns: 1fr; } }
.eyebrow { color: var(--red); font-weight: 800; letter-spacing: 1px; font-size: 0.85rem; }
.birthday-text h2 { color: var(--navy); font-size: 1.9rem; margin: 6px 0 12px; }
.birthday-text p { color: var(--ink-light); line-height: 1.6; margin-bottom: 20px; }
.birthday-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.birthday-media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 130px;
  gap: 10px;
}
.birthday-media img { border-radius: 14px; box-shadow: var(--shadow-lg); width: 100%; height: 100%; object-fit: cover; display: block; }
.birthday-media img:nth-child(1) { grid-row: span 2; grid-column: span 2; } /* pink heart — hero shot of the gallery */
@media (max-width: 780px) {
  .birthday-media { grid-auto-rows: 150px; }
}
@media (max-width: 460px) {
  .birthday-media { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .birthday-media img:nth-child(1) { grid-column: span 2; grid-row: span 1; }
}

/* ---------- About / contact ---------- */
.about-section { padding: 50px 0 60px; }
.about-inner { display: flex; justify-content: center; }
.about-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 36px; text-align: center; max-width: 480px; width: 100%; border: 1px solid var(--border);
}
.about-logo { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; object-fit: cover; }
.about-card h2 { color: var(--navy); margin: 0 0 10px; }
.about-line { margin: 6px 0; color: var(--ink); }
.about-line a { color: var(--red); font-weight: 700; }
.about-ctas { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.map-placeholder-note { margin-top: 10px; font-size: 0.78rem; color: var(--ink-light); font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #cfd8e3; padding: 26px 0; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-logo { width: 44px; height: 44px; border-radius: 50%; margin-bottom: 4px; }
.footer-inner p { margin: 0; font-size: 0.85rem; }
.footer-inner a { color: #fff; text-decoration: underline; }

/* ---------- Mobile sticky tab bar ---------- */
.mobile-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--tabbar-h);
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
}
@media (min-width: 900px) { .mobile-tabbar { display: none; } body { padding-bottom: 0; } }

.tab-item {
  flex: 1;
  border: none;
  background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  color: var(--ink-light);
  font-size: 0.68rem;
  font-weight: 700;
  position: relative;
  cursor: pointer;
}
.tab-item .icon { width: 22px; height: 22px; }
.tab-item.active, .tab-item:active { color: var(--red); }
.tab-item .cart-count { position: absolute; top: 2px; right: 22%; }

/* ---------- Overlay / Drawers / Modal ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(10,20,35,0.55);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 60;
}
.overlay.show { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: #fff;
  z-index: 70;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  box-shadow: -10px 0 40px rgba(0,0,0,0.2);
}
.drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px; border-bottom: 1px solid var(--border);
}
.drawer-header h3 { margin: 0; color: var(--navy); font-size: 1.15rem; }
.icon-btn {
  border: none; background: var(--cream); width: 34px; height: 34px; border-radius: 50%;
  font-size: 1rem; cursor: pointer; color: var(--navy);
}

.drawer-body { flex: 1; overflow-y: auto; padding: 18px; }
.drawer-footer { padding: 16px 18px; border-top: 1px solid var(--border); background: #fff; }

.empty-cart { text-align: center; color: var(--ink-light); margin-top: 40px; }

.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px; background: var(--cream); border-radius: var(--radius-sm);
}
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.cart-item-meta { font-size: 0.78rem; color: var(--ink-light); }
.cart-item-price { font-weight: 700; color: var(--red); font-size: 0.85rem; margin-top: 2px; }
.remove-btn { background: none; border: none; color: var(--ink-light); font-size: 0.95rem; cursor: pointer; }
.remove-btn:hover { color: var(--red); }

.cart-totals .row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.92rem; }
.cart-totals .row.muted { color: var(--orange); font-size: 0.8rem; }
.cart-totals .row.total { font-size: 1.1rem; font-weight: 800; color: var(--navy); border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 10px; }

/* Order form */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.field input, .field textarea {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 11px 12px;
  font-size: 0.95rem; font-family: inherit; color: var(--ink); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }

.payment-options { display: flex; gap: 10px; margin-top: 4px; }
.pay-option {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 12px; cursor: pointer;
  font-weight: 700; font-size: 0.85rem; color: var(--ink);
}
.pay-option input { accent-color: var(--red); }
.pay-option:has(input:checked) { border-color: var(--red); background: #fff3f0; color: var(--red); }

.upi-panel {
  background: var(--cream); border-radius: var(--radius-md); padding: 16px; text-align: center; margin-bottom: 16px;
}
.upi-title { font-weight: 800; color: var(--navy); margin: 0 0 10px; }
.upi-qr { width: 160px; height: auto; margin: 0 auto 10px; border-radius: 10px; border: 1px solid var(--border); background: #fff; padding: 6px; }
.upi-id-row { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; color: var(--navy); margin: 0 0 8px; flex-wrap: wrap; }
.upi-note { font-size: 0.78rem; color: var(--ink-light); margin: 0; }

.order-summary-mini { background: var(--cream); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; }
.order-summary-mini .row.total { display: flex; justify-content: space-between; font-weight: 800; color: var(--navy); }
.order-summary-title { margin: 0 0 8px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; color: var(--ink-light); }
.order-summary-items { max-height: 220px; overflow-y: auto; margin-bottom: 8px; }

/* Grouped "menu name + its items" block — shared by the order-form live
   summary and the confirmation screen, so an order always shows which menu
   each item came from. */
.summary-group { margin-bottom: 10px; }
.summary-group:last-child { margin-bottom: 0; }
.summary-group-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  background: var(--navy);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 5px;
}
.summary-group .row { display: flex; justify-content: space-between; padding: 2px 2px 2px 4px; font-size: 0.88rem; }
.summary-group .row span:first-child { color: var(--ink); }
.summary-group .row span:last-child { font-weight: 700; color: var(--red); }

/* Modal (confirmation / enquiry) */
.modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(10,20,35,0.6);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.modal.show { opacity: 1; pointer-events: auto; }
.modal-card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px 26px; max-width: 420px; width: 100%;
  text-align: center; box-shadow: var(--shadow-lg); position: relative;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(16px); transition: transform 0.25s ease;
}
.modal.show .modal-card { transform: translateY(0); }
.modal-close { position: absolute; top: 14px; right: 14px; }

.confirm-icon { font-size: 2.6rem; margin-bottom: 6px; }
.modal-card h2 { color: var(--navy); margin: 0 0 8px; letter-spacing: 0.5px; }
.modal-card > p { color: var(--ink-light); margin: 0 0 16px; }

.confirm-customer { text-align: left; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px; font-size: 0.85rem; }
.confirm-customer .row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.confirm-customer .row span:first-child { color: var(--ink-light); font-weight: 600; flex-shrink: 0; }
.confirm-customer .row span:last-child { color: var(--navy); font-weight: 700; text-align: right; }

.confirm-summary { text-align: left; background: var(--cream); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px; font-size: 0.85rem; max-height: 180px; overflow-y: auto; }
.confirm-summary .row { display: flex; justify-content: space-between; padding: 3px 0; }
.confirm-summary .row span:first-child { color: var(--ink); }
.confirm-summary .row span:last-child { font-weight: 700; color: var(--navy); }

.modal-card .row.total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.05rem; color: var(--navy); padding: 8px 0; border-top: 1px dashed var(--border); margin-top: 4px; }
.confirm-payment { font-weight: 700; color: var(--red); margin: 6px 0 14px !important; }
.confirm-note { font-size: 0.82rem; }
.confirm-note a { color: var(--red); font-weight: 700; }

.confirm-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: calc(var(--tabbar-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 90;
  white-space: nowrap;
}
@media (min-width: 900px) { .toast { bottom: 24px; } }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 480px) {
  .about-card { padding: 26px 18px; }
}
