/* ==========================================================================
   Veg n Chaat — Order Page v2 Styles
   Self-contained stylesheet for the food ordering page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CUSTOM FONTS
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Magnetik";
  src: url("assets/fonts/Magnetik-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Magnetik";
  src: url("assets/fonts/Magnetik-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Magnetik";
  src: url("assets/fonts/Magnetik-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */

:root {
  /* Brand colors */
  --bg-cream: #fffdf5;
  --text-primary: #1d1d1b;
  --accent-gold: #d4af37;
  --accent-gold-hover: #c9a12e;
  --accent-gold-light: rgba(212, 175, 55, 0.15);
  --dark-section: #0a1c14;
  --text-muted: #555555;
  --border-color: #e5e5e5;

  /* Product card pastel palette */
  --card-green: #e8f0e0;
  --card-gold: #f5ecd4;
  --card-orange: #fde8c4;
  --card-pink: #fadcd9;
  --card-cream: #f5f0e0;

  /* Functional colors */
  --success: #2e7d32;
  --error: #c62828;
  --overlay: rgba(0, 0, 0, 0.45);

  /* Typography */
  --font-body: "Montserrat", sans-serif;
  --font-heading: "Cormorant Garamond", serif;
  --font-display: "Magnetik", sans-serif;

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Radii */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.18);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 250ms var(--ease-out);
  --transition-slow: 400ms var(--ease-out);

  /* Layout */
  --sidebar-width: 400px;
  --header-height: 64px;
  --bottom-nav-height: 72px;
  --content-max-width: 1440px;
}

/* --------------------------------------------------------------------------
   3. RESET & BASE
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.order-page {
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  background-color: var(--bg-cream);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
  letter-spacing: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   4. UTILITY CLASSES
   -------------------------------------------------------------------------- */

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4b. STANDALONE TOP NAV (replaces site header on this page)
   -------------------------------------------------------------------------- */

.orv2-topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1.5rem, 4vw, 3rem);
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.orv2-topnav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
}

.orv2-topnav__logo img {
  height: 38px;
  width: auto;
}

