/*
 * Zone-57 public experience polish
 * Loaded after legacy page styles so improvements stay centralized and scoped.
 * No markup contracts, API calls, or order state are changed here.
 */

:root {
  --border: rgba(255, 255, 255, 0.09);
  --border2: rgba(255, 255, 255, 0.16);
  --public-surface: #1b1b1b;
  --public-surface-soft: #161616;
  --public-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --public-accent: var(--restaurant-accent, var(--gold, #e8a020));
}

html {
  scroll-padding-top: 92px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

:where(a, button, input, textarea, select, [role="button"]):focus-visible {
  outline: 2px solid #ffd06d;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(232, 160, 32, 0.22);
}

:where(button, .hero-cta, .card-cta, .cta-band-btn, .cart-checkout-btn, .submit-btn, .rv-submit-btn, .mc-btn, .mc-wa-btn) {
  -webkit-tap-highlight-color: transparent;
}

.nav,
.mc-nav {
  background: rgba(15, 15, 15, 0.9);
  border-bottom: 1px solid rgba(232, 160, 32, 0.18);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav-logo,
.mc-nav-logo {
  letter-spacing: -0.7px;
  text-shadow: 0 4px 22px rgba(232, 160, 32, 0.15);
}

.nav-actions a,
.mc-nav-back {
  min-height: 42px;
  border-radius: 10px;
}

.hero-title,
.rv-hero-title,
.mc-title {
  text-wrap: balance;
}

.hero-title {
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.32);
}

.hero-sub,
.rv-hero-sub,
.mc-sub {
  text-wrap: pretty;
}

#heroBadge,
.hero-open-badge {
  width: fit-content;
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid rgba(37, 211, 102, 0.28);
  border-radius: 999px;
  background: rgba(16, 25, 19, 0.72);
  color: #aaf0c2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.home-search-input,
.search-input {
  min-height: 48px;
  border-color: rgba(255, 255, 255, 0.14);
  background-color: rgba(28, 28, 28, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.home-search-input:focus,
.search-input:focus {
  border-color: var(--public-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--public-accent) 18%, transparent);
}

.hero-cta,
.card-cta,
.cta-band-btn,
.cart-checkout-btn,
.submit-btn,
.rv-submit-btn,
.mc-btn-primary,
.mc-wa-btn {
  min-height: 46px;
  box-shadow: 0 8px 24px rgba(232, 160, 32, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.hero-cta:hover,
.card-cta:hover,
.cta-band-btn:hover,
.cart-checkout-btn:hover,
.submit-btn:hover:not(:disabled),
.rv-submit-btn:hover:not(:disabled),
.mc-btn-primary:hover,
.mc-wa-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 30px rgba(232, 160, 32, 0.23);
}

.rest-card-new,
.restaurant-card,
.featured-card,
.why-card-new,
.menu-item,
.rv-card,
.rv-summary,
.rv-form-card,
#orderSummary,
.mc-step {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.rest-card-new,
.restaurant-card,
.featured-card,
.why-card-new,
.menu-item,
.rv-card,
.mc-step {
  border-color: rgba(255, 255, 255, 0.09);
}

.rest-card-new:hover,
.restaurant-card:hover,
.featured-card:hover,
.why-card-new:hover,
.menu-item:hover,
.rv-card:hover,
.mc-step:hover {
  border-color: color-mix(in srgb, var(--public-accent) 42%, transparent);
  box-shadow: var(--public-shadow), 0 0 0 1px color-mix(in srgb, var(--public-accent) 10%, transparent);
}

.rest-img-wrap img,
.card-img-wrap img,
.featured-img,
.item-img {
  background-color: #242424;
}

.rest-card-body,
.card-body,
.featured-body {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 70%);
}

.section-tag,
.section-eyebrow,
.rv-hero-eyebrow {
  letter-spacing: 2px;
}

.section-title,
.menu-section-title {
  text-wrap: balance;
}

.menu-content {
  max-width: 1120px;
}

.menu-section {
  margin-bottom: clamp(30px, 5vw, 48px);
}

.menu-section-title {
  margin-bottom: 18px;
  letter-spacing: -0.35px;
}

.menu-item {
  border-radius: 18px;
  background: linear-gradient(145deg, #1d1d1d, #181818);
}

.item-name {
  line-height: 1.3;
}

.item-desc {
  color: #b0b0b0;
}

.item-price,
.sidebar-total-val,
.mc-total-val {
  font-variant-numeric: tabular-nums;
}

.variant-select,
.form-input,
.form-textarea,
.rv-input,
.rv-textarea {
  min-height: 46px;
  border-color: rgba(255, 255, 255, 0.15);
}

.form-input:focus,
.form-textarea:focus,
.rv-input:focus,
.rv-textarea:focus {
  outline: none;
  border-color: var(--public-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--public-accent) 17%, transparent);
}

.delivery-pill {
  min-height: 46px;
  border-radius: 12px;
}

.floating-cart {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32), 0 6px 24px color-mix(in srgb, var(--public-accent) 22%, transparent);
}

.modal-overlay {
  background: rgba(0, 0, 0, 0.76);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal {
  border-color: rgba(232, 160, 32, 0.2);
  box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.38);
}

.recap-box {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, #202020, #181818);
}

.rv-layout {
  max-width: 780px;
}

.rv-summary,
.rv-form-card {
  border-color: rgba(232, 160, 32, 0.22);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.rv-card {
  background: linear-gradient(145deg, #1d1d1d, #181818);
}

.rv-filter-btn {
  min-height: 40px;
}

.rv-star {
  min-width: 42px;
  min-height: 44px;
}

.mc-page {
  padding-top: clamp(36px, 7vh, 72px);
}

#orderSummary {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.mc-step {
  background: linear-gradient(145deg, #1c1c1c, #171717);
}

.mc-actions .mc-btn {
  min-height: 48px;
}

@media (max-width: 768px) {
  .hero-stats-new {
    gap: 8px;
  }

  .hero-stat-pill {
    padding: 9px 13px;
  }

  .menu-item {
    gap: 13px;
  }

  .rv-layout {
    padding-top: 28px;
  }
}

@media (max-width: 520px) {
  .hero-stats-new {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stat-pill {
    min-width: 0;
    border-radius: 16px;
    padding: 10px;
  }

  .hero-stat-pill-val,
  .hero-stat-pill-lbl {
    white-space: normal;
  }

  .menu-content {
    padding-inline: 12px;
  }

  .menu-item {
    padding: 10px;
    border-radius: 15px;
  }

  .item-img {
    width: 86px !important;
    height: 86px !important;
  }

  .rv-hero {
    padding: 48px 18px 40px;
  }

  .rv-layout {
    padding: 24px 14px calc(80px + env(safe-area-inset-bottom, 0px));
  }

  .rv-summary,
  .rv-form-card {
    border-radius: 18px;
    padding: 22px 18px;
  }

  .rv-summary-grid {
    gap: 16px;
  }

  .rv-score-num {
    font-size: 54px;
  }

  .mc-page {
    padding: 34px 16px calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .mc-step {
    padding: 14px;
  }
}

@media (hover: none) {
  .rest-card-new:hover,
  .restaurant-card:hover,
  .featured-card:hover,
  .why-card-new:hover,
  .menu-item:hover,
  .rv-card:hover,
  .mc-step:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* â•â• UNIFIED PUBLIC CART LAYER â•â•
   The cart is shared by desktop and mobile. Keep its surface, spacing,
   controls and summary rules here instead of scattering overrides across
   page markup and inline styles. */
.restaurant-page .rest-sidebar {
  width: min(420px, 100vw);
  background: var(--public-surface-soft);
  border-left-color: color-mix(in srgb, var(--public-accent) 24%, transparent);
  box-shadow: -18px 0 60px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.restaurant-page .rest-sidebar-header {
  min-height: 64px;
  padding: 14px 18px;
  background: rgba(22, 22, 22, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.11);
}

.restaurant-page .rest-sidebar-title {
  font-size: 17px;
  letter-spacing: -0.2px;
}

.restaurant-page .sidebar-cart-section,
.restaurant-page .sidebar-restaurants-section,
.restaurant-page .sidebar-links-section {
  padding: 16px 16px 12px !important;
}

.restaurant-page .sidebar-cart-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.restaurant-page .sidebar-section-title {
  margin-bottom: 11px;
  color: var(--text3) !important;
  font-size: 11px !important;
  letter-spacing: 1.6px !important;
}

.restaurant-page .sidebar-cart-items {
  max-height: min(34vh, 280px) !important;
  padding: 0 !important;
  gap: 8px !important;
  overscroll-behavior: contain;
}

.restaurant-page .sb-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 64px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: linear-gradient(145deg, #222, #1b1b1b) !important;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.restaurant-page .sb-cart-item:hover {
  border-color: color-mix(in srgb, var(--public-accent) 46%, transparent);
}

.restaurant-page .sb-cart-item__info {
  flex: 1;
  min-width: 0;
}

.restaurant-page .sb-cart-item__name {
  display: block;
  margin-bottom: 3px;
  color: var(--text) !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.restaurant-page .sb-cart-item__price {
  color: var(--text2) !important;
  font-size: 12px;
  line-height: 1.35;
}

.restaurant-page .sb-cart-item__offer {
  margin: 2px 0 4px;
  color: #86e6aa;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.restaurant-page .sb-cart-item__controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.restaurant-page .sb-cart-item__controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border2);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 17px;
}

.restaurant-page .sb-cart-item__controls button:hover {
  border-color: var(--public-accent);
  background: color-mix(in srgb, var(--public-accent) 14%, transparent);
  color: var(--public-accent);
}

.restaurant-page .sb-cart-item__qty {
  min-width: 20px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.restaurant-page .sb-cart-item__remove {
  width: 26px !important;
  height: 26px !important;
  border-color: transparent !important;
  color: var(--text3) !important;
  font-size: 13px !important;
}

.restaurant-page .sb-cart-item__remove:hover {
  border-color: rgba(255, 107, 107, 0.28) !important;
  background: rgba(255, 107, 107, 0.1) !important;
  color: #ff8b8b !important;
}

.restaurant-page .sidebar-cart-summary {
  margin-top: 12px;
  padding: 10px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.restaurant-page .sidebar-summary-row,
.restaurant-page .sidebar-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.restaurant-page .sidebar-summary-row {
  padding: 4px 0;
  color: var(--text2) !important;
  font-size: 13px;
}

.restaurant-page .sidebar-total-row {
  padding: 9px 0 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.restaurant-page .sidebar-total-val {
  color: var(--public-accent) !important;
  font-variant-numeric: tabular-nums;
}

.restaurant-page .sidebar-cart-section .cart-checkout-btn {
  min-height: 48px;
  margin-top: 10px !important;
  border-radius: 12px !important;
  background: var(--public-accent) !important;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--public-accent) 20%, transparent);
}

.restaurant-page .sidebar-cart-section .cart-checkout-btn:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.restaurant-page .sidebar-empty-message {
  padding: 20px 10px !important;
  color: var(--text3) !important;
  font-size: 13px;
  text-align: center;
}

/* â•â• VISUAL REFINEMENT â•â•
   A single visual layer for the public experience. It preserves the dark,
   gold and WhatsApp identity while improving hierarchy, density and polish. */
html {
  background: #0d0d0d;
}

body:not(.admin-wrap) {
  background:
    radial-gradient(circle at 50% -18%, rgba(232, 160, 32, 0.055), transparent 34rem),
    var(--bg, #111);
}

.nav {
  min-height: 64px;
  padding-inline: clamp(16px, 4vw, 32px);
}

.nav-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(20px, 2.5vw, 23px);
}

.nav-logo::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(232, 160, 32, 0.11), 0 0 18px rgba(232, 160, 32, 0.45);
}

.nav-actions a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px !important;
  color: var(--text2) !important;
  border: 1px solid transparent;
  border-radius: 10px;
}

.nav-actions a:hover {
  color: var(--gold) !important;
  background: rgba(232, 160, 32, 0.08);
  border-color: rgba(232, 160, 32, 0.22);
}

.hero {
  isolation: isolate;
  min-height: clamp(500px, 68vh, 680px) !important;
}

.hero-content,
.hero > .container {
  max-width: 1180px;
}

.hero-title {
  max-width: 680px;
  letter-spacing: clamp(-2px, -0.25vw, -1px);
}

.hero-sub {
  max-width: 530px;
  color: rgba(255, 255, 255, 0.74);
}

.hero-cta,
.card-cta,
.rest-card-btn {
  box-shadow: 0 10px 26px rgba(232, 160, 32, 0.18);
}

.restaurants-section,
.featured-section,
.why-section,
.how-section {
  position: relative;
}

.restaurants-section::before,
.featured-section::before,
.why-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.012), transparent 22%, transparent 78%, rgba(0,0,0,0.12));
}

.restaurant-card,
.rest-card-new,
.featured-card,
.why-card-new,
.step-card {
  position: relative;
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(31,31,31,0.98), rgba(23,23,23,0.98));
}

.restaurant-card::before,
.rest-card-new::before,
.featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
}

.card-meta-item,
.rest-card-meta,
.rest-card-cuisine,
.featured-desc,
.why-desc-new,
.step-card-desc {
  color: #bcbcbc;
}

.section-header {
  position: relative;
  z-index: 1;
}

.section-sub {
  color: #b7b7b7;
}

.cta-band {
  border-top-color: rgba(232, 160, 32, 0.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(232, 160, 32, 0.1), transparent 34%),
    linear-gradient(135deg, #090909, #141414 52%, #090909);
}

/* Restaurant page hierarchy */
.restaurant-page .rest-hero {
  height: clamp(280px, 42vw, 410px) !important;
  border-bottom: 1px solid rgba(232, 160, 32, 0.16);
}

.restaurant-page .rest-hero-content {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 32px);
}

.restaurant-page .hero-accent-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--public-accent) 34%, transparent);
  border-radius: 999px;
  background: rgba(0,0,0,0.3);
  color: color-mix(in srgb, var(--public-accent) 78%, white) !important;
  letter-spacing: 1.8px !important;
}

.restaurant-page .rest-hero-content h1 {
  max-width: 760px;
  font-size: clamp(30px, 5vw, 52px) !important;
  text-shadow: 0 8px 30px rgba(0,0,0,0.42);
}

.restaurant-page .rest-meta-bar {
  gap: 8px;
}

.restaurant-page .rest-meta-pill,
.restaurant-page .ig-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  color: #d0d0d0;
  background: rgba(15, 15, 15, 0.56);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.restaurant-page .search-container {
  padding: 13px clamp(14px, 4vw, 24px);
  background: rgba(15,15,15,0.92);
  border-bottom-color: rgba(255,255,255,0.1);
}

.restaurant-page .search-wrapper {
  max-width: 760px;
}

.restaurant-page .search-input {
  min-height: 52px;
  border-radius: 16px;
  padding-inline-start: 46px;
  background: #202020;
  font-size: 15px;
}

.restaurant-page .filter-bar {
  border-bottom-color: rgba(255,255,255,0.08);
}

.restaurant-page .menu-content {
  padding-top: clamp(24px, 4vw, 40px);
}

.restaurant-page .menu-section-title {
  font-size: clamp(20px, 3vw, 25px);
}

.restaurant-page .menu-item {
  min-height: 156px;
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 9px 28px rgba(0,0,0,0.17);
}

.restaurant-page .menu-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.28), 0 0 0 1px color-mix(in srgb, var(--public-accent) 13%, transparent);
}

.restaurant-page .item-name {
  font-size: clamp(16px, 2vw, 18px);
}

.restaurant-page .item-desc {
  color: #bdbdbd;
}

.restaurant-page .item-price,
.restaurant-page .item-promo-price {
  font-size: 20px;
  text-shadow: 0 4px 16px color-mix(in srgb, var(--public-accent) 18%, transparent);
}

.restaurant-page .floating-cart {
  min-width: min(410px, calc(100vw - 28px));
  justify-content: space-between;
  padding-inline: 18px 20px;
  border-radius: 16px;
}

@media (max-width: 640px) {
  .hero > .container {
    padding-top: 58px !important;
    padding-bottom: 58px !important;
  }

  .hero-title {
    font-size: clamp(34px, 11vw, 52px) !important;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
  }

  .restaurant-page .rest-hero {
    height: 320px !important;
  }

  .restaurant-page .rest-hero-content h1 {
    font-size: 30px !important;
  }

  .restaurant-page .rest-meta-pill,
  .restaurant-page .ig-link {
    font-size: 11px;
  }

  .restaurant-page .menu-item {
    min-height: 0;
  }

  .restaurant-page .floating-cart {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 768px) {
  .restaurant-page .rest-sidebar {
    max-height: min(88vh, 720px);
    border-top-color: color-mix(in srgb, var(--public-accent) 44%, transparent);
  }

  .restaurant-page .rest-sidebar-header {
    min-height: 62px;
    padding-inline: 16px;
  }

  .restaurant-page .sidebar-cart-section,
  .restaurant-page .sidebar-restaurants-section,
  .restaurant-page .sidebar-links-section {
    padding-inline: 14px !important;
  }

  .restaurant-page .sidebar-cart-items {
    max-height: min(31vh, 250px) !important;
  }

  .restaurant-page .sb-cart-item {
    min-height: 68px;
    padding: 11px 10px;
  }
}

@media (max-width: 380px) {
  .restaurant-page .sb-cart-item__controls {
    gap: 3px;
  }

  .restaurant-page .sb-cart-item__controls button {
    width: 28px;
    height: 28px;
  }

  .restaurant-page .sb-cart-item__remove {
    width: 24px !important;
  }
}

/* â•â• PROFESSIONAL ICON SYSTEM â•â•
   Icons are rendered as local inline SVGs so their weight, baseline and
   rendering stay consistent across browsers and operating systems. */
.category-icon-svg,
.cat-icon > svg {
  display: block;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
}

.step-svg-icon,
.why-icon-box,
.hero-stat-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-svg-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  color: var(--gold);
  border: 1px solid rgba(232, 160, 32, 0.24);
  border-radius: 16px;
  background: rgba(232, 160, 32, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.step-card:hover .step-svg-icon {
  transform: translateY(-3px);
  border-color: rgba(232, 160, 32, 0.52);
  background: rgba(232, 160, 32, 0.14);
}

.step-svg-icon svg,
.why-icon-box svg,
.hero-stat-pill-icon svg {
  width: 24px;
  height: 24px;
}

.why-icon-box {
  width: 54px !important;
  height: 54px !important;
  margin: 0 auto 17px;
  border: 1px solid rgba(232, 160, 32, 0.22);
  border-radius: 16px !important;
  background: rgba(232, 160, 32, 0.08) !important;
  color: var(--gold);
}

.hero-stat-pill-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  color: var(--gold);
  border: 1px solid rgba(232, 160, 32, 0.2);
  border-radius: 12px;
  background: rgba(232, 160, 32, 0.08);
}

.hero-stat-pill-icon svg {
  width: 19px;
  height: 19px;
}

.restaurant-page .rest-meta-pill svg,
.restaurant-page .search-icon,
.restaurant-page .search-clear svg,
.restaurant-page .cart-checkout-btn svg,
.restaurant-page .submit-btn svg {
  flex: 0 0 auto;
}

.restaurant-page .delivery-pill .pill-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.restaurant-page .cart-count-bubble {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--public-accent) 12%, transparent);
}

