/* app.css - Pick-Up & Drop-Off web app styles */
:root {
  --orange: #ff6b00;
  --cream: #fff8f0;
  --cream-dark: #f3ebe0;
  --menu-bg: #fff5ef;
  --text: #1a1a1a;
  --muted: #666;
  --border: #eee;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --surface: #ffffff;
  --page-bg: #f5f5f5;
}

/* Hide scrollbars platform-wide */
html, body, * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}
html.dark-theme .theme-toggle,
body.dark-theme .theme-toggle {
  background: #ffffff;
  color: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
html.dark-theme .theme-toggle .icon,
body.dark-theme .theme-toggle .icon {
  color: #1a1a1a;
  stroke: #1a1a1a;
}
.theme-icon-sun { display: none; }
body.dark-theme .theme-icon-moon { display: none; }
body.dark-theme .theme-icon-sun { display: inline-block; }
html.dark-theme .theme-icon-moon { display: none; }
html.dark-theme .theme-icon-sun { display: inline-block; }

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--page-bg);
  color: var(--text);
  padding-bottom: 88px;
}

.icon { width: 22px; height: 22px; display: inline-block; vertical-align: middle; }
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 14px; height: 14px; }
.icon-pin-lg { width: 36px; height: 36px; color: #e74c3c; }
.icon-light { color: #fff; }

.icon-btn {
  border: none; background: none; cursor: pointer; color: var(--text);
  padding: 4px; display: inline-flex; align-items: center; justify-content: center;
}

.splash {
  position: fixed; inset: 0; z-index: 9999; background: #000;
  display: grid; place-items: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash img { width: min(380px, 82vw); height: auto; animation: float 2s ease-in-out infinite; object-fit: contain; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

.utility-bar {
  background: var(--cream); border-bottom: 1px solid var(--border);
  padding: 10px 16px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; font-size: 13px;
}
.utility-left { color: var(--orange); font-weight: 600; }
.utility-right { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.utility-btn {
  border: none; background: none; cursor: pointer; font: inherit; color: inherit;
  display: inline-flex; align-items: center; gap: 4px;
}

.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow); z-index: 300; overflow: hidden;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 12px 16px; color: var(--text); text-decoration: none;
  font-size: 14px; border-bottom: 1px solid var(--border);
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--cream); }

.main-nav {
  background: var(--surface); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100;
}
.main-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand-logo { height: 52px; width: auto; max-width: 200px; object-fit: contain; }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 600; }
.nav-links a { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--orange); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.sign-in-link {
  display: inline-flex; align-items: center; gap: 6px; border: none; background: none;
  cursor: pointer; color: var(--text); font-weight: 600; font-size: 13px;
}

.page { max-width: 1200px; margin: 0 auto; padding: 20px 16px 32px; }

.hero-banner {
  background: var(--cream); border-radius: var(--radius); padding: 28px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center;
  box-shadow: var(--shadow); margin-bottom: 20px;
}
.hero-copy-only { width: 100%; padding: 8px 0; }
.hero-copy-only h1 { font-size: 28px; margin-bottom: 6px; }
.hero-copy-only p { color: var(--muted); font-size: 15px; }

.food-categories-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px; margin-bottom: 24px;
}
.food-cat-pill {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 10px; border: 1px solid var(--border); border-radius: 12px;
  background: #fff; cursor: pointer; font-size: 12px; font-weight: 600; text-align: center;
}
.food-cat-pill.active { border-color: var(--orange); background: #fff7f0; color: var(--orange); }
.food-cat-icon { font-size: 22px; line-height: 1; }
.categories-empty { color: var(--muted); padding: 24px 0; }

.pickup-box { padding: 0 20px 16px; }
.pickup-box h3 { font-size: 16px; margin: 0 0 8px; }
.pickup-address { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.pickup-hint { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.store-pickup-map {
  height: 220px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 12px; cursor: pointer;
}

.hero-icon { width: 100%; max-width: 320px; border-radius: 12px; object-fit: cover; aspect-ratio: 4/3; }
.hero-copy h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; margin-bottom: 10px; }
.hero-copy p { color: var(--orange); font-size: 16px; font-weight: 600; }

.location-banner {
  background: var(--cream-dark); border-radius: var(--radius); padding: 24px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  box-shadow: var(--shadow); margin-bottom: 8px;
}
.location-left { text-align: center; min-width: 120px; }
.location-pin-art {
  width: 72px; height: 72px; margin: 0 auto 8px; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
}
.location-left p { font-weight: 700; font-size: 15px; }
.location-search {
  display: flex; align-items: center; background: #fff; border-radius: 8px;
  padding: 4px 12px; border: 1px solid var(--border);
}
.location-search input {
  flex: 1; border: none; outline: none; padding: 12px 8px; font-size: 14px; background: transparent;
}
.location-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-orange {
  background: var(--orange); color: #fff; border: none; border-radius: 8px;
  padding: 12px 18px; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.btn-full { width: 100%; margin-top: 8px; }
.btn-dark { background: #111; color: #fff; border: none; border-radius: 999px; padding: 10px 20px; font-weight: 600; cursor: pointer; }
.btn-light { background: #eee; color: #111; border: none; border-radius: 999px; padding: 10px 20px; font-weight: 600; cursor: pointer; }

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin: 28px 0 14px;
}
.section-header h2 { font-size: 20px; font-weight: 700; }
.section-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--orange);
  color: #fff; text-decoration: none; border: none; cursor: pointer;
}
.section-link svg { width: 20px; height: 20px; }

.h-scroll {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}

.local-card {
  flex: 0 0 200px; scroll-snap-align: start; background: var(--surface);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer;
}
.local-card img { width: 100%; height: 130px; object-fit: cover; }
.local-card .info { padding: 12px; }
.local-card h3 { font-size: 14px; margin-bottom: 4px; }
.local-card p { font-size: 12px; color: var(--muted); }

.offer-card {
  flex: 0 0 280px; scroll-snap-align: start; background: var(--surface);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer;
}
.offer-card .offer-img-wrap { position: relative; }
.offer-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.offer-badge {
  position: absolute; top: 10px; left: 10px; background: #e74c3c; color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 4px;
}
.offer-card .info { padding: 12px; }
.offer-card h3 { font-size: 14px; margin-bottom: 6px; }
.offer-meta { font-size: 12px; color: var(--muted); }
.offer-rating { font-size: 12px; margin-top: 4px; }

.stores-grid,
.reviewed-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  align-items: flex-start;
}

.store-grid-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  width: 88px;
}

