/* ==================================================
   PASTO — STYLESHEET
   All visual styling for the Pasto website.
   Edit this file to change colors, fonts, spacing, layout.
   ================================================== */

/* ============================================
   CSS VARIABLES (your brand colors & fonts)
   Edit these to change the entire site's look.
   ============================================ */
:root {
  --red: #E63946;
  --red-dark: #C92837;
  --charcoal: #1A1A1A;
  --cream: #FFF8F0;
  --cream-dark: #F5EDE0;
  --kraft: #C9A876;
  --muted: #8B7E6B;
  --display: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
  --maxw: 1240px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

/* ============================================
   BACKGROUND NOODLE PATTERN
   Used throughout the site for subtle texture
   ============================================ */
.noodle-bg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'><g transform='translate(18,14) rotate(-15)'><path d='M 12 12 Q 28 8 34 22 Q 39 36 26 42 Q 14 47 8 38 Q 4 28 14 26 Q 22 24 24 32' fill='none' stroke='%23E63946' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' opacity='0.12'/></g></svg>");
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
  transition: padding 0.3s ease;
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links { display: flex; align-items: center; gap: 28px; }

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--red); }

.nav-cart {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--charcoal);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s, background 0.2s;
}

.nav-cart:hover {
  background: var(--red);
  transform: translateY(-1px);
}

.cart-count {
  background: var(--red);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.nav-cart.empty .cart-count { display: none; }

@media (max-width: 768px) {
  .nav-links a:not(.nav-cart) { display: none; }
  .nav-logo-img { height: 36px; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 24px 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--red);
}

.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s forwards;
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s forwards;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  justify-self: end;
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
}

.hero-bowl {
  width: 100%;
  height: 100%;
  position: relative;
}

/* When admin uploads a hero photo, hide the SVG illustrations
   and show the photo in their place. Mascot + stamp still
   overlay on top for branding flourish. */
.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--charcoal);
  box-shadow: 0 24px 48px -16px rgba(26, 26, 26, 0.25);
  display: block;
}
.hero-visual.has-photo .hero-bowl { display: none; }

.hero-mascot {
  position: absolute;
  top: -20px;
  right: -10px;
  width: 90px;
  height: 110px;
  z-index: 3;
  animation: gentleBob 4s ease-in-out infinite;
}

@keyframes gentleBob {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.hero-stamp {
  position: absolute;
  bottom: 20px;
  left: -30px;
  width: 140px;
  height: 140px;
  z-index: 3;
  animation: slowSpin 30s linear infinite;
}

@keyframes slowSpin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 360px; justify-self: center; }
  .hero { padding: 100px 24px 60px; min-height: auto; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(230, 57, 70, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}

.btn-secondary:hover {
  background: var(--charcoal);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn svg { width: 18px; height: 18px; }

/* ============================================
   SECTION CONTAINERS
   ============================================ */
.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-title em { font-style: italic; color: var(--red); font-weight: 400; }

.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
}

/* ============================================
   MENU SECTION
   ============================================ */
.menu-section {
  position: relative;
  padding: 100px 24px;
  background: var(--cream-dark);
  overflow: hidden;
}

/* Wrapper that hosts the scrollable grid + control row underneath */
.menu-scroller {
  position: relative;
  margin-bottom: 40px;
}

/* (Edge fade gradients removed — cards now have clean, sharp edges.) */

/* Restaurant-themed control row UNDER the grid:
   fork (prev) · spaghetti strand · knife (next) */
.menu-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 0 4px;
}
.menu-controls.is-hidden { display: none; }

.menu-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, opacity 0.2s;
}
.menu-nav:hover:not(:disabled) {
  background: var(--charcoal);
  color: var(--cream);
  transform: scale(1.06) rotate(-4deg);
}
.menu-nav-next:hover:not(:disabled) {
  transform: scale(1.06) rotate(4deg);
}
.menu-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.menu-nav .utensil { width: 22px; height: 22px; }
/* Fork tines point "back" from a prev button so the icon reads
   intuitively; knife already points forward by default. */
.menu-nav-prev .utensil-fork { transform: scaleX(-1); }

/* Spaghetti strand track */
.menu-progress {
  position: relative;
  flex: 1;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.menu-progress-noodle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(230, 57, 70, 0.55);   /* pasta sauce red, faint */
  pointer-events: none;
}
.menu-progress:hover .menu-progress-noodle {
  color: var(--red);
}

/* Tomato thumb riding the strand
   - Position is driven by transform (translate3d) for GPU compositing.
   - No CSS transition on the transform: scroll events fire fast enough
     that the thumb follows the scroll position perfectly, and any
     transition would cause lag because new values keep overriding
     the in-progress animation. */
.menu-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 26px;
  height: 26px;
  transform: translate3d(0, -50%, 0);
  will-change: transform;
  filter: drop-shadow(0 4px 6px rgba(26, 26, 26, 0.2));
  pointer-events: none;
}
.menu-progress-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Animated "Swipe to explore" hint — sits above the controls,
   fades out once the user scrolls */
.menu-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 6px 14px;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.9;
  animation: hintNudge 1.8s ease-in-out infinite;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.menu-scroll-hint svg { width: 14px; height: 14px; }
.menu-scroll-hint.hidden {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}
@keyframes hintNudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(6px); }
}

@media (max-width: 600px) {
  .menu-nav { width: 40px; height: 40px; }
  .menu-nav .utensil { width: 18px; height: 18px; }
  .menu-controls { gap: 12px; }
  .menu-progress-thumb { width: 22px; height: 22px; }
}

.menu-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--charcoal) transparent;
  padding-bottom: 16px;
  scroll-behavior: smooth;
  /* Allow cards to extend to viewport edge for nicer scroll feel */
  margin-left: -8px;
  margin-right: -8px;
  padding-left: 8px;
  padding-right: 8px;
}

.menu-grid::-webkit-scrollbar {
  height: 8px;
}
.menu-grid::-webkit-scrollbar-track {
  background: transparent;
}
.menu-grid::-webkit-scrollbar-thumb {
  background: var(--charcoal);
  border-radius: 100px;
  opacity: 0.4;
}

.menu-card {
  background: var(--cream);
  border: 1.5px solid var(--charcoal);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 0 0 320px;
  scroll-snap-align: start;
}

@media (max-width: 600px) {
  .menu-card {
    flex: 0 0 85%;
  }
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -16px rgba(26, 26, 26, 0.15);
}

.menu-card-visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--cream-dark);
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 26, 0.08);
}

.menu-card-visual svg { width: 60%; height: 60%; }

/* When you add real photos, they'll fill this container */
.menu-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-card-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--charcoal);
  color: var(--cream);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  z-index: 2;
}

.menu-card-tag.veg { background: #2d6a3f; }
.menu-card-tag.signature { background: var(--red); }
.menu-card-tag.spicy { background: #d97706; }

.menu-card-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.menu-card-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
  flex: 1;
}

.menu-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menu-price {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  color: var(--charcoal);
}

.menu-price-currency {
  font-size: 13px;
  color: var(--muted);
  margin-right: 4px;
  font-family: var(--sans);
}

.add-btn {
  background: var(--charcoal);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, transform 0.2s;
}

.add-btn:hover {
  background: var(--red);
  transform: scale(1.04);
}

.add-btn.added { background: #2d6a3f; color: var(--cream); }
.add-btn svg { width: 14px; height: 14px; }

/* Inline quantity stepper shown on a menu card after the item is added */
.menu-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--charcoal);
  border-radius: 100px;
  padding: 4px;
}
.menu-qty .qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 100px;
  background: transparent;
  color: var(--cream);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.menu-qty .qty-btn:hover {
  background: var(--cream);
  color: var(--charcoal);
}
.menu-qty .qty-val {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--cream);
  padding: 0 4px;
}

