/* Boodschappenlijst — warm ivoor papier, espresso inkt, goud accent.
   Kleuren in OKLCH; materiaal-gevoel via getinte diffuse schaduwen + papiergrain. */

:root {
  --ivory:      oklch(0.955 0.018 88);   /* papier, achtergrond */
  --ivory-2:    oklch(0.925 0.020 86);   /* dieper ivoor */
  --card:       oklch(0.993 0.008 92);   /* kaart, warm wit */
  --espresso:   oklch(0.245 0.018 74);   /* inkt, primaire tekst */
  --espresso-2: oklch(0.375 0.020 74);   /* secundaire tekst */
  --muted:      oklch(0.575 0.028 78);   /* rustige tekst */
  --line:       oklch(0.888 0.016 86);   /* hairline randen */
  --gold:       oklch(0.575 0.086 78);   /* accent, prijzen */
  --gold-2:     oklch(0.725 0.090 82);   /* licht goud */
  --green:      oklch(0.605 0.115 150);  /* afgevinkt / winst */
  --red:        oklch(0.555 0.155 30);   /* over budget / verwijderen */

  --r-lg: 22px;
  --r-md: 15px;
  --r-sm: 11px;

  /* getinte, diffuse schaduwen (papier, geen harde randen) */
  --shadow:    0 1px 2px oklch(0.24 0.02 74 / .05), 0 12px 26px -14px oklch(0.24 0.02 74 / .16);
  --shadow-md: 0 2px 4px oklch(0.24 0.02 74 / .05), 0 18px 40px -18px oklch(0.24 0.02 74 / .22);
  --shadow-lg: 0 24px 64px -22px oklch(0.24 0.02 74 / .30);
  --ring-gold: 0 0 0 3px oklch(0.725 0.09 82 / .22);

  --ease:      cubic-bezier(0.22, 1, 0.36, 1);   /* ease-out-quart */
  --ease-expo: cubic-bezier(0.16, 1, 0.30, 1);   /* ease-out-expo */

  --sans: 'General Sans', system-ui, -apple-system, sans-serif;
  --serif: 'Boska', Georgia, serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--espresso);
  background:
    radial-gradient(1150px 560px at 106% -10%, oklch(0.80 0.07 82 / .18), transparent 60%),
    radial-gradient(920px 560px at -12% 6%, oklch(0.62 0.08 78 / .08), transparent 56%),
    var(--ivory);
  background-attachment: fixed;
  min-height: 100dvh;
  padding-bottom: calc(100px + var(--safe-b));
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* papiergrain — vast, niet-interactief, geen repaint tijdens scroll */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .app-header { position: relative; z-index: 2; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--espresso); color: var(--ivory);
  padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0; z-index: 100;
}
.skip:focus { left: 0; }

/* ----------------------------------------------------------- header */

.app-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 13px 16px calc(13px + env(safe-area-inset-top, 0));
  background: oklch(0.955 0.018 88 / .78);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid oklch(0.888 0.016 86 / .7);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; min-width: 0; transition: transform .18s var(--ease); }
.brand:active { transform: scale(.97); }
.brand__mark { width: 42px; height: 42px; flex: 0 0 auto; display: block; filter: drop-shadow(0 3px 6px oklch(0.58 0.09 80 / .18)); }
.brand__word {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.05rem, 4.4vw, 1.4rem);
  letter-spacing: -.01em; color: var(--espresso); line-height: 1; white-space: nowrap;
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.pill {
  font-size: .72rem; font-weight: 600; letter-spacing: .3px;
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent;
}
.pill--local { background: var(--ivory-2); color: var(--muted); border-color: var(--line); }
.pill--cloud { background: rgba(47, 143, 86, .12); color: var(--green); border-color: rgba(47,143,86,.3); }
.pill--cloud::before { content: "● "; font-size: .6em; vertical-align: middle; }

