/* ===== DESIGN TOKENS ===== */
:root {
  --bg: #fdfbf6;
  --bg-subtle: #f1ece4;
  --surface: #ffffff;
  --surface-hover: #f7f2ea;
  --border: #e4dbc9;
  --gold: #c8973e;
  --gold-light: #ddba6a;
  --gold-dark: #8f6f2d;
  --cream: #fdfbf7;
  --text: #221c14;
  --text-muted: #6f665a;
  --danger: #d44;
  --success: #5b9;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
  --header-h: 64px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Yekan', 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

[dir="ltr"] body { direction: ltr; text-align: left; }
[dir="rtl"] body { direction: rtl; text-align: right; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input { font: inherit; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 700; letter-spacing: 0.05em; }
h2 { font-size: clamp(1.25rem, 3.5vw, 1.75rem); font-weight: 600; }
h3 { font-size: clamp(1rem, 2.5vw, 1.25rem); font-weight: 600; }
p { color: var(--text-muted); line-height: 1.7; }

.gold { color: var(--gold); }
.subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,242,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.brand-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.lang-btn.active {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.menu-cta-btn {
  padding: 0.5rem 1.25rem;
  background: var(--gold);
  color: var(--bg);
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.menu-cta-btn:hover { background: var(--gold-light); color: #fff; }

/* ===== Contact buttons ===== */
.contact-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.4rem; border-radius: 12px;
  background: rgba(224, 184, 76, 0.12); border: 1px solid rgba(224, 184, 76, 0.55);
  color: #e6c96e; text-decoration: none; font-weight: 700; font-size: 1rem;
  transition: all 0.25s ease; cursor: pointer;
}
.contact-btn:hover { background: rgba(224, 184, 76, 0.22); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(224, 184, 76, 0.18); color: #f2dc8e; }
.contact-btn .btn-icon { font-size: 1.35rem; line-height: 1; }
.contact-btn .btn-label { letter-spacing: 0.3px; }

/* ===== HERO ===== */
.hero {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(177,138,58,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  width: 120px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(34,28,20,0.18);
  border: 1px solid rgba(177,138,58,0.5);
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 0 20px rgba(200,167,94,0.2));
}

.hero h1 { margin-bottom: 0.5rem; }
.hero .tagline { color: var(--text-muted); margin-bottom: 2rem; font-size: 1rem; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: var(--gold);
  color: var(--bg);
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(200,167,94,0.3);
}

.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(200,167,94,0.4); }

/* ===== SECTIONS ===== */
.section {
  padding: 2rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title .gold-line {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 0.75rem auto 0;
}

/* ===== CATEGORY GRID (HOME) ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.cat-card:hover {
  border-color: var(--gold-dark);
  background: var(--surface-hover);
}

.cat-card .icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.cat-card .name { font-size: 0.95rem; font-weight: 600; }
.cat-card .count { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ===== MENU PAGE ===== */
.search-bar {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: 0.75rem 1.25rem;
}

.search-input-wrap {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 1rem; /* will flip in RTL */
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

[dir="ltr"] .search-icon { left: 1rem; right: auto; }
[dir="rtl"] .search-icon { right: 1rem; left: auto; }

.search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 25px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}

[dir="ltr"] .search-input { padding-left: 2.75rem; padding-right: 1rem; }
[dir="rtl"] .search-input { padding-right: 2.75rem; padding-left: 1rem; }

.search-input:focus { border-color: var(--gold); }
.search-input::placeholder { color: var(--text-muted); }

/* Category Nav */
.cat-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 95;
  background: var(--bg);
  box-shadow: 0 2px 12px rgba(34,28,20,0.06);
  padding: 0.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }

.cat-nav-inner {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: max-content;
}

.cat-nav-btn {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--border);
  transition: all var(--transition);
  flex-shrink: 0;
}

.cat-nav-btn.active {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.cat-nav-btn:hover:not(.active) { border-color: var(--gold-dark); }

/* Menu Grid */
.menu-container { max-width: 1200px; margin: 0 auto; padding: 1rem 1.25rem 4rem; }

.menu-category { margin-bottom: 2.5rem; scroll-margin-top: calc(var(--header-h) + 56px); }

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.category-header .icon { font-size: 1.5rem; }
.category-header h2 { font-size: 1.25rem; }
.category-header .item-count { font-size: 0.8rem; color: var(--text-muted); }

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* Product Card */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--gold-dark);
  background: var(--surface-hover);
}

.product-card.unavailable { opacity: 0.6; }

.product-img {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-subtle);
  overflow: hidden;
}

/* Blurred backdrop from the item's own image — fills the 16/10 frame
   without cropping the photo and without plain whitespace. */
.product-img-bg {
  position: absolute;
  top: -12px;
  right: -12px;
  bottom: -12px;
  left: -12px;
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.15);
  transform: scale(1.08);
}

.product-img img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  transition: transform 0.3s ease;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, var(--bg-subtle), var(--bg-subtle) 12px, var(--surface-hover) 12px, var(--surface-hover) 24px);
}
.product-placeholder::after { content: '🍽️'; font-size: 2rem; opacity: 0.45; }

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