/* ============================================
   STORY SECTION
   ============================================ */
.story-section {
  padding: 120px 24px;
  position: relative;
  overflow: hidden;
}

.story-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.story-quote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--charcoal);
  margin-bottom: 40px;
}

.story-quote em { color: var(--red); font-style: italic; }

.story-divider {
  width: 60px;
  height: 2px;
  background: var(--red);
  margin: 0 auto 32px;
}

.story-text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 16px;
}

/* ============================================
   VALUES SECTION
   ============================================ */
.values-section {
  background: var(--charcoal);
  color: var(--cream);
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}

.values-section .noodle-bg {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'><g transform='translate(18,14) rotate(-15)'><path d='M 12 12 Q 28 8 34 22 Q 39 36 26 42 Q 14 47 8 38 Q 4 28 14 26 Q 22 24 24 32' fill='none' stroke='%23E63946' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' opacity='0.18'/></g></svg>");
}

.values-section .section-title { color: var(--cream); }
.values-section .section-sub { color: rgba(255, 248, 240, 0.7); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.value-card { text-align: left; }

.value-num {
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  color: var(--red);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.value-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.value-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 248, 240, 0.7);
}

/* ============================================
   ORDER SECTION
   ============================================ */
.order-section {
  padding: 100px 24px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.order-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.order-card {
  background: var(--cream-dark);
  border: 1.5px solid var(--charcoal);
  border-radius: 20px;
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(26, 26, 26, 0.15);
}

.order-card-icon {
  width: 48px;
  height: 48px;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-card.featured .order-card-icon { background: var(--red); }

.order-card-icon svg { width: 24px; height: 24px; }

.order-card-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.order-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  background: var(--charcoal);
  color: var(--cream);
  padding: 80px 24px;
}

.contact-inner { max-width: var(--maxw); margin: 0 auto; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-block { font-size: 15px; }

.contact-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.contact-links a {
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  transition: color 0.2s;
}

.contact-links a:hover { color: var(--red); }
.contact-links svg { width: 18px; height: 18px; }

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--charcoal);
  color: rgba(255, 248, 240, 0.5);
  padding: 32px 24px;
  border-top: 1px solid rgba(255, 248, 240, 0.1);
  font-size: 13px;
  text-align: center;
}

.footer em { color: var(--red); font-style: italic; }

/* ============================================
   CART DRAWER
   ============================================ */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  /* iOS Safari counts area behind the dynamic bottom bar as 100vh
     — so the cart footer with the checkout button was falling below
     the visible viewport. Use 100dvh (dynamic viewport height) with
     a fallback so the drawer always ends where the screen ends. */
  height: 100vh;
  height: 100dvh;
  background: var(--cream);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px -20px rgba(0, 0, 0, 0.25);
}

.cart-drawer.open { transform: translateX(0); }

.cart-header {
  padding: 24px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-dark);
  transition: background 0.2s;
}

.cart-close:hover {
  background: var(--charcoal);
  color: var(--cream);
}

.cart-body {
  flex: 1 1 auto;
  min-height: 0;            /* required so flex-child can actually scroll */
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px 24px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.cart-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  opacity: 0.5;
}

.cart-empty-text {
  font-family: var(--display);
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.cart-empty-sub { font-size: 14px; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
  align-items: center;
}

.cart-item:last-child { border-bottom: none; }

.cart-item-icon {
  width: 56px;
  height: 56px;
  background: var(--cream-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.cart-item-icon svg { width: 36px; height: 36px; }
.cart-item-icon img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 4px;
}

.cart-item-price { font-size: 13px; color: var(--muted); }

.cart-qty {
  display: inline-flex;
  align-items: center;
  background: var(--cream-dark);
  border-radius: 100px;
  padding: 4px;
  gap: 4px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 100px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  transition: background 0.2s;
  color: var(--charcoal);
}

.qty-btn:hover { background: var(--charcoal); color: var(--cream); }

.qty-val {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.cart-foot {
  flex-shrink: 0;
  padding: 20px 24px;
  /* Respect iPhone home-indicator area so the button never sits
     underneath the swipe bar. */
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1.5px solid rgba(26, 26, 26, 0.08);
  background: var(--cream);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.cart-total-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cart-total-val {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
}

/* Strikethrough subtotal shown alongside the discounted total */
.cart-total-strike {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--muted);
  text-decoration: line-through;
  margin-right: 8px;
  font-weight: 400;
}

/* Buy 5 get 1 free — reward block inside the cart drawer */
.cart-bulk-reward {
  margin-top: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(45,106,63,0.12), rgba(45,106,63,0.04));
  border: 1.5px dashed #2d6a3f;
  border-radius: 14px;
}
.cart-bulk-reward-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.cart-bulk-reward-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2d6a3f;
}
.cart-bulk-reward-amount {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  color: #2d6a3f;
}
.cart-bulk-reward-body {
  font-size: 13px;
  color: var(--charcoal);
  line-height: 1.45;
}

/* Nudge shown when cart isn't full enough to unlock the freebie */
.cart-bulk-hint {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--cream-dark);
  border: 1.5px dashed rgba(26,26,26,0.18);
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.cart-bulk-hint strong { color: var(--red); }

/* Loyalty mini referral line in checkout */
.loyalty-mini-ref {
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--cream);
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
}
.loyalty-mini-ref strong {
  font-family: var(--display);
  color: var(--red);
  letter-spacing: 0.06em;
  font-size: 14px;
}

.cart-note {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.checkout-btn {
  width: 100%;
  background: var(--red);
  color: var(--cream);
  padding: 16px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, transform 0.2s;
}

.checkout-btn:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.checkout-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   OVERLAY & MODAL
   ============================================ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.5);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.overlay.show { opacity: 1; pointer-events: auto; }

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--cream);
  border-radius: 24px;
  padding: 32px;
  width: calc(100% - 32px);
  max-width: 440px;
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  /* Use dynamic viewport height so the modal never exceeds the
     visible screen on iOS Safari (where 90vh includes the area
     hidden behind Safari's bottom toolbar). */
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal-title {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.modal-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--charcoal);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(26, 26, 26, 0.15);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 15px;
  background: var(--cream);
  color: var(--charcoal);
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
}

.field textarea {
  resize: vertical;
  min-height: 70px;
}

.modal-foot {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.modal-foot button {
  flex: 1;
  padding: 14px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
}

.modal-cancel {
  background: var(--cream-dark);
  color: var(--charcoal);
}

.modal-cancel:hover {
  background: var(--charcoal);
  color: var(--cream);
}

.modal-submit {
  background: var(--red);
  color: var(--cream);
}

.modal-submit:hover { background: var(--red-dark); }

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--charcoal);
  color: var(--cream);
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  z-index: 300;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s, visibility 0.3s;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
  /* Fully hidden when empty so it never peeks above the screen edge. */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   REVIEWS / TESTIMONIALS SECTION
   ============================================ */