.icon-btn {
  display: grid; place-items: center; width: 41px; height: 41px;
  border-radius: 13px; border: 1px solid var(--line);
  background: var(--card); color: var(--espresso-2); cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .14s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.icon-btn:hover { background: var(--card); border-color: var(--gold-2); box-shadow: var(--shadow-md); }
.icon-btn:active { transform: scale(.92); }
.icon-btn--accent { background: linear-gradient(140deg, var(--gold-2), var(--gold)); color: oklch(0.99 0.01 90); border-color: transparent; box-shadow: 0 6px 16px -6px oklch(0.575 0.086 78 / .5); }
.icon-btn--accent:hover { filter: brightness(1.08); background: linear-gradient(135deg, var(--gold), var(--gold-2)); }

/* ----------------------------------------------------------- list head */

main { max-width: 680px; margin: 0 auto; padding: 0 16px; }

.list-head { padding: 22px 2px 14px; }
.list-name {
  font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 8.2vw, 2.7rem);
  line-height: 1.04; letter-spacing: -0.02em; outline: none; border-radius: 8px;
  padding: 2px 6px; margin-left: -6px; transition: box-shadow .2s var(--ease), background .2s var(--ease);
}
.list-name:focus { background: var(--card); box-shadow: var(--ring-gold); }
.list-head__row { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.list-meta { color: var(--muted); font-size: .9rem; min-height: 1.2em; flex: 1 1 auto; min-width: 0; }

.store-pill {
  --store-color: var(--gold);
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
  padding: 7px 13px; border-radius: 999px; color: var(--espresso);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .14s var(--ease);
}
.store-pill:hover { border-color: var(--store-color); box-shadow: var(--shadow-md); }
.store-pill:active { transform: scale(.95); }
.store-pill #storeName { color: var(--store-color); }

.store-option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 15px 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); margin-bottom: 10px; cursor: pointer; font: inherit; color: var(--espresso);
}
.store-option.is-active { border-color: var(--gold-2); box-shadow: 0 0 0 2px rgba(201,161,85,.2); }
.store-option__dot { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; }
.store-option__body { flex: 1; }
.store-option__body b { display: block; font-weight: 600; }
.store-option__body small { color: var(--muted); }
.store-option__check { color: var(--gold); font-weight: 700; font-size: 1.2rem; }
.store-divider { text-align: center; font-size: .76rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 6px 0 12px; }

/* winkel-badge op een productregel (vergelijk-modus) */
.store-badge { display: inline-block; color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .3px;
  padding: 1px 6px; border-radius: 999px; vertical-align: middle; }

/* AH vs Jumbo vergelijk-sheet */
.cmp-card { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.cmp-card.is-best { border-color: var(--gold-2); box-shadow: 0 0 0 2px rgba(201,161,85,.22), var(--shadow); }
.cmp-card--mix { background: linear-gradient(180deg, #fffdf7, var(--ivory-2)); }
.cmp-card__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.cmp-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cmp-card__name { font-weight: 600; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.cmp-card__total { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; }
.cmp-card__meta { color: var(--muted); font-size: .84rem; margin-top: 3px; }

.cmp-rows { margin: 16px 0 4px; border-top: 1px solid var(--line); }
.cmp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px dashed var(--line); }
.cmp-row__name { font-weight: 500; text-transform: capitalize; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-row__prices { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.cmp-lbl { font-size: .66rem; font-weight: 700; letter-spacing: .3px; }
.cmp-cell { min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; font-size: .9rem; color: var(--muted); padding: 2px 7px; border-radius: 7px; }
.cmp-cell.is-win { color: var(--espresso); font-weight: 700; background: rgba(47,143,86,.14); }

/* ----------------------------------------------------------- add bar */

.add-bar {
  position: sticky; top: 70px; z-index: 20;
  display: flex; gap: 10px; margin: 4px 0 18px;
}
.add-bar__field { position: relative; flex: 1; }
#addInput {
  width: 100%; font: inherit; font-size: 1.03rem; color: var(--espresso);
  padding: 16px 17px; border-radius: var(--r-md);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: border-color .2s var(--ease), box-shadow .25s var(--ease);
}
#addInput::placeholder { color: oklch(0.72 0.03 82); }
#addInput:focus { outline: none; border-color: var(--gold-2); box-shadow: var(--ring-gold), var(--shadow); }

.btn {
  font: inherit; font-weight: 600; cursor: pointer; border: none;
  border-radius: var(--r-md); transition: transform .14s var(--ease), filter .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: scale(.96) translateY(1px); }
.btn--add {
  display: grid; place-items: center; width: 56px; flex: 0 0 56px;
  background: var(--espresso); color: var(--ivory); box-shadow: var(--shadow-md);
}
.btn--add svg { transition: transform .3s var(--ease-expo); }
.btn--add:hover { filter: brightness(1.14); }
.btn--add:hover svg { transform: rotate(90deg); }

/* suggesties */
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); list-style: none; overflow: hidden; z-index: 25; max-height: 280px; overflow-y: auto;
}
.suggest li {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.suggest li:last-child { border-bottom: none; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--ivory-2); }
.suggest .s-emoji { font-size: 1.1rem; }
.suggest .s-label { font-weight: 500; text-transform: capitalize; }
.suggest .s-cat { margin-left: auto; font-size: .76rem; color: var(--muted); }

/* ----------------------------------------------------------- list */

.list { display: flex; flex-direction: column; gap: 22px; }

.cat-title {
  display: flex; align-items: center; gap: 9px;
  font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); padding: 0 4px 9px;
}
.cat-title .c-count {
  color: var(--muted); font-weight: 600; font-size: .68rem; opacity: .7;
  background: var(--ivory-2); border-radius: 999px; padding: 1px 7px;
}

.items { display: flex; flex-direction: column; gap: 9px; }

.item {
  display: flex; align-items: center; gap: 13px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 12px 12px 14px; box-shadow: var(--shadow);
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), opacity .3s var(--ease), background .3s var(--ease);
}
.item:active { transform: scale(.992); }
@media (hover: hover) { .item:hover { border-color: oklch(0.85 0.04 84); box-shadow: var(--shadow-md); } }
.item.is-checked { opacity: .5; background: var(--ivory-2); box-shadow: none; }
.item.is-checked .item__label { text-decoration: line-through; text-decoration-color: var(--gold-2); }

