/* ══════════════════════════════════════════
   CSS Variables & Theme
   ══════════════════════════════════════════ */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #fdf6ee;
  --bg2: #fff8f2;
  --card-bg: #ffffff;
  --text: #1a1109;
  --text-muted: #7a6a58;
  --accent: #bc4410;
  --accent2: #f0a500;
  --accent-hover: #96350a;
  --border: #e8d9c8;
  --navbar-bg: #fff8f2;
  --hero-overlay: rgba(10, 5, 0, 0.58);
  --shadow: 0 4px 24px rgba(180, 100, 30, 0.1);
  --shadow-hover: 0 12px 36px rgba(180, 100, 30, 0.18);
  --filter-bg: #fff3e6;
  --filter-active-bg: #d4521a;
  --filter-active-text: #ffffff;
  --section-bg: #fdf6ee;
}

body.dark-mode {
  --bg: #130e08;
  --bg2: #1c1510;
  --card-bg: #1f1912;
  --text: #f5ede0;
  --text-muted: #a0917f;
  --accent: #d4521a;
  --accent2: #f0a500;
  --accent-hover: #bc4410;
  --border: #2e2418;
  --navbar-bg: #1a130b;
  --hero-overlay: rgba(0, 0, 0, 0.72);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.55);
  --filter-bg: #2a1f12;
  --filter-active-bg: #e8723a;
  --filter-active-text: #ffffff;
  --section-bg: #130e08;
}

/* Dark Mode Overrides for Global UI Components */
body.dark-mode .card {
  background-color: var(--card-bg) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

body.dark-mode .card-title,
body.dark-mode .card-text,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode .h1,
body.dark-mode .h2,
body.dark-mode .h3,
body.dark-mode .h4,
body.dark-mode .h5,
body.dark-mode .h6 {
  color: var(--text) !important;
}

body.dark-mode .table {
  color: var(--text) !important;
  border-color: var(--border) !important;
}

body.dark-mode .table th,
body.dark-mode .table td {
  background-color: var(--card-bg) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

body.dark-mode .table-light,
body.dark-mode .table-header {
  background-color: var(--bg2) !important;
  color: var(--text) !important;
}

body.dark-mode .table-header th {
  background-color: var(--bg2) !important;
  color: var(--text) !important;
}

body.dark-mode hr {
  border-color: var(--border) !important;
  opacity: 0.3;
}

body.dark-mode .text-dark,
body.dark-mode .summary-line.total *,
body.dark-mode #summary-total,
body.dark-mode #cart-total,
body.dark-mode #co-total,
body.dark-mode #co-tax,
body.dark-mode .product-subtotal,
body.dark-mode .product-subtotal *,
body.dark-mode .cart-page-section a,
body.dark-mode .cart-section a,
body.dark-mode .cart-layout a,
body.dark-mode .cart-modern-table a,
body.dark-mode .cart-desktop-table a,
body.dark-mode #cart-table a,
body.dark-mode .cart-item-name a,
body.dark-mode .cart-total-amount {
  color: #ffffff !important;
}

.text-accent {
  color: var(--accent);
}

body.dark-mode .btn-outline-dark,
body.dark-mode .btn-outline-secondary {
  border-color: var(--border) !important;
  color: var(--text) !important;
}

body.dark-mode .btn-outline-dark:hover,
body.dark-mode .btn-outline-secondary:hover {
  background-color: var(--border) !important;
  color: var(--text) !important;
}

body.dark-mode .btn-dark {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

body.dark-mode .btn-dark:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-outline-secondary,
.btn-outline-dark {
  border-color: var(--border) !important;
  color: var(--text) !important;
  background-color: transparent !important;
}

.btn-outline-secondary:hover,
.btn-outline-dark:hover {
  background-color: var(--border) !important;
  color: var(--text) !important;
}

.btn-dark {
  background-color: #1a1109;
  border-color: #1a1109;
  color: #fff;
}

.btn-dark:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

body.dark-mode .checkout-card,
body.dark-mode .address-card,
body.dark-mode .payment-option,
body.dark-mode .theme-input {
  background-color: var(--card-bg) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

body.dark-mode .address-card.selected,
body.dark-mode .payment-option.selected {
  border-color: var(--accent) !important;
  background-color: var(--bg2) !important;
}

body.dark-mode .cart-qty-pill,
body.dark-mode .cart-qty-pill .btn-qty,
body.dark-mode .cart-qty-pill input,
body.dark-mode .cart-qty-input,
body.dark-mode .cart-mobile-qty,
body.dark-mode .cart-mobile-qty *,
body.dark-mode .cart-mobile-qty input,
body.dark-mode .cart-mobile-qty button {
  background-color: var(--bg2) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

body.dark-mode .payment-option-title,
body.dark-mode .payment-option-sub,
body.dark-mode .payment-option i {
  color: var(--text) !important;
}

body.dark-mode .payment-option .pm-icon {
  background-color: var(--bg2) !important;
  color: var(--text) !important;
}

body.dark-mode .payment-option:hover {
  background-color: var(--bg2) !important;
}

body.dark-mode .theme-input::placeholder {
  color: var(--text-muted) !important;
  opacity: 0.7;
}

body.dark-mode .payment-option input[type="radio"] {
  accent-color: var(--accent) !important;
}

body.dark-mode .checkout-card h3 {
  color: #ffffff !important;
}

/* Popover Dark Mode */
body.dark-mode .popover {
  background-color: var(--card-bg) !important;
  border-color: var(--border) !important;
}

body.dark-mode .popover-header {
  background-color: var(--bg2) !important;
  color: var(--text) !important;
  border-bottom-color: var(--border) !important;
}

body.dark-mode .popover-body {
  color: var(--text) !important;
  background-color: transparent !important;
}

body.dark-mode .bs-popover-auto[data-popper-placement^="left"]>.popover-arrow::after,
body.dark-mode .bs-popover-start>.popover-arrow::after {
  border-left-color: var(--card-bg) !important;
}

body.dark-mode .bs-popover-auto[data-popper-placement^="right"]>.popover-arrow::after,
body.dark-mode .bs-popover-end>.popover-arrow::after {
  border-right-color: var(--card-bg) !important;
}

body.dark-mode .bs-popover-auto[data-popper-placement^="top"]>.popover-arrow::after,
body.dark-mode .bs-popover-top>.popover-arrow::after {
  border-top-color: var(--card-bg) !important;
}

body.dark-mode .bs-popover-auto[data-popper-placement^="bottom"]>.popover-arrow::after,
body.dark-mode .bs-popover-bottom>.popover-arrow::after {
  border-bottom-color: var(--card-bg) !important;
}

body.dark-mode .text-muted {
  color: var(--text-muted) !important;
}

/* ── Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  transition:
    background-color 0.35s,
    color 0.35s;
  margin: 0;
  overflow-x: hidden;
}

h1,
h2,
h3,
.navbar-brand {
  font-family: "Playfair Display", Georgia, serif;
}

/* ══════════════════════════════════════════
   Navbar
   ══════════════════════════════════════════ */
.navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--navbar-bg) !important;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.35s;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  z-index: 1050;
}

body {
  padding-top: 72px;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent) !important;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

img.logo-dark {
  display: none !important;
}

body.dark-mode img.logo-dark {
  display: block !important;
}

body.dark-mode img.logo-light {
  display: none !important;
}

.nav-link {
  color: var(--text) !important;
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.2s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Theme Toggle - Icon only */
#themeToggle {
  border: 1.5px solid var(--border);
  background: var(--filter-bg);
  color: var(--accent);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s;
}

#themeToggle:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.08);
}

#themeToggle svg {
  transition: transform 0.3s ease;
}

#themeToggle:hover svg {
  transform: rotate(15deg);
}

#themeToggle .icon-moon {
  display: none;
}

#themeToggle .icon-sun {
  display: block;
}

body.dark-mode #themeToggle .icon-moon {
  display: block;
}

body.dark-mode #themeToggle .icon-sun {
  display: none;
}

/* --- Mobile Header Optimization --- */
@media (max-width: 576px) {
  .navbar {
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }



  .navbar-brand {
    font-size: 1.2rem !important;
    gap: 0.3rem !important;
  }

  .navbar-brand img {
    max-height: 40px !important;
  }

  .navbar-nav {
    gap: 0.4rem !important;
  }

  .nav-link {
    font-size: 0.85rem !important;
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
  }

  #themeToggle {
    width: 36px !important;
    height: 36px !important;
  }

  .cart-nav-link {
    font-size: 0.9rem !important;
  }

  .cart-count {
    font-size: 0.65rem !important;
    min-width: 16px !important;
    height: 16px !important;
    line-height: 16px !important;
  }

  body {
    padding-top: 64px !important;
  }
}

/* ══════════════════════════════════════════
   Hero Section
   ══════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* background: url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=1600&q=85') center/cover no-repeat; */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  transition: background 0.35s;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 720px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 1rem;
  display: block;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.hero-content .hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  opacity: 0.85;
  margin-bottom: 2.2rem;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

.btn-accent {
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-hover) 100%);
  color: #fff !important;
  border: none;
  border-radius: 50px;
  padding: 0.85rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.22s;
  box-shadow: 0 4px 20px rgba(188, 68, 16, 0.4);
  letter-spacing: 0.3px;
}

.btn-accent:hover {
  background: linear-gradient(135deg,
      var(--accent-hover) 0%,
      var(--accent) 100%);
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(188, 68, 16, 0.5);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50px;
  padding: 0.82rem 2.2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.22s;
  margin-left: 0.75rem;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: #fff;
}

/* ══════════════════════════════════════════
   Stats Strip (on hero page)
   ══════════════════════════════════════════ */
.stats-strip {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 1.6rem 0;
  transition: background 0.35s;
}

.stat-item {
  text-align: center;
  padding: 0 1rem;
}

.stat-number {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ══════════════════════════════════════════
   Carousel / Featured Dishes
   ══════════════════════════════════════════ */
.carousel-section {
  padding: 4rem 0 3rem;
  background: var(--bg2);
  transition: background 0.35s;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 0.4rem;
  display: block;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.carousel-item img {
  height: 420px;
  object-fit: cover;
  border-radius: 1.25rem;
}

.carousel-caption-custom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.2) 60%,
      transparent 100%);
  border-radius: 0 0 1.25rem 1.25rem;
  padding: 2.5rem 2rem 1.5rem;
  text-align: left;
  color: #fff;
}

.carousel-caption-custom .slide-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.4rem;
  display: block;
}

.carousel-caption-custom h5 {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.carousel-caption-custom p {
  font-size: 0.9rem;
  opacity: 0.88;
  margin: 0;
}

.carousel-control-prev,
.carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin: 0 0.5rem;
  opacity: 1;
}

/* ══════════════════════════════════════════
   Page Header (menu.html)
   ══════════════════════════════════════════ */
.page-header-bar {
  background: linear-gradient(135deg, var(--accent) 0%, #8b2500 100%);
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-header-bar::before {
  content: "🍛";
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8rem;
  opacity: 0.08;
  pointer-events: none;
}

.page-header-bar h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.page-header-bar p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  margin: 0;
}

/* ══════════════════════════════════════════
   Filter Bar — Rich redesign
   ══════════════════════════════════════════ */
.filter-panel {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  position: sticky;
  top: 64px;
  z-index: 100;
  transition: background 0.35s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Desktop: entire row scrolls as a single unified slider */
.filter-scroll-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

/* First row should never have top margin */
#category-filter-row {
  margin-top: 0;
}

.filter-scroll-row::-webkit-scrollbar {
  display: none;
}

.filter-row-2 {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.filter-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-right: 0.25rem;
  flex-shrink: 0;
}

.filter-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  margin: 0 0.75rem;
  flex-shrink: 0;
}

/* Category pill buttons */
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 10px !important;
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid var(--border) !important;
  background: var(--filter-bg) !important;
  color: var(--text-muted) !important;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.filter-btn:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: var(--bg2) !important;
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(212, 82, 26, 0.35);
  transform: translateY(-1px);
}

/* Tag toggle buttons (spicy, chef) */
.tag-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 10px;
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px dashed var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}

.tag-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  border-style: solid;
}

.tag-toggle.active {
  border-style: solid;
  border-color: var(--accent2);
  background: rgba(240, 165, 0, 0.12);
  color: var(--accent2);
}

body.dark-mode .tag-toggle.active {
  background: rgba(240, 165, 0, 0.18);
}

/* Results count */
.results-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: auto;
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   Dish Card — Compact, info left / image right
   ══════════════════════════════════════════ */
.menu-section {
  padding: 1.5rem 0 4rem;
}

.dish-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s,
    background 0.35s;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 100%;
}

.dish-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(212, 82, 26, 0.3);
}

/* Left: info */
.dish-card-body {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  gap: 0.5rem;
}

.dish-card-top {
  min-width: 0;
}

.dish-name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