.reviews-section {
  position: relative;
  padding: 100px 24px;
  background: var(--cream);
  overflow: hidden;
}

.reviews-summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 18px;
  background: var(--cream-dark);
  border: 1.5px solid rgba(26, 26, 26, 0.08);
  border-radius: 100px;
  flex-wrap: wrap;
  justify-content: center;
}

.reviews-summary-text {
  font-size: 14px;
  color: var(--muted);
}

.reviews-summary-text strong {
  color: var(--charcoal);
  font-weight: 700;
}

.review-stars {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}

.review-stars .star {
  width: 16px;
  height: 16px;
  fill: rgba(26, 26, 26, 0.15);
}

.review-stars .star.filled {
  fill: #f5a623;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.review-card {
  position: relative;
  background: var(--cream-dark);
  border: 1.5px solid var(--charcoal);
  border-radius: 20px;
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -16px rgba(26, 26, 26, 0.15);
}

.review-quote-mark {
  position: absolute;
  top: 8px;
  right: 22px;
  font-family: var(--display);
  font-size: 110px;
  line-height: 1;
  color: var(--red);
  opacity: 0.12;
  pointer-events: none;
  font-style: italic;
}

.review-card .review-stars {
  margin-bottom: 14px;
}

.review-card .review-stars .star {
  width: 18px;
  height: 18px;
}

.review-quote {
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  color: var(--charcoal);
  font-weight: 400;
  margin-bottom: 24px;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid var(--charcoal);
}

.review-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-avatar-initial {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.review-author-meta {
  flex: 1;
  min-width: 0;
}

.review-author-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--charcoal);
  line-height: 1.2;
}

.review-author-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2d6a3f;
  background: rgba(45, 106, 63, 0.1);
  padding: 5px 9px;
  border-radius: 100px;
  flex-shrink: 0;
}

.review-verified svg {
  width: 11px;
  height: 11px;
}

@media (max-width: 600px) {
  .reviews-section { padding: 70px 20px; }
  .review-card { padding: 28px 22px 20px; }
  .review-quote { font-size: 16px; }
  .review-verified { display: none; }
}

/* "Leave a review" CTA on the section header */
.reviews-cta {
  margin-top: 20px;
}

/* Empty state */
.reviews-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-style: italic;
}

/* Pinned banner on cards */
.review-card.pinned {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.review-pin-flag {
  position: absolute;
  top: 0;
  left: 24px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--red);
  color: var(--cream);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  z-index: 2;
}
.review-pin-flag svg { width: 11px; height: 11px; }

/* Action bar on each card (like + admin) */
.review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  flex-wrap: wrap;
}

.review-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--muted);
  border: 1.5px solid rgba(26, 26, 26, 0.12);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}
.review-like:hover {
  color: var(--red);
  border-color: var(--red);
}
.review-like.on {
  color: var(--red);
  border-color: var(--red);
  background: rgba(230, 57, 70, 0.08);
}
.review-like svg { width: 14px; height: 14px; }
.review-like-count { font-weight: 700; min-width: 10px; text-align: center; }

.review-admin {
  display: inline-flex;
  gap: 6px;
}
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--charcoal);
  color: var(--cream);
  padding: 6px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.admin-btn:hover { transform: scale(1.04); }
.admin-btn.on { background: var(--red); }
.admin-btn.danger { background: transparent; color: #C92837; border: 1.5px solid #C92837; }
.admin-btn.danger:hover { background: #C92837; color: var(--cream); }
.admin-btn svg { width: 12px; height: 12px; }

/* ============================================
   REWARDS SECTION (homepage)
   ============================================ */
.rewards-section {
  position: relative;
  padding: 100px 24px;
  background: var(--cream-dark);
  overflow: hidden;
}
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 48px;
}
.reward-card {
  background: var(--cream);
  border: 1.5px solid var(--charcoal);
  border-radius: 20px;
  padding: 28px 24px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.reward-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -16px rgba(26,26,26,0.15);
}
.reward-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--cream-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 16px;
  border: 1.5px solid var(--charcoal);
}
.reward-icon svg { width: 26px; height: 26px; }
.reward-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.reward-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* Loyalty lookup */
.rewards-lookup {
  background: var(--cream);
  border: 1.5px solid var(--charcoal);
  border-radius: 24px;
  padding: 32px 28px;
  max-width: 640px;
  margin: 0 auto;
}
.rewards-lookup-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.rewards-lookup-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}
.rewards-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.rewards-form input[type="tel"] {
  flex: 1;
  min-width: 200px;
  background: var(--cream-dark);
  border: 1.5px solid rgba(26,26,26,0.12);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--charcoal);
}
.rewards-form input[type="tel"]:focus { outline: none; border-color: var(--charcoal); }

