/* ======================================================================
   Bonvero · startsidan
   Samma formspråk som Wimo: Manrope i rubriker, Inter i text, varm
   off-white, svarta pillerknappar, tunna varma kanter och kort som
   färgkodas efter kategori, precis som posttyperna på Wimos tavla.
   ====================================================================== */

:root {
  --bg-main: #f8f6f0;
  --bg-alt: #eee8dc;
  --bg-card: #ffffff;
  --text-main: #181c19;
  --text-muted: #56615a;
  --text-faint: #8e968f;
  --border-color: #ded8cb;
  --border-light: #ebe6da;
  --border-strong: #d6cfbf;
  --accent-main: #1f2428;
  --accent-hover: #323a40;
  --accent-pop: #38bdf8;
  --pop-ring: 0 0 0 3px rgba(56, 189, 248, .28);
  --dark: #121517;
  --green: #04391d;          /* Bonveros egen grön, från loggan */
  --green-fyll: #e3efe8;
  --varning: #8a5b12;
  --varning-fyll: #fbf3e3;
  --varning-kant: #eccf9a;
  --fara: #b32d22;
  --fara-fyll: #fbece8;
  --shadow-elevated: 0 12px 32px rgba(0, 0, 0, .05), 0 2px 6px rgba(0, 0, 0, .02);

  /* kategorier = Wimos posttyper */
  --k-mejeri: #254e9c;  --k-mejeri-fyll: #eaf0f8;  --k-mejeri-kant: #c9d6ec;
  --k-kott: #b32d22;    --k-kott-fyll: #fbece8;    --k-kott-kant: #efcdc5;
  --k-brod: #7a5c3e;    --k-brod-fyll: #f4ede2;    --k-brod-kant: #e1d2bd;
  --k-frukt: #0a6f61;   --k-frukt-fyll: #e6f2ee;   --k-frukt-kant: #bcdad2;
  --k-fardig: #6b4a9c;  --k-fardig-fyll: #f2ecf6;  --k-fardig-kant: #dacde8;
  --k-ovrigt: #b85a0d;  --k-ovrigt-fyll: #fdf0e2;  --k-ovrigt-kant: #f1d3b2;
  /* bildbakgrunder (används av picHtml) */
  --tint-mejeri: var(--k-mejeri-fyll);
  --tint-kott: var(--k-kott-fyll);
  --tint-brod: var(--k-brod-fyll);
  --tint-frukt: var(--k-frukt-fyll);
  --tint-fardig: var(--k-fardig-fyll);

  --rubrik: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --brod: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r-l: 20px;
  --r-m: 14px;
  --r-s: 10px;
  --wrap: 1240px;
  --hdr: 68px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--hdr) + 12px); }
body {
  margin: 0; background: var(--bg-main); color: var(--text-main);
  font-family: var(--brod); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--rubrik); font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--pop-ring); border-radius: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }

/* ---- Knappar ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--accent-main);
  background: var(--accent-main); color: #fff; font-weight: 600; font-size: 14.5px; line-height: 1.2;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: var(--bg-card); color: var(--text-main); border-color: var(--border-color); }
.btn.ghost:hover { border-color: var(--accent-main); background: var(--bg-card); }
.btn.sm { padding: 8px 15px; font-size: 13.5px; }
.btn.wide { width: 100%; }
.textbtn { border: 0; background: none; padding: 0; color: var(--text-muted); font-size: 13.5px; text-decoration: underline; cursor: pointer; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 1100; background: rgba(248, 246, 240, .86);
  backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--border-color); padding-top: env(safe-area-inset-top, 0px);
}
.hdr { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { flex: none; display: block; }
.logo { display: block; height: 36px; width: auto; }
.search {
  flex: 1; max-width: 480px; display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 999px; padding: 0 16px; height: 42px;
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--accent-pop); box-shadow: var(--pop-ring); }
.search svg { flex: none; color: var(--text-faint); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14.5px; padding: 0; height: 100%; }
.search input::placeholder { color: var(--text-faint); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.navlink { text-decoration: none; font-weight: 500; font-size: 14.5px; padding: 9px 13px; border-radius: 999px; color: var(--text-muted); }
.navlink:hover { color: var(--text-main); background: var(--bg-alt); }
.acct { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 9px 13px; border-radius: 999px; }
.acct:hover { background: var(--bg-alt); }
.listbtn {
  margin-left: 6px; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--accent-main); color: #fff; font-weight: 600; font-size: 14.5px; padding: 9px 10px 9px 15px; border-radius: 999px;
}
.listbtn:hover { background: var(--accent-hover); }
.badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--accent-main);
  font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums;
}
.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.3); } }
@media (max-width: 1020px) { .navlink { display: none; } }
@media (max-width: 760px) {
  :root { --hdr: 112px; }
  .hdr { flex-wrap: wrap; height: auto; gap: 10px 12px; padding-block: 10px; }
  .logo { height: 31px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .acct span, .listbtn .lbl { display: none; }
  .listbtn { padding: 7px 8px 7px 12px; }
}

/* ---- Hero: mörk som Wimos startvy, med de största fynden ---- */
.hero {
  position: relative; overflow: hidden; background: var(--dark); color: #fff; padding: 40px 0 44px;
}
.hero::before {
  content: ""; position: absolute; width: 620px; height: 620px; right: -160px; bottom: -380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(11, 74, 47, .9), rgba(11, 74, 47, 0)); pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.02; letter-spacing: -0.035em; }
