/* Meal Selector v6 — Production CSS
   Extracted from prototype-v6-refined.html */

:root {
  --orange: #EF4C00;
  --orange-light: #FFF1DF;
  --orange-hover: #FF661E;
  --cyan: #8dd5e0;
  --cyan-light: #e8f6f8;
  --dark: #2d2d2d;
  --dark-deep: #1a1a1a;
  --gray: #777;
  --gray-light: #aaa;
  --gray-faint: #d8d8d8;
  --bg: #eeecea;
  --card-bg: #1e1e1e;
  --radius: 20px;
  --diet-traditional: #EF4C00;
  --diet-traditional-bg: #fff3e6;
  --diet-fitness-f: #e91e63;
  --diet-fitness-f-bg: #fce4ec;
  --diet-fitness-m: #009688;
  --diet-fitness-m-bg: #e0f2f1;
  --diet-vegetarian: #4caf50;
  --diet-vegetarian-bg: #e8f5e9;
}

/* Reset for our page only */
.meal-selector-v6-page { margin: 0; padding: 0; }
.meal-selector-v6-page * { margin: 0; padding: 0; box-sizing: border-box; }
.meal-selector-v6-page body,
.meal-selector-v6-page {
  font-family: 'Roboto', sans-serif;
  color: var(--dark);
  height: 100%; overflow: hidden;
  background: var(--bg);
}

/* ── Floating logo (top-left) ────────────────────── */
.v6-logo {
  position: fixed; top: 0; left: 0; z-index: 300;
  display: flex; align-items: center;
  height: 52px; padding-left: 12px;
  pointer-events: auto;
  color: var(--cyan);
}
.v6-logo svg { height: 40px; width: auto; }

/* ── Floating cart (top-right) ───────────────────── */
.v6-cart {
  position: fixed; top: 0; right: 0; z-index: 300;
  display: flex; align-items: center;
  height: 52px; padding-right: 12px;
  color: var(--dark); text-decoration: none;
  pointer-events: auto;
}
.v6-cart:hover { color: var(--orange); }

/* ── Mobile: two-row header ─────────────────────── */
@media (max-width: 599px) {
  .v6-logo {
    left: 50%; transform: translateX(-50%);
    padding-left: 0; height: 44px;
  }
  .v6-logo svg { height: 36px; }
  .v6-cart { height: 44px; }
}

/* ── Loading state ──────────────────────────────── */
.v6-loading {
  display: flex; align-items: center; justify-content: center;
  height: 100vh; font-size: 16px; color: var(--gray);
}

/* ── App layout ─────────────────────────────────── */
.app {
  display: flex; flex-direction: column;
  height: 100vh;
  padding-top: 52px; /* only cat-prompt ~52px (no fixed header) */
  isolation: isolate;
}
.app.prompt-hidden { padding-top: 0; transition: padding-top 0.4s; }
@media (max-width: 599px) {
  .app { padding-top: 80px; } /* 44px logo bar + 36px pills bar */
  .app.prompt-hidden { padding-top: 44px; }
}

.main-area {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: visible;
  position: relative; z-index: 1;
}

/* ── Hat Row ──────────────────────────────────────── */
.hat-row {
  display: flex; align-items: center;
  padding: 4px 12px 6px;
  position: relative;
  width: 100%; max-width: 552px;
  flex-shrink: 0;
  overflow: visible;
}
.hat-arrow {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  opacity: 0.35; transition: opacity 0.2s;
  background: none; border: none;
}
.hat-arrow:hover { opacity: 0.8; }
.hat-arrow svg { width: 18px; height: 18px; fill: var(--dark); }

