/* ============================================
   MENU PAGE - REDESIGNED
   Modern, elegant restaurant menu experience
   ============================================ */

/* === Base & Typography === */
/* Prevent horizontal overflow on html only — body must NOT have overflow for sticky to work */
html {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1f2937;
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--theme-bg);
  -webkit-font-smoothing: antialiased;
}

.menu-page-body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  background: var(--theme-bg, #fafaf9);
  --theme-bg: #fafaf9;
  --theme-light-bg: #fafaf9;
}

/* =========================================
   Fixed Header Structure
   ========================================= */
.menu-fixed-header {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  background: var(--theme-bg);
  width: 100%;
  transition: box-shadow 0.3s ease;
  /* Performance optimizations */
  will-change: box-shadow;
  transform: translateZ(0);
}

/* Shadow appears when user has scrolled */
.menu-fixed-header.header-scrolled {
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.12);
}

.menu-page-container {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--theme-light-bg);
  position: relative;
  width: 100%;
  /* Performance optimizations for smooth scrolling */
  will-change: scroll-position;
  transform: translateZ(0); /* Force GPU layer */
}

.menu-page-inner {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 6rem;
}


/* === Custom Spinner === */
.menu-spinner {
  display: flex;
  gap: 8px;
  align-items: center;
}

.menu-spinner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  animation: menuSpinnerBounce 1.4s ease-in-out infinite both;
}

.menu-spinner-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.menu-spinner-dot:nth-child(2) {
  animation-delay: -0.16s;
}

.menu-spinner-dot:nth-child(3) {
  animation-delay: 0s;
}

@keyframes menuSpinnerBounce {

  0%,
  80%,
  100% {
    transform: scale(0.4);
    opacity: 0.5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* === Restaurant Hero Header === */
.menu-hero {
  position: relative;
  background: #111827;
  color: white;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 1.5rem;
  min-height: 160px;
  transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* Performance optimizations */
  will-change: transform, padding, min-height;
  transform: translateZ(0);
}

/* ── Collapsing hero: compact state ────────────────────────── */
.menu-hero.hero-scrolled {
  padding: 0.55rem 3.5rem;
  min-height: 0;
}

/* Elements that hide when hero collapses */
.menu-hero-logo-wrap,
.menu-hero-divider,
.menu-hero-tagline,
.menu-hero-info {
  max-height: 220px;
  overflow: hidden;
  opacity: 1;
  margin-bottom: 0;
  transition:
    max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease,
    margin 0.35s ease;
}

.menu-hero.hero-scrolled .menu-hero-logo-wrap,
.menu-hero.hero-scrolled .menu-hero-divider,
.menu-hero.hero-scrolled .menu-hero-tagline,
.menu-hero.hero-scrolled .menu-hero-info {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
}

/* Restaurant name shrinks in compact mode */
.menu-hero h1 {
  transition: font-size 0.35s ease, letter-spacing 0.35s ease;
}

.menu-hero.hero-scrolled h1 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-shadow: none;
}

/* Action buttons stay visible but compact */
.menu-hero.hero-scrolled .menu-hero-action-left,
.menu-hero.hero-scrolled .menu-hero-action-right {
  top: 50%;
  transform: translateY(-50%);
}

/* ────────────────────────────────────────────────────────── */

.menu-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 40%, #312e81 100%);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Soft ambient glow */
.menu-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 100%, rgba(99, 102, 241, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 0%, rgba(167, 139, 250, 0.2) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(79, 70, 229, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Subtle noise texture */
.menu-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Cover image state */
.menu-hero.has-cover .menu-hero-bg {
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center;
}

.menu-hero.has-cover .menu-hero-bg::before {
  background: linear-gradient(180deg,
      rgba(10, 10, 30, 0.45) 0%,
      rgba(10, 10, 30, 0.72) 60%,
      rgba(10, 10, 30, 0.92) 100%);
}

.menu-hero.has-cover .menu-hero-bg::after {
  display: none;
}

/* Hero content wrapper */
.menu-hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 520px;
  width: 100%;
  padding: 0.5rem 1rem;
  animation: heroContentIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.glassmorphic {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
}

@keyframes heroContentIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo — larger, circular with glow ring */
.menu-hero-logo-wrap {
  display: inline-block;
  position: relative;
  margin-bottom: 0.75rem;
}

/* Animated glow ring around logo */
.menu-hero-logo-wrap::before {
  display: block;
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(rgba(129, 140, 248, 0.7),
      rgba(167, 139, 250, 0.5),
      rgba(99, 102, 241, 0.7),
      rgba(129, 140, 248, 0.7));
  animation: logoRingSpin 4s linear infinite;
  z-index: -1;
  filter: blur(2px);
}

@keyframes logoRingSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.menu-hero-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.menu-hero-logo:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* No-logo placeholder */
.menu-hero-logo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}

/* Restaurant name — base */
.menu-hero h1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: white;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Name style variants */
/* Brand name + location pin inline */
.menu-hero-name-row {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.menu-hero-name-row h1 {
  margin: 0;
}

.menu-hero-location-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0 0 0 4px;
  margin: 0;
  transition: color 0.2s, transform 0.15s;
}

.menu-hero-location-icon:hover {
  color: #fff;
  transform: scale(1.2);
}

.menu-hero-name-style-bold {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.menu-hero-name-style-serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.01em;
}

.menu-hero-name-style-wide {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1.3rem;
}

.menu-hero-name-style-thin {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.menu-hero-name-style-handwrite {
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 1.9rem;
}

/* Caption / tagline line directly under the name */
.menu-hero-caption {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0.3rem 0 0;
  line-height: 1.4;
}

/* Decorative divider — accent with center diamond */
.menu-hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0.5rem auto 0;
  width: fit-content;
}

.menu-hero-divider-line {
  width: 40px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.7), rgba(129, 140, 248, 0.7));
  border-radius: 2px;
}

.menu-hero-divider-line:last-child {
  background: linear-gradient(90deg, rgba(129, 140, 248, 0.7), rgba(167, 139, 250, 0.7), transparent);
}

.menu-hero-divider-diamond {
  display: block;
  width: 5px;
  height: 5px;
  background: rgba(167, 139, 250, 0.8);
  border-radius: 1px;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Tagline / description */
.menu-hero-tagline {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0.4rem 0 0;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Contact info row */
.menu-hero-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* On mobile, remove wrapper side-padding so the chips row can scroll
   across the full hero width without being clipped */
@media (max-width: 479px) {

  /* Strip all side padding from hero and its wrapper — gives chips the full viewport width */
  .menu-hero {
    padding-left: 0;
    padding-right: 0;
  }

  .menu-hero-content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  /* Restore inner spacing for non-scrolling content */
  .menu-hero h1,
  .menu-hero-caption,
  .menu-hero-tagline,
  .menu-hero-divider,
  .menu-hero-logo-wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .menu-hero-info {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  /* Remove trailing spacer — no longer needed without scroll */
  .menu-hero-info::after {
    content: none;
  }

  .menu-hero-info::-webkit-scrollbar {
    display: none;
  }

  .menu-hero-chip {
    flex-shrink: 0;
    max-width: none;
  }
}

/* Glassmorphic chip */
.menu-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  width: fit-content;
  max-width: 100%;
  align-self: center;
}

.menu-hero-chip:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.menu-hero-chip:active {
  transform: translateY(0);
}

.menu-hero-chip svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.menu-hero-chip--phone svg {
  color: #86efac;
}

.menu-hero-chip--location svg {
  color: #93c5fd;
}

/* WhatsApp chip — green accent to distinguish from regular phone */
.menu-hero-chip--whatsapp {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.3);
}

.menu-hero-chip--whatsapp svg {
  color: #25d366;
}

.menu-hero-chip--whatsapp:hover {
  background: rgba(37, 211, 102, 0.25);
  border-color: rgba(37, 211, 102, 0.5);
}




/* Expired state */
.menu-hero-expired {
  text-align: center;
  padding: 3rem 1rem;
}

.menu-hero-expired-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  filter: grayscale(0.2);
}

.menu-hero-expired h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #fca5a5;
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.menu-hero-expired p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin: 0;
}