.product-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[dir="rtl"] .product-badge { right: auto; left: 0.5rem; }

.product-info { padding: 0.85rem; flex: 1; display: flex; flex-direction: column; }

.product-names { margin-bottom: 0.5rem; }

.product-name-fa {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.product-name-en {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.product-price {
  font-weight: 700;
  color: var(--gold);
  font-size: 1rem;
}

.product-unavailable-label {
  font-size: 0.75rem;
  color: var(--danger);
  font-weight: 600;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.no-results .icon { font-size: 3rem; margin-bottom: 1rem; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: repeat(3, 1fr); }
}

.footer-section h3 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-links a, .footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold); }

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.social-link:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* ===== QR CARD ===== */
.qr-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
}

.qr-card {
  background: #ffffff;
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 400px;
  width: 100%;
  position: relative;
}

.qr-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(200,167,94,0.2);
  border-radius: 16px;
  pointer-events: none;
}

.qr-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

.qr-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.qr-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.qr-code-wrapper {
  width: 220px;
  height: 220px;
  background: white;
  border-radius: 12px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.qr-code-wrapper svg { width: 100%; height: 100%; }

.qr-instruction {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.qr-brand {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Print styles */
@media print {
  .header, .search-bar, .cat-nav, .footer { display: none !important; }
  .qr-page { background: white !important; }
  .qr-card { border: 2px solid #000; background: white; box-shadow: none; }
  .qr-code-wrapper { background: white !important; }
}

/* ===== SMOOTH SCROLL ===== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .category-anchor { scroll-margin-top: calc(var(--header-h) + 56px); }
}

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.text-center { text-align: center; }
.gap-1 { gap: 1rem; }

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

/* ===== LOADING STATE ===== */
.loading-skeleton {
  background: linear-gradient(90deg, #f4efe7 25%, #ebe4d8 50%, #f4efe7 75%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ===== QR close button + site link ===== */
.qr-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 2;
}
.qr-close:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

.qr-site {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  direction: ltr;
}
.qr-site:hover { text-decoration: underline; }

.qr-url-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}


/* ===== v5 overrides ===== */
.cat-nav-inner {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.4rem; max-width: 960px; margin: 0 auto;
  padding: 0.3rem 0.6rem; width: 100%;
}
.cat-nav-btn {
  padding: 0.4rem 0.95rem; border-radius: 18px;
  font-size: 0.85rem; font-weight: 600; white-space: nowrap;
}
.logo-img {
  width: 54px; height: 54px; border-radius: 10px;
  filter: brightness(1.3) sepia(0.45) saturate(2.2) hue-rotate(-6deg) drop-shadow(0 0 6px rgba(200,151,62,0.5));
}
.hero-logo {
  width: 200px; border-radius: 28px;
  border: 1.5px solid rgba(200,151,62,0.6);
  filter: brightness(1.35) sepia(0.5) saturate(2.4) hue-rotate(-6deg) drop-shadow(0 0 26px rgba(200,151,62,0.55));
}
.cat-card {
  background: linear-gradient(160deg, #ffffff 0%, #fef9ef 100%);
  border: 1px solid rgba(200,151,62,0.28); border-radius: 16px;
  padding: 1.6rem 0.8rem 1.2rem; text-align: center;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.cat-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}
.cat-card:hover::after { opacity: 1; }
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(200,151,62,0.2);
  border-color: var(--gold);
}
.cat-card .icon {
  font-size: 2.4rem; margin-bottom: 0.7rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(200,151,62,0.14), rgba(200,151,62,0.04));
  border: 1px solid rgba(200,151,62,0.22);
}
.cat-card .name { font-size: 0.95rem; font-weight: 700; }
.cat-card .count { font-size: 0.68rem; color: var(--gold-dark); font-weight: 600; margin-top: 0.35rem; }
@media (min-width: 768px) {
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; }
}
.footer-contact-item.phone-item { display: block; }

#v5phone{white-space:nowrap}#v5phone span{white-space:nowrap;padding:0;margin:0}


/* ===== v6: ROYAL GOLD — تیره لوکس ===== */
:root{--bg:#0b0a08;--card:#161310;--text:#ede6d6;--gold:#e0b84c;--gold2:#a8862e;--muted:#9a8f7a;--radius:14px}
body{background:radial-gradient(ellipse at 50% -10%,#221c10 0%,#0b0a08 55%);color:var(--text)}
.header{background:rgba(11,10,8,.85);backdrop-filter:blur(14px);border-bottom:1px solid rgba(224,184,76,.18)}
.brand-name{letter-spacing:3px;color:var(--gold)}
.hero{padding:4.5rem 1rem 3rem;text-align:center;position:relative}
.hero::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 50% 20%,rgba(224,184,76,.12),transparent 60%);pointer-events:none}
.hero-logo{width:170px;border-radius:18px;border:2px solid rgba(224,184,76,.5);box-shadow:0 0 45px rgba(224,184,76,.25)}
.hero h1{font-size:2.3rem;letter-spacing:-.5px}
.gold,.product-price,.footer-section h3,.section-title h2{color:var(--gold)}
.gold-line{background:linear-gradient(90deg,transparent,var(--gold),transparent);height:2px;opacity:.8}
.menu-cta-btn,.hero-cta{background:linear-gradient(135deg,#e0b84c,#a8862e);color:#141005!important;border:none;border-radius:10px;font-weight:800;box-shadow:0 6px 20px rgba(224,184,76,.3)}
.menu-cta-btn:hover,.hero-cta:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(224,184,76,.35)}
.search-input{background:var(--card);border:1px solid rgba(224,184,76,.3);color:var(--text);border-radius:12px}
.search-input:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(224,184,76,.15)}
.cat-nav-btn{background:var(--card);border:1px solid rgba(224,184,76,.25);color:var(--text);border-radius:10px;padding:.5rem 1.15rem;font-size:.85rem}
.cat-nav-btn.active,.cat-nav-btn:hover{background:linear-gradient(135deg,#e0b84c,#a8862e);color:#141005;border-color:transparent}
.product-card{background:linear-gradient(170deg,#1a1611,#12100c);border:1px solid rgba(224,184,76,.18);border-radius:14px;overflow:hidden}
.product-card:hover{border-color:rgba(224,184,76,.5);box-shadow:0 14px 40px rgba(224,184,76,.12);transform:translateY(-4px)}
.product-price{background:rgba(224,184,76,.1);padding:.25rem .7rem;border-radius:10px}
.cat-card{background:linear-gradient(160deg,#1c1710,#100d09);border:1px solid rgba(224,184,76,.2);border-radius:14px;padding:1.5rem .8rem;text-align:center;position:relative;overflow:hidden;transition:all .3s}
.cat-card::before{content:'';position:absolute;top:0;left:10%;right:10%;height:1px;background:linear-gradient(90deg,transparent,var(--gold),transparent);opacity:0;transition:.3s}
.cat-card:hover{transform:translateY(-6px);border-color:rgba(224,184,76,.6);box-shadow:0 14px 40px rgba(224,184,76,.15)}
.cat-card:hover::before{opacity:1}
.cat-card .icon{font-size:2.2rem;width:60px;height:60px;margin:0 auto .6rem;display:flex;align-items:center;justify-content:center;background:rgba(224,184,76,.08);border:1px solid rgba(224,184,76,.25);border-radius:50%}
.footer{background:#080706;border-top:1px solid rgba(224,184,76,.15)}
.lang-btn{border:1px solid rgba(224,184,76,.3);border-radius:8px}
.lang-btn.active{background:var(--gold);color:#141005}
#v5phone span{font-size:1.05rem;letter-spacing:1px}


/* ===== Phase 6: Stale banner / error states ===== */
.stale-banner {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.5;
}
@media (prefers-color-scheme: dark) {
  .stale-banner {
    background: #3d3520;
    color: #ffd057;
    border-color: #6b5a00;
  }
}

.no-results[role="alert"] {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 32px 16px;
  text-align: center;
}

/* ===== Phase 6 QA: small-viewport header fix (320px) ===== */
@media (max-width: 360px) {
  .header { padding: 0.5rem 0.625rem; }
  .header-inner { gap: 0.4rem; }
  .logo-row { gap: 0.4rem; }
  .brand-name { font-size: 0.82rem; letter-spacing: 1.5px; }
  .brand-sub { display: none; }
  .header-actions { gap: 0.25rem; min-width: 0; flex-shrink: 1; }
  .lang-btn { padding: 0.25rem 0.4rem; font-size: 0.68rem; border-radius: 16px; }
  .menu-cta-btn { padding: 0.35rem 0.65rem; font-size: 0.72rem; border-radius: 8px; }
  .logo-img { width: 34px; height: 34px; }
}
.no-results .icon { font-size: 2rem; margin-bottom: 8px; }
.no-results h3 { margin: 0 0 4px 0; font-size: 1.1rem; }
.no-results p { margin: 0; font-size: 0.9rem; opacity: 0.8; }
@media (prefers-color-scheme: dark) {
  .no-results[role="alert"] {
    background: #3d1f1f;
    color: #f5a9a9;
    border-color: #5a2020;
  }
}

/* Dynamic header navigation (DB-driven) */
.header-nav { display:flex; align-items:center; gap:0.25rem; flex-wrap:nowrap; min-width:0; }
.header-nav-link { color:var(--text); text-decoration:none; font-size:0.82rem; padding:0.35rem 0.6rem; border-radius:8px; white-space:nowrap; transition:background .2s,color .2s; }
.header-nav-link:hover { background:rgba(224,184,76,.15); color:var(--gold); }
.footer-bottom { text-align:center; padding:1rem 0 0.5rem; border-top:1px solid rgba(224,184,76,.15); margin-top:1rem; font-size:0.8rem; color:var(--muted,#9a9a9a); }
@media (max-width:768px){ .header-nav { display:none; } }
