/* =========================================================
   Online Menu — Public Pizza Shop Theme
   ========================================================= */
:root {
  --ink: #1a1410;
  --ink-soft: #3d3229;
  --paper: #faf7f2;
  --paper-2: #f3ece3;
  --surface: #ffffff;
  --accent: #e1306c;
  --accent-dark: #c13584;
  --ig-1: #833ab4;
  --ig-2: #c13584;
  --ig-3: #e1306c;
  --ig-4: #fd1d1d;
  --ig-5: #f77737;
  --ig-gradient: linear-gradient(45deg, #833ab4 0%, #c13584 30%, #e1306c 55%, #fd1d1d 75%, #f77737 100%);
  --ig-gradient-soft: linear-gradient(135deg, rgba(131, 58, 180, 0.14), rgba(225, 48, 108, 0.12), rgba(247, 119, 55, 0.12));
  --gold: #d4a017;
  --olive: #4a5d3a;
  --line: rgba(26, 20, 16, 0.1);
  --shadow: 0 18px 50px rgba(26, 20, 16, 0.12);
  --radius: 18px;
  --nav-h: 76px;
  --tabbar-h: 64px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-price: "Space Grotesk", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(131, 58, 180, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(225, 48, 108, 0.12), transparent 50%),
    radial-gradient(700px 400px at 80% 20%, rgba(247, 119, 55, 0.1), transparent 45%),
    linear-gradient(180deg, #fffdf9 0%, var(--paper) 40%, #fff 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  font-weight: 700;
}

.text-muted-soft {
  color: var(--ink-soft) !important;
}

.btn-accent {
  --bs-btn-color: #fff;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: transparent;
  --bs-btn-active-border-color: transparent;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  background-image: var(--ig-gradient);
  background-size: 140% 140%;
  border: 0 !important;
  box-shadow: 0 10px 24px rgba(193, 53, 132, 0.35);
  transition: filter 0.2s ease, transform 0.2s ease, background-position 0.3s ease;
}

.btn-accent:hover,
.btn-accent:focus,
.btn-accent:active {
  color: #fff !important;
  filter: brightness(1.06);
  background-image: var(--ig-gradient);
  background-position: 100% 50%;
  transform: translateY(-1px);
}

.btn-accent:disabled,
.btn-accent.disabled {
  filter: grayscale(0.25);
  opacity: 0.65;
  box-shadow: none;
}

.btn-ghost {
  border-radius: 999px;
  font-weight: 700;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.35rem;
}

.btn-ghost:hover {
  background: #fff;
  border-color: var(--ink);
}

.btn-promo {
  border-radius: 999px;
  font-weight: 700;
  padding: 0.75rem 1.35rem;
  background: #000;
  color: #fff;
  border: 1.5px solid #000;
}

.btn-promo:hover,
.btn-promo:focus,
.btn-promo:active {
  background: #1a1a1a !important;
  color: #fff !important;
  border-color: #1a1a1a !important;
}

.btn-promo.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.promo-list {
  display: grid;
  gap: 0.75rem;
}

.promo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.promo-code {
  font-family: var(--font-price);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--paper-2);
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
}

/* ---------- Top bar ---------- */
.shop-topbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(250, 247, 242, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.shop-topbar.is-scrolled {
  background: #000;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.shop-topbar.is-scrolled .shop-name {
  color: #fff;
}

.shop-topbar.is-scrolled .shop-address {
  color: rgba(255, 255, 255, 0.65);
}

.shop-topbar.is-scrolled .topbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.72);
}

.shop-topbar.is-scrolled .topbar-nav .nav-link:hover,
.shop-topbar.is-scrolled .topbar-nav .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.shop-topbar.is-scrolled .lang-switch {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.shop-topbar.is-scrolled .lang-switch button {
  color: rgba(255, 255, 255, 0.7);
}

.shop-topbar.is-scrolled .lang-switch button.active {
  background: #fff;
  color: #000;
}

.shop-topbar.is-scrolled .badge-open {
  background: rgba(255, 255, 255, 0.12);
  color: #b8f0c4;
}

.shop-topbar.is-scrolled .cart-pill {
  background: #fff;
  color: #000;
}

.shop-topbar.is-scrolled .cart-pill:hover {
  background: #f0f0f0;
  color: #000;
}

.shop-topbar.is-scrolled .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.shop-topbar.is-scrolled .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  color: #fff;
}

