/* ============================================================
   Maharani Indian Restaurant — Customer App Design System
   Mobile-first, WebView-optimised
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary:       #1B8A3E;
  --primary-dark:  #166F33;
  --primary-light: #52B788;
  --accent:        #2D9E57;
  --gradient:      linear-gradient(135deg, #1B8A3E 0%, #2D9E57 100%);
  --gradient-dark: linear-gradient(135deg, #166F33 0%, #1B8A3E 100%);

  --bg:            #FAFAFA;
  --surface:       #FFFFFF;
  --surface-2:     #F5F5F5;
  --border:        #EEEEEE;

  --text-primary:  #1A1A1A;
  --text-secondary:#666666;
  --text-muted:    #999999;
  --text-white:    #FFFFFF;

  --success:       #4CAF50;
  --warning:       #FF9800;
  --error:         #F44336;
  --info:          #2196F3;

  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --radius-pill:   999px;

  --shadow-sm:     0 1px 4px rgba(0,0,0,.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.14);
  --shadow-primary:0 4px 16px rgba(27,138,62,.25);

  --bottom-nav-h:  65px;
  --header-h:      56px;
  --transition:    0.2s ease;
}

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

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

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100dvh;
  padding-bottom: var(--bottom-nav-h);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ── App Container ─────────────────────────────────────────── */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  min-height: 100dvh;
  position: relative;
}

/* ── App Header ─────────────────────────────────────────────── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  min-height: var(--header-h);
}

.app-header .location-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.app-header .location-row strong {
  color: var(--text-primary);
  font-size: 15px;
}

.app-header .header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}

.header-icon-btn:active { background: var(--border); }

.badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  border: 1.5px solid var(--surface);
}

/* ── Page Title Header (used on inner pages) ─────────────────── */
.page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  padding: 0 16px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 18px;
  font-weight: 700;
}

.back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Bottom Navigation Bar ──────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--bottom-nav-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  z-index: 200;
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
  padding: 6px 0;
  border: none;
  background: none;
}

.nav-item span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 4px 4px;
}

.nav-cart-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 20px);
  min-width: 18px;
  height: 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1.5px solid var(--surface);
}

/* ── Hero Banner Slider ──────────────────────────────────────── */
.hero-slider {
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}

.hero-slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.hero-slides::-webkit-scrollbar { display: none; }

.hero-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  border-radius: 0;
  overflow: hidden;
}

.hero-slide {
  height: 200px;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.hero-promo-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
  width: fit-content;
}

.hero-slide-overlay h2 {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

.hero-slide-overlay p {
  color: rgba(255,255,255,.85);
  font-size: 12px;
  margin: 4px 0 10px;
}

.hero-cta-btn {
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
  box-shadow: var(--shadow-primary);
}

.slider-dots {
  position: absolute;
  bottom: 12px;
  right: 16px;
  display: flex;
  gap: 5px;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: all var(--transition);
}

.slider-dot.active {
  background: #fff;
  width: 18px;
  border-radius: 3px;
}

/* ── Search Bar ─────────────────────────────────────────────── */
.search-bar {
  margin: 12px 16px;
  position: relative;
}

.search-bar input {
  width: 100%;
  height: 44px;
  background: var(--surface-2);
  border: 1.5px solid transparent;
  border-radius: var(--radius-xl);
  padding: 0 44px 0 44px;
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color var(--transition);
  outline: none;
}

.search-bar input:focus {
  border-color: var(--primary);
  background: var(--surface);
}

.search-bar input::placeholder { color: var(--text-muted); }

.search-bar .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* ── Section Headers ─────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.see-all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* ── Category Chips ──────────────────────────────────────────── */
.categories-row {
  padding: 4px 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.categories-row::-webkit-scrollbar { display: none; }

.categories-inner {
  display: flex;
  gap: 10px;
  padding: 0 16px;
}

.category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  border: none;
  background: none;
}

.category-chip-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f0faf5, #e4f5ec);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.2s ease;
  border: 2px solid rgba(76,175,80,0.15);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(76,175,80,0.12), 0 1px 3px rgba(0,0,0,0.06);
}

.category-chip:hover .category-chip-icon {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(76,175,80,0.22), 0 2px 6px rgba(0,0,0,0.08);
  border-color: rgba(76,175,80,0.35);
}

.category-chip-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.category-chip.active .category-chip-icon {
  background: linear-gradient(145deg, #d4efdf, #b8e6ca);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(76,175,80,0.30), 0 1px 4px rgba(0,0,0,0.08);
}

.category-chip span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  max-width: 66px;
  white-space: normal;
  line-height: 1.2;
}