.dish-name {
  font-family: "Playfair Display", serif;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dish-desc-short {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dish-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.dish-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.dish-tags {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

/* Veg / Non-Veg indicator — square with inner dot (FSSAI style) */
.veg-dot {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.veg-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: block;
}

.veg-dot.veg {
  border-color: #198754;
}

.veg-dot.veg::after {
  background: #198754;
}

.veg-dot.egg {
  border-color: #f0ad4e;
}

.veg-dot.egg::after {
  background: #f0ad4e;
}

.veg-dot.non-veg {
  border-color: #dc3545;
}

.veg-dot.non-veg::after {
  background: #dc3545;
}

.prep-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* Tags */
.tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  display: inline-block;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.tag-spicy {
  background: #fff0dc;
  color: #b84c00;
}

.tag-chef {
  background: #e8f8f5;
  color: #0d6e5d;
}

.tag-category {
  background: var(--filter-bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

body.dark-mode .tag-spicy {
  background: #3a1c00;
  color: #ffaa55;
}

body.dark-mode .tag-chef {
  background: #00261e;
  color: #2dd4bf;
}

body.dark-mode .tag-category {
  background: #2a1f12;
}

/* Right: square image */
.dish-card-img-wrap {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  align-self: center;
  margin: 0.6rem 0.6rem 0.6rem 0;
  border-radius: 0.65rem;
  overflow: hidden;
}

.dish-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.32s;
}

.dish-card:hover .dish-card-img-wrap img {
  transform: scale(1.08);
}

/* ── Premium Dish Badges ── */
.dish-badge-wrapper {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
  z-index: 100;
}

.badge-premium {
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform-origin: right;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dish-card:hover .badge-premium {
  transform: scale(1.05);
}

.badge-chef {
  background: linear-gradient(135deg, #f0a500 0%, #d48806 100%);
  color: #fff;
}

.badge-spicy {
  background: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%);
  color: #fff;
}

/* ── Custom Badge Icons ── */
.card-badge-item {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.card-badge-item:hover {
  transform: scale(1.15);
}

.card-badge-item.title-badge {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 8px;
  box-shadow: none;
  display: inline-flex;
}


.badge-featured-square {
  background-color: rgba(30, 116, 253, 0.15);
  color: #1e74fd;
  border: 1px solid rgba(30, 116, 253, 0.25);
}

.badge-hot-square {
  background-color: rgba(242, 45, 62, 0.15);
  color: #f22d3e;
  border: 1px solid rgba(242, 45, 62, 0.25);
}

.badge-trending-square {
  background-color: rgba(125, 62, 255, 0.15);
  color: #7d3eff;
  border: 1px solid rgba(125, 62, 255, 0.25);
}

.badge-recommended-square {
  background-color: rgba(26, 159, 93, 0.15);
  color: #1a9f5d;
  border: 1px solid rgba(26, 159, 93, 0.25);
}


/* ── No Results ── */
#no-results {
  color: var(--text-muted);
  text-align: center;
  padding: 4rem 0;
  display: none;
}

#no-results .no-res-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

/* ══════════════════════════════════════════
   Modal
   ══════════════════════════════════════════ */
.modal-content {
  background: var(--card-bg);
  color: var(--text);
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

.modal-title {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: 1.3rem;
}

body.dark-mode .btn-close {
  filter: invert(1);
}

#modal-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}

#modal-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

#modal-prep {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.6rem 0 0.4rem;
  font-weight: 500;
}

#modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.modal-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

/* ── Dish modal: fixed header + image, everything below scrolls ──
   Only the title bar and the image are pinned (flex: 0 0 auto). The body and the
   footer share one scroll region, so the description, price, tags, variants,
   add-ons and the qty + Add to Cart row all scroll together — the footer is not
   allowed to reserve its own height and squeeze the body. (The image must be a
   SIBLING of .modal-body, not a child, or it scrolls away with the content.)
   Scoped to #dishModal so the auth / address / coupon modals — which share the
   unscoped .modal-* rules above — are untouched. The homepage carousel opens
   this same modal, so it is covered too. */
#dishModal .modal-content {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

#dishModal .modal-header,
#dishModal .modal-media {
  flex: 0 0 auto;
}

#dishModal .modal-media {
  overflow: hidden;
  background: var(--filter-bg);
}

/* The body and footer are separate elements, so they cannot share a single
   scrollbar on their own. Collapsing both into a flex column that scrolls as
   one keeps them in document order while letting the whole lot move together. */
#dishModal .modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

#dishModal .modal-scroll::-webkit-scrollbar {
  width: 4px;
}

#dishModal .modal-scroll::-webkit-scrollbar-track {
  background: transparent;
}

#dishModal .modal-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

#dishModal .modal-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Short viewports: a full 4:3 image would eat the whole 90vh and leave the
   content with nothing to show, so cap it and let the rest keep its room. */
@media (max-height: 700px) {
  #dishModal .modal-media {
    max-height: 180px;
  }
}

/* ══════════════════════════════════════════
   Footer
   ══════════════════════════════════════════ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  transition: background 0.35s;
}

footer .footer-brand {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent) !important;
  text-decoration: none;
  transition: opacity 0.2s;
}

footer .footer-brand:hover {
  opacity: 0.85;
}

footer span.heart {
  color: var(--accent);
}

/* ══════════════════════════════════════════
   Category Section Headings
   ══════════════════════════════════════════ */
.category-section {
  margin-bottom: 2.5rem;
}

.category-heading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}

/* Accent line on the left of the heading */
.category-heading::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.category-heading-emoji {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.category-heading-emoji .category-icon-img {
  width: 1.6rem;
  height: 1.6rem;
  object-fit: contain;
  display: block;
}

.filter-btn .category-icon-img {
  width: 1.1em;
  height: 1.1em;
  object-fit: contain;
  display: inline-block;
  vertical-align: -0.2em;
  margin-right: 2px;
}

.category-heading-title {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.category-heading-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ══════════════════════════════════════════
   Cart Badge (navbar)
   ══════════════════════════════════════════ */
.cart-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--border);
  background: var(--filter-bg);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.1rem;
  transition: all 0.22s;
}

.cart-nav-link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.08);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid var(--navbar-bg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ══════════════════════════════════════════
   Qty Controls + Add to Cart (dish cards)
   ══════════════════════════════════════════ */
.qty-cart-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
  flex-wrap: nowrap;
}

@media (min-width: 641px) {

  .qty-cart-row .qty-control,
  .qty-cart-row .btn-add-cart,
  .qty-cart-row>span {
    height: 34px;
    min-height: 34px;
    box-sizing: border-box;
  }

  .qty-cart-row .btn-add-cart,
  .qty-cart-row>span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6.75rem;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1;
  }

  .qty-cart-row .qty-control button,
  .qty-cart-row .qty-control input {
    height: 100%;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1;
  }

  .qty-cart-row .qty-control button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    padding-left: 0;
    padding-right: 0;
    font-size: 0.95rem;
  }

  .qty-cart-row .qty-control input {
    width: 2.25rem;
    min-width: 2.25rem;
    max-width: 2.25rem;
    padding-left: 0;
    padding-right: 0;
  }
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  background: var(--filter-bg);
  flex: 0 0 auto;
  width: max-content;
}

.qty-control button {
  background: none;
  border: none;
  padding: 0.18rem 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--accent);
  line-height: 1.5;
  transition: background 0.15s;
}

.qty-control button:hover {
  background: rgba(212, 82, 26, 0.1);
}

.qty-control input {
  width: 2.9rem;
  min-width: 2.9rem;
  max-width: 2.9rem;
  flex-shrink: 0;
  text-align: center;
  border: none;
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  pointer-events: none;
}

.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.qty-control input {
  -moz-appearance: textfield;
  appearance: textfield;
}

.btn-add-cart {
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-hover) 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 8px rgba(188, 68, 16, 0.2);
  flex: 1 1 auto;
  min-width: 0;
}

.btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(188, 68, 16, 0.35);
  background: linear-gradient(135deg,
      var(--accent-hover) 0%,
      var(--accent) 100%);
}

.btn-add-cart.btn-added {
  background: #2e9e5b;
}

/* In-cart state stepper */
.qty-control-incart {
  border-color: #2e9e5b;
  background: rgba(46, 158, 91, 0.08);
}

.qty-control-incart button {
  color: #2e9e5b;
}

body.dark-mode .qty-control-incart {
  background: rgba(46, 158, 91, 0.15);
}

.in-cart-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

#dishModal .in-cart-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
}

/* ── Floating Cart FAB (bottom-right, all screen sizes) ── */
.cart-fab-wrap {
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  pointer-events: none;
  /* children re-enable */
}

/* Popover bubble above FAB */
.cart-fab-popover {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0.65rem 0.95rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  font-size: 0.82rem;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
  position: relative;
}

/* tail */
.cart-fab-popover::after {
  content: "";
  position: absolute;
  bottom: -7px;
  right: 22px;
  width: 13px;
  height: 13px;
  background: var(--card-bg);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}

.cart-fab-popover.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: none;
}

.cart-fab-popover-name {
  font-weight: 700;
  color: var(--text);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;
}

.cart-fab-popover-meta {
  color: var(--text-muted);
  margin-left: 0.3rem;
}

/* The FAB button itself */
.mobile-cart-fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-hover) 100%);
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 6px 22px rgba(212, 82, 26, 0.45);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: all;
  position: relative;
  flex-shrink: 0;
}

.mobile-cart-fab:hover {
  color: #fff;
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 30px rgba(212, 82, 26, 0.55);
}

.mobile-cart-fab.fab-bump {
  animation: fabBump 0.35s ease;
}

@keyframes fabBump {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.22);
  }

  70% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
  }
}

/* Badge on FAB */
.fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #fff;
  color: var(--accent);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
  line-height: 1;
}

/* ══════════════════════════════════════════
   Mini Cart Bar
   ══════════════════════════════════════════ */
/* Order tracker expand */
.order-tracker-pill {
  flex-direction: column;
  align-items: stretch;
  border-radius: 18px;
  padding: 0;
  gap: 0;
  width: 380px;
  min-width: 380px;
  max-width: 380px;
  transition: border-radius 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-tracker-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.6rem 0.85rem;
  box-sizing: border-box;
  width: 100%
}

.order-tracker-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.order-tracker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.order-tracker-order-no {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.3px;
}

.order-tracker-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  letter-spacing: 0.2px;
  text-transform: capitalize;
}

.order-tracker-body.open {
  max-height: 260px;
  overflow-y: auto;
}

.order-tracker-body::-webkit-scrollbar {
  width: 3px;
}

.order-tracker-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.order-tracker-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 1.25rem;
}

.order-tracker-expand-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: #fff;
  padding: 0;
  line-height: 1;
  transition: background 0.18s;
}

.order-tracker-expand-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.order-tracker-items {
  padding: 6px 0;
}

.order-tracker-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  padding: 0.5rem 1.25rem 0.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  box-sizing: border-box;
}

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

.order-tracker-item-img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

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

.order-tracker-item-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  line-height: 1.3;
}

.order-tracker-item-meta {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.72);
  display: block;
  line-height: 1.3;
}

.kitchen-status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  flex-shrink: 0;
  white-space: nowrap;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.ks-pending {
  background: #f0f0f0;
  color: #666;
}

.ks-cooking {
  background: #fff3cd;
  color: #996300;
  animation: ks-pulse 1.4s ease-in-out infinite;
}

.ks-ready {
  background: #d4edda;
  color: #155724;
}

.ks-cancelled {
  background: #f8d7da;
  color: #721c24;
}

.mini-cart-bar .ks-pending {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
}

.mini-cart-bar .ks-cooking {
  background: rgba(255, 160, 0, 0.3);
  color: #ffd066;
}

.mini-cart-bar .ks-ready {
  background: rgba(40, 200, 100, 0.3);
  color: #6effa8;
}

.mini-cart-bar .ks-cancelled {
  background: rgba(220, 53, 69, 0.3);
  color: #ff8a96;
}

@keyframes ks-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.55;
  }
}

.mini-bars-stack {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  pointer-events: none;
}

.mini-cart-bar {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  z-index: auto;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  border-radius: 18px;
  /* gap: 1.25rem; */
  width: 380px;
  min-width: 380px;
  max-width: 380px;
  pointer-events: auto;
  animation: miniCartSlideUp 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}


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

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

.mini-cart-bar-left {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

.mini-cart-product-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

.mini-cart-product-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.mini-cart-product-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

.mini-cart-product-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  display: block;
  max-width: 100%;
}

.mini-cart-product-meta {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  display: block;
  max-width: 100%;
}

.mini-cart-product-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  padding: 3px 10px;
}

.mini-cart-bar-btn {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50px;
  padding: 0.4rem 1.1rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}

.mini-cart-bar-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  transform: scale(1.04);
}

@media (max-width: 576px) {
  .mini-bars-stack {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    transform: none;
    align-items: stretch;
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    box-sizing: border-box;
  }

  .mini-cart-bar,
  .order-tracker-pill {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    border-radius: 18px;
    gap: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .order-tracker-body.open {
    max-height: 220px;
  }

  .order-tracker-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem 0.7rem;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .mini-cart-bar-left {
    min-width: 0;
    overflow: hidden;
  }

  .mini-cart-product-card {
    gap: 0.45rem;
    min-width: 0;
    overflow: hidden;
  }

  .mini-cart-product-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    flex-shrink: 0;
  }

  .mini-cart-product-info {
    min-width: 0;
    overflow: hidden;
  }

  .mini-cart-product-name {
    font-size: 0.78rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mini-cart-product-meta {
    font-size: 0.65rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mini-cart-product-price {
    font-size: 0.75rem;
    padding: 2px 6px;
  }

  .order-tracker-expand-btn {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }

  .mini-cart-bar-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    white-space: nowrap;
  }
}

/* Desktop: let the mini-cart / tracker bars adapt their width to content */
@media (min-width: 577px) {

  .mini-cart-bar,
  .order-tracker-pill {
    width: auto;
    min-width: 0;
    max-width: 460px;
  }

  .mini-cart-bar-left,
  .mini-cart-product-card,
  .mini-cart-product-info {
    flex: 0 1 auto;
  }

  .mini-cart-product-name,
  .mini-cart-product-meta {
    max-width: 260px;
  }
}

/* ══════════════════════════════════════════
   Cart Page
   ══════════════════════════════════════════ */
.cart-section {
  padding: 2rem 0 5rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary-sticky {
    position: static !important;
  }
}

.cart-summary-sticky {
  position: sticky;
  top: 80px;
}

.cart-item-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
  transition:
    background 0.35s,
    border-color 0.2s;
}

.cart-item-card:hover {
  border-color: rgba(212, 82, 26, 0.25);
}

.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: 0.6rem;
  object-fit: cover;
  flex-shrink: 0;
}

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

.cart-item-name {
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-unit-price {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cart-item-line-total {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-remove {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.7rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s;
}

.btn-remove:hover {
  border-color: #dc3545;
  color: #dc3545;
}

/* Summary card */
.summary-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.4rem 1.25rem;
  transition: background 0.35s;
}

.summary-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.summary-row.total-row {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.4rem;
}

.summary-row.total-row span:last-child {
  color: var(--accent);
}

.btn-checkout {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, #b83a10 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.78rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  margin-top: 1.1rem;
  transition: all 0.22s;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(212, 82, 26, 0.35);
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 82, 26, 0.45);
  color: #fff;
}

/* Empty cart state */
.cart-empty {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--text-muted);
}

