*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid #e5e7eb; }

/* overflow-x: clip stops horizontal scroll WITHOUT creating a scroll container,
   so position:sticky on the header continues to work. */
body { overflow-x: clip; }

:root {
  /* Exact values from the template */
  --ratvad-navy:        hsl(220, 73%, 18%);
  --ratvad-navy-light:  hsl(220, 60%, 28%);
  --ratvad-navy-dark:   hsl(220, 73%, 12%);
  --ratvad-navy-xdark:  hsl(220, 73%, 10%);
  --ratvad-gold:        hsl(43, 100%, 48%);
  --ratvad-gold-light:  hsl(43, 100%, 62%);
  --ratvad-gold-pale:   hsl(43, 100%, 95%);
  --ratvad-teal:        hsl(168, 76%, 32%);
  --ratvad-teal-light:  hsl(168, 60%, 42%);
  --ratvad-teal-pale:   hsl(168, 60%, 94%);
  --ratvad-surface:     hsl(220, 20%, 97%);
  --ratvad-surface-alt: hsl(220, 15%, 93%);
  --border:             hsl(220, 15%, 88%);
  --foreground:         hsl(220, 73%, 12%);
  --muted-fg:           hsl(220, 20%, 50%);
  --white: #ffffff;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.07);
  --shadow:    0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(15,30,70,0.12);
  --shadow-lg: 0 10px 24px rgba(15,30,70,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: var(--ratvad-surface);
  color: var(--foreground);
  font-size: 14px;
  line-height: 1.6;
  width: 100%;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--ratvad-navy-light); border-radius: 3px; }
::-webkit-scrollbar-track { background: var(--ratvad-surface); }

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── ANNOUNCEMENT BAR ── */
.announce-bar {
  background: var(--ratvad-navy);
  color: white;
  text-align: center;
  padding: 10px 1rem;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1px;
}
.announce-bar strong { font-weight: 700; color: var(--ratvad-gold); }

/* ── NAVBAR ── */
nav {
  background: white;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  height: 64px;
}

.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }

.logo-badge {
  width: 36px; height: 36px;
  background: var(--ratvad-navy);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: white; font-size: 13px; letter-spacing: -0.5px;
}

.logo-name { font-size: 20px; font-weight: 800; color: var(--foreground); letter-spacing: -0.5px; }
.logo-name span { color: var(--ratvad-gold); }

.nav-search {
  flex: 1;
  display: flex; align-items: center;
  background: var(--ratvad-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 560px;
  transition: border-color 0.15s, box-shadow 0.15s, opacity 0.35s ease, transform 0.35s ease;
  transform-origin: left center;
}
.nav-search:focus-within {
  border-color: var(--ratvad-navy-light);
  box-shadow: 0 0 0 3px hsla(220,60%,28%,0.12);
}

.nav-region {
  border: none; outline: none;
  background: transparent;
  font-size: 13px; color: var(--muted-fg);
  padding: 0 10px 0 12px;
  font-family: inherit;
  border-right: 1px solid var(--border);
  height: 40px; cursor: pointer; flex-shrink: 0;
}

.nav-search input {
  flex: 1; border: none; outline: none;
  background: transparent;
  font-size: 14px; padding: 0 12px;
  font-family: inherit; color: var(--foreground); min-width: 0;
}
.nav-search input::placeholder { color: var(--muted-fg); }

.nav-search-btn {
  background: var(--ratvad-navy); color: white; border: none;
  padding: 0 20px; height: 40px;
  font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: background 0.15s; flex-shrink: 0;
}
.nav-search-btn:hover { background: var(--ratvad-navy-light); }

.nav-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }

.nav-action {
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 10px; border-radius: 6px;
  color: var(--muted-fg); font-size: 11px; font-weight: 500;
  cursor: pointer; transition: all 0.15s; gap: 2px;
}
.nav-action svg { width: 18px; height: 18px; }
.nav-action:hover { background: var(--ratvad-surface); color: var(--ratvad-navy); }

