:root {
  --primary: #ffc72c;
  --primary-strong: #ffb800;
  --primary-soft: #fff7d7;
  --ink: #171a21;
  --ink-2: #252a34;
  --muted: #717886;
  --muted-2: #9aa0aa;
  --line: #e9ebef;
  --soft: #f6f7f9;
  --surface: #ffffff;
  --green: #16a56f;
  --red: #ef4f4f;
  --orange: #f1793b;
  --shadow-sm: 0 8px 24px rgba(20, 25, 33, 0.07);
  --shadow-md: 0 18px 55px rgba(20, 25, 33, 0.11);
  --shadow-yellow: 0 18px 45px rgba(255, 184, 0, 0.22);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
.hidden { display: none !important; }
.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

/* Top bar and responsive header */
.announcement {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 16px;
  background: #171a21;
  color: rgba(255,255,255,.88);
  font-size: 12px;
  letter-spacing: 0;
}
.announcement-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px rgba(255,199,44,.12); }
.announcement-separator { opacity: .35; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(229,232,237,.9);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px 14px 14px 6px;
  background: linear-gradient(145deg, #ffd84e, var(--primary-strong));
  color: #15171c;
  font-size: 23px;
  font-weight: 950;
  box-shadow: var(--shadow-yellow);
}
.brand-copy b, .brand-copy small { display: block; text-align: left; }
.brand-copy b { font-size: 21px; line-height: 1; letter-spacing: 0; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.location-button {
  flex: 0 0 auto;
  min-width: 158px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}
.location-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--primary-soft); color: #b97600; font-size: 19px; }
.location-copy { min-width: 0; display: grid; text-align: left; }
.location-copy small { color: var(--muted-2); font-size: 9px; line-height: 1.1; }
.location-copy b { max-width: 108px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.location-arrow { margin-left: auto; color: var(--muted); }
.search {
  min-width: 230px;
  max-width: 430px;
  height: 46px;
  flex: 1 1 330px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1.5px solid #f0b900;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(226,160,0,.07);
}
.search-icon { flex: 0 0 auto; margin-left: 15px; color: #888f99; font-size: 21px; line-height: 1; }
.search input, .hero-search input {
  min-width: 0;
  flex: 1;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}
.search input::placeholder, .hero-search input::placeholder { color: #a0a6af; }
.search button, .hero-search button {
  align-self: stretch;
  padding: 0 22px;
  border: 0;
  background: var(--primary);
  color: #1b1c20;
  font-weight: 800;
}
.desktop-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.desktop-nav button, .desktop-nav a {
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: #414753;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.cart-button {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 15px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(22,25,31,.16);
}
.cart-icon { font-size: 16px; }
.cart-button em {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-style: normal;
}

/* Hero */
.hero-wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,211,76,.22), transparent 26%),
    linear-gradient(135deg, #fffdf6 0%, #fff9e8 55%, #fff4ca 100%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-orb-one { width: 260px; height: 260px; right: 3%; top: -110px; background: rgba(255,199,44,.18); }
.hero-orb-two { width: 180px; height: 180px; left: -80px; bottom: -70px; background: rgba(255,255,255,.7); }
.hero {
  position: relative;
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  align-items: center;
  gap: 64px;
  padding-block: 48px;
}
.eyebrow, .section-heading > div > span, .modal-head span, .drawer-header span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b77a00;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}
.eyebrow i { width: 20px; height: 2px; border-radius: 9px; background: var(--primary-strong); }
.hero h1 { margin: 16px 0 18px; font-size: clamp(48px, 5vw, 70px); line-height: 1.04; letter-spacing: 0; }
.hero h1 span { position: relative; color: #c47d00; }
.hero h1 span::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: -3px; height: 8px; border-radius: 50%; background: rgba(255,190,20,.26); z-index: -1; }
.hero p { max-width: 590px; margin: 0; color: #676f7d; font-size: 16px; line-height: 1.85; }
.hero-search {
  max-width: 570px;
  height: 60px;
  display: flex;
  align-items: center;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(70,55,14,.13);
}
.hero-search .search-icon { margin-left: 18px; }
.hero-search button { padding-inline: 28px; }
.hero-tags { display: flex; align-items: center; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.hero-tags::-webkit-scrollbar { display: none; }
.hero-tags span { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.hero-tags button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(224,183,70,.28); border-radius: 99px; background: rgba(255,255,255,.7); color: #555c67; font-size: 11px; }
.hero-trust { max-width: 535px; display: flex; align-items: center; gap: 20px; margin-top: 27px; }
.hero-trust div { display: grid; gap: 3px; }
.hero-trust b { font-size: 16px; }
.hero-trust span { color: var(--muted); font-size: 10px; }
.hero-trust i { width: 1px; height: 30px; background: rgba(92,82,54,.16); }
.hero-art { position: relative; min-height: 430px; }
.hero-device {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 50%;
  width: 285px;
  min-height: 418px;
  padding: 17px 16px 18px;
  transform: translateX(-49%) rotate(2.5deg);
  border: 8px solid #20232a;
  border-radius: 38px;
  background: #f7f8fa;
  box-shadow: 0 35px 70px rgba(43,38,22,.25), inset 0 0 0 1px rgba(255,255,255,.3);
}
.device-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.device-top > span { width: 24px; height: 24px; border-radius: 8px 8px 8px 3px; background: var(--primary); }
.device-top b { font-size: 14px; }
.device-top i { color: #818792; font-size: 10px; font-style: normal; }
.device-search { padding: 10px 12px; border-radius: 11px; background: #fff; color: #a0a5ae; font-size: 10px; box-shadow: 0 4px 12px rgba(30,35,42,.05); }
.device-banner { display: grid; gap: 5px; margin-top: 12px; padding: 15px; border-radius: 17px; background: linear-gradient(135deg, #ffd551, #ffbb1e); }
.device-banner small { font-size: 9px; }
.device-banner b { font-size: 18px; }
.device-banner span { font-size: 9px; font-weight: 700; }
.device-categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.device-categories > span { display: grid; place-items: center; gap: 4px; padding: 8px 3px; border-radius: 11px; background: #fff; font-size: 20px; }
.device-categories small { color: #656c78; font-size: 8px; }
.device-card { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 9px; margin-top: 9px; padding: 10px; border-radius: 13px; background: #fff; box-shadow: 0 4px 14px rgba(25,30,38,.05); }
.device-card > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; background: #fff3cb; font-size: 22px; }
.device-card div { min-width: 0; display: grid; gap: 5px; }
.device-card div b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.device-card div small { color: #9399a2; font-size: 8px; }
.device-card strong { color: #db8b00; font-size: 8px; }
.art-card {
  position: absolute;
  z-index: 4;
  min-width: 205px;
  display: grid;
  grid-template-columns: 48px 1fr;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 17px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}
.art-card > span { grid-row: 1 / 3; width: 41px; height: 41px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-soft); font-size: 21px; }
.art-card b { align-self: end; font-size: 12px; }
.art-card small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.card-a { left: -8px; top: 45px; transform: rotate(-3deg); }
.card-b { right: -6px; top: 175px; transform: rotate(3deg); }
.card-c { left: 12px; bottom: 18px; transform: rotate(-2deg); }

/* Sections */
.category-section, .merchant-section { padding-block: 72px 50px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 25px; }
.section-heading h2 { margin: 7px 0 0; font-size: clamp(25px, 3vw, 33px); line-height: 1.2; letter-spacing: 0; }
.section-heading > button { display: flex; align-items: center; gap: 8px; padding: 9px 0; border: 0; background: transparent; color: #606773; font-size: 12px; font-weight: 700; }
.section-heading > button b { font-size: 17px; }
.category-grid { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 12px; }
.category-card {
  min-width: 0;
  padding: 18px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.category-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 11px; border-radius: 17px; background: linear-gradient(145deg, #fff8df, #f7f8fa); font-size: 26px; }
.category-card:nth-child(2n) .category-icon { background: linear-gradient(145deg,#eef9f4,#f7f8fa); }
.category-card:nth-child(3n) .category-icon { background: linear-gradient(145deg,#f1efff,#f7f8fa); }
.category-card.quick-listing { border-color: #ffcf4b; background: linear-gradient(145deg, #fff, #fff7d7); }
.category-card.quick-listing .category-icon { background: #171a21; color: #ffc72c; }
.category-card b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.category-card small { display: block; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted-2); font-size: 9px; }
.promo-grid { display: grid; grid-template-columns: 1.12fr 1fr 1fr; gap: 16px; }
.promo { position: relative; min-height: 216px; overflow: hidden; padding: 28px; border-radius: var(--radius-lg); isolation: isolate; }
.promo::after { content: ""; position: absolute; z-index: -1; width: 170px; height: 170px; right: -50px; bottom: -70px; border-radius: 50%; background: rgba(255,255,255,.22); }
.promo h3 { margin: 8px 0 7px; font-size: 24px; letter-spacing: 0; }
.promo p { margin: 0 0 22px; color: inherit; font-size: 12px; opacity: .7; }
.promo button { padding: 10px 14px; border: 0; border-radius: 11px; background: #fff; color: #242830; font-size: 11px; font-weight: 800; }
.promo span { font-size: 10px; font-weight: 850; letter-spacing: 0; text-transform: uppercase; }
.promo-primary { background: linear-gradient(135deg, #ffd552, #ffb71b); }
.promo-dark { background: linear-gradient(135deg, #262b35, #171a20); color: #fff; }
.promo-light { background: linear-gradient(135deg, #eefaf6, #dff4ed); }
.promo-emoji { position: absolute; right: 13px; bottom: -14px; font-size: 91px; filter: drop-shadow(0 15px 13px rgba(0,0,0,.12)); transform: rotate(-7deg); }
.filter-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.filter-chips button { padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: #626a76; font-size: 11px; font-weight: 650; }
.filter-chips button.active { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: 0 7px 18px rgba(24,27,33,.12); }
.merchant-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.merchant-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: 0 5px 18px rgba(24,29,37,.03); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.merchant-image { position: relative; height: 185px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--image-a), var(--image-b)); font-size: 70px; }
.merchant-image::after { content: ""; position: absolute; width: 130px; height: 130px; right: -45px; bottom: -58px; border-radius: 50%; background: rgba(255,255,255,.35); }
.merchant-image > span:first-child { filter: drop-shadow(0 13px 10px rgba(50,45,30,.13)); transform: translateY(4px); }
.merchant-image .badge { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 7px 10px; border-radius: 9px; background: rgba(24,27,33,.88); color: #fff; font-size: 9px; font-weight: 800; backdrop-filter: blur(8px); }
.merchant-image .favorite { position: absolute; z-index: 2; top: 11px; right: 11px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(255,255,255,.88); color: #434a55; font-size: 16px; box-shadow: 0 7px 16px rgba(30,35,43,.08); backdrop-filter: blur(8px); }
.merchant-body { padding: 17px 18px 18px; }
.merchant-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.merchant-title-row h3 { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; letter-spacing: 0; }
.rating { flex: 0 0 auto; color: #db8a00; font-size: 12px; font-weight: 750; }
.merchant-tags { display: flex; gap: 6px; margin: 10px 0; overflow: hidden; }
.merchant-tags span { flex: 0 0 auto; padding: 5px 7px; border-radius: 6px; background: var(--soft); color: #68707b; font-size: 9px; }
.merchant-meta { display: flex; justify-content: space-between; gap: 10px; color: #7d8490; font-size: 11px; }
.merchant-offer { margin-top: 13px; padding-top: 12px; border-top: 1px dashed #e6e8ec; color: #e25d42; font-size: 10px; }
.empty-state { padding: 78px 20px; text-align: center; }
.empty-state > div { font-size: 52px; }
.empty-state h3 { margin: 14px 0 6px; font-size: 22px; }
.empty-state p { color: var(--muted); font-size: 13px; }
.empty-state button, .back-button { padding: 11px 17px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; }

/* Store page */
.store-cover { position: relative; overflow: hidden; padding: 32px 0 34px; background: linear-gradient(135deg, #2a303a, #15181e); color: #fff; }
.store-cover-glow { position: absolute; width: 400px; height: 400px; right: -100px; top: -250px; border-radius: 50%; background: rgba(255,199,44,.18); filter: blur(2px); }
.back-button { position: relative; margin-bottom: 24px; background: rgba(255,255,255,.1); backdrop-filter: blur(10px); }
.store-cover-content { position: relative; display: grid; grid-template-columns: 108px 1fr auto; align-items: center; gap: 22px; }
.store-logo { width: 108px; height: 108px; display: grid; place-items: center; border-radius: 27px; background: linear-gradient(145deg, #fff7d7, #ffd65d); font-size: 54px; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.store-cover h1 { margin: 0 0 9px; font-size: 32px; letter-spacing: 0; }
.store-cover p { margin: 0 0 14px; color: #c4c9d0; font-size: 13px; }
.store-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.store-badges span { padding: 7px 9px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; background: rgba(255,255,255,.08); color: #ebedf0; font-size: 10px; }
.store-rating { text-align: right; }
.store-rating b { display: block; color: var(--primary); font-size: 34px; line-height: 1; }
.store-rating small { color: #b8bdc5; font-size: 10px; }
.store-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 27px; padding-top: 30px; padding-bottom: 90px; }
.menu-panel { min-width: 0; }
.menu-tabs { position: sticky; top: 76px; z-index: 20; display: flex; gap: 8px; padding: 12px 0 17px; overflow-x: auto; background: rgba(255,255,255,.94); scrollbar-width: none; backdrop-filter: blur(14px); }
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tabs button { flex: 0 0 auto; padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: #656c77; font-size: 11px; font-weight: 700; }
.menu-tabs button.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.menu-category { scroll-margin-top: 125px; }
.menu-category h2 { margin: 24px 0 15px; font-size: 21px; letter-spacing: 0; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.menu-item { min-width: 0; display: grid; grid-template-columns: 94px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.menu-photo { width: 94px; height: 86px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, #fff8df, #f5f6f8); font-size: 38px; }
.menu-copy { min-width: 0; }
.menu-copy h3 { margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.menu-copy p { min-height: 32px; margin: 0 0 9px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.menu-copy b { color: #d88800; font-size: 17px; }
.add-button { align-self: end; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--primary); color: #202226; font-size: 20px; font-weight: 500; box-shadow: 0 8px 18px rgba(255,184,0,.23); }
.store-summary { position: sticky; top: 102px; height: max-content; padding: 21px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.store-summary h3 { margin: 0 0 8px; font-size: 17px; }
.store-summary dl { margin: 0; }
.store-summary div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 11px; line-height: 1.55; }
.store-summary div:last-child { border-bottom: 0; }
.store-summary dt { flex: 0 0 auto; color: var(--muted); }
.store-summary dd { margin: 0; text-align: right; }

/* Drawer, modals and toast */
.drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; pointer-events: none; }
.drawer.open { visibility: visible; pointer-events: auto; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(15,18,23,.5); opacity: 0; transition: opacity .25s ease; backdrop-filter: blur(2px); }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; width: min(440px, 100%); height: 100%; display: flex; flex-direction: column; transform: translateX(100%); background: #fff; box-shadow: -25px 0 70px rgba(0,0,0,.16); transition: transform .28s ease; }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-handle { display: none; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 23px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 4px 0 0; font-size: 24px; }
.drawer-header button, .modal-head button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--soft); color: #4e5560; font-size: 22px; }
.cart-store-notice { margin: 14px 18px 0; padding: 11px 12px; border-radius: 11px; background: var(--primary-soft); color: #72560d; font-size: 10px; }
.cart-items { flex: 1; overflow-y: auto; padding: 10px 19px; }
.cart-item { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 11px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 13px; background: var(--soft); font-size: 24px; }
.cart-item h4 { margin: 0 0 5px; font-size: 12px; }
.cart-item b { color: #d88800; font-size: 12px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #343a44; }
.stepper span { min-width: 14px; text-align: center; font-size: 11px; }
.cart-empty { margin: auto; padding: 30px; text-align: center; color: var(--muted); }
.cart-empty > div { font-size: 52px; }
.cart-empty h3 { margin: 12px 0 5px; color: var(--ink); }
.cart-empty p { margin: 0; font-size: 12px; }
.cart-footer { padding: 19px 21px 22px; border-top: 1px solid var(--line); background: #fff; }
.price-row { display: flex; justify-content: space-between; margin: 8px 0; color: #636a75; font-size: 11px; }
.price-row b { color: var(--ink); }
.price-row.discount b { color: var(--red); }
.price-row.total { margin-top: 13px; padding-top: 13px; border-top: 1px dashed var(--line); color: var(--ink); font-size: 16px; font-weight: 800; }
.price-row.total b { font-size: 21px; }
.checkout-button { width: 100%; min-height: 48px; margin-top: 12px; padding: 13px; border: 0; border-radius: 13px; background: linear-gradient(135deg, #ffd34e, var(--primary-strong)); color: #1f2125; font-weight: 850; box-shadow: 0 10px 25px rgba(255,184,0,.22); }
.checkout-button:disabled { background: #e3e5e8; color: #9a9fa7; box-shadow: none; cursor: not-allowed; }
.friend-pay-button { width: 100%; min-height: 44px; margin-top: 10px; padding: 12px; border: 1px solid #d9dde3; border-radius: 13px; background: #fff; color: #252a34; font-weight: 800; }
.friend-pay-button:disabled { color: #a0a6af; background: #f0f2f4; cursor: not-allowed; }
.friend-pay-button.wide { margin-top: 14px; }
.modal { width: min(560px, calc(100% - 30px)); padding: 0; overflow: hidden; border: 0; border-radius: 23px; background: #fff; box-shadow: var(--shadow-md); }
.modal::backdrop { background: rgba(15,18,23,.52); backdrop-filter: blur(4px); }
.modal form, .success-modal { padding: 24px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.modal-head h2 { margin: 5px 0 0; font-size: 23px; }
.city-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.city-grid button { padding: 12px 8px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: #4f5661; font-size: 11px; }
.checkout-modal label { display: block; margin: 13px 0; color: #3d434d; font-size: 11px; font-weight: 750; }
.checkout-modal input, .checkout-modal textarea { width: 100%; display: block; margin-top: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: #fff; color: var(--ink); }
.checkout-modal input:focus, .checkout-modal textarea:focus { border-color: #e4aa00; box-shadow: 0 0 0 3px rgba(255,199,44,.15); }
.checkout-modal textarea { min-height: 74px; resize: vertical; }
.checkout-summary { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--soft); font-size: 12px; }
.checkout-summary b { color: #d88800; font-size: 20px; }
.checkout-payment-fieldset{margin:14px 0 12px;padding:0;border:0;text-align:center}
.checkout-payment-fieldset legend{margin:0 auto 10px;color:#3d434d;font-size:11px;font-weight:850}
.method-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.checkout-method-grid{width:min(430px,100%);margin:0 auto}
.method-option{position:relative;flex:1 1 170px;max-width:210px;display:grid!important;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:10px;min-height:70px;margin:0!important;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;text-align:left;cursor:pointer}
.method-option input{position:absolute;opacity:0;pointer-events:none}
.method-icon{width:40px;height:40px;display:grid;place-items:center;overflow:hidden;border-radius:10px;background:var(--primary-soft);color:#5c4300;font-size:11px;font-weight:900}
.method-copy{min-width:0;display:grid;gap:4px}
.method-copy b{color:var(--ink);font-size:12px}
.method-copy small{color:var(--muted);font-size:9px;line-height:1.35;overflow-wrap:anywhere}
.method-option:has(input:checked){border-color:#d69a00;background:#fffaf0;box-shadow:0 0 0 3px rgba(255,199,44,.18)}
.selected-payment-panel{width:min(330px,100%);display:grid;justify-items:center;gap:10px;margin:16px auto 0;padding:16px;border-radius:16px;background:#fafbfc}
.selected-qr{width:min(210px,70vw);aspect-ratio:1/1;display:grid;place-items:center;overflow:hidden;border:1px dashed #d7dbe1;border-radius:16px;background:#fff;color:var(--muted);font-size:11px;font-weight:800}
.selected-qr img{width:100%;height:100%;object-fit:contain}
.selected-payment-panel>b{font-size:13px}
.selected-payment-panel>small{max-width:260px;color:var(--muted);font-size:10px;line-height:1.55;text-align:center;overflow-wrap:anywhere}
.payment-empty{grid-column:1/-1;padding:14px;border-radius:13px;background:var(--soft);color:var(--muted);font-size:11px}
.friend-pay-copy { margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.friend-pay-modal label { display: block; color: #3d434d; font-size: 11px; font-weight: 750; }
.friend-pay-modal input { width: 100%; display: block; margin-top: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: #f8f9fb; color: var(--ink); font-size: 11px; }
.friend-pay-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.friend-pay-actions button, .friend-pay-actions a { min-height: 42px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; font-size: 11px; font-weight: 800; }
.friend-pay-actions a { background: var(--primary); color: #1f2125; }
.ad-modal-link { display: grid; gap: 12px; color: inherit; text-decoration: none; }
.ad-modal-media { min-height: 220px; display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: linear-gradient(135deg, #fff4cd, #e9f5ff); color: #8b6500; font-size: 42px; font-weight: 900; }
.ad-modal-media img { width: 100%; height: 100%; max-height: 330px; object-fit: cover; }
.ad-modal p#adCopy { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.pay-address-copy { width: min(100%, 320px); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; margin: 0 auto; padding: 10px; border-radius: 12px; background: #f7f8fa; }
.pay-address-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.pay-address-copy button { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #424852; font-size: 9px; font-weight: 850; }
.merchant-image span img,.store-logo img,.menu-photo img,.cart-item-icon img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.merchant-image>span{overflow:hidden}
.site-footer{padding:28px 0 96px;background:#15181e;color:#fff}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:18px}
.footer-inner span{font-weight:900}
.footer-inner nav{display:flex;gap:14px;flex-wrap:wrap}
.footer-inner a{color:#d8dde5;text-decoration:none;font-size:12px;font-weight:750}
.local-admin-entry{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px;padding:12px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.06)}
.local-admin-entry[hidden]{display:none}
.local-admin-entry b{color:#fff;font-size:12px}
.local-admin-entry span{color:#aeb4bd;font-size:11px}
.local-admin-entry a{padding:8px 10px;border-radius:10px;background:#fff;color:#1f232b;text-decoration:none;font-size:10px;font-weight:850}
.onboarding-page{min-height:100vh;background:#f5f6f8;color:var(--ink)}
.onboarding-header{width:min(1180px,calc(100% - 30px));display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 auto;padding:22px 0}
.onboarding-header .legal-brand{position:static}
.onboarding-shell{width:min(1180px,calc(100% - 30px));display:grid;grid-template-columns:minmax(0,.9fr) minmax(360px,1.1fr);gap:18px;margin:0 auto 46px}
.onboarding-hero,.onboarding-card{border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:var(--shadow-sm)}
.onboarding-hero{display:grid;align-content:center;padding:34px;background:linear-gradient(145deg,#1d222b,#343b47);color:#fff}
.onboarding-hero h1{margin:10px 0 12px;font-size:clamp(34px,5vw,58px);line-height:1.05;letter-spacing:0}
.onboarding-hero p{max-width:560px;color:#c6ccd5;font-size:14px;line-height:1.75}
.onboarding-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:22px}
.onboarding-metrics span{padding:13px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(255,255,255,.06)}
.onboarding-metrics b,.onboarding-metrics small{display:block}
.onboarding-metrics b{font-size:24px;color:var(--primary)}
.onboarding-metrics small{margin-top:4px;color:#c6ccd5;font-size:10px;line-height:1.4}
.onboarding-card{padding:24px}
.onboarding-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.onboarding-form label{display:grid;gap:7px;color:#3d434d;font-size:11px;font-weight:800}
.onboarding-form input,.onboarding-form select,.onboarding-form textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff;outline:0;color:var(--ink);font:inherit;font-size:12px}
.onboarding-form textarea{min-height:92px;resize:vertical}
.onboarding-form input:focus,.onboarding-form select:focus,.onboarding-form textarea:focus{border-color:#e4aa00;box-shadow:0 0 0 3px rgba(255,199,44,.16)}
.onboarding-wide{grid-column:1/-1}
.onboarding-check{grid-column:1/-1;display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:9px;line-height:1.5}
.onboarding-check input{width:16px!important;height:16px;margin-top:2px;padding:0}
.onboarding-form button{grid-column:1/-1;min-height:46px;border:0;border-radius:13px;background:var(--primary);color:#1f2125;font-size:12px;font-weight:900}
.onboarding-status{display:none;margin-top:14px;padding:12px;border-radius:12px;background:#ddf8ed;color:#117454;font-size:12px;font-weight:800;line-height:1.5}
.onboarding-status.show{display:block}
.compact-footer{padding-bottom:30px}
.legal-page{min-height:100vh;display:grid;place-items:center;padding:30px;background:#f5f6f8}
.legal-brand{position:absolute;top:22px;left:22px;display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none}
.legal-card{width:min(760px,100%);padding:34px;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:var(--shadow-md)}
.legal-card h1{margin:8px 0 16px;font-size:clamp(30px,5vw,48px);letter-spacing:0}
.legal-card h2{margin:22px 0 8px;font-size:18px}
.legal-card p{color:var(--muted);font-size:14px;line-height:1.75}
.legal-action{display:inline-grid;place-items:center;min-height:42px;margin-top:14px;padding:0 16px;border-radius:12px;background:var(--primary);color:#1f2125;text-decoration:none;font-size:12px;font-weight:850}
.success-modal { text-align: center; }
.success-icon { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 50%; background: #ddf8ed; color: var(--green); font-size: 32px; font-weight: 900; }
.success-modal h2 { margin: 0 0 8px; }
.success-modal p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.success-modal button { padding: 11px 38px; border: 0; border-radius: 11px; background: var(--primary); font-weight: 800; }
.mobile-nav { display: none; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 30px; max-width: calc(100% - 30px); padding: 11px 17px; transform: translate(-50%, 18px); border-radius: 11px; background: rgba(24,27,33,.94); color: #fff; opacity: 0; pointer-events: none; transition: .23s ease; font-size: 11px; box-shadow: 0 12px 30px rgba(0,0,0,.16); backdrop-filter: blur(8px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Hover interactions only on precise pointing devices */
@media (hover:hover) and (pointer:fine) {
  .desktop-nav button:hover, .desktop-nav a:hover { color: #b97700; }
  .location-button:hover { border-color: #e6c55d; background: #fffdf6; }
  .category-card:hover { transform: translateY(-5px); border-color: #efd16f; box-shadow: var(--shadow-sm); }
  .merchant-card:hover { transform: translateY(-6px); border-color: #e2c76b; box-shadow: var(--shadow-md); }
  .menu-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
  .filter-chips button:hover, .city-grid button:hover { border-color: #e7bf37; background: #fffdf5; }
  .promo button:hover, .search button:hover, .hero-search button:hover, .checkout-button:not(:disabled):hover { filter: brightness(.98); }
}

/* Tablet */
@media (max-width: 1080px) {
  .container { width: min(100% - 36px, 1200px); }
  .desktop-nav { display: none; }
  .search { max-width: none; }
  .hero { grid-template-columns: minmax(0,1fr) 410px; gap: 30px; }
  .hero h1 { font-size: 54px; }
  .category-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .merchant-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .promo:first-child { grid-column: 1 / -1; }
  .store-layout { grid-template-columns: 1fr; }
  .store-summary { position: static; }
}

@media (max-width: 820px) {
  .brand-copy small { display: none; }
  .location-button { min-width: 0; }
  .location-copy small { display: none; }
  .location-copy b { max-width: 90px; }
  .hero { min-height: 500px; grid-template-columns: minmax(0,1fr) 330px; gap: 16px; }
  .hero h1 { font-size: 47px; }
  .hero-device { width: 255px; min-height: 390px; }
  .card-b { right: -20px; }
  .art-card { min-width: 175px; }
  .menu-grid { grid-template-columns: 1fr; }
}

/* Phone UI: automatically activated by viewport width */
@media (max-width: 680px) {
  body { padding-bottom: calc(70px + var(--safe-bottom)); background: #fafbfc; }
  .container { width: min(100% - 24px, 1200px); }
  .announcement { min-height: 29px; padding-block: 6px; font-size: 9px; }
  .announcement-separator, .announcement span:last-child { display: none; }
  .site-header { background: rgba(255,255,255,.94); }
  .header-inner { min-height: 112px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; grid-template-rows: 55px 46px; gap: 4px 9px; padding-block: 4px 7px; }
  .brand { grid-column: 1; grid-row: 1; }
  .brand-mark { width: 38px; height: 38px; border-radius: 13px 13px 13px 5px; font-size: 21px; }
  .brand-copy { display: none; }
  .location-button { grid-column: 2; grid-row: 1; justify-self: center; max-width: 190px; padding: 6px 9px; border: 0; background: transparent; }
  .location-icon { width: 25px; height: 25px; background: var(--primary-soft); font-size: 15px; }
  .location-copy b { max-width: 125px; font-size: 11px; }
  .location-arrow { font-size: 11px; }
  .cart-button { grid-column: 3; grid-row: 1; min-width: 38px; min-height: 38px; justify-content: center; padding: 8px; border-radius: 12px; }
  .cart-label { display: none; }
  .cart-icon { font-size: 17px; }
  .search { grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0; height: 42px; border: 0; border-radius: 13px; background: #f2f4f6; box-shadow: none; }
  .search-icon { margin-left: 13px; font-size: 19px; }
  .search input { padding-inline: 9px; font-size: 12px; }
  .search button { padding-inline: 17px; font-size: 11px; }
  .hero-wrap { background: linear-gradient(155deg, #fff9e7, #fff2c7); }
  .hero { min-height: auto; display: block; padding-block: 43px 39px; }
  .hero-copy { text-align: left; }
  .eyebrow { font-size: 9px; }
  .hero h1 { margin-top: 13px; font-size: clamp(39px, 12vw, 49px); letter-spacing: 0; }
  .hero p { max-width: 94%; font-size: 12px; line-height: 1.75; }
  .hero-search { height: 51px; margin-top: 23px; border-radius: 15px; box-shadow: 0 12px 32px rgba(79,58,5,.12); }
  .hero-search input { font-size: 12px; }
  .hero-search button { padding-inline: 19px; font-size: 11px; }
  .hero-tags { margin-top: 12px; }
  .hero-tags span { display: none; }
  .hero-tags button { background: rgba(255,255,255,.65); font-size: 9px; }
  .hero-trust { gap: 13px; margin-top: 23px; }
  .hero-trust b { font-size: 13px; }
  .hero-trust span { font-size: 8px; }
  .hero-trust i { height: 25px; }
  .hero-art { display: none; }
  .category-section, .merchant-section { padding-block: 40px 28px; }
  .section-heading { align-items: flex-start; margin-bottom: 17px; }
  .section-heading h2 { margin-top: 5px; font-size: 23px; letter-spacing: 0; }
  .section-heading > button { display: none; }
  .category-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
  .category-card { padding: 12px 3px 11px; border: 0; border-radius: 15px; box-shadow: 0 5px 15px rgba(28,33,41,.04); }
  .category-icon { width: 44px; height: 44px; margin-bottom: 8px; border-radius: 14px; font-size: 22px; }
  .category-card b { font-size: 10px; }
  .category-card small { display: none; }
  .promo-grid { grid-template-columns: 1fr; gap: 11px; }
  .promo:first-child { grid-column: auto; }
  .promo { min-height: 154px; padding: 21px; border-radius: 21px; }
  .promo h3 { font-size: 20px; }
  .promo p { margin-bottom: 17px; font-size: 10px; }
  .promo button { padding: 8px 12px; font-size: 9px; }
  .promo-emoji { right: 8px; font-size: 72px; }
  .merchant-heading { display: block; }
  .filter-chips { justify-content: flex-start; flex-wrap: nowrap; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
  .filter-chips::-webkit-scrollbar { display: none; }
  .filter-chips button { flex: 0 0 auto; padding: 7px 11px; font-size: 9px; }
  .merchant-grid { grid-template-columns: 1fr; gap: 12px; }
  .merchant-card { display: grid; grid-template-columns: 112px minmax(0,1fr); min-height: 122px; border: 0; border-radius: 17px; box-shadow: 0 6px 20px rgba(25,30,38,.055); }
  .merchant-image { height: 100%; min-height: 122px; font-size: 48px; }
  .merchant-image .badge { top: 8px; left: 8px; padding: 5px 7px; border-radius: 7px; font-size: 7px; }
  .merchant-image .favorite { top: 7px; right: 7px; width: 29px; height: 29px; font-size: 13px; }
  .merchant-body { min-width: 0; padding: 13px 13px 12px; }
  .merchant-title-row h3 { font-size: 14px; }
  .rating { font-size: 10px; }
  .merchant-tags { margin: 8px 0; }
  .merchant-tags span { padding: 4px 6px; font-size: 7px; }
  .merchant-meta { font-size: 9px; }
  .merchant-offer { margin-top: 9px; padding-top: 8px; font-size: 8px; }
  .store-cover { padding: 18px 0 25px; }
  .back-button { margin-bottom: 18px; padding: 9px 13px; font-size: 10px; }
  .store-cover-content { grid-template-columns: 72px minmax(0,1fr); gap: 14px; }
  .store-logo { width: 72px; height: 72px; border-radius: 20px; font-size: 36px; }
  .store-cover h1 { margin-bottom: 6px; font-size: 22px; }
  .store-cover p { max-width: 100%; margin-bottom: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
  .store-badges { gap: 5px; }
  .store-badges span { padding: 5px 7px; font-size: 8px; }
  .store-rating { display: none; }
  .store-layout { gap: 15px; padding-top: 12px; padding-bottom: 25px; }
  .menu-tabs { top: 112px; margin-inline: -12px; padding: 10px 12px 12px; }
  .menu-tabs button { padding: 8px 12px; font-size: 9px; }
  .menu-category { scroll-margin-top: 170px; }
  .menu-category h2 { margin: 18px 0 11px; font-size: 17px; }
  .menu-grid { gap: 10px; }
  .menu-item { grid-template-columns: 76px minmax(0,1fr) auto; gap: 10px; padding: 9px; border: 0; border-radius: 15px; box-shadow: 0 5px 16px rgba(27,32,40,.05); }
  .menu-photo { width: 76px; height: 72px; border-radius: 12px; font-size: 31px; }
  .menu-copy h3 { font-size: 12px; }
  .menu-copy p { min-height: 0; margin-bottom: 7px; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 8px; }
  .menu-copy b { font-size: 14px; }
  .add-button { width: 30px; height: 30px; font-size: 17px; }
  .store-summary { padding: 17px; border: 0; border-radius: 16px; box-shadow: 0 5px 18px rgba(27,32,40,.05); }
  .store-summary h3 { font-size: 14px; }
  .store-summary div { font-size: 9px; }
  .drawer-panel { top: auto; right: 0; bottom: 0; width: 100%; height: min(82vh, 690px); border-radius: 25px 25px 0 0; transform: translateY(105%); box-shadow: 0 -20px 60px rgba(0,0,0,.2); }
  .drawer.open .drawer-panel { transform: translateY(0); }
  .drawer-handle { width: 42px; height: 4px; display: block; margin: 8px auto 0; border-radius: 99px; background: #d7d9dd; }
  .drawer-header { padding: 13px 19px 15px; }
  .drawer-header h2 { font-size: 20px; }
  .cart-footer { padding-bottom: calc(17px + var(--safe-bottom)); }
  .modal { width: 100%; max-width: none; margin: auto 0 0; border-radius: 25px 25px 0 0; }
  .modal form, .success-modal { padding: 22px 18px calc(22px + var(--safe-bottom)); }
  .modal-head h2 { font-size: 20px; }
  .city-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mobile-nav {
    position: fixed;
    z-index: 90;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(66px + var(--safe-bottom));
    display: grid;
    grid-template-columns: repeat(4,1fr);
    padding-bottom: var(--safe-bottom);
    border-top: 1px solid rgba(226,229,234,.95);
    background: rgba(255,255,255,.96);
    box-shadow: 0 -8px 25px rgba(23,27,34,.06);
    backdrop-filter: blur(16px);
  }
  .mobile-nav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; border: 0; background: transparent; color: #7c838e; }
  .mobile-nav button > span { position: relative; font-size: 18px; line-height: 1; }
  .mobile-nav button > b { font-size: 8px; font-weight: 650; }
  .mobile-nav button.active { color: #aa7000; }
  .mobile-nav button.active::before { content: ""; position: absolute; top: 0; width: 20px; height: 3px; border-radius: 0 0 5px 5px; background: var(--primary-strong); }
  .mobile-nav i { position: absolute; top: -9px; right: -12px; min-width: 18px; height: 18px; display: grid; place-items: center; padding-inline: 4px; border: 2px solid #fff; border-radius: 99px; background: var(--red); color: #fff; font-size: 7px; font-style: normal; }
  .site-footer{padding-bottom:calc(90px + var(--safe-bottom))}
  .footer-inner{align-items:flex-start;flex-direction:column}
  .local-admin-entry{align-items:flex-start;flex-direction:column}
  .onboarding-header{align-items:flex-start;flex-direction:column}
  .onboarding-shell{grid-template-columns:1fr}
  .onboarding-form{grid-template-columns:1fr}
  .onboarding-metrics{grid-template-columns:1fr}
  .legal-page{padding:82px 14px 24px}
  .legal-brand{top:16px;left:14px}
  .legal-card{padding:24px;border-radius:20px}
  .toast { bottom: calc(80px + var(--safe-bottom)); font-size: 10px; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 38px; }
  .hero-trust { gap: 10px; }
  .category-grid { gap: 6px; }
  .merchant-card { grid-template-columns: 103px minmax(0,1fr); }
  .merchant-image { min-height: 118px; }
  .promo { min-height: 146px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Language selector */
.language-switcher {
  flex: 0 0 auto;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
}
.language-switcher span { font-size: 15px; }
.language-switcher select {
  max-width: 92px;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
@media (max-width: 1180px) {
  .language-switcher { padding-inline: 8px; }
  .language-switcher select { width: 72px; }
}
@media (max-width: 680px) {
  .language-switcher {
    grid-column: 3;
    grid-row: 1;
    min-height: 37px;
    justify-self: end;
    gap: 4px;
    padding: 6px 7px;
    border-radius: 11px;
  }
  .language-switcher span { font-size: 13px; }
  .language-switcher select { width: 70px; max-width: 70px; font-size: 9px; }
  .header-inner > .cart-button { display: none; }
}