.cart-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.cart-empty h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* ══════════════════════════════════════════
   Checkout Page
   ══════════════════════════════════════════ */
.checkout-section {
  padding: 2rem 0 5rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

.text-bg-warning {
  background: linear-gradient(135deg, #bc4410 0%, #96350a 100%) !important;
  border: 0;
  color: #fff !important;
}

.btn-dark {
  background: linear-gradient(135deg, #bc4410 0%, #96350a 100%) !important;
  color: #fff !important;
  padding: 7px 12px;
  border: 0;

}

.payment-badge.pending {
  background-color: #f56e0c47 !important;
  color: #605b48 !important;

}

.btn-back {
  margin-top: 29px !important;
}

.row.learts-mb-30 {
  margin-top: 30px !important;
}

.learts-mb-50 {
  margin-bottom: 8px !important;
}

.form-control {
  display: block;
  font-size: 14px;
}

.btn-light {
  background-color: #e3e3e3 !important;
}

textarea.form-control {
  /* min-height: calc(1.5em + .75rem + calc(var(--bs-border-width) * 2)); */
  height: 100px !important;
}

.form-label {
  margin-bottom: .5rem;
  font-size: 15px;
}

@media (max-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .btn-dark {

    font-size: 15px !important;
  }


  .checkout-summary-sticky {
    position: static !important;
  }
}

.checkout-summary-sticky {
  position: sticky;
  top: 80px;
}

.checkout-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.4rem 1.25rem;
  margin-bottom: 1.25rem;
  transition: background 0.35s;
}

.checkout-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
}

/* Coupon input */
.coupon-row {
  display: flex;
  gap: 0.5rem;
}

.coupon-input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-family: "Inter", sans-serif;
  background: var(--filter-bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.coupon-input::placeholder {
  text-transform: none;
  letter-spacing: 0;
}

.coupon-input:focus {
  border-color: var(--accent);
}

.btn-apply-coupon {
  background: var(--filter-bg);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}

.btn-apply-coupon:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.coupon-feedback {
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.45rem;
  padding-left: 0.25rem;
  min-height: 1rem;
}

.coupon-feedback.success {
  color: #2e9e5b;
}

.coupon-feedback.error {
  color: #dc3545;
}

/* Payment options */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 0.65rem;
  cursor: pointer;
  transition: all 0.18s;
  background: var(--filter-bg);
}

.payment-option:hover {
  border-color: rgba(212, 82, 26, 0.4);
}

.payment-option input[type="radio"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.payment-option.selected {
  border-color: var(--accent);
  background: var(--filter-bg);
  box-shadow: 0 0 0 3px rgba(212, 82, 26, 0.12);
}

.payment-option-label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.payment-option-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.payment-option-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Order summary (checkout) */
.checkout-summary-items {
  margin-bottom: 0.75rem;
  max-height: 200px;
  overflow-y: auto;
}

.checkout-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
}

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

.checkout-item-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 0.5rem;
}

.checkout-item-price {
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

.summary-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.75rem 0;
}

.discount-row {
  display: none;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2e9e5b;
  margin-bottom: 0.4rem;
}

.discount-row.visible {
  display: flex;
}

.btn-pay {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, #b83a10 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  margin-top: 1.1rem;
  transition: all 0.22s;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(212, 82, 26, 0.35);
}

.btn-pay:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 82, 26, 0.45);
}

.btn-pay:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ══════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════ */
@media (max-width: 640px) {
  .carousel-item img {
    height: 240px;
  }

  .carousel-caption-custom h5 {
    font-size: 1.1rem;
  }

  /* ── Filter: single horizontally scrollable strip ── */
  .filter-panel {
    padding: 0.7rem 0;
  }

  .filter-panel .container {
    padding-left: 0;
    padding-right: 0;
  }

  .filter-scroll-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.45rem;
    padding: 0.1rem 1rem 0.4rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-scroll-row::-webkit-scrollbar {
    display: none;
  }

  .filter-row-2 {
    margin-top: 0.35rem;
    padding-top: 0;
    border-top: none;
  }

  /* Hide labels and dividers — not needed in strip mode */
  .filter-group-label {
    display: none;
  }

  .filter-divider {
    display: none;
  }

  .results-count {
    display: none;
  }

  /* Flatten groups into the strip */
  .filter-group {
    display: contents;
    /* children participate directly in the scroll row */
  }

  /* Keep card horizontal on mobile — slightly tighter image */
  .dish-card-img-wrap {
    width: 90px;
    height: 90px;
  }

  .dish-card-body {
    padding: 0.7rem 0.75rem;
  }

  .dish-name {
    font-size: 0.88rem;
  }

  .dish-desc-short {
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }

  .qty-cart-row {
    gap: 0.35rem;
  }

  /* Single control height shared by the stepper and every button variant
     (Add to Cart / Select Options / Out of Stock) so the row never looks ragged */
  .qty-cart-row .qty-control,
  .qty-cart-row .btn-add-cart,
  .qty-cart-row>span {
    height: 30px;
    min-height: 30px;
    box-sizing: border-box;
  }

  .qty-cart-row .btn-add-cart,
  .qty-cart-row>span {
    min-width: 6.25rem;
  }

  .btn-add-cart {
    font-size: 0.7rem;
    padding: 0 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .qty-cart-row .qty-control button {
    padding: 0 0.55rem;
    font-size: 0.95rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .qty-cart-row .qty-control input {
    width: 2.1rem;
    min-width: 2.1rem;
    max-width: 2.1rem;
    font-size: 0.78rem;
    height: 100%;
    padding: 0;
  }

  /* "Select Options" renders alone — keep it to its content instead of
     stretching across the full card width */
  .qty-cart-row .btn-add-cart:only-child {
    flex: 0 1 auto;
    align-self: flex-start;
  }

  .qty-cart-row .in-cart-tag,
  .qty-cart-row>span {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    white-space: nowrap;
  }
}

.featured-carousel-section {
  padding: 4rem 0;
  background: #fff7ef;
}

.featured-carousel-section .section-label {
  display: inline-block;
  color: #d2691e;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.featured-carousel-section .section-title {
  font-family: serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.5rem;
  color: #1f1208;
}

.featured-carousel-section .section-sub {
  color: #6b5b50;
  max-width: 640px;
  margin: 0 auto;
}

.featured-carousel-section .featured-carousel {
  max-width: 1100px;
  margin: 2.5rem auto 0;
}

.featured-carousel-section .carousel-inner {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 18px 50px -22px rgba(31, 18, 8, 0.35);
  background: #fff;
}

.featured-carousel-section .carousel-item {
  min-height: 420px;
}

.featured-carousel-section .fc-slide {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 420px;
  background: #fff;
}

.featured-carousel-section .fc-media {
  position: relative;
  overflow: hidden;
  background: #f3e5d4;

  width: 100%;
  aspect-ratio: 600 / 500;
  /* maintains perfect ratio */
  overflow: hidden;
}

.featured-carousel-section .fc-media img {
  width: 100% !important;
  height: 100% !important;

  object-fit: fill !important;

  display: block;
  transition: transform 7s ease;
}

.featured-carousel-section .carousel-item.active .fc-media img {
  transform: scale(1.06);
}

.featured-carousel-section .fc-media .fc-media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: #d2691e;
  opacity: 0.45;
}

.featured-carousel-section .fc-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.94);
  color: #d2691e;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  z-index: 2;
}

.featured-carousel-section .fc-body {
  padding: clamp(1.75rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.featured-carousel-section .fc-eyebrow {
  color: #d2691e;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-carousel-section .fc-title {
  font-family: serif;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  color: #1f1208;
  margin: 0;
  line-height: 1.15;
}

.featured-carousel-section .fc-desc {
  color: #6b5b50;
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
}

.featured-carousel-section .fc-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Sized to match the "Select Options" button on the global shortcodes' cards:
   those sit alone in a 40px-tall actions row (align-items: stretch) with
   0.3rem 1.1rem padding at 0.72rem / 700 — so the pill is 40px high, not just
   text-height. !important is needed because a later duplicate .btn-accent
   (the hero button, ~line 3921) redefines padding at 1.25rem 2.8rem and wins on
   source order despite this selector being more specific. */
.featured-carousel-section .fc-actions .btn-accent {
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-hover) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0.3rem 1.9rem !important;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem !important;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
  box-shadow: 0 3px 8px rgba(188, 68, 16, 0.2);
}

.featured-carousel-section .fc-actions .btn-accent:hover {
  background: linear-gradient(135deg,
      var(--accent-hover) 0%,
      var(--accent) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(188, 68, 16, 0.35);
}

.featured-carousel-section .fc-actions .btn-ghost {
  color: #1f1208;
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid #e7d6c2;
  border-radius: 999px;
}

.featured-carousel-section .carousel-control-prev,
.featured-carousel-section .carousel-control-next {
  width: 46px;
  height: 46px;
  background: #fff;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.25);
}

.featured-carousel-section .carousel-control-prev {
  left: -22px;
}

.featured-carousel-section .carousel-control-next {
  right: -22px;
}

.featured-carousel-section .carousel-control-prev-icon,
.featured-carousel-section .carousel-control-next-icon {
  filter: invert(1) brightness(0.2);
  width: 18px;
  height: 18px;
}

.featured-carousel-section .carousel-indicators {
  bottom: -2.4rem;
}

.featured-carousel-section .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d2691e;
  opacity: 0.35;
  border: 0;
  margin: 0 4px;
}

.featured-carousel-section .carousel-indicators .active {
  opacity: 1;
  transform: scale(1.15);
}

.featured-carousel-section .fc-cta {
  margin-top: 4rem;
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 30px -18px rgba(31, 18, 8, 0.25);
}

.featured-carousel-section .fc-cta .btn-accent {
  display: inline-block;
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-hover) 100%);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 0.75rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(188, 68, 16, 0.3);
}

/* Featured Carousel Dark Mode Fixes */
/* Featured Carousel Dark Mode Fixes */
body.dark-mode .featured-carousel-section {
  background-color: var(--bg2) !important;
}

body.dark-mode .featured-carousel-section .section-title,
body.dark-mode .featured-carousel-section .fc-title,
body.dark-mode .featured-carousel-section .fc-cta .section-title {
  color: var(--text) !important;
}

body.dark-mode .featured-carousel-section .section-sub,
body.dark-mode .featured-carousel-section .fc-desc,
body.dark-mode .featured-carousel-section .fc-cta .section-sub {
  color: var(--text-muted) !important;
}

body.dark-mode .featured-carousel-section .featured-carousel,
body.dark-mode .featured-carousel-section .fc-slide,
body.dark-mode .featured-carousel-section .carousel-inner,
body.dark-mode .featured-carousel-section .fc-cta {
  background-color: var(--card-bg) !important;
}

/* Added missing inner element overrides for seamless dark mode */
body.dark-mode .featured-carousel-section .fc-media {
  background-color: var(--border) !important;
}

body.dark-mode .featured-carousel-section .fc-actions .btn-ghost {
  color: var(--text) !important;
  border-color: var(--border) !important;
}

body.dark-mode .featured-carousel-section .carousel-control-prev,
body.dark-mode .featured-carousel-section .carousel-control-next {
  background-color: var(--card-bg) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.6) !important;
  color: #fff !important;
}

body.dark-mode .featured-carousel-section .carousel-control-prev-icon,
body.dark-mode .featured-carousel-section .carousel-control-next-icon {
  filter: none !important;
  /* This removes the dark filter and restores the default pure white icon */
}