.shop-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.shop-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ig-gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(193, 53, 132, 0.35);
}

.shop-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}

.shop-address {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0.15rem 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.topbar-nav .nav-link {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 0.45rem 0.85rem !important;
  border-radius: 999px;
  transition: 0.2s ease;
}

.topbar-nav .nav-link:hover,
.topbar-nav .nav-link.active {
  color: var(--ink);
  background: rgba(26, 20, 16, 0.06);
}

.cart-pill {
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cart-pill:hover {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}

.cart-count {
  min-width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--ig-gradient);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(50vh - var(--nav-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 20, 16, 0.25) 0%, rgba(26, 20, 16, 0.78) 100%),
    url("https://images.unsplash.com/photo-1513104890138-7c749659a591?auto=format&fit=crop&w=1800&q=80")
      center / cover no-repeat;
  transform: scale(1.02);
  animation: heroZoom 14s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2.25rem 0 1.75rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.hero-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--ig-gradient);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  max-width: 12ch;
  margin-bottom: 0.65rem;
  animation: riseIn 0.8s ease both;
}

.hero p {
  font-size: 0.98rem;
  max-width: 42ch;
  opacity: 0.92;
  margin-bottom: 1.1rem;
  animation: riseIn 0.9s 0.1s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: riseIn 1s 0.18s ease both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.order-mode-bar {
  margin-top: 1.15rem;
  display: inline-flex;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.3rem;
  backdrop-filter: blur(10px);
  animation: riseIn 1.05s 0.22s ease both;
}

.order-mode-bar .btn {
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
}

.order-mode-bar .btn.active {
  background: #fff;
  color: var(--ink);
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 0.4rem;
}

.section-head p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 48ch;
}

/* ---------- Category chips ---------- */
.category-rail {
  position: sticky;
  top: var(--nav-h);
  z-index: 20;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  margin-bottom: 1.5rem;
}

.category-scroll {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  flex: 0 0 auto;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  transition: 0.2s ease;
}

.cat-chip:hover,
.cat-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---------- Menu grid ---------- */
.menu-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1200px) {
  .menu-layout {
    grid-template-columns: 1fr 340px;
    align-items: start;
  }

  .cart-desktop {
    display: block !important;
  }
}

.menu-group {
  scroll-margin-top: calc(var(--nav-h) + 70px);
  margin-bottom: 2.75rem;
}

.menu-group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.menu-group-title h3 {
  margin: 0;
  font-size: 1.45rem;
}

.menu-group-title span {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.menu-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 1.25rem 1.15rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  margin-bottom: 1rem;
}

.menu-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.menu-item-img {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--paper-2);
}

.menu-item-body h4 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.menu-item-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.menu-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
}

.tag.veg { background: rgba(74, 93, 58, 0.12); color: var(--olive); }
.tag.hot { background: rgba(225, 48, 108, 0.12); color: var(--accent); }
.tag.new { background: rgba(212, 160, 23, 0.18); color: #8a6a00; }

.menu-item-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}

.price,
.cart-line-price,
[data-cart-subtotal],
[data-cart-fee],
[data-cart-total],
#floatingTotal,
#modalTotal,
#coSubtotal,
#coFee,
#coTotal,
.summary-totals .grand,
.cart-row.total {
  font-family: var(--font-price);
  font-variant-numeric: tabular-nums;
}