.rewards-result { margin-top: 20px; }
.rewards-result-loading,
.rewards-result-empty {
  color: var(--muted);
  text-align: center;
  padding: 20px;
  background: var(--cream-dark);
  border-radius: 12px;
}
.rewards-result-empty h4 { color: var(--charcoal); margin-bottom: 4px; }
.rewards-result-card { background: var(--cream-dark); border-radius: 16px; padding: 22px; }
.rewards-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.rewards-card-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.rewards-card-count { font-size: 13px; color: var(--muted); }
.rewards-credit-pill {
  background: #2d6a3f;
  color: var(--cream);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rewards-credit-pill.muted {
  background: rgba(26,26,26,0.1);
  color: var(--charcoal);
}

/* Loyalty stamps (5-up stamp card) */
.loyalty-stamps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 8px 0;
}
.loyalty-stamp {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed rgba(26,26,26,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 18px;
  color: var(--muted);
  background: var(--cream);
}
.loyalty-stamp.on {
  background: var(--red);
  color: var(--cream);
  border-style: solid;
  border-color: var(--red);
  transform: rotate(-8deg);
}

.rewards-card-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(26,26,26,0.08); }
.rewards-referral-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}
.rewards-referral-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}
.rewards-referral-row code {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  background: var(--cream);
  border: 1.5px dashed var(--charcoal);
  border-radius: 10px;
  padding: 6px 14px;
  letter-spacing: 0.08em;
}
.rewards-referral-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Coupon row in the checkout modal */
.coupon-row { display: flex; gap: 8px; }
.coupon-row input {
  flex: 1;
  background: var(--cream-dark);
  border: 1.5px solid rgba(26,26,26,0.12);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.coupon-apply { padding: 10px 18px !important; }
.coupon-feedback { margin-top: 6px; font-size: 13px; min-height: 18px; }
.coupon-feedback.ok  { color: #2d6a3f; }
.coupon-feedback.bad { color: #C92837; }

/* Checkout loyalty mini-card */
.checkout-loyalty {
  margin-top: 6px;
  padding: 14px;
  border-radius: 12px;
  background: var(--cream-dark);
  border: 1.5px solid rgba(26,26,26,0.08);
}
.loyalty-mini-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.loyalty-mini-title { font-weight: 700; font-size: 14px; }
.loyalty-mini-count { font-size: 12px; color: var(--muted); }
.loyalty-mini-next { font-size: 12px; color: var(--muted); margin-top: 4px; }
.loyalty-credit-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
  font-size: 13px;
  cursor: pointer;
}
.loyalty-credit-row input { margin-top: 3px; accent-color: var(--red); }

/* Checkout running total */
.checkout-total {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(26,26,26,0.08);
}
.ct-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--charcoal);
}
.ct-line.ct-disc { color: #2d6a3f; }
.ct-line.ct-total {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(26,26,26,0.15);
}

/* Tracker referral block */
.tracker-referral {
  background: var(--cream-dark);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(26,26,26,0.08);
}
.tracker-referral-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.tracker-referral-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  gap: 6px;
}
.tracker-referral-row code {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.tracker-referral-copy {
  background: var(--charcoal);
  color: var(--cream);
  border: none;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.tracker-foot-line { text-align: center; }

/* Admin Coupons */
.coupons-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.coupons-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.coupons-sub { color: var(--muted); font-size: 13px; margin-top: 4px; max-width: 520px; }
.coupon-form {
  background: var(--cream);
  border: 1.5px solid var(--charcoal);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
}
.coupon-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.coupon-form select,
.coupon-form input {
  width: 100%;
  background: var(--cream-dark);
  border: 1.5px solid rgba(26,26,26,0.12);
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
  font-family: var(--sans);
}
.coupon-row.admin-row .coupon-code {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  background: var(--cream-dark);
  border: 1.5px solid rgba(26,26,26,0.15);
  border-radius: 8px;
  padding: 4px 12px;
  letter-spacing: 0.08em;
  margin-right: 8px;
  color: var(--red);
}
.badge.coupon-kind-promo    { background: rgba(230, 57, 70, 0.12); color: var(--red); }
.badge.coupon-kind-referral { background: rgba(45, 106, 63, 0.12); color: #2d6a3f; }
.badge.coupon-status-badge-active    { background: rgba(45,106,63,0.15);  color: #2d6a3f; }
.badge.coupon-status-badge-inactive  { background: rgba(150,150,150,0.2); color: #555; }
.badge.coupon-status-badge-expired   { background: rgba(217,119,6,0.15);  color: #b45309; }
.badge.coupon-status-badge-exhausted { background: rgba(201,40,55,0.15);  color: #C92837; }
.coupon-body {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 8px 0;
  font-size: 14px;
}

/* ============================================
   ADMIN — MENU MANAGEMENT
   ============================================ */
.menu-row { padding: 16px 20px; }
.menu-row-grid {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: start;
}
.menu-row-thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1.5px solid rgba(26,26,26,0.12);
  background: var(--cream-dark);
}
.menu-row-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 500;
}
.menu-row-desc { font-family: var(--sans); font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.menu-row.inactive { opacity: 0.55; }

.menu-form-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.menu-form-preview img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1.5px solid rgba(26,26,26,0.12);
}

/* ============================================
   ADMIN — SITE IMAGE PANEL
   ============================================ */
.site-image-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  background: var(--cream);
  border: 1.5px solid var(--charcoal);
  border-radius: 18px;
  padding: 22px;
}
@media (max-width: 700px) {
  .site-image-panel { grid-template-columns: 1fr; }
}
.site-image-current-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}
.site-image-current-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--cream-dark);
  border: 1.5px dashed rgba(26,26,26,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}
.site-image-current-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.site-image-empty {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 12px;
  line-height: 1.5;
}

/* ============================================
   DELIVERY ZONE WIDGET (floating bottom-left)
   ============================================ */
.delivery-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 88;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--cream);
  border: 1.5px solid var(--charcoal);
  border-radius: 18px;
  box-shadow: 0 24px 64px -16px rgba(26, 26, 26, 0.3);
  padding: 18px 18px 16px;
  animation: dwSlideIn 0.5s cubic-bezier(.2,.8,.2,1.05);
}
@keyframes dwSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.delivery-widget[hidden] { display: none; }

.delivery-widget-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.delivery-widget-close:hover { background: rgba(26, 26, 26, 0.06); color: var(--charcoal); }
.delivery-widget-close svg { width: 14px; height: 14px; }

.dw-icon {
  font-size: 28px;
  margin-bottom: 6px;
}
.dw-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  padding-right: 28px;
}
.dw-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.dw-text strong { color: var(--charcoal); font-weight: 700; }
.dw-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}
.dw-btn-primary {
  background: var(--charcoal);
  color: var(--cream);
}
.dw-btn-primary:hover {
  background: var(--red);
  transform: scale(1.04);
}
.dw-btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid rgba(26, 26, 26, 0.15);
}
.dw-btn-ghost:hover {
  color: var(--charcoal);
  border-color: var(--charcoal);
}

/* Subtle "tba" hint line for delivery fee in checkout */
.ct-line.ct-note {
  font-size: 12px;
  font-style: italic;
  color: var(--muted);
}

@media (max-width: 600px) {
  .delivery-widget {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }
}

/* If both the delivery widget AND the order tracker are visible,
   stack them: tracker stays bottom-right, widget moves up. */
@media (min-width: 601px) {
  body:has(.order-tracker:not([hidden])) .delivery-widget {
    bottom: 20px;
    left: 20px;
  }
}

/* ============================================
   PRE-LAUNCH COUNTDOWN BANNER + MODAL
   ============================================ */

/* Fixed banner pinned to the very top of every page.
   Fixed (not sticky) so it always sits ABOVE the fixed nav. */
.launch-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;   /* above the fixed nav (which is z-index 100) */
  background: linear-gradient(90deg, var(--charcoal), #2a2522, var(--charcoal));
  color: var(--cream);
  border-bottom: 1.5px solid var(--red);
  box-shadow: 0 4px 14px -8px rgba(0,0,0,0.4);
  animation: slideDownBanner 0.5s cubic-bezier(.2,.8,.2,1) both;
}

/* When pre-launch is active, push the nav and the rest of the page
   down by the banner's height. JS keeps --launch-banner-h in sync
   with the banner's actual rendered height (including any wrapping
   that happens on mobile). */
body.pre-launch .nav { top: var(--launch-banner-h, 56px); }
body.pre-launch     { padding-top: var(--launch-banner-h, 56px); }
@keyframes slideDownBanner {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
.launch-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.launch-banner-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
}
.launch-banner-cta {
  background: var(--red);
  color: var(--cream);
  border: none;
  padding: 7px 16px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.launch-banner-cta:hover {
  background: var(--cream);
  color: var(--charcoal);
  transform: scale(1.04);
}

/* Reusable countdown grid (used in banner + hero badge + modal) */
.launch-countdown,
.launch-modal-countdown {
  display: inline-flex;
  gap: 10px;
}
.launch-modal-countdown {
  justify-content: center;
  margin: 20px 0 24px;
}
.lc-cell {
  background: rgba(255, 248, 240, 0.1);
  border: 1px solid rgba(255, 248, 240, 0.2);
  border-radius: 8px;
  padding: 6px 10px;
  min-width: 52px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.lc-num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}
.lc-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 248, 240, 0.7);
  margin-top: 2px;
}

/* Modal version is on cream background, flip colors */
.launch-modal-countdown .lc-cell {
  background: var(--cream-dark);
  border: 1.5px solid var(--charcoal);
}
.launch-modal-countdown .lc-num   { color: var(--charcoal); font-size: 26px; }
.launch-modal-countdown .lc-label { color: var(--muted); }