.hero-meta { margin-top: 10px; color: #aab3ae; font-size: 15px; min-height: 1.5em; }
.hero-nav { display: flex; gap: 8px; align-items: center; }
.arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid #343b40; background: transparent; color: #fff;
  display: grid; place-items: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.arrow:hover:not(:disabled) { border-color: #eceeed; }
.arrow:disabled { opacity: .3; cursor: default; }
.hero-nav .btn.ghost { background: #fff; color: var(--accent-main); border-color: #fff; }
.hero-nav .btn.ghost:hover { background: #e8ebe9; border-color: #e8ebe9; }
.deals {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, calc((100% - 3 * 16px) / 4));
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px;
  padding: 2px; scrollbar-width: none;
}
.deals::-webkit-scrollbar { display: none; }
.deals > * { scroll-snap-align: start; }
.deals .card { border-color: transparent; }
@media (max-width: 1100px) { .deals { grid-auto-columns: minmax(230px, calc((100% - 2 * 16px) / 3)); } }
@media (max-width: 760px) {
  .hero { padding: 26px 0 28px; }
  .hero h1 { font-size: 32px; }
  .hero-head { align-items: start; }
  .hero-meta { font-size: 14px; }
  .hero-nav .arrow { display: none; }
  .deals { grid-auto-columns: 78%; gap: 12px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
}
.deals.is-empty { display: block; overflow: visible; }
.deals-empty { background: #1e2327; color: #aab3ae; border: 1px solid #343b40; border-radius: var(--r-l); padding: 44px 24px; text-align: center; max-width: 640px; margin: 0 auto; }
.deals-empty b { display: block; color: #fff; font-family: var(--rubrik); font-size: 18px; margin-bottom: 4px; }

/* ---- Produktkort: färgkodat per kategori, vit innerdel ---- */
.card {
  --k: var(--k-ovrigt); --k-fyll: var(--k-ovrigt-fyll); --k-kant: var(--k-ovrigt-kant);
  background: var(--k-fyll); border: 1.5px solid var(--k-kant); border-radius: var(--r-l);
  display: flex; flex-direction: column; overflow: hidden; position: relative; padding: 6px;
}
.k-mejeri { --k: var(--k-mejeri); --k-fyll: var(--k-mejeri-fyll); --k-kant: var(--k-mejeri-kant); }
.k-kott   { --k: var(--k-kott);   --k-fyll: var(--k-kott-fyll);   --k-kant: var(--k-kott-kant); }
.k-brod   { --k: var(--k-brod);   --k-fyll: var(--k-brod-fyll);   --k-kant: var(--k-brod-kant); }
.k-frukt  { --k: var(--k-frukt);  --k-fyll: var(--k-frukt-fyll);  --k-kant: var(--k-frukt-kant); }
.k-fardig { --k: var(--k-fardig); --k-fyll: var(--k-fardig-fyll); --k-kant: var(--k-fardig-kant); }
.pic { position: relative; aspect-ratio: 16 / 11; display: grid; place-items: center; overflow: hidden; border-radius: var(--r-m) var(--r-m) 0 0; padding: 26px 0 6px; background: transparent !important; }
.pic > svg { width: 64%; height: 100%; display: block; }
.pic img { width: 100%; height: 100%; object-fit: contain; padding: 0 12px; mix-blend-mode: multiply; }
.pic .art-fb { display: contents; }
.pic .art-fb svg { width: 64%; height: 100%; }
.kat { position: absolute; top: 8px; left: 10px; font-family: var(--rubrik); font-weight: 800; font-size: 12.5px; color: var(--k); }
.disc {
  position: absolute; top: 4px; right: 4px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--accent-main); color: #fff; font-family: var(--rubrik); font-weight: 800; font-size: 14px;
  display: inline-flex; align-items: center; font-variant-numeric: tabular-nums;
}
.inner {
  color: var(--text-main);
  background: var(--bg-card); border-radius: var(--r-m); padding: 13px 14px 14px;
  display: flex; flex-direction: column; gap: 8px; flex: 1; box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.storeline { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); min-width: 0; }
.storeline .sn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--text-main); }
.avatar {
  flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--c, var(--green)); color: #fff;
  display: grid; place-items: center; font-size: 8px; font-weight: 800; letter-spacing: -0.02em; font-family: var(--rubrik);
}
.avatar.lg { width: 40px; height: 40px; border-radius: 12px; font-size: 12px; }
.dist { flex: none; border: 0; background: none; padding: 0; font-size: 12.5px; color: var(--text-muted); cursor: pointer; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.dist:hover { color: var(--text-main); text-decoration-color: currentColor; }
.card h3 { font-size: 17px; line-height: 1.25; letter-spacing: -0.02em; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px;
  background: var(--bg-main); border: 1px solid var(--border-light); color: var(--text-muted); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.tag.varn { background: var(--varning-fyll); border-color: var(--varning-kant); color: var(--varning); }
.pricerow { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: auto; padding-top: 4px; }
.now { font-family: var(--rubrik); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; color: var(--text-main); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pricerow s { font-size: 13px; color: var(--text-faint); white-space: nowrap; }
.save { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--green); white-space: nowrap; }
.addbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%;
  border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-main); border-radius: 999px;
  padding: 9px 14px; font-weight: 600; font-size: 13.5px; cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.addbtn:hover { border-color: var(--accent-main); }
.addbtn.added { background: var(--accent-main); border-color: var(--accent-main); color: #fff; }

/* ---- Skeleton ---- */
.skel { background: var(--bg-alt); border-radius: var(--r-l); padding: 6px; display: flex; flex-direction: column; }
.deals .skel { background: #1e2327; }
.skel i { display: block; background: linear-gradient(90deg, #ece7dc 25%, #f5f2ea 50%, #ece7dc 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; border-radius: 8px; }
.skel .sp { aspect-ratio: 16 / 11; background: none; animation: none; }
.skel .sb { background: var(--bg-card); border-radius: var(--r-m); padding: 14px; display: grid; gap: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- Sektioner ---- */
.section { padding-block: 56px; }
.section.white { background: var(--bg-card); border-block: 1px solid var(--border-color); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.08; letter-spacing: -0.03em; }
.section-head p { color: var(--text-muted); margin-top: 6px; font-size: 15px; }

/* ---- Karta ---- */
.map-tools { display: flex; gap: 8px; flex-wrap: wrap; }
#gpsBtn.busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 16px; }
@media (max-width: 960px) { .map-layout { grid-template-columns: minmax(0, 1fr); } }
.map-card { background: var(--bg-card); border-radius: var(--r-l); border: 1px solid var(--border-color); box-shadow: var(--shadow-elevated); overflow: hidden; display: flex; flex-direction: column; }
.map { height: 520px; width: 100%; background: #e8eef0; z-index: 0; }
@media (max-width: 760px) { .map { height: 360px; } }
.map-fallback { height: 100%; display: grid; place-items: center; color: var(--text-muted); padding: 24px; text-align: center; }
.map-foot { padding: 12px 16px; font-size: 14px; color: var(--text-muted); border-top: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 58px; }
.map-foot b { color: var(--text-main); }
.locpick { background: var(--bg-card); border-radius: var(--r-l); border: 1px solid var(--border-color); box-shadow: var(--shadow-elevated); padding: 18px; margin-bottom: 16px; display: grid; gap: 10px; }
.locpick label { font-weight: 600; font-size: 14px; }
.locpick input { width: 100%; border: 1px solid var(--border-color); border-radius: var(--r-s); padding: 11px 14px; font-size: 16px; outline: none; background: var(--bg-card); }
.locpick input:focus { border-color: var(--accent-pop); box-shadow: var(--pop-ring); }
.locsugg { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px; max-height: 240px; overflow-y: auto; }
.locsugg button { width: 100%; text-align: left; border: 1px solid var(--border-light); background: var(--bg-main); padding: 9px 12px; border-radius: var(--r-s); cursor: pointer; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; }
.locsugg button:hover { border-color: var(--accent-main); }
.locsugg small { color: var(--text-muted); font-weight: 400; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lochint { font-size: 13px; color: var(--text-muted); }

/* Leaflet-markörer */
.mk-wrap { background: none; border: 0; width: 30px !important; height: 30px !important; }
.mk {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  background: var(--accent-main); border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center; transition: transform .15s;
}
.mk span { transform: rotate(45deg); color: #fff; font-weight: 800; font-size: 12px; line-height: 1; font-family: var(--rubrik); }
.mk.zero { background: #fff; border-color: var(--accent-main); border-width: 2px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.mk.zero span { color: var(--text-muted); }
.mk.active { background: var(--green); transform: rotate(-45deg) scale(1.25); }
.mk.zero.active { border-color: #fff; }
.mk.active span { color: #fff; }
.leaflet-marker-icon:hover .mk, .leaflet-marker-icon:focus .mk { transform: rotate(-45deg) scale(1.15); }
.leaflet-marker-icon:focus { outline: none; }
.leaflet-marker-icon:focus-visible .mk { box-shadow: var(--pop-ring); }
.me-wrap { background: none; border: 0; }
.me-dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-pop); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(56,189,248,.25), 0 1px 4px rgba(0,0,0,.3); margin: 2px; }
.leaflet-container { font-family: var(--brod); }
.leaflet-tooltip { font-family: var(--brod); font-weight: 600; font-size: 13px; border-radius: 8px; }
.leaflet-bar { border: 1px solid var(--border-color) !important; box-shadow: none !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-bar a { width: 34px !important; height: 34px !important; line-height: 34px !important; color: var(--text-main) !important; }

/* Butikslista */
.stores { background: var(--bg-card); border-radius: var(--r-l); border: 1px solid var(--border-color); box-shadow: var(--shadow-elevated); display: flex; flex-direction: column; overflow: hidden; max-height: 580px; }
@media (max-width: 960px) { .stores { max-height: 420px; } }
.stores-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border-light); font-size: 15px; }
.stores-head b { font-family: var(--rubrik); }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); cursor: pointer; }
.toggle input { accent-color: var(--accent-main); width: 16px; height: 16px; }
.store-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; }
.srow { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid transparent; background: none; padding: 9px 10px; border-radius: var(--r-m); cursor: pointer; }
.srow:hover { background: var(--bg-main); }
.srow.active { background: var(--green-fyll); border-color: #bcd7c6; }
.srow-t { flex: 1; min-width: 0; }
.srow-t b { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow-t small { display: block; color: var(--text-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow-n { flex: none; min-width: 42px; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--accent-main); color: #fff; font-weight: 700; font-size: 12.5px; display: grid; place-items: center; }
.srow.none .srow-n { background: var(--bg-main); border: 1px solid var(--border-light); color: var(--text-faint); }
.srow.none .avatar { opacity: .5; }
.store-empty { padding: 24px 16px; color: var(--text-muted); font-size: 14px; text-align: center; }

/* ---- Erbjudanden ---- */
.tabs { display: flex; gap: 4px; background: var(--bg-main); border: 1px solid var(--border-light); padding: 4px; border-radius: var(--r-m); width: max-content; max-width: 100%; margin-bottom: 18px; }
.tab { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; padding: 9px 18px; border-radius: var(--r-s); font-weight: 600; font-size: 14.5px; color: var(--text-muted); }
.tab[aria-selected="true"] { background: var(--bg-card); color: var(--text-main); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tab .n { font-size: 12px; background: var(--bg-alt); color: var(--text-main); padding: 1px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.tab[aria-selected="true"] .n { background: var(--accent-main); color: #fff; }
.toolbar {
  position: sticky; top: var(--hdr); z-index: 900; background: var(--bg-card);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 0; margin-bottom: 8px;
}
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 auto; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-color); background: var(--bg-card);
  padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px; cursor: pointer;
}
.chip:hover { border-color: var(--accent-main); }
.chip[aria-pressed="true"] { background: var(--accent-main); border-color: var(--accent-main); color: #fff; }
.chip .n { font-size: 12px; opacity: .6; }
.selects { display: flex; gap: 8px; flex-wrap: wrap; }
.sel { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 999px; padding: 0 8px 0 15px; height: 38px; font-size: 13px; color: var(--text-muted); }
.sel:focus-within { border-color: var(--accent-pop); box-shadow: var(--pop-ring); }
.sel select { border: 0; background: none; font-weight: 600; font-size: 13.5px; color: var(--text-main); padding: 0 4px; height: 100%; outline: none; cursor: pointer; max-width: 220px; }
@media (max-width: 760px) {
  .toolbar { margin-inline: -16px; padding-inline: 16px; }
  .chips { flex-basis: 100%; margin-inline: -16px; padding-inline: 16px; }
  .selects { flex-basis: 100%; }
  .sel { flex: 1; min-width: 0; }
  .sel select { max-width: none; width: 100%; min-width: 0; }
}
.active-store { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--green-fyll); border: 1px solid #bcd7c6; color: var(--green); border-radius: var(--r-m); padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.active-store button { margin-left: auto; border: 0; background: none; font-weight: 600; color: inherit; cursor: pointer; text-decoration: underline; }
.result-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid .card { padding: 4px; border-radius: 16px; }
  .grid .pic { aspect-ratio: 1 / 1; padding-top: 30px; }
  .grid .kat { font-size: 11px; top: 7px; left: 8px; }
  .grid .disc { height: 26px; padding: 0 9px; font-size: 12.5px; }
  .grid .inner { padding: 10px; gap: 6px; border-radius: 12px; }
  .grid .storeline { font-size: 11.5px; gap: 6px; }
  .grid .storeline .dist { display: none; }
  .grid .avatar { width: 18px; height: 18px; font-size: 7px; border-radius: 5px; }
  .grid .card h3 { font-size: 14.5px; }
  .grid .tag:last-child { display: none; }
  .grid .now { font-size: 20px; }
  .grid .save { display: none; }
  .grid .addbtn { padding: 8px 6px; font-size: 12.5px; }
  .grid .addbtn svg { display: none; }
}
.empty { grid-column: 1 / -1; background: var(--bg-main); border: 1px dashed var(--border-strong); border-radius: var(--r-l); padding: 48px 20px; text-align: center; color: var(--text-muted); }
.empty b { display: block; color: var(--text-main); font-family: var(--rubrik); font-size: 18px; margin-bottom: 4px; }

/* ---- Inköpslista ---- */
.list-empty { background: var(--bg-main); border: 1px dashed var(--border-strong); border-radius: var(--r-l); padding: 52px 24px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.list-empty b { font-family: var(--rubrik); font-size: 20px; }
.list-empty p { color: var(--text-muted); max-width: 30em; }
.list-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .list-layout { grid-template-columns: minmax(0, 1fr); } }
.route { background: var(--bg-main); border: 1px solid var(--border-color); border-radius: var(--r-l); padding: 20px; display: grid; gap: 16px; position: sticky; top: calc(var(--hdr) + 16px); }
@media (max-width: 900px) { .route { position: static; } }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.route h3 { font-size: 18px; }
.route-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.route-sum div { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--r-s); padding: 10px; display: grid; gap: 2px; }
.route-sum span { font-size: 12px; color: var(--text-muted); }
.route-sum b { font-family: var(--rubrik); font-size: 17px; font-variant-numeric: tabular-nums; }
.route-sum .save-box { background: var(--green-fyll); border-color: #bcd7c6; }
.route-sum .save-box b { color: var(--green); }
.modes { display: flex; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--r-m); padding: 4px; }
.modes input { position: absolute; opacity: 0; pointer-events: none; }
.modes label { flex: 1; text-align: center; padding: 7px; border-radius: var(--r-s); font-weight: 600; font-size: 14px; cursor: pointer; color: var(--text-muted); }
.modes input:checked + label { background: var(--accent-main); color: #fff; }
.modes input:focus-visible + label { box-shadow: var(--pop-ring); }
.stops { list-style: none; margin: 0; padding: 0; display: grid; }
.stops li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border-color); }
.stops .no { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-main); color: #fff; font-weight: 700; font-size: 12.5px; display: grid; place-items: center; }
.stops .no.start { background: var(--accent-pop); color: var(--dark); }
.stops .nm { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; }
.stops small { display: block; font-weight: 400; color: var(--text-muted); font-size: 12px; }
.stops .leg { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.route-note { font-size: 12px; color: var(--text-muted); }
.list-tools { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--text-muted); font-size: 14px; }
.lgroup { background: var(--bg-card); border-radius: var(--r-l); border: 1px solid var(--border-color); overflow: hidden; }
.lgroup-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border-light); }
.lgroup-head .no { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-main); color: #fff; font-weight: 700; display: grid; place-items: center; }
.lgroup-head .who { flex: 1; min-width: 0; }
.lgroup-head h3 { font-size: 16px; }
.lgroup-head p { font-size: 13px; color: var(--text-muted); }
.lgroup-head a { font-size: 14px; font-weight: 600; white-space: nowrap; }
.lrows { list-style: none; margin: 0; padding: 0; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border-light); }
.thumb { width: 48px; height: 48px; border-radius: var(--r-s); display: grid; place-items: center; overflow: hidden; flex: none; }
.thumb svg { width: 100%; height: 100%; }
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; mix-blend-mode: multiply; }
.thumb .art-fb { display: contents; }
.lrow .nm { flex: 1; min-width: 0; font-weight: 600; font-size: 14.5px; }
.lrow small { display: block; font-weight: 400; font-size: 12px; color: var(--text-muted); }
.lrow small.soon { color: var(--varning); }
.lrow .pr { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.lrow .pr s { display: block; color: var(--text-faint); }
.lrow .pr b { font-family: var(--rubrik); font-size: 16px; }
.remove { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-light); background: var(--bg-main); cursor: pointer; display: grid; place-items: center; color: var(--text-muted); }
.remove:hover { background: var(--fara-fyll); border-color: #efcdc5; color: var(--fara); }
.lgroup-foot { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 14px; color: var(--text-muted); }
.lgroup-foot b { color: var(--text-main); }

/* ---- Så funkar det ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--r-l); padding: 24px; display: grid; gap: 8px; align-content: start; }
.step .ic { width: 46px; height: 46px; border-radius: var(--r-m); background: var(--bg-main); border: 1px solid var(--border-light); color: var(--text-main); display: grid; place-items: center; margin-bottom: 6px; }
.step h3 { font-size: 18px; }
.step p { color: var(--text-muted); font-size: 15px; }

/* ---- För butiker ---- */
.store-band { background: var(--dark); color: #fff; border-radius: var(--r-l); padding: 44px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; position: relative; overflow: hidden; }
.store-band::before { content: ""; position: absolute; width: 520px; height: 520px; left: -200px; bottom: -340px; border-radius: 50%; background: radial-gradient(closest-side, rgba(11, 74, 47, .85), rgba(11, 74, 47, 0)); pointer-events: none; }
.store-band > * { position: relative; }
@media (max-width: 860px) { .store-band { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; } }
.store-band h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.06; letter-spacing: -0.03em; }
.store-band > div:first-child > p { color: #aab3ae; margin-top: 12px; font-size: 16px; }
.benefits { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.benefits li { display: flex; gap: 12px; align-items: start; }
.benefits svg { flex: none; color: var(--accent-pop); margin-top: 3px; }
.benefits b { display: block; font-weight: 600; }
.benefits span { color: #aab3ae; font-size: 14.5px; }
.store-cta { background: var(--bg-card); color: var(--text-main); border-radius: var(--r-l); padding: 26px; display: grid; gap: 12px; }
.store-cta h3 { font-size: 20px; }
.store-cta p { color: var(--text-muted); font-size: 14.5px; }
.form-note { font-size: 13px; color: var(--text-muted); }
.form-note a { font-weight: 600; }

/* ---- Footer ---- */
.footer { background: #111315; color: #aab3ae; padding: 52px 0 32px; }
.footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer .wrap { grid-template-columns: 1fr 1fr; } .footer .wrap > :first-child { grid-column: 1 / -1; } }
.footer .logo { height: 42px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid #2a3034; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #7f8984; }

/* ---- Bottenmeny (mobil) ---- */
.bottombar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .bottombar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset: auto 0 0; z-index: 1100;
    background: rgba(248, 246, 240, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-color); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    transition: transform .2s ease;
  }
  .bottombar.away { transform: translateY(110%); }
  .bottombar button { border: 0; background: none; display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--text-muted); cursor: pointer; padding: 2px; min-width: 0; }
  .bottombar .ico { position: relative; width: 52px; height: 30px; border-radius: 999px; display: grid; place-items: center; }
  .bottombar button[aria-current="true"] { color: var(--text-main); }
  .bottombar button[aria-current="true"] .ico { background: var(--bg-alt); }
  .bottombar .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .bb-badge { position: absolute; top: -4px; right: 6px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--accent-main); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ---- Toast ---- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); z-index: 1200;
  background: var(--accent-main); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-elevated); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
