/* ─── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f8f8f6;
  --surface:     #ffffff;
  --surface-2:   #f8f9fb;
  --primary:     #999;
  --primary-h:   #888;
  --text:        #0f172a;
  --text-2:      #334155;
  --muted:       #64748b;
  --border:      #e8eaf0;
  --border-2:    #f1f3f8;
  --radius:      16px;
  --radius-sm:   10px;
  --radius-xs:   8px;
  --shadow-xs:   0 1px 2px rgba(0,0,0,.06);
  --shadow:      0 1px 4px rgba(0,0,0,.06), 0 6px 20px rgba(0,0,0,.06);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg:   0 10px 25px -5px rgba(0,0,0,.12), 0 4px 10px -5px rgba(0,0,0,.07);
  --font:        'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --header-height: 64px;
  --nav-height:    54px;
  --transition:    .18s cubic-bezier(.4,0,.2,1);
  --header-text-color: #fff;
  --btn-text-color:    #fff;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Theme transition: 2s fade from grey defaults to real colors ────────── */
.theme-fade .site-header,
.theme-fade .tab-btn,
.theme-fade .tab-btn.active,
.theme-fade .subcategory-heading,
.theme-fade .item-price,
.theme-fade .size-price,
.theme-fade .btn-primary,
.theme-fade .btn-add-cart,
.theme-fade .header-nav-link,
.theme-fade .contact-info-item a {
  transition: background-color 2s ease, color 2s ease, border-color 2s ease;
}