/* Hero launch badge — sits between sub and CTA in the hero */
.hero-launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: 14px;
  padding: 12px 18px;
  margin: 20px 0;
  max-width: 460px;
  border: 1.5px solid var(--red);
  position: relative;
  overflow: hidden;
}
.hero-launch-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(230,57,70,0.15) 50%, transparent 70%);
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.hero-launch-icon { font-size: 28px; flex-shrink: 0; z-index: 1; }
.hero-launch-text {
  display: flex;
  flex-direction: column;
  z-index: 1;
}
.hero-launch-text strong {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero-launch-sub {
  font-size: 12px;
  color: rgba(255, 248, 240, 0.7);
  margin-top: 2px;
}
.hero-launch-btn {
  background: var(--red);
  color: var(--cream);
  border: none;
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 1;
  transition: background 0.2s, transform 0.2s;
}
.hero-launch-btn:hover {
  background: var(--cream);
  color: var(--charcoal);
  transform: scale(1.05);
}

/* Launch modal extras */
.launch-modal-art {
  font-size: 48px;
  text-align: center;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}
.launch-modal-note {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 8px 0 4px;
  font-style: italic;
}

/* Optional: subtle pre-launch styling on body */
body.pre-launch .cart-count,
body.pre-launch #navCart {
  opacity: 0.7;
}

/* Admin — pending launch signup gets a yellow accent */
.admin-row.pending-signup {
  border-left: 4px solid #d97706;
}

/* Mobile tweaks — stack the banner vertically, compact sizes */
@media (max-width: 600px) {
  .launch-banner-inner {
    padding: 8px 12px;
    gap: 6px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .launch-banner-eyebrow {
    font-size: 11px;
    flex-basis: auto;
  }
  .launch-countdown { gap: 6px; }
  .lc-cell { min-width: 42px; padding: 3px 6px; }
  .lc-num  { font-size: 16px; }
  .lc-label { font-size: 9px; letter-spacing: 0.06em; margin-top: 1px; }
  .launch-banner-cta {
    font-size: 12px;
    padding: 5px 14px;
  }

  .hero-launch-badge { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .hero-launch-btn { width: 100%; margin-top: 4px; }
}

/* Extra narrow phones */
@media (max-width: 380px) {
  .launch-banner-inner { padding: 7px 10px; gap: 5px; }
  .lc-cell { min-width: 38px; padding: 3px 5px; }
  .lc-num  { font-size: 14px; }
  .lc-label { font-size: 8px; }
}

/* ============================================
   ORDER CONFIRMATION MODAL
   (post-save WhatsApp handoff — iOS friendly)
   ============================================ */
.order-confirm-modal { text-align: center; }
.order-confirm-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #2d6a3f;
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  animation: checkPop 0.5s cubic-bezier(.2,.8,.2,1.4);
}
.order-confirm-check svg { width: 32px; height: 32px; }
@keyframes checkPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
.order-confirm-modal .modal-title em {
  color: var(--red);
  font-style: normal;
  letter-spacing: 0.04em;
}
.order-confirm-modal .modal-sub {
  color: var(--muted);
  line-height: 1.55;
}
.oc-emphasis {
  color: var(--red);
  font-weight: 700;
}
/* Instagram-branded CTA (the primary button in the order confirm modal) */
.instagram-final-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(45deg, #F58529 0%, #DD2A7B 40%, #8134AF 70%, #515BD4 100%);
  color: #ffffff;
  padding: 18px 24px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  margin-top: 16px;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 8px 24px -8px rgba(221, 42, 123, 0.45);
}
.instagram-final-cta:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
  box-shadow: 0 12px 32px -8px rgba(221, 42, 123, 0.55);
}
.instagram-final-cta svg {
  width: 22px;
  height: 22px;
  color: #ffffff;
}

/* Order code card in the confirm modal — big, clear, copyable */
.oc-code-card {
  background: var(--cream-dark);
  border: 1.5px dashed var(--charcoal);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 16px 0 20px;
  text-align: center;
}
.oc-code-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.oc-code-value {
  font-family: var(--display);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 10px;
  line-height: 1;
}
.oc-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--charcoal);
  color: var(--cream);
  border: none;
  padding: 8px 14px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.oc-copy-btn:hover {
  background: var(--red);
  transform: scale(1.04);
}
.oc-copy-btn svg { width: 14px; height: 14px; }

.oc-instructions {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 4px;
}

/* Legacy WhatsApp CTA (kept for anywhere else it might be referenced) */
.whatsapp-final-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #25D366;
  color: #ffffff;
  padding: 18px 24px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 20px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 8px 24px -8px rgba(37, 211, 102, 0.4);
}
.whatsapp-final-cta svg { width: 22px; height: 22px; color: #ffffff; }
.oc-done-btn {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid rgba(26, 26, 26, 0.2);
  padding: 12px 20px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.oc-done-btn:hover {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}

/* ============================================
   OUTSIDE BUSINESS HOURS MODAL
   ============================================ */
.closed-modal { text-align: center; }
.closed-modal-icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}
.closed-status {
  background: var(--cream-dark);
  border: 1.5px dashed var(--charcoal);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 16px 0;
}
.closed-hours {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.closed-countdown {
  font-family: var(--display);
  font-size: 20px;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}
.closed-countdown strong { color: var(--red); }
.closed-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 12px;
  font-style: italic;
}

/* Primary CTA in the customer's order confirmation modal (new flow) */
.oc-primary-btn {
  display: block;
  width: 100%;
  background: var(--charcoal);
  color: var(--cream);
  border: none;
  padding: 16px 24px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.2s, transform 0.2s;
}
.oc-primary-btn:hover {
  background: var(--red);
  transform: scale(1.02);
}
.whatsapp-warning {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.5;
  font-style: italic;
}

/* ============================================
   ADMIN — PERSISTENT FULL-SCREEN NEW ORDER ALERT
   Shows until owner taps "Acknowledge". Ringer keeps
   looping. Designed to be impossible to miss.
   ============================================ */
.new-order-alert {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: noaFadeIn 0.4s;
}
@keyframes noaFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.new-order-alert[hidden] { display: none !important; }

.noa-card {
  background: var(--cream);
  border: 3px solid var(--red);
  border-radius: 22px;
  padding: 28px 24px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  text-align: center;
  animation: noaBounceIn 0.6s cubic-bezier(.34, 1.56, .64, 1);
  box-shadow: 0 0 0 6px rgba(230, 57, 70, 0.25), 0 40px 80px -20px rgba(0,0,0,0.5);
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}
@keyframes noaBounceIn {
  0%   { transform: scale(0.3); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  80%  { transform: scale(0.98); }
  100% { transform: scale(1); }
}

.noa-ring {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 6px;
  animation: noaShake 1s ease-in-out infinite;
  display: inline-block;
  transform-origin: 50% 8px;
}
@keyframes noaShake {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-20deg); }
  30% { transform: rotate(18deg); }
  45% { transform: rotate(-15deg); }
  60% { transform: rotate(10deg); }
  75% { transform: rotate(-5deg); }
}

.noa-heading {
  font-family: var(--display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--red);
  margin-bottom: 4px;
}
.noa-code {
  font-family: var(--display);
  font-weight: 500;
  font-size: 44px;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  margin-bottom: 8px;
  line-height: 1.1;
}
.noa-badge {
  display: inline-block;
  background: #d97706;
  color: var(--cream);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  animation: noaPulse 1.2s infinite;
}
@keyframes noaPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