.category-chip.active span { color: var(--primary); }

/* ── Top Picks — Horizontal Scroll Cards ─────────────────────── */
.top-picks-row {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 16px;
}

.top-picks-row::-webkit-scrollbar { display: none; }

.top-picks-inner {
  display: flex;
  gap: 12px;
}

.top-pick-card {
  flex: 0 0 140px;
  border-radius: var(--radius-xl);
  overflow: visible;
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
  padding: 12px 10px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.top-pick-card:active {
  transform: scale(0.97);
}

.top-pick-image {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  background: transparent;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.15));
  margin-bottom: 8px;
  flex-shrink: 0;
}

.top-pick-body {
  padding: 0;
  text-align: center;
  width: 100%;
}

.top-pick-body h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.top-pick-body .price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.top-pick-body .delivery-tag {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Product List Cards (vertical list) ──────────────────────── */
.product-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg);
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface);
  padding: 16px 12px 42px;
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover  { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.product-card:active { transform: scale(.97); }

.product-card-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: transparent;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.18));
  margin-bottom: 12px;
}

.product-card-body {
  width: 100%;
  text-align: center;
}

.product-card-body h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.product-card-body p { display: none; }

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 6px;
  width: 100%;
  padding: 0 2px;
}

.product-card .btn-add,
.top-pick-card .btn-add {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

/* ── Add Button ──────────────────────────────────────────────── */
.btn-add {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
  box-shadow: var(--shadow-primary);
}

.btn-add:active {
  transform: scale(0.9);
  background: var(--primary-dark);
}

/* ── Sticky Cart Bar ─────────────────────────────────────────── */
.cart-sticky-bar {
  position: fixed;
  bottom: var(--bottom-nav-h);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 448px;
  background: var(--gradient);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 150;
  box-shadow: var(--shadow-primary);
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.cart-sticky-bar.hidden {
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  pointer-events: none;
}

.cart-sticky-bar .cart-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item-count {
  background: rgba(255,255,255,.25);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 700;
}

.cart-sticky-bar .cart-label {
  font-size: 15px;
  font-weight: 700;
}

.cart-sticky-bar .cart-total {
  font-size: 16px;
  font-weight: 800;
}

/* ── Product Detail Page ─────────────────────────────────────── */
.product-detail-image-wrap {
  position: relative;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 24px 12px;
  min-height: 240px;
}

.product-detail-image {
  width: auto;
  max-width: 88%;
  height: 220px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.18));
}

.product-detail-body {
  padding: 16px 16px 120px;
}

.product-detail-name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}

.product-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.calorie-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.product-detail-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.delivery-info-tag {
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
  margin-bottom: 16px;
}