/* ─── Skeleton loading placeholders ──────────────────────────────────────── */
@keyframes skeleton-shimmer {
  0%   { background-position: -800px 0; }
  100% { background-position: 800px 0; }
}
.skeleton-shimmer {
  background: linear-gradient(90deg, #ededea 25%, #f5f5f2 50%, #ededea 75%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}
.skeleton-tab {
  display: inline-block;
  width: 90px;
  height: 36px;
  border-radius: 20px;
  background: linear-gradient(90deg, #ededea 25%, #f5f5f2 50%, #ededea 75%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}
.skeleton-line {
  height: 13px;
  border-radius: 6px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #ededea 25%, #f5f5f2 50%, #ededea 75%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w40 { width: 40%; }
.skeleton-card {
  border-radius: var(--radius);
  height: 240px;
  background: linear-gradient(90deg, #ededea 25%, #f5f5f2 50%, #ededea 75%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--primary);
  color: var(--header-text-color, #fff);
  height: var(--header-height);
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,.28), 0 1px 0 rgba(255,255,255,.04);
}
.header-inner {
  max-width: 1280px;
  margin: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-brand-link {
  color: var(--header-text-color, #fff);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -.5px;
  flex-shrink: 0;
  opacity: .97;
}
.header-brand-link:hover { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-nav-link {
  color: var(--nav-link-color, #fff);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
  padding: 7px 18px;
  border: 2px solid var(--nav-link-border, rgba(255,255,255,.5));
  border-radius: 100px;
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
  letter-spacing: .1px;
}
.header-nav-link:hover { background: var(--nav-link-hover-bg, rgba(255,255,255,.18)); border-color: var(--nav-link-color, #fff); }

/* ─── Cart toggle button (mobile / header) ───────────────────────────────── */
.cart-toggle-btn {
  position: relative;
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 100px;
  color: var(--header-text-color, #fff);
  cursor: pointer;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background var(--transition);
  font-size: .875rem;
  font-weight: 600;
}
.cart-toggle-btn:hover { background: rgba(255,255,255,.28); border-color: #fff; }
.cart-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  background: #ef4444;
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  pointer-events: none;
  border: 2px solid var(--primary);
}

/* ─── Language Switcher ──────────────────────────────────────────────────── */
.lang-switcher { display: flex; gap: 6px; }
.lang-btn {
  background: transparent; border: 2px solid transparent; border-radius: 8px;
  cursor: pointer; padding: 2px 4px; line-height: 1;
  transition: border-color .2s, opacity .2s; opacity: .6;
  display: inline-flex; align-items: center; justify-content: center;
}
.lang-btn img { display: block; border-radius: 3px; }
.lang-btn.active { border-color: rgba(255,255,255,.8); opacity: 1; }
.lang-btn:hover { opacity: 1; }

/* ─── Brand Bar ──────────────────────────────────────────────────────────── */
.brand {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--text);
  line-height: 1.15;
}
.brand-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px 28px 20px;
  text-align: center;
}

/* ─── Contact Info Bar ───────────────────────────────────────────────────── */
.contact-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: center;
  padding: 10px 0 2px;
  font-size: .825rem;
}
.contact-info-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-weight: 500;
}
.contact-info-item a { color: var(--primary); text-decoration: none; font-weight: 600; }
.contact-info-item a:hover { text-decoration: underline; }

/* ─── Category Navigation (Sticky) ──────────────────────────────────────── */
.category-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.category-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ─── Primary Category / Filter Chips ───────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
  flex-wrap: nowrap;
}
.tab-bar::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 7px 16px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: transparent;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: .1px;
}
.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(var(--primary-rgb, 153,153,153), .04);
}
.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--btn-text-color, #fff);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.tab-btn.active .tab-count { background: rgba(255,255,255,.25); color: var(--btn-text-color, #fff); }

/* Subcategory chip row */
.subcategory-nav {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .3s cubic-bezier(.4,0,.2,1), opacity .22s cubic-bezier(.4,0,.2,1), border-color .22s;
  border-top: 1px solid transparent;
}
.subcategory-nav.open {
  max-height: 120px;
  opacity: 1;
  border-top-color: var(--border-2);
}
.tab-bar-sub { padding: 7px 0; }
.tab-btn-sub {
  font-size: .78rem;
  padding: 5px 13px;
  border-color: transparent;
  background: var(--border-2);
  color: var(--text-2);
  font-weight: 500;
}
.tab-btn-sub:hover {
  background: rgba(var(--primary-rgb, 153,153,153), .09);
  border-color: transparent;
  color: var(--primary);
}
.tab-btn-sub.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--btn-text-color, #fff);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* Content fade animation on category/subcategory switch */
@keyframes menu-content-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.menu-content-entering {
  animation: menu-content-in .22s cubic-bezier(.4,0,.2,1) both;
}

/* Item-count badge inside each chip */
.tab-count {
  display: inline-block;
  background: var(--border-2);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  line-height: 1.5;
  font-style: normal;
  letter-spacing: 0;
}

/* ─── Page Layout (two-column) ───────────────────────────────────────────── */
.page-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 28px 80px;
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 24px;
  align-items: start;
}

/* ─── Menu Panel (left) ──────────────────────────────────────────────────── */
.menu-panel { min-width: 0; }
.menu-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.menu-content.menu-loading {
  min-height: 920px;
}
.menu-content.menu-loading .skeleton-card {
  height: 180px;
}

/* ─── Order Panel (right sidebar) ───────────────────────────────────────── */
.order-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: calc(var(--header-height) + var(--nav-height));
  max-height: calc(100vh - var(--header-height) - var(--nav-height) - 28px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.order-panel::-webkit-scrollbar { width: 4px; }
.order-panel::-webkit-scrollbar-track { background: transparent; }
.order-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  border: 1px solid var(--border);
}
.card h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-2);
  color: var(--text);
  letter-spacing: -.1px;
}

/* ─── Forms ──────────────────────────────────────────────────────────────── */
.form-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.form-row:last-child { margin-bottom: 0; }
.form-row label {
  font-weight: 600;
  font-size: .8rem;
  color: var(--text-2);
  letter-spacing: .2px;
  text-transform: uppercase;
}
.form-row input,
.form-row textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: .9rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212,65,30,.1);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: #b0b8c8; }
.form-row textarea { resize: vertical; min-height: 72px; line-height: 1.5; }
.req { color: var(--primary); }

/* ─── Subcategory Headings ────────────────────────────────────────────────── */
.subcategory-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--border);
  scroll-margin-top: calc(var(--header-height) + var(--nav-height) + 18px);
  letter-spacing: -.1px;
}

/* ─── Category Headings (shown in "All" view) ────────────────────────────── */
.category-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin: 28px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  letter-spacing: -.3px;
}
.category-heading:first-child { margin-top: 0; }

/* ─── Menu Grid ──────────────────────────────────────────────────────────── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

/* ─── Item Card ──────────────────────────────────────────────────────────── */
.item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  cursor: default;
}
.item-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: #dde0e8;
}