.check {
  flex: 0 0 27px; width: 27px; height: 27px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--card); cursor: pointer;
  display: grid; place-items: center; color: #fff;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .14s var(--ease);
}
.check:hover { border-color: var(--gold-2); }
.check:active { transform: scale(.88); }
.item.is-checked .check { background: var(--green); border-color: var(--green); }
.check svg { width: 15px; height: 15px; opacity: 0; transform: scale(.4); transition: opacity .2s var(--ease), transform .4s var(--ease-expo); }
.item.is-checked .check svg { opacity: 1; transform: scale(1); }

/* productfoto / emoji-tegel */
.thumb {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: 11px;
  object-fit: contain; background: var(--card);
  border: 1px solid var(--line); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .5);
}
.thumb--emoji { display: grid; place-items: center; font-size: 1.45rem; background: var(--ivory-2); }
.thumb--sm { width: 34px; height: 34px; flex-basis: 34px; border-radius: 8px; font-size: 1.05rem; }
.item__thumb { cursor: pointer; display: flex; transition: transform .2s var(--ease); }
@media (hover: hover) { .item__thumb:hover { transform: scale(1.06) rotate(-2deg); } }

.item__main { flex: 1; min-width: 0; cursor: pointer; }
.item__label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.04rem; letter-spacing: -0.01em; }
.item__name { text-transform: capitalize; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item__sub { margin-top: 3px; font-size: .82rem; color: var(--muted); }
.item__product { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item__product b { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.item__pu { color: oklch(0.72 0.03 82); }
.item__product--empty { color: var(--gold); cursor: pointer; }

/* skeleton shimmer (prijs laden) */
.skel { display: inline-block; border-radius: 6px; background:
  linear-gradient(100deg, var(--ivory-2) 30%, oklch(0.97 0.01 90) 50%, var(--ivory-2) 70%);
  background-size: 200% 100%; animation: shimmer 1.3s var(--ease) infinite; }
.skel--price { width: 128px; height: 12px; margin-top: 3px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.item__by { background: var(--ivory-2); padding: 1px 7px; border-radius: 999px; font-size: .72rem; font-weight: 500; }

.qty {
  display: flex; align-items: center; gap: 1px; background: var(--ivory-2);
  border-radius: 999px; padding: 3px; box-shadow: inset 0 1px 2px oklch(0.24 0.02 74 / .05);
}
.qty button {
  width: 29px; height: 29px; border: none; background: transparent; cursor: pointer;
  font-size: 1.15rem; color: var(--espresso-2); border-radius: 50%; display: grid; place-items: center;
  transition: background .15s var(--ease), transform .12s var(--ease);
}
.qty button:hover { background: var(--card); }
.qty button:active { transform: scale(.86); }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: .92rem; font-variant-numeric: tabular-nums; }

.item__remove {
  flex: 0 0 auto; width: 32px; height: 32px; border: none; background: transparent;
  color: oklch(0.78 0.03 82); cursor: pointer; border-radius: 9px; display: grid; place-items: center;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.item__remove:hover { color: var(--red); background: oklch(0.555 0.155 30 / .1); }

/* ----------------------------------------------------------- empty */

.empty { text-align: center; padding: 52px 20px 60px; color: var(--muted); animation: riseIn .5s var(--ease) both; }
.empty__logo {
  width: 104px; height: 104px; margin: 0 auto 18px; display: block;
  filter: drop-shadow(0 12px 26px oklch(0.58 0.09 80 / .24));
  animation: floaty 5s ease-in-out infinite;
}
.empty h2 { font-family: var(--serif); color: var(--espresso); font-size: 1.75rem; letter-spacing: -0.02em; margin-bottom: 9px; }
.empty p { max-width: 34ch; margin: 0 auto; line-height: 1.6; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------- recents strip */

.recents { margin: 2px 0 18px; }
.recents__head { font-size: .78rem; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); padding: 0 4px 8px; }
.recents__strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 4px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.recents__strip::-webkit-scrollbar { display: none; }
.chip {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 13px 5px 5px; cursor: pointer; font: inherit; color: var(--espresso);
  box-shadow: var(--shadow); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .14s var(--ease);
}
.chip:hover { border-color: var(--gold-2); box-shadow: var(--shadow-md); }
.chip:active { transform: scale(.95); }
.chip__label { font-weight: 500; font-size: .9rem; text-transform: capitalize; white-space: nowrap; }
.chip__price { font-size: .82rem; color: var(--gold); font-weight: 600; }

/* ----------------------------------------------------------- total bar */

.total-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 28;
  padding: 14px 16px calc(14px + var(--safe-b));
  background: linear-gradient(transparent, oklch(0.955 0.018 88 / .0) 0%, oklch(0.955 0.018 88 / .94) 42%);
  display: flex; justify-content: center;
}
.btn--total {
  width: 100%; max-width: 648px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 15px 22px; font-size: 1.05rem; color: oklch(0.99 0.01 90); border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--gold-2), var(--gold) 60%, oklch(0.5 0.08 76));
  box-shadow: 0 10px 30px -8px oklch(0.575 0.086 78 / .55), inset 0 1px 0 oklch(1 0 0 / .28);
}
.btn--total:hover { filter: brightness(1.05) saturate(1.05); }
.total-bar__left { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.22; }
.total-bar__label { font-weight: 600; letter-spacing: .01em; }
.total-bar__hint { font-weight: 500; opacity: .85; font-size: .8rem; }
.total-bar__amount { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; transform-origin: right center; }
.total-bar__amount.bump { animation: bump .42s var(--ease-expo); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.11); } 100% { transform: scale(1); } }
.total-bar.is-over .btn--total {
  background: linear-gradient(150deg, oklch(0.66 0.14 34), var(--red) 65%, oklch(0.46 0.14 30));
  box-shadow: 0 10px 30px -8px oklch(0.555 0.155 30 / .5), inset 0 1px 0 oklch(1 0 0 / .22);
}