/* === Search Bar === */
.menu-search-wrapper {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0.75rem 1rem 0;
  background: var(--theme-bg, #fafaf9);
}

/* === Featured & Offers Section === */
.menu-featured-section {
  margin-top: 0;
  overflow: hidden;
  max-height: 2000px;
  opacity: 1;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.menu-featured-section.fs-collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

/* ── Offers Peek Button ───────────────────────────────────────────────────── */
.offers-peek-wrap {
  display: flex;
  justify-content: center;
  margin: 0;
}

.offers-peek-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 1.1rem;
  background: linear-gradient(135deg, #f97316 0%, #e11d48 100%);
  color: #fff;
  border: none;
  border-radius: 0 0 20px 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
  animation: opbPulse 2.2s ease-in-out infinite;
}

.offers-peek-btn:hover {
  filter: brightness(1.08);
}

.opb-icon {
  font-size: 0.9rem;
  line-height: 1;
}

@keyframes opbPulse {

  0%,
  100% {
    transform: scaleY(1);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
  }

  50% {
    transform: scaleY(1.06);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.55);
  }
}

/* ── Featured items running / marquee strip ── */
.featured-running-strip {
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(90deg, #1e1b4b 0%, #312e81 100%);
  border-top: 2px solid #4f46e5;
  border-bottom: 2px solid #4f46e5;
  padding: 0.45rem 0;
  margin-top: 0;
}

.featured-strip-label {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  background: #4f46e5;
  color: white;
  padding: 0.25rem 0.65rem;
  border-radius: 0 20px 20px 0;
  margin-right: 0.75rem;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.featured-strip-track-wrap {
  flex: 1;
  overflow: hidden;
}

.featured-strip-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: featured-marquee calc(var(--item-count, 4) * 3.5s) linear infinite;
}

.featured-strip-track:hover {
  animation-play-state: paused;
}

@keyframes featured-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.featured-run-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  padding: 0 0.5rem;
}

.featured-run-star {
  font-size: 0.8rem;
}

.featured-run-name {
  font-size: 0.87rem;
  font-weight: 600;
  color: #e0e7ff;
}

.featured-run-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: #a5b4fc;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 8px;
}

.featured-run-sep {
  color: #6366f1;
  font-size: 1rem;
  margin: 0 0.25rem;
}

.menu-featured-scroll {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.25rem 0 0.85rem;
  scroll-snap-type: x mandatory;
}

.menu-featured-scroll::-webkit-scrollbar {
  display: none;
}

/* ── Horizontal banner card ── */
.menu-featured-card {
  flex-shrink: 0;
  min-width: 270px;
  max-width: 320px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.menu-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Left accent strip */
.menu-featured-accent {
  width: 60px;
  min-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 1.6rem;
  padding: 0.75rem 0;
}

.type-featured .menu-featured-accent {
  background: linear-gradient(170deg, #fbbf24 0%, #f59e0b 100%);
}

.type-combo .menu-featured-accent {
  background: linear-gradient(170deg, #7c3aed 0%, #4c1d95 100%);
}

.type-discount .menu-featured-accent {
  background: linear-gradient(170deg, #ec4899 0%, #be185d 100%);
}

/* Right content body */
.menu-featured-body {
  flex: 1;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
}

.menu-featured-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.05rem;
}

.type-featured .menu-featured-label {
  color: #b45309;
}

.type-combo .menu-featured-label {
  color: #6d28d9;
}

.type-discount .menu-featured-label {
  color: #be185d;
}

.menu-featured-name {
  font-weight: 700;
  font-size: 1rem;
  color: #1c1917;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-featured-price {
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 0.1rem;
}

.type-featured .menu-featured-price {
  color: #d97706;
}

.type-combo .menu-featured-price {
  color: #7c3aed;
}

.type-discount .menu-featured-price {
  color: #db2777;
}

.menu-featured-meta {
  font-size: 0.75rem;
  color: #78716c;
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-featured-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  margin-top: 0.25rem;
  align-self: flex-start;
}

.type-featured .menu-featured-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #451a03;
}

.type-combo .menu-featured-badge {
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
}

.type-discount .menu-featured-badge {
  background: linear-gradient(135deg, #ec4899, #db2777);
}

/* Description tag pill */
.menu-featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #78716c;
  background: #f5f5f4;
  border-radius: 100px;
  padding: 0.15rem 0.6rem;
  margin-top: 0.3rem;
  align-self: flex-start;
}

/* Combo items list — one row per item */
.combo-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  margin: 0.4rem 0 0.1rem;
}

.combo-item-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #374151;
}

.combo-item-num {
  min-width: 1.2rem;
  height: 1.2rem;
  background: #8b5cf6;
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.combo-item-name {
  font-weight: 500;
  line-height: 1.2;
}

/* Savings badge inside price */
.combo-savings-badge {
  display: inline-block;
  margin-left: 0.4rem;
  background: #fef3c7;
  color: #92400e;
  border-radius: 10px;
  padding: 0.05rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  vertical-align: middle;
}

/* Notes tag */
.combo-notes-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: #9ca3af;
  font-style: italic;
  margin-top: 0.25rem;
  align-self: flex-start;
}

/* Dark mode for old combo elements */
body.dark-mode .combo-item-row {
  color: #d1d5db;
}

body.dark-mode .combo-notes-tag {
  color: #6b7280;
}

body.dark-mode .combo-savings-badge {
  background: #78350f;
  color: #fde68a;
}

/* ── Combo Strips — Horizontal Carousel with Expand/Collapse ── */
.combo-carousel-outer {
  margin-top: 0.6rem;
}

/* Horizontal scroll track */
.combo-strips-wrap {
  display: flex;
  flex-direction: row;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  padding: 0.2rem 0 0.5rem;
  align-items: flex-start;
}

.combo-strips-wrap::-webkit-scrollbar {
  display: none;
}

/* Individual strip card — full width, one per screen */
.combo-strip {
  flex-shrink: 0;
  min-width: 100%;
  width: 100%;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid #c7d2fe;
  box-shadow: 0 2px 10px rgba(67, 56, 202, 0.09);
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.combo-strip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(67, 56, 202, 0.18);
}

.combo-strip-no-expand {
  cursor: default;
}

/* Strip header — navy-indigo gradient, always visible */
.combo-strip-header {
  background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
}

.combo-strip-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.combo-strip-title-block {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.combo-strip-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #a5b4fc;
  text-transform: uppercase;
}

.combo-strip-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.combo-strip-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.combo-strip-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.05rem;
}

.combo-strip-original-price {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
  line-height: 1;
  white-space: nowrap;
}

.combo-strip-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0.12rem 0.45rem;
  white-space: nowrap;
}

.combo-strip-chevron {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.28s ease;
  line-height: 1;
  display: inline-block;
}

.combo-strip.open .combo-strip-chevron {
  transform: rotate(90deg);
}

/* Expandable details panel */
.combo-strip-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
  background: #fff;
}

.combo-strip.open .combo-strip-details {
  max-height: 520px;
}

/* Contents inside details */
.combo-items-list {
  padding: 0.6rem 0.85rem 0.35rem;
}

.combo-item-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #374151;
  margin-bottom: 0.22rem;
}

.combo-item-num {
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  background: #7c3aed;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.combo-strip-savings {
  padding: 0.25rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #7c3aed;
  background: #ede9fe;
  border-top: 1px solid #ddd6fe;
}

.combo-strip-desc {
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.combo-strip-note {
  padding: 0.2rem 0.85rem 0.6rem;
  font-size: 0.72rem;
  color: #9ca3af;
  font-style: italic;
}

/* Dot indicators */
.combo-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.35rem 0 0.1rem;
}

.combo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ddd6fe;
  transition: background 0.25s, transform 0.25s;
  cursor: pointer;
}

.combo-dot.active {
  background: #7c3aed;
  transform: scale(1.4);
}

/* ── Discount strip variant — pink/rose theme ── */
.discount-strip {
  border-color: #fbcfe8;
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.09);
}

.discount-strip:hover {
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.18);
}

.discount-strip .combo-strip-header {
  background: linear-gradient(135deg, #be185d 0%, #9d174d 100%);
}

.discount-strip .combo-strip-label {
  color: #fbcfe8;
}

.discount-strip-badge {
  background: rgba(255, 255, 255, 0.22) !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.01em;
}

.discount-strip .combo-strip-details {
  background: #fff9fb;
}

.discount-dot {
  background: #fbcfe8 !important;
}

.discount-dot.active {
  background: #ec4899 !important;
}

/* Discount applies-to section */
.discount-applies-wrap {
  padding: 0.6rem 0.85rem 0.2rem;
}

.discount-applies-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #be185d;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.discount-applies-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}

.discount-applies-cat {
  display: inline-block;
  background: #fce7f3;
  color: #be185d;
  border: 1px solid #fbcfe8;
  border-radius: 20px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.discount-applies-items {
  padding-top: 0.15rem;
}

.discount-item-price {
  color: #9d174d;
  font-weight: 600;
  font-size: 0.75rem;
}

body.dark-mode .discount-strip {
  background: #2d1a24;
  border-color: #6b2149;
}

body.dark-mode .discount-strip .combo-strip-details {
  background: #2d1a24;
}

/* Dark mode */
body.dark-mode .combo-strip {
  background: #1e1b2e;
  border-color: #3b2f6b;
}

body.dark-mode .combo-strip:hover {
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.28);
}

body.dark-mode .combo-strip-details {
  background: #1e1b2e;
}

body.dark-mode .combo-item-row {
  color: #d1d5db;
}

body.dark-mode .combo-strip-desc {
  color: #9ca3af;
}

body.dark-mode .combo-strip-note {
  color: #6b7280;
}

body.dark-mode .combo-strip-savings {
  color: #c4b5fd;
  background: #2d1b69;
  border-top-color: #3b2f6b;
}

body.dark-mode .combo-dot {
  background: #3b2f6b;
}

body.dark-mode .combo-dot.active {
  background: #7c3aed;
}

/* Combo cart icon in header */
.combo-cart-action {
  display: flex;
  align-items: center;
}

/* + icon button (not yet in cart) */
.combo-add-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.12s;
  flex-shrink: 0;
}

.combo-add-btn:active {
  background: rgba(255, 255, 255, 0.38);
  transform: scale(0.9);
}