.price {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.btn-add {
  border: 0;
  background: var(--ink);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  line-height: 1;
  transition: 0.2s ease;
}

.btn-add:hover {
  background: var(--ig-gradient);
  color: #fff;
  transform: scale(1.05);
}

@media (max-width: 575.98px) {
  .menu-item {
    grid-template-columns: 72px 1fr;
  }
  .menu-item-img {
    width: 72px;
    height: 72px;
  }
  .menu-item-side {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ---------- Desktop cart panel ---------- */
.cart-desktop {
  display: none;
  position: sticky;
  top: calc(var(--nav-h) + 88px);
}

.cart-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cart-panel-head {
  padding: 1.15rem 1.2rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-panel-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.cart-panel-body {
  padding: 1rem 1.1rem;
  max-height: 48vh;
  overflow-y: auto;
}

.cart-empty {
  text-align: center;
  padding: 2rem 0.5rem;
  color: var(--ink-soft);
}

.cart-empty i {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.6rem;
  opacity: 0.5;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 1.25rem 1.15rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  margin-bottom: 0.75rem;
}

.cart-line:last-child {
  margin-bottom: 0;
}

.cart-line:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.cart-line-title {
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0;
}

.cart-line-meta {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0;
}

.cart-line-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 700;
  line-height: 1;
}

.cart-line-price {
  font-weight: 800;
  font-size: 0.92rem;
}

.cart-panel-foot {
  padding: 1.1rem 1.2rem 1.25rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--paper));
}

.cart-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}

.cart-row.total {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 0.55rem;
}

/* ---------- Offcanvas cart ---------- */
.offcanvas-cart {
  --bs-offcanvas-height: min(78vh, 640px);
  border-radius: 22px 22px 0 0;
}

.offcanvas-cart .offcanvas-header {
  border-bottom: 1px solid var(--line);
}

.offcanvas-cart .offcanvas-footer {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

/* ---------- Modal customize ---------- */
.modal-content {
  border: 0;
  border-radius: 22px;
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 1.25rem;
}

.modal-body {
  padding: 1.25rem;
}

.modal-footer {
  border-top: 1px solid var(--line);
  padding: 1rem 1.25rem;
}

.option-block {
  margin-bottom: 1.25rem;
}

.option-block h6 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.option-pill {
  position: relative;
}

.option-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-pill label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  transition: 0.15s ease;
  user-select: none;
}

.option-pill input:checked + label {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.option-pill label .extra {
  font-weight: 600;
  opacity: 0.75;
  font-size: 0.78rem;
}

.addon-list {
  display: grid;
  gap: 0.45rem;
}

.addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.addon-row:has(input:checked) {
  border-color: var(--accent);
  background: rgba(225, 48, 108, 0.06);
}

.addon-row input {
  margin-right: 0.55rem;
}

/* ---------- Checkout ---------- */
.checkout-page {
  padding: 2rem 0 4rem;
}

.checkout-hero {
  margin-bottom: 1.75rem;
}

.checkout-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.35rem;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 8px 28px rgba(26, 20, 16, 0.05);
}

.form-card h2 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.form-label {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.form-control,
.form-select {
  border-radius: 12px;
  border-color: var(--line);
  padding: 0.7rem 0.9rem;
  background: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(193, 53, 132, 0.18);
}

.fulfillment-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.fulfillment-option {
  position: relative;
}

.fulfillment-option input {
  position: absolute;
  opacity: 0;
}

.fulfillment-option label {
  display: block;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  cursor: pointer;
  background: var(--paper);
  transition: 0.15s ease;
  height: 100%;
}

.fulfillment-option input:checked + label {
  border-color: var(--accent);
  background: rgba(225, 48, 108, 0.06);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.fulfillment-option strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.2rem;
}

.fulfillment-option span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.pay-options {
  display: grid;
  gap: 0.65rem;
}

.pay-option {
  position: relative;
}

.pay-option input {
  position: absolute;
  opacity: 0;
}

.pay-option label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  cursor: pointer;
  background: #fff;
}

.pay-option input:checked + label {
  border-color: var(--ink);
  background: rgba(26, 20, 16, 0.04);
}

.pay-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  font-size: 1.15rem;
}

.order-summary {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
}

.summary-line:last-of-type {
  border-bottom: 0;
}

.summary-totals .row-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}