.featured-carousel-section .fc-cta .btn-accent:hover {
  background: linear-gradient(135deg,
      var(--accent-hover) 0%,
      var(--accent) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(188, 68, 16, 0.4);
}

@media (min-width: 769px) {
  .featured-carousel-section .fc-actions {
    align-items: center;
  }

  .featured-carousel-section .fc-actions .qty-cart-row {
    margin-top: 0;
    gap: 0.75rem;
  }

  /* Same 40px pill as the global shortcodes' "Select Options": sized to the
     label (auto width), not a fixed box. */
  .featured-carousel-section .fc-actions .btn-accent,
  .featured-carousel-section .fc-actions .btn-ghost,
  .featured-carousel-section .fc-actions .qty-cart-row .btn-add-cart,
  .featured-carousel-section .fc-actions .qty-cart-row > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    max-width: none;
    height: 40px;
    padding: 0.3rem 1.9rem;
    font-size: 0.82rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .featured-carousel-section .fc-actions .qty-cart-row > span {
    border-radius: 999px;
  }

  .featured-carousel-section .fc-actions .qty-cart-row .qty-control {
    height: 34px;
  }
}

@media (max-width: 768px) {
  .featured-carousel-section .fc-slide {
    grid-template-columns: 1fr;
    border-radius: 1.5rem;
    overflow: hidden;
    margin: 0 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }

  .featured-carousel-section .fc-media {
    min-height: 260px;
    height: 260px;
  }

  .featured-carousel-section .fc-body {
    padding: 2rem 1.5rem;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
  }

  .featured-carousel-section .fc-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  .featured-carousel-section .fc-desc {
    font-size: 0.92rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .featured-carousel-section .fc-actions {
    flex-direction: column;
    width: 100%;
    align-items: center;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
  }

  .featured-carousel-section .fc-actions .btn-ghost {
    display: none !important;
  }

  .featured-carousel-section .fc-actions .qty-cart-row {
    width: 100%;
    max-width: 8rem;
    margin-top: 0;
    justify-content: center;
    gap: 0.8rem;
  }

  /* Same 40px pill as the desktop rule above and the global shortcodes' cards:
     sized to the label, not stretched to the row. */
  .featured-carousel-section .fc-actions .btn-accent,
  .featured-carousel-section .fc-actions .qty-cart-row .btn-add-cart,
  .featured-carousel-section .fc-actions .qty-cart-row > span {
    width: auto !important;
    max-width: none;
    box-sizing: border-box;
    text-align: center;
    height: 40px;
    padding: 0.3rem 1.9rem !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.82rem;
    line-height: 1;
    flex: 0 0 auto;
  }

  .featured-carousel-section .fc-actions .qty-cart-row > span {
    border-radius: 999px;
  }

  .featured-carousel-section .carousel-control-prev,
  .featured-carousel-section .carousel-control-next {
    display: none !important;
  }

  .featured-carousel-section .carousel-indicators {
    bottom: -40px;
  }

  .featured-carousel-section .fc-actions .fc-cart-control {
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .featured-carousel-section .fc-actions .fc-cart-control .fc-order-btn {
    width: 100%;
  }

  .featured-carousel-section .fc-actions .fc-cart-control .fc-card-qty {
    justify-content: center;
    width: auto;
    align-self: center;
  }
}

/* ══════════════════════════════════════════
   Cart Page - Modern UI
   ══════════════════════════════════════════ */
.cart-modern-table {
  border-collapse: separate;
  border-spacing: 0 1rem;
  margin-top: -1rem;
}

.cart-modern-table thead th {
  background: transparent;
  border: none;
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 1rem 1.25rem;
}

.cart-modern-table tbody tr {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: 1rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.cart-modern-table tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.cart-modern-table tbody td {
  border: none;
  padding: 1.25rem;
}

.cart-modern-table tbody td:first-child {
  border-radius: 1rem 0 0 1rem;
}

.cart-modern-table tbody td:last-child {
  border-radius: 0 1rem 1rem 0;
}

.cart-page-section a:not(.btn),
.cart-section a:not(.btn),
.cart-layout a:not(.btn),
.cart-modern-table a:not(.btn),
.cart-desktop-table a:not(.btn),
#cart-table a:not(.btn),
.cart-item-name a:not(.btn) {
  color: var(--text) !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}

.cart-page-section a:not(.btn):hover,
.cart-section a:not(.btn):hover,
.cart-layout a:not(.btn):hover,
.cart-modern-table a:not(.btn):hover,
.cart-desktop-table a:not(.btn):hover,
#cart-table a:not(.btn):hover,
.cart-item-name a:not(.btn):hover {
  color: var(--accent) !important;
}

/* Item Thumbnail */
.cart-item-img-wrap {
  width: 80px;
  height: 80px;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cart-item-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Quantity Pill */
.cart-qty-pill {
  background: var(--filter-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-qty-pill .btn-qty {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--card-bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.cart-qty-pill .btn-qty:hover {
  background: var(--accent);
  color: #fff;
}

.cart-qty-pill input {
  width: 40px;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
}

/* Removing Browser Arrows from Number Input */
.cart-qty-pill input::-webkit-outer-spin-button,
.cart-qty-pill input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Remove Button */
.btn-remove-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-remove-circle:hover {
  background: #fff0f0;
  color: #dc3545;
  border-color: #dc3545;
  transform: rotate(90deg);
}

body.dark-mode .btn-remove-circle:hover {
  background: #3a1515;
}

/* Summary Card */
.cart-summary-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.summary-line.total {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px dashed var(--border);
}

/* ── Checkout Specific Styles ── */
.theme-cart-wrapper .checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 991px) {
  .theme-cart-wrapper .checkout-layout {
    grid-template-columns: 1fr;
  }
}

.theme-cart-wrapper .checkout-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

.theme-cart-wrapper .address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.theme-cart-wrapper .address-card {
  border: 2.5px solid #eee;
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background: #fff;
}

.theme-cart-wrapper .address-card:hover {
  border-color: #ddd;
  transform: translateY(-2px);
}

.theme-cart-wrapper .address-card.selected {
  border-color: #000;
  background: #fcfcfc;
}

.theme-cart-wrapper .address-card .badge {
  font-size: 0.65rem;
  background: #000;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.theme-cart-wrapper .addr-mobile {
  font-size: 0.85rem;
  color: #666;
}

.theme-cart-wrapper .payment-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1.5px solid #eee;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-cart-wrapper .payment-option:hover {
  background: #f9f9f9;
}

.theme-cart-wrapper .payment-option input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: #000;
}

.theme-cart-wrapper .payment-option .pm-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 10px;
}

.theme-cart-wrapper .payment-option-title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: #000;
}

.theme-cart-wrapper .payment-option-sub {
  display: block;
  font-size: 0.82rem;
  color: #888;
}

.theme-cart-wrapper .theme-input {
  border: 1.5px solid #eee;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}

.theme-cart-wrapper .theme-input:focus {
  border-color: var(--accent);
}

.coupon-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.coupon-row .theme-input {
  min-width: 0 !important;
  flex: 1 1 auto;
}

.coupon-row .theme-btn {
  white-space: nowrap;
  flex: 0 0 auto;
}

.theme-btn {
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.theme-btn.primary {
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-hover) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(188, 68, 16, 0.25);
}

.theme-btn.primary:hover {
  background: linear-gradient(135deg,
      var(--accent-hover) 0%,
      var(--accent) 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(188, 68, 16, 0.35);
}

.theme-btn.primary:active {
  transform: translateY(0);
}

.theme-btn.small {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

.theme-btn.outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}

.theme-btn.outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(188, 68, 16, 0.05);
}

.theme-btn.text-only {
  background: transparent;
  border: none;
  color: var(--accent);
  padding: 0;
}

@media (max-width: 768px) {
  .theme-cart-wrapper .checkout-card {
    padding: 1.25rem 1rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: 12px !important;
  }

  .theme-cart-wrapper .address-grid {
    grid-template-columns: 1fr !important;
  }

  .theme-cart-wrapper .checkout-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }

  .theme-cart-wrapper .checkout-summary-column {
    width: 100% !important;
  }

  .theme-cart-wrapper .summary-card {
    position: static !important;
    margin-top: 1rem;
  }

  .checkout-section {
    padding: 1rem 0 3rem !important;
    overflow-x: hidden !important;
  }

  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important;
  }
}

.theme-btn.text-only:hover {
  text-decoration: underline;
}

.theme-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.theme-cart-wrapper .checkout-summary-items {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

.theme-cart-wrapper .checkout-summary-items::-webkit-scrollbar {
  width: 4px;
}

.theme-cart-wrapper .checkout-summary-items::-webkit-scrollbar-thumb {
  background: #eee;
  border-radius: 10px;
}

.theme-cart-wrapper .summary-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f8f8f8;
}

.theme-cart-wrapper .summary-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

.theme-cart-wrapper .summary-item-info {
  flex-grow: 1;
}

.theme-cart-wrapper .summary-item-name {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.theme-cart-wrapper .summary-item-price {
  font-size: 0.85rem;
  color: #666;
}

.theme-cart-wrapper .checkout-success-container {
  max-width: 600px;
  margin: 2rem auto;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.theme-cart-wrapper .checkout-success-container.mobile-full-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg);
  z-index: 10000;
  margin: 0 !important;
  padding: 1.5rem !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.theme-cart-wrapper .success-icon {
  animation: scale-up 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scale-up {
  from {
    transform: scale(0);
    opacity: 0;
  }

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

/* ══════════════════════════════════════════
   Header & Cart Badge
   ══════════════════════════════════════════ */
.cart-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart-badge {
  background: #ff4757;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  box-shadow: 0 2px 5px rgba(255, 71, 87, 0.4);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-badge:empty,
.cart-badge[data-count="0"] {
  display: none;
}

.badge-bump {
  transform: scale(1.3);
}

/* ══════════════════════════════════════════
   Index Hero Section
   ══════════════════════════════════════════ */
.hero-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 85vh;
  overflow: hidden;
  background: #0a0500;
}

.hero-slider {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slide>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 8s ease;
}

.swiper-slide-active .hero-slide>img {
  transform: scale(1.1);
}

.hero-slide .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 0.7));
  z-index: 2;
}

.hero-slide .hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: #fff;
  max-width: 1000px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.swiper-slide-active .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: block;
}

.hero-slide .hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 1;
  margin: 1rem 0 2rem;
  font-weight: 800;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-slide .hero-sub {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 700px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
}

.btn-accent {
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-hover) 100%);
  color: #fff !important;
  padding: 1.25rem 2.8rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(188, 68, 16, 0.3);
  display: inline-block;
}

.btn-accent:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(188, 68, 16, 0.4);
  background: linear-gradient(135deg,
      var(--accent-hover) 0%,
      var(--accent) 100%);
  color: #fff !important;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  padding: 1.25rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #fff;
  transition: all 0.3s ease;
}

.btn-outline-white:hover {
  background: #fff;
  color: #000;
}

/* Swiper Customization */
.hero-section .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #fff;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.hero-section .swiper-pagination-bullet-active {
  opacity: 1;
  width: 40px;
  border-radius: 6px;
  background: var(--accent);
}

.hero-section .swiper-button-next,
.hero-section .swiper-button-prev {
  color: #fff;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.hero-section .swiper-button-next:after,
.hero-section .swiper-button-prev:after {
  font-size: 1.5rem;
  font-weight: 900;
}

.hero-section .swiper-button-next:hover,
.hero-section .swiper-button-prev:hover {
  background: var(--accent);
}

@media (max-width: 768px) {
  .hero-section {
    height: 35vh !important;
    min-height: 300px !important;
    padding: 0 !important;
  }

  .hero-slider,
  .swiper-slide,
  .hero-slide {
    height: 100% !important;
  }

  .hero-slide>img {
    object-fit: cover !important;
    height: 100% !important;
    width: 100% !important;
  }

  .hero-content {
    padding: 1rem !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 5 !important;
  }

  .hero-content h1 {
    font-family: "Playfair Display", serif !important;
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8) !important;
  }

  .hero-eyebrow,
  .hero-content .hero-sub,
  .hero-badges {
    display: none !important;
  }

  .hero-btns {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .btn-accent {
    width: auto !important;
    min-width: 180px !important;
    padding: 0.7rem 1.5rem !important;
    font-size: 0.95rem !important;
    border-radius: 50px !important;
  }

  /* The rule above is a page-wide hero-button sizing with !important, which
     would otherwise force the carousel's compact pill back to 180px/0.95rem.
     Exempt the carousel row so it keeps the global shortcodes' card size. */
  .featured-carousel-section .fc-actions .btn-accent {
    min-width: 0 !important;
    height: 40px !important;
    padding: 0.3rem 1.9rem !important;
    font-size: 0.82rem !important;
  }

  .btn-outline-white {
    display: none !important;
  }

  .hero-section .swiper-button-next,
  .hero-section .swiper-button-prev {
    display: none !important;
  }

  .hero-section .swiper-pagination {
    bottom: 10px !important;
  }

  .hero-section .swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
  }

  .hero-section .swiper-pagination-bullet-active {
    width: 24px !important;
  }
}

/* ── Contact Us Page Styling ── */
.contact-us-page {
  padding: 4rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-us-page form {
  background: var(--card-bg, #fff);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border, #eee);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Base style for all form elements in the grid */
.contact-us-page form>* {
  flex: 1 1 100%;
  margin-bottom: 0 !important;
  /* Managed by gap */
}

/* Adjacent layout for first two inputs (usually Name and Email) */
.contact-us-page form>div:nth-child(1),
.contact-us-page form>div:nth-child(2),
.contact-us-page form>.form-group:nth-child(1),
.contact-us-page form>.form-group:nth-child(2) {
  flex: 1 1 calc(50% - 0.75rem);
  min-width: 280px;
}

.contact-us-page label {
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text, #1a1a1a);
  display: block;
  font-size: 0.95rem;
}

.contact-us-page input,
.contact-us-page textarea,
.contact-us-page select {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: 1.5px solid var(--border, #eee);
  border-radius: 12px;
  background: var(--bg, #fcfcfc);
  color: var(--text, #1a1a1a);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
}

.contact-us-page input:focus,
.contact-us-page textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(188, 68, 16, 0.1);
  outline: none;
}

.contact-us-page button[type="submit"],
.contact-us-page .submit-btn,
.contact-us-page input[type="submit"] {
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-hover) 100%);
  color: #fff !important;
  border: none !important;
  padding: 1.1rem 3rem !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  width: auto !important;
  /* Centered with margin */
  min-width: 220px !important;
  margin: 1.5rem auto 0 !important;
  display: block !important;
  box-shadow: 0 10px 25px rgba(188, 68, 16, 0.25) !important;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-us-page button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(188, 68, 16, 0.35);
}

@media (max-width: 768px) {
  .contact-us-page form>* {
    flex: 1 1 100% !important;
  }
}

@media (max-width: 576px) {
  .contact-us-page {
    padding: 2.5rem 1rem;
  }

  .contact-us-page form {
    padding: 1.5rem;
  }
}

/* Remove Bootstrap green border & tick on valid inputs inside contact page */
.contact-us-page .form-control.is-valid,
.contact-us-page .was-validated .form-control:valid,
.contact-us-page .form-control:valid {
  border-color: var(--border, #eee) !important;
  background-image: none !important;
  padding-right: 0.9rem !important;
}

.contact-us-page .form-control.is-valid:focus,
.contact-us-page .was-validated .form-control:valid:focus,
.contact-us-page .form-control:valid:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(188, 68, 16, 0.1) !important;
}

/* ═══════════════════════════════════════════
   Flash Toast Notifications
   ═══════════════════════════════════════════ */
.flash-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.flash-toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(120%);
  opacity: 0;
  animation: flashSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.flash-toast.flash-out {
  animation: flashSlideOut 0.35s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.flash-toast.flash-success {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.flash-toast.flash-error {
  background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
}

.flash-toast.flash-info {
  background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

body.dark-mode .flash-toast {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

@keyframes flashSlideIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes flashSlideOut {
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

@media (max-width: 576px) {
  .flash-toast-container {
    top: 12px;
    right: 12px;
    left: 12px;
    align-items: stretch;
  }

  .flash-toast {
    max-width: 100%;
    min-width: unset;
  }
}

/* ══════════════════════════════════════════
   Auth Modals – Theme Override
   ══════════════════════════════════════════ */

/* ── Modal shell ── */
.foduu-auth-modal .modal-content {
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

/* ── Decorative header band ── */
.foduu-auth-modal .modal-header {
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-hover) 100%);
  border-bottom: none;
  padding: 1.4rem 1.5rem 1.2rem;
  position: relative;
}

.foduu-auth-modal .modal-header::before {
  content: "🍛";
  position: absolute;

  top: 50%;
  transform: translateY(-50%);
  font-size: 2.2rem;
  opacity: 0.18;
  pointer-events: none;
}

.foduu-auth-modal .modal-title {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff !important;
  letter-spacing: 0.2px;
}

.foduu-auth-modal .modal-header .btn-close {
  filter: invert(1) brightness(2);
  opacity: 0.85;
}

.foduu-auth-modal .modal-header .btn-close:hover {
  opacity: 1;
}

/* ── Body padding ── */
.foduu-auth-modal .modal-body {
  padding: 1.8rem 1.75rem 1.5rem;
}

/* ── Form labels ── */
.foduu-auth-modal .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.4rem;
}

/* ── Inputs ── */
.foduu-auth-modal .form-control {
  background-color: var(--bg2);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.foduu-auth-modal .form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.65;
}

.foduu-auth-modal .form-control:focus {
  background-color: var(--bg2);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(188, 68, 16, 0.15);
  color: var(--text);
  outline: none;
}

.foduu-auth-modal .form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: none;
}


/* ── Submit buttons – override Bootstrap btn-primary ── */
.foduu-auth-modal .btn.btn-primary {
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-hover) 100%) !important;
  border: none !important;
  border-radius: 50px !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  padding: 0.72rem 1.5rem !important;
  letter-spacing: 0.3px;
  transition: all 0.22s !important;
  box-shadow: 0 4px 18px rgba(188, 68, 16, 0.35) !important;
}

.foduu-auth-modal .btn.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg,
      var(--accent-hover) 0%,
      var(--accent) 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(188, 68, 16, 0.45) !important;
}

.foduu-auth-modal .btn.btn-primary:disabled {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
}

/* ── Nav links inside modals ── */
.foduu-auth-modal .modal- a.text-decoration-none {
  color: var(--accent) !important;
  font-weight: 600;
  transition: color 0.18s;
}

.foduu-auth-modal .modal-body a.text-decoration-none:hover {
  color: var(--accent-hover) !important;
  text-decoration: underline !important;
}

.foduu-auth-modal .modal-body p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ── OTP digit boxes ── */
.foduu-auth-modal .otp-digit {
  background-color: var(--bg2) !important;
  border: 2px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 12px !important;
  font-family: "Playfair Display", serif !important;
  font-weight: 800 !important;
  font-size: 1.5rem !important;
  transition:
    border-color 0.2s,
    box-shadow 0.2s !important;
}

.foduu-auth-modal .otp-digit:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(188, 68, 16, 0.18) !important;
  outline: none !important;
}

/* ── OTP info text ── */
.foduu-auth-modal #otp-modal-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ── Country code select ── */
.foduu-auth-modal select.form-control,
.foduu-auth-modal select.form-select {
  background-color: var(--bg2) !important;
  border: 1.5px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 10px !important;
}

.foduu-auth-modal select.form-control:focus,
.foduu-auth-modal select.form-select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(188, 68, 16, 0.15) !important;
}