.nav-mystore {
  background: var(--ratvad-navy) !important;
  color: white !important;
  border-radius: 8px;
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 600;
  flex-direction: row !important;
  gap: 6px !important;
  white-space: nowrap;
}
.nav-mystore:hover { background: var(--ratvad-navy-light) !important; }

/* ── HAMBURGER MENU ── */
.hamburger-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border) !important;
  border-radius: 8px;
  cursor: pointer;
  color: var(--foreground);
  flex-shrink: 0;
  transition: all 0.15s;
}
.hamburger-btn:hover { background: var(--ratvad-surface); border-color: var(--ratvad-navy) !important; }
.hamburger-btn svg { width: 20px; height: 20px; }

/* Mobile dropdown menu - HIDDEN BY DEFAULT */
.mobile-menu-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1050;
}
.mobile-menu-overlay.open { display: block; animation: fadeIn 0.2s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 260px; height: 100%;
  background: white;
  z-index: 1100;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
  animation: slideInRight 0.25s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--ratvad-navy);
}

.mobile-menu-header .logo-name { color: white; font-size: 18px; }
.mobile-menu-header .logo-name span { color: var(--ratvad-gold); }

.mobile-menu-close {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.15);
  border: none !important; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: white; flex-shrink: 0;
  transition: background 0.15s;
}
.mobile-menu-close:hover { background: rgba(255,255,255,0.25); }
.mobile-menu-close svg { width: 18px; height: 18px; }

.mobile-menu-nav {
  padding: 1rem 0;
  flex: 1;
}

.mobile-menu-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 1.5rem;
  color: var(--foreground);
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border-left: 3px solid transparent;
  text-decoration: none;
}
.mobile-menu-item:hover {
  background: hsl(220,73%,96%);
  border-left-color: var(--ratvad-navy);
  color: var(--ratvad-navy);
}
.mobile-menu-item svg { width: 20px; height: 20px; color: var(--muted-fg); flex-shrink: 0; }
.mobile-menu-item:hover svg { color: var(--ratvad-navy); }

.mobile-menu-item.active {
  background: hsl(220,73%,96%);
  border-left-color: var(--ratvad-navy);
  color: var(--ratvad-navy);
  font-weight: 600;
}
.mobile-menu-item.active svg { color: var(--ratvad-navy); }

.mobile-menu-divider {
  height: 1px; background: var(--border);
  margin: 8px 1.5rem;
}

.mobile-menu-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

.mobile-menu-store-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  background: var(--ratvad-navy); color: white;
  border: none !important; border-radius: 8px;
  padding: 13px; font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.mobile-menu-store-btn:hover { background: var(--ratvad-navy-light); }
.mobile-menu-store-btn svg { width: 18px; height: 18px; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--ratvad-navy-dark) 0%, var(--ratvad-navy) 55%, var(--ratvad-navy-light) 100%);
  padding: 4.5rem 1.5rem 5.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--ratvad-surface);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.12);
  color: var(--ratvad-gold-light);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 5px 16px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.6px; text-transform: uppercase;
  margin-bottom: 1.25rem; position: relative;
}

.hero h1 {
  font-size: clamp(30px, 5.5vw, 52px);
  font-weight: 800; color: white;
  line-height: 1.1; margin-bottom: 1rem; position: relative;
  letter-spacing: -1.5px;
}

.hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 16px; max-width: 500px;
  margin: 0 auto 2.25rem; position: relative; line-height: 1.7;
}

.hero-ctas {
  display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
  margin-bottom: 2.75rem; position: relative;
}

.btn-gold {
  background: var(--ratvad-gold); color: var(--ratvad-navy-xdark);
  border: none; cursor: pointer;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700;
  font-family: inherit; transition: all 0.15s;
}
.btn-gold:hover { background: var(--ratvad-gold-light); }

.btn-outline-white {
  background: transparent; color: white;
  border: 2px solid rgba(255,255,255,0.4) !important;
  cursor: pointer;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  font-family: inherit; transition: all 0.15s;
}
.btn-outline-white:hover { border-color: white !important; background: rgba(255,255,255,0.1); }