.orv2-topnav__wordmark {
  font-family: "Magnetik", "Montserrat", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.orv2-topnav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.orv2-topnav__link {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.orv2-topnav__link:hover {
  color: var(--accent-gold);
}

.orv2-topnav__back {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.orv2-topnav__back:hover {
  color: var(--accent-gold);
}

@media (max-width: 640px) {
  .orv2-topnav__links {
    gap: 1rem;
  }
  .orv2-topnav__link {
    display: none;
  }
  .orv2-topnav__back {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   5. PAGE LAYOUT
   -------------------------------------------------------------------------- */

.order-layout {
  display: flex;
  min-height: 100vh;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.order-main {
  flex: 1;
  min-width: 0;
  padding: var(--space-lg) clamp(1.5rem, 5vw, 4rem);
  padding-bottom: calc(var(--bottom-nav-height) + var(--space-2xl));
}

.order-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  body.order-page {
    padding-bottom: 0;
  }

  .order-main {
    padding: var(--space-xl) clamp(2rem, 6vw, 5rem);
    padding-bottom: var(--space-2xl);
  }

  .order-sidebar {
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100vh;
    position: sticky;
    top: 0;
    border-left: 1px solid var(--border-color);
    background: #fff;
  }
}

/* --------------------------------------------------------------------------
   6. PAGE HEADER
   -------------------------------------------------------------------------- */

.order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  margin-bottom: var(--space-lg);
}

.order-header__location {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.order-header__location-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.order-header__location-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.order-header__location-value {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.order-header__cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--accent-gold-light);
  transition: background var(--transition-fast);
}

.order-header__cart-btn:hover {
  background: rgba(212, 175, 55, 0.25);
}

.order-header__cart-btn svg {
  width: 22px;
  height: 22px;
  color: var(--accent-gold);
}

.order-header__cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--accent-gold);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
}

@media (min-width: 1024px) {
  .order-header__cart-btn {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   7. HERO TEXT
   -------------------------------------------------------------------------- */

.order-hero {
  margin-bottom: var(--space-xl);
}

.order-hero__heading {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--text-primary);
}

.order-hero__heading em {
  font-style: italic;
  color: var(--accent-gold);
}

.order-hero__subtext {
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 480px;
}

/* --------------------------------------------------------------------------
   8. SEARCH BAR
   -------------------------------------------------------------------------- */

.search-wrapper {
  position: relative;
  margin-bottom: var(--space-xl);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: var(--space-sm) var(--space-lg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-bar:focus-within {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-gold-light);
}

.search-bar__icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-bar__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: var(--space-xs) 0;
}

.search-bar__input::placeholder {
  color: #aaa;
  font-weight: 300;
}

.search-bar__clear {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background var(--transition-fast);
}

.search-bar__clear:hover {
  background: var(--border-color);
}

/* Autocomplete dropdown */
.search-autocomplete {
  position: absolute;
  top: calc(100% + var(--space-xs));
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 50;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.search-autocomplete.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.search-autocomplete__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-autocomplete__item:hover,
.search-autocomplete__item.is-highlighted {
  background: var(--accent-gold-light);
}

.search-autocomplete__item-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.search-autocomplete__item-name {
  font-size: 0.9rem;
  font-weight: 400;
}

.search-autocomplete__item-category {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. PROMO BANNER
   -------------------------------------------------------------------------- */

.promo-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-xl);
  padding: var(--space-2xl) var(--space-xl);
  background: linear-gradient(135deg, var(--dark-section) 0%, #1a3a28 100%);
  color: #fff;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-banner__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  pointer-events: none;
}

.promo-banner__content {
  position: relative;
  z-index: 1;
  max-width: 60%;
}

.promo-banner__tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.15);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
  backdrop-filter: blur(4px);
}

.promo-banner__title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.promo-banner__subtitle {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: var(--space-lg);
  font-weight: 300;
}

.promo-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--accent-gold);
  color: #fff;
  font-weight: 500;
  font-size: 0.85rem;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.promo-banner__cta:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   10. CATEGORY NAVIGATION
   -------------------------------------------------------------------------- */

.category-nav {
  margin-bottom: var(--space-xl);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.category-nav__list {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
}

.category-nav__item {
  flex-shrink: 0;
}

.category-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.category-nav__btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.category-nav__btn.is-active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #fff;
  font-weight: 500;
}

.category-nav__btn-emoji {
  font-size: 1.1em;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   11. PRODUCT GRID
   -------------------------------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

/* --------------------------------------------------------------------------
   12. PRODUCT CARD
   -------------------------------------------------------------------------- */

.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
  overflow: hidden;
}

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

/* Card background color variants */
.product-card--green  { background: var(--card-green); }
.product-card--gold   { background: var(--card-gold); }
.product-card--orange { background: var(--card-orange); }
.product-card--pink   { background: var(--card-pink); }
.product-card--cream  { background: var(--card-cream); }

/* Price badge */
.product-card__price {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: #fff;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.8rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

/* Product image */
.product-card__image-wrap {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base);
}

.product-card:hover .product-card__image-wrap {
  transform: scale(1.05);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .product-card__image-wrap {
    width: 130px;
    height: 130px;
  }
}

/* Card text */
.product-card__category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.product-card__name {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

/* Add to cart button (bottom right) */
.product-card__add-btn {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--accent-gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast), transform var(--transition-fast);
  z-index: 2;
}

.product-card__add-btn:hover {
  background: var(--accent-gold-hover);
  transform: scale(1.1);
}

.product-card__add-btn svg {
  width: 18px;
  height: 18px;
}

/* Quantity stepper (replaces add button when item is in cart) */
.product-card__stepper {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--accent-gold);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.product-card__stepper-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--transition-fast);
}

.product-card__stepper-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.product-card__stepper-count {
  min-width: 24px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

/* --------------------------------------------------------------------------
   13. CART SIDEBAR (DESKTOP)
   -------------------------------------------------------------------------- */

.cart-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
}

.cart-sidebar__header {
  padding: var(--space-xl) var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

.cart-sidebar__title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.cart-sidebar__count {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Cart item list */
.cart-sidebar__items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md) var(--space-lg);
}

.cart-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-color);
  animation: cartItemIn 300ms var(--ease-out) both;
}

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