/* ── Dark mode refinements ── */
body.dark-mode .foduu-auth-modal .form-control {
  background-color: var(--bg2);
  border-color: var(--border);
  color: var(--text);
}

body.dark-mode .foduu-auth-modal .form-control:focus {
  background-color: var(--bg2);
  border-color: var(--accent);
}

body.dark-mode .foduu-auth-modal .otp-digit {
  background-color: var(--bg2) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

body.dark-mode .foduu-auth-modal select.form-control,
body.dark-mode .foduu-auth-modal select.form-select {
  background-color: var(--bg2) !important;
  color: var(--text) !important;
}

@media (max-width: 767px) {
  .cart-nav-link {
    width: 30px;

    height: 30px;
  }

  .header-menus-link {
    display: none !important;
  }

  #themeToggle {
    width: 30px !important;
    padding: 6px;
    height: 30px !important;
  }

  .nav-link {
    font-size: 13px !important;
  }

  .cart-badge {
    top: -7px !important;
  }

  .nav-menu li:first-child {
    display: none;
  }

  .navbar-expand .navbar-nav .dropdown-menu li {
    display: block;
  }

  .sc-orders-wrap {
    padding: 0px !important;
  }
}

.sc-coupons-wrap .copy-btn:hover {
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-hover) 100%) !important;
}

.sc-coupons-wrap .coupon-type-badge {
  background: var(--accent) !important;
}

/* ══════════════════════════════════════════
   Manage Address Global Shortcode Custom Styling Overrides
   ══════════════════════════════════════════ */

/* Card Styling */
.myaccount-content.address .card {
  background-color: var(--card-bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  overflow: hidden;
}

.myaccount-content.address .card:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--shadow-hover) !important;
  border-color: var(--accent2) !important;
}

/* Default Address Highlight */
.myaccount-content.address .card.border-primary {
  border: 1.5px solid var(--accent) !important;
  box-shadow: 0 10px 30px rgba(188, 68, 16, 0.12) !important;
}

.myaccount-content.address .card.border-primary:hover {
  box-shadow: 0 14px 36px rgba(188, 68, 16, 0.2) !important;
  border-color: var(--accent) !important;
}

/* Header Styling */
.myaccount-content.address .card-header {
  background-color: transparent !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 1.25rem 1.5rem !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
}

/* Badge for Default Address */
.myaccount-content.address .badge.bg-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%) !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  padding: 0.35rem 0.75rem !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  border: none !important;
  text-transform: uppercase !important;
}

/* Card Body Content */
.myaccount-content.address .card-body {
  padding: 1.5rem !important;
  color: var(--text) !important;
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
}

.myaccount-content.address .card-body p strong {
  color: var(--text-muted) !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  font-weight: 600 !important;
  display: inline-block;
  margin-bottom: 2px !important;
}

/* Footer & Action Buttons */
.myaccount-content.address .card-footer {
  background-color: transparent !important;
  border-top: 1px solid var(--border) !important;
  padding: 1rem 1.5rem !important;
}

.myaccount-content.address .edit-btn {
  color: var(--text) !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  transition: color 0.22s ease !important;
}

.myaccount-content.address .edit-btn:hover {
  color: var(--accent) !important;
}

.myaccount-content.address .delete-btn {
  color: var(--text-muted) !important;
  font-size: 1rem !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: all 0.22s ease !important;
}

.myaccount-content.address .delete-btn:hover {
  color: #dc3545 !important;
  transform: scale(1.15) !important;
}

/* Add Address Card Box */
.myaccount-content.address .add-box {
  background-color: var(--card-bg) !important;
  border: 2px dashed var(--border) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.myaccount-content.address .add-box:hover {
  background-color: var(--bg2) !important;
  border-color: var(--accent) !important;
  box-shadow: var(--shadow-hover) !important;
  transform: translateY(-5px) !important;
}

.myaccount-content.address .add-box span {
  font-size: 3rem !important;
  color: var(--text-muted) !important;
  font-weight: 300 !important;
  transition: all 0.3s ease !important;
}

.myaccount-content.address .add-box:hover span {
  color: var(--accent) !important;
  transform: scale(1.2) rotate(90deg) !important;
}

/* Modal Custom Styling */
#addressModal .modal-content {
  background-color: var(--card-bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow-hover) !important;
  color: var(--text) !important;
}

#addressModal .modal-header {
  border-bottom: none !important;
  padding: 1.5rem 1.5rem 0.5rem !important;
}

#addressModal #modalTitle {
  font-family: "Playfair Display", Georgia, serif !important;
  font-weight: 800 !important;
  font-size: 1.4rem !important;
  color: var(--text) !important;
}

#addressModal .btn-close {
  opacity: 0.8 !important;
  transition: transform 0.2s ease !important;
}

#addressModal .btn-close:hover {
  transform: rotate(90deg) !important;
  opacity: 1 !important;
}

/* Form Controls (Inputs, Selects) */
#addressModal .form-control,
#addressModal .form-select {
  background-color: var(--bg2) !important;
  border: 1.5px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 10px !important;
  padding: 0.65rem 1rem !important;
  font-size: 0.92rem !important;
  transition: border-color 0.22s ease, box-shadow 0.22s ease !important;
}

#addressModal .form-control:focus,
#addressModal .form-select:focus {
  background-color: var(--bg2) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(188, 68, 16, 0.15) !important;
  color: var(--text) !important;
  outline: none !important;
}

#addressModal .form-control.is-invalid,
#addressModal .form-select.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

#addressModal label {
  color: var(--text) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  margin-bottom: 0.4rem !important;
  display: inline-block !important;
}

/* Radio buttons for Address Type */
#addressModal .btn-group .btn-check+.btn-outline-dark {
  border: 1.5px solid var(--border) !important;
  color: var(--text-muted) !important;
  background-color: transparent !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 8px !important;
  margin: 0 4px !important;
  transition: all 0.22s ease !important;
}

#addressModal .btn-group .btn-check:checked+.btn-outline-dark {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
}

#addressModal .btn-group .btn-check+.btn-outline-dark:hover {
  background-color: var(--bg2) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* Checkbox Style */
#addressModal .form-check {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin-top: 0.5rem !important;
}

#addressModal .form-check-input {
  border: 1.5px solid var(--border) !important;
  background-color: var(--bg2) !important;
  width: 1.15rem !important;
  height: 1.15rem !important;
  margin-top: 0 !important;
  cursor: pointer !important;
  border-radius: 4px !important;
  transition: all 0.2s !important;
}

#addressModal .form-check-input:checked {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
}

#addressModal .form-check-label {
  color: var(--text) !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}

/* Submit Button */
#addressModal button[type="submit"] {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%) !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 0.75rem 2.25rem !important;
  color: #ffffff !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  box-shadow: 0 4px 15px rgba(188, 68, 16, 0.3) !important;
  transition: all 0.22s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  text-transform: none !important;
}

#addressModal button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(188, 68, 16, 0.45) !important;
}

/* Dark Mode Specific Overrides for Address Cards */
body.dark-mode .myaccount-content.address .card {
  border-color: rgba(212, 82, 26, 0.35) !important;
}

body.dark-mode .myaccount-content.address .card.border-primary {
  border-color: var(--accent) !important;
}

body.dark-mode .myaccount-content.address .card-header,
body.dark-mode .myaccount-content.address .card-footer {
  border-color: rgba(212, 82, 26, 0.15) !important;
}

body.dark-mode .myaccount-content.address .add-box {
  border-color: rgba(212, 82, 26, 0.3) !important;
}

@media (min-width: 992px) {
  .filter-panel {
    padding: 2rem 0 1.25rem;
    top: 72px;
  }

  #dish-search-row {
    margin-bottom: 0.75rem;
  }
}

/* Draggable floating order-tracker / mini-cart bars */
.order-tracker-pill {
  touch-action: none;
}

.order-tracker-pill a,
.order-tracker-pill button,
.order-tracker-body {
  touch-action: auto;
}

#mini-bars-stack.delici-dragging {
  transition: none !important;
  user-select: none;
  cursor: grabbing;
}

#mini-bars-stack.delici-dragging .order-tracker-pill {
  cursor: grabbing;
}

/* ══════════════════════════════════════════
   Mobile bottom navigation (mobile-only, does not affect desktop)
   ══════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 767px) {
  .mobile-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 0.4rem 0.25rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  }




  .mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    flex: 1 1 0;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    padding: 0.3rem 0.1rem;
  }

  .mobile-bottom-nav-item i {
    font-size: 1.25rem;
    line-height: 1;
  }

  .mobile-bottom-nav-item:hover,
  .mobile-bottom-nav-item:focus,
  .mobile-bottom-nav-item.active {
    color: var(--accent);
  }

  .mobile-bottom-nav-icon-wrap {
    position: relative;
    display: inline-flex;
  }

  .mobile-bottom-nav-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
  }

  /* keep page content from being hidden behind the fixed bar */
  body {
    padding-bottom: 140px;
  }
}

/* ══════════════════════════════════════════
   Order status / cart pill (mobile "Status"/"Cart" tabs)
   Opt-in via .status-sheet-open. Same dynamic content/functionality
   as the existing auto-shown order-tracker-bar/cart-fab-wrap, styled
   as the same inset floating card, just click-triggered with a
   rise-up animation instead of appearing automatically.
   ══════════════════════════════════════════ */
@media (max-width: 767px) {
  a.cart-nav-link.header-menus-link {
    display: none;
  }
}



@media (max-width: 767px) {

  #order-tracker-bar {
    display: none !important;
  }

  .mini-bars-stack {
    left: 1rem;
    right: 1rem;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 0.5rem);
    transform: none;
    align-items: stretch;
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    box-sizing: border-box;
  }

  #cart-fab-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  #order-tracker-bar.status-sheet-open,
  #cart-fab-wrap.status-sheet-open {
    display: flex !important;
    position: fixed !important;
    left: 1rem !important;
    right: 1rem !important;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    top: auto !important;
    transform: none !important;
    width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-radius: 18px !important;
    z-index: 1050;
    box-sizing: border-box;
    animation: status-sheet-slide-up 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  #order-tracker-bar.status-sheet-open .order-tracker-body.open,
  #cart-fab-wrap.status-sheet-open .order-tracker-body.open {
    max-height: 45vh;
  }
}

@keyframes status-sheet-slide-up {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

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

/* =====================================================================
   Global Checkout Shortcode — Food-Restaurant skin
   Restyles the theme-agnostic `checkout-page-restaurant` global shortcode
   (wrapper .checkout-restaurant-section) to match this theme's checkout UI.
   Pure CSS override: no markup/JS changes in the shortcode itself.
   Inherits :root theme tokens (--accent/--card-bg/--border/--text/…), so
   light AND dark mode work automatically.
   ===================================================================== */

.checkout-restaurant-section {
  padding: 2rem 0 5rem;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* --- Layout: Bootstrap row/col -> theme's CSS grid (1fr 340px) --- */
.checkout-restaurant-section #checkout-main-view.row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
  margin: 0;
}

.checkout-restaurant-section #checkout-main-view>.col-lg-8,
.checkout-restaurant-section #checkout-main-view>.col-lg-4 {
  width: auto;
  max-width: none;
  padding: 0;
}