.hero-stats { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; position: relative; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 22px; font-weight: 800; color: var(--ratvad-gold); line-height: 1; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 3px; }
.stat-div { width: 1px; background: rgba(255,255,255,0.18); align-self: stretch; }

/* ── MAIN ── */
main { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }

.section-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-bottom: 1.25rem;
}
.section-title { font-size: 22px; font-weight: 800; color: var(--foreground); letter-spacing: -0.3px; }
.section-sub { font-size: 13px; color: var(--muted-fg); margin-top: 2px; }
.section-link { font-size: 13px; font-weight: 600; color: var(--ratvad-navy); white-space: nowrap; margin-top: 4px; }
.section-link:hover { color: var(--ratvad-gold); }

/* ── CATEGORIES ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px; margin-bottom: 3.5rem;
}

.cat-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 0.5rem; text-align: center; cursor: pointer;
  transition: all 0.15s;
}
.cat-card:hover {
  border-color: var(--ratvad-navy);
  box-shadow: 0 0 0 3px hsla(220,73%,18%,0.1);
  transform: translateY(-2px);
}
.cat-card:hover .cat-name { color: var(--ratvad-navy); }
.cat-emoji { font-size: 24px; margin-bottom: 6px; }
.cat-name { font-size: 12px; font-weight: 600; color: var(--foreground); transition: color 0.15s; }

/* ── PRODUCTS ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px; margin-bottom: 2rem;
}

.product-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: all 0.15s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: hsl(220,15%,82%); }

.product-img-wrap { position: relative; aspect-ratio: 1; background: var(--ratvad-surface-alt); overflow: hidden; }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.product-card:hover .product-img { transform: scale(1.04); }
.product-img-fallback {
  width: 100%; height: 100%; display: none; align-items: center;
  justify-content: center; font-size: 40px; background: var(--ratvad-surface-alt);
}

.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--ratvad-navy); color: white;
  font-size: 10px; font-weight: 700;
  padding: 3px 9px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.3px;
}

.product-info { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: 11px; font-weight: 700; color: var(--ratvad-teal); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.product-price { font-size: 18px; font-weight: 800; color: var(--ratvad-navy); margin-bottom: 4px; letter-spacing: -0.3px; }
.product-name { font-size: 13px; font-weight: 500; color: hsl(220,20%,35%); line-height: 1.35; margin-bottom: 8px; flex: 1; }
.product-loc { font-size: 11px; color: var(--muted-fg); display: flex; align-items: center; gap: 3px; }

.load-more-wrap { text-align: center; margin-bottom: 3.5rem; }
.btn-load-more {
  background: white; color: var(--foreground);
  border: 1px solid var(--border) !important;
  padding: 12px 36px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all 0.15s;
}
.btn-load-more:hover { border-color: var(--ratvad-navy) !important; color: var(--ratvad-navy); }

/* ── HOW IT WORKS ── */
.how-section {
  background: white; border: 1px solid var(--border);
  border-radius: 16px; padding: 3rem 2rem;
  margin-bottom: 3.5rem; text-align: center;
}

.how-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--ratvad-teal); margin-bottom: 6px; }
.how-sub { font-size: 14px; color: var(--muted-fg); margin: 6px 0 2.5rem; }

.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 2rem; }
.how-step { text-align: center; }
.step-emoji { font-size: 28px; margin-bottom: 8px; }
.step-num {
  display: inline-block;
  background: hsl(220,73%,96%); color: var(--ratvad-navy);
  font-size: 11px; font-weight: 800; padding: 3px 12px;
  border-radius: 20px; margin-bottom: 10px; letter-spacing: 0.5px;
}
.how-step h3 { font-size: 15px; font-weight: 700; color: var(--foreground); margin-bottom: 8px; }
.how-step p { font-size: 13px; color: var(--muted-fg); line-height: 1.6; }

.btn-navy {
  background: var(--ratvad-navy); color: white; border: none; cursor: pointer;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700;
  font-family: inherit; transition: background 0.15s;
}
.btn-navy:hover { background: var(--ratvad-navy-light); }