/* ----------------------------------------------------------- sheet */

.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet__backdrop { position: absolute; inset: 0; background: oklch(0.24 0.02 74 / .46); backdrop-filter: blur(2px); animation: fade .3s var(--ease); }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: 680px; margin: 0 auto; max-height: 90dvh;
  background: var(--ivory); border-radius: 26px 26px 0 0;
  box-shadow: var(--shadow-lg); border-top: 1px solid oklch(1 0 0 / .5);
  display: flex; flex-direction: column;
  animation: slideUp .44s var(--ease-expo);
  padding-bottom: var(--safe-b);
}
.sheet__grip { width: 42px; height: 5px; border-radius: 999px; background: var(--line); margin: 11px auto 4px; cursor: grab; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px 13px; border-bottom: 1px solid var(--line); }
.sheet__head h2 { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -0.02em; }
.sheet__body { overflow-y: auto; padding: 16px 16px 24px; -webkit-overflow-scrolling: touch; }

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ----------------------------------------------------------- kassabon */

.receipt {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 6px 14px; box-shadow: var(--shadow); margin-bottom: 14px;
}
.receipt__row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.receipt__row:last-child { border-bottom: none; }
.receipt__row.is-checked { opacity: .55; }
.receipt__body { flex: 1; min-width: 0; }
.receipt__name { font-weight: 600; font-size: .95rem; }
.receipt__qty { color: var(--muted); font-weight: 500; }
.receipt__sub { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt__sub .muted { color: #c2b79c; }
.receipt__price { font-weight: 600; font-variant-numeric: tabular-nums; }
.receipt__total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--serif); font-weight: 700; font-size: 1.5rem; padding: 4px 6px 12px;
}

