/* ============================================================
   PIZZA LIST MENU — style.css
   Fonts: Oswald (headings) · Nunito (body)
   ============================================================ */

/* ── 1. RESET + BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:       #D92B3A;
  --orange:    #F5841F;
  --yellow:    #F5C518;
  --bg:        #FFFAF7;
  --surface:   #FFFFFF;
  --dark:      #1A0F08;
  --text:      #1A0F08;
  --text2:     #5C3D2E;
  --text3:     #9E7B68;
  --border:    rgba(217,43,58,.12);
  --border2:   rgba(217,43,58,.35);
  --shadow:    0 4px 20px rgba(217,43,58,.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.18);
  --radius:    16px;
  --navbar-h:  68px;
  /* theme-dependent navbar */
  --navbar-bg: rgba(255,255,255,.92);
  --navbar-border: rgba(217,43,58,.12);
  /* info strip */
  --strip-bg: #ffffff;
}

[data-theme="dark"] {
  --bg:        #120A06;
  --surface:   #1E120A;
  --dark:      #F5F0E8;
  --text:      #F0E8DE;
  --text2:     #C8A890;
  --text3:     #7A6055;
  --border:    rgba(245,197,24,.10);
  --border2:   rgba(245,197,24,.25);
  --shadow:    0 4px 20px rgba(0,0,0,.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.6);
  --navbar-bg: rgba(18,10,6,.92);
  --navbar-border: rgba(245,197,24,.12);
  --strip-bg: #1A100A;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ── 2. SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 100px; }

/* ── 3. NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--navbar-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  transition: box-shadow .25s, background .3s, border-color .3s;
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-icon {
  width: 40px; height: 40px;
  background: var(--red);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.nav-logo-icon svg { width: 24px; height: 24px; }

.nav-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--dark);
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text2);
  font-size: .875rem;
  font-weight: 600;
  transition: color .2s;
}

.nav-phone:hover { color: var(--red); }
.nav-phone svg { width: 16px; height: 16px; flex-shrink: 0; }

.nav-cart {
  position: relative;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border2);
  border-radius: 12px;
  color: var(--dark);
  transition: background .2s, border-color .2s, color .2s;
}

.nav-cart:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.nav-cart svg { width: 20px; height: 20px; }

.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  width: 18px; height: 18px;
  background: var(--red);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  border-radius: 50%;
  display: none;
  align-items: center; justify-content: center;
  border: 2px solid #fff;
  line-height: 1;
}

.cart-badge.visible { display: flex; }

/* ── Theme toggle button ── */
.theme-toggle {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border2);
  border-radius: 10px;
  color: var(--dark);
  transition: background .2s, border-color .2s, color .2s;
  cursor: pointer;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--red); border-color: var(--red); color: #fff; }
.theme-toggle svg { width: 18px; height: 18px; }
/* Light: show sun, hide moon */
.icon-moon { display: none; }
.icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun  { display: none; }

@media (max-width: 680px) {
  .nav-phone { display: none; }
  .navbar { padding: 0 4%; }
}

/* ── 4. HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .5;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,15,8,.3), rgba(26,15,8,.85));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 5%;
  padding-top: calc(var(--navbar-h) + 32px);
}

.hero-eyebrow {
  display: inline-block;
  color: var(--yellow);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  animation: fadeUp .6s ease both;
}

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  white-space: pre-line;
  margin-bottom: 20px;
  animation: fadeUp .7s .1s ease both;
}

.hero-subtitle {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 36px;
  animation: fadeUp .7s .2s ease both;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp .7s .3s ease both;
}

.hero-order-btn {
  padding: 16px 40px;
  background: var(--red);
  color: #fff;
  border-radius: 100px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: background .2s, transform .2s;
}

.hero-order-btn:hover {
  background: #b8202e;
  transform: translateY(-2px);
}

.hero-info-btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 28px;
  border: 1.5px solid rgba(255,255,255,.5);
  color: #fff;
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-size: .9375rem;
  font-weight: 600;
  transition: border-color .2s, background .2s;
}

.hero-info-btn:hover {
  border-color: #fff;
  background: rgba(255,255,255,.08);
}

/* ── 5. INFO STRIP ─────────────────────────────────────────── */
.info-strip {
  background: var(--strip-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 5%;
  transition: background .3s;
}

.info-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

.info-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  margin: 0 32px;
}