@media (max-width: 520px) {
  .step-svg-icon,
  .why-icon-box {
    width: 50px !important;
    height: 50px !important;
  }
}

/* â•â• HOMEPAGE EXPERIENCE PASS â•â• */
body.homepage .hero {
  min-height: min(720px, calc(100svh - 64px)) !important;
  display: flex;
  align-items: center;
  isolation: isolate;
}

body.homepage .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 27%, rgba(232,160,32,0.15), transparent 19rem),
    linear-gradient(90deg, rgba(0,0,0,0.18), transparent 42%);
}

body.homepage .hero > .container {
  width: 100%;
  padding-top: clamp(68px, 10vh, 104px) !important;
  padding-bottom: clamp(54px, 8vh, 88px) !important;
}

body.homepage .hero-open-badge {
  margin-bottom: 24px;
  letter-spacing: 0.15px;
}

body.homepage .hero-title {
  max-width: 700px;
  font-size: clamp(42px, 6.6vw, 78px) !important;
  line-height: 0.98;
}

body.homepage .hero-sub {
  max-width: 510px;
  margin-bottom: 0;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.65;
}

body.homepage .home-search-container {
  max-width: 590px;
  margin-top: 28px;
}

body.homepage .home-search-wrapper {
  min-height: 62px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(18,18,18,0.68);
  box-shadow: 0 14px 44px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.06);
}