.noa-info {
  background: var(--cream-dark);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 12px 0;
  text-align: left;
}
.noa-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
  gap: 12px;
}
.noa-row:last-child { border-bottom: none; }
.noa-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.noa-row > span:last-child,
.noa-row > a {
  font-size: 14px;
  color: var(--charcoal);
  text-align: right;
  word-break: break-word;
}
.noa-row a { color: var(--red); text-decoration: underline; font-weight: 600; }

.noa-items {
  background: var(--cream-dark);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 12px;
  text-align: left;
}
.noa-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
  color: var(--charcoal);
}
.noa-item:not(:last-child) { border-bottom: 1px solid rgba(26, 26, 26, 0.06); }

.noa-total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 16px;
  background: rgba(230, 57, 70, 0.08);
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.noa-total-line strong {
  font-family: var(--display);
  font-size: 22px;
  color: var(--red);
  font-weight: 500;
}

.noa-ack-btn {
  width: 100%;
  background: #2d6a3f;
  color: var(--cream);
  border: none;
  padding: 20px 24px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 12px 32px -10px rgba(45, 106, 63, 0.5);
  transition: transform 0.15s, background 0.2s;
  animation: noaButtonPulse 1.6s ease-in-out infinite;
}
.noa-ack-btn:hover {
  background: #1f4d2d;
  transform: scale(1.03);
}
.noa-ack-btn:active {
  transform: scale(0.98);
}
@keyframes noaButtonPulse {
  0%, 100% { box-shadow: 0 12px 32px -10px rgba(45, 106, 63, 0.5); }
  50%      { box-shadow: 0 12px 40px -8px rgba(45, 106, 63, 0.85); }
}
.noa-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  font-style: italic;
}

@media (max-width: 480px) {
  .noa-heading { font-size: 26px; }
  .noa-code    { font-size: 36px; }
  .noa-ring    { font-size: 44px; }
  .noa-ack-btn { padding: 18px 20px; font-size: 16px; }
}

/* Rest of the page tints red while an alert is ringing */
body.noa-ringing {
  overflow: hidden;
}

/* ============================================
   ADMIN — NEW ORDER REAL-TIME ALERT (legacy)
   ============================================ */
.admin-new-order-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200;
  background: var(--cream);
  border: 2px solid #2d6a3f;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  box-shadow: 0 20px 60px -10px rgba(45,106,63,0.4);
  animation: newOrderSlideIn 0.5s cubic-bezier(.2,.8,.2,1.4);
}
@keyframes newOrderSlideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.ao-icon {
  font-size: 32px;
  animation: aoPulse 1s ease-in-out infinite;
}
@keyframes aoPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}
.ao-body { flex: 1; min-width: 0; }
.ao-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}
.ao-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.ao-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 50%;
}
.ao-close:hover { background: rgba(26,26,26,0.06); color: var(--charcoal); }

/* Live status pill in admin header */
.alert-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(26, 26, 26, 0.06);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.asp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
.asp-dot.ok   { background: #2d6a3f; animation: aspPulse 1.5s infinite; }
.asp-dot.warn { background: #d97706; }
.asp-dot.muted { background: var(--muted); }
@keyframes aspPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 106, 63, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(45, 106, 63, 0); }
}

/* Admin header notification button */
.admin-notif-btn {
  padding: 8px 14px !important;
  font-size: 13px;
}
.admin-notif-btn.notif-on {
  background: #2d6a3f !important;
  color: var(--cream) !important;
  border-color: #2d6a3f !important;
}

@media (max-width: 600px) {
  .admin-new-order-alert {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    min-width: 0;
  }
  /* Keep the notification-permission button visible on mobile too —
     it's the whole point of using admin from the phone. */
  .admin-notif-btn {
    padding: 6px 10px !important;
    font-size: 12px;
  }
}

/* ============================================
   PAYMENT METHOD PICKER (in checkout modal)
   ============================================ */
.pay-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 520px) {
  .pay-picker { grid-template-columns: 1fr 1fr; }
}
.pay-option {
  display: block;
  cursor: pointer;
  background: var(--cream-dark);
  border: 1.5px solid rgba(26, 26, 26, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s, background 0.2s;
}
.pay-option:hover { border-color: var(--charcoal); }
.pay-option.active {
  border-color: var(--red);
  background: rgba(230, 57, 70, 0.05);
}
.pay-option input { display: none; }
.pay-option-body {
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
}
.pay-option-body svg {
  grid-row: 1 / 3;
  width: 22px;
  height: 22px;
  color: var(--charcoal);
}
.pay-option.active .pay-option-body svg { color: var(--red); }
.pay-option-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pay-option-badge {
  background: #2d6a3f;
  color: var(--cream);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 100px;
}
.pay-option.active .pay-option-badge { background: var(--red); }
.pay-option-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.pay-panel {
  margin-top: -4px;
  background: var(--cream-dark);
  border: 1.5px solid rgba(26, 26, 26, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
}
.pay-panel-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.bank-details {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}
.bank-details > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  align-items: center;
}
.bank-details dt {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.bank-details dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--charcoal);
}
.bank-val {
  font-weight: 600;
  word-break: break-all;
}
.bank-copy {
  background: var(--charcoal);
  color: var(--cream);
  border: none;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.bank-empty {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}
.pay-proof-preview {
  margin-top: 10px;
  max-width: 220px;
}
.pay-proof-preview img {
  width: 100%;
  border-radius: 10px;
  border: 1.5px solid rgba(26, 26, 26, 0.12);
  display: block;
}
.pay-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.pay-card-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--charcoal);
  margin: 0;
}