/* --- Cards --- */
.checkout-restaurant-section .co-rest-card {
  background: var(--card-bg);
  border: none;
  border-radius: 0.9rem;
  padding: 1.4rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: none;
  transition: background 0.35s;
}

/* The shortcode ships its own <style> block re-declaring .co-rest-card with an
   identical selector; being later in document order it wins on a specificity
   tie. Adding the element name outranks it without touching the shortcode. */
section.checkout-restaurant-section .co-rest-card {
  border: none;
}

.checkout-restaurant-section .co-rest-card.position-sticky {
  position: sticky;
  top: 80px;
}

/* Card titles: Playfair Display serif (matches .checkout-card h3) */
.checkout-restaurant-section .co-rest-card>h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  border: 0;
  padding: 0;
}

/* --- Inputs / selects / textareas (matches .theme-input) --- */
.checkout-restaurant-section .form-control,
.checkout-restaurant-section select.form-control,
.checkout-restaurant-section textarea.form-control {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  background: var(--card-bg);
  color: var(--text);
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s;
}

.checkout-restaurant-section .form-control:focus {
  border-color: var(--accent);
  box-shadow: none !important;
  outline: none !important;
}

.checkout-restaurant-section .form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.checkout-restaurant-section select.form-control {
  appearance: auto;
}

.checkout-restaurant-section textarea.form-control {
  resize: vertical;
  height: auto;
  min-height: 90px;
}

/* --- Locked fields (QR-scanned table number) ---
   The shortcode hardcodes an inline light-grey background for the readonly
   state, which leaves near-white text unreadable in dark mode. Inline styles
   outrank normal rules, so these need !important to win. */
body.dark-mode .checkout-restaurant-section .form-control[readonly],
body.dark-mode .checkout-restaurant-section input#table-no[readonly] {
  background: var(--bg2) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
  opacity: 1;
  -webkit-text-fill-color: var(--text);
}

body.dark-mode .checkout-restaurant-section .form-control[readonly]::placeholder {
  color: var(--text-muted) !important;
}

/* --- Payment options (matches .payment-option: native radio + orange ring) --- */
.checkout-restaurant-section .co-rest-payment-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 0.65rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
  background: var(--filter-bg);
  transition: all 0.18s;
}

.checkout-restaurant-section .co-rest-payment-option:hover {
  border-color: rgba(212, 82, 26, 0.4);
}

.checkout-restaurant-section .co-rest-payment-option:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 82, 26, 0.12);
}

/* Restore native radio (the global shortcode ships no custom radio here) */
.checkout-restaurant-section .co-rest-payment-option input[type="radio"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.checkout-restaurant-section .co-rest-payment-option i.fas {
  color: var(--accent) !important;
}

/* --- Address cards --- */
.checkout-restaurant-section .co-rest-address-card {
  border: 1.5px solid var(--border);
  border-radius: 0.65rem;
  padding: 1rem;
  cursor: pointer;
  background: var(--filter-bg);
  transition: all 0.18s;
}

.checkout-restaurant-section .co-rest-address-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 82, 26, 0.12);
}

/* --- Summary rows (matches .summary-row) --- */
.checkout-restaurant-section #checkout-main-view .mt-4>.d-flex.justify-content-between,
.checkout-restaurant-section #co-discount-row,
.checkout-restaurant-section #co-tax-row,
.checkout-restaurant-section #co-parcel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
}

/* Grand total row: serif-ish weight, top border, accent value */
.checkout-restaurant-section #checkout-main-view .col-lg-4 .mt-4>.d-flex.justify-content-between:last-of-type {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.4rem;
}

.checkout-restaurant-section #co-total {
  color: var(--accent);
}

/* --- Buttons: coupon Apply + Pay -> theme .theme-btn.primary gradient --- */
.checkout-restaurant-section #coupon-section .btn-dark,
.checkout-restaurant-section #pay-btn,
.checkout-restaurant-section #checkout-success-view .btn-dark {
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(188, 68, 16, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checkout-restaurant-section #pay-btn {
  width: 100%;
  margin-top: 1.1rem;
}

.checkout-restaurant-section #coupon-section .btn-dark:hover,
.checkout-restaurant-section #pay-btn:not(:disabled):hover,
.checkout-restaurant-section #checkout-success-view .btn-dark:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(188, 68, 16, 0.35);
}

.checkout-restaurant-section #pay-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

/* Outline buttons (Continue Ordering, Cancel) + Add-New link */
.checkout-restaurant-section .btn-outline-dark {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 10px;
}

.checkout-restaurant-section .btn-outline-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(188, 68, 16, 0.05);
}

.checkout-restaurant-section .btn-link {
  color: var(--accent);
  text-decoration: none;
}

.checkout-restaurant-section .badge.bg-dark {
  background: var(--accent) !important;
}

/* --- Success view accent (theme orange) --- */
.checkout-restaurant-section #checkout-success-view .co-rest-success-icon-wrap {
  background: rgba(212, 82, 26, 0.1) !important;
  color: var(--accent) !important;
}

.checkout-restaurant-section #success-order-no,
.checkout-restaurant-section #ao-countdown-num,
.checkout-restaurant-section #ao-countdown-text {
  color: var(--accent) !important;
}

.checkout-restaurant-section #ao-ring-progress {
  stroke: var(--accent) !important;
}

.checkout-restaurant-section #ao-redirect-banner {
  background: rgba(212, 82, 26, 0.07) !important;
  border-color: rgba(212, 82, 26, 0.25) !important;
}

/* --- Dark mode: theme tokens already flip; a few hardcoded bits need help --- */
body.dark-mode .checkout-restaurant-section .co-rest-payment-option,
body.dark-mode .checkout-restaurant-section .co-rest-address-card {
  background: var(--bg2);
}

/* --- Order Summary items (JS-rendered rows in #checkout-items) ---
   The shortcode builds item rows with no explicit text color; use theme
   tokens so they stay legible in BOTH light and dark mode. */
.checkout-restaurant-section #checkout-items,
.checkout-restaurant-section #checkout-items div,
.checkout-restaurant-section #checkout-items span {
  color: var(--text);
}

.checkout-restaurant-section #checkout-items .text-muted {
  color: var(--text-muted) !important;
}

.checkout-restaurant-section #checkout-items .fw-bold {
  color: var(--accent);
}

.checkout-restaurant-section #checkout-items>.d-flex {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.checkout-restaurant-section #checkout-items>.d-flex:last-child {
  border-bottom: none;
}

/* --- Responsive: stack to one column under 768px (matches theme) --- */
@media (max-width: 768px) {
  .checkout-restaurant-section #checkout-main-view.row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .checkout-restaurant-section #checkout-main-view>.col-lg-8,
  .checkout-restaurant-section #checkout-main-view>.col-lg-4 {
    width: 100%;
  }

  .checkout-restaurant-section .co-rest-card.position-sticky {
    position: static;
  }

  .checkout-restaurant-section .co-rest-card {
    padding: 1.25rem 1rem;
    border-radius: 12px;
  }
}

/* ══════════════════════════════════════════
   Coupon Suggestion Slider — theme recolor
   Overrides the shortcode's hard-coded green with this theme's palette
   (var(--accent)/--accent2/--card-bg/--text/--border). Because these use
   CSS variables, the slider also follows light/dark mode automatically.
   ══════════════════════════════════════════ */
.checkout-restaurant-section #coupon-suggestions .co-coupon-slider-label {
  color: var(--text);
}

/* Regular applicable card */
.checkout-restaurant-section #coupon-suggestions .co-coupon-card {
  border-color: var(--border);
  background: var(--card-bg);
}
.checkout-restaurant-section #coupon-suggestions .co-coupon-card:hover {
  box-shadow: 0 4px 14px rgba(188, 68, 16, 0.18);
  border-color: var(--accent);
}

/* Best card — accent-tinted with an accent ring */
.checkout-restaurant-section #coupon-suggestions .co-coupon-card--best {
  border-color: var(--accent);
  background:
    linear-gradient(135deg, rgba(188, 68, 16, 0.1), rgba(188, 68, 16, 0.03)),
    var(--card-bg);
  box-shadow: 0 0 0 1.5px var(--accent) inset;
}

/* Locked / "almost" card — neutral, uses theme border + surface */
.checkout-restaurant-section #coupon-suggestions .co-coupon-card--locked {
  border-color: var(--border);
  background: var(--bg2);
}

/* "Best" badge → accent pill */
.checkout-restaurant-section #coupon-suggestions .co-coupon-badge {
  background: var(--accent);
  box-shadow: 0 2px 6px rgba(188, 68, 16, 0.3);
}

/* Headline (discount text) → accent */
.checkout-restaurant-section #coupon-suggestions .co-coupon-headline {
  color: var(--accent);
}
.checkout-restaurant-section #coupon-suggestions .co-coupon-card--locked .co-coupon-headline {
  color: var(--text-muted);
}

/* Code + subtext → theme text colors */
.checkout-restaurant-section #coupon-suggestions .co-coupon-code {
  color: var(--text);
}
.checkout-restaurant-section #coupon-suggestions .co-coupon-sub {
  color: var(--text-muted);
}

/* Dark-mode: the variables already flip, but nudge the best-card tint so it
   reads on the dark surface. */
body.dark-mode .checkout-restaurant-section #coupon-suggestions .co-coupon-card--best {
  background:
    linear-gradient(135deg, rgba(212, 82, 26, 0.22), rgba(212, 82, 26, 0.06)),
    var(--card-bg);
}

/* ══════════════════════════════════════════
   Coupon Detail Modal — theme recolor
   The modal is injected into <body> (outside .checkout-restaurant-section),
   so it is targeted directly by its #co-coupon-modal id. Uses this theme's
   accent so the headline + badge + Apply button match; card/text/border
   inherit the theme variables and follow dark mode automatically.
   ══════════════════════════════════════════ */
body #co-coupon-modal .co-cm-badge {
  background: var(--accent);
}
body #co-coupon-modal .co-cm-headline {
  color: var(--accent);
}
body #co-coupon-modal .co-cm-apply {
  background: var(--accent);
}
body #co-coupon-modal .co-cm-apply:hover {
  background: var(--accent-hover);
}
body #co-coupon-modal .co-cm-apply:disabled {
  background: var(--border);
  color: var(--text-muted);
}

/* =====================================================================
   Weather Recommendation Shortcode — Food-Restaurant skin
   Restyles the theme-agnostic `weather-recommendation` global shortcode
   (wrapper .sc-weather-rec + its .wr-modal-overlay, which renders inside
   .wr-instance) to match this theme's dish-card / carousel UI.
   Pure CSS override: no markup or JS changes in the shortcode itself.
   The shortcode's own :root block resolves --wr-* from generic tokens;
   we re-point them at this theme's tokens (--accent/--card-bg/--border/
   --text/--text-muted) so light AND dark mode follow automatically.
   ===================================================================== */

.sc-weather-rec {
  --wr-card-bg: var(--card-bg);
  --wr-text: var(--text);
  --wr-heading: var(--text);
  --wr-border: var(--border);
  --wr-accent: var(--accent);
  background: var(--section-bg);
  padding: 4rem 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  transition: background 0.35s;
}

.wr-modal-overlay {
  --wr-card-bg: var(--card-bg);
  --wr-text: var(--text);
  --wr-border: var(--border);
  --wr-accent: var(--accent);
}

/* --- Section heading: Playfair serif title + accent weather pill --- */
.sc-weather-rec .sc-wr-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
}

.sc-weather-rec .sc-wr-weather {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  border-radius: 50px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(188, 68, 16, 0.25);
}

/* --- Nav arrows: match .featured-carousel-section controls --- */
.sc-weather-rec .sc-wr-arrow {
  width: 46px;
  height: 46px;
  background: var(--card-bg);
  color: var(--accent);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.25);
  transition: all 0.22s;
}

.sc-weather-rec .sc-wr-arrow:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  filter: none;
  transform: scale(1.08);
}

/* --- Product card: mirrors .dish-card --- */
.sc-weather-rec .wr-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.35s;
}

.sc-weather-rec .wr-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(212, 82, 26, 0.3);
}

.sc-weather-rec .wr-img-wrap {
  background: var(--filter-bg);
  border-radius: 0.65rem;
}

.sc-weather-rec .wr-card:hover .wr-img-wrap img {
  transform: scale(1.08);
}

.sc-weather-rec .wr-img-wrap img {
  transition: transform 0.32s;
}

.sc-weather-rec .wr-name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  color: var(--text);
  min-height: 0 !important;
}

.sc-weather-rec .wr-name a {
  color: var(--text);
}

.sc-weather-rec .wr-name a:hover {
  color: var(--accent);
}

.sc-weather-rec .wr-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.3px;
  margin-top: 0 !important;
}

.sc-weather-rec .wr-actions {
  margin-top: auto !important;
}

.sc-weather-rec .wr-price .wr-old-price {
  color: var(--text-muted);
  opacity: 1;
}