.hat-track-wrapper {
  flex: 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative; height: 80px;
}
.hat-ghost {
  display: flex; align-items: flex-end; gap: 4px;
  justify-content: center;
  opacity: 0.6;
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 4px;
  transform: scale(0.9);
  transform-origin: center bottom;
}
.hat-ghost .hat-day { cursor: pointer; background: none !important; pointer-events: none; }
.hat-ghost .hat-day.active { color: inherit; }
.hat-ghost .hat-icon { width: 26px; height: 24px; }
.hat-ghost .hat-icon-wrap { width: 26px; height: 24px; }
.hat-ghost .hat-label { font-size: 9px; }
.hat-ghost .hat-dot { width: 4px; height: 4px; }
.hat-ghost .hat-week-label {
  font-size: 10px; font-weight: 700;
  /* counteract parent's 0.6 so effective = active row's 0.7 */
  opacity: calc(0.7 / 0.6);
  color: var(--gray);
}
.hat-ghost .hat-label {
  color: var(--gray); /* boost from #aaa to #777 to counteract parent 0.6 */
}
.hat-track {
  display: flex; align-items: flex-end; gap: 4px;
  position: absolute;
  width: 100%; justify-content: center;
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.hat-track.settle { transform: translate(0,0) scale(1); opacity: 1; transition: all 0.45s cubic-bezier(0.2,0,0.2,1); }
.hat-ghost.swap-in { transform: scale(1); opacity: 1; transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease; }
.hat-track.swap-out { opacity: 0; transform: scale(0.85); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s ease; pointer-events: none; }

.hat-week-label {
  font-size: 11px; font-weight: 600; color: var(--gray);
  letter-spacing: 0.3px;
  padding: 0 2px; align-self: center; opacity: 0.7;
  white-space: pre; text-align: center; line-height: 1.15;
  flex-shrink: 0;
}
.month-sc { font-variant: small-caps; letter-spacing: 0.5px; }
.hat-date { font-weight: 700; }
.hat-kcal { font-size: 8px; color: var(--gray-light); font-weight: 500; margin-top: 1px; opacity: 0.7; }
.hat-day.active .hat-kcal { color: var(--orange); opacity: 1; }
.hat-day.completed .hat-kcal { color: var(--cyan); opacity: 0.8; }

.hat-day {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  cursor: pointer; padding: 4px 8px 3px; border-radius: 10px;
  transition: all 0.25s; color: var(--gray-faint);
}
.hat-day:hover { background: rgba(0,0,0,0.03); }
.hat-day.active { background: var(--orange-light); }
.hat-day.completed { color: var(--cyan); }
.hat-day.completed .hat-icon { filter: drop-shadow(0 1px 4px rgba(141,213,224,0.5)); }
.hat-day.partial { color: var(--gray-faint); }
.hat-icon-wrap { position: relative; width: 30px; height: 28px; }
.hat-icon-wrap .hat-icon { position: absolute; inset: 0; }
.hat-icon-wrap .hat-icon-fill { color: var(--cyan); }
.hat-day.active.completed { color: var(--cyan); background: var(--cyan-light); }

.hat-icon { width: 30px; height: 28px; transition: transform 0.25s; overflow: visible; }
.hat-day.active .hat-icon { transform: scale(1.15); }
.hat-label { font-size: 11px; font-weight: 500; color: var(--gray-light); transition: all 0.2s; text-align: center; }
.hat-day.active .hat-label { color: var(--orange); font-weight: 700; }
.hat-day.completed .hat-label { color: var(--cyan); }
.hat-day.active.completed .hat-label { color: var(--cyan); font-weight: 700; }

.hat-dots { display: flex; gap: 2px; margin-top: 1px; }
.hat-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gray-faint); transition: background 0.3s;
}
.hat-dot.diet-traditional { background: var(--diet-traditional); }
.hat-dot.diet-fitness-f { background: var(--diet-fitness-f); }
.hat-dot.diet-fitness-m { background: var(--diet-fitness-m); }
.hat-dot.diet-vegetarian { background: var(--diet-vegetarian); }
.hat-dot.diet-none { background: #8d6e63; }

/* ── 3D Cube ────────────────────────────────────── */
.cube-viewport {
  width: 100%; max-width: 600px;
  perspective: 1000px;
  perspective-origin: 50% 48%;
  position: relative;
  overflow: visible;
  padding: 16px 24px 12px;
  flex-shrink: 0;
}
.cube-scene {
  width: 100%; max-width: 520px;
  height: min(380px, calc(100vh - 260px));
  position: relative;
  transform-style: preserve-3d;
  margin: 0 auto;
}
.cube-face {
  position: absolute;
  width: 100%; height: 100%;
  backface-visibility: hidden;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15), 0 8px 32px rgba(0,0,0,0.12);
  display: flex; flex-direction: column;
  overflow: hidden;
  pointer-events: none;
}
.cube-face::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://foodiebucatarul.ro/wp-content/uploads/2021/11/Foodie-BF-SLIDER.jpg') center / cover no-repeat;
  opacity: 0.06;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}