.summary-totals .grand {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 1.25rem;
  font-weight: 800;
}

.card-fields {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

.card-fields.show {
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  background: #17120f;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer .brand {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.site-footer a:hover {
  color: #fff;
}

/* ---------- Success toast / floating cart (mobile) ---------- */
.floating-cart {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 1030;
  width: min(920px, calc(100% - 1.5rem));
  border: 0;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.floating-cart.show {
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 1200px) {
  .floating-cart {
    display: none !important;
  }
}

/* =========================================================
   Mobile app chrome (phone / tablet portrait)
   ========================================================= */
@media (max-width: 991.98px) {
  body {
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 8px);
  }

  body.has-mobile-app {
    --nav-h: 60px;
  }

  body.has-mobile-app .shop-topbar {
    height: 60px;
  }

  body.has-mobile-app .shop-topbar .shop-address,
  body.has-mobile-app .shop-topbar .topbar-nav,
  body.has-mobile-app .shop-topbar .badge-open,
  body.has-mobile-app .shop-topbar .cart-pill,
  body.has-mobile-app .shop-topbar .btn-ghost,
  body.has-mobile-app .desktop-only {
    display: none !important;
  }

  body.has-mobile-app .shop-topbar .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.has-mobile-app .shop-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1rem;
  }

  body.has-mobile-app .shop-name {
    font-size: 1.05rem;
  }

  body.has-mobile-app .category-rail {
    top: 60px;
  }

  body.has-mobile-app .floating-cart {
    display: none !important;
  }

  body.has-mobile-app .site-footer {
    padding-bottom: 1.5rem;
  }

  /* Bottom app tab bar */
  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding: 0.35rem 0.5rem env(safe-area-inset-bottom, 0px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
    background: rgba(12, 10, 9, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28);
  }

  .mobile-tabbar .tab-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 14px;
    padding: 0.35rem 0.25rem;
    min-height: 52px;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .mobile-tabbar .tab-item i {
    font-size: 1.25rem;
    line-height: 1;
  }

  .mobile-tabbar .tab-item.active,
  .mobile-tabbar .tab-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-tabbar .tab-item.active i {
    color: #f77737;
  }

  .mobile-tabbar .tab-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 22px);
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--ig-gradient);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    line-height: 1;
  }

  .mobile-tabbar .tab-badge:empty,
  .mobile-tabbar .tab-badge[data-empty="1"] {
    display: none;
  }

  .offcanvas-cart {
    --bs-offcanvas-height: min(78vh, 640px);
    border-radius: 22px 22px 0 0;
    border: 0;
  }

  .offcanvas-cart.offcanvas-bottom {
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 992px) {
  .mobile-tabbar {
    display: none !important;
  }

  .offcanvas-cart.offcanvas-bottom {
    --bs-offcanvas-height: 100vh;
    border-radius: 0;
    bottom: 0;
  }
}

/* ---------- Utility ---------- */
.badge-open {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(74, 93, 58, 0.12);
  color: var(--olive);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.badge-open::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3d8b4f;
  box-shadow: 0 0 0 4px rgba(61, 139, 79, 0.2);
  animation: pulseDot 1.6s ease infinite;
}

@keyframes pulseDot {
  50% { box-shadow: 0 0 0 7px rgba(61, 139, 79, 0); }
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem;
}

.qty-stepper button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--paper-2);
  font-weight: 800;
}

.qty-stepper span {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 800;
}

