@font-face {
  font-family: 'Aero BC';
  src: url('/fonts/aero-bc.woff') format('woff'),
       url('/fonts/aero-bc.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Apply Aero BC font to Yummy Pho & Sushi brand display elements */
.brand,
.hero-content h1 {
  font-family: 'Aero BC', sans-serif !important;
  font-weight: normal !important;
  letter-spacing: 0.5px;
}


:root {
  --bg: #121212;
  --surface: #1E1E1E;
  --primary: #D4AF37;
  --accent: #9E1B1B;
  --text: #F5F5F5;
  --muted: #A3A3A3;
  --border: #2E2E2E;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.notice-bar { background: var(--accent); color: #fff; text-align: center; padding: 8px 16px; font-size: 0.9rem; font-weight: 500; }
header.navbar { background: rgba(18, 18, 18, 0.95); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(8px); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.brand { font-size: 1.35rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.btn-cart { background: var(--primary); color: #111; font-weight: 700; padding: 8px 16px; border-radius: 8px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: none; }
.badge-count { background: var(--accent); color: #fff; border-radius: 999px; padding: 2px 8px; font-size: 0.8rem; }
.hero { position: relative; min-height: 500px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.3s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.62), rgba(0,0,0,0.75)); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 780px; padding: 40px 20px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); color: var(--primary); margin-bottom: 12px; font-weight: 800; }
.hero-slogan { font-style: italic; color: #e5e5e5; font-size: 1.15rem; margin-bottom: 10px; }
.hero p { font-size: 1.05rem; color: #ddd; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 8px; font-weight: 700; cursor: pointer; border: none; font-size: 0.95rem; transition: transform 0.15s, opacity 0.2s; }
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn-primary { background: var(--primary); color: #111; }
.btn-outline { background: rgba(0,0,0,0.45); border: 1.5px solid var(--primary); color: var(--primary); }
section.section { padding: 56px 0; }
.section-title { text-align: center; font-size: 2rem; color: var(--primary); margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.card-img-wrap { position: relative; cursor: pointer; overflow: hidden; }
.card-img { width: 100%; height: 210px; object-fit: cover; display: block; transition: transform 0.25s ease; }
.card-img-wrap:hover .card-img { transform: scale(1.04); }
.img-count-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.78);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  z-index: 2;
}
.sig-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(212, 175, 55, 0.95);
  color: #111;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; color: #fff; }
.card-desc { font-size: 0.9rem; color: var(--muted); flex: 1; margin-bottom: 14px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.price { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.tag-gf { background: #166534; color: #bbf7d0; }
.tag-spicy { background: #991b1b; color: #fecaca; }
.tag-soldout { background: #444; color: #ccc; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.search-input { flex: 1; min-width: 240px; padding: 11px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 0.95rem; }

/* Category pills up to 3 rows with vertical scroll overflow */
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 132px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 8px 6px 0;
  margin-bottom: 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--surface);
}
.cat-pills::-webkit-scrollbar { width: 6px; }
.cat-pills::-webkit-scrollbar-track { background: var(--surface); border-radius: 999px; }
.cat-pills::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 999px; }

.cat-pill { white-space: nowrap; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer; font-size: 0.88rem; font-weight: 600; }
.cat-pill.active, .cat-pill:hover { background: var(--primary); color: #111; border-color: var(--primary); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.82); display: none; align-items: center; justify-content: center; z-index: 999; padding: 16px; }
.modal-backdrop.open { display: flex; }
.modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 24px; }
footer.footer { background: #0B0B0B; border-top: 1px solid var(--border); padding: 44px 0 24px; margin-top: 60px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.footer h4 { color: var(--primary); margin-bottom: 12px; }
.story-rich-content h2, .story-rich-content h3 { color: var(--primary); margin: 20px 0 10px; }
.story-rich-content p { margin-bottom: 14px; }
.story-rich-content ul, .story-rich-content ol { margin: 10px 0 16px 24px; }
.story-rich-content img { max-width: 100%; border-radius: 10px; margin: 14px 0; }

.brand-logo {
  height: 45px;
  width: 45px;
  max-width: 45px;
  max-height: 45px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Mobile responsive navbar & brand text handling */
@media (max-width: 768px) {
  .brand-text {
    display: none;
  }
  .brand-logo {
    height: 38px;
    width: 38px;
    max-width: 38px;
    max-height: 38px;
  }
  .nav-inner {
    height: auto;
    min-height: 60px;
    padding: 8px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .nav-links {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .nav-links a {
    font-size: 0.85rem;
  }
  .btn-cart {
    padding: 6px 11px;
    font-size: 0.82rem;
    gap: 5px;
  }
}

/* Checkout responsive layout: 2 columns on desktop, single column on mobile */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .checkout-layout .card {
    padding: 16px !important;
  }
}

img.brand-logo {
  width: 45px !important;
  height: 45px !important;
  max-width: 45px !important;
  max-height: 45px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}

@media (max-width: 768px) {
  img.brand-logo {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
  }
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: var(--surface);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.gf-text-mobile {
  display: none;
}

.cat-pills-wrap {
  position: relative;
  margin-bottom: 28px;
}

.cat-pills-wrap .cat-pills {
  margin-bottom: 0;
}

.cat-hint-bar {
  display: none;
}

.cat-scroll-hint {
  display: none;
}

@keyframes arrowBounce {
  0%, 100% {
    transform: translateY(-1px);
  }
  50% {
    transform: translateY(1.5px);
  }
}

@media (max-width: 768px) {
  .filter-bar {
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
  }
  .search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    padding: 8px 9px;
    font-size: 0.82rem;
  }
  .filter-pill {
    padding: 8px 8px;
    font-size: 0.8rem;
    gap: 4px;
  }
  .filter-pill input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
  }
  .gf-text-desktop {
    display: none;
  }
  .gf-text-mobile {
    display: inline;
  }
  .filter-pill-spicy {
    display: inline-flex;
  }

  .cat-pills-wrap {
    margin-bottom: 0;
  }

  .cat-hint-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
    margin-bottom: 26px;
  }
  .cat-hint-bar.is-hidden {
    display: none;
  }

  .cat-scroll-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
  }
  .cat-scroll-hint.is-hidden {
    display: none;
  }
  .cat-hint-label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
  }
  .cat-scroll-hint .bounce-arrow {
    display: inline-block;
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    animation: arrowBounce 1.1s ease-in-out infinite;
  }
}