.cube-face > * { position: relative; z-index: 1; }
.cube-face[data-slot="1"] { pointer-events: auto; }
.cube-scene:not(.animating) .cube-face[data-slot="0"],
.cube-scene:not(.animating) .cube-face[data-slot="2"] { visibility: hidden; }
.cube-scene.animating .cube-face { visibility: visible; }

/* Face header */
.face-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px 8px; flex-shrink: 0;
  position: relative;
}
.face-header-left { display: flex; flex-direction: column; min-width: 0; }
.face-title { font-size: 18px; font-weight: 700; color: #fff; white-space: nowrap; line-height: 1.1; }
.face-subtitle { font-size: 9px; color: rgba(255,255,255,0.45); font-weight: 500; white-space: nowrap; letter-spacing: 0.3px; text-transform: uppercase; line-height: 1; }
.face-header-center {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: baseline; gap: 5px;
  pointer-events: none;
}
.face-day-date { font-size: 15px; font-weight: 800; color: #fff; }
.face-day-name { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.5); font-variant: small-caps; letter-spacing: 0.3px; }
.face-header-right { display: flex; align-items: center; gap: 8px; }
.face-day-kcal {
  font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08); padding: 2px 7px; border-radius: 5px;
  white-space: nowrap;
}
.face-day-kcal span { color: var(--orange); font-weight: 700; }
.face-step { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.35); letter-spacing: 0.3px; white-space: nowrap; }
.face-step.done { color: var(--cyan); }

.face-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 0 20px; }