/* Inline stepper (already in cart) */
.combo-inline-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  overflow: hidden;
}

.combo-stepper-btn {
  width: 22px;
  height: 22px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
  flex-shrink: 0;
}

.combo-stepper-btn:active {
  background: rgba(255, 255, 255, 0.25);
}

.combo-stepper-qty {
  min-width: 18px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  padding: 0 1px;
}

/* Per-category sort dropdown */
.cat-sort-select {
  margin-left: auto;
  padding: 0.15rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f9fafb;
  color: #6b7280;
  cursor: pointer;
  flex-shrink: 0;
  outline: none;
  transition: border-color 0.15s, color 0.15s;
}

.cat-sort-select:focus,
.cat-sort-select:hover {
  border-color: #4f46e5;
  color: #4f46e5;
}

body.dark-mode .cat-sort-select {
  background: #292524;
  border-color: #44403c;
  color: #a8a29e;
}

body.dark-mode .cat-sort-select:focus,
body.dark-mode .cat-sort-select:hover {
  border-color: #818cf8;
  color: #818cf8;
}

.menu-sort-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--theme-bg, #fafaf9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
}

.sort-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.sort-options {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.sort-btn {
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: white;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sort-btn:hover {
  border-color: #d1d5db;
  color: #374151;
}

.sort-btn.active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: white;
}

body.dark-mode .menu-sort-bar {
  background: var(--theme-bg, #1c1917);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .sort-btn {
  background: #292524;
  border-color: #44403c;
  color: #a8a29e;
}

body.dark-mode .sort-btn.active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: white;
}

.menu-category-nav-wrap {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: var(--theme-bg, #fafaf9);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid #e7e5e4;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Fade hints for scroll */
.menu-category-nav-wrap::before,
.menu-category-nav-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-category-nav-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--cat-fade-color, #fafaf9) 30%, transparent);
}

.menu-category-nav-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--cat-fade-color, #fafaf9) 30%, transparent);
}

.menu-category-nav-wrap.can-scroll-left::before {
  opacity: 1;
}

.menu-category-nav-wrap.can-scroll-right::after {
  opacity: 1;
}

.menu-category-nav {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0.25rem 0.75rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-padding-inline: 0.5rem;
  justify-content: flex-start;
  position: relative;
  flex: 1;
  min-width: 0;
}

/* Animated slide indicator */
.menu-cat-indicator {
  position: absolute;
  bottom: 4px;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5 0%, #818cf8 100%);
  border-radius: 100px;
  pointer-events: none;
  opacity: 0;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.menu-category-nav::-webkit-scrollbar {
  display: none;
}

/* ── Running colour outline animation ──────────────────────────────────── */
@property --outline-hue {
  syntax: '<number>';
  initial-value: 0;
  inherits: false;
}

@keyframes outline-hue-spin {
  0% {
    --outline-hue: 0;
  }

  100% {
    --outline-hue: 360;
  }
}

/* Individual category button */
.menu-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid hsl(var(--outline-hue), 65%, 72%);
  background: #f5f5f4;
  color: #57534e;
  flex: 0 0 auto;
  width: fit-content;
  position: relative;
  overflow: hidden;
  transition:
    background 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.25s ease,
    box-shadow 0.3s ease,
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 1;
  transform: none;
  animation: outline-hue-spin 4s linear infinite;
}

/* Ripple / shine sweep on hover */
.menu-cat-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.menu-cat-btn:hover::before {
  left: 100%;
}

.menu-cat-btn:hover {
  background: #e7e5e4;
  color: #1c1917;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.menu-cat-btn:active {
  transform: translateY(1px) scale(0.95);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Active state */
.menu-cat-btn.active {
  background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
  color: white;
  border: 2px solid hsl(var(--outline-hue), 90%, 72%);
  box-shadow: 0 4px 12px rgba(49, 46, 129, 0.35), 0 0 10px hsl(var(--outline-hue), 80%, 70%);
  transform: translateY(-1px);
  animation: outline-hue-spin 2.5s linear infinite;
}

.menu-cat-btn.active:hover {
  box-shadow: 0 6px 20px rgba(49, 46, 129, 0.45);
  transform: translateY(-2px);
}

/* Unavailable */
.menu-cat-btn.unavailable {
  background: #f5f5f4;
  color: #a8a29e;
  border: 1.5px solid #e7e5e4;
  cursor: default;
  opacity: 0.65;
  animation: none;
}

.menu-cat-btn.unavailable:hover {
  transform: none;
  box-shadow: none;
  border-color: #e7e5e4;
  color: #a8a29e;
}

.menu-cat-btn.unavailable::before {
  display: none;
}

/* Badge count */
.menu-cat-btn .cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  background: #f0eeec;
  color: #78716c;
  transition: all 0.3s ease;
}

.menu-cat-btn.active .cat-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* === Menu Items Section === */
.menu-items-section {
  margin-top: 0.5rem;
}

.menu-category-block {
  margin-bottom: 2rem;
  animation: menuFadeUp 0.4s ease-out both;
}

.menu-category-block:nth-child(1) {
  animation-delay: 0s;
}

.menu-category-block:nth-child(2) {
  animation-delay: 0.05s;
}

.menu-category-block:nth-child(3) {
  animation-delay: 0.1s;
}

.menu-category-block:nth-child(4) {
  animation-delay: 0.15s;
}

@keyframes menuFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
}

.menu-category-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1c1917;
  margin: 0;
  flex: 1;
}

.menu-category-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: #a8a29e;
  background: #f5f5f4;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
}

.menu-category-time {
  font-size: 0.8rem;
  color: #78716c;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.menu-category-unavailable {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* === Menu Item Cards === */
.menu-items-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.menu-item {
  display: flex;
  gap: 0.9rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid #f0ede8;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  position: relative;
}

.menu-item:last-child {
  border-bottom: 1px solid #f0ede8;
}

.menu-item:hover {
  background: #fafaf8;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.menu-item-img {
  width: 82px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

/* Placeholder for items with no image */
.menu-item-img-placeholder {
  width: 82px;
  height: 82px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f3f4f6 0%, #e9eaec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.menu-item:hover .menu-item-img {
  transform: scale(1.04);
}

.menu-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 0.15rem;
}

.menu-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.menu-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1c1917;
  line-height: 1.35;
  margin: 0;
}

.menu-item-desc {
  font-size: 0.82rem;
  color: #78716c;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-item-price-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: #15803d;
  white-space: nowrap;
  flex-shrink: 0;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 2px 9px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 3px;
}

.price-unit {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.72;
  margin-left: 1px;
  letter-spacing: 0.01em;
}

/* Badges */
.menu-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.2rem;
}

.menu-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.menu-badge-featured {
  background: #fef3c7;
  color: #92400e;
}

.menu-badge-bestseller {
  background: #ede9fe;
  color: #5b21b6;
}

.menu-badge-new {
  background: #d1fae5;
  color: #065f46;
}

.menu-badge-limited {
  background: #fee2e2;
  color: #991b1b;
}

.menu-badge-discount {
  background: #fce7f3;
  color: #9d174d;
}

/* === Category Block as Card === */
.menu-category-card {
  background: white;
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
  border: 1px solid #f0efed;
  transition: box-shadow 0.2s ease;
  animation: menuFadeUp 0.4s ease-out both;
}

.menu-category-card:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.menu-category-card.unavailable-cat {
  opacity: 0.6;
}

/* === Footer === */
.menu-page-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  color: #a8a29e;
  font-size: 0.8rem;
  border-top: 1px solid #f5f5f4;
}

.menu-page-footer strong {
  color: #78716c;
  font-weight: 700;
}

/* === Scroll to Top Button === */
.menu-scroll-top {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid #e7e5e4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: all 0.3s ease;
  z-index: 90;
  color: #1c1917;
  /* Hardware acceleration for smooth animation */
  will-change: transform, opacity;
}

.menu-scroll-top.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.menu-scroll-top:hover {
  background: #1c1917;
  color: white;
  border-color: #1c1917;
}

.menu-scroll-top.cart-active {
  bottom: 136px;
}

/* === Responsive Design === */

/* Large screens */
@media (min-width: 768px) {
  .menu-hero {
    padding: 1.75rem 2rem 1.25rem;
  }

  .menu-hero h1 {
    font-size: 1.75rem;
  }

  .menu-hero-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
  }

  .menu-hero-divider-line {
    width: 40px;
  }

  .menu-hero-chip {
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
  }

  .menu-page-container {
    padding: 0 2rem 3rem;
  }

  .menu-search-wrapper {
    padding: 1rem 2rem 0;
  }

  .menu-category-card {
    padding: 1.5rem;
    border-radius: 18px;
  }

  .menu-item {
    padding: 1.15rem 0;
  }

  .menu-item-img,
  .menu-item-img-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 14px;
  }

  .menu-item-title {
    font-size: 1rem;
  }

  .menu-category-title {
    font-size: 1.5rem;
  }

  .menu-featured-card {
    min-width: 280px;
    max-width: 340px;
  }
}