.cart-item__image {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

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

.cart-item__name {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item__customization {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-sm);
}

.cart-item__price {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Cart item inline stepper */
.cart-item__stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.cart-item__stepper-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: background var(--transition-fast);
}

.cart-item__stepper-btn:hover {
  background: var(--border-color);
}

.cart-item__stepper-count {
  min-width: 24px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Cart empty state */
.cart-sidebar__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  text-align: center;
  color: var(--text-muted);
}

.cart-sidebar__empty-icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-lg);
  opacity: 0.4;
}

.cart-sidebar__empty-text {
  font-size: 0.95rem;
}

/* Cart footer / totals */
.cart-sidebar__footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--border-color);
  background: #fff;
}

.cart-sidebar__totals {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.cart-sidebar__total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cart-sidebar__total-row--final {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-color);
}

.cart-sidebar__checkout-btn {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-full);
  background: var(--accent-gold);
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
  transition: background var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.cart-sidebar__checkout-btn:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

/* --------------------------------------------------------------------------
   14. CART DRAWER (MOBILE)
   -------------------------------------------------------------------------- */

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.cart-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 85vh;
  background: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 101;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  box-shadow: var(--shadow-xl);
}

.cart-drawer.is-open {
  transform: translateY(0);
}

.cart-drawer__handle {
  display: flex;
  justify-content: center;
  padding: var(--space-sm) 0;
  flex-shrink: 0;
}

.cart-drawer__handle::after {
  content: "";
  width: 40px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--border-color);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.cart-drawer__title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.35rem;
}

.cart-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background var(--transition-fast);
}

.cart-drawer__close:hover {
  background: var(--border-color);
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md) var(--space-lg);
}

.cart-drawer__footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--border-color);
  padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 1024px) {
  .cart-drawer-overlay,
  .cart-drawer {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   15. PRODUCT DETAIL MODAL
   -------------------------------------------------------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

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

.product-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-base);
}

.modal-overlay.is-open .product-modal {
  transform: scale(1) translateY(0);
}

.product-modal__image-section {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--card-cream);
}

.product-modal__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: background var(--transition-fast);
  z-index: 1;
}

.product-modal__close:hover {
  background: #fff;
}

.product-modal__body {
  padding: var(--space-xl);
}

.product-modal__name {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.product-modal__description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

/* Info badges: rating, time, calories */
.product-modal__info {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.product-modal__info-badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-cream);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
}

.product-modal__info-badge svg {
  width: 14px;
  height: 14px;
}

.product-modal__info-badge--rating svg {
  color: var(--accent-gold);
}

/* Customization options */
.product-modal__options {
  margin-bottom: var(--space-xl);
}

.product-modal__options-title {
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-modal__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.product-modal__option:last-child {
  border-bottom: none;
}

.product-modal__option-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.product-modal__option-radio {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--transition-fast);
}

.product-modal__option.is-selected .product-modal__option-radio {
  border-color: var(--accent-gold);
}

.product-modal__option.is-selected .product-modal__option-radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--accent-gold);
}

.product-modal__option-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.product-modal__option.is-selected .product-modal__option-checkbox {
  border-color: var(--accent-gold);
  background: var(--accent-gold);
}

.product-modal__option-label {
  font-size: 0.9rem;
}

.product-modal__option-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Modal footer: quantity selector + add button */
.product-modal__footer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border-color);
}

.product-modal__qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
}

.product-modal__qty-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: background var(--transition-fast);
}

.product-modal__qty-btn:hover {
  background: var(--border-color);
}

.product-modal__qty-value {
  min-width: 36px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.product-modal__add-btn {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-full);
  background: var(--accent-gold);
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.product-modal__add-btn:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-1px);
}

.product-modal__add-btn:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   16. CHECKOUT MODAL
   -------------------------------------------------------------------------- */

.checkout-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-base);
}

.modal-overlay.is-open .checkout-modal {
  transform: scale(1) translateY(0);
}

.checkout-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border-color);
}

.checkout-modal__title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.35rem;
}

.checkout-modal__close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background var(--transition-fast);
}

.checkout-modal__close:hover {
  background: var(--border-color);
}

.checkout-modal__body {
  padding: var(--space-xl);
}

/* Form fields */
.checkout-form__group {
  margin-bottom: var(--space-lg);
}

.checkout-form__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.checkout-form__input,
.checkout-form__select {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: var(--bg-cream);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.checkout-form__input:focus,
.checkout-form__select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-gold-light);
}

.checkout-form__input::placeholder {
  color: #aaa;
}