.item-img {
  width: 100%;
  height: 164px;
  object-fit: cover;
  background: #f3ede6;
  display: block;
}
.item-img-placeholder {
  width: 100%;
  height: 164px;
  background: linear-gradient(145deg, #f6f2ec 0%, #ede8e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
}

.item-body { padding: 14px 14px 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.item-name { font-weight: 700; font-size: .925rem; line-height: 1.3; color: var(--text); letter-spacing: -.1px; }
.item-desc { font-size: .78rem; color: var(--muted); flex: 1; line-height: 1.5; margin-top: 2px; }
.item-price {
  font-weight: 800;
  color: var(--primary);
  font-size: 1rem;
  margin-top: 4px;
  letter-spacing: -.2px;
}

/* ─── Size Rows ──────────────────────────────────────────────────────────── */
.item-sizes { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.size-row { display: flex; align-items: center; gap: 8px; }
.size-label { font-weight: 700; font-size: .875rem; min-width: 20px; text-align: center; }
.size-price { font-weight: 700; color: var(--primary); font-size: .875rem; min-width: 52px; }

/* ─── Quantity Controls ──────────────────────────────────────────────────── */
.item-qty { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.qty-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 1.05rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  line-height: 1;
  color: var(--text);
  font-weight: 600;
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(212,65,30,.04); }
.qty-input {
  width: 42px; text-align: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 4px;
  font-size: .9rem;
  font-family: inherit;
  font-weight: 600;
}
.qty-input:focus { outline: none; border-color: var(--primary); }

/* ─── Cart Summary ───────────────────────────────────────────────────────── */
.cart-summary { margin-bottom: 14px; }
.cart-summary h3 {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -.1px;
}
.cart-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 10px;
}
.cart-list li {
  display: flex;
  justify-content: space-between;
  font-size: .84rem;
  align-items: flex-start;
  gap: 8px;
}
.cart-list .li-name { color: var(--text); font-weight: 500; }
.cart-list .li-price { color: var(--muted); white-space: nowrap; font-weight: 600; }
.cart-totals {
  border-top: 1px solid var(--border-2);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cart-line {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--muted);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: .95rem;
  color: var(--text);
  font-weight: 800;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1.5px solid var(--border);
  letter-spacing: -.1px;
}

/* ─── Checkout Options ───────────────────────────────────────────────────── */
.checkout-options { margin-bottom: 12px; display: flex; flex-direction: column; gap: 12px; }
.checkout-group { margin-bottom: 12px; }
.checkout-group h4 {
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-2);
  letter-spacing: .3px;
  text-transform: uppercase;
}
.checkout-radios { display: flex; gap: 8px; }
.checkout-radio { flex: 1; cursor: pointer; }
.checkout-radio input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.checkout-radio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-align: center;
  background: var(--surface);
}
.checkout-radio input[type="radio"]:checked + .checkout-radio-card {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb, 153,153,153), .04);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 153,153,153), .1);
}
.checkout-radio:hover .checkout-radio-card {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb, 153,153,153), .03);
}
.checkout-radio-icon { font-size: 1.4rem; line-height: 1; }
.checkout-radio-text { font-weight: 600; font-size: .78rem; color: var(--text); }
.checkout-radio-fee { font-size: .68rem; color: var(--muted); font-weight: 500; }

/* ─── Schedule Picker ────────────────────────────────────────────────────── */
.schedule-picker { margin-top: 10px; display: flex; gap: 10px; }
.schedule-row { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.schedule-row label {
  font-weight: 600;
  font-size: .75rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .2px;
}
.schedule-select {
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: .875rem;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  appearance: auto;
}
.schedule-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212,65,30,.1);
  outline: none;
}

/* ─── Stripe Card Element ────────────────────────────────────────────────── */
.stripe-card-section {
  margin-bottom: 12px;
  padding: 14px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}