.product-detail-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Ingredients */
.ingredients-section h4,
.variations-section h4,
.addons-section h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.ingredients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.ingredient-tag {
  background: var(--surface-2);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Variations */
.variations-section {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.variation-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.variation-option:last-child { border-bottom: none; }

.variation-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.variation-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.variation-radio.selected {
  border-color: var(--primary);
  background: var(--primary);
}

.variation-radio.selected::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.variation-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.variation-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Add-ons */
.addons-section {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.addon-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.addon-option:last-child { border-bottom: none; }

.addon-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.addon-checkbox.checked {
  border-color: var(--primary);
  background: var(--primary);
}

.addon-checkbox.checked::after {
  content: '✓';
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.addon-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
  margin-left: 10px;
}

.addon-price {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Quantity Stepper */
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--surface);
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--primary);
  font-weight: 700;
  transition: background var(--transition);
}

.qty-btn:active { background: var(--surface-2); }
.qty-btn:disabled { color: var(--text-muted); }

.qty-value {
  min-width: 36px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Sticky Add to Cart */
.sticky-add-bar {
  position: fixed;
  bottom: var(--bottom-nav-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 150;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}

.btn-add-to-cart {
  flex: 1;
  height: 48px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: var(--shadow-primary);
  transition: opacity var(--transition);
}
html[lang="si"] .btn-add-to-cart { font-size: 13px; gap: 6px; }

.btn-add-to-cart:active { opacity: 0.85; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-xl);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 20px;
  height: 48px;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:active { opacity: 0.85; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text-primary);
}

.btn-full { width: 100%; }

.btn-sm {
  height: 36px;
  font-size: 13px;
  padding: 0 14px;
}

/* ── Forms ───────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 14px;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--surface);
  outline: none;
  transition: border-color var(--transition);
}

.form-input:focus { border-color: var(--primary); }
.form-input::placeholder { color: var(--text-muted); }
.form-input.error { border-color: var(--error); }

textarea.form-input {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
  min-height: 80px;
}

.form-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
}

/* ── Cards / Surface components ─────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.card-body {
  padding: 16px;
}

/* ── Status Badges ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
}

.badge-pending    { background: #FFF3E0; color: #E65100; }
.badge-confirmed  { background: #E3F2FD; color: #1565C0; }
.badge-preparing  { background: #F3E5F5; color: #6A1B9A; }
.badge-out_for_delivery { background: #E8F5E9; color: #2E7D32; }
.badge-delivered  { background: #E8F5E9; color: #1B5E20; }
.badge-cancelled  { background: #FFEBEE; color: #C62828; }

/* ── Order Status Tracker ────────────────────────────────────── */
.status-tracker {
  display: flex;
  align-items: center;
  padding: 20px 16px;
  overflow-x: auto;
  gap: 0;
}

.tracker-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}

.tracker-step::before {
  content: '';
  position: absolute;
  top: 16px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.tracker-step:last-child::before { display: none; }

.tracker-step.done::before { background: var(--primary); }

.tracker-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  font-size: 14px;
  transition: all var(--transition);
}

.tracker-step.done .tracker-icon {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.tracker-step.active .tracker-icon {
  border-color: var(--primary);
  background: #E8F5EE;
  color: var(--primary);
}

.tracker-label {
  font-size: 9px;
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.3;
  max-width: 56px;
}

.tracker-step.done .tracker-label,
.tracker-step.active .tracker-label { color: var(--primary); }

/* ── Cart Page ───────────────────────────────────────────────── */
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.cart-item-img {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
}

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

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.cart-item-variation {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cart-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFEBEE;
  border: none;
  color: var(--error);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

/* ── Order Summary / Checkout ────────────────────────────────── */
.summary-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin: 0 16px 16px;
  overflow: hidden;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.summary-row:last-child { border-bottom: none; }
.summary-row.total { font-weight: 700; font-size: 16px; }
.summary-row .discount { color: var(--success); }

/* ── Address Card ────────────────────────────────────────────── */
.address-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  margin-bottom: 10px;
}

.address-card.selected {
  border-color: var(--primary);
  background: #FFF9F7;
}

.address-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.address-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.address-selected-dot {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
}

.address-card.selected .address-selected-dot {
  border-color: var(--primary);
  background: var(--primary);
}

.address-card.selected .address-selected-dot::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* ── Promo Code ──────────────────────────────────────────────── */
.promo-row {
  display: flex;
  gap: 8px;
  margin: 0 16px 16px;
}

.promo-input {
  flex: 1;
  height: 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  outline: none;
}

.promo-input:focus { border-color: var(--primary); }

.promo-apply-btn {
  height: 44px;
  padding: 0 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* ── Toast Notifications ─────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  width: calc(100% - 32px);
  max-width: 420px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1A1A1A;
  color: #fff;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.3s ease;
  pointer-events: all;
}

.toast.success { background: var(--success); }
.toast.error   { background: var(--error); }
.toast.warning { background: var(--warning); color: #1A1A1A; }

@keyframes toast-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes toast-out {
  to { transform: translateY(20px); opacity: 0; }
}

.toast.out { animation: toast-out 0.3s ease forwards; }

/* ── Skeleton Loaders ────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

.skeleton-card {
  width: 160px;
  flex: 0 0 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.skeleton-img  { height: 110px; }
.skeleton-line { height: 12px; margin: 8px 10px 4px; }
.skeleton-line.short { width: 60%; }

/* ── Empty States ────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  text-align: center;
}

.empty-state .empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* ── Auth Pages ──────────────────────────────────────────────── */
.auth-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.auth-header-brand {
  padding: 48px 24px 32px;
  text-align: center;
  background: var(--gradient);
}

.auth-header-brand .brand-name {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}

.auth-header-brand .brand-sub {
  color: rgba(255,255,255,.8);
  font-size: 14px;
  margin-top: 4px;
}

.auth-body {
  flex: 1;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  margin-top: -20px;
  padding: 32px 24px 40px;
}

.auth-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 24px 0;
}

.otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition);
  -moz-appearance: textfield;
}

.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.otp-input:focus { border-color: var(--primary); }
.otp-input.filled { border-color: var(--primary); background: #E8F5EE; }

/* ── Profile Page ────────────────────────────────────────────── */
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 12px;
}

.menu-list {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  margin: 0 16px 16px;
}

.menu-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  color: inherit;
}

.menu-list-item:last-child { border-bottom: none; }
.menu-list-item:active { background: var(--surface-2); }

.menu-list-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-list-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.menu-list-item h4 {
  font-size: 14px;
  font-weight: 600;
}

