/* Shopahontis — clean, bright, white. One typeface (Inter). */
:root {
  --bg: #ffffff;
  --surface: #f7f8f7;
  --line: #e6e8e6;
  --ink: #111816;
  --muted: #4d5754;
  --brand: #14302b;
  --brand-2: #1f5c52;
  --gold: #e3a23b;
  --accent: var(--brand-2);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(17, 24, 22, .05), 0 6px 20px rgba(17, 24, 22, .06);
  --wrap: 1240px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--brand); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--brand); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.logo svg { width: .82em; height: 1.02em; margin: 0 .02em; transform: translateY(-.04em); }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-right: auto; }
.main-nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.head-actions { display: flex; gap: 8px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-dark { background: var(--brand); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: #c9cecb; background: var(--surface); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 12px; display: inline-grid; place-items: center; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.tint { background: var(--surface); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 750; }
.lede { color: var(--muted); font-size: 17px; max-width: 560px; margin-top: 10px; }
.link { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.link:hover { text-decoration: underline; }

/* ---------- Home hero ---------- */
.hero { padding: 72px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 span { color: var(--brand-2); }
.hero .lede { font-size: 19px; margin: 24px 0 32px; max-width: 520px; }
.search { display: flex; gap: 8px; max-width: 540px; }
.search input { flex: 1; min-width: 0; height: 56px; border: 1px solid #cfd4d1; border-radius: 999px; padding: 0 20px; background: #fff; font-size: 16px; }
.search input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(31, 92, 82, .15); }
.search .btn { height: 56px; padding: 0 26px; }
.index-tools .search .btn { height: 46px; }

/* ---------- Store cards & index ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.store-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.store-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.store-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface); }
.store-card .body { padding: 16px 18px 18px; border-top: 4px solid var(--accent); }
.store-card .meta { font-size: 13px; color: var(--muted); }
.store-card h3 { font-size: 20px; font-weight: 700; margin: 4px 0 2px; }
.store-card h3 a { text-decoration: none; }
.store-card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.fav-btn {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .94); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 6px rgba(0,0,0,.12);
}
.fav-btn svg { width: 22px; height: 22px; }
.fav-btn[aria-pressed="true"] { color: #d1265a; }
.fav-btn .on, .fav-btn[aria-pressed="true"] .off { display: none; }
.fav-btn[aria-pressed="true"] .on { display: block; }

.index-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.index-tools .search { flex: 1 1 320px; max-width: 420px; }
.index-tools .search input { height: 46px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; cursor: pointer;
}
.chip:hover { border-color: #c9cecb; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty { color: var(--muted); padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }

.az-jump { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 28px; }
.az-jump a, .az-jump span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; font-weight: 600; text-decoration: none; }
.az-jump a { background: var(--surface); }
.az-jump a:hover { background: var(--line); }
.az-jump span { color: #9aa29f; }
.az-group { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.az-letter { font-size: 32px; font-weight: 800; color: var(--brand-2); line-height: 1; }
.az-list { display: grid; gap: 12px; }
.az-row { position: relative; display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; padding: 10px; border-radius: 14px; }
.az-row:hover { background: var(--surface); }
.az-row > img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; }
.az-row h3 { font-size: 18px; font-weight: 700; }
.az-row h3 a { text-decoration: none; }
.az-row h3 a::after { content: ""; position: absolute; inset: 0; }
.az-row p { color: var(--muted); font-size: 14px; }
.az-row .fav-btn { position: relative; top: auto; right: auto; box-shadow: none; border: 1px solid var(--line); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }

/* ---------- Deals & codes ---------- */
.deal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.deal .pic { position: relative; }
.deal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface); }
.badge { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.deal .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.deal .meta { font-size: 13px; font-weight: 600; color: var(--accent); }
.deal h3 { font-size: 18px; font-weight: 650; line-height: 1.3; }
.deal .note { font-size: 14px; color: var(--muted); }
.deal .foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.price { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; }
.code { border: 1px dashed #c3c9c6; border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.code h3 { font-size: 18px; font-weight: 650; }
.code p { color: var(--muted); font-size: 14px; }
.code .btn { align-self: flex-start; margin-top: 6px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Shop page ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 20px; }
.crumbs a { color: var(--muted); }
.shop-hero { padding: 28px 0 56px; }
.shop-hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.unit { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.shop-hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -0.035em; }
.tagline { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; color: var(--accent); margin-top: 8px; letter-spacing: -0.01em; }
.shop-hero .lede { margin: 18px 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fav-toggle[aria-pressed="true"] { color: #b3184b; border-color: #f2c4d3; background: #fff5f8; }
.fav-toggle .on, .fav-toggle[aria-pressed="true"] .off { display: none; }
.fav-toggle[aria-pressed="true"] .on { display: inline; }
.shop-pic { position: relative; }
.shop-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }
.shop-pic::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: -8px; height: 8px; border-radius: 0 0 12px 12px; background: var(--accent); }
.dept { padding: 0 0 8px; }
.dept h2 { font-size: 15px; font-weight: 600; color: var(--muted); margin: 0 0 12px; }
.dept .chips + h2 { margin-top: 20px; }

/* ---------- How it works & footer ---------- */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); counter-reset: s; }
.step { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 16px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); }
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: start; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-foot nav a { color: var(--ink); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.site-foot nav a:hover { text-decoration: underline; }
.site-foot .small { grid-column: 1 / -1; font-size: 13px; }

/* ---------- Account dialog & toast ---------- */
dialog.account { border: 0; border-radius: 20px; padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
dialog.account::backdrop { background: rgba(17, 24, 22, .45); }
.dlg { padding: 28px; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dlg-head h2 { font-size: 24px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.seg button { min-height: 40px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; cursor: pointer; color: var(--muted); }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 600; }
.field input { height: 48px; border: 1px solid #cfd4d1; border-radius: 12px; padding: 0 14px; background: #fff; }
.field input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(31, 92, 82, .15); }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; margin: 4px 0 18px; min-height: 32px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand-2); }
.form-error { color: #b42318; font-size: 14px; margin-bottom: 12px; min-height: 0; }
.form-error:empty { display: none; }
.dlg .btn { width: 100%; }
.dlg .hint { color: var(--muted); font-size: 13px; margin-top: 14px; text-align: center; }
.acct-favs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.acct-row { display: flex; gap: 10px; flex-wrap: wrap; }
.acct-row .btn { width: auto; flex: 1; }
.danger { color: #b42318; background: none; border: 0; text-decoration: underline; cursor: pointer; margin-top: 18px; font-size: 14px; min-height: 44px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }
[hidden] { display: none !important; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .hero .wrap, .shop-hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .site-foot .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 52px 0; }
  .site-head .wrap { gap: 4px 12px; padding-top: 8px; padding-bottom: 8px; }
  .main-nav { order: 3; width: 100%; margin: 0 -12px; }
  .head-actions { margin-left: auto; }
  .head-actions .lbl { display: none; }
  .head-actions .btn { padding: 0 12px; }
  .az-group { grid-template-columns: 1fr; gap: 8px; }
  .az-row { grid-template-columns: 72px 1fr auto; gap: 12px; }
  .az-row > img { width: 72px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .store-card, .toast { transition: none; } }

/* ---------- Floor tabs ---------- */
.floor-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.floor-tabs::-webkit-scrollbar { display: none; }
.floor-tabs [role="tab"] {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 0; background: none; cursor: pointer;
  font-weight: 600; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.floor-tabs [role="tab"]:hover { color: var(--ink); }
.floor-tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand-2); }
.floor-tabs [role="tab"][aria-selected="true"] .count { background: var(--brand-2); color: #fff; }

/* ---------- Mall building illustration ---------- */
.mall-art { position: relative; }
.mall-svg { width: 100%; height: auto; display: block; }
.mall-svg a { cursor: pointer; }
.mall-svg a .band { stroke: transparent; stroke-width: 3; }
.mall-svg a.floor:hover .band, .mall-svg a.floor:focus-visible .band { fill: rgba(227, 162, 59, .16); stroke: #E3A23B; }
.mall-svg a.unit image { transition: transform .15s; transform-box: fill-box; transform-origin: center; }
.mall-svg a.unit:hover image, .mall-svg a.unit:focus-visible image { transform: scale(1.06); }
.mall-svg a.unit .win { transition: stroke .15s; }
.mall-svg a.unit:hover .win, .mall-svg a.unit:focus-visible .win { stroke: #1F5C52; stroke-width: 2; }
.mall-svg a:focus { outline: none; }
.hero .wrap > *, .shop-hero .wrap > * { min-width: 0; }
@media (max-width: 900px) { .hero .wrap, .shop-hero .wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 400px) { .search .btn span { display: none; } }

/* ---------- Shop themes (values come from site/themes.mjs) ---------- */
.shop {
  --head-font: Inter, system-ui, sans-serif; --body-font: Inter, system-ui, sans-serif;
  --head-weight: 800; --head-case: none; --head-track: -0.03em;
  --hero-bg: #fff; --hero-ink: var(--ink); --hero-muted: var(--muted); --hero-pattern: none; --hero-pattern-size: auto;
  --tint: var(--surface); --radius: 16px; --btn-radius: 999px; --card-border: 1px solid var(--line); --card-shadow: none;
  --img-radius: 24px; --img-border: 0; --img-shadow: none; --img-tilt: none;
}
.shop { font-family: var(--body-font); color: var(--ink); }
.shop :is(h1, h2, h3, .tagline, .price) { font-family: var(--head-font); font-weight: var(--head-weight); text-transform: var(--head-case); letter-spacing: var(--head-track); }
.shop .store-card h3 { font-family: inherit; text-transform: none; letter-spacing: normal; }
.shop .shop-hero { background-color: var(--hero-bg); background-image: var(--hero-pattern); background-size: var(--hero-pattern-size); color: var(--hero-ink); padding-top: 0; }
.shop .shop-hero :is(.lede, .unit) { color: var(--hero-muted); }
.shop .shop-hero .crumbs { padding-top: 20px; padding-bottom: 8px; }
.shop .section.tint { background: var(--tint); }
.shop .dept { padding-top: 40px; }
.shop :is(.deal, .code) { border: var(--card-border); box-shadow: var(--card-shadow); border-radius: var(--radius); }
.shop .btn, .shop .chip { border-radius: var(--btn-radius); }
.shop .btn-primary { background: var(--accent); }
.shop .shop-pic img { border-radius: var(--img-radius); border: var(--img-border); box-shadow: var(--img-shadow); transform: var(--img-tilt); }
.shop .shop-pic::after { display: none; }
.shop .deal .meta { color: var(--accent); }

/* Shop logos: mark + wordmark */
.lockup { display: flex; align-items: center; gap: 18px; margin: 8px 0 4px; }
.lockup img { width: clamp(64px, 8vw, 92px); height: auto; flex: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.12)); }
.wordmark { line-height: .95; }
.card-brand { display: flex; align-items: center; gap: 12px; }
.card-brand img { width: 48px; height: 48px; flex: none; aspect-ratio: 1; object-fit: contain; background: none; border-radius: 0; }
.card-brand h3 { min-width: 0; }
.store-card .card-brand { margin: 6px 0 4px; }
.az-row .card-brand img { width: 40px; height: 40px; }
.card-brand h3 { margin: 0; }
.store-card .card-name, .az-row .card-name { font-weight: var(--name-weight, 700); }
.shop-hero .wrap.crumbs { display: block; }
.shop .shop-hero { overflow-x: clip; }

@media (prefers-reduced-motion: reduce) { .mall-svg a.unit image { transition: none; } }
@media (max-width: 640px) { .az-row .card-brand img { width: 32px; height: 32px; } }

/* ---------- Header: logo, search, actions; nav underneath ---------- */
.site-head .head-row { min-height: 72px; flex-wrap: nowrap; }
.site-head .nav-row { min-height: 0; padding-bottom: 6px; }
.site-head .nav-row .main-nav { margin: 0 -12px; }

/* ---------- Search bar (ShopDogger style) ---------- */
.sd-search {
  flex: 1; min-width: 0; max-width: 640px; position: relative; display: flex; align-items: stretch;
  border: 2px solid var(--line); background: var(--surface); border-radius: 999px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.sd-search:focus-within { border-color: var(--brand-2); background: #fff; box-shadow: 0 0 0 4px rgba(31, 92, 82, .14); }
.sd-search .kindsel { border: 0; background: #E9EEEC; color: var(--ink); font-weight: 700; font-size: 13px; border-radius: 999px 0 0 999px; padding: 0 10px 0 16px; cursor: pointer; min-height: 44px; }
.sd-search .kindsel:focus-visible { outline-offset: -3px; }
.sd-search .ico { align-self: center; width: 18px; height: 18px; margin-left: 12px; color: var(--muted); flex: none; }
.sd-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px; font-size: 15px; outline: none; }
.sd-search .go { border: 0; background: var(--brand); color: #fff; font-weight: 700; border-radius: 999px; margin: 4px; padding: 0 18px; font-size: 14px; cursor: pointer; }
.sd-search .go { background: #D96B0B; }
.sd-search .go:hover { background: #B85A08; }
.sd-search.lg { max-width: 560px; }
.sd-search.lg input { font-size: 16px; padding: 14px 10px; }
.sd-search.lg .go { padding: 0 24px; font-size: 15px; }
.ac { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(17, 24, 22, .14); padding: 8px; display: none; max-height: 470px; overflow: auto; z-index: 30; }
.ac.open { display: block; }
.ac h6 { margin: 8px 10px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.ac button { display: flex; width: 100%; text-align: left; gap: 10px; align-items: center; border: 0; background: none; padding: 7px 10px; border-radius: 10px; font-size: 14px; cursor: pointer; line-height: 1.35; }
.ac button:hover, .ac button.hl { background: var(--surface); }
.ac small { color: var(--muted); }
.ac .thumb { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; flex: none; background: var(--surface); display: grid; place-items: center; }
.ac .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ac .see-all { color: var(--brand-2); font-weight: 700; justify-content: center; margin-top: 4px; min-height: 44px; }

/* ---------- Results layout (search and shop catalogues) ---------- */
.loading { color: var(--muted); padding: 24px 0; }
.crumbs a { color: var(--muted); }
.search-page { padding-top: 32px; }
.rhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rhead h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 750; }
.rhead .h3 { font-size: 22px; }
.rhead .count { color: var(--muted); font-size: 14px; }
.rhead .sp { flex: 1; }
.rhead select { border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; min-height: 40px; background: #fff; }
.results { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow: auto; }
.filters h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 16px 0 6px; font-family: Inter, system-ui, sans-serif !important; font-weight: 700 !important; }
.filters h3:first-child { margin-top: 0; }
.filters label { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 0; cursor: pointer; min-height: 32px; }
.filters label .c { margin-left: auto; font-size: 12px; color: var(--muted); }
.filters input[type=checkbox] { accent-color: var(--brand-2); width: 16px; height: 16px; }
.subl { display: grid; gap: 2px; }
.subl a, .subl button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; text-align: left; font-size: 14px; padding: 6px 8px; border-radius: 8px; text-decoration: none; cursor: pointer; min-height: 36px; }
.subl a:hover, .subl button:hover { background: var(--surface); }
.subl button[aria-pressed="true"] { background: var(--surface); font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }
.subl span { margin-left: auto; color: var(--muted); font-size: 12px; }
.subl img { width: 20px; height: 20px; }
.linkbtn { border: 0; background: none; color: var(--brand-2); font-weight: 700; font-size: 14px; padding: 0; margin-top: 12px; cursor: pointer; text-decoration: underline; min-height: 32px; }
.ftoggle { display: none; }
.kindtabs { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px; flex-wrap: wrap; gap: 2px; }
.kindtabs button { flex: 1; min-width: 110px; border: 0; background: none; border-radius: 10px; min-height: 44px; font-weight: 700; font-size: 14px; display: flex; gap: 8px; align-items: center; justify-content: center; cursor: pointer; }
.kindtabs button small { font-weight: 700; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 0 8px; font-size: 12px; }
.kindtabs button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.kindtabs button[aria-pressed="true"] small { background: rgba(255, 255, 255, .2); color: #fff; }
.kindhint { font-size: 13px; color: var(--muted); margin: 8px 0 14px; }
.typebar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.typebar button { border: 1px solid var(--line); background: #fff; border-radius: 999px; min-height: 40px; padding: 0 14px; font-size: 13px; font-weight: 700; cursor: pointer; }
.typebar button small { color: var(--muted); }
.typebar button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.typebar button[aria-pressed="true"] small { color: #fff; }
.deals-grid { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.empty .linkbtn { margin: 0 0 0 6px; }
.active-q { font-size: 14px; color: var(--muted); margin: -6px 0 12px; }

/* Search: matching shops and groups by shop */
.shop-hits { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 22px; }
.shop-hit { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: #fff; border-left: 4px solid var(--accent); }
.shop-hit:hover { box-shadow: var(--shadow); }
.shop-hit img { width: 40px; height: 40px; }
.shop-hit b { display: block; font-size: 18px; }
.shop-hit small { color: var(--muted); font-size: 13px; }
.shop-group { padding: 8px 0 28px; border-top: 1px solid var(--line); }
.shop-group:first-of-type { border-top: 0; }
.group-head { display: flex; align-items: center; gap: 14px; margin: 14px 0 16px; flex-wrap: wrap; }
.group-head img { width: 44px; height: 44px; }
.group-head h2 { font-size: 24px; }
.group-head p { color: var(--muted); font-size: 14px; }
.group-head .link { margin-left: auto; }
.shop-group .more { margin-top: 16px; }

/* Shop catalogue: subcategory tiles */
.catalogue { margin-top: 4px; }
.subrow { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 18px; scrollbar-width: thin; }
.subtile { display: flex; align-items: center; gap: 10px; min-width: 190px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 6px 12px 6px 6px; text-align: left; cursor: pointer; font-family: Inter, system-ui, sans-serif; color: #111816; }
.subtile:hover { border-color: var(--accent); }
.subtile[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--surface); }
.subtile .im { width: 46px; height: 46px; border-radius: 9px; overflow: hidden; flex: none; background: var(--surface); display: grid; place-items: center; }
.subtile .im img { width: 100%; height: 100%; object-fit: cover; }
.subtile b { font-size: 13.5px; display: block; line-height: 1.25; }
.subtile small { color: #4d5754; font-size: 12px; }
.disclaimer { font-size: 14px; margin-top: 28px; }

/* Cards from the catalogue */
.deal .price { font-size: 20px; }
.deal .was { color: var(--muted); font-size: 14px; }
.deal .ad-note { font-size: 11px; color: var(--muted); letter-spacing: .04em; margin-top: 4px; }
.code-box { display: flex; align-items: center; gap: 8px; }
.code-box code { font: 700 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 10px 12px; border: 2px dashed var(--accent); border-radius: 10px; background: #fff; color: #111816; letter-spacing: .06em; }
.code-box .btn { min-height: 40px; padding: 0 14px; }
.deal.flash { animation: flash 2.4s ease-out; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px var(--gold); } 100% { box-shadow: none; } }

@media (max-width: 900px) {
  .results { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ftoggle { display: inline-flex; justify-self: start; }
  .results .filters { display: none; position: static; max-height: none; }
  .results.showf .filters { display: block; }
}
@media (max-width: 760px) {
  .site-head .head-row { flex-wrap: wrap; gap: 8px 12px; padding-top: 10px; padding-bottom: 6px; }
  .site-head .head-row .sd-search { order: 3; flex-basis: 100%; max-width: none; }
  .sd-search .go { display: none; }
  .sd-search .kindsel { max-width: 96px; padding: 0 4px 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .deal.flash { animation: none; box-shadow: 0 0 0 4px var(--gold); } }
/* Retailer product shots (e.g. Amazon) sit on white: show them whole */
.deal .pic.contain { background: #fff; border-bottom: 1px solid var(--line); }
.deal .pic.contain img { object-fit: contain; padding: 14px; background: #fff; }
.deal h3 { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 480px) { .mall-svg .unit-name { display: none; } }

/* Live deal counters in the home hero */

/* ---------- Retailer index ---------- */
.r-avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--rc); color: #fff; font-weight: 800; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.ac .thumb .r-avatar { width: 40px !important; height: 40px !important; }
.r-summary { color: var(--muted); margin: 0 0 16px; }
.r-list { display: grid; gap: 6px; }
.r-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 10px 12px; border-radius: 14px; text-decoration: none; }
.r-row:hover { background: var(--surface); }
.r-main b { display: block; font-size: 17px; }
.r-main small { color: var(--muted); font-size: 13px; }
.r-shops { display: flex; align-items: center; gap: 2px; }
.r-shops img { width: 26px; height: 26px; }
.r-shops small { color: var(--muted); font-size: 12px; margin-left: 4px; }
.r-count { text-align: right; color: var(--muted); font-size: 13px; min-width: 72px; }
.r-count b { display: block; font-size: 20px; color: var(--ink); }
.retailer-head { display: flex; align-items: center; gap: 16px; margin: 4px 0 18px; }
.retailer-head h1 { font-size: clamp(28px, 3.4vw, 40px); }
.retailer-head p { color: var(--muted); }
@media (max-width: 640px) {
  .r-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .r-shops { grid-column: 2 / -1; grid-row: 2; }
}

/* Favourite retailers */
.r-row { grid-template-columns: 44px minmax(0, 1fr) auto auto 44px; position: relative; }
.r-main a { text-decoration: none; }
.r-main a::after { content: ""; position: absolute; inset: 0; } /* the whole row opens the retailer */
.r-fav { position: relative; top: auto; right: auto; z-index: 2; box-shadow: none; border: 1px solid var(--line); }
.r-favs { margin-bottom: 28px; padding: 16px; border-radius: 16px; background: var(--surface); }
.r-favs h2 { font-size: 20px; margin: 0 0 10px; }
.retailer-head .fav-toggle { margin-left: auto; }
@media (max-width: 640px) {
  .r-row { grid-template-columns: 40px minmax(0, 1fr) auto 44px; }
  .r-count { display: none; }
}

/* Home page: no header search (the hero has it) */
.head-spacer { flex: 1; }
@media (max-width: 640px) { .head-actions [data-account-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .head-actions .btn { padding: 0 10px; } }

/* Counters in the "Walk out with the best deal" green (--brand-2) */
.head-actions .count { background: var(--brand-2); color: #fff; }

/* Home page summary numbers: each links to its page */
.deal-stats { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 24px 0 0 -10px; padding: 0; list-style: none; }
.deal-stats a { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 12px; text-decoration: none; min-height: 44px; }
.deal-stats a:hover { background: var(--surface); }
.deal-stats a:hover span { text-decoration: underline; }
.deal-stats b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--brand-2); font-variant-numeric: tabular-nums; line-height: 1.2; }
.deal-stats span { color: var(--muted); font-size: 14px; }

/* Home icon in the main navigation */
.main-nav .home-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; padding: 10px 12px; }

/* Logo: "ahontis" in orange */
.logo .logo-ah { color: #D96B0B; }

/* Home headline: orange full stops */
.hero h1 .dot-o { color: #D96B0B; }

/* Favourite stores: store-index rows in a soft box (like favourite retailers) */
[data-fav-section] .wrap > .section-head { margin-bottom: 12px; }
[data-fav-section] .az-list { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; }
[data-fav-section] .az-row .fav-btn { position: relative; top: auto; right: auto; box-shadow: none; border: 1px solid var(--line); }
[data-fav-section] .az-list:empty { display: none; }

/* "Just for you": favourite retailers under favourite shops */
[data-fav-section] .fav-sub { font-size: 22px; font-weight: 750; margin: 28px 0 12px; }
[data-fav-section] #fav-h { font-size: 22px; font-weight: 750; }
[data-fav-section] .fav-r-list { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; }
[data-fav-section] .fav-r-list:empty { display: none; }

/* Favourite shops: the same rows as favourite retailers */
[data-fav-section] .fav-list { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; }
[data-fav-section] .fav-list:empty { display: none; }
.fav-shop-row .fav-shop-logo { width: 44px; height: 44px; }
.fav-shop-row .r-shops > span { display: inline-flex; }
@media (max-width: 640px) { .fav-shop-row .fav-shop-logo { width: 40px; height: 40px; } }

/* Retailer logos (set per retailer in admin) */
.r-avatar.r-logo { background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.r-avatar.r-logo img { width: 66%; height: 66%; object-fit: contain; }

/* Subscribe to offers */
.btn-orange { background: #D96B0B; color: #fff; border-color: #D96B0B; }
.btn-orange:hover { background: #B85A08; border-color: #B85A08; }
.subscribe { background: #1F5C52; color: #fff; padding: 44px 0; }
.subscribe .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 32px; align-items: center; }
.subscribe .eyebrow { color: #F4B37A; }
.subscribe .h2 { color: #fff; }
.subscribe p { color: rgba(255, 255, 255, .85); }
.subscribe .sub-row { display: flex; gap: 8px; }
.subscribe input { flex: 1; min-width: 0; height: 50px; border: 0; border-radius: 999px; padding: 0 20px; font: inherit; }
.subscribe .btn { height: 50px; border-radius: 999px; padding: 0 24px; }
.subscribe .form-error { color: #FFD3D3; margin: 8px 0 0 16px; }
.subscribe .sub-done { background: rgba(255, 255, 255, .1); border-radius: 14px; padding: 14px 18px; }
.subscribe .sub-done:has(button) { background: none; padding: 0; }
@media (max-width: 760px) { .subscribe .wrap { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 420px) { .subscribe .sub-row { flex-direction: column; } }
.acct-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.acct-sub small { display: block; color: var(--muted); font-size: 13px; }
.acct-sub small.on { color: #1F5C52; font-weight: 700; }
.acct-sub .btn { flex: none; }
.acct-note { display: block; color: var(--muted); font-size: 12px; margin: 6px 0 16px; }
.acct-sub .btn.sm { min-height: 38px; height: 38px; padding: 0 14px; font-size: 14px; }
.acct-sub .btn.sm { width: auto; }
.acct-sub > div { min-width: 0; }
.subscribe .h2 { margin-bottom: 8px; }
@media (max-width: 420px) { .subscribe input { flex: none; width: 100%; } }

/* Deals in the page HTML before the full catalogue loads (src/seo.js) */
.ssr-deals { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ssr-deals li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ssr-deals a { font-weight: 600; text-decoration: none; display: block; }
.ssr-deals span { color: var(--muted); font-size: 14px; }
