:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --text: #171815;
  --muted: #6f726a;
  --line: #e6e7e1;
  --accent: #1e6d4e;
  --accent-2: #e9f4ee;
  --danger: #a83b3b;
  --success: #176640;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(18, 26, 20, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1140px, calc(100% - 32px)); margin-inline: auto; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247,247,244,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { min-height: 68px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand { display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.03em; }
.brand-mark {
  width:34px; height:34px; display:grid; place-items:center; border-radius:10px;
  background:var(--accent); color:white;
}
.nav-links { display:flex; gap:20px; align-items:center; font-size:14px; color:var(--muted); }
.nav-links a:hover { color:var(--text); }

.hero { padding:72px 0 48px; display:grid; grid-template-columns:1.15fr .85fr; gap:56px; align-items:center; }
.hero h1, .page-intro h1, .store-summary h1, .auth-card h1, .profile-header h1 {
  font-size: clamp(36px, 6vw, 68px);
  line-height: .98; letter-spacing:-.045em; margin:10px 0 20px;
}
.hero-copy p, .page-intro p, .auth-card > p { font-size:18px; color:var(--muted); max-width:660px; }
.eyebrow { text-transform:uppercase; letter-spacing:.14em; font-size:12px; font-weight:800; color:var(--accent); }
.location-status { display:inline-flex; align-items:center; gap:9px; margin-top:16px; color:var(--muted); font-size:14px; }
.status-dot { width:9px; height:9px; border-radius:50%; background:#c6a34c; box-shadow:0 0 0 4px rgba(198,163,76,.13); }
.location-status.ok .status-dot { background:var(--success); box-shadow:0 0 0 4px rgba(23,102,64,.12); }

.roller-panel {
  background:var(--surface); border:1px solid var(--line); border-radius:26px; padding:26px;
  box-shadow:var(--shadow);
}
.roller-label { font-size:11px; font-weight:800; letter-spacing:.16em; color:var(--muted); margin-bottom:12px; }
.roller-window {
  min-height:180px; border-radius:18px; background:linear-gradient(140deg,#eef6f1,#fbfbf7);
  display:flex; flex-direction:column; justify-content:center; padding:28px; border:1px solid #e1ece5;
}
.roller-name { font-size:30px; font-weight:800; line-height:1.05; letter-spacing:-.03em; }
.roller-meta { color:var(--muted); margin-top:10px; }
.roller-actions, .inline-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }

.btn {
  min-height:44px; padding:0 18px; border-radius:12px; border:1px solid transparent;
  display:inline-flex; align-items:center; justify-content:center; font-weight:750; transition:.18s ease;
}
.btn.primary { background:var(--accent); color:#fff; }
.btn.primary:hover { transform:translateY(-1px); filter:brightness(.97); }
.btn.ghost { background:var(--surface); border-color:var(--line); color:var(--text); }
.btn.ghost:hover { background:#f1f2ed; }
.btn:disabled { opacity:.55; cursor:not-allowed; }
.disabled-link { pointer-events:none; opacity:.5; }

.section { padding:44px 0; }
.section-head { display:flex; justify-content:space-between; gap:20px; align-items:end; margin-bottom:22px; }
.section-head h2, .panel h2, .split-section h2 { font-size:28px; letter-spacing:-.025em; margin:6px 0 0; }
.text-btn { border:0; background:transparent; padding:0; color:var(--accent); font-weight:750; }
.category-grid { display:flex; gap:10px; flex-wrap:wrap; }
.category-chip input { position:absolute; opacity:0; pointer-events:none; }
.category-chip span {
  display:inline-flex; min-height:42px; align-items:center; padding:0 15px; border-radius:999px;
  background:var(--surface); border:1px solid var(--line); color:var(--muted); font-weight:650;
  transition:.18s ease;
}
.category-chip input:checked + span { background:var(--accent); color:white; border-color:var(--accent); }
.helper-row { margin-top:18px; display:flex; justify-content:space-between; gap:16px; color:var(--muted); font-size:14px; }
.helper-row a { color:var(--accent); font-weight:700; }

.store-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.store-card {
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; transition:.18s ease; box-shadow:0 2px 0 rgba(0,0,0,.01);
}
.store-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.store-card > img { width:100%; aspect-ratio:16/10; object-fit:cover; background:#eceee9; }
.store-card-body { padding:17px; }
.store-card-top { display:flex; justify-content:space-between; gap:10px; align-items:center; color:var(--muted); font-size:13px; }
.store-card h3 { font-size:20px; margin:12px 0 6px; letter-spacing:-.02em; }
.store-card p { margin:0; color:var(--muted); font-size:14px; min-height:42px; }
.pill { display:inline-flex; align-items:center; padding:5px 9px; border-radius:999px; background:var(--accent-2); color:var(--accent); font-size:12px; font-weight:750; }
.distance-line { display:block; margin-top:12px; color:var(--accent); font-size:13px; font-weight:650; }

.page-intro { padding:60px 0 24px; }
.page-intro h1 { font-size:clamp(34px,5vw,58px); max-width:800px; }
.filter-bar { display:grid; grid-template-columns:1fr 230px auto auto; gap:10px; margin:12px 0 24px; }
.input {
  width:100%; min-height:44px; border:1px solid var(--line); border-radius:12px; background:var(--surface);
  padding:10px 12px; color:var(--text); outline:none;
}
textarea.input { resize:vertical; min-height:110px; }
.input:focus { border-color:#8aa999; box-shadow:0 0 0 3px rgba(30,109,78,.1); }
.empty-state { background:var(--surface); border:1px dashed #cfd2ca; border-radius:var(--radius); padding:48px; text-align:center; color:var(--muted); }
.empty-state.small { padding:24px; text-align:left; }

.store-hero { padding:46px 0; border-bottom:1px solid var(--line); }
.store-hero-grid { display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:center; }
.store-cover { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:24px; background:#eceee9; box-shadow:var(--shadow); }
.store-summary h1 { font-size:clamp(38px,5vw,64px); margin:12px 0 14px; }
.lead { color:var(--muted); font-size:18px; }
.rating-big { font-size:28px; font-weight:800; margin:22px 0; }
.rating-big span { font-size:14px; font-weight:500; color:var(--muted); }
.address-block { display:grid; gap:3px; padding:15px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); color:var(--muted); }
.address-block strong { color:var(--text); }

.menu-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.menu-card { display:grid; grid-template-columns:110px 1fr; gap:16px; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:12px; }
.menu-card img { width:110px; height:94px; object-fit:cover; border-radius:12px; background:#eceee9; }
.menu-card h3 { margin:0; font-size:17px; }
.menu-card p { margin:7px 0 0; color:var(--muted); font-size:14px; }
.menu-title-row { display:flex; justify-content:space-between; gap:12px; }
.menu-title-row strong { color:var(--accent); white-space:nowrap; }

.split-section { display:grid; grid-template-columns:.8fr 1.2fr; gap:54px; }
.rating-form, .comment-form { margin-top:18px; }
.star-input { display:flex; flex-direction:row-reverse; justify-content:flex-end; gap:4px; margin-bottom:14px; }
.star-input input { position:absolute; opacity:0; }
.star-input label { font-size:32px; color:#c9ccc4; cursor:pointer; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color:#d9a62e; }
.login-nudge { margin-top:16px; padding:18px; border-radius:14px; background:var(--surface); border:1px solid var(--line); }
.comments { margin-top:20px; display:grid; gap:14px; }
.comment { display:grid; grid-template-columns:40px 1fr; gap:12px; padding:15px 0; border-top:1px solid var(--line); }
.comment-meta { display:flex; justify-content:space-between; gap:16px; font-size:14px; }
.comment-meta span { color:var(--muted); font-size:12px; }
.comment p { margin:5px 0 0; }
.avatar { border-radius:50%; background:var(--accent); color:white; display:grid; place-items:center; font-weight:800; overflow:hidden; }
.avatar img { width:100%; height:100%; object-fit:cover; }
.avatar.small { width:40px; height:40px; }
.avatar.xl { width:104px; height:104px; font-size:34px; }

.auth-wrap { min-height:calc(100vh - 140px); display:grid; place-items:center; padding:54px 0; }
.auth-card { width:min(760px,100%); background:var(--surface); border:1px solid var(--line); border-radius:24px; padding:30px; box-shadow:var(--shadow); }
.auth-card.compact { width:min(500px,100%); }
.auth-card h1 { font-size:42px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:24px; }
.form-grid label, .stack-form label { display:grid; gap:6px; font-size:13px; font-weight:700; color:var(--muted); }
.span-2 { grid-column:span 2; }
.stack-form { display:grid; gap:14px; margin-top:20px; }
.auth-switch { text-align:center; color:var(--muted); margin-top:18px; }
.auth-switch a { color:var(--accent); font-weight:750; }

.alert { margin-top:18px; padding:12px 14px; border-radius:12px; border:1px solid; }
.alert.error { background:#fff0f0; border-color:#efc9c9; color:#8f3030; }
.alert.success { background:#edf8f1; border-color:#c6e7d1; color:#176640; }

.profile-header { display:flex; gap:22px; align-items:center; padding:58px 0 10px; }
.profile-header h1 { font-size:42px; margin-bottom:8px; }
.profile-header p { color:var(--muted); margin:0; }
.profile-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.panel { background:var(--surface); border:1px solid var(--line); border-radius:20px; padding:22px; }
.panel h2 { margin-top:0; }
.divider { border:0; border-top:1px solid var(--line); margin:26px 0; }
.visit-list { display:grid; gap:10px; }
.visit-item { display:grid; grid-template-columns:72px 1fr; gap:12px; padding:10px; border-radius:14px; border:1px solid var(--line); }
.visit-item img { width:72px; height:60px; object-fit:cover; border-radius:10px; }
.visit-item div { display:grid; gap:2px; }
.visit-item span, .visit-item small { color:var(--muted); font-size:13px; }
.muted { color:var(--muted); }

.admin-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:18px; padding-bottom:54px; }
.span-2-admin { grid-column:span 2; }
.span-all { grid-column:1 / -1; }
.admin-list { display:grid; gap:10px; }
.admin-row { display:flex; justify-content:space-between; gap:16px; align-items:center; border-top:1px solid var(--line); padding-top:12px; }
.admin-row div { display:grid; gap:2px; }
.admin-row span { font-size:13px; color:var(--muted); }
.small-btn { min-height:36px; padding-inline:12px; }

.footer { margin-top:56px; border-top:1px solid var(--line); color:var(--muted); font-size:13px; }
.footer-row { min-height:72px; display:flex; justify-content:space-between; align-items:center; gap:16px; }

@media (max-width: 900px) {
  .hero, .store-hero-grid, .split-section, .profile-grid { grid-template-columns:1fr; }
  .store-grid { grid-template-columns:repeat(2,1fr); }
  .filter-bar { grid-template-columns:1fr 1fr; }
  .admin-grid { grid-template-columns:1fr; }
  .span-2-admin { grid-column:auto; }
}

@media (max-width: 640px) {
  .shell { width:min(100% - 22px,1140px); }
  .nav { min-height:60px; }
  .brand span:last-child { display:none; }
  .nav-links { gap:12px; font-size:13px; overflow-x:auto; }
  .hero { padding-top:40px; gap:28px; }
  .hero h1 { font-size:44px; }
  .store-grid, .menu-grid, .form-grid, .filter-bar { grid-template-columns:1fr; }
  .span-2 { grid-column:auto; }
  .menu-card { grid-template-columns:88px 1fr; }
  .menu-card img { width:88px; height:82px; }
  .helper-row, .section-head, .footer-row { align-items:flex-start; flex-direction:column; }
  .profile-header { align-items:flex-start; }
}

/* Email verification */
.verification-banner { background:#fff8e8; border-bottom:1px solid #eadcb8; }
.verification-banner-inner { min-height:64px; display:flex; align-items:center; justify-content:space-between; gap:18px; padding-top:10px; padding-bottom:10px; }
.verification-banner-inner > div { display:grid; gap:2px; }
.verification-banner-inner strong { color:#5d4510; font-size:14px; }
.verification-banner-inner span { color:#826a31; font-size:13px; }
.verification-btn { min-height:38px; padding:8px 14px; background:#fff; border:1px solid #d9c58f; color:#5d4510; white-space:nowrap; }
.verification-nudge { border-color:#eadcb8; background:#fffaf0; }
.activation-card { text-align:center; }
.activation-card > p { color:var(--muted); }
.activation-icon { width:54px; height:54px; margin:0 auto 14px; display:grid; place-items:center; border-radius:16px; background:var(--accent-2); color:var(--accent); font-size:25px; }
.activation-form { text-align:left; }
.code-input { text-align:center; font-size:26px; font-weight:800; letter-spacing:.28em; font-variant-numeric:tabular-nums; }
.activation-footer { margin-top:20px; padding-top:18px; border-top:1px solid var(--line); display:flex; justify-content:center; align-items:center; gap:7px; color:var(--muted); font-size:13px; }
.activation-footer form { margin:0; }
.text-button { border:0; background:transparent; padding:0; color:var(--accent); font:inherit; font-weight:750; cursor:pointer; }
.text-button:hover { text-decoration:underline; }

@media (max-width: 640px) {
  .verification-banner-inner { align-items:flex-start; }
  .verification-banner-inner span { display:block; }
}
.account-status { display:inline-flex; align-items:center; gap:5px; margin-top:9px; padding:5px 9px; border-radius:999px; font-size:12px; font-weight:750; }
.account-status.verified { background:#edf8f1; color:#176640; }
.account-status.pending { background:#fff8e8; color:#755716; border:1px solid #eadcb8; }


/* Admin store map picker */
.store-location-picker {
  display:grid;
  gap:12px;
  min-width:0;
}
.location-picker-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
}
.field-label {
  display:block;
  margin-bottom:4px;
  font-size:13px;
  font-weight:700;
  color:var(--muted);
}
.location-picker-head p {
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}
.store-location-map {
  width:100%;
  height:390px;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  background:#eceee9;
  z-index:1;
}
.store-location-map:focus-within {
  border-color:#8aa999;
  box-shadow:0 0 0 3px rgba(30,109,78,.1);
}
.selected-location {
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#f7f8f4;
  font-size:13px;
}
.selected-location strong { color:var(--text); }
.selected-location span { color:var(--muted); text-align:right; }
.selected-location.has-location {
  background:#edf8f1;
  border-color:#c6e7d1;
}
.location-button-status { font-size:12px; color:var(--muted); }
.leaflet-control-attribution { font-size:10px; }

@media (max-width: 640px) {
  .location-picker-head, .selected-location { align-items:flex-start; flex-direction:column; }
  .selected-location span { text-align:left; }
  .store-location-map { height:330px; }
  #use-current-location { width:100%; }
}

/* Extended food discovery features */
.hidden { display:none !important; }
.inline-form { display:inline-flex; margin:0; }
.roulette-hero { grid-template-columns:.8fr 1.2fr; }
.roulette-panel {
  background:var(--surface); border:1px solid var(--line); border-radius:28px; padding:24px;
  box-shadow:var(--shadow); display:grid; gap:18px;
}
.roulette-stage {
  width:min(100%,520px); aspect-ratio:1; margin-inline:auto; position:relative; display:grid; place-items:center;
}
#rouletteWheel { width:100%; height:100%; display:block; filter:drop-shadow(0 18px 26px rgba(18,26,20,.12)); }
.roulette-pointer {
  position:absolute; z-index:3; top:-3px; left:50%; transform:translateX(-50%);
  width:0; height:0; border-left:18px solid transparent; border-right:18px solid transparent; border-top:34px solid var(--text);
}
.roulette-center {
  position:absolute; width:74px; height:74px; border-radius:50%; display:grid; place-items:center;
  background:#fff; border:7px solid rgba(255,255,255,.7); box-shadow:0 5px 18px rgba(0,0,0,.16);
  color:var(--accent); font-size:30px; font-weight:900;
}
.roulette-result { min-height:86px; padding:16px 18px; border-radius:16px; background:#f6f8f5; border:1px solid var(--line); }
.picker-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:20px; }
.picker-filters > label { display:grid; gap:6px; color:var(--muted); font-size:13px; font-weight:700; }
.toggle-filter {
  min-height:44px; padding:0 14px; display:flex !important; align-items:center; gap:9px; border:1px solid var(--line);
  border-radius:12px; background:var(--surface); color:var(--text) !important; font-weight:700;
}
.toggle-filter input { width:17px; height:17px; accent-color:var(--accent); }
.compact-toggle { min-width:130px; }
.advanced-filter-bar { grid-template-columns:1.4fr repeat(3,minmax(150px,.7fr)) auto auto auto; align-items:center; }
.filter-note { min-height:22px; margin:-12px 0 18px; color:var(--muted); font-size:13px; }
.radius-hidden { display:none !important; }
.store-card-facts { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:10px; color:var(--muted); font-size:12px; }
.open-state { display:inline-flex; align-items:center; gap:5px; font-weight:800; font-size:12px; }
.open-state::before { content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.open-state.is-open { color:#187044; }
.open-state.is-closed { color:#8b4f4f; }
.open-state.prominent { padding:5px 9px; border-radius:999px; background:#f5f6f2; }
.store-heading-row { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.store-facts-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:18px 0; }
.store-facts-grid > div { display:grid; gap:2px; padding:12px 14px; border:1px solid var(--line); border-radius:13px; background:#fbfbf9; }
.store-facts-grid span { color:var(--muted); font-size:13px; }
.store-actions { align-items:center; }
.favorite-btn.is-favorite { color:#a3384d; border-color:#e8c8cf; background:#fff7f8; }
.verified-visit-note { color:var(--success); font-size:13px; font-weight:700; margin:12px 0 0; }
.visited-badge { display:inline-flex; margin-left:6px; padding:2px 6px; border-radius:999px; background:#eaf6ef; color:#176640 !important; font-size:10px !important; font-weight:800; }

.store-gallery { min-width:0; }
.gallery-main { transition:opacity .15s ease; }
.gallery-thumbs { display:flex; gap:9px; margin-top:10px; overflow-x:auto; padding-bottom:3px; }
.gallery-thumb { flex:0 0 76px; padding:3px; border-radius:11px; border:2px solid transparent; background:transparent; }
.gallery-thumb img { width:68px; height:58px; object-fit:cover; border-radius:8px; }
.gallery-thumb.active { border-color:var(--accent); }

.compact-section { padding-top:28px; padding-bottom:10px; }
.hours-list { max-width:700px; background:var(--surface); border:1px solid var(--line); border-radius:18px; overflow:hidden; }
.hours-row { display:flex; justify-content:space-between; gap:20px; padding:11px 15px; border-top:1px solid var(--line); color:var(--muted); }
.hours-row:first-child { border-top:0; }
.hours-row strong { color:var(--text); }
.hours-row.today { background:#edf6f1; }
.hours-admin-form { display:grid; gap:8px; }
.hours-admin-row { display:grid; grid-template-columns:140px 1fr 1fr 110px; gap:12px; align-items:end; padding:10px 0; border-top:1px solid var(--line); }
.hours-admin-row:first-of-type { border-top:0; }
.hours-admin-row label { display:grid; gap:4px; font-size:12px; color:var(--muted); font-weight:700; }
.closed-check { display:flex !important; align-items:center; gap:7px !important; min-height:44px; }
.closed-check input { width:17px; height:17px; accent-color:var(--accent); }

@media (max-width: 1050px) {
  .advanced-filter-bar { grid-template-columns:1fr 1fr 1fr; }
  .compact-toggle { min-height:44px; }
}
@media (max-width: 900px) {
  .roulette-hero { grid-template-columns:1fr; }
  .roulette-panel { max-width:650px; width:100%; margin-inline:auto; }
}
@media (max-width: 700px) {
  .picker-filters, .store-facts-grid { grid-template-columns:1fr; }
  .advanced-filter-bar { grid-template-columns:1fr; }
  .hours-admin-row { grid-template-columns:1fr 1fr; }
  .hours-admin-row > strong { grid-column:1 / -1; }
  .closed-check { grid-column:1 / -1; }
  .roulette-panel { padding:16px; }
  .roulette-center { width:58px; height:58px; border-width:5px; font-size:24px; }
  .roulette-pointer { border-left-width:14px; border-right-width:14px; border-top-width:26px; }
}

/* =========================================================
   KAEATSAAN 2026 VISUAL REFRESH
   Warm, modern food-discovery UI with cleaner browse filters.
   ========================================================= */
:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-soft: #fbfaf6;
  --surface-tint: #f0f7f3;
  --text: #14231d;
  --muted: #68756f;
  --line: #e5e8e1;
  --line-strong: #d8ddd5;
  --accent: #157a55;
  --accent-dark: #0d5d40;
  --accent-soft: #e8f5ee;
  --accent-2: #e8f5ee;
  --warm: #f47b45;
  --warm-soft: #fff1e9;
  --gold: #e5a62f;
  --danger: #a83b3b;
  --success: #176b47;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 8px 24px rgba(24, 46, 36, .06);
  --shadow: 0 20px 55px rgba(24, 46, 36, .10);
  --shadow-strong: 0 26px 70px rgba(18, 48, 36, .16);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 5%, rgba(244,123,69,.08), transparent 25rem),
    radial-gradient(circle at 92% 8%, rgba(21,122,85,.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(21,122,85,.18); }
.shell { width: min(1180px, calc(100% - 38px)); }
main { min-height: calc(100vh - 150px); }

/* Navigation */
.topbar {
  top: 0;
  background: rgba(247,245,239,.78);
  border-bottom: 1px solid rgba(213,220,212,.75);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.nav { min-height: 76px; }
.brand { gap: 12px; font-size: 15px; letter-spacing: .06em; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(145deg, #1b8b62, #0f6848);
  box-shadow: 0 8px 20px rgba(21,122,85,.25), inset 0 1px 0 rgba(255,255,255,.25);
  font-size: 17px;
}
.nav-links {
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(219,224,217,.8);
  border-radius: 999px;
  background: rgba(255,255,255,.66);
  box-shadow: 0 5px 18px rgba(31,52,43,.04);
}
.nav-links a {
  padding: 8px 13px;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-links a:hover {
  color: var(--accent-dark);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

/* Typography and section rhythm */
.hero { padding: 84px 0 54px; }
.hero h1, .page-intro h1, .store-summary h1, .auth-card h1, .profile-header h1 {
  color: #10241c;
  letter-spacing: -.055em;
}
.hero-copy p, .page-intro p, .auth-card > p { color: var(--muted); line-height: 1.65; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 850;
  letter-spacing: .13em;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--warm), var(--accent));
}
.section { padding: 50px 0; }
.section-head h2, .panel h2, .split-section h2 { font-size: clamp(25px, 3vw, 32px); }

/* Buttons and fields */
.btn {
  min-height: 46px;
  border-radius: 14px;
  padding-inline: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn.primary {
  background: linear-gradient(135deg, #17845c, #0f6a49);
  box-shadow: 0 9px 22px rgba(21,122,85,.20);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(21,122,85,.27); filter: none; }
.btn.ghost {
  background: rgba(255,255,255,.82);
  border-color: var(--line-strong);
}
.btn.ghost:hover { background: #fff; border-color: #c9d2ca; transform: translateY(-1px); }
.text-btn { color: var(--accent); font-weight: 800; }
.input {
  min-height: 48px;
  border-radius: 14px;
  border-color: var(--line-strong);
  background: rgba(255,255,255,.92);
  padding: 11px 14px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.input:hover { border-color: #cbd4cc; }
.input:focus {
  background: #fff;
  border-color: rgba(21,122,85,.65);
  box-shadow: 0 0 0 4px rgba(21,122,85,.10);
}

/* Home hero / roulette */
.roulette-hero { position: relative; gap: 60px; }
.roulette-hero::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: 14%;
  top: 7%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,123,69,.12), rgba(244,123,69,0) 68%);
  pointer-events: none;
}
.location-status {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-sm);
}
.roulette-panel {
  border: 1px solid rgba(218,224,216,.9);
  border-radius: 32px;
  padding: 26px;
  background: linear-gradient(155deg, rgba(255,255,255,.98), rgba(247,251,248,.96));
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
}
.roulette-panel::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: rgba(244,123,69,.09);
}
#rouletteWheel { filter: drop-shadow(0 22px 28px rgba(18,26,20,.16)); }
.roulette-pointer { border-top-color: #10241c; filter: drop-shadow(0 4px 4px rgba(0,0,0,.12)); }
.roulette-center {
  background: linear-gradient(145deg, #fff, #f5fbf8);
  color: var(--accent);
  box-shadow: 0 9px 24px rgba(18,55,40,.18);
}
.roulette-result {
  border-radius: 18px;
  border-color: #e0e7e1;
  background: linear-gradient(135deg, #f4faf7, #fffaf6);
}
.roller-name { color: #10241c; }
.category-chip span {
  min-height: 44px;
  padding: 0 16px;
  background: rgba(255,255,255,.82);
  border-color: var(--line-strong);
  box-shadow: 0 3px 10px rgba(26,44,35,.025);
}
.category-chip span:hover { border-color: #bfcfc4; transform: translateY(-1px); }
.category-chip input:checked + span {
  background: linear-gradient(135deg, #1a825d, #126a4b);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(21,122,85,.18);
}
.picker-filters > label:not(.toggle-filter), .filter-field { color: var(--muted); }
.toggle-filter {
  min-height: 48px;
  border-radius: 14px;
  border-color: var(--line-strong);
  background: rgba(255,255,255,.85);
}

/* Store cards */
.store-grid { gap: 22px; }
.store-card {
  border-color: rgba(218,223,216,.9);
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 30px rgba(25,46,37,.055);
  overflow: hidden;
  position: relative;
  transform: translateZ(0);
}
.store-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 48px rgba(25,46,37,.14);
  border-color: rgba(186,203,191,.95);
}
.store-card > img, .store-card-media > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.store-card:hover > img, .store-card:hover .store-card-media > img { transform: scale(1.035); }
.store-card-body { padding: 18px 18px 19px; }
.store-card h3 { color: #12251d; font-size: 21px; margin-top: 10px; }
.store-card p { color: #718078; }
.store-card-top { font-weight: 700; }
.pill {
  background: #edf7f1;
  color: var(--accent-dark);
  border: 1px solid #d9eee2;
}
.distance-line { color: var(--accent); font-weight: 750; }
.store-card-facts { gap: 7px; }
.fact-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f7f4ed;
  color: #716652;
  font-weight: 750;
}
.review-count { color: var(--muted); }
.open-state.is-open { color: #147149; }
.open-state.is-closed { color: #9a5f57; }

/* Store detail */
.store-hero {
  padding: 58px 0;
  border-bottom: 1px solid rgba(218,223,216,.8);
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0));
}
.store-cover { border-radius: 28px; box-shadow: var(--shadow-strong); }
.store-facts-grid > div, .hours-list, .menu-card, .panel, .login-nudge {
  border-color: rgba(218,223,216,.9);
  box-shadow: var(--shadow-sm);
}
.store-facts-grid > div { border-radius: 15px; background: rgba(255,255,255,.78); }
.menu-card {
  border-radius: 19px;
  background: rgba(255,255,255,.93);
  transition: transform .18s ease, box-shadow .18s ease;
}
.menu-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.menu-card img { border-radius: 14px; }
.gallery-main { border-radius: 28px; }
.gallery-thumb { border-radius: 13px; }
.hours-list { border-radius: 20px; }
.hours-row.today { background: linear-gradient(90deg, #eaf7f0, #f4fbf7); }

/* Forms / profile / admin */
.auth-card, .panel {
  border-radius: 26px;
  background: rgba(255,255,255,.93);
  box-shadow: var(--shadow);
}
.auth-card { padding: 34px; }
.profile-header { padding-top: 68px; }
.avatar { background: linear-gradient(145deg, #1b8b62, #0f6848); box-shadow: 0 10px 28px rgba(21,122,85,.18); }
.visit-item {
  border-radius: 16px;
  background: #fff;
  transition: transform .17s ease, border-color .17s ease, box-shadow .17s ease;
}
.visit-item:hover { transform: translateY(-2px); border-color: #cbd8cf; box-shadow: var(--shadow-sm); }
.admin-grid .panel { overflow: hidden; }
.store-location-map { border-radius: 20px; border-color: var(--line-strong); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.selected-location { border-radius: 14px; background: var(--surface-soft); }

/* Notices */
.verification-banner {
  background: linear-gradient(90deg, #fff8e8, #fffdf7);
  border-bottom-color: #ecdcae;
}
.alert { border-radius: 15px; box-shadow: 0 6px 18px rgba(20,40,30,.035); }
.account-status { padding: 6px 10px; }

/* Footer */
.footer {
  margin-top: 70px;
  border-top-color: rgba(215,221,214,.9);
  background: rgba(255,255,255,.32);
}
.footer-row { min-height: 86px; }

/* ===========================
   BROWSE PAGE / FILTER DRAWER
   =========================== */
.browse-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  padding: 70px 0 28px;
}
.browse-intro-copy { max-width: 800px; }
.browse-intro h1 { margin-bottom: 14px; }
.browse-intro p { margin-bottom: 0; }
.browse-intro-badge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border: 1px solid rgba(210,220,212,.9);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-sm);
}
.browse-intro-badge > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--warm), #e86733);
  font-size: 20px;
}
.browse-intro-badge div { display: grid; }
.browse-intro-badge strong { font-size: 14px; }
.browse-intro-badge small { color: var(--muted); font-size: 11px; }

.browse-section { padding-bottom: 60px; }
.browse-controls-card {
  position: sticky;
  top: 90px;
  z-index: 12;
  margin: 10px 0 24px;
  border: 1px solid rgba(216,222,214,.95);
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 16px 40px rgba(24,46,36,.09);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  overflow: clip;
}
.browse-search-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  gap: 10px;
  padding: 12px;
}
.search-field { position: relative; display: block; }
.search-field .input {
  padding-left: 46px;
  min-height: 50px;
  border-color: transparent;
  background: #f5f7f4;
}
.search-field .input:focus { border-color: rgba(21,122,85,.5); background: #fff; }
.search-icon {
  position: absolute;
  z-index: 2;
  left: 17px;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid #77857d;
  border-radius: 50%;
  transform: translateY(-56%);
  pointer-events: none;
}
.search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  border-radius: 3px;
  background: #77857d;
  transform: rotate(45deg);
}
.search-submit, .nearest-btn { min-height: 50px; }
.nearest-btn { gap: 7px; }
.nearest-btn > span { color: var(--warm); font-size: 18px; }

.browse-filter-drawer { border-top: 1px solid #edf0eb; }
.browse-filter-summary {
  list-style: none;
  min-height: 60px;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  color: var(--text);
  transition: background .16s ease;
}
.browse-filter-summary::-webkit-details-marker { display: none; }
.browse-filter-summary:hover { background: rgba(239,247,242,.62); }
.filter-summary-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.filter-summary-left > span:last-child { display: grid; }
.filter-summary-left strong { font-size: 14px; }
.filter-summary-left small { color: var(--muted); font-size: 12px; font-weight: 500; }
.filter-summary-right { display: flex; align-items: center; gap: 9px; }
.filter-count {
  min-width: 25px;
  height: 25px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}
.filter-sliders {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-soft);
  position: relative;
}
.filter-sliders::before, .filter-sliders::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.filter-sliders::before { top: 13px; box-shadow: 0 10px 0 var(--accent); }
.filter-sliders::after {
  width: 5px;
  height: 5px;
  left: 15px;
  top: 11px;
  border: 2px solid var(--accent);
  background: #e8f5ee;
  border-radius: 50%;
  box-shadow: 5px 10px 0 -2px #e8f5ee, 5px 10px 0 0 var(--accent);
}
.filter-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid #66756d;
  border-bottom: 2px solid #66756d;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.browse-filter-drawer[open] .filter-chevron { transform: rotate(225deg) translate(-2px,-2px); }
.browse-filter-drawer[open] .browse-filter-summary { background: rgba(239,247,242,.62); }
.browse-filter-body {
  padding: 2px 15px 16px;
  border-top: 1px solid #f0f2ee;
  animation: filterReveal .18s ease both;
}
@keyframes filterReveal { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.advanced-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr)) minmax(190px,.8fr);
  gap: 12px;
  padding-top: 14px;
}
.filter-field { display: grid; gap: 6px; }
.filter-field > span { font-size: 12px; font-weight: 800; color: #65736c; }
.browse-open-toggle {
  align-self: end;
  display: flex !important;
  gap: 10px;
  min-height: 48px;
}
.toggle-copy { display: grid; line-height: 1.25; }
.toggle-copy strong { font-size: 13px; color: var(--text); }
.toggle-copy small { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 600; }
.filter-drawer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf0eb;
}
.active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 2px 22px;
}
.active-filters-label { color: var(--muted); font-size: 12px; font-weight: 700; margin-right: 2px; }
.active-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid #dfe5df;
  color: #425149;
  font-size: 12px;
  font-weight: 750;
}
.active-filter-chip.is-open-chip { background: #eaf7f0; color: #156a47; border-color: #cee9d9; }
.browse-results-head {
  min-height: 56px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.browse-results-head h2 { margin: 4px 0 0; font-size: 25px; letter-spacing: -.035em; }
.browse-results-head .filter-note { margin: 0; min-height: 0; text-align: right; }
.browse-store-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.store-card-media { position: relative; overflow: hidden; background: #eceee9; }
.store-card-category, .store-card-rating {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 5px 18px rgba(12,30,22,.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 850;
}
.store-card-category { left: 12px; color: var(--accent-dark); }
.store-card-rating { right: 12px; color: #6c5422; }
.store-card-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.store-card-title-row h3 { margin: 9px 0 6px; }
.card-arrow {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin-top: 6px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f1f6f3;
  color: var(--accent);
  transition: transform .18s ease, background .18s ease;
}
.store-card:hover .card-arrow { transform: translate(2px,-2px); background: var(--accent-soft); }
.browse-empty-state { padding: 64px 24px; }
.browse-empty-state h2 { color: var(--text); margin-bottom: 7px; }
.browse-empty-state p { max-width: 520px; margin: 0 auto 20px; }
.empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--warm-soft);
  color: var(--warm);
  font-size: 26px;
}

/* Improved location intro modal: matches the refreshed site. */
body.location-modal-open { overflow: hidden; }
.location-intro-overlay { background: rgba(9,27,20,.64) !important; backdrop-filter: blur(9px) !important; -webkit-backdrop-filter: blur(9px) !important; }
.location-intro-card {
  border-radius: 28px !important;
  border-color: rgba(255,255,255,.55) !important;
  box-shadow: 0 32px 90px rgba(6,27,18,.30) !important;
  padding: 28px !important;
}
.location-intro-icon {
  border-radius: 18px !important;
  background: linear-gradient(145deg, #e7f6ee, #fff0e8) !important;
  color: var(--accent) !important;
}
.location-intro-allow {
  border-color: var(--accent) !important;
  background: linear-gradient(135deg, #17845c, #0f6a49) !important;
  box-shadow: 0 9px 22px rgba(21,122,85,.22);
}
.location-intro-skip { border-color: var(--line-strong) !important; border-radius: 14px !important; }

@media (max-width: 1050px) {
  .advanced-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .browse-store-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .shell { width: min(100% - 28px, 1180px); }
  .nav-links { gap: 2px; }
  .hero { padding-top: 58px; }
  .browse-controls-card { top: 76px; }
  .browse-intro-badge { display: none; }
}

@media (max-width: 700px) {
  .topbar { background: rgba(247,245,239,.92); }
  .nav { min-height: 64px; gap: 12px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .nav-links {
    flex: 1;
    justify-content: flex-end;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow-x: auto;
  }
  .nav-links a { padding: 7px 9px; white-space: nowrap; }
  .browse-intro { padding: 45px 0 20px; }
  .browse-intro h1 { font-size: clamp(38px, 11vw, 50px); }
  .browse-controls-card { position: relative; top: auto; border-radius: 19px; }
  .browse-search-row { grid-template-columns: minmax(0,1fr) auto; padding: 10px; }
  .nearest-btn { grid-column: 1 / -1; }
  .search-submit { padding-inline: 15px; }
  .filter-summary-left small { display: none; }
  .advanced-filter-grid { grid-template-columns: 1fr; }
  .filter-drawer-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .browse-results-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .browse-results-head .filter-note { text-align: left; }
  .browse-store-grid { grid-template-columns: 1fr; }
  .store-card { border-radius: 20px; }
  .store-card > img, .store-card-media > img { aspect-ratio: 16 / 9.5; }
  .roulette-panel { border-radius: 24px; }
}

@media (max-width: 480px) {
  .shell { width: min(100% - 20px, 1180px); }
  .hero h1 { font-size: 42px; }
  .page-intro h1 { font-size: 39px; }
  .browse-search-row { grid-template-columns: 1fr; }
  .search-submit, .nearest-btn { width: 100%; }
  .filter-drawer-actions { grid-template-columns: 1fr; }
  .verification-banner-inner { flex-direction: column; }
  .verification-btn { width: 100%; }
}

/* =========================================================
   KAEATSAAN ORANGE MOBILE DELIVERY UI
   App-first orange/cream theme + social-style profile + promos.
   ========================================================= */
:root {
  --bg: #fff8f3;
  --surface: #ffffff;
  --surface-soft: #fffaf7;
  --surface-tint: #fff3ea;
  --text: #2a211d;
  --muted: #776b64;
  --line: #f0e1d8;
  --line-strong: #e8d3c6;
  --accent: #f36b21;
  --accent-dark: #c94f10;
  --accent-soft: #fff0e5;
  --accent-2: #fff0e5;
  --warm: #ff9a3d;
  --warm-soft: #fff3e5;
  --gold: #eda92f;
  --danger: #b83c32;
  --success: #218a55;
  --shadow-sm: 0 8px 24px rgba(101,56,28,.07);
  --shadow: 0 18px 50px rgba(101,56,28,.11);
  --shadow-strong: 0 28px 70px rgba(101,56,28,.16);
}

body {
  background:
    radial-gradient(circle at 4% 3%, rgba(255,157,74,.13), transparent 24rem),
    radial-gradient(circle at 95% 12%, rgba(243,107,33,.08), transparent 30rem),
    var(--bg);
  color: var(--text);
}
::selection { background: rgba(243,107,33,.20); }
.topbar {
  background: rgba(255,248,243,.90);
  border-bottom-color: rgba(235,214,201,.88);
}
.brand-mark {
  background: linear-gradient(145deg, #ff8a3d, #ef5a16);
  box-shadow: 0 8px 20px rgba(243,107,33,.28), inset 0 1px 0 rgba(255,255,255,.3);
}
.nav-links { border-color: #efddd1; background: rgba(255,255,255,.78); }
.nav-links a:hover { color: var(--accent-dark); background: var(--accent-soft); }
.hero h1, .page-intro h1, .store-summary h1, .auth-card h1, .profile-header h1 { color: var(--text); }
.eyebrow { color: var(--accent); }
.eyebrow::before { background: linear-gradient(90deg, #ffb05b, var(--accent)); }
.btn.primary {
  background: linear-gradient(135deg, #ff7c32, #ed5b17);
  box-shadow: 0 9px 22px rgba(243,107,33,.24);
}
.btn.primary:hover { box-shadow: 0 12px 28px rgba(243,107,33,.31); }
.btn.ghost:hover { border-color: #e2c5b3; background: #fffaf7; }
.input:focus {
  border-color: rgba(243,107,33,.65);
  box-shadow: 0 0 0 4px rgba(243,107,33,.10);
}
.location-status.ok .status-dot { background: var(--success); }
.roulette-panel {
  border-color: #efdcd0;
  background: linear-gradient(155deg, rgba(255,255,255,.99), rgba(255,245,237,.98));
}
.roulette-center { background: linear-gradient(145deg,#fff,#fff1e7); color: var(--accent); }
.roulette-result { border-color: #f1ded2; background: linear-gradient(135deg,#fff5ed,#fff); }
.roulette-pointer { border-top-color: #34251e; }
.category-chip input:checked + span {
  background: linear-gradient(135deg,#ff7d32,#e95a18);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(243,107,33,.22);
}
.toggle-filter input, .closed-check input { accent-color: var(--accent); }
.pill { background: #fff0e5; color: var(--accent-dark); border-color: #ffd9c3; }
.store-card h3, .roller-name { color: var(--text); }
.store-card { border-color: #efdfd5; box-shadow: 0 8px 28px rgba(91,52,29,.065); }
.store-card:hover { border-color: #e5c7b5; box-shadow: 0 22px 46px rgba(91,52,29,.14); }
.distance-line { color: var(--accent); }
.card-arrow { background: #fff3eb; color: var(--accent); }
.store-card:hover .card-arrow { background: #ffe6d6; }
.browse-intro-badge > span { background: linear-gradient(145deg,#ff9b42,#ee5c18); }
.search-field .input { background: #fff8f3; }
.search-field .input:focus { border-color: rgba(243,107,33,.50); }
.nearest-btn > span { color: var(--accent); }
.browse-filter-summary:hover, .browse-filter-drawer[open] .browse-filter-summary { background: #fff8f3; }
.filter-sliders { background: #fff0e5; }
.filter-sliders::after { background: #fff0e5; box-shadow: 5px 10px 0 -2px #fff0e5, 5px 10px 0 0 var(--accent); }
.filter-count { background: var(--accent); }
.store-card-category { color: var(--accent-dark); }
.hours-row.today { background: linear-gradient(90deg,#fff2e8,#fffaf6); }
.avatar { background: linear-gradient(145deg,#ff8b3e,#ed5a17); box-shadow: 0 10px 28px rgba(243,107,33,.20); }
.selected-location.has-location { background: #fff4ec; border-color: #ffd7c1; }
.store-location-map:focus-within { border-color: #ef965e; box-shadow: 0 0 0 3px rgba(243,107,33,.10); }
.account-status.verified { background: #edf8f1; color: #187046; }
.favorite-btn.is-favorite { color: #df5a20; border-color: #f2c6b0; background: #fff4ee; }

/* Promos */
.store-card-promo {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  background: linear-gradient(135deg,#ff7b2e,#e95716);
  color: #fff;
  box-shadow: 0 7px 18px rgba(170,66,14,.24);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .025em;
}
.card-promo-line {
  display: grid;
  gap: 1px;
  margin-top: 11px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid #ffd9c3;
  background: #fff4ec;
  color: #70462e;
}
.card-promo-line strong { color: var(--accent-dark); font-size: 12px; }
.card-promo-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.promo-mini-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 25px;
  padding: 0 8px;
  border-radius: 8px;
  background: #ff7a2f;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
}
.promo-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 34%);
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.promo-tile {
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 118px;
  overflow: hidden;
  border: 1px solid #f0d9ca;
  border-radius: 22px;
  background: linear-gradient(135deg,#fff,#fff3e9);
  box-shadow: var(--shadow-sm);
}
.promo-tile img { width: 112px; height: 100%; object-fit: cover; }
.promo-tile > div { display: grid; align-content: center; gap: 6px; padding: 15px; }
.promo-tile strong { font-size: 16px; line-height: 1.15; }
.promo-tile small { color: var(--muted); font-size: 11px; }
.promo-detail-grid { display: grid; gap: 14px; }
.promo-detail-card {
  display: grid;
  grid-template-columns: 1fr 210px;
  overflow: hidden;
  min-height: 180px;
  border: 1px solid #f0d6c6;
  border-radius: 24px;
  background: linear-gradient(135deg,#fff3e8,#fff);
  box-shadow: var(--shadow-sm);
}
.promo-detail-copy { display: grid; align-content: center; gap: 9px; padding: 24px; }
.promo-detail-copy h3 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.promo-detail-copy p { margin: 0; color: var(--muted); }
.promo-detail-card > img { width: 210px; height: 100%; object-fit: cover; }
.promo-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 12px; }
.promo-meta strong { color: var(--accent-dark); }
.promo-admin-card { background: linear-gradient(145deg,#fff,#fff8f3); }
.promo-admin-row .promo-mini-badge { margin-right: 5px; }
.danger-btn { color: var(--danger) !important; }

/* Social / app-style profile */
.social-profile { padding-top: 26px; padding-bottom: 40px; }
.profile-cover-card {
  overflow: hidden;
  border: 1px solid #efddd1;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}
.profile-cover-art {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 20%, rgba(255,255,255,.23), transparent 18rem),
    linear-gradient(120deg,#ff9f4a 0%,#f56c22 56%,#d94a0c 100%);
}
.profile-cover-art::before,
.profile-cover-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 22px solid rgba(255,255,255,.10);
}
.profile-cover-art::before { width: 190px; height: 190px; right: -45px; top: -75px; }
.profile-cover-art::after { width: 115px; height: 115px; right: 150px; bottom: -80px; }
.profile-cover-copy {
  position: absolute;
  left: 28px;
  bottom: 24px;
  display: grid;
  color: #fff;
}
.profile-cover-copy span { font-size: 11px; font-weight: 900; letter-spacing: .16em; opacity: .85; }
.profile-cover-copy strong { font-size: 24px; letter-spacing: -.03em; }
.profile-identity-row {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 0 28px 20px;
}
.profile-avatar-wrap { min-height: 64px; }
.profile-avatar {
  position: absolute;
  top: -70px;
  width: 138px;
  height: 138px;
  border: 6px solid #fff;
  font-size: 44px;
}
.profile-identity-copy { padding-top: 22px; min-width: 0; }
.profile-name-line { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.profile-name-line h1 { margin: 0; font-size: clamp(28px,4vw,42px); line-height: 1.08; letter-spacing: -.045em; }
.profile-name-line p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.profile-bio { margin: 14px 0 0; color: #5f5148; font-size: 14px; }
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  max-width: 620px;
  margin: 0 28px 20px 178px;
  border: 1px solid #f0e0d5;
  border-radius: 18px;
  background: #fffaf7;
}
.profile-stats a { display: grid; place-items: center; gap: 1px; padding: 13px 8px; border-left: 1px solid #f0e0d5; }
.profile-stats a:first-child { border-left: 0; }
.profile-stats strong { font-size: 20px; }
.profile-stats span { color: var(--muted); font-size: 11px; font-weight: 700; }
.profile-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 20px 10px;
  border-top: 1px solid #f2e5dc;
  scrollbar-width: none;
}
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tabs a {
  flex: 0 0 auto;
  padding: 13px 14px 10px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.profile-tabs a:hover { color: var(--accent); border-color: var(--accent); }
.profile-alert { margin-top: 18px; }
.profile-content-section {
  scroll-margin-top: 92px;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid #efdfd5;
  border-radius: 26px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-sm);
}
.profile-section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.profile-section-head h2 { margin: 4px 0 0; font-size: 25px; letter-spacing: -.035em; }
.profile-section-head > span { color: var(--muted); font-size: 12px; }
.profile-saved-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.profile-saved-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid #efdfd5;
  border-radius: 18px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.profile-saved-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.profile-saved-media { position: relative; aspect-ratio: 1; overflow: hidden; background: #f4eee9; }
.profile-saved-media img { width: 100%; height: 100%; object-fit: cover; }
.profile-saved-copy { display: grid; gap: 2px; padding: 10px; }
.profile-saved-copy strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.profile-saved-copy span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: 10px; }
.profile-activity-list { display: grid; gap: 9px; }
.profile-activity-card {
  display: grid;
  grid-template-columns: 66px minmax(0,1fr) 28px;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #f0e1d8;
  border-radius: 16px;
  background: #fff;
}
.profile-activity-card img { width: 66px; height: 60px; object-fit: cover; border-radius: 12px; }
.profile-activity-card > div { display: grid; min-width: 0; gap: 1px; }
.profile-activity-card strong, .profile-activity-card span, .profile-activity-card small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.profile-activity-card span, .profile-activity-card small { color: var(--muted); font-size: 11px; }
.activity-arrow { color: var(--accent) !important; font-size: 28px !important; text-align: center; }
.profile-empty { display: grid; place-items: center; text-align: center; padding: 38px 18px; color: var(--muted); }
.profile-empty > span { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 18px; background: #fff0e5; color: var(--accent); font-size: 25px; }
.profile-empty strong { color: var(--text); }
.profile-empty p { max-width: 430px; margin: 5px 0 0; font-size: 13px; }
.profile-edit-drawer { overflow: hidden; border: 1px solid #efdfd5; border-radius: 20px; background: #fff; }
.profile-edit-drawer > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  gap: 16px;
  padding: 15px 18px;
  cursor: pointer;
}
.profile-edit-drawer > summary::-webkit-details-marker { display: none; }
.profile-edit-drawer > summary > span:first-child { display: grid; }
.profile-edit-drawer > summary strong { font-size: 15px; }
.profile-edit-drawer > summary small { color: var(--muted); font-size: 11px; }
.profile-edit-chevron { color: var(--accent); font-size: 20px; transition: transform .2s ease; }
.profile-edit-drawer[open] .profile-edit-chevron { transform: rotate(180deg); }
.profile-edit-body { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 22px; border-top: 1px solid #f2e4db; }
.profile-edit-photo { display: grid; justify-items: center; align-content: start; gap: 13px; padding: 18px; border-radius: 18px; background: #fff8f3; }
.edit-avatar { width: 112px; height: 112px; font-size: 36px; border: 5px solid #fff; }
.profile-photo-form { display: grid; justify-items: center; gap: 6px; }
.profile-photo-form small { color: var(--muted); font-size: 10px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.profile-edit-form { margin-top: 0; }

/* Mobile app navigation */
.mobile-header-user, .mobile-bottom-nav { display: none; }
.mobile-header-avatar { width: 34px; height: 34px; font-size: 12px; box-shadow: none; }
.mobile-bottom-nav {
  position: fixed;
  z-index: 9990;
  left: 10px;
  right: 10px;
  bottom: 9px;
  min-height: 62px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  border: 1px solid rgba(232,211,198,.95);
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 38px rgba(83,45,25,.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.mobile-bottom-nav a {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1px;
  padding: 4px 7px;
  border-radius: 13px;
  color: #8b7b71;
}
.mobile-bottom-nav a span { font-size: 21px; line-height: 1; }
.mobile-bottom-nav a small { font-size: 9px; font-weight: 800; }
.mobile-bottom-nav a.active { color: var(--accent); background: #fff0e5; }

/* Location permission modal orange theme */
.location-intro-overlay { background: rgba(54,31,20,.66) !important; }
.location-intro-icon { background: linear-gradient(145deg,#fff0e5,#fff7f1) !important; color: var(--accent) !important; }
.location-intro-allow { border-color: var(--accent) !important; background: linear-gradient(135deg,#ff7d32,#ed5b17) !important; box-shadow: 0 9px 22px rgba(243,107,33,.24) !important; }
.location-intro-point span:first-child { color: var(--accent) !important; }

@media (max-width: 1050px) {
  .profile-saved-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .promo-scroll { grid-auto-columns: minmax(280px, 48%); }
}

@media (max-width: 700px) {
  body { padding-bottom: 82px; }
  .shell { width: min(100% - 20px, 1180px); }
  .topbar { background: rgba(255,248,243,.96); }
  .nav { min-height: 58px; }
  .brand span:last-child { display: inline; font-size: 13px; }
  .nav-links { display: none; }
  .mobile-header-user { display: block; margin-left: auto; }
  .mobile-bottom-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .footer { display: none; }

  .hero { padding-top: 34px; gap: 24px; }
  .hero h1 { font-size: clamp(38px,12vw,48px); }
  .roulette-panel { border-radius: 24px; padding: 14px; }
  .picker-filters { grid-template-columns: 1fr; }
  .category-grid { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 7px; scrollbar-width: none; }
  .category-grid::-webkit-scrollbar { display: none; }
  .category-chip { flex: 0 0 auto; }
  .section { padding: 34px 0; }

  .store-grid, .browse-store-grid { grid-template-columns: 1fr; gap: 13px; }
  .store-card { border-radius: 20px; }
  .store-card-media > img, .store-card > img { aspect-ratio: 16/9; }
  .store-card-body { padding: 14px; }
  .store-card h3 { font-size: 19px; }
  .browse-intro { padding-top: 34px; }
  .browse-intro h1 { font-size: 39px; }
  .browse-controls-card { margin-top: 4px; }

  .store-hero { padding: 18px 0 28px; }
  .store-hero-grid { gap: 22px; }
  .store-cover, .gallery-main { border-radius: 20px; }
  .store-summary h1 { font-size: 38px; }
  .store-actions .btn { flex: 1 1 calc(50% - 6px); }
  .menu-grid { gap: 10px; }
  .menu-card { grid-template-columns: 82px 1fr; gap: 11px; padding: 10px; }
  .menu-card img { width: 82px; height: 78px; }
  .promo-detail-card { grid-template-columns: 1fr 115px; min-height: 145px; border-radius: 20px; }
  .promo-detail-copy { padding: 17px; }
  .promo-detail-copy h3 { font-size: 20px; }
  .promo-detail-card > img { width: 115px; }
  .promo-scroll { grid-auto-columns: 88%; }

  .social-profile { padding-top: 10px; }
  .profile-cover-card { border-radius: 22px; }
  .profile-cover-art { min-height: 142px; }
  .profile-cover-copy { left: 18px; bottom: 16px; }
  .profile-cover-copy strong { font-size: 19px; }
  .profile-identity-row { display: block; padding: 0 16px 14px; }
  .profile-avatar-wrap { min-height: 60px; }
  .profile-avatar { top: -54px; width: 108px; height: 108px; border-width: 5px; font-size: 34px; }
  .profile-identity-copy { padding-top: 2px; }
  .profile-name-line { align-items: flex-start; }
  .profile-name-line h1 { font-size: 27px; }
  .profile-name-line .account-status { flex: 0 0 auto; margin-top: 0; }
  .profile-bio { margin-top: 10px; font-size: 13px; }
  .profile-stats { max-width: none; margin: 0 12px 12px; border-radius: 15px; }
  .profile-stats a { padding: 10px 5px; }
  .profile-stats strong { font-size: 18px; }
  .profile-tabs { padding-inline: 10px; }
  .profile-tabs a { padding-inline: 12px; }
  .profile-content-section { margin-top: 12px; padding: 15px; border-radius: 20px; scroll-margin-top: 72px; }
  .profile-section-head { align-items: flex-start; }
  .profile-section-head h2 { font-size: 22px; }
  .profile-saved-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .profile-saved-card { border-radius: 14px; }
  .profile-saved-copy { padding: 8px; }
  .profile-activity-card { grid-template-columns: 58px minmax(0,1fr) 22px; padding: 8px; gap: 10px; }
  .profile-activity-card img { width: 58px; height: 54px; border-radius: 10px; }
  .profile-edit-body { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .profile-edit-photo { grid-template-columns: auto 1fr; justify-items: start; align-items: center; padding: 13px; }
  .edit-avatar { width: 78px; height: 78px; font-size: 26px; }
  .profile-photo-form { justify-items: start; }
  .profile-edit-form { grid-template-columns: 1fr; }
  .profile-edit-form .span-2 { grid-column: auto; }

  .admin-grid { gap: 12px; }
  .admin-grid .panel { border-radius: 20px; padding: 16px; }
  .admin-row { align-items: flex-start; flex-direction: column; }
  .admin-row .inline-actions { width: 100%; }
  .admin-row .inline-actions .btn { flex: 1; }
  .hours-admin-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 430px) {
  .brand span:last-child { display: none; }
  .profile-name-line { display: grid; gap: 8px; }
  .profile-name-line .account-status { width: fit-content; }
  .profile-stats span { font-size: 9px; }
  .profile-saved-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .promo-detail-card { grid-template-columns: 1fr; }
  .promo-detail-card > img { width: 100%; height: 125px; order: -1; }
  .promo-tile { grid-template-columns: 96px 1fr; }
  .promo-tile img { width: 96px; }
}
.profile-account-actions { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-top:12px; color:var(--muted); font-size:11px; }
@media (max-width:700px) { .profile-account-actions { align-items:stretch; flex-direction:column; } .profile-account-actions .btn { width:100%; } }
/* Keep the visible brand language orange rather than green, including status accents. */
.location-status.ok .status-dot { background:#f36b21; box-shadow:0 0 0 4px rgba(243,107,33,.13); }
.open-state.is-open { color:#dc5b16; }
.account-status.verified { background:#fff0e5; color:#c94f10; border:1px solid #ffd6be; }
.visited-badge { background:#fff0e5 !important; color:#c94f10 !important; }
.verified-visit-note { color:#c94f10; }
.active-filter-chip.is-open-chip { background:#fff0e5; color:#c94f10; border-color:#ffd6be; }
.alert.success { background:#fff4ec; border-color:#ffd7c1; color:#9e4617; }

/* =========================================================
   MOBILE BROWSE UX V2
   Compact app-style navigation and restaurant discovery.
   ========================================================= */
.mobile-browse-cta { display: none; }

@media (max-width: 700px) {
  /* Keep manual browsing visible at the top of the app. */
  .nav {
    min-height: 58px;
    gap: 8px;
  }
  .mobile-browse-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    margin-left: auto;
    padding: 0 11px;
    border: 1px solid #ffd7c0;
    border-radius: 999px;
    background: #fff;
    color: var(--accent-dark);
    box-shadow: 0 5px 14px rgba(113,59,29,.07);
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
  }
  .mobile-browse-cta.active {
    border-color: transparent;
    background: linear-gradient(135deg,#ff7c32,#ed5b17);
    color: #fff;
    box-shadow: 0 7px 18px rgba(243,107,33,.22);
  }
  .mobile-browse-icon { font-size: 16px; line-height: 1; }
  .mobile-header-user { margin-left: 0; }

  /* Browse page: remove desktop-sized hero whitespace. */
  .browse-intro {
    display: block;
    padding: 15px 0 8px;
  }
  .browse-intro .eyebrow { font-size: 9px; letter-spacing: .12em; }
  .browse-intro h1 {
    margin: 4px 0 0;
    font-size: 25px;
    line-height: 1.08;
    letter-spacing: -.035em;
  }
  .browse-intro p,
  .browse-intro-badge { display: none; }
  .browse-section { padding-bottom: 24px; }

  /* One compact app-search card instead of stacked large buttons. */
  .browse-controls-card {
    position: relative;
    top: auto;
    margin: 5px 0 12px;
    border-radius: 16px;
    box-shadow: 0 7px 22px rgba(91,52,29,.07);
  }
  .browse-search-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) 42px 42px;
    gap: 7px;
    padding: 8px;
  }
  .search-field .input {
    min-height: 42px;
    height: 42px;
    padding-left: 38px;
    padding-right: 10px;
    border-radius: 12px;
    font-size: 13px;
  }
  .search-icon { left: 14px; transform: translateY(-54%) rotate(-45deg); }
  .search-submit,
  .nearest-btn {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
  }
  .search-submit-label { font-size: 0; }
  .search-submit-label::after {
    content: '⌕';
    font-size: 20px;
    font-weight: 900;
  }
  .nearest-btn {
    grid-column: auto;
    font-size: 0;
  }
  .nearest-btn > span:first-child { font-size: 19px; }
  .nearest-label { display: none; }

  /* Filters stay collapsed and take only one short row. */
  .browse-filter-summary {
    min-height: 43px;
    padding: 7px 11px;
  }
  .filter-summary-left { gap: 8px; }
  .filter-summary-left strong { font-size: 12px; }
  .filter-summary-left small { display: none; }
  .filter-sliders {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    transform: scale(.88);
  }
  .filter-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    font-size: 10px;
  }
  .browse-filter-body { padding: 3px 10px 11px; }
  .advanced-filter-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    padding-top: 10px;
  }
  .filter-field { gap: 4px; }
  .filter-field > span { font-size: 10px; }
  .filter-field .input {
    min-height: 40px;
    padding: 0 9px;
    border-radius: 10px;
    font-size: 12px;
  }
  .browse-open-toggle {
    grid-column: 1 / -1;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 11px;
  }
  .toggle-copy strong { font-size: 12px; }
  .toggle-copy small { font-size: 9px; }
  .filter-drawer-actions {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 9px;
    padding-top: 9px;
  }
  .filter-drawer-actions .btn {
    min-height: 39px;
    padding: 0 10px;
    border-radius: 11px;
    font-size: 11px;
  }

  /* Applied filters scroll horizontally like app chips. */
  .active-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    margin: 0 0 10px;
    padding: 0 1px 2px;
    scrollbar-width: none;
  }
  .active-filters::-webkit-scrollbar { display: none; }
  .active-filters-label { display: none; }
  .active-filter-chip {
    flex: 0 0 auto;
    min-height: 27px;
    padding: 0 9px;
    font-size: 10px;
  }

  .browse-results-head {
    min-height: 0;
    margin: 0 1px 9px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .browse-results-head .eyebrow { display: none; }
  .browse-results-head h2 {
    margin: 0;
    font-size: 16px;
    letter-spacing: -.02em;
  }
  .browse-results-head .filter-note {
    max-width: 55%;
    margin: 0;
    font-size: 9px;
    line-height: 1.25;
    text-align: right;
  }

  /* Browse results become compact food-delivery style list cards. */
  .browse-store-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .browse-store-grid .store-card {
    display: grid;
    grid-template-columns: 112px minmax(0,1fr);
    min-height: 116px;
    border-radius: 15px;
    box-shadow: 0 5px 18px rgba(91,52,29,.055);
  }
  .browse-store-grid .store-card-media {
    min-height: 116px;
    height: 100%;
  }
  .browse-store-grid .store-card-media > img {
    width: 100%;
    height: 100%;
    min-height: 116px;
    aspect-ratio: auto;
    object-fit: cover;
  }
  .browse-store-grid .store-card-body {
    min-width: 0;
    padding: 9px 10px;
  }
  .browse-store-grid .store-card-title-row { gap: 5px; }
  .browse-store-grid .store-card-title-row h3 {
    margin: 0 0 3px;
    font-size: 15px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .browse-store-grid .card-arrow { display: none; }
  .browse-store-grid .store-card-body > p {
    min-height: 0;
    margin: 0;
    font-size: 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .browse-store-grid .store-card-category,
  .browse-store-grid .store-card-rating {
    top: 7px;
    min-height: 22px;
    padding: 0 7px;
    font-size: 8px;
    box-shadow: 0 3px 10px rgba(50,28,16,.10);
  }
  .browse-store-grid .store-card-category { left: 7px; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .browse-store-grid .store-card-rating { right: 7px; }
  .browse-store-grid .store-card-promo {
    left: 7px;
    bottom: 7px;
    min-height: 22px;
    max-width: 95px;
    padding: 0 7px;
    border-radius: 7px;
    font-size: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .browse-store-grid .card-promo-line {
    margin-top: 5px;
    padding: 5px 7px;
    border-radius: 8px;
  }
  .browse-store-grid .card-promo-line strong { font-size: 9px; }
  .browse-store-grid .card-promo-line span { display: none; }
  .browse-store-grid .store-card-facts {
    gap: 5px;
    margin-top: 6px;
    font-size: 9px;
    line-height: 1.2;
  }
  .browse-store-grid .fact-pill {
    min-height: 22px;
    padding: 0 7px;
    font-size: 9px;
  }
  .browse-store-grid .open-state { font-size: 9px; }
  .browse-store-grid .review-count { display: none; }
  .browse-store-grid .distance-line {
    display: block;
    margin-top: 5px;
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .browse-empty-state { padding: 34px 18px; border-radius: 18px; }
}

@media (max-width: 430px) {
  .nav { gap: 6px; }
  .mobile-browse-cta {
    min-height: 34px;
    padding: 0 9px;
    font-size: 10px;
  }
  .mobile-browse-icon { font-size: 15px; }
  .mobile-header-avatar { width: 32px; height: 32px; }
  .browse-store-grid .store-card { grid-template-columns: 102px minmax(0,1fr); min-height: 110px; }
  .browse-store-grid .store-card-media,
  .browse-store-grid .store-card-media > img { min-height: 110px; }
}

@media (max-width: 360px) {
  .mobile-browse-cta > span:last-child { display: none; }
  .mobile-browse-cta { width: 34px; padding: 0; }
  .browse-search-row { grid-template-columns: minmax(0,1fr) 40px 40px; gap: 5px; }
  .search-submit, .nearest-btn { width: 40px; min-width: 40px; }
  .advanced-filter-grid { grid-template-columns: 1fr; }
  .browse-open-toggle { grid-column: auto; }
}

/* =========================================================
   PROMO DISCOVERY V3
   Prominent food-delivery-app style deals on Home + Browse.
   ========================================================= */
.promo-showcase-section {
  padding: 4px 0 18px;
}
.promo-showcase-head,
.browse-promo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.promo-showcase-head > div,
.browse-promo-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.promo-showcase-head > div > div,
.browse-promo-head > div > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.promo-showcase-head strong,
.browse-promo-head strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -.025em;
}
.promo-showcase-head small,
.browse-promo-head small {
  color: var(--muted);
  font-size: 11px;
}
.promo-showcase-head > a,
.browse-promo-all {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}
.promo-fire,
.browse-promo-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg,#ff8b3d,#ed5816);
  color: #fff;
  box-shadow: 0 8px 20px rgba(235,88,20,.22);
  font-size: 17px;
  font-weight: 950;
}
.promo-showcase-scroll,
.browse-promo-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 31%);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.promo-showcase-card,
.browse-promo-card {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border-radius: 22px;
  background: #2e211a;
  box-shadow: 0 9px 28px rgba(72,40,23,.13);
  scroll-snap-align: start;
  isolation: isolate;
}
.promo-showcase-card img,
.browse-promo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.promo-showcase-card:hover img,
.browse-promo-card:hover img { transform: scale(1.035); }
.promo-showcase-overlay,
.browse-promo-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,rgba(35,20,13,.84) 0%,rgba(35,20,13,.50) 54%,rgba(35,20,13,.12) 100%);
}
.promo-showcase-content,
.browse-promo-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 5px;
  min-height: 178px;
  padding: 16px;
  color: #fff;
}
.promo-showcase-content strong,
.browse-promo-copy strong {
  max-width: 88%;
  font-size: 21px;
  line-height: 1.05;
  letter-spacing: -.035em;
  text-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.promo-showcase-content small,
.browse-promo-copy small {
  max-width: 90%;
  overflow: hidden;
  color: rgba(255,255,255,.88);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.promo-showcase-badge,
.browse-promo-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  background: #ff6c22;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.promo-showcase-validity,
.browse-promo-code {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 7px;
  background: rgba(255,255,255,.13);
  color: #fff;
  backdrop-filter: blur(6px);
  font-size: 9px;
  font-weight: 800;
}
.promo-empty-strip,
.browse-promo-empty {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 13px 15px;
  border: 1px dashed #f0c9b0;
  border-radius: 18px;
  background: linear-gradient(135deg,#fff8f3,#fff);
}
.promo-empty-strip > span,
.browse-promo-empty > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: #fff0e5;
  color: var(--accent-dark);
  font-weight: 950;
}
.promo-empty-strip > div,
.browse-promo-empty > div { display: grid; gap: 2px; }
.promo-empty-strip strong,
.browse-promo-empty strong { font-size: 13px; }
.promo-empty-strip small,
.browse-promo-empty small { color: var(--muted); font-size: 10px; }

/* Browse promo zone is intentionally above search/filter so promotions are immediately visible. */
.browse-promo-zone {
  margin: 0 0 16px;
  padding: 15px;
  border: 1px solid #f1ded2;
  border-radius: 22px;
  background: linear-gradient(145deg,#fff,#fff8f3);
  box-shadow: 0 8px 24px rgba(91,52,29,.06);
}
.browse-promo-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #ffd5bc;
  border-radius: 999px;
  background: #fff;
}
.browse-promo-all.active {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}
.browse-promo-scroll { grid-auto-columns: minmax(250px, 29%); }
.browse-promo-card { min-height: 150px; border-radius: 18px; }
.browse-promo-copy { min-height: 150px; padding: 13px; }
.browse-promo-copy strong { font-size: 18px; }

/* Make promo information in normal store cards obvious without making cards bulky. */
.card-promo-line {
  grid-template-columns: 28px minmax(0,1fr);
  align-items: center;
  gap: 7px;
}
.card-promo-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg,#ff8137,#ed5a17);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}
.card-promo-copy { display: grid; min-width: 0; gap: 1px; }
.card-promo-copy > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-promo-copy > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: #855137; }
.is-promo-chip { background: #fff0e5; color: #c94f10; border-color: #ffd2b7; }
.browse-promo-toggle { border-color: #ffd9c3; background: #fff8f3; }

@media (max-width: 700px) {
  .promo-showcase-section { padding: 1px 0 10px; }
  .promo-showcase-head,
  .browse-promo-head { margin-bottom: 8px; }
  .promo-fire,
  .browse-promo-icon { width: 31px; height: 31px; border-radius: 10px; font-size: 14px; }
  .promo-showcase-head strong,
  .browse-promo-head strong { font-size: 15px; }
  .promo-showcase-head small,
  .browse-promo-head small { font-size: 9px; }
  .promo-showcase-head > a,
  .browse-promo-all { font-size: 9px; }
  .promo-showcase-scroll,
  .browse-promo-scroll {
    grid-auto-columns: 78%;
    gap: 9px;
    margin-inline: -10px;
    padding: 1px 10px 8px;
    scrollbar-width: none;
  }
  .promo-showcase-scroll::-webkit-scrollbar,
  .browse-promo-scroll::-webkit-scrollbar { display: none; }
  .promo-showcase-card { min-height: 132px; border-radius: 16px; }
  .promo-showcase-content { min-height: 132px; padding: 12px; gap: 4px; }
  .promo-showcase-content strong { max-width: 90%; font-size: 17px; }
  .promo-showcase-content small { font-size: 9px; }
  .promo-showcase-badge { min-height: 23px; padding: 0 7px; font-size: 8px; }
  .promo-showcase-validity { min-height: 20px; padding: 0 6px; font-size: 8px; }

  .browse-promo-zone {
    margin: 3px 0 10px;
    padding: 10px;
    border-radius: 16px;
  }
  .browse-promo-all { min-height: 27px; padding: 0 8px; }
  .browse-promo-card { min-height: 118px; border-radius: 14px; }
  .browse-promo-copy { min-height: 118px; padding: 10px; gap: 3px; }
  .browse-promo-copy strong { font-size: 15px; }
  .browse-promo-copy small { font-size: 8px; }
  .browse-promo-badge { min-height: 21px; padding: 0 6px; font-size: 7px; }
  .browse-promo-code { min-height: 19px; padding: 0 6px; font-size: 7px; }

  .browse-promo-toggle { grid-column: 1 / -1; min-height: 42px; padding: 8px 10px; border-radius: 11px; }
  .browse-store-grid .store-card-promo {
    min-height: 25px;
    max-width: 100px;
    padding: 0 8px;
    font-size: 9px;
    font-weight: 950;
  }
  .browse-store-grid .card-promo-line {
    display: grid;
    grid-template-columns: 24px minmax(0,1fr);
    gap: 5px;
    margin-top: 5px;
    padding: 5px 6px;
  }
  .browse-store-grid .card-promo-icon { width: 24px; height: 24px; border-radius: 7px; font-size: 10px; }
  .browse-store-grid .card-promo-copy > strong { font-size: 9px; }
  .browse-store-grid .card-promo-copy > span { display: block; font-size: 8px; }
}

@media (max-width: 390px) {
  .promo-showcase-scroll,
  .browse-promo-scroll { grid-auto-columns: 84%; }
  .promo-showcase-head small,
  .browse-promo-head small { display: none; }
}
@media (max-width: 700px) {
  .browse-store-grid .card-promo-line .card-promo-icon { display: grid !important; }
  .browse-store-grid .card-promo-line .card-promo-copy { display: grid !important; }
  .browse-store-grid .card-promo-line .card-promo-copy > span { display: block !important; }
}

/* Launch update: share controls + browse pagination */
.browse-promo-card-wrap{position:relative;min-width:0;scroll-snap-align:start}.browse-promo-card-wrap .browse-promo-card{height:100%;scroll-snap-align:unset}.browse-promo-share{position:absolute;z-index:5;top:8px;right:8px;min-height:27px;padding:0 8px;border:1px solid rgba(255,255,255,.45);border-radius:999px;background:rgba(35,23,16,.62);backdrop-filter:blur(8px);color:#fff;font:inherit;font-size:8.5px;font-weight:900;cursor:pointer}.browse-store-share{display:inline-flex;align-items:center;width:max-content;margin-top:7px;padding:4px 8px;border-radius:999px;background:#fff3ea;color:#d8540e;font-size:9px;font-weight:900}.browse-pagination{display:flex;align-items:center;justify-content:center;gap:10px;margin:18px 0 4px}.browse-pagination span{font-size:11px;font-weight:850;color:#786960}.browse-pagination .btn{min-height:34px;padding:0 12px;font-size:10px}
@media(max-width:640px){.browse-promo-share{top:6px;right:6px;min-height:24px;font-size:8px}.browse-pagination{justify-content:space-between}.browse-pagination .btn{min-height:31px;padding:0 9px}.browse-store-share{font-size:8.5px}}