/* ── STORES ── */
.stores-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 3.5rem; }

.store-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: all 0.15s;
}
.store-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.store-img { width: 100%; height: 130px; object-fit: cover; background: var(--ratvad-surface-alt); }
.store-img-fallback {
  width: 100%; height: 130px; display: none;
  align-items: center; justify-content: center; font-size: 40px;
  background: hsl(220,73%,96%);
}

.store-info { padding: 14px; }
.verified-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--ratvad-teal-pale); color: var(--ratvad-teal);
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px; margin-bottom: 6px;
}
.store-name { font-size: 15px; font-weight: 700; color: var(--foreground); margin-bottom: 3px; }
.store-loc { font-size: 12px; color: var(--muted-fg); margin-bottom: 4px; }
.store-count { font-size: 12px; color: var(--muted-fg); font-weight: 500; }

/* ── APP SECTION ── */
.app-section {
  background: linear-gradient(135deg, var(--ratvad-navy-dark), var(--ratvad-navy));
  border-radius: 16px; padding: 2.5rem 2.5rem; margin-bottom: 3.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.app-section::before {
  content: '';
  position: absolute; right: -30px; top: -50px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, hsla(43,100%,48%,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.app-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--ratvad-gold); margin-bottom: 6px; }
.app-text h2 { font-size: 22px; font-weight: 800; color: white; margin-bottom: 8px; letter-spacing: -0.3px; }
.app-text p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.6; max-width: 360px; }
.app-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.app-btn {
  background: white; border: none; cursor: pointer; border-radius: 10px;
  padding: 12px 20px; display: flex; align-items: center; gap: 10px;
  transition: opacity 0.15s; font-family: inherit;
}
.app-btn:hover { opacity: 0.9; }
.app-btn-icon { font-size: 22px; }
.app-btn-sub { font-size: 10px; color: var(--muted-fg); font-weight: 500; display: block; }
.app-btn-name { font-size: 15px; font-weight: 800; color: var(--foreground); display: block; }

/* ── FOOTER ── */
footer { background: white; border-top: 1px solid var(--border); }

.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; border-bottom: 1px solid var(--border);
}

.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--muted-fg); line-height: 1.7; margin-bottom: 8px; }
.footer-brand .loc { font-size: 12px; color: hsl(220,20%,65%); }

.footer-col h5 {
  font-size: 12px; font-weight: 700; color: var(--foreground);
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.6px;
}
.footer-col a { display: block; font-size: 13px; color: var(--muted-fg); margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: var(--ratvad-navy); }

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: hsl(220,20%,60%); flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: hsl(220,20%,60%); margin-left: 16px; }
.footer-bottom a:hover { color: var(--ratvad-navy); }

/* ── MOBILE SEARCH BAR (shown only on mobile, below nav) ── */
.mobile-search-bar {
  display: none;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 10px 1rem;
  max-height: 80px;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
}