/* Sale badge → theme accent gradient (was hardcoded #e74c3c) */
.sc-weather-rec .wr-badge-sale {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* Wishlist heart: theme surface instead of hardcoded white */
.sc-weather-rec .wr-wishlist-btn {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.sc-weather-rec .wr-wishlist-btn:hover,
.sc-weather-rec .wr-wishlist-btn.is-wished {
  color: var(--accent);
  border-color: var(--accent);
}

/* --- Card buttons: match .btn-add-cart gradient pill ---
   Covers both global shortcodes' card CTAs (Add to Cart / Select Options /
   View Details) so they read as the theme's pill instead of the shortcodes'
   square, uppercase default.
   !important is required here, not stylistic: the upsell shortcode's own
   `.upsell-card-actions .global-upsell-btn` rule marks border-radius, padding
   and font-size !important, which no amount of specificity can outrank. Its
   buttons also carry Bootstrap's .btn/.btn-dark, so the theme's own .btn-dark
   fill (#1a1109) has to be overridden too — that dark slab is what shows
   otherwise. text-transform is reset because the shortcodes uppercase labels. */
.sc-weather-rec .wr-btn,
.global-upsell-section .global-upsell-btn,
.global-upsell-section .upsell-card-actions .global-upsell-btn,
.global-upsell-section .global-upsell-btn.btn-dark {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 0.3rem 0.75rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
  /* The weather shortcode sets text-transform: uppercase on .wr-btn from its
     in-body <style>, which wins on source order — so this needs !important to
     render the labels as written ("Add to Cart", not "ADD TO CART"). */
  text-transform: none !important;
  box-shadow: 0 3px 8px rgba(188, 68, 16, 0.2);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* "Select Options" / "View Details" render alone in the row (no stepper beside
   them), so the shortcodes' flex:1 stretches them across the whole card. Size
   them to their label instead, and centre the row so the lone button sits in
   the middle of the card rather than hugging the left edge. */
.sc-weather-rec .wr-actions:has(.wr-btn:only-child),
.global-upsell-section .upsell-card-actions:has(.global-upsell-btn:only-child) {
  justify-content: center;
}

.sc-weather-rec .wr-actions .wr-btn:only-child,
.global-upsell-section .upsell-card-actions .global-upsell-btn:only-child {
  flex: 0 1 auto !important;
  width: auto !important;
  align-self: center;
  padding: 0.3rem 1.1rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

.sc-weather-rec .wr-btn:hover:not(:disabled),
.global-upsell-section .global-upsell-btn:hover:not(:disabled),
.global-upsell-section .upsell-card-actions .global-upsell-btn:hover:not(:disabled),
.global-upsell-section .global-upsell-btn.btn-dark:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%) !important;
  color: #fff !important;
  opacity: 1;
  filter: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(188, 68, 16, 0.35);
}

.sc-weather-rec .wr-btn:disabled,
.global-upsell-section .global-upsell-btn:disabled,
.global-upsell-section .upsell-card-actions .global-upsell-btn:disabled {
  background: transparent !important;
  border: 1px solid var(--border) !important;
  color: var(--text-muted) !important;
  box-shadow: none;
  cursor: not-allowed;
}

/* --- Card width: roomier than the shortcodes' 240px default ---
   Both globals hard-code `flex: 0 0 240px; width: 240px` on their cards, which
   leaves product names cramped against this theme's Playfair type. Widened to
   290px; the flex-basis has to be set alongside width or the basis still wins.
   Narrow phones fall back to a near-full-width card. */
.sc-weather-rec .wr-card,
.global-upsell-section .global-upsell-card {
  flex: 0 0 290px !important;
  width: 290px !important;
  height: auto !important;
}

@media (max-width: 380px) {
  .sc-weather-rec .wr-card,
  .global-upsell-section .global-upsell-card {
    flex: 0 0 250px !important;
    width: 250px !important;
  }
}

/* --- Card qty steppers: match .qty-control ---
   Both shortcodes ship an 8px-radius box with grey glyphs on a transparent
   ground; the theme's stepper is a --filter-bg pill with accent +/- glyphs.
   Their own rules sit at the same two-class specificity as these and load
   later in the body, so !important is what makes the override stick. */
.global-upsell-section .upsell-card-qty,
.sc-weather-rec .wr-card-qty {
  border: 1.5px solid var(--border) !important;
  border-radius: 50px !important;
  background: var(--filter-bg) !important;
  overflow: hidden;
}

/* The shortcodes squeeze the stepper into 26px buttons + a 24px input so the
   CTA can take the rest of the row; widen both now that the button is smaller. */
.global-upsell-section .upsell-card-qty button,
.sc-weather-rec .wr-card-qty button {
  background: none !important;
  color: var(--accent) !important;
  width: 34px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.5;
  transition: background 0.15s;
}

.global-upsell-section .upsell-card-qty button:hover:not(:disabled),
.sc-weather-rec .wr-card-qty button:hover:not(:disabled) {
  background: rgba(212, 82, 26, 0.1) !important;
}

.global-upsell-section .upsell-card-qty input,
.sc-weather-rec .wr-card-qty input {
  background: transparent !important;
  color: var(--text) !important;
  width: 32px !important;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
}

/* --- Card qty stepper: match .qty-control --- */
.sc-weather-rec .wr-card-qty {
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: var(--filter-bg);
}

.sc-weather-rec .wr-card-qty button {
  color: var(--accent);
  font-weight: 700;
}

.sc-weather-rec .wr-card-qty button:hover {
  background: rgba(212, 82, 26, 0.1);
}

.sc-weather-rec .wr-card-qty input {
  color: var(--text);
}

@media (max-width: 768px) {
  .sc-weather-rec {
    padding: 2.5rem 0;
  }

  .sc-weather-rec .sc-wr-container {
    padding: 0 1rem;
  }

  .sc-weather-rec .sc-wr-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .sc-weather-rec .sc-wr-nav {
    display: none !important;
  }
}

/* =====================================================================
   Global shortcode quick-view modals — Food-Restaurant skin
   One block for both global shortcodes: `weather-recommendation`
   (.wr-modal-overlay) and `upsell-products` (.upsell-modal-overlay).
   Both ship the same 820x440 two-column grid; this restyles them into
   the theme's #dishModal shape (centered .modal-md column, image on top
   at 4:3, scrolling body, bordered footer) so the quick-view looks the
   same everywhere on this theme.
   Pure CSS: no markup or JS changes in either shortcode. Each shortcode's
   own inline <style> loads in the body, so it wins equal-specificity ties
   on source order — the two-class selectors here outrank its bare
   single-class rules, and `body` is used where it ships a bare rule too.
   ===================================================================== */

.upsell-modal-overlay {
  --upsell-card-bg: var(--card-bg);
  --upsell-text: var(--text);
  --upsell-border: var(--border);
  --upsell-accent: var(--accent);
}

/* ── Open animation: match #dishModal ──
   #dishModal is a Bootstrap 5.3 modal (the layout loads BS5 from the CDN — the
   local bootstrap.min.css is v3 and unused). BS5's motion is:
     .modal.fade .modal-dialog  transform: translate(0,-50px); .3s ease-out
     .modal-backdrop            opacity 0 → .5   (a SEPARATE element)
   Note there is no opacity rule on the modal container itself — the panel never
   fades, it only slides at full opacity while the backdrop fades behind it.
   So the scrim is moved onto ::before and fades on its own; fading the whole
   overlay would fade the panel too, which is what made this read wrong.
   The panel uses a keyframe rather than a transition because a transition does
   not fire on an element going from display:none to displayed in one frame. */
body .wr-modal-overlay,
body .upsell-modal-overlay {
  background: transparent;
}

body .wr-modal-overlay::before,
body .upsell-modal-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  opacity: 0;
  transition: opacity 0.15s linear;
  pointer-events: none;
}

body .wr-modal-overlay.open::before,
body .upsell-modal-overlay.open::before {
  opacity: 1;
}

/* The panel must sit above the ::before scrim. */
body .wr-modal-overlay .wr-modal,
body .upsell-modal-overlay .upsell-modal {
  position: relative;
  z-index: 1;
}

body .wr-modal-overlay.open .wr-modal,
body .upsell-modal-overlay.open .upsell-modal {
  animation: scModalSlideIn 0.3s ease-out;
  animation-fill-mode: backwards;
}

/* `backwards` applies the from-state before the first frame paints, so the
   panel is already offset when it becomes visible instead of flashing at its
   final position for one frame and then jumping up to start the slide — that
   flash is what made the motion read differently from #dishModal. */
@keyframes scModalSlideIn {
  from {
    transform: translate(0, -50px);
  }

  to {
    transform: translate(0, 0);
  }
}

/* Respect users who ask the OS to reduce motion. */
@media (prefers-reduced-motion: reduce) {
  body .wr-modal-overlay,
  body .upsell-modal-overlay {
    transition: none;
  }

  body .wr-modal-overlay.open .wr-modal,
  body .upsell-modal-overlay.open .upsell-modal {
    animation: none;
  }
}

.wr-modal-overlay .wr-modal,
.upsell-modal-overlay .upsell-modal {
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-hover);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
  height: auto;
  max-height: 90vh;
}

.wr-modal-overlay .wr-modal-media,
.upsell-modal-overlay .upsell-modal-media {
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: 250px;
  flex: 0 0 auto;
  border-radius: 1.25rem 1.25rem 0 0;
  background: var(--filter-bg);
}

.wr-modal-overlay .wr-modal-media img,
.upsell-modal-overlay .upsell-modal-media img {
  object-position: center;
}

/* Scrollbar: the shortcodes leave the chunky OS default here, which reads as a
   grey slab against the dark card. Match the thin, subtle bar the theme already
   uses on .order-tracker-body / .checkout-summary-items. */
.wr-modal-overlay .wr-modal-body,
.upsell-modal-overlay .upsell-modal-body {
  height: auto;
  flex: 1 1 auto;
  padding: 1.25rem 1.5rem 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.wr-modal-overlay .wr-modal-body::-webkit-scrollbar,
.upsell-modal-overlay .upsell-modal-body::-webkit-scrollbar {
  width: 4px;
}

.wr-modal-overlay .wr-modal-body::-webkit-scrollbar-track,
.upsell-modal-overlay .upsell-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.wr-modal-overlay .wr-modal-body::-webkit-scrollbar-thumb,
.upsell-modal-overlay .upsell-modal-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.wr-modal-overlay .wr-modal-body::-webkit-scrollbar-thumb:hover,
.upsell-modal-overlay .upsell-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Actions read as .modal-footer: separated, pinned to the bottom */
.wr-modal-overlay .wr-modal-actions,
.upsell-modal-overlay .upsell-modal-actions {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1rem;
  gap: 12px;
  flex-wrap: nowrap;
}

.wr-modal-overlay .wr-modal-close,
.upsell-modal-overlay .upsell-modal-close {
  background: var(--filter-bg);
  border: 1.5px solid var(--border);
  color: var(--text);
  transition: all 0.2s ease;
}

.wr-modal-overlay .wr-modal-close:hover,
.upsell-modal-overlay .upsell-modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(90deg);
}

/* Title: .modal-title — Playfair 800 at 1.3rem in --text (not accent) */
.wr-modal-overlay .wr-modal-title,
.upsell-modal-overlay .upsell-modal-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text);
}