body.homepage .home-search-wrapper::after {
  content: 'Rechercher';
  position: absolute;
  right: 16px;
  padding: 5px 9px;
  color: rgba(255,255,255,0.42);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  pointer-events: none;
}

body.homepage .home-search-input {
  min-height: 60px;
  padding-right: 112px;
  font-size: 15px;
}

body.homepage .hero-stats-new {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 900px;
  margin-top: 36px;
}

body.homepage .hero-stat-pill {
  min-width: 0;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(18,18,18,0.54);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
}

body.homepage .hero-stat-pill-val {
  font-size: 16px;
  line-height: 1.1;
}

body.homepage .hero-stat-pill-lbl {
  margin-top: 4px;
  color: rgba(255,255,255,0.55);
  font-size: 10px;
  line-height: 1.25;
}

body.homepage .restaurants-section {
  padding: clamp(68px, 8vw, 108px) 0 !important;
  background: linear-gradient(180deg, var(--bg, #111), #151515 48%, var(--bg, #111));
}

body.homepage .restaurants-section > .container {
  position: relative;
  z-index: 1;
}

body.homepage .restaurants-section > .container > div:first-child {
  margin-bottom: clamp(32px, 5vw, 54px) !important;
}

body.homepage #restaurantsGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: clamp(16px, 2.4vw, 26px) !important;
}

body.homepage .rest-card-new {
  min-height: 470px;
  border-radius: 22px;
  background: #1a1a1a;
  box-shadow: 0 15px 40px rgba(0,0,0,0.22);
}

body.homepage .rest-card-new:hover {
  transform: translateY(-7px);
}

body.homepage .rest-img-wrap {
  height: 248px;
}

body.homepage .rest-img-tag {
  top: 16px;
  right: 16px;
  padding: 6px 10px;
  letter-spacing: 1px;
  background: rgba(12,12,12,0.66);
  color: #f4c66a;
  border: 1px solid rgba(232,160,32,0.3);
  backdrop-filter: blur(10px);
}

body.homepage .rest-status-badge {
  bottom: 16px;
  left: 16px;
  padding: 7px 11px;
}

body.homepage .rest-card-body {
  padding: 20px 20px 19px;
}

body.homepage .rest-card-name {
  font-size: 23px;
  line-height: 1.1;
}

body.homepage .rest-card-cuisine {
  min-height: 20px;
  margin-bottom: 18px;
}

body.homepage .rest-card-metas {
  gap: 9px 14px;
  margin-bottom: 20px;
}

body.homepage .rest-card-meta {
  color: #a9a9a9;
  font-size: 11px;
}

body.homepage .rest-card-meta svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--gold);
}