.store-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 104px;
  cursor: pointer;
  min-width: 0;
}

.store-circle .thumb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.store-circle .thumb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e8e8e8;
  box-shadow: none;
  display: block;
  margin: 0;
  flex-shrink: 0;
}

.store-circle .store-name {
  font-size: 11px;
  font-weight: 600;
  display: block;
  line-height: 1.35;
  width: 100%;
  max-width: 104px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.store-circle .store-meta {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  display: block;
  line-height: 1.3;
  text-align: center;
  width: 100%;
  max-width: 104px;
}

.store-chip {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  margin-top: 4px;
}
.chip-new { background: #fff; color: #00a651; box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.chip-off { background: #e74c3c; color: #fff; }

.store-circle.view-all .thumb-wrap {
  width: 64px;
}
.store-circle.view-all .thumb {
  width: 64px;
  height: 64px;
  display: grid; place-items: center; background: var(--orange); color: #fff; border: none;
}
.store-circle.view-all .thumb svg { width: 26px; height: 26px; color: #fff; }

.store-circle.brand-logo .thumb {
  object-fit: contain; background: #fff; padding: 8px;
}

.intro-footer-text { text-align: center; margin: 40px 0 0; }
.intro-footer-text h3 { color: var(--orange); font-size: 22px; margin-bottom: 6px; }
.intro-footer-text p { color: var(--muted); margin-bottom: 0; }

/* Store tile sections — flow-root contains all wrapped rows in document flow */
.store-section {
  display: flow-root;
  width: 100%;
  margin-bottom: 0;
}

.store-section .section-header {
  margin-top: 28px;
  margin-bottom: 14px;
}

.offers-section {
  display: flow-root;
  width: 100%;
  clear: both;
}

.offers-section .section-header {
  margin-top: 28px;
  margin-bottom: 14px;
}

.reviewed-section {
  display: flow-root;
  width: 100%;
}

/* List stores cards */
.list-stores-section { margin-top: 8px; }
.list-stores-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
.list-store-card {
  background: var(--surface); border-radius: 20px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); cursor: pointer;
}
.list-store-img { position: relative; }
.list-store-img img {
  width: 100%; height: 220px; object-fit: cover; display: block;
}
.list-store-promo {
  position: absolute; top: 12px; left: 12px; background: #e74c3c; color: #fff;
  font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 6px; z-index: 2;
}
.list-store-dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; z-index: 2;
}
.list-store-dots span {
  width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.55);
}
.list-store-dots span.active { background: #fff; width: 8px; height: 8px; }
.list-store-body { padding: 14px 16px 18px; }
.list-store-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px;
}
.list-store-head h3 { font-size: 17px; font-weight: 700; line-height: 1.3; flex: 1; }
.list-store-head .fav-btn {
  border: none; background: none; cursor: pointer; color: var(--muted); padding: 2px;
  flex-shrink: 0;
}
.list-store-head .fav-btn.on { color: #e74c3c; }
.list-store-head .fav-btn svg { width: 22px; height: 22px; }
.list-store-meta { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.list-store-rating { font-size: 14px; font-weight: 600; }
.list-store-badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 13px;
  color: var(--text); font-weight: 600; margin-top: 4px;
}

@media (min-width: 769px) {
  .list-stores-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
  .list-store-img img { height: 200px; }
}

/* Newsletter + footer — matches backend _backend_home.html orange theme (desktop only) */
.site-footer {
  display: none;
  margin-top: 40px;
  margin-bottom: 0;
  overflow: hidden;
  --base-1: #ed6200;
  --base-2: #202020;
  --base-rgb: 237, 98, 0;
  --title-clr: #2f3934;
  --body-clr: #717c77;
}
@media (min-width: 992px) {
  .site-footer { display: block; }
  body:not(.store-mode):not(.page-full) { padding-bottom: 0; }
  #app-shell { padding-bottom: 0; }
  .page { padding-bottom: 0; }
}
.newsletter-section { position: relative; background: #fcfcfc; }
.newsletter-wrapper {
  position: relative; max-width: 932px; display: flex;
  justify-content: center; align-items: flex-end; margin: 0 auto;
}
.newsletter-wrapper::before {
  content: ""; position: absolute; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(54.67% 54.67% at 50% -10.09%, rgba(var(--base-rgb), 0.62) 0%, var(--base-2) 100%);
  inset: 0;
}
.newsletter-wrapper::after {
  content: ""; position: absolute; aspect-ratio: 1; border-radius: 50%;
  background: #fff; inset: 70px;
}
@media (max-width: 991px) and (min-width: 768px) {
  .newsletter-wrapper::after { inset: 50px; }
}
@media (max-width: 767px) {
  .newsletter-wrapper::before { width: 700px; inset-inline-start: 50%; transform: translateX(-50%); }
  .newsletter-wrapper::after { width: 640px; inset-inline-start: 50%; transform: translateX(-50%); }
}
.newsletter-content {
  max-width: 450px; text-align: center; margin: 0 auto;
  padding: 138px 15px 51px; z-index: 1; position: relative;
}
.newsletter-content .title {
  font-size: 24px; letter-spacing: 0.2px; margin-bottom: 20px; position: relative; font-weight: 700;
  color: var(--title-clr);
}
.newsletter-content .title::after {
  content: ""; background: linear-gradient(90.07deg, var(--base-2) -2.32%, var(--base-2) 99.95%);
  border-radius: 10px; width: 118px; height: 7px; display: block; margin: 15px auto 0;
}
.newsletter-content .text {
  max-width: 373px; margin: 0 auto 15px; font-size: 18px; font-weight: 500; color: var(--body-clr);
}
.input--grp { position: relative; }
.input--grp .form-control {
  width: 100%; height: 60px; box-shadow: none; border-radius: 30px;
  padding: 0 60px 0 25px; border: none; font-size: 18px;
  background: rgba(var(--base-rgb), 0.051);
}
.input--grp .form-control::placeholder { color: #adb9c0; }
.input--grp .search-btn {
  position: absolute; outline: none; border: none; background: transparent;
  box-shadow: none; top: 6px; right: 3px; cursor: pointer; padding: 0;
}
.footer-bottom {
  background: linear-gradient(180deg, var(--base-2) 0%, var(--base-1) 100%);
  padding: 30px 16px 30px; border-radius: 60px 60px 0 0; position: relative; color: #fff;
  margin-bottom: 0;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-wrapper {
  display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between;
}
.footer-widget { font-size: 16px; color: #fff; width: 100%; }
@media (min-width: 992px) {
  .footer-widget { max-width: 349px; }
}
.footer-widget .footer-logo { max-width: 220px; margin-bottom: 18px; }
.footer-widget .footer-logo a { display: block; }
.footer-widget .footer-logo img {
  width: 100%; max-height: 80px; object-fit: contain; object-position: left center;
  filter: brightness(0) invert(1);
}
.footer-widget .txt { line-height: 1.6; margin-bottom: 16px; font-size: 15px; }
.footer-widget .subtitle { font-size: 18px; font-weight: 600; margin-bottom: 20px; color: #fff; }
.footer-widget.widget-links { width: calc(50% - 15px); max-width: 221px; }
.footer-widget.widget-links ul { list-style: none; }
.footer-widget.widget-links ul li { margin-bottom: 10px; }
.footer-widget.widget-links ul li a {
  font-size: 15px; color: #fff; text-decoration: none;
  display: inline-flex; align-items: flex-start; gap: 6px;
}
.footer-widget.widget-links ul li a:hover { opacity: 0.85; }
.app-btn-grp { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.app-btn-grp a { max-width: calc(50% - 8px); display: block; }
.app-btn-grp a img { max-width: 100%; height: auto; }
.copyright {
  font-size: 12px; line-height: 22px; color: #fff; text-align: center; margin-top: 24px;
}
@media (max-width: 767px) {
  .newsletter-content { padding-top: 115px; }
}
@media (max-width: 575px) {
  .newsletter-content { padding-top: 100px; }
  .newsletter-content .title { font-size: 20px; }
  .footer-widget.widget-links { width: 100%; max-width: none; }
}

.site-footer-old-simple { display: none; }

/* Sidebar */
.sidebar-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 4000;
  opacity: 0; visibility: hidden; transition: 0.3s;
}
.sidebar-backdrop.open { opacity: 1; visibility: visible; }
.sidebar {
  position: fixed; top: 0; right: 0; width: min(320px, 88vw); height: 100%;
  background: var(--surface); z-index: 4001; transform: translateX(100%);
  transition: transform 0.3s ease; display: flex; flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}
.sidebar.open { transform: translateX(0); }
.sidebar-header {
  background: var(--menu-bg); padding: 16px 20px; display: flex;
  align-items: center; justify-content: space-between; font-weight: 700; font-size: 18px;
}
.sidebar-nav { overflow-y: auto; flex: 1; padding: 8px 0; }
.sidebar-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px;
  text-decoration: none; color: var(--text); font-size: 14px; font-weight: 500;
  border: none; background: none; width: 100%; cursor: pointer; text-align: left;
}
.sidebar-item:hover, .sidebar-item.active { background: var(--menu-bg); }
.sidebar-icon {
  width: 36px; height: 36px; border-radius: 8px; background: var(--orange);
  display: grid; place-items: center; flex-shrink: 0;
}
.sidebar-icon svg { width: 18px; height: 18px; color: #fff; }

/* Offers full page */
.page-header {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50;
}
.page-header h1 { font-size: 18px; flex: 1; text-align: center; margin-right: 34px; }
.offers-list { padding: 16px; display: flex; flex-direction: column; gap: 20px; }
.offer-full-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer;
}
.offer-full-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.offer-full-card .info { padding: 14px; position: relative; }
.offer-full-card .fav-float {
  position: absolute; right: 14px; top: -20px; background: #fff; border: none;
  width: 36px; height: 36px; border-radius: 50%; box-shadow: var(--shadow); cursor: pointer;
}

/* Store page */
.store-page { background: #fff; min-height: 100vh; padding-bottom: 40px; }
.store-hero { position: relative; height: 220px; }
.store-hero img { width: 100%; height: 100%; object-fit: cover; }
.store-hero-actions {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.store-hero-actions .cluster { display: flex; gap: 8px; }
.store-float-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.92); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow);
}
.store-logo-wrap {
  display: flex; justify-content: center; margin-top: -48px; position: relative; z-index: 2;
}
.store-logo {
  width: 96px; height: 96px; border-radius: 50%; border: 4px solid #fff;
  object-fit: contain; padding: 10px; box-shadow: var(--shadow); background: #fff;
}
.store-info { padding: 12px 20px 20px; text-align: center; }
.store-info h1 { font-size: 22px; margin-bottom: 8px; }
.store-stats { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.store-address { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.store-alert { font-size: 13px; margin-bottom: 8px; }
.store-badge-green {
  display: inline-block; background: #e8f8ef; color: #1a7f4b;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; margin: 8px 0;
}
.store-controls {
  display: flex; gap: 10px; padding: 0 16px 16px; align-items: center; flex-wrap: wrap;
}
.toggle-group { display: flex; background: #eee; border-radius: 999px; padding: 4px; flex: 1; }
.toggle-group button {
  flex: 1; border: none; background: transparent; padding: 10px; border-radius: 999px;
  font-weight: 600; cursor: pointer; font-size: 13px;
}
.toggle-group button.active { background: #111; color: #fff; }
.delivery-box {
  margin: 0 16px 20px; border: 1px solid var(--border); border-radius: 12px;
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
}
.delivery-box > div { padding: 14px; font-size: 13px; }
.delivery-box > div:first-child { border-right: 1px solid var(--border); }
.menu-section { padding: 0 16px 24px; }
.menu-section h2 { font-size: 18px; margin-bottom: 12px; }
.category-pills { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; }
.category-pill {
  border: none; background: #eee; padding: 10px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.category-pill.active { background: #111; color: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.product-card { cursor: pointer; }
.product-img-wrap { position: relative; border-radius: 12px; overflow: hidden; }
.product-card img { width: 100%; height: 140px; object-fit: cover; display: block; }
.product-rank {
  position: absolute; top: 8px; left: 8px; background: #e8f8ef; color: #1a7f4b;
  font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 4px;
}
.product-add {
  position: absolute; bottom: 8px; right: 8px; width: 32px; height: 32px;
  border-radius: 50%; border: none; background: #fff; font-size: 20px; cursor: pointer;
  box-shadow: var(--shadow); line-height: 1;
}
.product-card h4 { font-size: 14px; margin-top: 8px; }
.product-card p { font-size: 13px; color: var(--muted); }

/* Simple content pages */
.content-page { max-width: 720px; margin: 0 auto; padding: 24px 16px 80px; }
.content-page h1 { font-size: 24px; margin-bottom: 16px; }
.content-page p { line-height: 1.6; color: var(--muted); margin-bottom: 12px; }

.stores-panel {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.45);
  display: none; align-items: flex-end; justify-content: center;
}
.stores-panel.open { display: flex; }
.stores-panel-sheet {
  background: #fff; width: min(520px, 100%); max-height: 85vh;
  border-radius: 20px 20px 0 0; padding: 20px 16px 32px; overflow-y: auto;
}
.store-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.fav-btn { border: none; background: none; cursor: pointer; color: #ccc; padding: 4px; }
.fav-btn.on { color: #e74c3c; }
.fav-btn svg { width: 22px; height: 22px; }
.fav-btn.on svg { fill: #e74c3c; stroke: #e74c3c; }
.store-row img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.panel-close {
  display: block; margin: 16px auto 0; padding: 10px 24px; border: none;
  border-radius: 999px; background: var(--orange); color: #fff; font-weight: 600; cursor: pointer;
}

.modal {
  position: fixed; inset: 0; z-index: 5000; background: rgba(0,0,0,0.5);
  display: none; place-items: center; padding: 16px;
}
.modal.open { display: grid; }
.modal-sheet {
  background: var(--surface); border-radius: var(--radius); padding: 28px 24px;
  width: min(400px, 100%); position: relative; max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 12px; right: 14px; border: none; background: none;
  font-size: 28px; cursor: pointer; color: var(--muted);
}
.auth-logo {
  width: auto; max-width: 380px; height: 120px; object-fit: contain;
  display: block; margin: 0 auto 20px; border-radius: 0;
}
.auth-sheet h2 { text-align: center; margin-bottom: 16px; }
.auth-sheet label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.auth-sheet input[type="email"],
.auth-sheet input[type="password"],
.auth-sheet input[type="text"] {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 8px; font-size: 14px;
}
.auth-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 13px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; font-size: 13px; }
.terms-label { margin-bottom: 16px; }
.link { color: var(--orange); text-decoration: none; font-weight: 600; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 14px; }

.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08); padding: 8px 12px 12px; z-index: 500;
  border-radius: 16px 16px 0 0;
}
.bottom-nav-inner {
  display: flex; align-items: flex-end; justify-content: space-around;
  max-width: 480px; margin: 0 auto;
}
.bottom-nav a {
  text-decoration: none; color: var(--text); font-size: 11px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 52px;
  border: none; background: none; cursor: pointer; font-family: inherit;
}
.bottom-nav a.active { color: var(--orange); }
.bottom-nav .cart-fab {
  width: 56px; height: 56px; border-radius: 50%; background: var(--orange);
  display: grid; place-items: center; margin-top: -28px;
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.45); border: 3px solid var(--surface);
}

body.store-mode .utility-bar,
body.store-mode .main-nav,
body.store-mode .site-footer,
body.store-mode .bottom-nav { display: none !important; }
body.store-mode { padding-bottom: 0; }

body.page-full .utility-bar,
body.page-full .main-nav,
body.page-full .site-footer { display: none; }
body.page-full .bottom-nav { display: none; }
body.page-full { padding-bottom: 0; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-banner { grid-template-columns: 1fr; }
  .location-banner { grid-template-columns: 1fr; text-align: center; }
  .location-actions { justify-content: center; }
}

@media (max-width: 768px) {
  body:not(.store-mode):not(.page-full) { padding-bottom: 96px; }
  .bottom-nav { display: block; }
  .nav-hamburger { display: none !important; }
  .stores-grid,
  .reviewed-grid {
    gap: 14px;
  }
  .store-grid-item { width: 76px; }
  .store-circle { max-width: 76px; }
  .store-circle .thumb-wrap { width: 56px; }
  .store-circle .thumb,
  .store-circle.view-all .thumb {
    width: 56px;
    height: 56px;
  }
  .store-circle .store-name,
  .store-circle .store-meta { max-width: 76px; }
  .store-circle.brand-logo .thumb { padding: 6px; }
  .store-circle .store-name { font-size: 10px; }
  .store-circle .store-meta { font-size: 9px; }
}

@media (min-width: 769px) {
  .bottom-nav { display: none; }
  .store-grid-item { width: 96px; }
  .stores-grid,
  .reviewed-grid { gap: 20px; }
  .store-circle { max-width: 96px; }
  .store-circle .thumb-wrap { width: 72px; }
  .store-circle .thumb,
  .store-circle.view-all .thumb {
    width: 72px;
    height: 72px;
  }
  .store-circle .store-name,
  .store-circle .store-meta { max-width: 96px; }
  .store-circle.brand-logo .thumb { padding: 8px; }
  .store-circle .store-name { font-size: 12px; }
  .store-circle .store-meta { font-size: 11px; }
}

/* Dark theme */
html.dark-theme,
body.dark-theme {
  --text: #ffffff;
  --muted: #b3b3b3;
  --border: #2a2a2a;
  --cream: #0a0a0a;
  --cream-dark: #141414;
  --menu-bg: #111111;
  --surface: #111111;
  --page-bg: #000000;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

html.dark-theme .splash,
body.dark-theme .splash { background: #000; }

html.dark-theme .utility-bar,
body.dark-theme .utility-bar {
  background: #0a0a0a;
  border-color: #222;
}

html.dark-theme body {
  background: var(--page-bg);
  color: var(--text);
}

html.dark-theme .icon-btn,
body.dark-theme .icon-btn,
html.dark-theme .utility-btn,
body.dark-theme .utility-btn,
html.dark-theme .nav-links a,
body.dark-theme .nav-links a,
html.dark-theme .sign-in-link,
body.dark-theme .sign-in-link {
  color: #fff;
}

html.dark-theme .location-banner,
body.dark-theme .location-banner,
html.dark-theme .hero-banner,
body.dark-theme .hero-banner,
html.dark-theme .page-header,
body.dark-theme .page-header,
html.dark-theme .offer-full-card,
body.dark-theme .offer-full-card,
html.dark-theme .delivery-box,
body.dark-theme .delivery-box,
html.dark-theme .food-cat-pill,
body.dark-theme .food-cat-pill {
  background: var(--surface); border-color: var(--border); color: var(--text);
}
html.dark-theme .food-cat-pill.active,
body.dark-theme .food-cat-pill.active {
  background: rgba(245,132,42,.12); border-color: var(--orange); color: var(--orange);
}
html.dark-theme .pickup-box h3,
body.dark-theme .pickup-box h3 { color: var(--text); }

html.dark-theme .store-info,
body.dark-theme .store-info,
html.dark-theme .content-page,
body.dark-theme .content-page {
  background: #111;
  color: #fff;
}

html.dark-theme .location-search input,
body.dark-theme .location-search input,
html.dark-theme .auth-sheet input[type="email"],
body.dark-theme .auth-sheet input[type="email"],
html.dark-theme .auth-sheet input[type="password"],
body.dark-theme .auth-sheet input[type="password"],
html.dark-theme .auth-sheet input[type="text"],
body.dark-theme .auth-sheet input[type="text"] {
  background: #1a1a1a;
  border-color: #333;
  color: #fff;
}

html.dark-theme .store-circle .thumb,
body.dark-theme .store-circle .thumb,
html.dark-theme .store-circle.brand-logo .thumb,
body.dark-theme .store-circle.brand-logo .thumb {
  filter: none;
  background: #fff;
  border-color: #e8e8e8;
}

html.dark-theme .store-circle .store-name,
body.dark-theme .store-circle .store-name {
  color: #fff;
}

html.dark-theme img.brand-logo,
body.dark-theme img.brand-logo,
html.dark-theme .auth-logo,
body.dark-theme .auth-logo {
  filter: brightness(0) invert(1);
}

html.dark-theme .btn-light,
body.dark-theme .btn-light {
  background: #222;
  color: #fff;
}

html.dark-theme .dropdown-menu a:hover,
body.dark-theme .dropdown-menu a:hover,
html.dark-theme .sidebar-item:hover,
body.dark-theme .sidebar-item:hover,
html.dark-theme .sidebar-item.active,
body.dark-theme .sidebar-item.active {
  background: #1a1a1a;
}

html.dark-theme .store-row,
body.dark-theme .store-row {
  border-color: #222;
}

html.dark-theme .list-store-head .fav-btn,
body.dark-theme .list-store-head .fav-btn {
  color: #888;
}

html.dark-theme .intro-footer-text h3,
body.dark-theme .intro-footer-text h3 {
  color: var(--orange);
}

/* Location full-screen modals */
.location-fullscreen {
  position: fixed; inset: 0; z-index: 6000; background: #fff;
  display: none; flex-direction: column; overflow-y: auto;
}
.location-fullscreen.open { display: flex; }
.location-fullscreen-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  border: none; background: none; font-size: 32px; line-height: 1;
  cursor: pointer; color: var(--text); padding: 4px 10px;
}
.location-intro-inner {
  max-width: 420px; margin: auto; padding: 48px 24px 32px; text-align: center; width: 100%;
}
.location-intro-title { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.location-intro-divider { border: none; border-top: 1px solid var(--border); margin-bottom: 24px; }
.location-intro-art { width: min(280px, 75vw); margin: 0 auto 24px; display: block; }
.location-intro-headline {
  font-size: 15px; font-weight: 800; letter-spacing: 0.3px;
  margin-bottom: 12px; line-height: 1.4;
}
.location-intro-text { font-size: 14px; color: var(--muted); line-height: 1.5; margin-bottom: 28px; }
.btn-location-primary,
.btn-location-outline {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 20px; border-radius: 12px; font-size: 15px; font-weight: 700;
  cursor: pointer; margin-bottom: 12px;
}
.btn-location-primary {
  background: var(--orange); color: #fff; border: none;
}
.btn-location-outline {
  background: #fff; color: var(--orange); border: 2px solid var(--orange);
}
.map-picker .map-picker-header {
  position: relative; text-align: center; padding: 16px 48px;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.map-picker .map-picker-header h2 { font-size: 18px; font-weight: 700; }
.map-search-wrap {
  position: relative; padding: 12px 16px; flex-shrink: 0;
}
.map-search-wrap input,
.location-search input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 14px; background: var(--surface); color: var(--text);
}
.address-suggestions {
  position: absolute; left: 16px; right: 16px; top: calc(100% - 4px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow); list-style: none; z-index: 20; max-height: 220px; overflow-y: auto;
}
.address-suggestions li {
  padding: 12px 14px; font-size: 13px; cursor: pointer; border-bottom: 1px solid var(--border);
}
.address-suggestions li:last-child { border-bottom: none; }
.address-suggestions li:hover { background: var(--cream); }
.pick-map { flex: 1; min-height: 280px; width: 100%; z-index: 1; }
.map-hint { text-align: center; font-size: 12px; color: var(--muted); padding: 8px 16px 0; }
.map-submit { margin: 12px 16px 8px; max-width: calc(100% - 32px); }
.map-update-btn { margin: 0 16px 24px; max-width: calc(100% - 32px); }

.utility-location-wrap { position: relative; }
.utility-location-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 600; min-width: 260px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 14px;
}
.utility-location-menu-title { font-size: 12px; font-weight: 700; margin: 0 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.utility-location-menu-addr { font-size: 14px; margin: 0 0 12px; line-height: 1.4; }
.utility-location-menu[hidden] { display: none !important; }

.store-pickup-map {
  height: 260px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 12px;
}
.store-nav-eta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; background: #f9fafb; border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 10px; font-size: 13px;
}
.store-nav-eta strong { font-size: 16px; color: var(--orange); }
.store-search-bar {
  display: none; padding: 0 20px 12px;
}
.store-search-bar.open { display: block; }
.store-search-bar input {
  width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; background: #fff;
}
.store-search-results { margin-top: 10px; max-height: 280px; overflow-y: auto; }

.nav-search-bar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 10px 16px 12px; position: sticky; top: 56px; z-index: 99;
}
.nav-search-bar[hidden] { display: none !important; }
.nav-search-inner {
  display: flex; align-items: center; gap: 10px; max-width: 1200px; margin: 0 auto;
  background: #f3f4f6; border: 1px solid var(--border); border-radius: 12px; padding: 4px 12px;
}
.nav-search-inner input {
  flex: 1; border: none; background: transparent; padding: 12px 4px; font-size: 15px; outline: none;
}
.nav-search-results {
  max-width: 1200px; margin: 10px auto 0; max-height: 360px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}

.view-cart-bar {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 800;
  display: inline-flex; align-items: center; gap: 10px; background: var(--orange); color: #fff;
  border: none; border-radius: 999px; padding: 14px 24px; font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 28px rgba(237,98,0,.35); cursor: pointer;
}
.view-cart-bar .icon { width: 20px; height: 20px; stroke: #fff; }

.cart-qty-controls {
  display: inline-flex; align-items: center; gap: 8px; background: #f3f4f6;
  border-radius: 8px; padding: 4px;
}
.cart-qty-controls button {
  width: 28px; height: 28px; border: none; background: #fff; border-radius: 6px;
  cursor: pointer; display: grid; place-items: center;
}
.cart-qty-controls span { min-width: 20px; text-align: center; font-weight: 700; font-size: 14px; }
.cart-item-remove {
  border: none; background: none; color: #e74c3c; cursor: pointer; padding: 6px;
}
.payment-card {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  border: 1px solid var(--border); border-radius: 12px; background: #f9fafb; margin: 16px 0;
}
.payment-card .mc-icon { width: 44px; height: 28px; flex-shrink: 0; }
.payment-card strong { display: block; font-size: 15px; letter-spacing: .08em; }
.payment-card span { font-size: 12px; color: var(--muted); }
.btn-pay {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px; font-size: 16px; font-weight: 700;
}

.checkout-overlay {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.55);
  display: grid; place-items: center; padding: 20px;
}
.checkout-progress-card {
  background: #fff; border-radius: 16px; padding: 28px 24px; width: min(420px, 92vw);
  text-align: center;
}
.checkout-progress-card h3 { margin: 0 0 20px; font-size: 18px; }
.checkout-steps { text-align: left; margin-bottom: 20px; }
.checkout-step {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  font-size: 14px; color: var(--muted); opacity: .45; transition: opacity .3s;
}
.checkout-step.active { opacity: 1; color: var(--text); font-weight: 600; }
.checkout-step.done { opacity: 1; color: #039d55; }
.checkout-step-dot {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border);
  display: grid; place-items: center; flex-shrink: 0; font-size: 11px;
}
.checkout-step.active .checkout-step-dot { border-color: var(--orange); animation: pulse 1s infinite; }
.checkout-step.done .checkout-step-dot { background: #039d55; border-color: #039d55; color: #fff; }
@keyframes pulse { 0%,100%{ transform:scale(1);} 50%{ transform:scale(1.08);} }
.checkout-progress-bar {
  height: 6px; background: #eee; border-radius: 999px; overflow: hidden; margin-top: 8px;
}
.checkout-progress-bar span {
  display: block; height: 100%; background: var(--orange); width: 0; transition: width .5s ease;
}

.cart-add-toast {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 800;
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #c8e6c9;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); border-radius: 12px; padding: 12px 16px; min-width: min(92vw, 360px);
}
.cart-add-msg { color: #2e7d32; font-weight: 700; font-size: 14px; flex: 1; }
.cart-add-checkout {
  border: none; background: var(--orange); color: #fff; font-weight: 700; font-size: 13px;
  padding: 8px 14px; border-radius: 8px; cursor: pointer;
}
.product-add-success {
  position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(46,125,50,.95);
  color: #fff; font-size: 12px; font-weight: 700; text-align: center; padding: 6px 8px; border-radius: 8px;
}
.location-banner { position: relative; }
.location-search { position: relative; flex: 1; }
.location-search .address-suggestions { left: 0; right: 0; top: 100%; }

#location-label { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sign-in-wrap { position: relative; }
.sign-in-tooltip {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px;
  background: #111; color: #fff; font-size: 12px; padding: 8px 12px;
  border-radius: 8px; white-space: nowrap; z-index: 200; pointer-events: none;
}
.sign-in-wrap:hover .sign-in-tooltip { display: block; }
.sign-in-tooltip[hidden] { display: none !important; }

.search-sheet h2 { margin-bottom: 12px; }
.search-sheet input[type="search"] {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 14px; margin-bottom: 12px;
}
.search-results { max-height: 50vh; overflow-y: auto; }
.search-result-item {
  display: flex; gap: 12px; align-items: center; padding: 12px 0;
  border-bottom: 1px solid var(--border); cursor: pointer; text-align: left;
  background: none; border-left: none; border-right: none; border-top: none; width: 100%;
  font: inherit; color: inherit;
}
.search-result-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.search-result-item .meta h4 { font-size: 14px; margin-bottom: 2px; }
.search-result-item .meta p { font-size: 12px; color: var(--muted); }

.cart-page { max-width: 720px; margin: 0 auto; padding: 20px 16px; }
.cart-item {
  display: flex; gap: 12px; align-items: center; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.cart-item .meta { flex: 1; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.search-empty { padding: 12px; font-size: 13px; color: var(--muted); }
.cart-item h4 { font-size: 14px; margin-bottom: 4px; }
.cart-item p { font-size: 13px; color: var(--muted); }
.cart-total {
  display: flex; justify-content: space-between; font-weight: 700;
  font-size: 18px; margin: 20px 0; padding-top: 12px;
}
.notif-list { padding: 0 16px 24px; }
.notif-item {
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.notif-item h4 { font-size: 14px; margin-bottom: 4px; }
.notif-item p { font-size: 13px; color: var(--muted); }
.notif-item time { font-size: 11px; color: var(--muted); }

html.dark-theme .location-fullscreen,
body.dark-theme .location-fullscreen { background: #111; }
html.dark-theme .btn-location-outline,
body.dark-theme .btn-location-outline { background: #111; }