/* item-detail: zoekbalk (toont/past de zoekterm aan) */
.detail-search {
  display: flex; align-items: center; gap: 9px; padding: 0 13px; margin-bottom: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow); color: var(--muted);
}
.detail-search:focus-within { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(201,161,85,.18); }
.detail-search input {
  flex: 1; min-width: 0; border: none; background: none; font: inherit; font-size: 1rem;
  color: var(--espresso); padding: 13px 0; outline: none;
}
.detail-hint { font-size: .8rem; color: var(--muted); margin: 0 2px 14px; line-height: 1.45; }

/* item-detail prijslijst */
.price-opt {
  display: flex; align-items: center; gap: 12px; padding: 11px 10px;
  border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 12px;
  transition: background .16s var(--ease), transform .12s var(--ease);
}
.price-opt:hover { background: var(--card); }
.price-opt:active { transform: scale(.99); }
.price-opt.is-picked { background: oklch(0.725 0.09 82 / .16); box-shadow: inset 0 0 0 1px oklch(0.725 0.09 82 / .4); border-bottom-color: transparent; }
.price-opt img { width: 48px; height: 48px; object-fit: contain; border-radius: 9px; background: var(--card); border: 1px solid var(--line); }
.price-opt__noimg { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 8px; background: var(--ivory-2); border: 1px solid var(--line); font-size: 1.3rem; }
.price-opt__body { flex: 1; min-width: 0; }
.price-opt__name { font-weight: 500; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price-opt__sub { font-size: .78rem; color: var(--muted); }
.price-opt__price { text-align: right; }
.price-opt__price b { font-size: 1.05rem; }
.price-opt__per { display: block; font-size: .74rem; color: var(--muted); }
.sale { color: var(--red); font-weight: 600; }
.store-section-title { font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin: 16px 0 4px; display: flex; align-items: center; gap: 8px; }
.store-dot { width: 9px; height: 9px; border-radius: 50%; }

.sheet-note { color: var(--muted); font-size: .85rem; line-height: 1.5; margin: 4px 2px 14px; }
.spinner { width: 22px; height: 22px; border: 2.5px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* menu / share rows */
.menu-row {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 15px 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); margin-bottom: 10px; cursor: pointer; font: inherit; color: var(--espresso);
}
.menu-row:hover { border-color: var(--gold-2); }
.menu-row svg { color: var(--gold); flex: 0 0 auto; }
.menu-row b { display: block; font-weight: 600; }
.menu-row small { color: var(--muted); }
.menu-row--danger { color: var(--red); }
.menu-row--danger svg { color: var(--red); }

.qr-box { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 6px 0 16px; }
.qr-target { width: 180px; height: 180px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; box-shadow: var(--shadow); }
.qr-target img { border-radius: 6px; display: block; }
.qr-hint { font-size: .8rem; color: var(--muted); }

.install-steps { margin: 6px 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.install-steps li { line-height: 1.5; }
.ios-share { display: inline-grid; place-items: center; width: 22px; height: 22px; vertical-align: middle; }

.share-code {
  font-family: var(--serif); font-size: 2rem; font-weight: 700; letter-spacing: 6px;
  text-align: center; background: var(--card); border: 1px dashed var(--gold-2);
  border-radius: var(--r-md); padding: 18px; margin: 8px 0 14px; color: var(--gold);
}
.share-url { display: flex; gap: 8px; }
.share-url input { flex: 1; font: inherit; font-size: .85rem; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); color: var(--espresso-2); }
.btn--ghost { padding: 12px 16px; background: var(--espresso); color: var(--ivory); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%);
  background: var(--espresso); color: var(--ivory); padding: 12px 20px; border-radius: 999px;
  font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 60;
  animation: toastIn .3s ease; max-width: 90vw;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (min-width: 560px) {
  .add-bar__field input { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