.menu-list-item p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Section padding ─────────────────────────────────────────── */
.section { margin-bottom: 24px; }

.px-16 { padding-left: 16px; padding-right: 16px; }
.py-16 { padding-top: 16px; padding-bottom: 16px; }
.pb-16 { padding-bottom: 16px; }
.pt-8  { padding-top: 8px; }
.mt-8  { margin-top: 8px; }
.mb-16 { margin-bottom: 16px; }

/* ── Dividers ────────────────────────────────────────────────── */
.divider {
  height: 8px;
  background: var(--surface-2);
}

.hr {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0 16px;
}

/* ── Utility ─────────────────────────────────────────────────── */
.text-primary  { color: var(--primary) !important; }
.text-muted    { color: var(--text-muted) !important; }
.text-center   { text-align: center; }
.font-bold     { font-weight: 700; }
.font-sm       { font-size: 13px; }
.flex          { display: flex; }
.flex-between  { display: flex; justify-content: space-between; align-items: center; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.gap-8         { gap: 8px; }
.gap-12        { gap: 12px; }
.w-full        { width: 100%; }

/* ── Mobile frame shadow (small tablets) ─────────────────────── */
@media (min-width: 520px) and (max-width: 767px) {
  .app-container {
    box-shadow: 0 0 40px rgba(0,0,0,.12);
    min-height: 100vh;
  }
  .bottom-nav,
  .cart-sticky-bar,
  .sticky-add-bar {
    max-width: 480px;
  }
}

/* ── Desktop navbar (hidden on mobile) ───────────────────────── */
.desktop-nav { display: none; }

/* ── Auth pages desktop top bar ─────────────────────────────── */
@media (min-width: 768px) {
  .auth-desktop-bar {
    display: flex !important;
    align-items: center;
    padding: 16px 32px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .app-container.auth-page {
    max-width: 480px;
    margin: 40px auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    min-height: unset;
  }
}

/* ── Desktop Layout (≥ 768px) ────────────────────────────────── */
@media (min-width: 768px) {
  :root { --bottom-nav-h: 0px; }

  body { padding-bottom: 0; background: var(--surface); }

  .app-container {
    max-width: 100%;
    width: 100%;
    box-shadow: none;
    background: var(--surface);
  }

  /* Show desktop nav, hide mobile header & bottom nav */
  .desktop-nav  { display: block; position: sticky; top: 0; z-index: 200; width: 100%; }
  .app-header   { display: none !important; }
  .bottom-nav   { display: none !important; }

  /* Page header (inner pages) */
  .page-header {
    max-width: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    padding: 16px 5vw;
  }

  /* Cart bar & sticky add bar - full width */
  .cart-sticky-bar {
    max-width: 100%;
    left: 0; right: 0;
    transform: none;
    border-radius: 0;
    bottom: 0;
  }
  .sticky-add-bar {
    max-width: 100%;
    left: 0; right: 0;
    transform: none;
    bottom: 0;
  }

  /* Hero slider — proportional on desktop so image isn't cropped */
  .hero-slider-wrap { border-radius: 0; }
  .hero-slide { height: clamp(300px, 32vw, 520px); }
  .hero-slide-content { padding: 48px 5vw; max-width: 600px; }
  .hero-slide-content h2 { font-size: 36px; }
  .hero-slide-content p  { font-size: 16px; }

  /* Category chips */
  .category-chips-wrap { padding: 24px 5vw; gap: 20px; max-width: 100%; }
  .category-chip-icon  { width: 72px; height: 72px; }
  .category-chip span  { font-size: 12px; }

  /* Top Picks */
  .top-picks-section { padding: 24px 5vw; }
  .top-pick-card     { flex: 0 0 160px; }
  .top-pick-image    { width: 110px; height: 110px; }

  /* Section headings */
  .section-title { font-size: 20px; padding: 16px 5vw 8px; }

  /* Products: auto-fill grid on tablet+ */
  .product-list {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding: 16px 24px;
  }
  .product-card-image { width: 120px; height: 120px; }

  /* Search page wider input */
  .search-input-wrap { max-width: 600px; margin: 0 auto; }
}

/* ── Large desktop (≥ 1024px) ────────────────────────────────── */
@media (min-width: 1024px) {
  .product-list { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; padding: 20px 32px; }
  .product-card-image { width: 130px; height: 130px; }
  .top-pick-card { width: 230px; }
}

/* ── XL desktop (≥ 1280px) ───────────────────────────────────── */
@media (min-width: 1280px) {
  .product-list { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .product-detail-image { height: 300px; }
}

/* ── Desktop navbar styles ────────────────────────────────────── */
.desktop-nav-inner {
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 5vw;
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.desktop-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.desktop-logo-icon { font-size: 30px; line-height: 1; }
.desktop-logo-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.desktop-logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

.desktop-search-pill {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.desktop-search-pill:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,87,34,.1);
  color: var(--text-primary);
}

.desktop-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.desktop-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.desktop-nav-link:hover, .desktop-nav-link.active {
  background: #FFF3F0;
  color: var(--primary);
}

.desktop-cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--gradient);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-primary);
  position: relative;
}
.desktop-cart-btn:hover { opacity: .9; }