/* ---------- Language switcher ---------- */
.lang-switch {
  display: inline-flex;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.lang-switch button {
  border: 0;
  background: transparent;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.65rem;
  color: var(--ink-soft);
}

.lang-switch button.active {
  background: var(--ink);
  color: #fff;
}

/* ---------- Toast ---------- */
.om-toast-host {
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  right: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.om-toast {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  transform: translateY(-8px);
  opacity: 0;
  transition: .25s ease;
  font-weight: 600;
  font-size: .9rem;
}

.om-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.om-toast i { color: #7ddea0; }

/* ---------- Skeleton ---------- */
.skeleton-wrap { margin-bottom: 1rem; }

.skel {
  background: linear-gradient(90deg, #ebe4da 25%, #f7f2ea 50%, #ebe4da 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease infinite;
  border-radius: 14px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skel-line { height: 14px; margin-bottom: 0.55rem; }
.skel-card {
  height: 96px;
  margin-bottom: 0.85rem;
  border-radius: var(--radius);
}

#menuMainContent.is-loading { opacity: 0; height: 0; overflow: hidden; }
#menuMainContent.is-ready { animation: riseIn .45s ease both; }

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  color: var(--ink-soft);
  padding: 1.5rem 0.75rem;
}

.empty-state i {
  font-size: 1.8rem;
  opacity: .45;
  display: block;
  margin-bottom: .5rem;
}

.empty-panel {
  border: 1.5px dashed var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.65);
  padding: 2rem 1.25rem;
  text-align: center;
}

/* ---------- Share / QR strip ---------- */
.share-strip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.share-url-box {
  font-family: var(--font-price);
  font-size: .85rem;
  background: var(--paper-2);
  border-radius: 12px;
  padding: .7rem .85rem;
  word-break: break-all;
}

.share-qr {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px;
}

/* ---------- Tip pills ---------- */
.tip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.tip-grid .btn {
  border-radius: 999px;
  font-weight: 700;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
}

.tip-grid .btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---------- Dark receipt ---------- */
.receipt-page {
  min-height: 100vh;
  background:
    radial-gradient(700px 400px at 15% 0%, rgba(131, 58, 180, 0.28), transparent 55%),
    radial-gradient(600px 350px at 90% 10%, rgba(225, 48, 108, 0.22), transparent 50%),
    radial-gradient(500px 300px at 50% 100%, rgba(247, 119, 55, 0.12), transparent 45%),
    #12100e;
  color: #f4efe8;
  padding: 2rem 0 3.5rem;
}

.receipt-page .shop-topbar {
  background: rgba(18,16,14,.9);
  border-bottom-color: rgba(255,255,255,.08);
}

.receipt-page .shop-name,
.receipt-page .topbar-nav .nav-link {
  color: #f4efe8;
}

.receipt-page .shop-address,
.receipt-page .topbar-nav .nav-link {
  color: rgba(244,239,232,.7);
}

.receipt-page .btn-ghost {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}

.receipt-card {
  background: #1c1815;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

.receipt-card h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: .35rem;
}

.receipt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .85rem;
  font-size: .86rem;
  color: rgba(244,239,232,.7);
  margin-bottom: 1.25rem;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px dashed rgba(255,255,255,.1);
  font-size: .92rem;
}

.receipt-line:last-child { border-bottom: 0; }

.receipt-totals .row-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: .35rem;
  color: rgba(244,239,232,.7);
}

.receipt-totals .grand {
  display: flex;
  justify-content: space-between;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-family: var(--font-price);
  font-size: 1.3rem;
  font-weight: 700;
}

.qr-panel {
  text-align: center;
  background: #241f1b;
  border-radius: 20px;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,.08);
}

.qr-panel img {
  width: 180px;
  height: 180px;
  margin: 0 auto 0.85rem;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
}

/* ---------- Tracking ---------- */
.track-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.track-steps li {
  position: relative;
  padding: 0 0 1.35rem 2rem;
  color: rgba(244,239,232,.45);
}

.track-steps li:last-child { padding-bottom: 0; }

.track-steps li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
}

.track-steps li::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 1rem;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,.1);
}

.track-steps li:last-child::after { display: none; }

.track-steps li.done,
.track-steps li.current {
  color: #f4efe8;
}

.track-steps li.done::before,
.track-steps li.current::before {
  background: var(--ig-gradient);
  box-shadow: 0 0 0 4px rgba(225, 48, 108, 0.25);
}

.track-steps li.current {
  font-weight: 700;
}

.track-steps li strong { display: block; }
.track-steps li span { font-size: .82rem; opacity: .7; font-weight: 500; }