.info-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.info-icon {
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.info-label {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text3);
}

.info-value {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
}

.info-value a { color: var(--dark); transition: color .2s; }
.info-value a:hover { color: var(--red); }

@media (max-width: 860px) {
  .info-inner { max-width: 100%; }
  .info-divider { margin: 0 20px; }
}

@media (max-width: 640px) {
  .info-strip { padding: 28px 5%; }
  .info-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px 12px;
  }
  .info-divider { display: none; }
}

@media (max-width: 380px) {
  .info-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ── 6. MENU SECTION ───────────────────────────────────────── */
.menu-section {
  padding: 64px 5% 80px;
  max-width: 1400px;
  margin: 0 auto;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(217,43,58,.08);
  color: var(--red);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
}

/* ── 7. CATEGORY TABS ──────────────────────────────────────── */
.cat-tabs {
  position: sticky;
  top: var(--navbar-h);
  background: var(--bg);
  z-index: 80;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin: 0 -5% 32px;
  padding-left: 5%;
  padding-right: 5%;
}

.cat-tabs-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.cat-tabs-inner::-webkit-scrollbar { display: none; }

.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border: 1.5px solid rgba(217,43,58,.2);
  border-radius: 100px;
  font-size: .8125rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: var(--text2);
  background: transparent;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.cat-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.cat-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.cat-btn .cat-icon { opacity: .7; }

/* ── 8. MENU GRID ──────────────────────────────────────────── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ── 9. MENU CARD ──────────────────────────────────────────── */
.menu-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(217,43,58,.08);
  box-shadow: 0 2px 8px rgba(26,15,8,.06);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  opacity: 0;
}

.menu-card.visible {
  opacity: 1;
  animation: cardFadeIn .4s ease both;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img-wrap {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
}

.card-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.menu-card:hover .card-img {
  transform: scale(1.06);
}

.card-price-tag {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--yellow);
  color: var(--dark);
  padding: 4px 10px;
  border-radius: 100px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}

.badge-popular  { background: var(--red); }
.badge-chef     { background: var(--orange); }
.badge-seasonal { background: #5A8AC9; }
.badge-new      { background: #2ECC71; }

.card-img-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f8ece4, #f0d8cc);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-placeholder svg {
  width: 56px; height: 56px;
  opacity: .25;
}

.card-body {
  padding: 16px 18px;
}

.card-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.card-desc {
  font-size: .8125rem;
  color: var(--text3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
  line-height: 1.5;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--red);
  color: #fff;
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-size: .8125rem;
  font-weight: 700;
  transition: background .2s, transform .15s;
}

.add-btn:hover { background: #b8202e; transform: scale(1.03); }
.add-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.card-price-bottom {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--yellow);
}

/* ── 10. CART SIDEBAR ──────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 380px;
  max-width: 100vw;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  z-index: 301;
}

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

.cart-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cart-head-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
}

.cart-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text3);
  transition: border-color .2s, color .2s;
}

.cart-close:hover { border-color: var(--red); color: var(--red); }
.cart-close svg { width: 16px; height: 16px; }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

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

.cart-empty svg {
  width: 48px; height: 48px;
  margin: 0 auto 12px;
  opacity: .35;
}

.cart-empty p:first-of-type {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  color: var(--text2);
  margin-bottom: 4px;
}

.cart-empty p { font-size: .875rem; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

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

.cart-item-img {
  width: 60px; height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg,#f8ece4,#f0d8cc);
}

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

.cart-item-name {
  font-family: 'Oswald', sans-serif;
  font-size: .95rem;
  color: var(--dark);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: .8125rem;
  color: var(--red);
  font-weight: 700;
}

.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  color: var(--text3);
  transition: border-color .2s, color .2s, background .2s;
}

.qty-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.qty-num {
  font-weight: 700;
  font-size: .875rem;
  min-width: 24px;
  text-align: center;
  color: var(--dark);
}

.remove-item {
  color: var(--text3);
  padding: 4px;
  border-radius: 4px;
  transition: color .2s;
  margin-left: auto;
  flex-shrink: 0;
  align-self: flex-start;
}

.remove-item:hover { color: var(--red); }
.remove-item svg { width: 14px; height: 14px; }

.cart-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  font-size: .875rem;
  color: var(--text2);
  margin-bottom: 8px;
}

.cart-total {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 8px;
}

.cart-total-val { color: var(--red); }

.checkout-btn {
  width: 100%;
  padding: 14px;
  background: var(--red);
  color: #fff;
  border-radius: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 14px;
  transition: background .2s;
}

.checkout-btn:hover:not(:disabled) { background: #b8202e; }
.checkout-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── 11. ORDER MODAL ───────────────────────────────────────── */
.order-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.order-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.order-box {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(.97);
  transition: transform .4s cubic-bezier(.34,1.2,.64,1);
}

.order-overlay.open .order-box {
  transform: none;
}

.order-head {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.order-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark);
}

