/* Blask — jasny design inspirowany Apple HIG.
   Świadomie jeden motyw: biel + #F5F5F7, hairline'y, niebieski akcent. */

:root {
  --bg: #FFFFFF;
  --panel: #F5F5F7;
  --panel-2: #FAFAFC;
  --text: #1D1D1F;
  --muted: #6E6E73;
  --faint: #86868B;
  --hair: rgba(0, 0, 0, .10);
  --hair-soft: rgba(0, 0, 0, .06);
  /* Akcent marki: żółty. Wypełnienia = żółty z ciemnym tekstem; teksty/linki
     na bieli = ciemniejszy bursztyn (kontrast AA). */
  --blue: #F2E6A0;                    /* butter yellow (Benjamin Moore 2023-60) — wypełnienia */
  --blue-hover: #E9DB86;
  --blue-tint: rgba(242, 230, 160, .42);
  --accent: #F2E6A0;                  /* alias wypełnienia */
  --accent-ink: #8A6100;              /* akcent na tekstach/ikonach (czytelny na bieli) */
  --ink-on-accent: #1D1D1F;           /* tekst na maślanym przycisku */
  --green: #248A3D;
  --green-tint: #EBF6EE;
  --red: #E30000;
  --star: #F5A623;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, .04);
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, .10);
  --shadow-pop: 0 18px 50px rgba(0, 0, 0, .16);
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 15px; line-height: 1.47;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
button { font-family: var(--sans); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

/* ============ Header ============ */
header.main {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair-soft);
}
.head-row { display: flex; align-items: center; gap: 18px; padding: 11px 0; }
.logo {
  border: none; background: none; cursor: pointer; padding: 4px 2px;
  font-size: 21px; font-weight: 700; letter-spacing: -.03em; color: var(--text);
  line-height: 1; flex: none; display: inline-flex; align-items: center;
}
.logo i { font-style: normal; color: var(--accent-ink); }
.logo-mk { width: .96em; height: .96em; flex: none; margin-right: 6px;
  filter: drop-shadow(0 1px 4px rgba(224,168,0,.45)); transition: transform .3s cubic-bezier(.2,.7,.3,1); }
.logo:hover .logo-mk { transform: rotate(90deg) scale(1.08); }

.hsearch { flex: 1; position: relative; max-width: 460px; margin: 0 auto; }
.hsearch-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border-radius: 999px; padding: 0 6px 0 14px;
  transition: background .18s, box-shadow .18s;
}
.hsearch-box:focus-within {
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--hair), 0 0 0 4px var(--blue-tint), var(--shadow-card);
}
.hsearch-box .mag { color: var(--faint); flex: none; }
#q {
  flex: 1; border: none; background: transparent; min-width: 0;
  padding: 10px 0; font-size: 14.5px; color: var(--text); font-family: var(--sans);
}
#q:focus { outline: none; }
#q::placeholder { color: var(--faint); }
.hsearch-btn {
  border: none; background: var(--blue); color: var(--ink-on-accent); cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center; transition: background .15s;
}
.hsearch-btn:hover { background: var(--blue-hover); }

.head-actions { display: flex; gap: 2px; flex: none; }
.hact {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 50px; border: none; background: none; cursor: pointer;
  color: var(--muted); font-size: 10.5px; padding: 4px 5px; border-radius: 10px;
  position: relative; transition: color .15s;
}
.hact svg { width: 19px; height: 19px; }
.hact:hover { color: var(--accent-ink); }
.hact .cnt {
  position: absolute; top: -2px; right: 8px; min-width: 16px; height: 16px;
  border-radius: 999px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 600; display: grid; place-items: center; padding: 0 4px;
}
.hact .cnt[hidden] { display: none; }

/* Category nav */
.catnav { background: transparent; }
.catnav-inner {
  display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none;
  justify-content: center; padding: 0 22px;
}
.catnav-inner::-webkit-scrollbar { display: none; }
.catlink {
  border: none; background: none; cursor: pointer; white-space: nowrap;
  font-size: 12.5px; font-weight: 400; color: var(--muted); padding: 9px 0;
  border-bottom: 1.5px solid transparent; transition: color .15s;
}
.catlink:hover { color: var(--text); }
.catlink.on { color: var(--text); font-weight: 600; border-bottom-color: var(--text); }