.desktop-cart-badge {
  background: white;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Reduced motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Zone modal animation ─────────────────────────────────────── */
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Info footer (social + links strip) ─────────────────────── */
.info-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px 16px 24px;
  margin-bottom: 130px;
  text-align: center;
}
.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 18px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.social-icon-btn:hover, .social-icon-btn:active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.info-footer-links { display: flex; justify-content: center; gap: 6px 14px; flex-wrap: wrap; margin: 10px 0 8px; }
.info-footer-links a { font-size: 12px; color: var(--text-muted); text-decoration: none; }
.info-footer-links a:hover { color: var(--primary); }

/* ── Certification logos strip ───────────────────────────────── */
.cert-row {
  background: #111a11;
  padding: 20px 16px 24px;
  text-align: center;
}
.cert-row-label {
  font-size: 10px;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.cert-row-imgs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.cert-row-imgs img {
  height: 64px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}

/* ── Gallery grid ────────────────────────────────────────────── */
/* ── Gallery Grid ────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
@media (min-width: 480px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid-item {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  position: relative;
}
.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s;
  display: block;
}
.gallery-grid-item > div {
  width: 100%;
  height: 100%;
}
@media (hover: hover) { .gallery-grid-item:hover img { transform: scale(1.05); } }
.gallery-grid-item:active { opacity: .88; }
.gallery-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.gallery-type-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.5;
  pointer-events: none;
}

/* ── Lightbox ────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.96);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox-media {
  max-width: min(92vw, 700px);
  max-height: 75vh;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.lightbox-video {
  max-width: min(92vw, 700px);
  max-height: 75vh;
  width: 100%;
  border-radius: 6px;
  outline: none;
  background: #000;
}
.lightbox-iframe-wrap {
  width: min(92vw, 700px);
  aspect-ratio: 16/9;
  max-height: 75vh;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.lightbox-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.lightbox-caption {
  margin-top: 12px;
  color: rgba(255,255,255,.70);
  font-size: 13px;
  text-align: center;
  padding: 0 56px;
  min-height: 18px;
}
.lightbox-counter {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.50);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  pointer-events: none;
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(255,255,255,.14);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.14);
  border: none;
  color: #fff;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  transition: background .15s;
  z-index: 2;
}
.lightbox-nav:hover { background: rgba(255,255,255,.24); }
.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }

/* ── Static info pages ───────────────────────────────────────── */
.info-page { padding: 20px 16px 32px; }
.info-page h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.info-page h3 { font-size: 15px; font-weight: 700; margin: 20px 0 8px; color: var(--text); }
.info-page p  { font-size: 14px; color: var(--text-secondary, var(--text-muted)); line-height: 1.65; margin-bottom: 10px; }
.info-page ul { padding-left: 20px; margin-bottom: 10px; }
.info-page li { font-size: 14px; color: var(--text-secondary, var(--text-muted)); line-height: 1.65; margin-bottom: 4px; }
.info-page a  { color: var(--primary); }
.info-page .section-divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ── Language toggle ─────────────────────────────────────────── */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--surface-2, #f5f5f5);
  border: 1.5px solid var(--border, #e0e0e0);
  border-radius: var(--radius-pill, 999px);
  padding: 2px;
  gap: 0;
  flex-shrink: 0;
}
.lang-toggle a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill, 999px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  text-decoration: none;
  color: var(--text-muted, #999);
  transition: background .18s, color .18s, box-shadow .18s;
  white-space: nowrap;
  line-height: 1;
}
.lang-toggle a.active {
  background: var(--primary, #1B8A3E);
  color: #fff;
  box-shadow: 0 1px 5px rgba(27,138,62,.30);
}
/* Smaller variant for mobile header */
.lang-toggle-sm a {
  padding: 3px 8px;
  font-size: 10px;
}
/* Sinhala script needs slightly larger size for readability */
html[lang="si"] body { font-family: 'Segoe UI', 'Noto Sans Sinhala', -apple-system, BlinkMacSystemFont, sans-serif; }
@media (min-width: 768px) {
  .lang-toggle { margin-left: 4px; }
}