.stripe-card-section h4 {
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.stripe-card-element {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  background: #fff;
  transition: border-color var(--transition);
}
.stripe-card-element.StripeElement--focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(212,65,30,.1); }
.stripe-card-element.StripeElement--invalid { border-color: #ef4444; }

/* ─── Options UI ─────────────────────────────────────────────────────────── */
.item-options { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.item-option-group { display: flex; flex-direction: column; gap: 4px; }
.option-group-label {
  font-weight: 700;
  font-size: .78rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .2px;
}
.option-choices { display: flex; flex-direction: column; gap: 3px; padding-left: 4px; }
.option-choice { display: flex; align-items: center; gap: 6px; font-size: .82rem; cursor: pointer; }
.option-choice input[type="radio"] { accent-color: var(--primary); }

/* ─── Cart options ───────────────────────────────────────────────────────── */
.li-options { font-size: .76rem; color: var(--muted); margin-top: 2px; }

/* ─── Extras Dropdown ─────────────────────────────────────────────────────── */
.extras-dropdown {
  margin-top: 6px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: var(--surface-2);
}
.extras-dropdown-toggle {
  padding: 6px 10px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  user-select: none;
}
.extras-dropdown-toggle::-webkit-details-marker { display: none; }
.extras-dropdown-toggle::before { content: '▸'; font-size: .7rem; transition: transform .2s; }
.extras-dropdown[open] > .extras-dropdown-toggle::before { transform: rotate(90deg); }

/* ─── Extras UI ──────────────────────────────────────────────────────────── */
.item-extras { display: flex; flex-direction: column; gap: 5px; padding: 4px 10px 8px; }
.extra-option { display: flex; align-items: center; gap: 6px; font-size: .82rem; cursor: pointer; }
.extra-option input[type="checkbox"] { accent-color: var(--primary); }

.item-size-select { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.size-option { display: flex; align-items: center; gap: 6px; font-size: .875rem; cursor: pointer; }
.size-option input[type="radio"] { accent-color: var(--primary); }

/* ─── Add to Cart Button ─────────────────────────────────────────────────── */
.btn-add-cart {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--btn-bg, var(--primary));
  color: var(--btn-text-color, #fff);
  border: none;
  border-radius: var(--radius-xs);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  width: 100%;
  letter-spacing: .1px;
  font-family: inherit;
}
.btn-add-cart:hover:not(:disabled) {
  background: var(--btn-bg-h, var(--primary-h));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.btn-add-cart:active:not(:disabled) { transform: translateY(0); box-shadow: none; }
.btn-add-cart:disabled { opacity: .5; cursor: default; }

/* ─── Cart extras & remove ───────────────────────────────────────────────── */
.li-details { display: flex; flex-direction: column; flex: 1; }
.li-extras { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.li-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cart-remove-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: .9rem;
  cursor: pointer;
  padding: 0 3px;
  line-height: 1;
  transition: color var(--transition);
}
.cart-remove-btn:hover { color: #ef4444; }

/* ─── Primary Button ─────────────────────────────────────────────────────── */
.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--btn-bg, var(--primary));
  color: var(--btn-text-color, #fff);
  border: none;
  border-radius: var(--radius-sm);
  font-size: .975rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-top: 6px;
  letter-spacing: .1px;
  font-family: inherit;
}
.btn-primary:hover:not(:disabled) {
  background: var(--btn-bg-h, var(--primary-h));
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); box-shadow: none; }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary.sm { width: auto; padding: 8px 16px; font-size: .85rem; margin-top: 0; border-radius: var(--radius-xs); }

/* ─── Errors ─────────────────────────────────────────────────────────────── */
.form-error { color: #dc2626; font-size: .84rem; margin-top: 8px; text-align: center; font-weight: 500; }

/* ─── Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 200; backdrop-filter: blur(4px); }
.modal {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 201; padding: 20px;
  pointer-events: none;
}
.modal:not(.hidden) { pointer-events: all; }
.modal-box {
  background: var(--surface);
  border-radius: 24px;
  padding: 40px 32px;
  max-width: 420px; width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.modal-icon { font-size: 3.5rem; margin-bottom: 16px; line-height: 1; }
.modal-box h2 { margin-bottom: 10px; font-size: 1.4rem; font-weight: 800; letter-spacing: -.3px; }
.modal-box p { color: var(--muted); margin-bottom: 6px; font-size: .9rem; line-height: 1.6; }
.modal-order-id { font-weight: 700; color: var(--text) !important; font-size: .925rem; }

/* ─── Mobile floating cart button ───────────────────────────────────────── */
.scroll-to-cart-btn {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 30px;
  border-radius: 100px;
  border: none;
  background: var(--primary);
  color: var(--btn-text-color, #fff);
  font-size: .9rem;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(0,0,0,.28);
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: .1px;
}

/* ─── Utility ────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.tab-placeholder { color: var(--muted); font-style: italic; font-size: .9rem; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .page-layout {
    grid-template-columns: 1fr;
    padding: 16px 16px 100px;
  }
  .order-panel {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  .cart-toggle-btn { display: flex; }
}

@media (min-width: 961px) {
  .scroll-to-cart-btn { display: none !important; }
  .gh-wrap.gh-cart { display: none; }
}

@media (max-width: 640px) {
  .brand { font-size: 1.45rem; }
  .brand-bar { padding: 18px 16px 14px; }
  .category-nav-inner { padding: 0 14px; }
  .page-layout { padding: 12px 12px 100px; gap: 14px; }
  .card { padding: 16px; }
  .menu-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .site-header { padding: 0 16px; }
  /* Tighten header actions so cart + lang fit on small screens */
  .header-actions { gap: 3px; }
  .cart-toggle-btn { padding: 5px 10px; }
  .lang-switcher { gap: 3px; }
  .lang-btn img { width: 24px; height: 17px; }
}

@media (max-width: 360px) {
  .menu-grid { grid-template-columns: 1fr 1fr; }
}