/* ============ Autocomplete ============ */
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 90;
  background: var(--bg); border-radius: 16px; overflow: hidden; display: none;
  box-shadow: 0 0 0 1px var(--hair-soft), var(--shadow-pop);
}
.suggest.show { display: block; }
.sug-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer;
}
.sug-item + .sug-item { border-top: 1px solid var(--hair-soft); }
.sug-item:hover, .sug-item.active { background: var(--panel); }
.sug-thumb {
  width: 40px; height: 44px; flex: none; border-radius: 8px;
  background: var(--panel); display: grid; place-items: center; overflow: hidden;
}
.sug-thumb svg { width: 34px; height: 40px; }
.sug-body { flex: 1; min-width: 0; }
.sug-name { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug-name b { color: var(--accent-ink); font-weight: 600; }
.sug-meta { font-size: 11.5px; color: var(--faint); }
.sug-price { text-align: right; font-size: 11px; color: var(--faint); white-space: nowrap; }
.sug-price b { display: block; color: var(--text); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sug-empty { padding: 18px; color: var(--muted); text-align: center; font-size: 13.5px; }

/* ============ Hero ============ */
.hero { text-align: center; padding: 54px 0 44px; background: radial-gradient(120% 74% at 50% -8%, rgba(242,230,160,.34), transparent 64%); }
.hero h1 {
  font-size: clamp(26px, 6vw, 48px); font-weight: 700; letter-spacing: -.03em;
  line-height: 1.08; margin: 0 0 10px; text-wrap: balance; overflow-wrap: break-word;
}
.hero h1 i { font-style: normal; color: #D6A200; }  /* żółty złocisty, czytelny na bieli */
.hero .sub {
  font-size: clamp(16px, 2vw, 19px); color: var(--muted); margin: 0 auto;
  max-width: 54ch; font-weight: 400;
}
.hero-stats {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 20px;
}
.hero-stats .hstat {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 12.5px; color: var(--muted);
  background: var(--panel); padding: 7px 14px; border-radius: 999px;
}
.hero-stats .hstat b { color: var(--text); font-weight: 700; }

/* ============ Toolbar ============ */
.toolbar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; padding: 6px 0 18px; flex-wrap: wrap;
}
.toolbar h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.toolbar .res { color: var(--faint); font-weight: 400; font-size: 13px; margin-left: 8px; }
.sort-wrap { display: flex; align-items: center; gap: 8px; }
.sort-wrap label { font-size: 12.5px; color: var(--faint); }
select.sort {
  appearance: none; font-family: var(--sans); font-size: 13px; color: var(--text);
  background: var(--panel); border: none; border-radius: 999px;
  padding: 7px 30px 7px 14px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2386868B' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
select.sort:focus { outline: none; box-shadow: 0 0 0 4px var(--blue-tint); }

/* ============ Strona główna: kafelki, karuzele, marki ============ */
#homeSections { padding-top: 8px; }
.hcats { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 22px; }
.hcats::-webkit-scrollbar { display: none; }
.hcat {
  flex: 1 0 auto; min-width: 104px; border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 4px;
}
.hcat-ic {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--hair);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s;
}
.hcat-ic svg { width: 28px; height: 28px; stroke-width: 1.5; }
.hcat:hover .hcat-ic { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--text); }
.hcat-nm { font-size: 12.5px; font-weight: 600; color: var(--text); text-align: center; letter-spacing: -.01em; }

.hrow { margin: 0 0 34px; }
.hrow-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hrow-title { display: flex; align-items: center; gap: 11px; }
.hrow-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--hair); }
.hrow-ic svg { width: 19px; height: 19px; stroke-width: 1.6; }
.hrow-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.hrow-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--faint); }
.hrow-all {
  flex: none; display: inline-flex; align-items: center; gap: 5px; border: none; background: none;
  color: var(--accent-ink); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; padding: 4px;
}
.hrow-all:hover { opacity: .72; }
.row-scroll {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 4px 2px 6px; margin: 0 -2px;
}
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll .pcard { flex: 0 0 172px; width: 172px; scroll-snap-align: start; animation: none; }

.hbrands { display: flex; flex-wrap: wrap; gap: 9px; }
.hbrand {
  border: none; background: var(--panel); color: var(--text); cursor: pointer;
  font-size: 13px; font-weight: 600; border-radius: 999px; padding: 9px 16px;
  transition: background .15s, color .15s;
}
.hbrand:hover { background: var(--accent); color: var(--ink-on-accent); }

.toolbar { scroll-margin-top: 116px; }