body.homepage .rest-card-btn {
  min-height: 46px;
  border-radius: 12px;
}

.rest-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  flex-direction: column;
  color: var(--rest-accent, var(--gold));
  background: linear-gradient(145deg, color-mix(in srgb, var(--rest-accent, var(--gold)) 18%, #1b1b1b), #151515);
}

.rest-image-fallback svg {
  width: 58px;
  height: 58px;
  opacity: 0.64;
}

.rest-image-fallback span {
  max-width: 80%;
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-empty-state {
  grid-column: 1 / -1;
  padding: 72px 20px;
  color: var(--text3);
  text-align: center;
}

.home-empty-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
  color: var(--gold);
  border: 1px solid rgba(232,160,32,0.22);
  border-radius: 20px;
  background: rgba(232,160,32,0.08);
}

.home-empty-state-icon svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 820px) {
  body.homepage .hero-stats-new {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.homepage #restaurantsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  body.homepage .hero {
    min-height: 720px !important;
  }

  body.homepage .hero > .container {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  body.homepage .hero-title {
    font-size: clamp(38px, 12vw, 54px) !important;
  }

  body.homepage .home-search-wrapper::after {
    display: none;
  }

  body.homepage .home-search-input {
    padding-right: 52px;
  }

  body.homepage .hero-stats-new {
    gap: 8px;
  }

  body.homepage .hero-stat-pill {
    min-height: 66px;
    padding: 10px;
  }

  body.homepage #restaurantsGrid {
    grid-template-columns: 1fr !important;
  }

  body.homepage .rest-card-new {
    min-height: 0;
  }

  body.homepage .rest-img-wrap {
    height: 218px;
  }
}

/* ── Homepage restaurant grid: balanced with one or many restaurants ── */
body.homepage #restaurantsGrid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 340px)) !important;
  justify-content: center;
  align-items: stretch;
}

body.homepage .rest-card-new {
  width: 100%;
  min-width: 0;
}

body.homepage .rest-card-btn {
  flex: 0 0 48px;
  min-height: 48px;
  height: 48px;
  padding: 0 14px;
  overflow: hidden;
}

body.homepage .rest-card-btn svg {
  width: 1.1em;
  height: 1.1em;
  max-width: 20px;
  max-height: 20px;
  flex: 0 0 auto;
}

@media (max-width: 820px) {
  body.homepage #restaurantsGrid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 340px)) !important;
  }
}

@media (max-width: 560px) {
  body.homepage #restaurantsGrid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