/* Medium screens (Large phones / Small tablets) */
@media (min-width: 480px) {
  .menu-hero {
    padding: 1.5rem 1.5rem 1.15rem;
  }

  .menu-hero h1 {
    font-size: 1.55rem;
  }

  .menu-hero-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .menu-hero-chip {
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
  }

  #menu-search-input {
    padding: 0.95rem 2.75rem 0.95rem 3rem;
    border-radius: 20px;
    font-size: 1rem;
  }

  .menu-category-card {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .menu-item-img,
  .menu-item-img-placeholder {
    width: 82px;
    height: 82px;
    border-radius: 12px;
  }

  .menu-item-title {
    font-size: 0.95rem;
  }

  .menu-item-price-tag {
    font-size: 0.95rem;
  }

  .menu-category-title {
    font-size: 1.35rem;
  }

  .menu-cat-btn {
    padding: 0.55rem 1.15rem;
    font-size: 0.9rem;
    border-radius: 18px;
  }
}

/* === Theme Overrides — applied via JS === */
.menu-page-body[data-theme="ocean"] {
  background: #f0f9ff;
  --cat-fade-color: #f0f9ff;
}

.menu-page-body[data-theme="ocean"] .menu-search-wrapper {
  background: #f0f9ff;
}

.menu-page-body[data-theme="ocean"] .menu-hero {
  background: linear-gradient(135deg, #0c4a6e 0%, #075985 50%, #0369a1 100%);
}

.menu-page-body[data-theme="ocean"] .menu-hero::before {
  background:
    radial-gradient(ellipse at 15% 80%, rgba(56, 189, 248, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(125, 211, 252, 0.2) 0%, transparent 45%);
}

.menu-page-body[data-theme="ocean"] .menu-hero-divider-line {
  background: rgba(125, 211, 252, 0.4);
}

.menu-page-body[data-theme="ocean"] .menu-hero-divider-diamond {
  background: rgba(125, 211, 252, 0.5);
}

.menu-page-body[data-theme="ocean"] .menu-hero-logo-wrap::before {
  background: conic-gradient(from 0deg, rgba(56, 189, 248, 0.6), rgba(14, 165, 233, 0.6), rgba(2, 132, 199, 0.6), rgba(56, 189, 248, 0.6));
}

.menu-page-body[data-theme="ocean"] .menu-cat-btn.active {
  background: #0284c7;
  border-color: #0284c7;
}

.menu-page-body[data-theme="ocean"] .menu-cat-btn {
  border-color: rgba(2, 132, 199, 0.25);
}

.menu-page-body[data-theme="ocean"] .fab-main {
  background: #0369a1;
}

.menu-page-body[data-theme="ocean"] .menu-sticky-pill.active {
  background: #0284c7;
  border-color: #0284c7;
}

.menu-page-body[data-theme="forest"] {
  background: #f0fdf4;
  --cat-fade-color: #f0fdf4;
}

.menu-page-body[data-theme="forest"] .menu-search-wrapper {
  background: #f0fdf4;
}

.menu-page-body[data-theme="forest"] .menu-hero {
  background: linear-gradient(135deg, #14532d 0%, #166534 50%, #15803d 100%);
}

.menu-page-body[data-theme="forest"] .menu-hero::before {
  background:
    radial-gradient(ellipse at 15% 80%, rgba(34, 197, 94, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(74, 222, 128, 0.2) 0%, transparent 45%);
}

.menu-page-body[data-theme="forest"] .menu-hero-divider-line {
  background: rgba(74, 222, 128, 0.4);
}

.menu-page-body[data-theme="forest"] .menu-hero-divider-diamond {
  background: rgba(74, 222, 128, 0.5);
}

.menu-page-body[data-theme="forest"] .menu-hero-logo-wrap::before {
  background: conic-gradient(from 0deg, rgba(34, 197, 94, 0.6), rgba(22, 163, 74, 0.6), rgba(21, 128, 61, 0.6), rgba(34, 197, 94, 0.6));
}

.menu-page-body[data-theme="forest"] .menu-cat-btn.active {
  background: #16a34a;
  border-color: #16a34a;
}

.menu-page-body[data-theme="forest"] .menu-cat-btn {
  border-color: rgba(22, 163, 74, 0.25);
}

.menu-page-body[data-theme="forest"] .fab-main {
  background: #15803d;
}

.menu-page-body[data-theme="forest"] .menu-sticky-pill.active {
  background: #16a34a;
  border-color: #16a34a;
}

.menu-page-body[data-theme="sunset"] {
  background: #fff7ed;
  --cat-fade-color: #fff7ed;
}

.menu-page-body[data-theme="sunset"] .menu-search-wrapper {
  background: #fff7ed;
}

.menu-page-body[data-theme="sunset"] .menu-hero {
  background: linear-gradient(135deg, #7c2d12 0%, #9a3412 50%, #c2410c 100%);
}

.menu-page-body[data-theme="sunset"] .menu-hero::before {
  background:
    radial-gradient(ellipse at 15% 80%, rgba(251, 146, 60, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(253, 186, 116, 0.2) 0%, transparent 45%);
}

.menu-page-body[data-theme="sunset"] .menu-hero-divider-line {
  background: rgba(253, 186, 116, 0.4);
}

.menu-page-body[data-theme="sunset"] .menu-hero-divider-diamond {
  background: rgba(253, 186, 116, 0.5);
}

.menu-page-body[data-theme="sunset"] .menu-hero-logo-wrap::before {
  background: conic-gradient(from 0deg, rgba(251, 146, 60, 0.6), rgba(234, 88, 12, 0.6), rgba(194, 65, 12, 0.6), rgba(251, 146, 60, 0.6));
}

.menu-page-body[data-theme="sunset"] .menu-cat-btn.active {
  background: #ea580c;
  border-color: #ea580c;
}

.menu-page-body[data-theme="sunset"] .menu-cat-btn {
  border-color: rgba(234, 88, 12, 0.25);
}

.menu-page-body[data-theme="sunset"] .fab-main {
  background: #c2410c;
}

.menu-page-body[data-theme="sunset"] .menu-sticky-pill.active {
  background: #ea580c;
  border-color: #ea580c;
}

/* === Cart: Add-to-Cart Button & Stepper === */
.menu-item-cart-action {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

.cart-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1.5px solid #e7e5e4;
  background: white;
  color: #25D366;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cart-add-btn:hover {
  background: #25D366;
  color: white;
  border-color: #25D366;
  transform: scale(1.1);
}

.cart-add-btn:active {
  transform: scale(0.92);
}

/* Quantity stepper */
.cart-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #f5f5f4;
  border-radius: 10px;
  border: 1.5px solid #e7e5e4;
  overflow: hidden;
}

.cart-stepper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: #1c1917;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cart-stepper-btn:hover {
  background: #e7e5e4;
}

.cart-stepper-btn:active {
  transform: scale(0.9);
}

.cart-stepper-btn.minus {
  color: #ef4444;
}

.cart-stepper-btn.plus {
  color: #25D366;
}

.cart-stepper-qty {
  min-width: 24px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1c1917;
  user-select: none;
}

/* === Cart: Floating Action Button === */
.cart-fab {
  position: fixed;
  bottom: 20px;
  right: 16px;
  z-index: 100;
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: cartFabIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.cart-fab.visible {
  display: inline-flex;
}

.cart-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.12);
}

.cart-fab:active {
  transform: translateY(0) scale(0.96);
}

.cart-fab-icon {
  display: flex;
  align-items: center;
}

.cart-fab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 100px;
  background: white;
  color: #128C7E;
  font-size: 0.72rem;
  font-weight: 800;
}

@keyframes cartFabIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* === Address Modal === */
.addr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.addr-modal-overlay.addr-modal-open {
  opacity: 1;
  pointer-events: auto;
}

.addr-modal {
  background: #fff;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 600px;
  padding: 1.5rem 1.5rem 2rem;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
}

.addr-modal-overlay.addr-modal-open .addr-modal {
  transform: translateY(0);
}

.addr-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f3f4f6;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #374151;
  transition: background 0.2s;
}

.addr-modal-close:hover {
  background: #e5e7eb;
}

.addr-modal-pin {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.85rem;
}

.addr-modal-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.35rem;
  font-family: 'Inter', system-ui, sans-serif;
}

.addr-modal-address {
  font-size: 0.92rem;
  color: #6b7280;
  line-height: 1.55;
  margin: 0 0 1rem;
  font-family: 'Inter', system-ui, sans-serif;
}

.addr-modal-map-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  min-height: 0;
}

.addr-modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem;
  background: #1d4ed8;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Inter', system-ui, sans-serif;
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.addr-modal-btn:hover {
  background: #1e40af;
  transform: translateY(-1px);
}

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

body.dark-mode .addr-modal {
  background: #1c1917;
}

body.dark-mode .addr-modal-close {
  background: #292524;
  color: #d1d5db;
}

body.dark-mode .addr-modal-name {
  color: #f9fafb;
}

body.dark-mode .addr-modal-address {
  color: #9ca3af;
}

/* === Cart: Overlay === */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  transition: opacity 0.3s ease;
}

.cart-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* === Cart: Drawer (Bottom Sheet) === */
.cart-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  z-index: 210;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  transform: translateY(0);
}

.cart-drawer.hidden {
  transform: translateY(100%);
  pointer-events: none;
}