/* Description: #modal-desc */
.wr-modal-overlay .wr-modal-desc,
.upsell-modal-overlay .upsell-modal-desc {
  color: var(--text-muted);
  opacity: 1;
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Section labels → the theme's uppercase micro-label */
.wr-modal-overlay .wr-modal-label,
.upsell-modal-overlay .upsell-modal-label {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Price: .dish-price at the modal's 1.15rem */
.wr-modal-overlay .wr-modal-price,
.upsell-modal-overlay .upsell-modal-price {
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 0.75rem;
}

.wr-modal-overlay .wr-modal-price .wr-old-price,
.upsell-modal-overlay .upsell-modal-price .upsell-old-price {
  color: var(--text-muted);
  opacity: 1;
}

/* Variant pills: match the .variant-btn app.js renders in #dishModal —
   fully-round, 0.4rem/1rem, 0.85rem weight-500, accent fill when active. */
.wr-modal-overlay .wr-variant-pill,
.upsell-modal-overlay .upsell-variant-pill {
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.wr-modal-overlay .wr-variant-pill:hover:not(:disabled),
.upsell-modal-overlay .upsell-variant-pill:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.wr-modal-overlay .wr-variant-pill.active,
.upsell-modal-overlay .upsell-variant-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: none;
}

/* Out-of-stock variants: app.js tints them red and strikes them through. */
.wr-modal-overlay .wr-variant-pill:disabled,
.upsell-modal-overlay .upsell-variant-pill:disabled {
  background: rgba(220, 53, 69, 0.08);
  color: #dc3545;
  border-color: var(--border);
  opacity: 0.7;
  text-decoration: line-through;
}

/* Add-ons: app.js renders these as inline wrapping chips (.modal-addon-item),
   not stacked full-width rows — so the list flows horizontally. */
.wr-modal-overlay .wr-addons-list,
.upsell-modal-overlay .upsell-addons-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wr-modal-overlay .wr-addon-item,
.upsell-modal-overlay .upsell-addon-item {
  flex: 0 0 auto;
  gap: 8px;
  padding: 0.5rem 0.6rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: transparent;
  font-size: 0.85rem;
  transition: border-color 0.15s, background-color 0.15s;
}

.wr-modal-overlay .wr-addon-item:hover,
.upsell-modal-overlay .upsell-addon-item:hover {
  border-color: var(--accent);
}

/* Checked chip gets the accent ring + tinted surface app.js applies inline.
   The upsell shortcode also toggles its own .active class on the label. */
.wr-modal-overlay .wr-addon-item:has(input:checked),
.upsell-modal-overlay .upsell-addon-item:has(input:checked),
.upsell-modal-overlay .upsell-addon-item.active {
  border-color: var(--accent);
  background-color: var(--bg2);
  box-shadow: none;
}

.wr-modal-overlay .wr-addon-item input[type="checkbox"],
.upsell-modal-overlay .upsell-addon-item input[type="checkbox"] {
  accent-color: var(--accent);
}

.wr-modal-overlay .wr-addon-info {
  flex: 0 1 auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.wr-modal-overlay .wr-addon-name,
.upsell-modal-overlay .upsell-addon-name {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Addon price is accent-coloured in the theme modal, not plain text. */
.wr-modal-overlay .wr-addon-price,
.upsell-modal-overlay .upsell-addon-price {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  opacity: 1;
}

.wr-modal-overlay .wr-addon-desc {
  color: var(--text-muted);
  opacity: 1;
}

/* Modal qty stepper: match .qty-control (pill, filter-bg, accent glyphs) */
.wr-modal-overlay .wr-modal-qty,
.upsell-modal-overlay .upsell-qty {
  border: 1.5px solid var(--border) !important;
  border-radius: 50px !important;
  background: var(--filter-bg) !important;
  overflow: hidden;
  flex: 0 0 auto;
}

.wr-modal-overlay .wr-modal-qty button,
.upsell-modal-overlay .upsell-qty button {
  background: none !important;
  color: var(--accent) !important;
  font-weight: 700 !important;
  width: auto !important;
  height: auto !important;
  padding: 0.35rem 0.75rem !important;
  font-size: 1rem !important;
  line-height: 1.5;
  transition: background 0.15s;
}

.wr-modal-overlay .wr-modal-qty button:hover:not(:disabled),
.upsell-modal-overlay .upsell-qty button:hover:not(:disabled) {
  background: rgba(212, 82, 26, 0.1) !important;
}

.wr-modal-overlay .wr-modal-qty input,
.upsell-modal-overlay .upsell-qty input {
  background: transparent !important;
  color: var(--text) !important;
  width: 2.9rem !important;
  height: auto !important;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
}

/* Modal Add to Cart — matches #dishModal's own button (0.65rem 1.5rem at
   0.95rem, 50px pill, gradient fill). .btn-dark from Bootstrap is on both
   buttons, so the gradient needs equal specificity to win; padding/font-size/
   border-radius need !important because the upsell shortcode marks its
   .upsell-card-actions button rule !important and sets min-width: 150px, which
   otherwise leaves this button shorter and narrower than the theme's. */
.wr-modal-overlay .wr-btn.wr-modal-add,
.wr-modal-overlay .wr-btn.wr-modal-add.btn-dark,
.upsell-modal-overlay .global-upsell-btn.upsell-modal-add,
.upsell-modal-overlay .global-upsell-btn.upsell-modal-add.btn-dark {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 0.65rem 1.5rem !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  height: auto !important;
  text-transform: none !important;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 20px rgba(188, 68, 16, 0.4);
  flex: 1 1 auto;
  min-width: 0 !important;
}

.wr-modal-overlay .wr-btn.wr-modal-add:hover:not(:disabled),
.upsell-modal-overlay .global-upsell-btn.upsell-modal-add:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 82, 26, 0.45);
}

.wr-modal-overlay .wr-btn.wr-modal-add:disabled,
.upsell-modal-overlay .global-upsell-btn.upsell-modal-add:disabled {
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

/* Stock pills keep semantic green/red but get dark-mode-safe tints */
body.dark-mode .wr-modal-overlay .wr-modal-stock.in-stock {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.15);
}

body.dark-mode .wr-modal-overlay .wr-modal-stock.out-of-stock {
  color: #ff8a96;
  background: rgba(220, 53, 69, 0.18);
}

/* Each shortcode's own @media (max-width: 640px) block re-asserts a fixed
   media height and grid rows; keep the stacked 4:3 shape on phones too. */
@media (max-width: 640px) {
  .wr-modal-overlay .wr-modal,
  .upsell-modal-overlay .upsell-modal {
    max-width: 100%;
    max-height: 88vh;
    overflow: hidden;
  }

  .wr-modal-overlay .wr-modal-media,
  .upsell-modal-overlay .upsell-modal-media {
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 200px;
    border-radius: 1.25rem 1.25rem 0 0;
  }

  .wr-modal-overlay .wr-modal-body,
  .upsell-modal-overlay .upsell-modal-body {
    overflow-y: auto;
    padding: 1rem 1.15rem 1.25rem;
  }
}
/* ══════════════════════════════════════════
   Table Reservation Form — light/dark support
   The shortcode ships transparent inputs with `color: inherit`, which makes
   native select dropdowns unreadable in dark mode. Bind everything to theme vars.
   ══════════════════════════════════════════ */
.trf-wrapper {
  color: var(--text);
}

.trf-card {
  background: var(--card-bg) !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow);
}

.trf-title,
.trf-label {
  color: var(--text);
}

.trf-subtitle,
.trf-hint,
.trf-note,
.trf-empty-hint {
  color: var(--text-muted);
  opacity: 1;
}

.trf-input,
.trf-select,
.trf-textarea {
  background: var(--bg2) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

.trf-input::placeholder,
.trf-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.trf-input:focus,
.trf-select:focus,
.trf-textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(212, 82, 26, 0.15);
}

/* Native dropdown list: force explicit colors so the OS popup is readable */
.trf-select option,
.trf-select optgroup {
  background-color: var(--card-bg);
  color: var(--text);
}

body.dark-mode .trf-select option,
body.dark-mode .trf-select optgroup {
  background-color: #1f1912;
  color: #f5ede0;
}

/* Date picker indicator is a black glyph by default — invert it in dark mode */
body.dark-mode .trf-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.6);
  cursor: pointer;
}

body.dark-mode .trf-input[type="number"]::-webkit-inner-spin-button,
body.dark-mode .trf-input[type="number"]::-webkit-outer-spin-button {
  filter: invert(1) brightness(1.6);
}

body.dark-mode .trf-input[type="date"],
body.dark-mode .trf-select {
  color-scheme: dark;
}

.trf-table {
  background: var(--bg2);
  border-color: var(--border);
  color: var(--text);
}

.trf-table:hover:not(.is-disabled) {
  border-color: var(--accent);
}

.trf-table .trf-t-seats {
  color: var(--text-muted);
  opacity: 1;
}

.trf-table.is-selected {
  border-color: var(--accent) !important;
  background: rgba(212, 82, 26, 0.12) !important;
}

.trf-table.is-selected .trf-t-tag {
  color: var(--accent) !important;
}

body.dark-mode .trf-table.is-recommended {
  border-color: #4ade80 !important;
}

body.dark-mode .trf-table.is-recommended .trf-t-tag {
  color: #4ade80 !important;
}

body.dark-mode .trf-table.is-disabled .trf-t-tag {
  color: var(--text-muted) !important;
}

body.dark-mode .trf-status.is-ok,
body.dark-mode .trf-seat-tally.is-ok {
  color: #4ade80 !important;
}

body.dark-mode .trf-status.is-error,
body.dark-mode .trf-seat-tally.is-short {
  color: #fbbf24 !important;
}

body.dark-mode .trf-error,
body.dark-mode .trf-req {
  color: #ff8a96 !important;
}

body.dark-mode .trf-input-error {
  border-color: #ff8a96 !important;
}

.trf-submit {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%) !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(188, 68, 16, 0.25);
}

body.dark-mode .trf-message.is-success {
  background: rgba(74, 222, 128, 0.15) !important;
  color: #4ade80 !important;
}

body.dark-mode .trf-message.is-error {
  background: rgba(220, 53, 69, 0.18) !important;
  color: #ff8a96 !important;
}

/* ══════════════════════════════════════════
   JS-built overlay modals (room swap, confirm
   order, send-to-kitchen) — theme aware
   ══════════════════════════════════════════ */
body > div:has(#rmv-confirm) > div,
body > div:has(#rco-confirm) > div,
body > div:has(#tco-confirm) > div,
body > div:has(#kic-confirm) > div,
#tbl-move-overlay > div {
  background: var(--card-bg) !important;
  color: var(--text) !important;
  border: 1px solid var(--border);
}

body > div:has(#rmv-confirm) h3,
body > div:has(#rco-confirm) h3,
body > div:has(#tco-confirm) h3,
body > div:has(#kic-confirm) h3,
#tbl-move-overlay h4 {
  color: var(--text) !important;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  line-height: 1.35;
}

body > div:has(#rmv-confirm) p,
body > div:has(#rco-confirm) p,
body > div:has(#tco-confirm) p,
#tbl-move-overlay p {
  color: var(--text-muted) !important;
}

#tbl-move-overlay > div > div:first-child {
  background: rgba(212, 82, 26, 0.1) !important;
}

body.dark-mode #tbl-move-overlay > div > div:first-child {
  background: rgba(212, 82, 26, 0.18) !important;
}

#tbl-move-overlay > div > div:first-child i {
  color: var(--accent) !important;
}

#tbl-move-overlay #tbl-move-confirm {
  background: var(--accent) !important;
  color: #fff !important;
}

body > div:has(#rco-confirm) label,
body > div:has(#tco-confirm) label {
  color: var(--text) !important;
}

body > div:has(#rco-confirm) input,
body > div:has(#tco-confirm) input {
  background-color: var(--bg2) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}

body > div:has(#rco-confirm) input[readonly],
body > div:has(#tco-confirm) input[readonly] {
  background-color: var(--filter-bg) !important;
  color: var(--text-muted) !important;
}

body > div:has(#rco-confirm) input::placeholder,
body > div:has(#tco-confirm) input::placeholder {
  color: var(--text-muted) !important;
}

body > div:has(#rmv-confirm) #rmv-cancel,
body > div:has(#rco-confirm) #rco-cancel,
body > div:has(#tco-confirm) #tco-cancel,
body > div:has(#kic-confirm) #kic-back,
#tbl-move-overlay #tbl-move-cancel {
  background: transparent !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}

/* Room / table pill above the form fields */
body > div:has(#rco-confirm) div[style*="border-radius: 50px"],
body > div:has(#tco-confirm) div[style*="border-radius: 50px"] {
  background: var(--filter-bg) !important;
  color: var(--text) !important;
}

/* Send-to-kitchen: hard-coded light greys and rules */
body > div:has(#kic-confirm) div[style*="#eee"] {
  border-bottom-color: var(--border) !important;
}

body > div:has(#kic-confirm) div[style*="#f0f0f0"] {
  border-top-color: var(--border) !important;
}

body > div:has(#kic-confirm) div[style*="#1a1a1a"],
body > div:has(#kic-confirm) span[style*="#1a1a1a"] {
  color: var(--text) !important;
}

body > div:has(#kic-confirm) div[style*="#888"],
body > div:has(#kic-confirm) div[style*="#999"],
body > div:has(#kic-confirm) div[style*="#666"],
body > div:has(#kic-confirm) span[style*="#999"],
body > div:has(#kic-confirm) span[style*="#aaa"] {
  color: var(--text-muted) !important;
}

body.dark-mode div:has(#kic-confirm) div[style*="#fff1ec"] {
  background: rgba(212, 82, 26, 0.16) !important;
}

.rv-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 5, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: rvFadeIn 0.22s ease;
}

.rv-overlay.rv-closing {
  animation: rvFadeOut 0.28s ease forwards;
}

body.rv-modal-open {
  overflow: hidden;
}

@keyframes rvFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes rvFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.rv-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 2rem 1.6rem 1.6rem;
  border-radius: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hover);
  text-align: center;
  animation: rvPopIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes rvPopIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }

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

.rv-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s;
}

.rv-close:hover {
  background: var(--filter-bg);
  color: var(--accent);
}

.rv-title {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.rv-sub {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.3px;
}

.rv-items {
  margin: 0 0 1rem;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.rv-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.rv-stars input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rv-stars label {
  color: rgba(240, 165, 0, 0.55);
  cursor: pointer;
  line-height: 0;
  transition:
    color 0.16s ease,
    transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rv-stars label svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  transition: fill 0.16s ease;
}

.rv-stars label:hover,
.rv-stars label:hover ~ label,
.rv-stars input:checked ~ label {
  color: var(--accent2);
}

.rv-stars label:hover svg,
.rv-stars label:hover ~ label svg,
.rv-stars input:checked ~ label svg {
  fill: currentColor;
  stroke: none;
}

.rv-stars label:hover {
  transform: scale(1.18);
}

.rv-stars input:checked ~ label {
  filter: drop-shadow(0 3px 8px rgba(240, 165, 0, 0.4));
}

.rv-stars input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.rv-comment {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 0.75rem;
  background: var(--filter-bg);
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
  transition:
    border-color 0.18s,
    background 0.18s;
}

.rv-comment::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}

.rv-comment:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--card-bg);
}

.rv-error {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: #dc3545;
}

.rv-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.rv-actions button {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.rv-skip {
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
}

.rv-skip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.rv-submit {
  border: none;
  background: linear-gradient(135deg,
      var(--accent) 0%,
      var(--accent-hover) 100%);
  color: #fff;
  box-shadow: 0 3px 12px rgba(188, 68, 16, 0.3);
}

.rv-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(188, 68, 16, 0.42);
  background: linear-gradient(135deg,
      var(--accent-hover) 0%,
      var(--accent) 100%);
}

.rv-submit:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

/* ── Thank-you state ── */
.rv-done {
  padding: 0.75rem 0 0.25rem;
}

.rv-check {
  width: 62px;
  height: 62px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(46, 158, 91, 0.12);
  color: #2e9e5b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  animation: rvCheckIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes rvCheckIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  60% {
    transform: scale(1.12);
  }

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

.rv-done-stars {
  display: inline-flex;
  gap: 0.3rem;
  margin: 0.15rem 0 0.6rem;
  color: var(--accent2);
  line-height: 0;
}

.rv-done-stars .rv-star-empty svg {
  fill: none;
  stroke: rgba(240, 165, 0, 0.45);
  stroke-width: 1.7;
  stroke-linejoin: round;
}

/* ── Mobile: centered modal ── */
@media (max-width: 576px) {
  .rv-overlay {
    padding: 1rem;
  }

  .rv-modal {
    max-width: 360px;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    padding: 1.75rem 1.25rem 1.5rem;
  }
}

.dish-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.dish-rating i {
  font-size: 0.72rem;
  color: var(--accent2);
}

.dish-rating-count {
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.dish-rating-lg {
  font-size: 0.92rem;
  gap: 5px;
}

.dish-rating-lg i {
  font-size: 0.88rem;
}

.dish-rating-lg .dish-rating-count {
  font-size: 0.82rem;
}

@media (max-width: 576px) {
  body .order-summary-section {
    padding-top: 1.5rem;
  }
}

@media (max-width: 767px) {
  .trb-wrap.trb-is-floating .trb-btn.trb-floating {
    z-index: 1059;
  }

  body:has(#cart-fab-wrap:not([style*="none"])) .trb-wrap.trb-is-floating .trb-btn.trb-floating {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 0.5rem + 56px + 0.55rem);
  }

  body:has(#cart-bar-body.open) .trb-wrap.trb-is-floating .trb-btn.trb-floating,
  body:has(#cart-fab-wrap.status-sheet-open) .trb-wrap.trb-is-floating .trb-btn.trb-floating,
  body:has(#order-tracker-bar.status-sheet-open) .trb-wrap.trb-is-floating .trb-btn.trb-floating {
    display: none;
  }
}