.msb-inner {
  display: flex;
  align-items: center;
  background: var(--ratvad-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.msb-inner:focus-within {
  border-color: var(--ratvad-navy-light);
  box-shadow: 0 0 0 3px hsla(220,60%,28%,0.12);
}

.msb-inner select {
  border: none; outline: none;
  background: transparent;
  font-size: 12px; color: var(--muted-fg);
  padding: 0 8px 0 10px;
  font-family: inherit;
  border-right: 1px solid var(--border);
  height: 44px; cursor: pointer; flex-shrink: 0;
  max-width: 115px;
}

.msb-inner input {
  flex: 1; border: none; outline: none;
  background: transparent;
  font-size: 14px; padding: 0 10px;
  font-family: inherit; color: var(--foreground); min-width: 0;
  height: 44px;
}
.msb-inner input::placeholder { color: var(--muted-fg); }

.msb-inner button {
  background: var(--ratvad-navy); color: white; border: none;
  padding: 0 16px; height: 44px;
  font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  transition: background 0.15s; flex-shrink: 0;
}
.msb-inner button:hover { background: var(--ratvad-navy-light); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .how-steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .stores-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .app-section { flex-direction: column; }
}

@media (max-width: 768px) {
  /* Hide desktop search in nav, show mobile search bar below */
  .nav-search { display: none; }
  .nav-search-container { display: none; }
  .mobile-search-container { display: block; }
  .mobile-search-bar { display: block; }

  /* On mobile: hide all nav links (Home/Chat/Help/Account shown in slide menu instead) */
  .nav-action:not(.nav-mystore) { display: none; }
  /* Show hamburger only on mobile */
  .hamburger-btn { display: flex; }

  .nav-inner { height: 56px; padding: 0 1rem; gap: 0; justify-content: space-between; }
  .logo-name { font-size: 18px; }

  /* Hero */
  .hero { padding: 2.5rem 1rem 3.5rem; }
  .hero h1 { font-size: clamp(26px, 8vw, 38px); letter-spacing: -0.5px; }
  .hero-sub { font-size: 14px; }
  .hero-ctas { flex-direction: column; align-items: center; gap: 10px; }
  .btn-gold, .btn-outline-white { width: 100%; max-width: 280px; text-align: center; }
  .hero-stats { gap: 1rem; }
  .stat-div { display: none; }
  .hero-stat-num { font-size: 18px; }

  main { padding: 1.5rem 1rem 4rem; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-price { font-size: 15px; }
  .product-name { font-size: 12px; }

  .how-section { padding: 2rem 1.25rem; }

  .app-section { flex-direction: column; padding: 2rem 1.5rem; }
  .app-btns { width: 100%; }
  .app-btn { flex: 1; justify-content: center; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 2rem 1rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 1rem; gap: 6px; }
  .footer-bottom a { margin-left: 0; margin-right: 12px; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .cat-emoji { font-size: 20px; }
  .cat-name { font-size: 10px; }
  .cat-card { padding: 0.75rem 0.25rem; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-info { padding: 8px 10px 10px; }
  .product-badge { font-size: 9px; padding: 2px 7px; }

  .stores-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .section-title { font-size: 18px; }
  .announce-bar { font-size: 12px; padding: 8px 1rem; }
  .btn-load-more { width: 100%; }
  .msb-inner select { max-width: 95px; font-size: 11px; }
}

/* ── SLIDESHOW ── */
.slideshow-main-container {
  margin-bottom: 2rem;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}
.mySlides { display: none; }
.slide-image {
  width: 100%;
  height: 450px;
  object-fit: contain;
  background: var(--ratvad-surface);
}
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: var(--ratvad-navy);
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background: rgba(255,255,255,0.5);
  z-index: 10;
}
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev:hover, .next:hover { background-color: rgba(255,255,255,0.8); }
.dot-container { text-align: center; padding: 1rem 0; background: white; border-top: 1px solid var(--border); }
.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background-color: var(--border);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}
.dot.active, .dot:hover { background-color: var(--ratvad-navy); }

/* ── PRODUCT PAGE SPECIFICS ── */
.product-detail-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.product-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.store-logo-sm {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ratvad-surface);
}
.detail-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--ratvad-navy);
  margin-bottom: 0.5rem;
}
.detail-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 1rem;
}
.detail-info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0.75rem;
  font-size: 14px;
  color: var(--muted-fg);
}
.detail-info-row b { color: var(--foreground); min-width: 110px; display: inline-block; }
.detail-description-box {
  margin-top: 1.5rem;
}
.detail-description-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ratvad-teal);
  margin-bottom: 0.75rem;
  display: block;
}
.detail-description-content {
  padding: 1.5rem;
  background: var(--ratvad-surface);
  border-radius: var(--radius-sm);
  color: var(--foreground);
  line-height: 1.7;
}
.contact-actions {
  display: flex;
  gap: 12px;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ratvad-navy);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
}
.contact-btn:hover { background: var(--ratvad-navy-light); transform: translateY(-1px); }
.contact-btn.whatsapp { background: #25D366; }
.contact-btn.whatsapp:hover { background: #128C7E; }

.share-section {
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}
.share-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 1rem;
  display: block;
}
.share-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}
.share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ratvad-navy);
  transition: color 0.15s;
}
.share-btn:hover { color: var(--ratvad-gold); }
.share-btn img { height: 18px; }