/* ============ Product grid ============ */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-bottom: 64px; }
.pcard {
  position: relative; background: var(--bg); border-radius: 18px;
  box-shadow: 0 0 0 1px var(--hair-soft), var(--shadow-card);
  padding: 12px; cursor: pointer; text-align: left;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.pcard:hover { box-shadow: 0 0 0 1px var(--hair-soft), var(--shadow-hover); transform: translateY(-3px); }
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pcard { animation: cardIn .32s cubic-bezier(.2,.7,.3,1) both; }
.pimg {
  height: 158px; border-radius: 14px; margin-bottom: 12px; overflow: hidden;
  display: grid; place-items: center; position: relative;
  background:
    radial-gradient(120% 90% at 50% 8%, #FFFFFF 0%, var(--panel) 70%);
}
:root[data-theme="dark"] .pimg { background: radial-gradient(120% 90% at 50% 8%, #2A2233 0%, var(--panel) 72%); }
.pimg::before { /* subtelny „podest" pod produktem */
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 14px; height: 12px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(28,21,38,.16), transparent 75%);
  filter: blur(2px);
}
.pimg svg { width: 112px; height: 140px; position: relative; z-index: 1;
  filter: drop-shadow(0 6px 10px rgba(28,21,38,.10)); }
.pcard:hover .pimg svg { transform: translateY(-3px); }
.pimg svg, .pcard { transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .2s; }
.badge {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  font-size: 11.5px; font-weight: 600; color: var(--red);
  background: var(--bg); border-radius: 999px; padding: 3px 9px;
  box-shadow: 0 0 0 1px var(--hair-soft), var(--shadow-card);
}
.fav {
  position: absolute; top: 20px; right: 20px; z-index: 3; width: 30px; height: 30px;
  border-radius: 50%; border: none; background: var(--bg);
  box-shadow: 0 0 0 1px var(--hair-soft), var(--shadow-card);
  display: grid; place-items: center; cursor: pointer; color: var(--faint);
  transition: color .15s, transform .1s;
}
.fav:hover { color: var(--red); }
.fav.on { color: var(--red); }
.fav:active { transform: scale(.9); }
.pbrand { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.pname { font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1.28; margin: 3px 0 5px; min-height: 36px; }
.prating { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--faint); margin-bottom: 10px; }
.stars { display: inline-flex; color: var(--star); letter-spacing: .5px; font-size: 11px; }
.pfoot { margin-top: auto; }
.pfrom { font-size: 11px; color: var(--faint); }
.pprice { display: flex; align-items: baseline; gap: 7px; }
.pprice .now { font-size: 17px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pprice .high { font-size: 12px; color: var(--faint); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.pstores { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.pstores b { color: var(--green); font-weight: 600; }
/* Pasek filtrów katalogu */
.catfilter { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 2px 0 18px; }
.catfilter[hidden] { display: none; }
.catfilter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  appearance: none; border: 1px solid var(--border-2); background: var(--surface); color: var(--muted);
  font-family: var(--sans); font-size: 13px; font-weight: 500; padding: 7px 15px; border-radius: 999px; cursor: pointer;
  transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--faint); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--ink-on-accent); }
.catfilter-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.catfilter-toggle input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }

.more-wrap { grid-column: 1/-1; display: flex; justify-content: center; padding: 22px 0 8px; }
.more-btn {
  appearance: none; border: 1px solid var(--border-2); background: var(--surface); color: var(--text);
  font-family: var(--sans); font-size: 14px; font-weight: 600; padding: 12px 26px; border-radius: 999px;
  cursor: pointer; transition: border-color .15s, color .15s;
}
.more-btn:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.empty { grid-column: 1/-1; text-align: center; padding: 70px 0; color: var(--muted); }
.empty .t { font-size: 19px; font-weight: 600; color: var(--text); margin-bottom: 6px; letter-spacing: -.01em; }

/* ============ Product page ============ */
#pdp { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--faint); padding: 18px 0 6px; flex-wrap: wrap; }
.crumbs button {
  border: none; background: none; cursor: pointer; color: var(--muted);
  font-size: 12.5px; padding: 2px 2px; border-radius: 5px; font-family: var(--sans);
}
.crumbs button:hover { color: var(--accent-ink); }
.crumbs .sep { color: var(--hair); }

.pdp-grid { display: grid; grid-template-columns: 400px 1fr; gap: 34px; padding: 16px 0 8px; align-items: start; }
.pdp-visual {
  border-radius: 22px; height: 400px; position: relative;
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 6%, #FFFFFF 0%, var(--panel) 70%);
  box-shadow: 0 0 0 1px var(--hair-soft);
}
.pdp-visual::before { /* podest pod produktem */
  content: ""; position: absolute; left: 26%; right: 26%; bottom: 40px; height: 20px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(28,21,38,.16), transparent 75%);
  filter: blur(3px);
}
.pdp-visual svg { width: 250px; height: 320px; position: relative; z-index: 1;
  filter: drop-shadow(0 10px 16px rgba(28,21,38,.12)); }
.pdp-brand { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.pdp-name {
  font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.025em;
  line-height: 1.12; margin: 4px 0 6px; text-wrap: balance;
}
.pdp-sub { font-size: 14px; color: var(--muted); }
.pdp-rating { display: flex; align-items: center; gap: 7px; margin: 10px 0 20px; font-size: 13px; color: var(--muted); }

.buybox {
  border-radius: 18px; background: var(--panel); padding: 22px; margin-bottom: 14px;
}
.buybox .lbl { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.buybox-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.buybox .amt { font-size: 38px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.buybox .amt .cur { font-size: 17px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.buybox .at { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.buybox .at b { color: var(--text); font-weight: 600; }
.cta {
  display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: var(--ink-on-accent);
  border: none; border-radius: 999px; padding: 12px 24px; font-size: 15px; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: background .15s, transform .1s;
}
.cta:hover { background: var(--blue-hover); }
.cta:active { transform: scale(.98); }
.save-note {
  display: inline-flex; align-items: center; gap: 6px; color: var(--green);
  font-size: 13px; font-weight: 600; margin-top: 14px;
}

.mini-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mini {
  display: inline-flex; align-items: center; gap: 7px; border: none;
  background: var(--panel); color: var(--text); font-size: 13px; font-weight: 500;
  border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: background .15s, color .15s;
}
.mini:hover { background: #EBEBEF; }
.mini.on { background: var(--blue-tint); color: var(--accent-ink); }

/* Offers */
.offers-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.offers-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.offers-head .res { color: var(--faint); font-weight: 400; font-size: 13px; margin-left: 8px; }
.offers-head .hint { font-size: 12.5px; color: var(--faint); }
.offers {
  border-radius: 18px; overflow: hidden; margin-bottom: 10px;
  box-shadow: 0 0 0 1px var(--hair-soft), var(--shadow-card); background: var(--bg);
}
.offer {
  display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 16px; align-items: center;
  padding: 16px 20px; font-size: 14px; position: relative;
}
.offer + .offer { border-top: 1px solid var(--hair-soft); }
.offer.best {
  background: linear-gradient(90deg, var(--green-tint), transparent 70%);
  box-shadow: inset 3px 0 0 var(--green);
}
.offer-store { display: flex; align-items: center; gap: 11px; min-width: 0; }
.store-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.offer-store .nm { font-weight: 600; font-size: 14.5px; }
.offer-store .dl { font-size: 12px; color: var(--faint); margin-top: 1px; }
.bflag {
  font-size: 11px; font-weight: 600; color: var(--green);
  background: var(--green-tint); border-radius: 999px; padding: 2px 9px; margin-left: 8px;
  vertical-align: 1px;
}
.offer-price .now { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.offer.best .offer-price .now { color: var(--green); }
.offer-price .was { font-size: 12px; color: var(--faint); text-decoration: line-through; margin-left: 7px; font-variant-numeric: tabular-nums; }
.offer-price .ppu { font-size: 11px; color: var(--faint); margin-top: 1px; }
.buy {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--accent-ink); background: transparent; color: var(--accent-ink);
  font-size: 13px; font-weight: 500; border-radius: 999px; padding: 8px 16px;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: all .15s;
}
.buy:hover { background: var(--blue-tint); }
.offer.best .buy { background: var(--blue); color: var(--ink-on-accent); }
.offer.best .buy:hover { background: var(--blue-hover); }
.offer.oos { opacity: .5; }
.offer.oos .offer-price .now { text-decoration: line-through; color: var(--faint); }
.oos-pill { font-size: 12px; color: var(--faint); white-space: nowrap; }
.pdp-note { display: flex; gap: 8px; font-size: 11.5px; color: var(--faint); padding: 8px 2px 0; }
.pdp-note svg { flex: none; margin-top: 1px; }

/* historia ceny */
.pricehist { margin-top: 26px; padding: 18px 20px 14px; background: var(--bg); border-radius: 18px; box-shadow: 0 0 0 1px var(--hair-soft), var(--shadow-card); }
.ph-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ph-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.ph-trend { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.ph-trend.down { color: var(--green); background: var(--green-tint); }
.ph-trend.up { color: #B4321F; background: rgba(180,50,31,.08); }
.ph-trend.flat { color: var(--faint); background: var(--panel); }
.ph-chart { width: 100%; position: relative; touch-action: pan-y; cursor: crosshair; }
.ph-chart svg { width: 100%; height: auto; display: block; }
.ph-cur { stroke: var(--accent-ink); stroke-width: 1.4; stroke-dasharray: 3 3; opacity: .5; }
.ph-curdot { fill: var(--accent-ink); stroke: #fff; stroke-width: 2; }
.ph-tip { position: absolute; top: 2px; transform: translateX(-50%); background: #1D1D1F; color: #fff; padding: 5px 9px; border-radius: 9px; font-size: 12px; line-height: 1.25; text-align: center; white-space: nowrap; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.22); z-index: 2; }
.ph-tip b { display: block; font-size: 13px; }
.ph-tip span { color: #C9C9CE; font-size: 10.5px; }
.ph-ranges { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.ph-range { font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--hair-soft); background: var(--bg); color: var(--muted); cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.ph-range:hover { border-color: rgba(0,0,0,.14); }
.ph-range.on { background: var(--blue); border-color: var(--blue); color: var(--accent-ink); font-weight: 700; }
.ph-grid { stroke: var(--hair); stroke-width: 1; stroke-dasharray: 3 4; }
.ph-axis { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 12px; color: var(--faint); }
.ph-axis .ph-lo { text-align: center; }

/* ============ Promocja miesiąca (hero) ============ */
.deal-hero { display: flex; align-items: center; gap: 20px; margin: 6px 0 26px; padding: 18px 22px; border-radius: 22px; cursor: pointer;
  background: linear-gradient(120deg, #FBF3CE 0%, #F6E8A6 46%, #F0E09A 100%);
  box-shadow: 0 0 0 1px rgba(138,97,0,.14), 0 12px 30px rgba(138,97,0,.14); transition: transform .16s, box-shadow .16s; }
.deal-hero:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(138,97,0,.2), 0 18px 40px rgba(138,97,0,.2); }
.dh-visual { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 6px 16px rgba(138,97,0,.16); position: relative; }
.dh-visual svg, .dh-visual img.pphoto { width: 100%; height: 100%; object-fit: cover; display: block; }
.dh-body { flex: 1; min-width: 0; }
.dh-label { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; }
.dh-name { font-size: 16px; color: #3A2E05; line-height: 1.3; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-name b { font-weight: 800; }
.dh-prices { display: flex; align-items: baseline; gap: 9px; }
.dh-badge { font-size: 13px; font-weight: 800; color: #fff; background: #B4321F; padding: 3px 9px; border-radius: 8px; }
.dh-now { font-size: 24px; font-weight: 800; color: #2A2205; letter-spacing: -.02em; }
.dh-old { font-size: 14px; color: #8A7A45; text-decoration: line-through; }
.dh-meta { font-size: 13px; color: #6E5E20; margin-top: 6px; }
.dh-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--accent-ink); }
@media (max-width: 560px){
  .deal-hero { gap: 14px; padding: 16px; }
  .dh-visual { flex-basis: 74px; width: 74px; height: 74px; }
  .dh-now { font-size: 21px; }
  .dh-name { white-space: normal; }
}

/* ============ Pasek filtrów ============ */
.filterbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 4px 0 18px; }
.filterbar[hidden] { display: none; }
.fgroup { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.flabel { font-size: 12px; font-weight: 600; color: var(--faint); margin-right: 2px; }
.fchip { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--hair-soft); background: var(--bg); color: var(--muted); cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.fchip:hover { border-color: rgba(0,0,0,.14); }
.fchip.on { background: var(--blue); border-color: var(--blue); color: var(--accent-ink); font-weight: 700; }
.fclear { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: none; background: transparent; color: var(--accent-ink); cursor: pointer; }
.fclear:hover { background: var(--panel); }

/* ============ Skład / INCI ============ */
.ingredients { margin-top: 12px; padding: 18px 20px 16px; background: var(--bg); border-radius: 18px; box-shadow: 0 0 0 1px var(--hair-soft), var(--shadow-card); }
.ing-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ing-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.ing-sub { font-size: 12.5px; color: var(--faint); }
.inci-list { display: flex; flex-wrap: wrap; gap: 6px; }
.inci-chip { font-size: 12.5px; line-height: 1; padding: 6px 9px; border-radius: 8px; background: var(--panel); color: var(--muted); white-space: nowrap; }
.inci-chip.f-good { background: var(--green-tint); color: #1F7A44; font-weight: 600; }
.inci-chip.f-det, .inci-chip.f-con, .inci-chip.f-alc { background: rgba(180,50,31,.09); color: #B4321F; font-weight: 600; }
.inci-chip.f-fra { background: #FBEFC8; color: var(--accent-ink); font-weight: 600; }
.inci-chip.f-sil { background: #EEF1F6; color: #4A5A78; font-weight: 600; }
.inci-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.inci-src { margin-top: 8px; font-size: 11.5px; color: var(--faint); }
.inci-src a { color: var(--accent-ink); }
.inci-empty { font-size: 13.5px; color: var(--faint); }

.related-head { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 40px 0 16px; }

/* ============ Przycisk „Powrót" ============ */
.back-btn { display: inline-flex; align-items: center; gap: 5px; margin: 4px 0 14px; padding: 7px 14px 7px 10px; font-size: 14px; font-weight: 600; color: var(--accent-ink); background: transparent; border: none; border-radius: 999px; cursor: pointer; transition: background .14s, transform .14s; }
.back-btn svg { transition: transform .14s; }
.back-btn:hover { background: var(--blue); }
.back-btn:hover svg { transform: translateX(-2px); }
.back-btn:active { transform: scale(.97); }

/* ============ Info pages ============ */
#info { display: none; }
.info-body { max-width: 720px; margin: 0 auto; padding: 8px 0 40px; }
.info-body h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.02em; margin: 8px 0 6px; }
.info-body .lede { font-size: 16px; color: var(--muted); margin: 0 0 26px; }
.info-body h2 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin: 28px 0 8px; }
.info-body p { font-size: 15px; color: var(--text); line-height: 1.6; margin: 0 0 12px; }
.info-body ul { margin: 0 0 12px; padding-left: 20px; }
.info-body li { font-size: 15px; color: var(--text); line-height: 1.6; margin-bottom: 6px; }
.info-body a { color: var(--accent-ink); }
.info-body .muted { color: var(--faint); font-size: 13px; }
.info-body .card {
  background: var(--panel); border-radius: 16px; padding: 20px 22px; margin: 8px 0 20px;
}
.info-body .card p:last-child { margin-bottom: 0; }
.info-body .cta {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--ink-on-accent);
  border: none; border-radius: 999px; padding: 11px 22px; font-size: 14.5px; font-weight: 500;
  text-decoration: none; margin-top: 6px;
}
.foot-disclosure {
  border-top: 1px solid var(--hair-soft); margin-top: 24px; padding-top: 16px;
  font-size: 12.5px; color: var(--muted); line-height: 1.55;
}
.foot-disclosure a { color: var(--accent-ink); text-decoration: none; }

/* ============ Trust & footer ============ */
.trust { background: var(--panel); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding: 40px 0; }
.titem { text-align: center; }
.titem .ic {
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg); color: var(--accent-ink);
  display: grid; place-items: center; margin: 0 auto 12px;
  box-shadow: 0 0 0 1px var(--hair-soft), var(--shadow-card);
}
.titem h4 { font-size: 14px; font-weight: 600; margin: 0 0 4px; letter-spacing: -.01em; }
.titem p { font-size: 12.5px; color: var(--muted); margin: 0; }

footer { background: var(--panel); border-top: 1px solid var(--hair-soft); padding: 26px 0 36px; }
.foot-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-brand .logo { font-size: 17px; }
.foot-brand p { font-size: 12px; color: var(--faint); margin: 8px 0 0; max-width: 36ch; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h5 { font-size: 12px; font-weight: 600; color: var(--text); margin: 0 0 10px; }
.foot-col a { display: block; font-size: 12px; color: var(--muted); text-decoration: none; margin-bottom: 8px; }
.foot-col a:hover { color: var(--text); text-decoration: underline; }
.foot-legal {
  border-top: 1px solid var(--hair-soft); margin-top: 24px; padding-top: 16px;
  font-size: 11.5px; color: var(--faint);
}

/* Product photos over illustration fallback */
.pv { position: relative; }
.pphoto {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #fff; border-radius: inherit; padding: 10px;
}
.sug-thumb .pphoto { padding: 3px; }
.pdp-visual .pphoto { padding: 28px; }

/* Marketplace strip pod tabela ofert */
.mkt-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.mkt-strip .lbl { font-size: 12px; color: var(--faint); margin-right: 2px; }

/* Catalog panel (produkt spoza porównywarki) */
.catpanel { border-radius: 18px; background: var(--panel); padding: 22px; margin-bottom: 14px; }
.catpanel-head { font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; }
.catpanel p { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.catpanel-shops { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.catpanel-shops .buy { gap: 8px; }
.sug-sec {
  padding: 9px 16px 3px; font-size: 10.5px; font-weight: 600; color: var(--faint);
  text-transform: uppercase; letter-spacing: .06em; border-top: 1px solid var(--hair-soft);
}
.sug-sec:first-child { border-top: none; }
.sug-all { color: var(--accent-ink); font-weight: 500; font-size: 13.5px; justify-content: center; }
.brand-thumb { font-weight: 700; font-size: 14px; color: var(--muted); letter-spacing: .02em; }

/* Link modal (fallback gdy środowisko blokuje otwarcie sklepu) */
.lmodal {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(29, 29, 31, .4); backdrop-filter: blur(4px); padding: 20px;
}
.lmodal[hidden] { display: none; }
.lmodal-card {
  background: var(--bg); border-radius: 20px; box-shadow: var(--shadow-pop);
  max-width: 440px; width: 100%; padding: 26px;
}
.lmodal-card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.lmodal-card p { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }
.lmodal-url {
  background: var(--panel); border-radius: 12px; padding: 12px 14px;
  font-size: 13px; color: var(--text); word-break: break-all; user-select: all;
  margin-bottom: 16px; font-variant-numeric: tabular-nums;
}
.lmodal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Toast */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: rgba(29, 29, 31, .92); color: #fff; font-size: 13.5px; font-weight: 500;
  padding: 11px 22px; border-radius: 999px; box-shadow: var(--shadow-pop); opacity: 0;
  backdrop-filter: blur(10px);
  transition: transform .25s, opacity .25s; z-index: 200; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

@media (max-width: 1000px) { .pgrid { grid-template-columns: repeat(3, 1fr); } .trust-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .pdp-grid { grid-template-columns: 1fr; }
  .pdp-visual { height: 280px; }
  .pdp-visual svg { width: 180px; height: 232px; }
  .head-row { flex-wrap: wrap; }
  .hsearch { order: 3; flex-basis: 100%; max-width: none; }
  .catnav-inner { justify-content: flex-start; }
  .hero { padding: 32px 0 26px; }
  .hero .sub { font-size: 15px; }
}
@media (max-width: 460px) {
  .pgrid { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr auto; }
  .offer .buy, .offer .oos-pill { grid-column: 1/-1; justify-content: center; text-align: center; }
  .trust-inner { grid-template-columns: 1fr; }
  /* nagłówek sekcji: „Zobacz wszystkie" schodzi pod tytuł, wyrównane do prawej */
  .hrow-head { flex-wrap: wrap; align-items: center; }
  .hrow-title { flex: 1 1 100%; }
  .hrow-head h2 { font-size: 18px; }
  .hrow-all { margin-left: auto; margin-top: 2px; }
  /* koszyk: akcje schodzą pod tytuł (żeby „Wyczyść" się nie ucinało) */
  .cart-acts { flex-basis: 100%; margin-left: 0; justify-content: flex-start; gap: 2px; }
  .cart-acts .cart-share:first-child { padding-left: 0; }
}
/* ============ KOSZYK / porównywarka koszyka ============ */
.addcart {
  position: absolute; top: 56px; right: 20px; z-index: 3; width: 30px; height: 30px;
  border-radius: 50%; border: none; background: var(--bg);
  box-shadow: 0 0 0 1px var(--hair-soft), var(--shadow-card);
  display: grid; place-items: center; cursor: pointer; color: var(--faint);
  transition: color .15s, background .15s, transform .1s;
}
.addcart:hover { color: var(--accent-ink); }
.addcart.on { background: var(--accent); color: var(--ink-on-accent); box-shadow: 0 0 0 1px var(--blue-hover), var(--shadow-card); }
.addcart:active { transform: scale(.9); }

.cta-cart { width: 100%; justify-content: center; margin: 4px 0 10px; }
.cta-cart.in { background: var(--blue-hover); }

#cart { display: none; }
.cart-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin: 6px 0 20px; }
.cart-head h1 { font-size: clamp(23px, 3vw, 30px); font-weight: 700; letter-spacing: -.02em; margin: 0; }
.cart-head .res { color: var(--faint); font-size: 14px; }
.cart-acts { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.cart-share { display: inline-flex; align-items: center; gap: 6px; background: none; border: none;
  color: var(--accent-ink); font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.cart-share:hover { background: var(--panel); opacity: 1; }
.cart-share:hover { opacity: .75; }
.cart-clear { background: none; border: none; color: var(--faint); font-size: 13px; cursor: pointer; padding: 4px; }
.cart-clear:hover { color: var(--red); }
.cart-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }

.cart-list { display: flex; flex-direction: column; gap: 10px; }
.citem {
  display: grid; grid-template-columns: 60px 1fr auto auto; gap: 14px; align-items: center;
  background: var(--bg); border-radius: 16px; padding: 12px 14px;
  box-shadow: 0 0 0 1px var(--hair-soft), var(--shadow-card);
}
.citem-img { height: 60px; width: 60px; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 8%, #FFF 0%, var(--panel) 70%); cursor: pointer; }
.citem-img svg { width: 44px; height: 55px; }
.citem-info { min-width: 0; cursor: pointer; }
.citem-brand { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.citem-name { font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; margin: 2px 0; }
.citem-sub { font-size: 12px; color: var(--faint); }
.citem-qty { display: inline-flex; align-items: center; gap: 4px; background: var(--panel); border-radius: 999px; padding: 3px; }
.qbtn { width: 26px; height: 26px; border-radius: 50%; border: none; background: var(--bg); color: var(--text);
  font-size: 17px; line-height: 1; cursor: pointer; box-shadow: 0 0 0 1px var(--hair-soft); }
.qbtn:hover { color: var(--accent-ink); }
.qn { min-width: 20px; text-align: center; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.citem-x { border: none; background: none; color: var(--faint); cursor: pointer; padding: 6px; border-radius: 8px; }
.citem-x:hover { color: var(--red); background: var(--panel); }

.cart-result { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.cwin {
  background: linear-gradient(180deg, var(--blue-tint), transparent 70%), var(--bg);
  border-radius: 18px; padding: 20px; box-shadow: 0 0 0 1px var(--hair-soft), var(--shadow-card);
}
.cwin-lbl { font-size: 12.5px; font-weight: 600; color: var(--accent-ink); letter-spacing: .02em; }
.cwin-store { display: flex; align-items: center; gap: 8px; font-size: 20px; margin: 6px 0 2px; }
.cwin-total { font-size: 32px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cwin-total .cur { font-size: 17px; font-weight: 600; margin-left: 4px; color: var(--faint); }
.cwin-break { font-size: 12.5px; color: var(--muted); margin: 2px 0 14px; }
.cwin-break .cfree { color: var(--green); font-weight: 600; }
.cwin-break .cmuted { color: var(--faint); }
.cwin-go { width: 100%; justify-content: center; }
.cwin-hint { font-size: 11.5px; color: var(--faint); text-align: center; margin-top: 8px; line-height: 1.45; }
.cwin-cmp { margin-top: 12px; font-size: 12.5px; line-height: 1.4; color: var(--muted);
  background: var(--panel); border-radius: 12px; padding: 10px 12px; }
.cwin-cmp b { color: var(--text); }
.cwin-cmp.ok { background: var(--green-tint); color: var(--green); }
.cwin-cmp.ok b { color: var(--green); }
.cwin-none p { font-size: 13px; color: var(--muted); margin: 6px 0 0; }

/* porównywarka koszykowa — cały koszyk w każdej drogerii (jak w reklamie) */
.ccmp {
  background: var(--bg); border-radius: 18px; padding: 18px 18px 16px;
  box-shadow: 0 0 0 1px var(--hair-soft), var(--shadow-card);
}
.ccmp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.ccmp-save { font-size: 11px; font-weight: 800; color: var(--green);
  background: var(--green-tint); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ccmp-row { display: flex; align-items: center; gap: 9px; padding: 9px 0;
  font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ccmp-row + .ccmp-row { border-top: 1px solid var(--hair-soft); }
.ccmp-row .store-dot { width: 10px; height: 10px; }
.ccmp-nm { color: var(--text); }
.ccmp-pr { margin-left: auto; font-weight: 800; }
.ccmp-tag { font-size: 10px; font-weight: 800; color: var(--ink-on-accent);
  background: var(--blue); padding: 3px 9px; border-radius: 999px; letter-spacing: .01em; }
.ccmp-part { font-size: 10.5px; font-weight: 600; color: var(--faint); }
.ccmp-row.best { background: var(--blue-tint); margin: 4px -18px; padding: 11px 18px; border-top: none;
  box-shadow: inset 0 0 0 1px rgba(242,230,160,.9); }
.ccmp-row.best + .ccmp-row { border-top: none; }
.ccmp-row.best .ccmp-pr { color: var(--accent-ink); }
.ccmp-foot { font-size: 11.5px; color: var(--faint); line-height: 1.45; margin-top: 12px; }

/* modal „Dokończ zakupy" */
.cmodal { position: fixed; inset: 0; z-index: 60; background: rgba(20,15,28,.5); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 18px; }
.cmodal[hidden] { display: none; }
.cmodal-card { position: relative; width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto;
  background: var(--bg); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-pop); animation: cardIn .24s cubic-bezier(.2,.7,.3,1) both; }
.cmodal-x { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: none; border-radius: 50%;
  background: var(--panel); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.cmodal-x:hover { color: var(--text); }
.cmodal-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin: 0 34px 6px 0; display: flex; align-items: center; gap: 8px; }
.cmodal-lead { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0 0 16px; }
.cmodal-prog { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cmodal-track { flex: 1; height: 7px; background: var(--panel); border-radius: 999px; overflow: hidden; }
.cmodal-bar { height: 100%; width: 0; background: var(--green); border-radius: 999px; transition: width .3s cubic-bezier(.2,.7,.3,1); }
.cmodal-prog span { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.cmodal-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.co-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
  box-shadow: 0 0 0 1px var(--hair-soft); transition: background .2s, box-shadow .2s; }
.co-row.done { background: var(--green-tint); box-shadow: 0 0 0 1px transparent; }
.co-num { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--panel); color: var(--muted);
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700; }
.co-row.done .co-num { background: var(--green); color: #fff; }
.co-nm { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; }
.co-nm b { font-weight: 700; }
.co-store { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--faint); margin-top: 4px; }
.co-nm .co-q { color: var(--faint); }
.co-acts { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.co-copy { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--hair);
  background: transparent; color: var(--muted); border-radius: 50%; cursor: pointer; transition: color .15s, border-color .15s; }
.co-copy:hover { color: var(--accent-ink); border-color: var(--accent-ink); }
.co-copy:active { transform: scale(.9); }
.co-open { flex: none; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--accent-ink);
  background: transparent; color: var(--accent-ink); font-size: 12.5px; font-weight: 600; border-radius: 999px;
  padding: 7px 13px; cursor: pointer; transition: background .15s, color .15s; }
.co-open:hover { background: var(--accent); color: var(--ink-on-accent); }
.co-row.done .co-open { border-color: var(--hair); color: var(--faint); }
.cmodal-actions .cta { width: 100%; justify-content: center; }
.cmodal-note { font-size: 11px; color: var(--faint); line-height: 1.55; margin: 14px 0 0; }

/* modal kodu QR */
.qr-card { max-width: 360px; text-align: center; }
.qr-card h3 { justify-content: center; margin-right: 34px; }
.qr-card .cmodal-lead { text-align: center; }
.qr-box { width: 240px; height: 240px; margin: 4px auto 16px; border-radius: 16px; background: #fff;
  display: grid; place-items: center; box-shadow: 0 0 0 1px var(--hair-soft), var(--shadow-card); overflow: hidden; }
.qr-box img { width: 216px; height: 216px; display: block; }
.qr-link { font-size: 11.5px; color: var(--faint); word-break: break-all; background: var(--panel);
  border-radius: 10px; padding: 9px 12px; margin-bottom: 14px; }

.crows { display: flex; flex-direction: column; gap: 1px; background: var(--bg); border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--hair-soft), var(--shadow-card); }
.crow { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 11px 15px; font-size: 13.5px; }
.crow + .crow { border-top: 1px solid var(--hair-soft); }
.crow-s { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.crow-p { text-align: right; font-variant-numeric: tabular-nums; }
.crow-p .crow-d { display: block; font-size: 11px; color: var(--faint); font-weight: 400; }
.crow-x { font-size: 12px; color: var(--faint); min-width: 74px; text-align: right; }

.cmix { background: var(--bg); border-radius: 16px; padding: 16px 18px; box-shadow: 0 0 0 1px var(--hair-soft), var(--shadow-card); }
.cmix-win { box-shadow: inset 3px 0 0 var(--green), 0 0 0 1px var(--hair-soft), var(--shadow-card); }
.cmix-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cmix-lbl { font-size: 13.5px; font-weight: 600; }
.cmix-lbl .cmuted { color: var(--faint); font-weight: 400; }
.cmix-total { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cmix-stores { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 8px 0; }
.cmix-stores .store-dot { margin-right: 2px; }
.cmix-sep { color: var(--faint); }
.cmix-note { font-size: 12.5px; color: var(--muted); }
.cmix-note.good { color: var(--green); }
.cmix-note b { font-weight: 700; }

.cart-disc { font-size: 11px; color: var(--faint); line-height: 1.5; margin: 2px 2px 0; }

.cart-empty { text-align: center; padding: 60px 20px; color: var(--faint); }
.cart-empty svg { color: var(--hair); margin-bottom: 14px; }
.cart-empty .t { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.cart-empty p { font-size: 14px; max-width: 440px; margin: 0 auto 20px; line-height: 1.5; }

@media (max-width: 860px) {
  .cart-grid { grid-template-columns: 1fr; }
  .cart-result { position: static; }
}
@media (max-width: 460px) {
  .citem { grid-template-columns: 48px 1fr auto; grid-template-areas: "img info qty" "img x x"; row-gap: 6px; }
  .citem-img { grid-area: img; height: 48px; width: 48px; }
  .citem-info { grid-area: info; }
  .citem-qty { grid-area: qty; }
  .citem-x { grid-area: x; justify-self: end; }
}

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