/* Admin — payment info block on each order row */
.ord-payment {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--cream-dark);
  border-radius: 10px;
  border-left: 3px solid rgba(26, 26, 26, 0.2);
}
.ord-payment.pay-status-verified { border-left-color: #2d6a3f; }
.ord-payment.pay-status-awaiting_verification { border-left-color: #d97706; }
.ord-payment.pay-status-failed { border-left-color: #C92837; }
.ord-payment-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ord-payment-method {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
}
.pay-proof-link {
  color: var(--red);
  text-decoration: underline;
  font-size: 12px;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.ord-payment-actions {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge.pay-badge-pending               { background: rgba(107, 114, 128, 0.15); color: #4b5563; }
.badge.pay-badge-awaiting_verification { background: rgba(217, 119, 6, 0.15);  color: #b45309; }
.badge.pay-badge-verified              { background: rgba(45, 106, 63, 0.15);  color: #2d6a3f; }
.badge.pay-badge-failed                { background: rgba(201, 40, 55, 0.15);  color: #C92837; }

/* Admin — Site tab subhead */
.site-subhead {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

/* ============================================
   LIVE ORDER TRACKER (floating card, bottom-right)
   ============================================ */
.order-tracker {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: var(--cream);
  border: 1.5px solid var(--charcoal);
  border-radius: 18px;
  box-shadow: 0 24px 64px -16px rgba(26, 26, 26, 0.35);
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Never exceed the screen — scroll inside if the content (steps + prepay
     block + referral) is taller than the viewport, so nothing is cut off. */
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  animation: trackerSlideIn 0.4s cubic-bezier(.2,.8,.2,1.05);
}
@keyframes trackerSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.order-tracker[hidden] { display: none; }

.order-tracker-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.order-tracker-close:hover { background: rgba(26,26,26,0.06); color: var(--charcoal); }
.order-tracker-close svg { width: 14px; height: 14px; }

.order-tracker-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-right: 28px; /* room for close button */
}
.order-tracker-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}
.order-tracker-code {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-top: 2px;
}
.order-tracker-status {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 100px;
  background: rgba(26,26,26,0.08);
  color: var(--charcoal);
  white-space: nowrap;
  align-self: flex-start;
}
.order-tracker-status.status-received         { background: rgba(26,26,26,0.1);   color: var(--charcoal); }
.order-tracker-status.status-preparing        { background: rgba(217,119,6,0.15); color: #b45309; }
.order-tracker-status.status-baking           { background: rgba(230,57,70,0.12); color: var(--red); }
.order-tracker-status.status-out_for_delivery { background: rgba(45,106,63,0.15); color: #2d6a3f; }
.order-tracker-status.status-delivered        { background: rgba(45,106,63,0.2);  color: #2d6a3f; }
.order-tracker-status.status-cancelled        { background: rgba(150,150,150,0.2); color: #555; }

.order-tracker-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 0;
  position: relative;
}
.tracker-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px;
  border-radius: 8px;
  opacity: 0.4;
  transition: opacity 0.3s, background 0.3s;
}
.tracker-step.done   { opacity: 1; }
.tracker-step.active {
  opacity: 1;
  background: rgba(230, 57, 70, 0.06);
}
.tracker-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--charcoal);
  border: 1.5px solid rgba(26,26,26,0.08);
}
.tracker-step-icon svg { width: 16px; height: 16px; }
.tracker-step.done .tracker-step-icon {
  background: #2d6a3f;
  border-color: #2d6a3f;
  color: var(--cream);
}
.tracker-step.active .tracker-step-icon {
  background: var(--red);
  border-color: var(--red);
  color: var(--cream);
  animation: trackerPulse 1.6s ease-in-out infinite;
}
@keyframes trackerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.45); }
  50%      { box-shadow: 0 0 0 8px rgba(230, 57, 70, 0); }
}
.tracker-step-label {
  font-weight: 700;
  font-size: 13px;
  color: var(--charcoal);
  line-height: 1.2;
}
.tracker-step-desc {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.order-tracker-foot {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding-top: 6px;
  border-top: 1px solid rgba(26,26,26,0.08);
}

@media (max-width: 480px) {
  .order-tracker { right: 12px; left: 12px; bottom: 12px; width: auto; }
}

/* Star rating input in the submission modal */
.rating-input {
  display: inline-flex;
  gap: 6px;
}
.rating-star {
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: rgba(26, 26, 26, 0.2);
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.15s, transform 0.15s;
}
.rating-star:hover { transform: scale(1.1); }
.rating-star.on { color: #f5a623; }

/* ============================================
   ADMIN DASHBOARD
   ============================================ */
.admin-body {
  background: var(--cream-dark);
  min-height: 100vh;
  /* When installed as a home-screen app on iOS, the status bar sits
     directly over the top of the page. This adds room for it. */
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Make sure [hidden] always wins over any later display rule */
.admin-login[hidden],
.admin-shell[hidden],
[hidden] { display: none !important; }

/* ---- Login ---- */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-login-card {
  background: var(--cream);
  border: 1.5px solid var(--charcoal);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px -24px rgba(26, 26, 26, 0.2);
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  text-decoration: none;
  color: inherit;
}
.admin-brand-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.admin-brand-sub {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}
.admin-login-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 32px;
  margin-bottom: 4px;
}
.admin-login-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.admin-form .field { margin-bottom: 16px; }
.admin-login-btn { width: 100%; justify-content: center; margin-top: 8px; }
.admin-login-error {
  background: rgba(230, 57, 70, 0.1);
  color: #C92837;
  border: 1.5px solid rgba(230, 57, 70, 0.3);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
}
.admin-login-hint {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ---- Shell ---- */
.admin-shell { min-height: 100vh; }
.admin-header {
  background: var(--cream);
  border-bottom: 1.5px solid rgba(26, 26, 26, 0.08);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-user-label {
  font-size: 13px;
  color: var(--muted);
}
.admin-signout {
  padding: 8px 14px !important;
  font-size: 13px;
}
.admin-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* ---- Stats ---- */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--cream);
  border: 1.5px solid rgba(26, 26, 26, 0.1);
  border-radius: 16px;
  padding: 20px;
}
.stat-card.warning { border-color: #d97706; background: rgba(217, 119, 6, 0.05); }
.stat-card.success { border-color: #2d6a3f; background: rgba(45, 106, 63, 0.05); }
.stat-card.accent  { border-color: var(--red); background: rgba(230, 57, 70, 0.05); }
.stat-num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}

/* ---- Tabs ---- */
.admin-tabs {
  display: flex;
  gap: 4px;
  background: var(--cream);
  border: 1.5px solid rgba(26, 26, 26, 0.08);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 16px;
  width: fit-content;
  flex-wrap: wrap;
}
.admin-tab {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.admin-tab:hover { color: var(--charcoal); }
.admin-tab.active {
  background: var(--charcoal);
  color: var(--cream);
}
.tab-count {
  background: rgba(26, 26, 26, 0.1);
  border-radius: 100px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
}
.admin-tab.active .tab-count {
  background: rgba(255, 248, 240, 0.2);
}

/* ---- Toolbar ---- */
.admin-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-search {
  flex: 1;
  min-width: 200px;
  background: var(--cream);
  border: 1.5px solid rgba(26, 26, 26, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--charcoal);
}
.admin-search:focus {
  outline: none;
  border-color: var(--charcoal);
}

/* ---- List rows ---- */
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-empty {
  background: var(--cream);
  border: 1.5px dashed rgba(26, 26, 26, 0.15);
  border-radius: 16px;
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
}
.admin-empty.error { color: #C92837; border-color: rgba(201, 40, 55, 0.3); }

.admin-row {
  background: var(--cream);
  border: 1.5px solid rgba(26, 26, 26, 0.08);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-row:hover {
  border-color: rgba(26, 26, 26, 0.2);
  box-shadow: 0 8px 24px -16px rgba(26, 26, 26, 0.15);
}
.admin-row.status-pending  { border-left: 4px solid #d97706; }
.admin-row.status-approved { border-left: 4px solid #2d6a3f; }
.admin-row.status-rejected { border-left: 4px solid #999; opacity: 0.75; }
.admin-row.pinned          { background: linear-gradient(to right, rgba(230, 57, 70, 0.04), var(--cream) 30%); }

.admin-row-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-row-meta { font-size: 13px; color: var(--muted); }
.admin-row-name {
  font-weight: 700;
  color: var(--charcoal);
  font-size: 15px;
}
.admin-row-sub { margin-left: 4px; }
.admin-row-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.admin-row-rating { color: #f5a623; letter-spacing: 1px; font-size: 14px; }

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
}
.badge.status-pending  { background: rgba(217, 119, 6, 0.15);  color: #b45309; }
.badge.status-approved { background: rgba(45, 106, 63, 0.15);  color: #2d6a3f; }
.badge.status-rejected { background: rgba(100, 100, 100, 0.15); color: #555; }
.badge.pin             { background: rgba(230, 57, 70, 0.12);  color: var(--red); }

.admin-row-quote {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.55;
  color: var(--charcoal);
}

.admin-row-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}
.admin-row-likes {
  font-size: 13px;
  color: var(--muted);
}
.admin-row-actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.admin-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--charcoal);
  color: var(--cream);
  padding: 7px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.admin-action:hover { transform: scale(1.04); }
.admin-action svg { width: 12px; height: 12px; }
.admin-action.approve { background: #2d6a3f; }
.admin-action.secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid rgba(26, 26, 26, 0.25);
}
.admin-action.secondary:hover {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}
.admin-action.reject  { background: transparent; color: #b45309; border: 1.5px solid #d97706; }
.admin-action.reject:hover { background: #d97706; color: var(--cream); }
.admin-action.danger  { background: transparent; color: #C92837; border: 1.5px solid #C92837; }
.admin-action.danger:hover { background: #C92837; color: var(--cream); }
.admin-action.on      { background: var(--red); }

/* Direct-jump status picker */
.admin-status-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream-dark);
  border: 1.5px solid rgba(26, 26, 26, 0.15);
  border-radius: 100px;
  padding: 3px 4px 3px 12px;
  font-size: 12px;
  color: var(--muted);
}
.admin-status-picker:hover { border-color: var(--charcoal); }
.admin-status-picker .picker-label {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}
.admin-status-picker select {
  border: none;
  background: var(--charcoal);
  color: var(--cream);
  padding: 5px 28px 5px 12px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FFF8F0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.admin-status-picker select:focus {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  /* Header: wrap the controls onto their own full-width row so nothing
     overflows or overlaps the brand. */
  .admin-header { padding: 12px 14px; flex-wrap: wrap; gap: 10px 12px; }
  .admin-header-right { flex-wrap: wrap; gap: 8px; width: 100%; }
  .admin-notif-btn, .admin-signout { font-size: 12px; }
  .admin-main   { padding: 20px 14px 60px; }
  .admin-row    { padding: 16px; }
  .admin-row-quote { font-size: 15px; }
  .admin-user-label { display: none; }
  /* Section tabs: scroll horizontally instead of overflowing the screen. */
  .admin-section-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-section-tab { font-size: 18px; padding: 12px 14px; white-space: nowrap; flex: 0 0 auto; }
  .admin-section-tab.active::after { left: 14px; right: 14px; }
}

/* ---- Section tabs (Orders | Reviews) ---- */
.admin-section-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid rgba(26, 26, 26, 0.1);
  margin-bottom: 28px;
}
.admin-section-tab {
  background: transparent;
  border: none;
  padding: 14px 24px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.admin-section-tab:hover { color: var(--charcoal); }
.admin-section-tab.active { color: var(--charcoal); }
.admin-section-tab.active::after {
  content: '';
  position: absolute;
  left: 24px; right: 24px; bottom: -1.5px;
  height: 3px;
  background: var(--red);
  border-radius: 100px;
}

/* ---- Auto-refresh toggle ---- */
.admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.admin-toggle input { accent-color: var(--charcoal); }

/* ---- Order rows ---- */
.order-row.status-received         { border-left: 4px solid #6b7280; }
.order-row.status-preparing        { border-left: 4px solid #d97706; }
.order-row.status-baking           { border-left: 4px solid var(--red); }
.order-row.status-out_for_delivery { border-left: 4px solid #2d6a3f; }
.order-row.status-delivered        { border-left: 4px solid #2d6a3f; opacity: 0.7; }
.order-row.status-cancelled        { border-left: 4px solid #999; opacity: 0.55; }

.ord-code {
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  color: var(--red);
  background: rgba(230, 57, 70, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  margin-right: 6px;
}
.ord-total {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  color: var(--charcoal);
}
.badge.order-status-received         { background: rgba(107, 114, 128, 0.15); color: #4b5563; }
.badge.order-status-preparing        { background: rgba(217, 119, 6, 0.15);   color: #b45309; }
.badge.order-status-baking           { background: rgba(230, 57, 70, 0.12);   color: var(--red); }
.badge.order-status-out_for_delivery { background: rgba(45, 106, 63, 0.15);   color: #2d6a3f; }
.badge.order-status-delivered        { background: rgba(45, 106, 63, 0.2);    color: #2d6a3f; }
.badge.order-status-cancelled        { background: rgba(100, 100, 100, 0.15); color: #555; }

.ord-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 8px 0;
}
@media (max-width: 700px) {
  .ord-body { grid-template-columns: 1fr; }
}
.ord-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.ord-address svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
.ord-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--charcoal);
}
.ord-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.ord-item-price { color: var(--muted); }
.ord-notes {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--charcoal);
  background: var(--cream-dark);
  border-radius: 8px;
  padding: 10px 12px;
}


/* ===== Prepay payment block (confirmation modal + tracker) — Spec #2 ===== */
.prepay-reveal { margin: 14px 0; text-align: left; }
.prepay-head { font-size: 14px; color: var(--charcoal, #1A1A1A); margin-bottom: 8px; }
.prepay-acct {
  background: var(--cream, #FFF8F0);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
}
.prepay-line { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.prepay-line + .prepay-line { border-top: 1px dashed rgba(0,0,0,.10); }
.prepay-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted, #8a8a8a); min-width: 64px;
}
.prepay-title, .prepay-num { font-weight: 600; color: var(--charcoal, #1A1A1A); }
.prepay-num { letter-spacing: .03em; }
.prepay-copy-btn { margin-left: auto; }
.prepay-upload { display: block; font-size: 13px; color: var(--charcoal, #1A1A1A); margin-bottom: 6px; }
.prepay-upload input { display: block; margin-top: 6px; font-size: 13px; }
.prepay-upload-status { font-size: 13px; color: var(--red, #E63946); min-height: 18px; }
.tracker-prepay { margin: 10px 0; padding: 10px; background: rgba(230,57,70,.05); border-radius: 10px; }

/* ===== Reopen-tracker floating pill ===== */
.order-pill {
  position: fixed; bottom: 20px; right: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border: none; border-radius: 999px;
  background: var(--charcoal, #1A1A1A); color: #fff;
  font-weight: 600; font-size: 14px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.order-pill svg { width: 18px; height: 18px; }
.order-pill-code { opacity: .85; margin-left: 2px; }
.order-pill[hidden] { display: none; }


/* ===== Mobile hamburger nav (Spec #2 responsiveness) ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0 9px;
  background: transparent; border: none; cursor: pointer;
}
.nav-hamburger span {
  display: block; height: 2.5px; width: 100%;
  background: var(--charcoal); border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  margin: 12px -24px -16px;
  padding: 4px 24px 12px;
  background: var(--cream);
  border-top: 1px solid rgba(26,26,26,0.08);
  box-shadow: 0 16px 32px -12px rgba(26,26,26,0.18);
}
.mobile-nav a {
  padding: 14px 4px;
  font-size: 16px; font-weight: 500;
  color: var(--charcoal); text-decoration: none;
  border-bottom: 1px solid rgba(26,26,26,0.06);
}
.mobile-nav a:last-child { border-bottom: none; }

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links { margin-left: auto; gap: 12px; }
  .mobile-nav:not([hidden]) { display: flex; }
}
