/* AdaSells – dunkles, minimalistisches Design in Anlehnung an FindQC. Mobile first. */
:root {
  --bg: #23242a;
  --surface: #2b2c33;
  --surface-2: #303134;
  --border: #3c4043;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, .18);
  --danger: #f87171;
  --radius: 20px;
  --pill: 999px;
  --nav-h: 62px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { overflow-x: hidden; }              /* Sicherung: nie seitlich scrollbar (html, nicht body, damit die feste Kopfzeile weiter haftet) */
body { overflow-x: clip; max-width: 100vw; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
h2 { font-size: 1.5rem; margin: .4rem 0 1rem; letter-spacing: -.01em; }
h3 { font-size: 1rem; margin: 0 0 .7rem; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.error { color: var(--danger); margin: .6rem 0; }
.num { text-align: right; white-space: nowrap; }
kbd { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 0 .35rem; font-size: .85em; }
pre { background: var(--surface-2); border-radius: 12px; padding: .7rem; white-space: pre-wrap; margin: .6rem 0 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Controls ---------- */
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
input, select, textarea {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: .6rem .85rem; min-width: 0;
}
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 759px) { input, select, textarea { font-size: 16px; } }   /* iOS zoomt bei Feldern unter 16 px beim Antippen */
textarea { width: 100%; margin: .5rem 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; resize: vertical; }
input[type=file] { width: 100%; border-style: dashed; margin-bottom: .3rem; }
button:disabled { opacity: .4; cursor: default; }
.chip, .pill-select {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--pill);
  padding: .45rem .95rem; font-weight: 600; font-size: .85rem; white-space: nowrap;
}
.chip:hover { background: #3a3b42; }
.chip.active { background: var(--text); color: #0f172a; border-color: var(--text); }
.pill-select { padding-right: .6rem; }
.primary {
  background: var(--accent); color: #fff; border: 0; border-radius: var(--pill);
  padding: .75rem 1.5rem; font-weight: 700; min-height: 46px;
}
.primary:hover:not(:disabled) { filter: brightness(1.1); }
.badge { background: var(--accent); color: #fff; border-radius: var(--pill); padding: 0 .45rem; font-size: .72rem; font-style: normal; line-height: 1.5; min-width: 1.4rem; text-align: center; }

/* ---------- Header / Navigation ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(35, 36, 42, .96);   /* kein backdrop-filter hier: er würde die fixierte Mobil-Navigation an die Kopfzeile binden */
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding-top: env(safe-area-inset-top);   /* App-Modus auf dem iPhone: Inhalt läuft unter die Statusleiste */
}
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: .7rem 1rem; display: flex; align-items: center; gap: 1rem; }
.brand { font-weight: 800; font-size: 1.35rem; color: #fff; text-decoration: none; letter-spacing: -.02em; }
.brand span { color: var(--accent); }
.fx { margin-left: auto; color: var(--muted); font-size: .78rem; text-align: right; }

/* Mobil: untere Leiste wie eine App */
#nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);       /* so viele gleich breite Reiter wie vorhanden (die App hat 3, die PC-Seite 6) */
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(27, 28, 33, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
#nav button {
  position: relative; background: none; border: 0; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .68rem; font-weight: 600;
}
#nav button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nav:has(button:nth-child(6)) button { font-size: .6rem; }          /* PC-Seite mit sechs Reitern auf einem schmalen Bildschirm */
#nav button.active { color: #fff; }
#nav button.active svg { stroke: var(--accent); }
/* Reiter „Suche“: leuchtet, solange das Suchfeld aktiv ist (dann ist „Produkte“ gedimmt) */
#nav.searching [data-view="search"] { color: #fff; }
#nav.searching [data-view="search"] svg { stroke: var(--accent); }
#nav.searching [data-view="products"].active { color: var(--muted); }
#nav.searching [data-view="products"].active svg { stroke: currentColor; }
.link-result { grid-column: 1 / -1; display: grid; gap: .6rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.link-result h3 { margin: 0; }
.link-result p { margin: 0; }
#nav .badge { position: absolute; top: 6px; left: calc(50% + 6px); font-size: .62rem; padding: 0 .3rem; min-width: 1.1rem; }

main { max-width: 1280px; margin: 0 auto; padding: 1rem; }

/* ---------- Produkte ---------- */
.searchbar { position: relative; max-width: 640px; margin: .3rem auto 1rem; }
.searchbar svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.searchbar input { width: 100%; border-radius: var(--pill); padding: .85rem 1.2rem .85rem 2.9rem; background: #1b1c21; font-size: 1rem; }
.searchbar input[type=search] { padding-right: 3.4rem; }
.icon-btn { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); display: grid; place-items: center; padding: 0; }
.icon-btn:hover { background: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; position: static; transform: none; color: inherit; }
.img-search { max-width: 980px; margin: 0 auto 1rem; }
.img-layout { display: grid; gap: 1rem; }
.img-stage-wrap { min-width: 0; }
.img-stage { position: relative; width: 100%; max-width: 360px; margin: 0 auto; border-radius: 16px; overflow: hidden; background: var(--bg); line-height: 0; }
.img-stage img { width: 100%; height: auto; display: block; border-radius: 0; background: none; }
.img-boxes { position: absolute; inset: 0; }
.img-boxes .box { position: absolute; padding: 0; border: 2px solid rgba(255, 255, 255, .85); background: rgba(59, 130, 246, .08); border-radius: 8px; color: #fff; font-weight: 700; font-size: .72rem; display: flex; align-items: flex-start; justify-content: flex-start; }
.img-boxes .box.active { border-color: var(--accent); background: rgba(59, 130, 246, .2); box-shadow: 0 0 0 2px rgba(59, 130, 246, .5); z-index: 2; }
.img-boxes .box { line-height: 1; }
/* Eigener Suchausschnitt: Rahmen mit Drittelraster, abgedunkelte Umgebung, Griffe an Ecken (Winkel) und Kanten (Balken) */
.img-boxes .crop {
  position: absolute; z-index: 3; border: 2px solid #fff; border-radius: 4px; cursor: move; touch-action: none;
  box-shadow: 0 0 0 100vmax rgba(8, 9, 12, .58);
  background:
    linear-gradient(to right, transparent calc(33.33% - .5px), rgba(255, 255, 255, .28) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.66% - .5px), rgba(255, 255, 255, .28) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
    linear-gradient(to bottom, transparent calc(33.33% - .5px), rgba(255, 255, 255, .28) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.66% - .5px), rgba(255, 255, 255, .28) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px));
}
.crop-h { position: absolute; --g: min(36px, 38%); touch-action: none; }
.crop-h::after { content: ''; position: absolute; }
.crop-h.nw, .crop-h.ne, .crop-h.sw, .crop-h.se { width: var(--g); height: var(--g); }
.crop-h.nw { left: 0; top: 0; cursor: nwse-resize; } .crop-h.ne { right: 0; top: 0; cursor: nesw-resize; }
.crop-h.sw { left: 0; bottom: 0; cursor: nesw-resize; } .crop-h.se { right: 0; bottom: 0; cursor: nwse-resize; }
.crop-h.nw::after, .crop-h.ne::after, .crop-h.sw::after, .crop-h.se::after { width: 16px; height: 16px; border: 0 solid #fff; }
.crop-h.nw::after { left: 0; top: 0; border-width: 4px 0 0 4px; border-top-left-radius: 5px; }
.crop-h.ne::after { right: 0; top: 0; border-width: 4px 4px 0 0; border-top-right-radius: 5px; }
.crop-h.sw::after { left: 0; bottom: 0; border-width: 0 0 4px 4px; border-bottom-left-radius: 5px; }
.crop-h.se::after { right: 0; bottom: 0; border-width: 0 4px 4px 0; border-bottom-right-radius: 5px; }
.crop-h.n, .crop-h.s { left: var(--g); right: var(--g); height: 26px; cursor: ns-resize; }
.crop-h.n { top: 0; } .crop-h.s { bottom: 0; }
.crop-h.w, .crop-h.e { top: var(--g); bottom: var(--g); width: 26px; cursor: ew-resize; }
.crop-h.w { left: 0; } .crop-h.e { right: 0; }
.crop-h.n::after, .crop-h.s::after { left: 50%; width: 26px; height: 4px; margin-left: -13px; background: #fff; border-radius: 2px; }
.crop-h.n::after { top: 0; } .crop-h.s::after { bottom: 0; }
.crop-h.w::after, .crop-h.e::after { top: 50%; width: 4px; height: 26px; margin-top: -13px; background: #fff; border-radius: 2px; }
.crop-h.w::after { left: 0; } .crop-h.e::after { right: 0; }
.crop-hint { width: 100%; margin-top: .1rem; }

/* Links zum Artikel (Produktseite): Beschriftung, Adresse (gekürzt), Kopieren, Öffnen */
.pl { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--border); display: grid; gap: .5rem; }
.pl h3 { margin: 0 0 .1rem; }
.pl-row { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.pl-info { flex: 1 1 0; min-width: 0; display: grid; gap: .05rem; }
.pl-label { font-weight: 700; font-size: .9rem; }
.pl-label.hb { color: var(--accent); }
.pl-url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-row .chip { flex: none; padding: .4rem .8rem; text-decoration: none; }
.pl-copy.ok { border-color: #4ade80; color: #4ade80; }
.box-bar { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.img-title { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .3rem; }
.res-head { grid-column: 1 / -1; margin: .6rem 0 0; font-size: 1rem; }
.res-none { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; padding: .2rem 0 .6rem; }
@media (min-width: 760px) { .img-layout { grid-template-columns: minmax(240px, 340px) 1fr; align-items: start; } .img-stage { margin: 0; } }
.detected { margin: .9rem 0 .4rem; display: grid; gap: .5rem; }
.det-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.det-row .lbl { color: var(--muted); font-size: .8rem; min-width: 4.2rem; }
.det-row .none { color: var(--muted); font-size: .82rem; }
.det-chip { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--pill); padding: .3rem .75rem; font-size: .82rem; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.det-chip small { color: var(--muted); font-weight: 500; }
.det-chip.active { background: var(--text); color: #0f172a; border-color: var(--text); }
.det-chip.active small { color: #334155; }
.swatch { width: .8rem; height: .8rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); display: inline-block; }
.img-head { display: flex; align-items: center; gap: .8rem; }
.img-info { flex: 1; min-width: 0; }
.tile .score { position: absolute; right: .55rem; bottom: .55rem; background: var(--accent); color: #fff; border-radius: var(--pill); font-weight: 700; font-size: .72rem; padding: .22rem .55rem; }
.tile .price { max-width: calc(100% - 4.2rem); }
body.dragging #view-products { outline: 2px dashed var(--accent); outline-offset: 6px; border-radius: var(--radius); }
a.chip { text-decoration: none; color: var(--text); display: inline-block; }
.chips { display: flex; gap: .45rem; overflow-x: auto; flex: 1; padding: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.count { margin: .4rem 2px; font-size: .8rem; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; margin: .5rem 0 1rem; }
.tile {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1; background: var(--surface); text-align: left; text-decoration: none; color: inherit; isolation: isolate;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
  animation: tile-in .5s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 40ms);   /* Kacheln blenden gestaffelt ein */
}
.tile-img { position: absolute; inset: 0; z-index: 0; }
.tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.tile-img img.on { opacity: 1; }                       /* beim Darüberfahren wechselt das Bild (Überblendung) */
.tile:hover .tile-img img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55)); transition: opacity .3s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0, 0, 0, .45); }
.tile:hover::after { background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .78)); }
.tile:active { transform: scale(.985); }
.tile .noimg { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; text-align: center; color: var(--muted); font-size: .8rem; }
.tile-title {
  position: absolute; left: .75rem; right: .75rem; bottom: 2.7rem; z-index: 2; color: #fff; font-weight: 600; font-size: .82rem; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .3s cubic-bezier(.2, .7, .2, 1);
}
.tile:hover .tile-title, .tile:focus-visible .tile-title { opacity: 1; transform: none; }
.tile .price, .tile .weight {
  z-index: 2;
  position: absolute; background: rgba(15, 17, 21, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; border-radius: var(--pill); font-weight: 700; padding: .22rem .6rem; font-size: .76rem; line-height: 1.3;
}
.tile.skeleton { animation: shimmer 1.4s linear infinite; pointer-events: none; }
.skeleton { background: linear-gradient(100deg, var(--surface) 30%, #373840 50%, var(--surface) 70%); background-size: 220% 100%; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes tile-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes bump { 40% { transform: scale(1.55); } }
.badge.bump { animation: bump .35s ease; }
main > section:not([hidden]) { animation: view-in .35s ease backwards; }

/* ---------- Kategorien / Quick Browse ---------- */
/* minmax(0, 1fr): sonst dehnt sich die Spalte auf die Breite aller Chips (~900 px) und die ganze Seite lässt sich auf dem Handy zur Seite ziehen */
.browse { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; margin-bottom: .4rem; }
.browse-row { display: flex; gap: .6rem; align-items: center; min-width: 0; }
.browse-row .chips { flex: 1; min-width: 0; }
.qb-btn { display: inline-flex; align-items: center; gap: .45rem; flex: none; }
.qb-btn svg { width: 18px; height: 18px; }
.qb-btn.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.chip { transition: background .2s, color .2s, border-color .2s, transform .15s, opacity .2s; }
.chip:active { transform: scale(.95); }
.chip small { margin-left: .4rem; opacity: .6; font-weight: 600; }
.chip.dim:not(.active) { opacity: .5; }
.sub-chips { max-height: 0; opacity: 0; overflow: hidden; padding: 0 2px; transition: max-height .35s ease, opacity .3s ease, padding .3s ease; }
.sub-chips.open { max-height: 70px; opacity: 1; overflow-x: auto; padding: 2px; }
.qb {
  position: absolute; z-index: 40; left: 0; top: 3rem; width: min(980px, 100%);
  background: #1d1e23; border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 28px 70px rgba(0, 0, 0, .6); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.985); transform-origin: top left;
  transition: opacity .2s ease, transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .3s;
}
.qb.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.qb-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 340px; max-height: 70vh; }
.qb-side { background: #191a1e; padding: .6rem 0; overflow-y: auto; border-right: 1px solid var(--border); }
.qb-item {
  width: 100%; display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.4rem; background: none; border: 0; border-left: 3px solid transparent;
  color: var(--muted); font-weight: 600; font-size: .9rem; text-align: left; transition: background .2s, color .2s, border-color .2s;
}
.qb-item.quick span { font: italic 700 1.15rem Georgia, "Times New Roman", serif; color: #fff; }
.qb-item.active { color: #fff; background: #26272d; border-left-color: #6d5dfc; }
.qb-item:hover { color: #fff; }
.qb-item i { font-style: normal; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; }
.qb-item.active i { opacity: .7; transform: none; }
.qb-panel { padding: 1.3rem 1.6rem; overflow-y: auto; }
.qb-panel > * { animation: panel-in .3s ease backwards; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }
.qb-title { font-size: .72rem; letter-spacing: .12em; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.qb-block { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .07); }
.qb-block:first-of-type { border-top: 0; padding-top: 0; }
.qb-block-head small { color: var(--muted); margin-left: .6rem; font-size: .75rem; }
.qb-tiles { display: flex; flex-wrap: wrap; gap: .3rem .6rem; margin-top: .7rem; }
.qb-tile {
  display: grid; justify-items: center; gap: .15rem; width: 92px; padding: .6rem .2rem; background: none; border: 0; border-radius: 14px; color: var(--text);
  font-size: .78rem; font-weight: 600; text-align: center; transition: background .2s, transform .2s;
}
.qb-tile .ic { font-size: 1.6rem; line-height: 1.25; }
.qb-tile small { color: var(--muted); font-weight: 500; font-size: .68rem; }
.qb-tile:hover { background: #2a2b32; transform: translateY(-3px); }
.qb-tile.active { background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.qb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .07); padding-bottom: .9rem; }
.qb-head h3 { font-size: 1.6rem; margin: 0; letter-spacing: -.02em; }
.qb-all { background: none; border: 0; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: color .2s, transform .2s; }
.qb-all:hover { color: #fff; transform: translateX(3px); }
.qb-subs { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 2.4rem; margin-top: 1rem; }
.qb-sub { display: flex; justify-content: space-between; gap: .5rem; position: relative; padding: .55rem .2rem .55rem 1.1rem; background: none; border: 0; color: var(--muted); font-size: .92rem; text-align: left; transition: color .2s, transform .2s; }
.qb-sub::before { content: ""; position: absolute; left: .2rem; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #4b4d57; transform: translateY(-50%); transition: background .2s, transform .2s; }
.qb-sub:hover, .qb-sub.active { color: #fff; }
.qb-sub:hover { transform: translateX(3px); }
.qb-sub:hover::before, .qb-sub.active::before { background: var(--accent); transform: translateY(-50%) scale(1.6); }
.qb-sub small { color: #6b7280; }
.qb-sub.dim { opacity: .5; }
.qb-backdrop { position: fixed; inset: 0; z-index: 35; display: none; }
.qb-backdrop.open { display: block; }
@media (max-width: 759px) {
  .qb { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 82vh; border-radius: 24px 24px 0 0; z-index: 80; transform: translateY(100%); transform-origin: bottom; padding-bottom: env(safe-area-inset-bottom); }
  .qb.open { transform: none; }
  .qb-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); max-height: 82vh; }
  .qb-side { display: flex; overflow-x: auto; overflow-y: hidden; padding: .3rem .5rem 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .qb-item { width: auto; flex: none; padding: .75rem 1rem; border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
  .qb-item.active { background: none; border-bottom-color: #6d5dfc; }
  .qb-item i { display: none; }
  .qb-panel { padding: 1rem 1.1rem 1.4rem; }
  .qb-subs { grid-template-columns: 1fr; }
  .qb-backdrop.open { background: rgba(0, 0, 0, .55); z-index: 70; }
  .browse-row { flex-wrap: wrap; }
  .browse-row .chips { order: 3; flex-basis: 100%; }
  .browse-row .pill-select { margin-left: auto; }
}
.tile .price { left: .55rem; bottom: .55rem; right: .55rem; width: fit-content; max-width: calc(100% - 1.1rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .weight { right: .55rem; top: .55rem; font-weight: 600; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 1rem 0; }
.empty { color: var(--muted); padding: 2rem 0; text-align: center; }

/* ---------- Detailansicht (Sheet auf Mobil, Modal auf Desktop) ---------- */
dialog {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 1rem 1rem 2rem;
  background: var(--surface); color: var(--text); border: 0; border-radius: 0; overflow-y: auto;
}
dialog::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(3px); }
.close { position: sticky; top: 0; float: right; z-index: 3; width: 40px; height: 40px; border-radius: 50%; padding: 0; font-size: 1.1rem; background: var(--surface-2); border: 1px solid var(--border); }
.detail-top { display: grid; gap: 1.2rem; clear: both; }
.hero { aspect-ratio: 1; background: var(--bg) center / contain no-repeat; border-radius: var(--radius); display: grid; place-items: center; color: var(--muted); }
.thumbs { display: flex; gap: .4rem; overflow-x: auto; margin-top: .5rem; scrollbar-width: thin; }
.thumb { flex: none; width: 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 12px; background: var(--bg) center / cover; }
.thumb:hover { border-color: var(--border); }
.detail-info h2 { margin: 0 0 .5rem; font-size: 1.15rem; line-height: 1.3; }
.detail-price { font-size: 1.6rem; font-weight: 800; margin: .2rem 0 .4rem; letter-spacing: -.02em; }
.opt-block { margin: .9rem 0; }
.opt-label { color: var(--muted); font-size: .85rem; }
.opt-label b { color: var(--text); }
.opts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; max-height: 260px; overflow-y: auto; padding: 3px; }
.opt { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: .45rem .8rem; font-weight: 600; font-size: .85rem; }
.opt.with-img { width: 64px; height: 64px; padding: 0; background: var(--bg) center / cover; position: relative; overflow: hidden; }
.opt.with-img span { position: absolute; inset: auto 0 0 0; font-size: .58rem; background: rgba(15, 17, 21, .8); color: #fff; line-height: 1.15; padding: 2px 3px; max-height: 2.4em; overflow: hidden; }
.opt.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.opt.unavailable { opacity: .3; text-decoration: line-through; }
.detail-buy { display: flex; gap: .7rem; align-items: center; margin: 1.1rem 0 .8rem; flex-wrap: wrap; }
.detail-buy label { display: flex; align-items: center; gap: .5rem; color: var(--muted); }
.detail-buy input { width: 4.5rem; text-align: center; }
.detail-buy .primary { flex: 1; min-width: 190px; }
.qc { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.qc-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.qc-head h3 { margin: 0; }
.qc-total { font-size: .85rem; }
.qc-sizes { margin-left: auto; display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--pill); padding: 2px; }
.qc-size { background: none; border: 0; color: var(--muted); font-weight: 700; font-size: .78rem; width: 2rem; height: 1.7rem; border-radius: var(--pill); cursor: pointer; transition: background .2s, color .2s; }
.qc-size[aria-pressed="true"] { background: var(--accent); color: #fff; }
.qc-tabs { display: flex; gap: .45rem; margin: .7rem 0 .9rem; flex-wrap: wrap; }
.qc-tab { display: inline-flex; align-items: center; gap: .45rem; }
.qc-tab .qc-n { background: rgba(255, 255, 255, .1); border-radius: var(--pill); padding: 0 .45rem; font-size: .72rem; line-height: 1.5; }
.qc-tab.active .qc-n { background: rgba(255, 255, 255, .25); }
.qc-grid { --qc-min: 128px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--qc-min), 45%), 1fr)); gap: .5rem; }   /* am Handy mindestens 2 Spalten */
.qc-tile { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-2); animation: tile-in .35s ease backwards; cursor: zoom-in; }
.qc-tile.loading::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .08) 50%, transparent 80%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.qc-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease, opacity .3s; }
.qc-tile.loading img { opacity: 0; }
.qc-tile:hover img { transform: scale(1.06); }
.qc-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qc-more-row { display: flex; justify-content: center; margin-top: .9rem; }
.qc-empty { display: grid; justify-items: center; gap: .3rem; text-align: center; padding: 1.6rem 1rem; border: 1px dashed var(--border); border-radius: 16px; }
.qc-empty-icon { font-size: 1.8rem; }
.detail-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.qc-edit { margin-top: 1rem; }
.qc-load { margin-top: 1rem; display: grid; gap: .45rem; padding: .7rem .8rem; background: var(--surface-2); border-radius: 14px; }
.qc-load-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.qc-auto { margin-left: auto; }

/* ---------- Bildbetrachter ---------- */
body.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 9, 12, .94); display: grid; animation: lb-in .2s ease; }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; cursor: zoom-out; }
.lb-img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: 8px; cursor: zoom-in; transition: transform .25s ease, opacity .25s; user-select: none; }
.lb-img.zoom { transform: scale(2.2); cursor: zoom-out; }
.lb.loading .lb-img { opacity: .25; }
.lb.loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; animation: lb-spin .8s linear infinite; pointer-events: none; }
.lb-btn { position: absolute; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s, transform .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .26); }
.lb-close { top: 14px; right: 14px; font-size: 1.1rem; }
.lb-nav { top: 50%; margin-top: -22px; }
.lb-nav.prev { left: 14px; } .lb-nav.next { right: 14px; }
.lb-nav:hover { transform: scale(1.08); }
.lb.single .lb-nav { display: none; }
.lb-count, .lb-orig { position: absolute; z-index: 2; bottom: 16px; color: #fff; background: rgba(255, 255, 255, .12); border-radius: var(--pill); padding: .3rem .8rem; font-size: .85rem; text-decoration: none; backdrop-filter: blur(6px); }
.lb-count { left: 50%; transform: translateX(-50%); }
.lb-count:empty { display: none; }
.lb-orig { right: 16px; }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) { .lb-nav { top: auto; bottom: 14px; margin: 0; } .lb-nav.prev { left: 14px; } .lb-nav.next { right: 14px; } .lb-orig { display: none; } }
.qc-edit summary, .alts summary, #cart-settings summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.qc-field { display: block; margin: .6rem 0; font-weight: 600; }
.qc-field textarea { display: block; font-weight: 400; }

/* ---------- Produktseite (wie FindQC) ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 1.2rem; }
.pd { display: grid; gap: 1.2rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; color: var(--muted); font-size: .85rem; }
.back { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--pill); padding: .35rem .9rem; font-weight: 600; margin-right: .3rem; transition: background .2s, transform .15s; }
.back:hover { background: #3a3b42; transform: translateX(-2px); }
.crumb { background: none; border: 0; padding: 0; color: var(--muted); }
.crumb:hover { color: #fff; text-decoration: underline; }
.pd-grid { display: grid; gap: 1.2rem; align-items: start; }
.pd-gallery { display: grid; gap: .7rem; min-width: 0; }
.pd-stage { position: relative; aspect-ratio: 1; background: #1b1c21; border-radius: 28px; overflow: hidden; display: grid; place-items: center; }
.pd-hero { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-hero.in { animation: img-in .4s ease; }
@keyframes img-in { from { opacity: 0; transform: scale(1.04); } }
.pd-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(15, 17, 21, .65); color: #fff; font-size: 1.7rem; line-height: 1; padding: 0 0 .15rem; opacity: 0; transition: opacity .2s, background .2s, transform .2s; }
.pd-arrow.prev { left: .8rem; } .pd-arrow.next { right: .8rem; }
.pd-stage:hover .pd-arrow, .pd-arrow:focus-visible { opacity: 1; }
.pd-arrow:hover { background: var(--accent); transform: translateY(-50%) scale(1.08); }
@media (hover: none) { .pd-arrow { opacity: .85; } }
.pd-count { position: absolute; right: .9rem; bottom: .9rem; background: rgba(15, 17, 21, .7); color: #fff; border-radius: var(--pill); padding: .15rem .65rem; font-size: .75rem; font-weight: 600; }
.pd-count:empty { display: none; }
.pd-gallery .thumbs { margin: 0; padding: 3px; }
.thumb { overflow: hidden; opacity: .75; background: #1b1c21; transition: border-color .2s, transform .2s, opacity .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { opacity: 1; transform: translateY(-2px); }
.thumb.active { border-color: var(--accent); opacity: 1; }
.pd-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.mk { font-size: .72rem; font-weight: 800; letter-spacing: .05em; padding: .2rem .65rem; border-radius: var(--pill); background: var(--surface-2); }
.mk-1688 { background: rgba(251, 146, 60, .18); color: #fb923c; }
.mk-taobao { background: rgba(249, 115, 22, .18); color: #f97316; }
.mk-weidian { background: rgba(244, 63, 94, .18); color: #fb7185; }
.tag-chip { font-size: .75rem; font-weight: 600; padding: .2rem .7rem; border-radius: var(--pill); background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.pd-title { font-size: 1.3rem; line-height: 1.3; margin: 0 0 .4rem; letter-spacing: -.01em; }
.pd-facts { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.2rem; margin: 1rem 0 .8rem; font-size: .88rem; }
.pd-facts dt { color: var(--muted); } .pd-facts dd { margin: 0; }
.detail-info.card .detail-buy { margin-top: 1.2rem; }
.detail-buy .primary { transition: filter .2s, transform .15s, background .25s; }
.detail-buy .primary:active:not(:disabled) { transform: scale(.97); }
.pd-qc .qc { margin: 0; padding: 0; border: 0; }
.pd-similar h3 { font-size: 1.2rem; margin-bottom: .9rem; }
.pd-skel { aspect-ratio: 1; border-radius: 28px; }
.pd-skel.info { aspect-ratio: auto; min-height: 360px; }
.opt { transition: border-color .2s, box-shadow .2s, transform .15s, opacity .2s; }
.opt:hover:not(.unavailable) { transform: translateY(-1px); }
@media (min-width: 900px) {
  .pd-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.6rem; }
  .pd-gallery { position: sticky; top: 84px; }
  .pd-title { font-size: 1.6rem; }
  .card { padding: 1.6rem; }
}

/* ---------- Warenkorb ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }   /* minmax(0, 1fr): lange Namen dehnen die Seite sonst über den Bildschirm */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.cart-list { display: grid; gap: .7rem; margin-bottom: 1rem; }
.cart-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: .8rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem; }
.cart-item .ci-img { width: 72px; height: 72px; border-radius: 14px; background: var(--bg) center / cover; }
.ci-name { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ci-var { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.ci-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-top: .6rem; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--pill); background: var(--surface-2); }
.stepper button { width: 34px; height: 34px; border: 0; background: none; font-size: 1.1rem; border-radius: 50%; }
.stepper span { min-width: 1.8rem; text-align: center; font-weight: 700; }
.ci-weight { display: flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .8rem; }
.ci-weight input { width: 5rem; padding: .35rem .5rem; border-radius: 10px; }
.ci-price { margin-left: auto; text-align: right; font-weight: 700; }
.ci-price small { display: block; color: var(--muted); font-weight: 500; }
.ci-remove { background: none; border: 0; color: var(--muted); font-size: .8rem; text-decoration: underline; padding: 0; }

/* Mehrere Warenkörbe: Reiter, Name zum Umbenennen, Verschieben, Ziel beim Hinzufügen */
.cart-head { margin-bottom: .9rem; }
.cart-tabs { flex: none; max-width: 100%; }
.cart-tab .t { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }
.cart-add { border-style: dashed; color: var(--muted); }
.cart-namebar { display: flex; align-items: center; gap: .5rem; margin-top: .7rem; }
.cart-namebar > span { color: var(--muted); }
.cart-name { flex: 1; min-width: 0; font-size: 1.1rem; font-weight: 700; background: transparent; border: 1px solid transparent; border-bottom-color: var(--border); border-radius: 10px; padding: .45rem .6rem; }
.cart-name:focus { background: var(--surface-2); border-color: var(--accent); }
.cart-del { flex: none; }
.ci-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .9rem; margin-top: .4rem; }
.ci-move { flex: 1 1 10rem; min-width: 0; max-width: 100%; font-size: .8rem; padding: .3rem .6rem; border-radius: var(--pill); text-overflow: ellipsis; }
.cart-pick-row { display: flex; align-items: center; gap: .5rem; margin-top: .2rem; color: var(--muted); font-size: .9rem; }
.cart-pick { flex: 1; min-width: 0; padding: .45rem .7rem; border-radius: var(--pill); font-weight: 600; }
.tag { display: inline-block; font-size: .7rem; padding: 0 .5rem; border-radius: var(--pill); background: rgba(250, 204, 21, .16); color: #facc15; margin-left: .4rem; font-weight: 600; }
#cart-settings summary { padding: .1rem 0; }
.fields { display: grid; gap: .8rem; margin-top: .9rem; }
.fields label { display: grid; gap: .3rem; color: var(--muted); font-size: .85rem; }
.fields input, .fields select { color: var(--text); }
.summary-card { margin: 0; }
.summary { width: 100%; border-collapse: collapse; }
.summary td { padding: .4rem 0; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: top; }
.summary td:first-child { color: var(--muted); padding-right: 1rem; }
.summary .total td { font-size: 1.25rem; font-weight: 800; color: #fff; border-bottom: 0; padding-top: .9rem; }
.alts { margin-top: .6rem; }
.alts ul { padding-left: 1.1rem; color: var(--muted); font-size: .85rem; }
#cart-clear { margin-top: 1rem; }

/* ---------- Hinzufügen / Verwaltung ---------- */
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.row input { flex: 1; min-width: 200px; }
.bookmarklet { display: inline-block; padding: .4rem 1rem; background: var(--text); color: #0f172a; border-radius: var(--pill); font-weight: 700; text-decoration: none; cursor: grab; }
label.inline { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .85rem; }
label.inline input[type=number] { width: 4.5rem; text-align: center; padding: .4rem .5rem; }
label.inline input[type=checkbox] { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.field-label { display: block; font-weight: 600; margin-bottom: .2rem; }
code { background: var(--surface-2); border-radius: 6px; padding: 0 .35rem; font-size: .85em; }
details.panel > summary { cursor: pointer; font-weight: 600; color: var(--muted); }
details.panel[open] > summary { margin-bottom: .8rem; }
.links-status { margin-top: .8rem; display: grid; gap: .4rem; }
.link-row { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; background: var(--surface-2); border-radius: 14px; padding: .55rem .8rem; }
.link-row .st { flex: none; width: 1.2rem; text-align: center; }
.link-row .what { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.link-row.skipped { opacity: .7; }
.link-row .badge { flex: none; align-self: center; background: rgba(250, 204, 21, .2); color: #facc15; }
.warn { background: rgba(250, 204, 21, .12); border: 1px solid rgba(250, 204, 21, .35); color: #fde68a; border-radius: 14px; padding: .6rem .85rem; margin-bottom: .6rem; font-size: .85rem; display: grid; gap: .3rem; }
.link-row.ok .st { color: #4ade80; }
.link-row.fail .st { color: var(--danger); }
ol { padding-left: 1.2rem; }
li { margin: .4rem 0; }
.recent { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.recent span { flex: 1; min-width: 200px; }
.table-scroll { overflow-x: auto; margin-top: .6rem; }
.table-scroll table { border-collapse: collapse; width: 100%; font-size: .82rem; }
.table-scroll th, .table-scroll td { border-bottom: 1px solid var(--border); padding: .4rem .5rem; text-align: left; white-space: nowrap; }

/* ---------- Tablet / Desktop ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: .9rem; }
  .fields { grid-template-columns: 1fr 1fr; }
  .tile .price, .tile .weight { font-size: .82rem; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .topbar { background: rgba(35, 36, 42, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .topbar-inner { padding: .8rem 1.5rem; }
  /* Navigation wandert in die Kopfzeile */
  #nav {
    position: static; display: flex; gap: .35rem; height: auto; padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
    margin-left: 1.5rem;
  }
  #nav button { flex-direction: row; gap: .45rem; font-size: .88rem; padding: .5rem .95rem; border-radius: var(--pill); }
  #nav button svg { width: 18px; height: 18px; }
  #nav button:hover { background: var(--surface-2); }
  #nav button.active { background: var(--text); color: #0f172a; }
  #nav button.active svg { stroke: #0f172a; }
  #nav [data-view="search"] { display: none; }          /* am PC steht das Suchfeld immer oben */
  #nav .badge { position: static; }
  main { padding: 1.5rem; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
  .cart-layout { grid-template-columns: minmax(0, 1fr) 380px; }
  .summary-card { position: sticky; top: 84px; }
  .fields { grid-template-columns: 1fr; }
  dialog { width: min(1040px, 94vw); height: auto; max-height: 92vh; margin: auto; border: 1px solid var(--border); border-radius: 28px; padding: 1.5rem 1.8rem 2rem; }
  .detail-top { grid-template-columns: minmax(280px, 440px) 1fr; gap: 2rem; }
  .detail-info h2 { font-size: 1.35rem; }
}
@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(5, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.pd-hero { cursor: zoom-in; }
.tile .hot { position: absolute; z-index: 2; left: .55rem; top: .55rem; background: rgba(15, 17, 21, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; border-radius: var(--pill); font-weight: 700; padding: .22rem .6rem; font-size: .76rem; line-height: 1.3; }
.list-end { min-height: 3rem; text-align: center; padding: 1.2rem 0 2rem; font-size: .9rem; }

/* ---------- Look nachbauen (Bildsuche): Leiste unter dem Foto und „Dein Look“ ---------- */
.look-chip { border-style: dashed; }
.look-chip.active { border-style: solid; }
.look-bar { display: grid; gap: .55rem; margin-top: .7rem; padding: .75rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.look-bar[hidden] { display: none; }
.lk-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.lk-note { color: var(--accent); }
.lk-types { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.lk-types .lbl { margin-right: .1rem; }
.lk-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.lk-row .primary { min-height: 40px; padding: .5rem 1rem; font-size: .9rem; }
.lk-strip { display: flex; align-items: center; gap: .5rem; overflow-x: auto; padding: .1rem 0 .2rem; scrollbar-width: none; }
.lk-strip::-webkit-scrollbar { display: none; }
.lk-strip .primary { flex: none; min-height: 40px; padding: .5rem 1rem; font-size: .9rem; margin-left: auto; }
.lk-mini { flex: none; display: flex; align-items: center; gap: .25rem; padding: .25rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.lk-mini img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; background: var(--bg); }
.lk-mini i { color: var(--muted); font-style: normal; font-size: .8rem; }
.tile.look-pick { cursor: copy; }
.tile.look-in { outline: 3px solid var(--accent); outline-offset: -3px; }
.tile.look-in::before { content: "✓ im Look"; position: absolute; z-index: 3; top: .55rem; left: .55rem; background: var(--accent); color: #0E0B1D; font-weight: 800; font-size: .72rem; border-radius: 999px; padding: .2rem .6rem; }
.tile.look-in .hot { display: none; }

body.lk-open { overflow: hidden; }
.lk-sheet { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; background: var(--bg); animation: lk-in .22s ease-out; }
@keyframes lk-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.lk-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: calc(.7rem + env(safe-area-inset-top)) 1rem .7rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.lk-top h2 { margin: 0; font-size: 1.25rem; }
.lk-top .close { position: static; float: none; }
.lk-body { flex: 1; overflow-y: auto; padding: 1rem 1rem calc(1.5rem + env(safe-area-inset-bottom)); max-width: 820px; width: 100%; margin: 0 auto; display: grid; gap: 1rem; align-content: start; }
.lk-cards { display: grid; gap: .75rem; }
.lk-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: .8rem; padding: .75rem; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.lk-card.bad { border-color: var(--danger); }
.lk-thumbs { position: relative; }
.lk-img { width: 96px; height: 96px; object-fit: cover; border-radius: 14px; background: var(--bg); cursor: pointer; }
.lk-crop { position: absolute; left: -6px; bottom: -6px; width: 44px; height: 44px; object-fit: cover; border-radius: 10px; border: 2px solid var(--accent); background: var(--bg); box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.lk-info { min-width: 0; display: grid; gap: .35rem; align-content: start; }
.lk-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.lk-price b { font-size: 1.05rem; }
.lk-vars { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .4rem; }
.lk-var { min-width: 0; padding: .45rem .6rem; border-radius: 12px; font-size: .9rem; text-overflow: ellipsis; }
.lk-alts { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem 0; }
.lk-alts[hidden] { display: none; }
.lk-alt { flex: none; width: 92px; display: grid; gap: .2rem; text-align: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: .3rem; }
.lk-alt img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.lk-alt span { font-size: .68rem; color: var(--muted); }
.lk-sum { display: grid; gap: .35rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.lk-line { display: flex; justify-content: space-between; gap: 1rem; }
.lk-line b { text-align: right; }
.lk-line.total { margin-top: .3rem; padding-top: .6rem; border-top: 1px solid var(--border); font-size: 1.15rem; }
.lk-actions { display: grid; gap: .6rem; }
.lk-cartrow { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.lk-cartrow .cart-pick { flex: 1 1 8rem; }
.lk-cartrow .primary { flex: 2 1 12rem; }