.order-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text3);
  transition: border-color .2s, color .2s;
}

.order-close:hover { border-color: var(--red); color: var(--red); }
.order-close svg { width: 16px; height: 16px; }

.order-form {
  padding: 20px 28px 28px;
}

.order-type-toggle {
  display: flex;
  gap: 0;
  border: 1.5px solid rgba(217,43,58,.2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
}

.type-btn {
  flex: 1;
  padding: 11px;
  text-align: center;
  font-size: .8125rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
  border-right: 1px solid rgba(217,43,58,.15);
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.type-btn:last-child { border-right: none; }

.type-btn.active {
  background: var(--red);
  color: #fff;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text3);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(217,43,58,.2);
  border-radius: 10px;
  font-size: .9rem;
  color: var(--dark);
  background: #fff;
  transition: border-color .2s;
  resize: vertical;
}

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

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.order-error {
  background: rgba(217,43,58,.08);
  border: 1px solid rgba(217,43,58,.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .8125rem;
  color: var(--red);
  margin-bottom: 14px;
}

.order-summary {
  background: var(--bg);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: .875rem;
  color: var(--text2);
  margin-bottom: 6px;
}

.summary-row:last-child { margin-bottom: 0; }

.summary-total {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 8px;
  color: var(--dark);
}

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

/* Payment options */
.payment-opts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pay-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid rgba(217,43,58,.2);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  font-size: .875rem;
  flex: 1;
}

.pay-opt:has(input:checked) {
  border-color: var(--red);
  background: rgba(217,43,58,.04);
}

.pay-opt input[type="radio"] {
  accent-color: var(--red);
  width: auto;
}

.order-submit {
  width: 100%;
  padding: 14px;
  background: var(--red);
  color: #fff;
  border-radius: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.order-submit:hover:not(:disabled) { background: #b8202e; }
.order-submit:disabled { opacity: .5; cursor: not-allowed; }

.order-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}

/* Order success */
.order-success {
  text-align: center;
  padding: 40px 28px;
}

.success-icon {
  width: 72px; height: 72px;
  background: #e8f8ee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-icon svg { width: 36px; height: 36px; color: #2ECC71; }

.order-success h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.order-success p { color: var(--text3); font-size: .9375rem; margin-bottom: 8px; }

.order-id {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  color: var(--red) !important;
  font-weight: 700;
}

/* ── 12. FOOTER ────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.8);
  padding: 56px 5% 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  font-size: .8125rem;
  color: rgba(255,255,255,.6);
  transition: border-color .2s, color .2s;
}

.footer-social-link:hover {
  border-color: rgba(255,255,255,.4);
  color: #fff;
}

.footer-col-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .875rem;
}

.footer-list a {
  color: rgba(255,255,255,.6);
  transition: color .2s;
}

.footer-list a:hover { color: #fff; }

.footer-list li { color: rgba(255,255,255,.6); }
.footer-list strong { color: rgba(255,255,255,.8); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-red { color: var(--red); }

/* ── 13. RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-drawer { width: 340px; }
}

@media (max-width: 768px) {
  .hero-content { padding: 0 6%; padding-top: calc(var(--navbar-h) + 24px); }
  .hero-subtitle { font-size: 1rem; }
  .hero-order-btn { padding: 14px 32px; }
  .hero-info-btn  { padding: 14px 22px; }
  .section-title  { font-size: 2rem; }
}

@media (max-width: 680px) {
  .menu-section { padding: 36px 4% 56px; }
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .section-title { font-size: 1.75rem; }
  .cat-tabs { margin: 0 -4% 20px; padding-left: 4%; padding-right: 4%; }
  .card-body { padding: 12px 14px; }
  .card-name { font-size: 1rem; }
  .card-desc { font-size: .75rem; margin-bottom: 10px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
}

@media (max-width: 480px) {
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-title { font-size: clamp(2rem, 9vw, 3rem); }
  .hero-cta { gap: 10px; }
  .hero-order-btn { padding: 13px 28px; font-size: .9rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .order-form { padding: 16px 18px 20px; }
  .order-head { padding: 18px 18px 14px; }
}

@media (max-width: 400px) {
  .menu-grid { grid-template-columns: 1fr; }
  .navbar { padding: 0 4%; }
  .nav-logo-text { font-size: 1.1rem; }
  .hero-title { font-size: clamp(1.9rem, 9vw, 2.8rem); }
  .menu-section { padding: 28px 4% 48px; }
  .card-footer { flex-wrap: wrap; gap: 8px; }
  .detail-btn, .add-btn { width: 100%; justify-content: center; }
}

/* ── 14. ANIMATIONS ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(32px); }
}

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

/* ── 15. MISC ──────────────────────────────────────────────── */
.hidden { display: none !important; }

/* Toast notifications */
.toast-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: all;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 14px 18px;
  min-width: 240px;
  max-width: 340px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  font-size: .875rem;
  color: var(--dark);
  animation: slideInRight .3s ease both;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.toast.out {
  animation: slideOutRight .3s ease both;
}

.toast-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast.success { border-left: 3px solid #2ECC71; }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid #5A8AC9; }

.toast-msg { flex: 1; }
.toast-title { font-weight: 700; margin-bottom: 2px; }
.toast-body  { color: var(--text3); font-size: .8125rem; }

/* No-image placeholder for cards */
.card-no-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fceee6 0%, #f5d9c9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-no-img svg { width: 52px; height: 52px; color: var(--red); opacity: .2; }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #f5ebe4 25%, #ffe8dc 50%, #f5ebe4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}

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

/* Category section headings */
.cat-section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  color: var(--dark);
  border-left: 4px solid var(--red);
  padding-left: 14px;
  margin: 32px 0 16px;
  grid-column: 1 / -1;
}

/* ── CARD detail button ───────────────────────────────────── */
.detail-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border: 1.5px solid rgba(217,43,58,.3);
  color: var(--red); border-radius: 100px;
  font-family: 'Nunito', sans-serif; font-size: .8125rem; font-weight: 700;
  transition: background .2s, color .2s, border-color .2s;
}
.detail-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.detail-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.nav-logo-img {
  height: 36px; width: auto; object-fit: contain; border-radius: 6px;
}

/* ── PRODUCT DETAIL MODAL ────────────────────────────────── */
.detail-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.detail-overlay.open { opacity: 1; pointer-events: all; }

.detail-box {
  background: var(--surface); border-radius: 22px;
  width: 100%; max-width: 900px; max-height: 90vh;
  overflow-y: auto; position: relative;
  transform: translateY(28px) scale(.97);
  transition: transform .4s cubic-bezier(.34,1.2,.64,1);
}
.detail-overlay.open .detail-box { transform: none; }

.detail-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 38px; height: 38px;
  background: var(--surface); backdrop-filter: blur(6px);
  border: 1.5px solid var(--border); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text3); transition: border-color .2s, color .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.detail-close:hover { border-color: var(--red); color: var(--red); }
.detail-close svg { width: 16px; height: 16px; }

.detail-inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }

.detail-gallery {
  display: flex; flex-direction: column;
  background: #f8f2ee; border-radius: 22px 0 0 22px; overflow: hidden;
  transition: background .3s;
}
[data-theme="dark"] .detail-gallery { background: #2A1A0E; }

.detail-main-img-wrap { flex: 1; min-height: 300px; overflow: hidden; }
.detail-main-img {
  width: 100%; height: 100%; object-fit: cover; min-height: 300px; transition: opacity .2s;
}
.detail-no-img {
  background: linear-gradient(135deg,#fceee6,#f5d9c9);
  display: flex; align-items: center; justify-content: center; min-height: 300px;
}
.detail-no-img svg { width: 72px; height: 72px; color: var(--red); opacity: .2; }

.detail-thumbs {
  display: flex; gap: 8px; padding: 12px;
  overflow-x: auto; background: rgba(0,0,0,.04); scrollbar-width: none;
}
.detail-thumbs::-webkit-scrollbar { display: none; }
.detail-thumb {
  width: 58px; height: 58px; border-radius: 8px; overflow: hidden;
  border: 2.5px solid transparent; flex-shrink: 0; transition: border-color .2s; cursor: pointer;
}
.detail-thumb.active { border-color: var(--red); }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-info { padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.detail-meta { display: flex; gap: 8px; flex-wrap: wrap; min-height: 22px; }
.detail-badge {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 100px;
  font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff;
}
.detail-name { font-family: 'Oswald', sans-serif; font-size: 1.9rem; font-weight: 700; color: var(--dark); line-height: 1.15; }
.detail-desc { font-size: .9375rem; color: var(--text2); line-height: 1.65; }
.detail-section-label {
  font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text3); margin-bottom: 8px;
}
.detail-sizes { margin-top: 4px; }
.detail-size-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.size-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 18px; border: 2px solid rgba(217,43,58,.2);
  border-radius: 12px; cursor: pointer; min-width: 76px;
  transition: border-color .2s, background .2s, color .2s;
}
.size-btn:hover { border-color: var(--red); }
.size-btn.active { border-color: var(--red); background: var(--red); color: #fff; }
.size-name { font-family: 'Oswald', sans-serif; font-size: .875rem; font-weight: 600; letter-spacing: .5px; }
.size-price { font-size: .8125rem; font-weight: 700; opacity: .85; }

.detail-ingredients { margin-top: 2px; }
.detail-ingred-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ingred-tag {
  display: inline-flex; align-items: center; padding: 5px 11px;
  background: rgba(217,43,58,.06); border: 1px solid rgba(217,43,58,.15);
  border-radius: 100px; font-size: .75rem; font-weight: 600; color: var(--text2);
}

.detail-allergens { margin-top: 2px; }
.detail-allergen-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.allergen-tag {
  display: inline-flex; align-items: center; padding: 4px 10px;
  background: rgba(245,132,31,.08); border: 1px solid rgba(245,132,31,.28);
  border-radius: 100px; font-size: .71875rem; font-weight: 700; color: #9A5000;
}
.detail-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--border); margin-top: auto; gap: 14px; flex-wrap: wrap;
}
.detail-price { font-family: 'Oswald', sans-serif; font-size: 1.9rem; font-weight: 700; color: var(--red); line-height: 1; }
.add-btn-detail { padding: 12px 28px; font-size: .9375rem; }

@media (max-width: 700px) {
  .detail-inner { grid-template-columns: 1fr; }
  .detail-gallery { border-radius: 22px 22px 0 0; }
  .detail-main-img, .detail-main-img-wrap, .detail-no-img { min-height: 220px; }
  .detail-info { padding: 20px; }
  .detail-name { font-size: 1.5rem; }
  .detail-price { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .detail-box { border-radius: 16px; }
  .detail-gallery { border-radius: 16px 16px 0 0; }
  .detail-main-img-wrap, .detail-no-img { min-height: 200px; }
}