.checkout-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

/* Order summary in checkout */
.checkout-form__summary {
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.checkout-form__summary-title {
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  color: var(--text-muted);
}

.checkout-form__summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: var(--space-xs) 0;
}

.checkout-form__summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1rem;
  padding-top: var(--space-sm);
  margin-top: var(--space-sm);
  border-top: 1px solid var(--border-color);
}

/* Pay button */
.checkout-form__pay-btn {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-full);
  background: var(--dark-section);
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.checkout-form__pay-btn:hover {
  background: #132e1f;
  transform: translateY(-1px);
}

.checkout-form__pay-btn:active {
  transform: translateY(0);
}

.checkout-form__pay-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Success state */
.checkout-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
}

.checkout-success__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--accent-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xl);
  animation: successPop 400ms var(--ease-out) both;
}

@keyframes successPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.checkout-success__icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent-gold);
}

.checkout-success__title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.checkout-success__message {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.6;
}

.checkout-success__done-btn {
  margin-top: var(--space-xl);
  padding: var(--space-md) var(--space-2xl);
  border-radius: var(--radius-full);
  background: var(--accent-gold);
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background var(--transition-fast);
}

.checkout-success__done-btn:hover {
  background: var(--accent-gold-hover);
}

/* --------------------------------------------------------------------------
   17. MOBILE BOTTOM NAV
   -------------------------------------------------------------------------- */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: #fff;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 90;
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  padding: var(--space-sm) 0;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.bottom-nav__item:hover,
.bottom-nav__item.is-active {
  color: var(--accent-gold);
}

.bottom-nav__item svg {
  width: 22px;
  height: 22px;
}

.bottom-nav__item--cart {
  position: relative;
}

.bottom-nav__item-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 18px);
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--accent-gold);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

@media (min-width: 1024px) {
  .bottom-nav {
    display: none;
  }

  body.order-page {
    padding-bottom: 0;
  }
}

/* --------------------------------------------------------------------------
   18. SECTION HEADING (reusable)
   -------------------------------------------------------------------------- */

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.section-heading__title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.35rem;
  color: var(--text-primary);
}

.section-heading__link {
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 400;
  transition: opacity var(--transition-fast);
}

.section-heading__link:hover {
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   19. LOADING & SKELETON STATES
   -------------------------------------------------------------------------- */

.skeleton {
  background: linear-gradient(90deg, var(--border-color) 25%, #f0f0f0 50%, var(--border-color) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

.skeleton--circle {
  border-radius: var(--radius-full);
}

.skeleton--text {
  height: 14px;
  margin-bottom: var(--space-sm);
}

.skeleton--card {
  border-radius: var(--radius-lg);
  height: 260px;
}

/* --------------------------------------------------------------------------
   20. TOAST / NOTIFICATION
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--space-md));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark-section);
  color: #fff;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 400;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base);
  white-space: nowrap;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .toast {
    bottom: var(--space-xl);
  }
}

/* --------------------------------------------------------------------------
   21. RESPONSIVE FINE-TUNING
   -------------------------------------------------------------------------- */

/* Small phones */
@media (max-width: 374px) {
  .order-main {
    padding: var(--space-md);
  }

  .product-grid {
    gap: var(--space-md);
  }

  .product-card {
    padding: var(--space-md);
  }

  .product-card__image-wrap {
    width: 80px;
    height: 80px;
  }

  .promo-banner {
    padding: var(--space-lg);
  }

  .promo-banner__content {
    max-width: 75%;
  }
}

/* Tablets */
@media (min-width: 640px) and (max-width: 1023px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .order-main {
    padding: var(--space-xl) var(--space-2xl);
    padding-bottom: calc(var(--bottom-nav-height) + var(--space-2xl));
  }
}

/* Large desktop */
@media (min-width: 1280px) {
  .order-main {
    padding: var(--space-xl) var(--space-3xl);
  }
}

/* --------------------------------------------------------------------------
   22. PRINT STYLES
   -------------------------------------------------------------------------- */

@media print {
  .bottom-nav,
  .order-sidebar,
  .cart-drawer,
  .cart-drawer-overlay,
  .modal-overlay,
  .toast {
    display: none !important;
  }

  body.order-page {
    background: #fff;
    padding-bottom: 0;
  }

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