.cart-drawer-handle {
  width: 40px;
  height: 4px;
  border-radius: 100px;
  background: #d6d3d1;
  margin: 10px auto 4px;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.25rem 0.75rem;
  border-bottom: 1px solid #f5f5f4;
}

.cart-drawer-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1c1917;
  margin: 0;
}

.cart-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f5f5f4;
  color: #78716c;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-drawer-close:hover {
  background: #e7e5e4;
  color: #1c1917;
}

/* Cart items list */
.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1.25rem;
  overscroll-behavior: contain;
}

.cart-drawer-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f5f5f4;
}

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

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

.cart-drawer-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1c1917;
  margin: 0 0 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-drawer-item-price {
  font-size: 0.78rem;
  color: #78716c;
}

.cart-drawer-item-subtotal {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1c1917;
  white-space: nowrap;
  margin-left: 0.5rem;
}

/* Cart empty state */
.cart-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #a8a29e;
}

.cart-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.cart-empty p {
  font-size: 0.9rem;
  margin: 0;
}

/* Cart footer */
.cart-drawer-footer {
  padding: 1rem 1.25rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  border-top: 1px solid #f0efed;
  background: #fafaf9;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1c1917;
}

.cart-total-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1c1917;
}

/* WhatsApp CTA Button */
.cart-whatsapp-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.cart-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

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

.cart-whatsapp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Desktop drawer width */
@media (min-width: 768px) {
  .cart-drawer {
    max-width: 480px;
    left: auto;
    right: 0;
    border-radius: 24px 0 0 0;
  }

  .cart-fab {
    bottom: 28px;
    right: 24px;
  }
}

/* === Print-friendly === */
@media print {

  .menu-sticky-nav,
  .menu-search-wrapper,
  .menu-category-nav,
  .menu-page-footer,
  .fab-container,
  .menu-scroll-top,
  .cart-fab,
  .cart-overlay,
  .cart-drawer,
  .menu-item-cart-action {
    display: none !important;
  }

  .menu-hero {
    background: #333 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    padding: 1.5rem;
    min-height: auto;
  }

  .menu-hero::before,
  .menu-hero::after,
  .menu-hero-logo-wrap::before {
    display: none !important;
  }

  .menu-category-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* === Accessibility: Reduced Motion === */
@media (prefers-reduced-motion: reduce) {

  .menu-category-block,
  .menu-category-card,
  .menu-hero-content,
  .menu-cat-btn {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .menu-hero::before {
    animation: none;
  }

  .menu-hero-logo-wrap::before {
    animation: none;
  }

  .menu-sticky-nav {
    transition: none;
  }

  .menu-item-img,
  .menu-featured-card,
  .menu-hero-chip,
  .menu-hero-logo,
  .menu-cat-btn,
  .menu-scroll-top {
    transition: none;
  }

  .menu-cat-btn::before {
    display: none;
  }
}

/* ============================================
   NEW FEATURES
   ============================================ */

/* === Scroll Progress Bar === */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);
  transform-origin: left;
  transform: scaleX(0) translateZ(0);
  z-index: 9999;
  transition: transform 0.1s linear;
  pointer-events: none;
  /* Performance optimizations */
  will-change: transform;
}

body.dark-mode .scroll-progress-bar {
  background: linear-gradient(90deg, #818cf8, #a78bfa, #c084fc);
}

/* === Skeleton Loading === */
.skeleton-container {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--sk-bg, #fafaf9);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.skeleton-container.hidden {
  display: none;
}

.skeleton-hero {
  width: 100%;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  padding: 2rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.skeleton-circle {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.skeleton-line {
  height: 14px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.skeleton-w80 {
  width: 80%;
}

.skeleton-w70 {
  width: 70%;
}

.skeleton-w60 {
  width: 60%;
}

.skeleton-w50 {
  width: 50%;
}

.skeleton-w40 {
  width: 40%;
}

.skeleton-search {
  width: 100%;
  max-width: 800px;
  height: 48px;
  border-radius: 14px;
  background: #f0efed;
  margin: 0.75rem 1rem 0;
  position: relative;
  overflow: hidden;
}

.skeleton-categories {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  width: 100%;
  max-width: 800px;
}

.skeleton-pill {
  width: 80px;
  height: 36px;
  border-radius: 10px;
  background: #f0efed;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.skeleton-cards {
  width: 100%;
  max-width: 800px;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skeleton-card {
  background: white;
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid #f0efed;
}

.skeleton-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
}

.skeleton-badge-sm {
  width: 40px;
  height: 22px;
  border-radius: 100px;
  background: #f0efed;
  position: relative;
  overflow: hidden;
}

.skeleton-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f5f5f4;
}

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

.skeleton-img-sm {
  width: 55px;
  height: 55px;
  border-radius: 10px;
  background: #f0efed;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.skeleton-item-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
}

/* Shimmer animation */
.skeleton-circle::after,
.skeleton-line::after,
.skeleton-search::after,
.skeleton-pill::after,
.skeleton-badge-sm::after,
.skeleton-img-sm::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: skeletonShimmer 1.5s infinite;
}

.skeleton-hero .skeleton-line::after,
.skeleton-hero .skeleton-circle::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
}

@keyframes skeletonShimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* === Veg / Non-Veg / Egg Indicator === */
.diet-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 2px solid;
  flex-shrink: 0;
  margin-top: 2px;
}

.diet-badge::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.diet-veg {
  border-color: #16a34a;
}

.diet-veg::after {
  background: #16a34a;
}

.diet-nonveg {
  border-color: #dc2626;
}

.diet-nonveg::after {
  background: #dc2626;
}

.diet-egg {
  border-color: #eab308;
}

.diet-egg::after {
  background: #eab308;
}

/* Spicy tag */
.menu-item-spicy-tag {
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

/* === Hero Action Buttons === */
.menu-hero-action-left {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.menu-hero-action-right {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 20;
}

.hero-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-action-btn:active {
  transform: scale(0.92);
}

/* === Language / Currency Dropdown === */
.lang-currency-wrapper {
  position: relative;
}

.lang-currency-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  max-height: 420px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 200;
  padding: 0.75rem;
  animation: lcdFadeIn 0.2s ease-out;
}

.lang-currency-dropdown.hidden {
  display: none;
}

@keyframes lcdFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lcd-section {
  padding: 0.25rem 0;
}

.lcd-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a8a29e;
  margin: 0 0 0.4rem 0.25rem;
}

.lcd-divider {
  height: 1px;
  background: #f0efed;
  margin: 0.5rem 0;
}

.lcd-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.lcd-option {
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid #e7e5e4;
  background: white;
  color: #57534e;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.lcd-option:hover {
  background: #f5f5f4;
  border-color: #d6d3d1;
}

.lcd-option.active {
  background: #312e81;
  color: white;
  border-color: #312e81;
}

.lcd-currencies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
}

.lcd-currencies-grid .lcd-option {
  text-align: center;
  font-size: 0.72rem;
}