@media (max-width: 768px) {
  .slide-image { height: 320px; }
  .detail-name { font-size: 20px; }
  .detail-price { font-size: 24px; }
  .product-detail-card { padding: 1.25rem; }
  .contact-btn { flex: 1; justify-content: center; min-width: 140px; }
}

/* ── STORE PAGE SPECIFICS ── */
.store-profile-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}
.store-banner {
  height: 120px;
  background: linear-gradient(135deg, var(--ratvad-navy), var(--ratvad-teal));
}
.store-profile-content {
  padding: 0 2rem 2rem;
  margin-top: -60px;
  text-align: center;
}
.store-logo-lg {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 5px solid white;
  background: white;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.store-name-lg {
  font-size: 24px;
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}
.store-desc-lg {
  color: var(--muted-fg);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}
.store-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  background: var(--ratvad-surface);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted-fg);
  letter-spacing: 0.5px;
}
.meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ratvad-navy);
}

@media (max-width: 480px) {
  .store-profile-content { padding: 0 1rem 1.5rem; }
  .store-logo-lg { width: 100px; height: 100px; }
  .store-name-lg { font-size: 20px; }
}



/* -- AUTH PAGES (Login/Signup) -- */
.auth-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: radial-gradient(circle at top right, hsla(220,73%,18%,0.05), transparent),
              radial-gradient(circle at bottom left, hsla(43,100%,48%,0.05), transparent);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  animation: authFadeIn 0.5s ease-out;
}

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

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--ratvad-navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.auth-header p {
  color: var(--muted-fg);
  font-size: 14px;
}

.auth-tabs {
  display: flex;
  background: var(--ratvad-surface);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-fg);
  cursor: pointer;
  border-radius: 9px;
  transition: all 0.2s;
}

.auth-tab.active {
  background: white;
  color: var(--ratvad-navy);
  box-shadow: var(--shadow-sm);
}

.auth-form-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 6px;
  margin-left: 4px;
}

.auth-input {
  width: 100%;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--foreground);
  transition: all 0.2s;
}

.auth-input:focus {
  outline: none;
  border-color: var(--ratvad-navy);
  box-shadow: 0 0 0 4px hsla(220,73%,18%,0.1);
}

.auth-input.has-icon {
  padding-right: 45px;
}

.auth-icon-btn {
  position: absolute;
  right: 12px;
  bottom: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.auth-icon-btn:hover {
  opacity: 1;
}

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--ratvad-navy);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
}

.auth-submit-btn:hover {
  background: var(--ratvad-navy-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px hsla(220,73%,18%,0.2);
}

.auth-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--muted-fg);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.auth-divider::before { margin-right: 1rem; }
.auth-divider::after { margin-left: 1rem; }

.google-btn-container {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 14px;
  color: var(--muted-fg);
}

.auth-footer a {
  color: var(--ratvad-navy);
  font-weight: 600;
  transition: color 0.2s;
}

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

.auth-error-msg {
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem;
    border-radius: 16px;
  }
  .auth-header h1 { font-size: 24px; }
}

/* -- DASHBOARD & SETTINGS -- */
.dash-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.dash-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.dash-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--ratvad-navy);
  letter-spacing: -0.5px;
}

.dash-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.dash-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-info-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted-fg);
  letter-spacing: 0.5px;
}

.dash-info-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
}

.btn-danger-outline {
  background: transparent;
  color: #dc2626;
  border: 1px solid #fee2e2 !important;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger-outline:hover {
  background: #fef2f2;
  border-color: #fecaca !important;
}