/* Cards */
.face-cards { flex: 1; overflow-y: auto; padding: 6px 12px 10px; }
.face-cards.dessert-cards { display: flex; flex-wrap: wrap; gap: 0; }
.face-cards.dessert-cards .meal-card { width: 100%; }
.face-cards.dessert-cards .meal-card.half { width: calc(50% - 2px); margin-right: 2px; }
.face-cards.dessert-cards .meal-card.half:last-of-type { margin-right: 0; margin-left: 2px; }
.face-cards.dessert-cards .face-divider,
.face-cards.dessert-cards .extras-toggle,
.face-cards.dessert-cards .extras-list { width: 100%; }
.face-cards::-webkit-scrollbar { width: 3px; }
.face-cards::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.meal-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 3px;
  background: transparent; border-radius: 8px;
  cursor: pointer; transition: all 0.15s;
  border-left: 3px solid transparent;
  position: relative;
}
.meal-card:hover { background: rgba(255,255,255,0.04); }
.meal-card.selected {
  background: rgba(239,76,0,0.15);
  border-left-color: var(--orange);
}
.card-info { flex: 1; min-width: 0; }
.card-title { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.9); line-height: 1.35; }
.meal-card.selected .card-title { font-weight: 600; color: #fff; }
.card-meta { font-size: 11.5px; font-weight: 400; color: rgba(255,255,255,0.4); margin-top: 2px; }
.card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.card-extra { font-size: 10px; font-weight: 600; color: #ff8a50; white-space: nowrap; }
.card-badge {
  padding: 3px 8px; border-radius: 4px;
  font-size: 9px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.2px; white-space: nowrap; flex-shrink: 0;
}
.card-badge.traditional { background: rgba(239,76,0,0.15); color: #ff8a50; }
.card-badge.fitness-f { background: rgba(233,30,99,0.15); color: #f06292; }
.card-badge.fitness-m { background: rgba(0,150,136,0.15); color: #4db6ac; }
.card-badge.vegetarian { background: rgba(76,175,80,0.15); color: #81c784; }

/* ── Extras (collapsible per-day) ────────────────── */
.extras-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; margin: 2px 0;
  cursor: pointer; border-radius: 8px;
  transition: background 0.15s;
}
.extras-toggle:hover { background: rgba(255,255,255,0.04); }
.extras-toggle-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; }
.extras-toggle-badge { font-size: 9px; font-weight: 600; color: var(--orange); background: rgba(239,76,0,0.15); padding: 2px 6px; border-radius: 4px; }
.extras-toggle-arrow { margin-left: auto; font-size: 10px; color: rgba(255,255,255,0.3); transition: transform 0.2s; }
.extras-toggle.open .extras-toggle-arrow { transform: rotate(180deg); }
.extras-list {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px 6px; padding: 0 10px;
}
.extras-list.open { max-height: 400px; }
.extra-item { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 6px; }
.extra-name { font-size: 10px; color: rgba(255,255,255,0.75); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.extra-item.has-qty .extra-name { color: rgba(255,255,255,0.95); }
.extra-price { font-size: 9px; font-weight: 600; color: rgba(255,255,255,0.4); white-space: nowrap; }
.extra-stepper { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.extra-btn {
  width: 20px; height: 20px; border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: transparent; color: rgba(255,255,255,0.5);
  font-size: 12px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; padding: 0;
}
.extra-btn:hover { border-color: rgba(255,255,255,0.3); color: #fff; }
.extra-btn.minus { border-radius: 4px 0 0 4px; }
.extra-btn.plus { border-radius: 0 4px 4px 0; }
.extra-qty {
  width: 18px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.6);
  border-top: 1.5px solid rgba(255,255,255,0.15);
  border-bottom: 1.5px solid rgba(255,255,255,0.15);
}
.extra-item.has-qty .extra-qty { color: var(--orange); }
.extra-item.has-qty .extra-btn.plus { border-color: var(--orange); color: var(--orange); }
.extra-item.has-qty .extra-btn.minus { border-color: var(--orange); color: var(--orange); }

/* ── Meal Strip ──────────────────────────────────── */
.meal-strip { display: flex; gap: 4px; padding: 0 16px 6px; }
.meal-slot {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 10px 4px; border-radius: 8px;
  height: 44px;
  cursor: pointer; transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  background: rgba(255,255,255,0.6);
  position: relative; overflow: hidden;
}
.meal-slot:hover { background: rgba(255,255,255,0.9); }
.meal-slot.active { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.meal-slot.active .slot-label { color: var(--orange); font-weight: 700; }

.meal-slot.filled { border: none; }
.meal-slot.filled.diet-traditional { background: var(--diet-traditional); }
.meal-slot.filled.diet-fitness-f { background: var(--diet-fitness-f); }
.meal-slot.filled.diet-fitness-m { background: var(--diet-fitness-m); }
.meal-slot.filled.diet-vegetarian { background: var(--diet-vegetarian); }
.meal-slot.filled.diet-none { background: #8d6e63; }
.meal-slot.filled .slot-label { color: #fff; font-weight: 600; }
.meal-slot.filled .slot-dish { color: rgba(255,255,255,0.85); }
.meal-slot.filled.active { box-shadow: 0 2px 12px rgba(0,0,0,0.2); filter: brightness(1.1); }

.slot-label { font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-light); transition: all 0.2s; text-align: center; line-height: 1.1; }
.slot-dish { font-size: 7px; font-weight: 500; color: var(--gray); text-align: center; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; padding: 0 2px; }
.slot-extra { position: absolute; top: 3px; right: 4px; font-size: 6px; font-weight: 700; color: rgba(255,255,255,0.75); white-space: nowrap; }
.meal-slot.filled .slot-extra { color: rgba(255,255,255,0.9); }

@keyframes slot-fill { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
.meal-slot.filling { animation: slot-fill 0.35s ease-out; }

/* ── Category Prompt ─────────────────────────────── */
.cat-prompt {
  position: fixed; top: 0; left: 0; right: 0;
  height: 52px; box-sizing: border-box;
  background: rgba(238,236,234,0.95);
  backdrop-filter: blur(8px);
  padding: 0 60px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: nowrap;
  z-index: 200;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.cat-prompt.hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.cat-prompt-label { font-size: 10px; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin-right: 4px; white-space: nowrap; }
#catPills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: 6px;
  font-size: 11px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; border: 1.5px solid transparent;
  position: relative; overflow: hidden;
  white-space: nowrap;
}
.cat-pill .pill-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.cat-pill[data-diet="traditional"] { background: var(--diet-traditional-bg); color: #bf3a00; }
.cat-pill[data-diet="traditional"] .pill-dot { background: var(--diet-traditional); }
.cat-pill[data-diet="traditional"]:hover { border-color: var(--diet-traditional); }
.cat-pill[data-diet="fitness-f"] { background: var(--diet-fitness-f-bg); color: #c2185b; }
.cat-pill[data-diet="fitness-f"] .pill-dot { background: var(--diet-fitness-f); }
.cat-pill[data-diet="fitness-f"]:hover { border-color: var(--diet-fitness-f); }
.cat-pill[data-diet="fitness-m"] { background: var(--diet-fitness-m-bg); color: #00695c; }
.cat-pill[data-diet="fitness-m"] .pill-dot { background: var(--diet-fitness-m); }
.cat-pill[data-diet="fitness-m"]:hover { border-color: var(--diet-fitness-m); }
.cat-pill[data-diet="vegetarian"] { background: var(--diet-vegetarian-bg); color: #2e7d32; }
.cat-pill[data-diet="vegetarian"] .pill-dot { background: var(--diet-vegetarian); }
.cat-pill[data-diet="vegetarian"]:hover { border-color: var(--diet-vegetarian); }

.cat-pill .ripple {
  position: absolute; border-radius: 50%;
  transform: scale(0); animation: ripple-out 0.6s ease-out forwards;
  pointer-events: none; opacity: 0.25;
}
@keyframes ripple-out { to { transform: scale(4); opacity: 0; } }

.cat-trigger {
  position: fixed; top: 52px; left: 50%; transform: translateX(-50%);
  z-index: 150;
  padding: 7px 18px; border-radius: 8px;
  background: rgba(255,255,255,0.95);
  font-size: 11px; font-weight: 600; color: var(--gray);
  text-transform: uppercase; letter-spacing: 0.4px;
  cursor: pointer; transition: all 0.3s;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  opacity: 0; pointer-events: none;
  white-space: nowrap;
}
.cat-trigger.visible { opacity: 1; pointer-events: auto; }
.cat-trigger:hover { background: #fff; color: var(--orange); }
@media (max-width: 599px) {
  .cat-prompt {
    top: 44px; height: 36px;
    padding: 0 12px;
    background: rgba(238,236,234,0.97);
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  }
  .cat-prompt-label { display: none; }
  .cat-pill { padding: 4px 10px; font-size: 10px; }
  .cat-trigger { top: 10px; left: 12px; transform: none; font-size: 9px; padding: 5px 10px; }
}
@media (min-width: 600px) {
  .cat-trigger { font-size: 12px; padding: 9px 22px; }
}

/* ── Tiny screens (iPhone SE etc.) ───────────────── */
@media (max-width: 375px) {
  .hat-ghost { display: none; }
  .hat-kcal { display: none; }
  .hat-week-label { display: none; }
  .hat-day { padding: 4px 6px 3px; }
  .cube-viewport { padding: 6px 10px 4px; }
  .cube-scene { height: min(340px, calc(100vh - 200px)); }
  .face-header { padding: 8px 12px 6px; }
  .face-title { font-size: 15px; }
  .face-day-date { font-size: 13px; }
  .face-day-name { font-size: 10px; }
  .face-day-kcal { font-size: 9px; }
  .face-step { font-size: 9px; }
  .face-divider { margin: 0 12px; }
  .face-cards { padding: 4px 8px 8px; }
  .meal-card { padding: 8px 10px; gap: 8px; }
  .card-title { font-size: 12px; }
  .card-meta { font-size: 10px; }
  .card-badge { font-size: 8px; padding: 2px 6px; }
  .card-extra { font-size: 9px; }
  .meal-strip { padding: 0 10px 2px; }
  .meal-slot { height: 38px; padding: 6px 2px; }
  .bottom-bar { padding: 4px 16px; }
  .bottom-cta { padding: 10px 24px; font-size: 13px; }
}

/* ── Bottom Bar ──────────────────────────────────── */
.bottom-bar {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 20px; flex-shrink: 0;
}
.bottom-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; max-width: 520px;
  padding: 14px 32px; background: var(--orange); color: #fff;
  border: none; border-radius: 10px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  letter-spacing: 0.4px; text-transform: uppercase;
  font-family: 'Roboto', sans-serif;
}
.bottom-cta:hover { background: var(--orange-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(239,76,0,0.3); }
.bottom-cta:active { transform: translateY(0); }
.bottom-cta svg { width: 16px; height: 16px; fill: #fff; }

/* ── Summary Overlay ─────────────────────────────── */
.summary-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.summary-overlay.visible { opacity: 1; pointer-events: auto; }
.summary-card {
  background: #fff; border-radius: 16px;
  padding: 28px 28px 24px; max-width: 560px; width: 92%;
  max-height: 88vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  transform: translateY(16px); transition: transform 0.3s;
}
.summary-overlay.visible .summary-card { transform: translateY(0); }
.summary-title { font-size: 18px; font-weight: 700; color: var(--dark-deep); margin-bottom: 2px; }
.summary-sub { font-size: 12px; color: var(--gray); margin-bottom: 16px; }
.summary-grid { display: grid; grid-template-columns: auto repeat(5, 1fr); gap: 3px; margin-bottom: 12px; }
.summary-week-title { font-size: 10px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin: 8px 0 4px; }
.sg-header { font-size: 9px; font-weight: 600; text-transform: uppercase; color: var(--gray-light); text-align: center; padding: 4px 2px; }
.sg-row-label { font-size: 8px; font-weight: 600; text-transform: uppercase; color: var(--gray); padding: 6px 6px 6px 0; display: flex; align-items: center; }
.sg-cell {
  border-radius: 4px; padding: 5px 3px;
  text-align: center; font-size: 8px; font-weight: 500;
  color: #fff; line-height: 1.2;
  min-height: 32px; display: flex; align-items: center; justify-content: center;
}
.sg-cell.empty { background: #f0eeec; color: var(--gray-light); }
.sg-cell.diet-traditional { background: var(--diet-traditional); }
.sg-cell.diet-fitness-f { background: var(--diet-fitness-f); }
.sg-cell.diet-fitness-m { background: var(--diet-fitness-m); }
.sg-cell.diet-vegetarian { background: var(--diet-vegetarian); }
.sg-cell.diet-none { background: #8d6e63; }
.summary-total { text-align: center; font-size: 14px; font-weight: 600; color: var(--gray); margin-bottom: 16px; }
.summary-total span { color: var(--dark-deep); font-weight: 700; }
.summary-close {
  display: block; margin: 0 auto;
  padding: 12px 36px; background: var(--orange); color: #fff;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; letter-spacing: 0.3px;
  font-family: 'Roboto', sans-serif;
}
.summary-close:hover { background: var(--orange-hover); }

/* Hide WooCommerce cart form visually */
.v6-cart-form { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