/* === Animated Category Transitions === */
.menu-category-card {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.menu-category-card.category-entering {
  animation: categorySlideIn 0.4s ease-out both;
}

@keyframes categorySlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Share Feedback Toast === */
.share-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1c1917;
  color: white;
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 300;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

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

/* ============================================
   DARK MODE
   ============================================ */
body.dark-mode.menu-page-body {
  background: #0f0f0f;
  color: #e5e5e5;
  --cat-fade-color: #0f0f0f;
  --theme-bg: #0f0f0f;
  --theme-light-bg: #0f0f0f;
}

body.dark-mode .menu-fixed-header {
  background: #0f0f0f;
}

body.dark-mode .menu-page-container {
  background: #0f0f0f;
}

body.dark-mode .menu-hero {
  background: linear-gradient(135deg, #0c0a1d, #1a1744);
}

body.dark-mode .menu-hero-bg::before {
  background:
    radial-gradient(ellipse at 20% 90%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 10%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
}

body.dark-mode .menu-search-wrapper {
  background: #0f0f0f;
}

body.dark-mode .menu-category-nav-wrap {
  background: #0f0f0f;
  border-top-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .menu-fixed-header.header-scrolled {
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.35);
}

body.dark-mode .menu-category-nav-wrap::before {
  background: linear-gradient(90deg, #0f0f0f 30%, transparent) !important;
}

body.dark-mode .menu-category-nav-wrap::after {
  background: linear-gradient(270deg, #0f0f0f 30%, transparent) !important;
}

body.dark-mode .menu-cat-btn {
  background: #1a1a1a;
  color: #a8a29e;
  border-color: #2a2a2a;
}

body.dark-mode .menu-cat-btn:hover {
  background: #252525;
  color: #e5e5e5;
}

body.dark-mode .menu-cat-btn.active {
  background: linear-gradient(135deg, #4338ca 0%, #312e81 100%);
  color: white;
  border-color: #4338ca;
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.3);
}

body.dark-mode .menu-cat-btn .cat-count {
  background: #2a2a2a;
  color: #999;
}

body.dark-mode .menu-cat-btn.active .cat-count {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

body.dark-mode .menu-cat-indicator {
  background: linear-gradient(90deg, #6366f1 0%, #a5b4fc 100%);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

body.dark-mode .menu-category-card {
  background: #1a1a1a;
  border-color: #2a2a2a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

body.dark-mode .menu-category-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .menu-category-title {
  color: #e5e5e5;
}

body.dark-mode .menu-category-count {
  background: #2a2a2a;
  color: #999;
}

body.dark-mode .menu-category-time {
  color: #999;
}

body.dark-mode .menu-item {
  background: #1e1e1e;
  border-color: #2a2a2a;
}

body.dark-mode .menu-item:hover {
  background: #252525;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .menu-item-img-placeholder {
  background: linear-gradient(135deg, #2a2a2a 0%, #222 100%);
}

body.dark-mode .menu-item-title {
  color: #e5e5e5;
}

body.dark-mode .menu-item-desc {
  color: #888;
}

body.dark-mode .menu-item-price-tag {
  color: #4ade80;
  background: #052e16;
  border-color: #166534;
}

body.dark-mode .menu-item-img {
  background: #2a2a2a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .menu-page-footer {
  color: #666;
  border-top-color: #2a2a2a;
}

body.dark-mode .menu-page-footer strong {
  color: #999;
}

body.dark-mode .cart-add-btn {
  background: #1a1a1a;
  border-color: #2a2a2a;
}

body.dark-mode .cart-add-btn:hover {
  background: #25D366;
  color: white;
  border-color: #25D366;
}

body.dark-mode .cart-stepper {
  background: #252525;
  border-color: #333;
}

body.dark-mode .cart-stepper-btn {
  color: #e5e5e5;
}

body.dark-mode .cart-stepper-btn:hover {
  background: #333;
}

body.dark-mode .cart-stepper-qty {
  color: #e5e5e5;
}

body.dark-mode .cart-drawer {
  background: #1a1a1a;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
}

body.dark-mode .cart-drawer-handle {
  background: #444;
}

body.dark-mode .cart-drawer-header {
  border-bottom-color: #2a2a2a;
}

body.dark-mode .cart-drawer-title {
  color: #e5e5e5;
}

body.dark-mode .cart-drawer-close {
  background: #252525;
  color: #999;
}

body.dark-mode .cart-drawer-close:hover {
  background: #333;
  color: #e5e5e5;
}

body.dark-mode .cart-drawer-item {
  border-bottom-color: #2a2a2a;
}

body.dark-mode .cart-drawer-item-name {
  color: #e5e5e5;
}

body.dark-mode .cart-drawer-item-price {
  color: #888;
}

body.dark-mode .cart-drawer-item-subtotal {
  color: #e5e5e5;
}

body.dark-mode .cart-empty {
  color: #666;
}

body.dark-mode .cart-drawer-footer {
  border-top-color: #2a2a2a;
  background: #151515;
}

body.dark-mode .cart-total-row {
  color: #e5e5e5;
}

body.dark-mode .cart-total-amount {
  color: #e5e5e5;
}

body.dark-mode .cart-overlay {
  background: rgba(0, 0, 0, 0.6);
}

body.dark-mode .menu-scroll-top {
  background: #1a1a1a;
  border-color: #333;
  color: #e5e5e5;
}

body.dark-mode .menu-scroll-top:hover {
  background: #e5e5e5;
  color: #0f0f0f;
  border-color: #e5e5e5;
}

body.dark-mode .fab-main {
  background: #252525 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .menu-featured-card {
  background: #1a1a1a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.dark-mode .menu-featured-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.dark-mode .menu-featured-body {
  background: #1a1a1a;
}

body.dark-mode .menu-featured-name {
  color: #e5e5e5;
}

body.dark-mode .menu-featured-meta {
  color: #999;
}

body.dark-mode .menu-featured-tag {
  background: #2a2a2a;
  color: #999;
}

body.dark-mode .menu-category-unavailable {
  background: #2a2212;
  border-color: #3d3318;
  color: #d4a43a;
}

/* Dark mode badge variants */
body.dark-mode .menu-badge-featured {
  background: #3d3318;
  color: #d4a43a;
}

body.dark-mode .menu-badge-bestseller {
  background: #2d2352;
  color: #a78bfa;
}

body.dark-mode .menu-badge-new {
  background: #0f3324;
  color: #4ade80;
}

body.dark-mode .menu-badge-limited {
  background: #3b1515;
  color: #f87171;
}

body.dark-mode .menu-badge-discount {
  background: #3b1530;
  color: #f472b6;
}

/* Dark mode skeleton */
body.dark-mode .skeleton-container {
  background: #0f0f0f;
  --sk-bg: #0f0f0f;
}

body.dark-mode .skeleton-hero {
  background: linear-gradient(135deg, #0c0a1d, #1a1744);
}

body.dark-mode .skeleton-search,
body.dark-mode .skeleton-pill,
body.dark-mode .skeleton-badge-sm,
body.dark-mode .skeleton-img-sm {
  background: #1a1a1a;
}

body.dark-mode .skeleton-card {
  background: #1a1a1a;
  border-color: #2a2a2a;
}

body.dark-mode .skeleton-item {
  border-bottom-color: #2a2a2a;
}

body.dark-mode .skeleton-search::after,
body.dark-mode .skeleton-pill::after,
body.dark-mode .skeleton-badge-sm::after,
body.dark-mode .skeleton-img-sm::after,
body.dark-mode .skeleton-cards .skeleton-line::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
}

body.dark-mode .skeleton-cards .skeleton-line {
  background: #252525;
}

/* Dark mode language dropdown */
body.dark-mode .lang-currency-dropdown {
  background: #1a1a1a;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body.dark-mode .lcd-title {
  color: #666;
}

body.dark-mode .lcd-divider {
  background: #2a2a2a;
}

body.dark-mode .lcd-option {
  background: #1a1a1a;
  border-color: #2a2a2a;
  color: #999;
}

body.dark-mode .lcd-option:hover {
  background: #252525;
  border-color: #333;
}

body.dark-mode .lcd-option.active {
  background: #4338ca;
  color: white;
  border-color: #4338ca;
}

body.dark-mode .share-toast {
  background: #e5e5e5;
  color: #0f0f0f;
}

/* === RTL Support === */
html[dir="rtl"] .menu-hero-action-left {
  left: auto;
  right: 0.75rem;
}

html[dir="rtl"] .menu-hero-action-right {
  right: auto;
  left: 0.75rem;
}

html[dir="rtl"] .lang-currency-dropdown {
  right: auto;
  left: 0;
}

html[dir="rtl"] .menu-search-icon {
  left: auto;
  right: 1rem;
}

html[dir="rtl"] #menu-search-input {
  padding-left: 2.75rem;
  padding-right: 3rem;
}

html[dir="rtl"] .menu-search-clear {
  margin-right: auto;
  margin-left: 0;
}

html[dir="rtl"] .menu-item-cart-action {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .cart-drawer-item-subtotal {
  margin-left: 0;
  margin-right: 0.5rem;
}

html[dir="rtl"] .menu-category-nav-wrap::before {
  left: auto;
  right: 0;
  background: linear-gradient(270deg, var(--cat-fade-color, #fafaf9) 30%, transparent) !important;
}

html[dir="rtl"] .menu-category-nav-wrap::after {
  right: auto;
  left: 0;
  background: linear-gradient(90deg, var(--cat-fade-color, #fafaf9) 30%, transparent) !important;
}

html[dir="rtl"] .scroll-progress-bar {
  transform-origin: right;
}

/* ============================================
   Google Review Prompt Modal
   ============================================ */

.review-prompt {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  justify-content: center;
  padding: 0 1rem 1rem;
  pointer-events: none;
  animation: reviewSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.review-prompt.hidden {
  display: none;
}

@keyframes reviewSlideUp {
  from {
    transform: translateY(120%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.review-prompt-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.12), 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 1.5rem 1.5rem 1.25rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  pointer-events: all;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.review-prompt-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #f5f5f4;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #78716c;
  transition: all 0.2s;
  pointer-events: auto;
  z-index: 10;
}

.review-prompt-close:hover {
  background: #e7e5e4;
  color: #1c1917;
}

.review-prompt-emoji {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.review-prompt-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1c1917;
  margin: 0 0 0.3rem;
}

.review-prompt-sub {
  font-size: 0.85rem;
  color: #78716c;
  margin: 0 0 1rem;
  line-height: 1.5;
}

/* Star Rating */
.review-stars {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.review-star {
  background: none;
  border: none;
  font-size: 2.25rem;
  color: #d1d5db;
  cursor: pointer;
  padding: 0.1rem;
  line-height: 1;
  transition: color 0.15s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.review-star:hover,
.review-star.hovered,
.review-star.selected {
  color: #f59e0b;
  transform: scale(1.25);
}

/* Google Review Button */
.review-google-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
  margin: 0.75rem 0 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  width: 100%;
  justify-content: center;
}

.review-google-btn:hover {
  border-color: #4285F4;
  box-shadow: 0 4px 16px rgba(66, 133, 244, 0.2);
  transform: translateY(-1px);
}

/* Skip button */
.review-skip-btn {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.15s;
}

.review-skip-btn:hover {
  color: #6b7280;
}

/* Feedback textarea */
.review-feedback-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: 'Inter', system-ui, sans-serif;
  resize: vertical;
  margin: 0.5rem 0 0.75rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
  color: #1c1917;
}

.review-feedback-textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Submit button */
.review-submit-btn {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.review-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.review-feedback-success {
  color: #16a34a;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #f0fdf4;
  border-radius: 8px;
}

/* Dark mode */
.dark-mode .review-prompt-card {
  background: #1e1b2e;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.4), 0 4px 24px rgba(0, 0, 0, 0.3);
}

.dark-mode .review-prompt-title {
  color: #f1f5f9;
}

.dark-mode .review-prompt-sub {
  color: #94a3b8;
}

.dark-mode .review-prompt-close {
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.dark-mode .review-prompt-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
}

.dark-mode .review-google-btn {
  background: #2d2b3d;
  border-color: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

.dark-mode .review-google-btn:hover {
  border-color: #4285F4;
}

.dark-mode .review-feedback-textarea {
  background: #2d2b3d;
  border-color: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

.dark-mode .review-skip-btn {
  color: #64748b;
}

/* ── Sample Review Suggestion ───────────────────────────────── */
.review-sample-wrap {
  margin: 0.75rem 0 0.25rem;
  text-align: left;
}

.review-sample-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.review-sample-box {
  position: relative;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.7rem 2.8rem 0.7rem 0.85rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.review-sample-box.edited {
  border-color: #16a34a;
  background: #f0fdf4;
}

.review-sample-text {
  font-size: 0.82rem;
  color: #374151;
  line-height: 1.55;
  margin: 0;
  font-style: italic;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-family: inherit;
  padding: 0;
  min-height: 3.8rem;
}

.review-copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 7px;
  padding: 0.3rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6366f1;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.review-copy-btn:hover {
  background: #f0f0ff;
  border-color: #6366f1;
}

.review-copy-btn.copied {
  color: #16a34a;
  border-color: #16a34a;
  background: #f0fdf4;
}

.review-refresh-btn {
  background: none;
  border: none;
  color: #6366f1;
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  margin-left: auto;
}

.review-refresh-btn:hover {
  background: #ede9fe;
  color: #4f46e5;
}

/* Edit status bar */
.review-edit-status {
  font-size: 0.73rem;
  margin-top: 0.35rem;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  line-height: 1.45;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.review-edit-status.unedited {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.review-edit-status.edited {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Dark mode */
.dark-mode .review-sample-box {
  background: #1a1828;
  border-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .review-sample-box.edited {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.04);
}

.dark-mode .review-sample-text {
  color: #94a3b8;
}

.dark-mode .review-copy-btn {
  background: #2d2b3d;
  border-color: rgba(255, 255, 255, 0.1);
  color: #818cf8;
}

.dark-mode .review-copy-btn:hover {
  background: #312e4a;
  border-color: #818cf8;
}

.dark-mode .review-copy-btn.copied {
  color: #4ade80;
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.06);
}

.dark-mode .review-edit-status.unedited {
  background: rgba(251, 191, 36, 0.08);
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.2);
}

.dark-mode .review-edit-status.edited {
  background: rgba(74, 222, 128, 0.06);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.2);
}

/* ============================================
   LOCATION MODAL — Glassmorphic Curved Sheet
   ============================================ */

.loc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loc-modal-backdrop.loc-modal--visible {
  visibility: visible;
  pointer-events: auto;
}

.loc-modal-backdrop.loc-modal--open {
  opacity: 1;
}

.loc-modal-panel {
  width: 100%;
  max-width: 480px;
  background: rgba(10, 15, 35, 0.55);
  backdrop-filter: blur(36px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 4px 16px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: scale(0.92) translateY(8px);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
  opacity: 0;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.loc-modal-backdrop.loc-modal--open .loc-modal-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Drag handle — hidden for centered modal */
.loc-modal-panel::before {
  display: none;
}

/* Header */
.loc-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 10px;
  flex-shrink: 0;
}

.loc-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.loc-modal-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 2px;
  line-height: 1.2;
}

.loc-modal-subtitle {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  font-weight: 500;
}

.loc-modal-header>div:first-of-type+div {
  flex: 1;
  min-width: 0;
}

.loc-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.loc-modal-close:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* Full address text */
.loc-modal-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 10px 20px 14px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* Map embed */
.loc-modal-map-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 220px;
}

.loc-modal-map {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: none;
  display: block;
}

/* Loading shimmer for map */
.loc-modal-map-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f5f5f4 25%, #ede9e7 50%, #f5f5f4 75%);
  background-size: 200% 100%;
  animation: locMapShimmer 1.5s infinite;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.loc-modal-map-wrap.map-loaded::after {
  opacity: 0;
}

@keyframes locMapShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Actions row */
.loc-modal-actions {
  display: flex;
  gap: 10px;
  padding: 14px 20px 16px;
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: flex-start;
}

.loc-modal-btn {
  flex: 0 0 auto;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 22px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

/* Primary button grows to fill space on mobile */
.loc-modal-btn--primary {
  flex: 1 1 auto;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.loc-modal-btn--primary:hover {
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
  transform: translateY(-1px);
}

/* Ghost (Close) stays compact, sized to text */
.loc-modal-btn--ghost {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.loc-modal-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* === Dark mode === */
body.dark-mode .loc-modal-panel {
  background: rgba(28, 25, 23, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .loc-modal-name {
  color: #f5f5f4;
}

body.dark-mode .loc-modal-subtitle {
  color: #a8a29e;
}

body.dark-mode .loc-modal-close {
  background: rgba(255, 255, 255, 0.1);
  color: #a8a29e;
}

body.dark-mode .loc-modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #f5f5f4;
}

body.dark-mode .loc-modal-address {
  color: #d6d3d1;
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .loc-modal-actions {
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .loc-modal-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #a8a29e;
}

body.dark-mode .loc-modal-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #f5f5f4;
}

body.dark-mode .loc-modal-panel::before {
  background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .loc-modal-map-wrap::after {
  background: linear-gradient(90deg, #1c1917 25%, #292524 50%, #1c1917 75%);
  background-size: 200% 100%;
}

/* ============================================
   LOCATION MODAL — Responsive Breakpoints
   ============================================ */

/* ── Touch: enlarge close button hit area ── */
.loc-modal-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}

/* ── Very small phones (< 360px) ── */
@media (max-width: 359px) {
  .loc-modal-header {
    padding: 10px 14px 8px;
    gap: 10px;
  }

  .loc-modal-icon {
    width: 34px;
    height: 34px;
  }

  .loc-modal-icon svg {
    width: 15px;
    height: 15px;
  }

  .loc-modal-name {
    font-size: 0.95rem;
  }

  .loc-modal-subtitle {
    font-size: 0.72rem;
  }

  .loc-modal-address {
    padding: 8px 14px 10px;
    font-size: 0.82rem;
  }

  .loc-modal-actions {
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0));
    gap: 8px;
  }

  .loc-modal-btn {
    padding: 11px 16px;
    font-size: 0.82rem;
  }
}

/* ── Landscape / short screens (height < 520px) ── */
@media (max-height: 520px) {
  .loc-modal-panel {
    max-height: 96vh;
  }

  .loc-modal-panel::before {
    margin: 8px auto 0;
  }

  .loc-modal-header {
    padding: 8px 18px 6px;
  }

  .loc-modal-icon {
    width: 34px;
    height: 34px;
  }

  .loc-modal-address {
    padding: 6px 18px 8px;
    font-size: 0.82rem;
  }

  .loc-modal-map-wrap {
    min-height: 120px;
  }

  .loc-modal-map {
    min-height: 120px;
  }

  .loc-modal-actions {
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0));
  }
}

/* ── Tablets & small desktops (≥ 600px) — centered dialog ── */
@media (min-width: 600px) {
  .loc-modal-backdrop {
    align-items: center;
    padding: 24px;
  }

  .loc-modal-panel {
    width: 100%;
    max-width: 480px;
    max-height: 82vh;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transform: translateY(20px) scale(0.97);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22), 0 4px 24px rgba(0, 0, 0, 0.10);
  }

  .loc-modal-backdrop.loc-modal--open .loc-modal-panel {
    transform: translateY(0) scale(1);
  }

  /* Hide drag handle on non-touch layouts */
  .loc-modal-panel::before {
    display: none;
  }

  .loc-modal-map-wrap {
    min-height: 260px;
  }

  .loc-modal-map {
    min-height: 260px;
  }

  .loc-modal-header {
    padding: 18px 22px 12px;
  }

  .loc-modal-address {
    padding: 12px 22px 14px;
  }

  .loc-modal-actions {
    padding: 14px 22px 18px;
  }
}

/* ── Large desktops (≥ 900px) ── */
@media (min-width: 900px) {
  .loc-modal-panel {
    max-width: 540px;
    max-height: 78vh;
  }

  .loc-modal-name {
    font-size: 1.2rem;
  }

  .loc-modal-map-wrap {
    min-height: 300px;
  }

  .loc-modal-map {
    min-height: 300px;
  }

  .loc-modal-btn {
    padding: 13px 26px;
    font-size: 0.92rem;
  }

  .loc-modal-btn--primary:hover {
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.5);
    transform: translateY(-2px);
  }
}

/* ── Tablet+: primary button reverts to content width ── */
@media (min-width: 600px) {
  .loc-modal-btn--primary {
    flex: 0 0 auto;
    width: fit-content;
  }
}

/* ── Dark mode overrides for tablet+ dialog ── */
@media (min-width: 600px) {
  body.dark-mode .loc-modal-panel {
    border-color: rgba(255, 255, 255, 0.08);
  }
}

/* ── FAB Offers Button ─────────────────────────────────────────────────────── */
.fab-offers {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  position: relative;
  border: none;
  cursor: pointer;
}

/* Red count badge on the offers FAB item */
.fab-offers-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  border-radius: 99px;
  background: #dc2626;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  box-shadow: 0 0 0 2px #fff;
  pointer-events: none;
}

/* Hot-dot on the FAB main button when offers exist */
.fab-main.has-offers::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #fff;
  animation: offers-dot-pulse 1.8s ease-in-out infinite;
}

@keyframes offers-dot-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.7;
  }
}

@keyframes fab-wiggle {
  0% {
    transform: rotate(0deg);
  }

  15% {
    transform: rotate(-12deg);
  }

  30% {
    transform: rotate(10deg);
  }

  45% {
    transform: rotate(-8deg);
  }

  60% {
    transform: rotate(6deg);
  }

  75% {
    transform: rotate(-4deg);
  }

  90% {
    transform: rotate(2deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.fab-main.fab-wiggle {
  animation: fab-wiggle 0.6s ease-in-out, outline-hue-spin 2.5s linear infinite;
}

/* ── FAB Inline Offers Card (inside FAB actions) ──────────────────────────── */
.fab-inline-offers {
  width: 260px;
  max-width: calc(100vw - 72px);
  max-height: 340px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  align-self: flex-end;
}

.fio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px 7px;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  flex-shrink: 0;
}

.fio-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.fio-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 99px;
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
}

.fio-body {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  padding: 4px 0 6px;
}

/* Strip overrides inside inline FAB card */
.fab-inline-offers .ofp-section-label {
  font-size: 0.65rem;
  padding: 4px 10px 2px;
}

.fab-inline-offers .combo-strips-wrap {
  overflow-x: hidden !important;
  border-radius: 0 !important;
}

.fab-inline-offers .combo-strip {
  border-radius: 0;
  border-left: none;
  border-right: none;
  margin: 0;
}

.fab-inline-offers .combo-strip-header {
  padding: 7px 10px;
}

.fab-inline-offers .combo-strip-name {
  font-size: 0.78rem;
}

.fab-inline-offers .combo-strip-label {
  font-size: 0.58rem;
  padding: 1px 5px;
}

.fab-inline-offers .combo-strip-price {
  font-size: 0.82rem;
}

.fab-inline-offers .combo-strip-original-price {
  font-size: 0.7rem;
}

/* Dark mode */
body.dark-mode .fab-inline-offers {
  background: #1f2937;
}

body.dark-mode .fio-header {
  background: linear-gradient(135deg, #b45309 0%, #b91c1c 100%);
}

/* ── FAB Offers Panel (bottom sheet) ──────────────────────────────────────── */
.ofp-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 9200;
  transition: background 0.3s;
}

.ofp-backdrop.ofp-backdrop-visible {
  background: rgba(0, 0, 0, 0.35);
}

.offers-fab-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9300;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.offers-fab-panel.ofp-open {
  transform: translateY(0);
}

.ofp-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #e5e7eb;
  margin: 10px auto 0;
  flex-shrink: 0;
}

.ofp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 10px;
  flex-shrink: 0;
  border-bottom: 1px solid #f3f4f6;
}

.ofp-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.01em;
}

.ofp-close {
  background: #f3f4f6;
  border: none;
  color: #374151;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.ofp-close:hover {
  background: #e5e7eb;
}

.ofp-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0 24px;
  flex: 1;
}

.ofp-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 6px 14px 4px;
}

.ofp-strips {
  overflow-x: hidden !important;
  border-radius: 0 !important;
}

.ofp-strips .combo-strip {
  border-radius: 0;
  border-left: none;
  border-right: none;
}

body.dark-mode .offers-fab-panel {
  background: #1f2937;
}

body.dark-mode .ofp-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .ofp-title {
  color: #f9fafb;
}

body.dark-mode .ofp-close {
  background: #374151;
  color: #d1d5db;
}

body.dark-mode .ofp-close:hover {
  background: #4b5563;
}

body.dark-mode .ofp-section-label {
  color: #9ca3af;
}

/* ── Discount Bottom Panel ─────────────────────────────────────────────────── */
.discount-bottom-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 480;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 32px rgba(190, 24, 93, 0.18), 0 -2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: all;
  overflow: hidden;
}

.discount-bottom-panel.dbpanel-open {
  transform: translateY(0);
}

.dbpanel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem 0.5rem;
  background: linear-gradient(135deg, #be185d 0%, #9d174d 100%);
}

.dbpanel-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fce7f3;
  letter-spacing: 0.04em;
}

.dbpanel-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.2s;
  flex-shrink: 0;
}

.dbpanel-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* strip inside panel — remove outer margin/padding */
.discount-bottom-panel .combo-carousel-outer {
  margin: 0;
  border-radius: 0;
}

.discount-bottom-panel .combo-strips-wrap {
  border-radius: 0;
}

.discount-bottom-panel .discount-strip {
  border-radius: 0;
}

/* ── Empty Cart Nudge ─────────────────────────────────────────────────────── */
.empty-cart-nudge {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 490;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #1c1917;
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(16px) scale(0.9);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.empty-cart-nudge.ecn-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  animation: ecnWiggle 0.5s 0.4s ease both;
}

.ecn-emoji {
  font-size: 1.1rem;
  line-height: 1;
}

.ecn-text {
  white-space: nowrap;
}

@keyframes ecnWiggle {
  0% {
    rotate: 0deg;
  }

  20% {
    rotate: -6deg;
  }

  40% {
    rotate: 6deg;
  }

  60% {
    rotate: -4deg;
  }

  80% {
    rotate: 3deg;
  }

  100% {
    rotate: 0deg;
  }
}

/* ── YouTube Shorts Story Bubble ─────────────────────────────────────────── */
.yt-story-bubble {
  position: fixed;
  bottom: 24px;
  left: 16px;
  z-index: 480;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: scale(0.6) translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), bottom 0.3s ease;
}

.yt-story-bubble.ytb-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.yt-story-bubble.cart-active {
  bottom: 90px;
}

.yt-story-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(225deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.yt-story-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  position: relative;
  background: #000;
}

.yt-story-inner iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 160px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: none;
}

.yt-story-close {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
  padding: 0;
}

.yt-story-close:hover {
  background: #e53935;
}

.yt-story-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* ── Ramadan Times Widget ─────────────────────────────────────────────────── */
.ramadan-widget {
  display: flex;
  align-items: center;
  gap: 0;
}

/* moon icon button — always visible */
.ramadan-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  border: 2px solid rgba(167, 139, 250, 0.4);
  box-shadow: 0 4px 18px rgba(79, 70, 229, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4b5fd;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.ramadan-icon-btn:hover,
.ramadan-icon-btn:focus-visible {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.6);
  outline: none;
}

.ramadan-icon-btn svg {
  transition: transform 0.4s ease;
}

/* strip — slides out to the right when expanded */
.ramadan-strip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  border: 1.5px solid rgba(167, 139, 250, 0.35);
  border-radius: 100px;
  padding: 0.45rem 0.7rem 0.45rem 0.9rem;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
  overflow: hidden;
  /* collapsed state */
  max-width: 0;
  opacity: 0;
  padding-left: 0;
  padding-right: 0;
  border-width: 0;
  pointer-events: none;
  transition:
    max-width 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.28s ease,
    padding 0.32s ease,
    border-width 0.32s ease;
  white-space: nowrap;
  margin-left: 0.45rem;
}

.ramadan-strip.ramadan-strip--open {
  max-width: 240px;
  opacity: 1;
  padding: 0.45rem 0.7rem 0.45rem 0.9rem;
  border-width: 1.5px;
  pointer-events: auto;
}

.ramadan-strip-times {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ramadan-time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.ramadan-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(196, 181, 253, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ramadan-time {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e9d5ff;
  letter-spacing: 0.03em;
}

.ramadan-strip-divider {
  width: 1px;
  height: 28px;
  background: rgba(167, 139, 250, 0.3);
  flex-shrink: 0;
}

.ramadan-strip-close {
  background: none;
  border: none;
  color: rgba(196, 181, 253, 0.6);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0.1rem;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.ramadan-strip-close:hover {
  color: #e9d5ff;
}

/* dark-mode adjustments (already dark by default — just keep consistent) */
body.dark-mode .ramadan-icon-btn {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
}

body.dark-mode .ramadan-strip {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
}

@media (max-width: 479px) {
  .ramadan-widget {
    bottom: 80px;
    left: 0.75rem;
  }

  .ramadan-icon-btn {
    width: 42px;
    height: 42px;
  }

  .ramadan-time {
    font-size: 0.88rem;
  }

  .ramadan-strip.ramadan-strip--open {
    max-width: 220px;
  }
}

/* ──────────────────────────────────────────────────────────────────────────── */