.logout-btn {
  background: var(--ratvad-surface);
  color: var(--ratvad-navy);
  border: 1px solid var(--border) !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.logout-btn:hover {
  background: var(--ratvad-navy);
  color: white;
}

/* -- DASHBOARD MOBILE RESPONSIVENESS -- */
@media (max-width: 768px) {
  .dash-container {
    margin: 1rem auto;
    padding: 0 0.75rem;
  }
  
  .dash-card {
    padding: 1.25rem;
    border-radius: 16px;
    margin-bottom: 1rem;
  }
  
  .dash-header {
    flex-direction: row;
    align-items: center;
    margin-bottom: 1.5rem;
  }
  
  .dash-title {
    font-size: 20px;
  }
  
  .dash-info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .btn-gold, .auth-submit-btn {
    padding: 12px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .logout-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .dash-container {
    padding: 0 0.5rem;
  }
  .dash-card {
    padding: 1rem;
  }
  .store-item-card {
    gap: 0.75rem !important;
  }
  .store-item-card img {
    width: 48px !important;
    height: 48px !important;
  }
}

/* -- MODALS -- */
.modal-1 {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 2rem;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: modalFadeIn 0.3s ease-out;
}

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

.close1, .close2 {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close1:hover, .close2:hover {
  color: var(--ratvad-navy);
}


/* -- CHAT SYSTEM -- */
.chat-page-container {
  max-width: 900px;
  margin: 1.5rem auto;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  background: white;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.chat-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}

.chat-header-info {
  flex: 1;
}

.chat-header-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ratvad-navy);
}

.chat-header-sub {
  font-size: 12px;
  color: var(--muted-fg);
}

.messages-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--ratvad-surface);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message-bubble {
  max-width: 75%;
  padding: 0.85rem 1.15rem;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.message-sent {
  align-self: flex-end;
  background: var(--ratvad-navy);
  color: white;
  border-bottom-right-radius: 4px;
}

.message-received {
  align-self: flex-start;
  background: white;
  color: var(--foreground);
  border-bottom-left-radius: 4px;
}

.message-time {
  font-size: 10px;
  opacity: 0.6;
  margin-top: 4px;
  display: block;
  text-align: right;
}

.chat-input-area {
  padding: 1.25rem;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.chat-input-wrapper {
  flex: 1;
  background: var(--ratvad-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.5rem 1rem;
  transition: all 0.2s;
}

.chat-input-wrapper:focus-within {
  border-color: var(--ratvad-navy-light);
  box-shadow: 0 0 0 3px hsla(220,60%,28%,0.08);
  background: white;
}

.chat-main-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  padding: 8px 0;
  resize: none;
  font-family: inherit;
  font-size: 14px;
  max-height: 120px;
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ratvad-navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: var(--ratvad-gold);
  transform: scale(1.05);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .chat-page-container {
    margin: 0;
    height: calc(100vh - 64px);
    border-radius: 0;
    border: none;
  }
}

/* -- SEARCH SUGGESTIONS -- */
.nav-search-container {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.mobile-search-container {
    /* display is controlled by the @media (max-width: 768px) block above */
    position: relative;
    width: 100%;
    max-width: none;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 1px solid var(--border);
    z-index: 9999;
    display: none;
    overflow: hidden;
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-suggestions.mobile {
    left: 1rem;
    right: 1rem;
    margin-top: 4px;
}

.search-suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions-list li {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--ratvad-surface);
    transition: background 0.2s;
}

.search-suggestions-list li:last-child {
    border-bottom: none;
}

.search-suggestions-list li:hover {
    background: var(--ratvad-surface);
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-name {
    font-size: 14px;
    color: var(--foreground);
    flex: 1;
}

.suggestion-name strong {
    color: var(--ratvad-navy);
    font-weight: 700;
}

.suggestion-cat {
    font-size: 11px;
    background: var(--ratvad-surface);
    color: var(--muted-fg);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

html { scroll-behavior: smooth; }


.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  background: white;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Search bar hidden state (scroll-up) */
.sticky-header.search-hidden .nav-search {
  opacity: 0;
  transform: scaleX(0.92);
	transition: none !important;
  pointer-events: none;
}

.sticky-header.search-hidden .mobile-search-bar {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

