/* ============================================================
   Restaurant — Customer Frontend CSS
   Mobile-first, clean, fast
   ============================================================ */
:root {
  --primary:       #e53e1e;
  --primary-dark:  #c0321a;
  --primary-light: #fff0ed;
  --accent:        #f6ad55;
  --text:          #1a1a2e;
  --text-muted:    #6b7280;
  --bg:            #f9fafb;
  --card:          #ffffff;
  --border:        #e5e7eb;
  --success:       #10b981;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.12);
  --transition:    .2s ease;
  --font:          'Manrope', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.ui-icon { width: 1em; height: 1em; vertical-align: -0.125em; flex-shrink: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }

/* ── Utilities ── */
.container    { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted); }
.mt-1 { margin-top:.5rem; } .mt-2 { margin-top:1rem; } .mt-3 { margin-top:1.5rem; } .mt-4 { margin-top:2rem; }
.mb-1 { margin-bottom:.5rem; } .mb-2 { margin-bottom:1rem; } .mb-3 { margin-bottom:1.5rem; }
.d-flex       { display: flex; } .flex-wrap { flex-wrap: wrap; } .gap-1 { gap:.5rem; } .gap-2 { gap:1rem; }
.align-center { align-items: center; } .justify-between { justify-content: space-between; }
.w-full { width: 100%; } .hidden { display: none !important; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.25rem; border-radius: var(--radius-sm); border: none;
  font-size: .95rem; font-weight: 600; cursor: pointer; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline   { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-success   { background: var(--success); color: #fff; }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-ghost     { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--border); }
.btn-sm { padding: .4rem .85rem; font-size: .85rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Forms ── */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--text); }
.form-control {
  width: 100%; padding: .65rem .9rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: .95rem; font-family: var(--font);
  background: #fff; color: var(--text); transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(229,62,30,.12); }
.form-control.error { border-color: var(--danger); }
.form-error  { color: var(--danger); font-size: .82rem; margin-top: .25rem; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.5rem; }
textarea.form-control { resize: vertical; min-height: 90px; }

/* ── Alerts ── */
.alert { padding: .85rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .92rem; }
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--success); }
.alert-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--danger); }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid var(--warning); }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
}
.navbar-inner {
  display: flex; align-items: center; gap: 1.25rem;
  padding: .85rem 1rem; max-width: 1200px; margin: 0 auto;
}
.navbar-brand { font-size: 1.4rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.navbar-logo { height: 32px; width: auto; border-radius: 6px; }
.navbar-search {
  flex: 1; max-width: 380px; display: flex; align-items: center; gap: .5rem;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 999px;
  padding: .5rem .95rem; transition: border-color var(--transition), box-shadow var(--transition);
}
.navbar-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.navbar-search svg { width: 17px; height: 17px; color: var(--text-muted); flex-shrink: 0; }
.navbar-search input { flex: 1; border: none; background: none; font-family: var(--font); font-size: .9rem; color: var(--text); outline: none; }
.navbar-nav   { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.navbar-nav a { font-weight: 500; color: var(--text); padding: .3rem 0; border-bottom: 2px solid transparent; transition: var(--transition); }
.navbar-nav a:hover, .navbar-nav a.active { color: var(--primary); border-bottom-color: var(--primary); }
.cart-badge {
  display: inline-flex; align-items: center; gap: .3rem; background: var(--primary);
  color: #fff; padding: .4rem .85rem; border-radius: 20px; font-weight: 700; font-size: .9rem;
  transition: var(--transition);
}
.cart-badge:hover { background: var(--primary-dark); transform: scale(1.05); }
.cart-count { background: #fff; color: var(--primary); border-radius: 50%; width:20px; height:20px; display:inline-flex; align-items:center; justify-content:center; font-size:.78rem; font-weight:800; }

.menu-toggle {
  display: none; width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--bg);
  color: var(--text); align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle:hover, .menu-toggle:focus-visible { background: var(--primary); color: #fff; }

/* ── Closed-for-ordering banner ── */
.closed-banner {
  background: #fff4e5; color: #92400e; border-bottom: 1px solid #fde3b8;
  padding: .75rem 1rem; text-align: center; font-size: .9rem;
}

/* ── Banner carousel (admin-managed flyers/posters) — center-focus peek slider ── */
.banner-section { padding: 1.75rem 0 .5rem; background: var(--bg); }
.banner-carousel { position: relative; }
.banner-viewport {
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.banner-viewport::-webkit-scrollbar { display: none; }
.banner-track { display: flex; gap: 1.25rem; padding: 0 13%; }
.banner-slide {
  flex: 0 0 74%; scroll-snap-align: center; position: relative; aspect-ratio: 16/7; min-height: 280px;
  border-radius: 18px; overflow: hidden; opacity: .4; transform: scale(.92);
  transition: opacity .35s ease, transform .35s ease; box-shadow: 0 16px 40px -16px rgba(0,0,0,.3);
}
.banner-slide.is-active { opacity: 1; transform: scale(1); }
.banner-slide > a { display: block; width: 100%; height: 100%; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-slide-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), transparent 60%);
  display: flex; align-items: flex-end; padding: 1.25rem;
}
.banner-slide-title { color: #fff; font-weight: 800; font-size: 1.1rem; text-align: left; }
.banner-dots { display: flex; gap: .4rem; justify-content: center; margin-top: 1rem; }
.banner-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; transition: var(--transition); padding: 0; }
.banner-dot.is-active { background: var(--primary); width: 22px; border-radius: 4px; }
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--text); border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition), color var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,.18); z-index: 2;
}
.banner-arrow:hover { background: var(--primary); color: #fff; transform: translateY(-50%) scale(1.06); }
.banner-arrow.prev { left: 1rem; } .banner-arrow.next { right: 1rem; }
.banner-arrow svg { width: 18px; height: 18px; }

/* ── Category Pills ── */
.category-scroll {
  overflow-x: auto; white-space: nowrap; padding: 1rem 0; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 2%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 2%, #000 96%, transparent);
}
.category-scroll::-webkit-scrollbar { display: none; }
.category-pills  { display: inline-flex; gap: .5rem; padding: 0 1rem; }
.cat-pill {
  display: inline-block; padding: .45rem 1.1rem; border-radius: 20px;
  border: 1.5px solid var(--border); background: #fff; color: var(--text);
  font-size: .88rem; font-weight: 600; cursor: pointer; transition: var(--transition);
  white-space: nowrap;
}
.cat-pill:hover, .cat-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.category-bar-sticky {
  position: sticky; top: var(--navbar-h, 64px); z-index: 60;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
[id^="cat-"] { scroll-margin-top: calc(var(--navbar-h, 64px) + var(--catbar-h, 56px) + 12px); }

/* ── Section header (eyebrow + title + carousel nav) ── */
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .3rem; }
.section-title { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.carousel-nav { display: flex; gap: .6rem; flex-shrink: 0; }
.carousel-btn {
  width: 42px; height: 42px; border-radius: 50%; border: none; background: #f3f1ee;
  color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-btn:hover { transform: translateY(-1px); }
.carousel-btn.is-dark { background: var(--text); color: #fff; }
.carousel-btn.is-dark:hover { background: var(--primary); }

/* ── Carousel track (horizontal scroll-snap) ── */
.carousel-track {
  display: flex; gap: 1.25rem; padding: .25rem 0 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .product-card { flex: 0 0 270px; scroll-snap-align: start; }

/* ── Product Grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem; padding: 1.25rem 0;
}
.product-card {
  background: var(--card); border-radius: 20px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 28px -8px rgba(0,0,0,.08);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column; cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 20px 36px -10px rgba(0,0,0,.14); }
.product-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.product-img { position: relative; margin: .75rem .75rem 0; padding-top: 78%; overflow: hidden; border-radius: 14px; }
.product-img img { position: absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; transition: transform .3s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-img .badge { position:absolute; top:.5rem; left:.5rem; background:var(--primary); color:#fff; padding:.2rem .6rem; border-radius:4px; font-size:.75rem; font-weight:700; }
.fav-btn {
  position: absolute; top: .55rem; right: .55rem; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: none; display: flex; align-items: center; justify-content: center;
  color: var(--text); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.15); transition: color var(--transition), transform var(--transition);
}
.fav-btn svg { width: 15px; height: 15px; }
.fav-btn:hover { color: var(--primary); transform: scale(1.08); }
.unavailable-overlay { position:absolute; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,.45); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:1rem; border-radius: 14px; }
.product-body { padding: .9rem 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.product-name-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; min-height: 2.6em; }
.product-name { font-size: .95rem; font-weight: 700; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.dietary-badges { display: flex; gap: .3rem; flex-shrink: 0; padding-top: .05rem; }
.dietary-badge {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--bg); font-size: .78rem; cursor: default;
}
.dietary-badge .ui-icon { width: 1.1em; height: 1.1em; }
.dietary-badge[data-tag="spicy"]       { color: #e0501f; }
.dietary-badge[data-tag="nuts"]        { color: #9a5b27; }
.dietary-badge[data-tag="vegan"]       { color: #1aa97a; }
.dietary-badge[data-tag="vegetarian"]  { color: #3f9142; }
.dietary-badge[data-tag="gluten_free"] { color: #d98c1a; }
.dietary-badge[data-tag="dairy_free"]  { color: #3b6fe0; }
.product-desc {
  color: var(--text-muted); font-size: .82rem; line-height: 1.45; margin-bottom: .8rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; }
.product-price { font-size: 1.05rem; font-weight: 800; color: var(--text); flex-shrink: 0; }
.product-price .price-was { font-size: .8rem; font-weight: 600; color: var(--text-muted); text-decoration: line-through; }
.product-price .price-sale { color: var(--danger); }
.product-price .price-from {
  display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text-muted); margin-bottom: .1rem;
}
.product-unavailable-text { color: var(--text-muted); font-size: .82rem; }

/* ── Card add button (round, shaded like admin's collapse button) ── */
.card-add-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--primary-light);
  color: var(--primary-dark); cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background var(--transition), color var(--transition), transform var(--transition);
}
.card-add-btn svg { width: 17px; height: 17px; }
.card-add-btn:hover { background: var(--primary); color: #fff; transform: scale(1.06); }
.card-add-btn:active { transform: scale(.96); }
.card-add-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ── Product Drawer ── */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(20,16,12,.5); opacity: 0; visibility: hidden;
  transition: opacity var(--transition); z-index: 90;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 91; max-height: 92vh;
  background: var(--card); border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,.25);
  transform: translateY(100%); transition: transform .32s cubic-bezier(.22,1,.36,1);
  display: flex; flex-direction: column; overflow: hidden;
}
.drawer.is-open { transform: translateY(0); }
.drawer-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--border); margin: .65rem auto .25rem; flex-shrink: 0; }
.drawer-close {
  position: absolute; top: .85rem; right: .85rem; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); border: none; color: var(--text); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition), color var(--transition);
}
.drawer-close svg { width: 16px; height: 16px; }
.drawer-close:hover { background: var(--text); color: #fff; }
.drawer-scroll { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.drawer-body { padding: .5rem 1.25rem 1rem; }
.drawer-aside:empty { display: none; }
.drawer-aside { padding: 0 1.25rem 1.5rem; }
.drawer-product-desc { font-size: .88rem; line-height: 1.55; color: var(--text-muted); margin-bottom: 1.2rem; }
.drawer-loading { padding: 2.5rem 0; text-align: center; color: var(--text-muted); }

.drawer-product { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; margin-bottom: 1.1rem; }
.drawer-product img { width: 100%; height: 200px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.drawer-product-name { font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.drawer-product-price { font-size: .95rem; font-weight: 700; color: var(--primary); margin-top: .2rem; }

.drawer-section-title { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: .6rem; }
.required-badge {
  display: inline-block; margin-left: .4rem; padding: .1rem .45rem; border-radius: 999px;
  background: var(--danger-light, #fde2e2); color: var(--danger, #d33); font-size: .65rem; font-weight: 800;
  text-transform: none; letter-spacing: 0;
}

.variation-options { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.3rem; }
.variation-option {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .7rem .9rem; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.variation-option:hover { border-color: var(--primary); }
.variation-option.is-selected { border-color: var(--primary); background: var(--primary-light, rgba(0,0,0,.04)); }
.variation-option input { accent-color: var(--primary); width: 17px; height: 17px; flex-shrink: 0; }
.variation-option-label { flex: 1; font-size: .9rem; font-weight: 600; }
.variation-option-price { font-size: .88rem; font-weight: 700; color: var(--text-muted); }

.drawer-recommend-track { display: flex; gap: .8rem; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: none; }

/* ── Fulfillment (delivery / takeaway) popup ── */
.fulfillment-summary { display: flex; align-items: center; gap: .6rem; padding: .6rem 0; }
.fulfillment-summary-icon { font-size: 1.3rem; }
.fulfillment-summary-text { font-size: .92rem; font-weight: 600; color: var(--text-muted); }
.fulfillment-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: .5rem; }
.fulfillment-toggle-option {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem .7rem; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer;
  font-weight: 700; font-size: .92rem; transition: border-color var(--transition), background var(--transition);
}
.fulfillment-toggle-option input { position: absolute; opacity: 0; pointer-events: none; }
.fulfillment-toggle-option.is-selected { border-color: var(--primary); background: var(--primary-light, rgba(0,0,0,.04)); color: var(--primary-dark); }
.drawer-recommend-track::-webkit-scrollbar { display: none; }
.recommend-card { flex: 0 0 130px; cursor: pointer; }
.recommend-card img { width: 130px; height: 100px; border-radius: 12px; object-fit: cover; margin-bottom: .4rem; }
.recommend-card-name { font-size: .8rem; font-weight: 700; line-height: 1.3; margin-bottom: .2rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.recommend-card-price { font-size: .8rem; font-weight: 700; color: var(--primary); }

.drawer-cta-row:empty { display: none; }
.drawer-cta-row { padding: 0 1.25rem 1.5rem; }
.drawer-add-btn {
  width: 100%; background: var(--text); color: #fff; border: none; border-radius: 999px;
  padding: .85rem; font-size: .9rem; font-weight: 800; font-family: var(--font); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; padding-inline: 1.3rem;
  transition: background var(--transition), transform var(--transition);
}
.drawer-add-btn:hover { background: var(--primary); transform: translateY(-1px); }
.drawer-add-btn:active { transform: translateY(0); }
.drawer-add-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Desktop drawer: still a bottom sheet (slides up, anchored to the bottom edge), just
   widened so the product info and recommendations sit in two columns side by side.
   No internal scrolling — content is expected to fit; .drawer's max-height is just a safety cap. ── */
@media (min-width: 860px) {
  .drawer-scroll {
    display: grid; max-width: 1000px; margin: 0 auto; width: 100%;
    grid-template-columns: 1fr 320px; grid-template-rows: auto auto;
    grid-template-areas: "body aside" "cta aside";
  }
  .drawer-body { grid-area: body; padding: 1.75rem 1.75rem 1rem; min-width: 0; }
  .drawer-cta-row { grid-area: cta; margin-top: 0; padding: 0 1.75rem 1.5rem; }
  .drawer-aside {
    grid-area: aside; padding: 1.75rem 1.5rem; margin: 0;
    border-left: 1px solid var(--border); background: var(--bg);
  }
  .drawer-aside:empty { display: block; } /* keep the divider even before recommendations load */
  .drawer-product img { height: 220px; }
  .drawer-product-name { font-size: 1.3rem; }
  .drawer-recommend-track { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; overflow: visible; }
  .recommend-card { flex: none; }
  .recommend-card img { width: 100%; height: 85px; }
}

/* ── Cart ── */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { background: var(--bg); padding: .75rem 1rem; text-align: left; font-size: .85rem; color: var(--text-muted); font-weight: 600; border-bottom: 2px solid var(--border); }
.cart-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-item-img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-summary { background: var(--card); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.cart-summary .summary-row { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.cart-summary .summary-row:last-child { border: none; }
.cart-summary .total-row { font-size: 1.15rem; font-weight: 800; color: var(--primary); }

/* ── Checkout ── */
.checkout-grid { display: grid; gap: 1.5rem; }
@media(min-width:768px) { .checkout-grid { grid-template-columns: 1fr 420px; } }
.checkout-card { background: var(--card); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.checkout-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 2px solid var(--border); }
.payment-options { display: flex; flex-direction: column; gap: .75rem; }
.payment-option  { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border: 2px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); }
.payment-option:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.payment-option input[type=radio] { accent-color: var(--primary); width: 18px; height: 18px; }

/* ── Order Status ── */
.status-timeline { display: flex; flex-direction: column; gap: 0; }
.status-step     { display: flex; align-items: flex-start; gap: 1rem; position: relative; padding-bottom: 1.5rem; }
.status-step:last-child { padding-bottom: 0; }
.status-step::before { content:''; position:absolute; left:15px; top:32px; bottom:0; width:2px; background:var(--border); }
.status-step.done::before { background: var(--success); }
.step-icon { width:32px; height:32px; border-radius:50%; border:2px solid var(--border); display:flex; align-items:center; justify-content:center; background:#fff; flex-shrink:0; font-size:.9rem; }
.status-step.done .step-icon  { background:var(--success); border-color:var(--success); color:#fff; }
.status-step.active .step-icon { background:var(--primary); border-color:var(--primary); color:#fff; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { box-shadow:0 0 0 0 rgba(229,62,30,.4); } 50% { box-shadow:0 0 0 8px rgba(229,62,30,0); } }
.step-label { font-weight: 600; }
.step-time  { font-size: .8rem; color: var(--text-muted); }

/* ── Badge ── */
.badge { display: inline-block; padding: .2rem .65rem; border-radius: 20px; font-size: .78rem; font-weight: 700; }
.badge-pending    { background: #fef3c7; color: #92400e; }
.badge-confirmed  { background: #dbeafe; color: #1e40af; }
.badge-preparing  { background: #e0e7ff; color: #4338ca; }
.badge-out_for_delivery { background: #fde8d8; color: #c05621; }
.badge-delivered  { background: #d1fae5; color: #065f46; }
.badge-cancelled  { background: #fee2e2; color: #991b1b; }
.badge-paid       { background: #d1fae5; color: #065f46; }
.badge-unpaid     { background: #fee2e2; color: #991b1b; }

/* ── Empty State ── */
.empty-state { text-align:center; padding:4rem 1rem; color:var(--text-muted); }
.empty-state .icon { font-size:4rem; margin-bottom:1rem; opacity:.4; }
.empty-state h3 { font-size:1.3rem; color:var(--text); margin-bottom:.5rem; }

/* ── Footer ── */
.footer { background: var(--text); color: rgba(255,255,255,.7); padding: 2.5rem 1rem; margin-top: 3rem; }
.footer-inner { max-width:1200px; margin:0 auto; display:grid; gap:2rem; }
@media(min-width:768px) { .footer-inner { grid-template-columns: 1fr 1fr 1fr; } }
.footer-brand { font-size:1.4rem; font-weight:800; color:#fff; margin-bottom:.75rem; display:flex; align-items:center; gap:.5rem; }
.footer-logo { height: 30px; width: auto; border-radius: 6px; }
.footer h4 { color:#fff; font-weight:700; margin-bottom:.75rem; }
.footer a  { color: rgba(255,255,255,.6); display:block; margin-bottom:.35rem; transition:var(--transition); }
.footer a:hover { color:#fff; }
.footer-bottom { max-width:1200px; margin:.75rem auto 0; padding-top:.75rem; border-top:1px solid rgba(255,255,255,.1); font-size:.85rem; }

/* ── Toast notification ── */
#toast-container { position:fixed; bottom:1.5rem; right:1.5rem; z-index:9999; display:flex; flex-direction:column; gap:.5rem; }
.toast { background:#1a1a2e; color:#fff; padding:.85rem 1.25rem; border-radius:var(--radius-sm); box-shadow:var(--shadow-lg); max-width:320px; animation:slideIn .3s ease; display:flex; align-items:center; gap:.75rem; }
.toast.success { border-left:4px solid var(--success); }
.toast.error   { border-left:4px solid var(--danger); }
@keyframes slideIn { from { transform:translateX(100%); opacity:0; } to { transform:translateX(0); opacity:1; } }
@keyframes slideOut { from { transform:translateX(0); opacity:1; } to { transform:translateX(100%); opacity:0; } }

/* ── Responsive ── */
@media(max-width:768px) {
  .navbar-inner { flex-wrap: wrap; }
  .navbar-search { order: 3; flex: 1 1 100%; max-width: none; }
  .menu-toggle { display: flex; order: 2; margin-left: auto; }
  .navbar-nav {
    order: 4; flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden; margin-left: 0;
    transition: max-height .25s ease;
  }
  .navbar-nav.open { max-height: 260px; padding-top: .5rem; }
  .navbar-nav a { padding: .65rem .25rem; border-bottom: 1px solid var(--border); }
  .navbar-nav a:hover, .navbar-nav a.active { border-bottom-color: var(--border); }
  .navbar-nav .cart-badge { margin: .6rem 0; justify-content: center; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap:.75rem; }
  .cart-table th:nth-child(3), .cart-table td:nth-child(3) { display:none; }
  .hero { padding: 1.5rem 1rem 2rem; }
  .hero h1 { margin-bottom: .35rem; }
  .hero p { margin-bottom: 1.25rem; }
  .section-header { flex-wrap: wrap; }
  .section-title { font-size: 1.5rem; }
  .banner-track { padding: 0 6%; }
  .banner-slide { flex: 0 0 88%; min-height: 200px; }
}
@media(max-width:480px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .product-body { padding:.75rem; }
  .product-name { font-size:.9rem; }
  .category-pills { padding: 0 .25rem; }
  .product-footer { flex-wrap: nowrap; }
  .product-price { font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .product-price .price-was { font-size: .68rem; }
  .card-add-btn { width: 28px; height: 28px; }
  .card-add-btn svg { width: 14px; height: 14px; }
}
