.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px 8px; max-width: 1320px; margin: 0 auto;
}
.top .brand-name { font-size: 26px; }
.top .logo { width: 36px; height: 36px; font-size: 19px; border-radius: 12px; }

.tabs { display: flex; gap: 6px; }
.tabs button {
  padding: 8px 16px; border-radius: 999px; font-weight: 600; color: var(--muted);
  display: flex; align-items: center; gap: 7px; transition: all 0.15s;
}
.tabs button:hover { background: var(--sand); }
.tabs button.on { background: #fff; color: var(--rose-d); box-shadow: var(--shadow); }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 14px 40px 6px; max-width: 1320px; margin: 0 auto;
}
.toolbar input[type=search] { flex: 1 1 220px; max-width: 320px; border-radius: 999px; padding-left: 16px; }
.toolbar select { width: auto; min-width: 150px; border-radius: 999px; padding: 9px 14px; }
.toolbar[hidden] { display: none; }

/* ---------- kategorie z tagów ---------- */
.tagbar {
  display: flex; gap: 8px; padding: 12px 40px 2px; max-width: 1320px; margin: 0 auto;
  overflow-x: auto; scrollbar-width: none;
}
.tagbar::-webkit-scrollbar { display: none; }
.tag-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  border-radius: 999px; background: #fff; color: var(--muted); font-weight: 600; font-size: 13px;
  border: 1.5px solid var(--line); transition: all 0.15s; white-space: nowrap;
}
.tag-chip:hover { border-color: var(--rose); color: var(--rose-d); }
.tag-chip.on { background: var(--rose-d); border-color: var(--rose-d); color: #fff; }
.tag-chip .n { font-size: 11px; opacity: 0.7; }
.catbar { padding-top: 14px; }
.tag-chip.cat { padding: 8px 18px; font-size: 14px; font-family: var(--serif); font-weight: 600; }
.tag-chip.zero { opacity: 0.55; }
.bar-label { flex: none; align-self: center; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; padding-right: 4px; }
.cat-link { font-size: 12px; color: var(--muted); font-weight: 600; }
.cat-link:hover { color: var(--rose-d); text-decoration: underline; }

.tag-head {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 20px 40px 0; max-width: 1320px; margin: 0 auto;
}
.tag-head .th-text { flex: 1 1 220px; }
.tag-head h2 { font-size: 30px; color: var(--rose-d); }
.th-sub { color: var(--muted); margin-top: 2px; }

.tags { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.tag-link { font-size: 12px; font-weight: 600; color: var(--rose-d); padding: 0 2px; }
.tag-link:hover { text-decoration: underline; }
.tag-link.on { background: var(--rose-l); border-radius: 999px; padding: 0 8px; }
.tag-link.static { cursor: default; }
.tag-link.static:hover { text-decoration: none; }
.tag-more { font-size: 12px; color: var(--muted); }

#grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px; padding: 22px 40px 130px; max-width: 1320px; margin: 0 auto;
}

/* ---------- karta produktu ---------- */
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s; border: 2px solid transparent;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(120, 80, 90, 0.14); }
.card.selected { border-color: var(--rose); }

.thumb { position: relative; aspect-ratio: 4 / 5; background: var(--sand); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 54px; color: var(--rose);
  background: linear-gradient(160deg, var(--rose-l), var(--sand));
}
.sold {
  position: absolute; top: 12px; left: 12px; background: rgba(58, 46, 50, 0.78); color: #fff;
  font-size: 12px; font-weight: 600; padding: 3px 11px; border-radius: 999px;
}
.pick {
  position: absolute; bottom: 12px; left: 12px; background: rgba(255, 255, 255, 0.94);
  color: var(--rose-d); font-weight: 600; font-size: 13px; padding: 6px 13px;
  border-radius: 999px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); transition: all 0.15s;
}
.pick:hover { background: #fff; transform: scale(1.04); }
.card.selected .pick { background: var(--rose-d); color: #fff; }

.card-body { padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.shop-tag { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.card-name {
  font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1.3; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-name:hover { color: var(--rose-d); }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 18px; font-weight: 700; }
.cat { font-size: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.note { font-size: 13px; color: var(--muted); font-style: italic; }
.card-foot { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; }
.link-btn { font-size: 13px; color: var(--muted); text-decoration: none; font-weight: 600; }
.link-btn:hover { color: var(--rose-d); text-decoration: underline; }

/* ---------- karta sklepu ---------- */
.shop-card { padding: 22px; align-items: center; text-align: center; gap: 10px; }
.shop-card .avatar {
  width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: var(--sand);
  display: grid; place-items: center; font-family: var(--serif); font-size: 30px; color: var(--rose);
}
.shop-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.shop-card h3 { font-size: 18px; }
.shop-card .host { color: var(--muted); font-size: 13px; }

/* ---------- stany puste ---------- */
.empty {
  grid-column: 1 / -1; text-align: center; padding: 70px 20px; display: flex;
  flex-direction: column; align-items: center; gap: 10px; color: var(--muted);
}
.empty .big { font-size: 46px; }
.empty h2 { color: var(--ink); font-size: 26px; }
.steps { display: flex; gap: 14px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
.step {
  background: #fff; border-radius: var(--radius); padding: 16px 18px; max-width: 220px;
  box-shadow: var(--shadow); text-align: left; color: var(--ink);
}
.step b { display: block; color: var(--rose-d); margin-bottom: 4px; }

/* ---------- pasek porównania ---------- */
.compare-bar {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: #fff; border-radius: 999px; box-shadow: 0 10px 40px rgba(120, 80, 90, 0.25);
  padding: 10px 12px 10px 22px; display: flex; align-items: center; gap: 14px; z-index: 20;
}
.compare-bar[hidden] { display: none; }
.compare-bar .count { font-weight: 600; }
.compare-bar .count small { color: var(--muted); font-weight: 500; }

/* ---------- porównanie ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(58, 46, 50, 0.4);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 28px; overflow: auto;
}
.overlay[hidden] { display: none; }
.panel {
  background: var(--bg); border-radius: 26px; width: 100%; max-width: 1180px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3); overflow: hidden;
}
.panel-head { display: flex; align-items: center; gap: 18px; padding: 20px 28px; background: #fff; }
.panel-head h2 { font-size: 24px; flex: 1; }
.switch { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); cursor: pointer; }
.switch input { width: auto; accent-color: var(--rose-d); }
.x { font-size: 28px; line-height: 1; color: var(--muted); width: 38px; height: 38px; border-radius: 50%; }
.x:hover { background: var(--sand); color: var(--ink); }

.table-wrap { overflow-x: auto; padding: 6px 20px 24px; }
table.cmp { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; min-width: 640px; }
table.cmp th, table.cmp td { padding: 14px 12px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
table.cmp th.rowlabel, table.cmp td.rowlabel {
  width: 120px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; position: sticky; left: 0; background: var(--bg); z-index: 1;
}
table.cmp thead th { border-bottom: 0; }
.cmp-head { display: flex; flex-direction: column; gap: 8px; position: relative; }
.cmp-head img, .cmp-head .ph {
  width: 100%; height: 210px; object-fit: cover; border-radius: 14px; background: var(--sand); font-size: 40px;
}
.cmp-head .name { font-family: var(--serif); font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1.3; }
.cmp-head .name:hover { color: var(--rose-d); }
.cmp-head .rm {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); font-size: 17px; line-height: 1; color: var(--muted);
}
.cmp-head .rm:hover { color: var(--rose-d); }
.cell-price { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cell-price.best { color: var(--sage-d); }
.badge { font-size: 11px; background: var(--sage-l); color: var(--sage-d); padding: 2px 9px; border-radius: 999px; font-weight: 700; }
.cell-text { font-size: 13px; line-height: 1.5; }
.cell-dim { color: #B5A8AC; }
.bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--sand); margin-bottom: 7px; }
.bar .nat { background: var(--sage); }
.bar .cel { background: #C9D8CB; }
.bar .syn { background: var(--rose); }
.bar .oth { background: #D9CFCB; }
.bar-legend { font-size: 12px; color: var(--muted); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 11px 20px; border-radius: 999px; z-index: 80; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.toast[hidden] { display: none; }
.toast button { color: #F6C3D0; font-weight: 700; }

@media (max-width: 720px) {
  .top { flex-wrap: wrap; gap: 10px; padding: 16px 16px 4px; }
  .top .brand-name { font-size: 22px; }
  .tabs button { padding: 7px 13px; }
  .toolbar { padding: 10px 16px 0; }
  .tagbar { padding: 10px 16px 0; }
  .tag-head { padding: 16px 16px 0; gap: 10px; }
  .tag-head h2 { font-size: 26px; }
  .toolbar input[type=search] { max-width: none; flex-basis: 100%; }
  .toolbar select { flex: 1 1 140px; min-width: 0; }
  #grid { padding: 16px 16px 130px; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-name { font-size: 14px; }
  .price { font-size: 16px; }
  .pick { font-size: 12px; padding: 5px 10px; }
  .shop-card { padding: 16px 12px; }
  .compare-bar { bottom: calc(18px + env(safe-area-inset-bottom)); }
  .overlay { padding: 8px; }
  .panel { border-radius: 20px; }
  .panel-head { padding: 14px 16px; gap: 10px; flex-wrap: wrap; }
  .panel-head h2 { font-size: 20px; }
  .table-wrap { padding: 4px 8px 18px; }
  table.cmp { table-layout: auto; min-width: 0; width: max-content; }
  table.cmp th, table.cmp td { padding: 12px 8px; }
  table.cmp th:not(.rowlabel), table.cmp td:not(.rowlabel) { width: 160px; min-width: 160px; max-width: 160px; }
  table.cmp th.rowlabel, table.cmp td.rowlabel { width: 78px; min-width: 78px; font-size: 10px; padding-left: 6px; }
  .cmp-head img, .cmp-head .ph { height: 140px; }
  .cell-price { font-size: 17px; }
}

/* promocje */
.promo {
  font-size: 12px; line-height: 1.35; color: var(--rose-d); background: var(--rose-l);
  padding: 5px 10px; border-radius: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.promo b { font-weight: 700; }
.cell-text.pre { white-space: pre-line; }

/* ---------- suwak ceny ---------- */
.pricebar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 40px 2px; max-width: 1320px; margin: 0 auto;
}
.pricebar[hidden] { display: none; }
.pb-title { font-weight: 700; color: var(--rose-d); font-size: 13px; }
.pb-text { font-size: 13px; color: var(--ink, #4A3F44); font-weight: 600; min-width: 190px; }
.pb-reset { font-size: 12px; }
.dual { position: relative; width: 260px; height: 24px; --a: 0%; --b: 100%; }
.dual .track { position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 4px;
  background: linear-gradient(to right, #E8DDD9 var(--a), var(--rose) var(--a), var(--rose) var(--b), #E8DDD9 var(--b)); }
.dual input[type=range] {
  position: absolute; left: 0; top: 0; width: 100%; height: 24px; margin: 0; padding: 0;
  background: none; border: 0; -webkit-appearance: none; appearance: none; pointer-events: none;
}
.dual input[type=range]::-webkit-slider-runnable-track { background: transparent; height: 24px; }
.dual input[type=range]::-moz-range-track { background: transparent; }
.dual input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: pointer;
  width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: #fff; border: 2px solid var(--rose); box-shadow: 0 1px 4px rgba(120,80,90,.25);
}
.dual input[type=range]::-moz-range-thumb {
  pointer-events: auto; cursor: pointer; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 2px solid var(--rose);
}
@media (max-width: 720px) { .pricebar { padding: 10px 16px 2px; } .dual { width: 100%; } .pb-text { min-width: 0; } }

/* ---------- widok: duże / małe / lista ---------- */
.view-seg { margin-left: auto; }
.view-seg button { padding: 7px 14px; }
.audbar .bar-label { align-self: center; }
.comp-line { font-size: 12.5px; color: var(--muted); line-height: 1.4; display: none; }
.comp-line b { color: var(--ink, #4A3F44); }

#grid.v-large { grid-template-columns: repeat(auto-fill, 225px); justify-content: start; gap: 21px; }
#grid.v-large .card-name { font-size: 14.5px; }
#grid.v-large .price { font-size: 16px; }
#grid.v-large .card-body { padding: 11px 13px 12px; }
#grid.v-large .comp-line { display: block; }

#grid.v-small { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
#grid.v-small .card-body { padding: 9px 11px 10px; gap: 4px; }
#grid.v-small .card-name { font-size: 13px; }
#grid.v-small .price { font-size: 14px; }
#grid.v-small .shop-tag { font-size: 10px; }
#grid.v-small .promo, #grid.v-small .chips, #grid.v-small .tags, #grid.v-small .note,
#grid.v-small .cat-link, #grid.v-small .card-foot { display: none; }
#grid.v-small .pick { font-size: 11px; padding: 4px 9px; bottom: 8px; left: 8px; }

#grid.v-list { grid-template-columns: 1fr; gap: 12px; }
#grid.v-list .card { flex-direction: row; }
#grid.v-list .thumb { width: 120px; flex: none; aspect-ratio: auto; min-height: 150px; }
#grid.v-list .pick { font-size: 11px; padding: 4px 9px; }
#grid.v-list .card-body { padding: 12px 18px; gap: 6px; }
#grid.v-list .comp-line { display: block; white-space: normal; }
#grid.v-list .card-foot { padding-top: 2px; gap: 16px; justify-content: flex-start; }
#grid.v-list .price-row { justify-content: flex-start; gap: 16px; }
@media (max-width: 720px) {
  .view-seg { margin-left: 0; }
  #grid.v-large, #grid.v-small { grid-template-columns: repeat(2, 1fr); }
  #grid.v-list { grid-template-columns: 1fr; }
  #grid.v-list .thumb { width: 96px; min-height: 130px; }
}

.view-seg { padding: 3px; }
.view-seg button { padding: 6px 10px; display: grid; place-items: center; line-height: 0; }
.view-seg button svg { display: block; }

@media (max-width: 720px) { #grid.v-large { justify-content: stretch; } }

/* ---------- data dodania, filtr daty, odświeżanie, porządki ---------- */
.thumb-wrap { display: flex; flex-direction: column; }
.added { font-size: 10.5px; color: var(--muted); letter-spacing: 0.02em; padding: 5px 14px 0; opacity: 0.85; }
.toolbar .date-range { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.toolbar .date-range[hidden] { display: none; }
.toolbar input[type=date] { width: auto; border-radius: 999px; padding: 8px 12px; font-size: 13px; }
.tool-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tool-right .view-seg { margin-left: 0; }
.tool-btn {
  padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--rose-d);
  font-weight: 600; font-size: 13px; border: 1px solid var(--line, #E8DDD9); cursor: pointer; transition: all .15s;
}
.tool-btn:hover { border-color: var(--rose); }
.tool-btn:disabled { opacity: .55; cursor: default; }
.tool-panel {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  max-width: 1240px; margin: 10px auto 0; padding: 12px 18px; background: #fff;
  border-radius: 16px; box-shadow: var(--shadow); font-size: 13.5px;
}
.tool-panel[hidden] { display: none; }
.panel-info { color: var(--muted); font-size: 13px; }
.days-input { width: 76px; border-radius: 999px; padding: 6px 12px; text-align: center; }
.btn.danger { background: #C9707F; }
.btn.danger.armed { background: #A9475A; }
.btn:disabled { opacity: .5; cursor: default; }
#refreshPanel .bar { flex: 1 1 200px; height: 6px; border-radius: 6px; background: #F1ECEA; overflow: hidden; }
#refreshPanel .bar .fill { height: 100%; width: 0; background: var(--rose); transition: width .3s; }
.report { flex: 1; }
.report ul { margin: 8px 0 4px; padding-left: 18px; line-height: 1.6; }
.chg { font-size: 12px; font-weight: 600; }
.chg.down { color: #5E8A6B; }
.chg.up { color: var(--rose-d); }
#grid.v-list .thumb-wrap { width: 120px; flex: none; }
#grid.v-list .thumb-wrap .thumb { width: 100%; flex: 1; }
#grid.v-list .added { padding: 4px 8px 6px; }
#grid.v-small .added { font-size: 9.5px; padding: 3px 11px 0; }
@media (max-width: 720px) { .tool-right { margin-left: 0; width: 100%; flex-wrap: wrap; } .tool-panel { margin: 10px 16px 0; } }

.chart-det summary { cursor:pointer; font-size:13px; font-weight:600; color:var(--rose-d); list-style:none; }
.chart-det summary::-webkit-details-marker { display:none; }
.chart-det summary::before { content:'▸ '; }
.chart-det[open] summary::before { content:'▾ '; }
.chart-scroll { overflow-x:auto; margin-top:8px; }
.size-chart { border-collapse:collapse; font-size:12px; }
.size-chart th, .size-chart td { border:1px solid var(--line,#E8DDD9); padding:4px 8px; text-align:center; white-space:nowrap; }
.size-chart thead th, .size-chart tbody th { background:var(--rose-l); font-weight:600; }
.chart-img { max-width:100%; margin-top:8px; border-radius:8px; }

.chart-det.compact { margin-top:8px; }
.chart-det.compact summary { font-size:12px; }
.chart-sugg { font-size:12.5px; font-weight:700; color:#4f7a58; margin-top:6px; }
.chart-sugg.warn { color:#b0645c; }
.chart-det .chart-img { max-width:min(100%, 720px); display:block; }
.tool-panel.profile { flex-direction:column; align-items:flex-start; gap:12px; }
.pf-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:10px 18px; width:100%; }
.pf { display:flex; flex-direction:column; gap:4px; font-size:12.5px; color:var(--muted); font-weight:600; }
.pf-in { display:flex; align-items:center; gap:6px; }
.pf-in input { width:90px; }
.pf-in em { font-style:normal; font-weight:400; }

.ok-mark { display:inline-flex; align-items:center; justify-content:center; width:13px; height:13px; margin-left:5px; border-radius:50%; background:#7aa684; color:#fff; font-size:9px; font-weight:700; line-height:1; vertical-align:middle; }
.chart-sugg .ok-mark { margin:0 3px 0 0; }
.chart-det .chart-scroll + .chart-img { margin-top:10px; }

.shop-link { display:inline-block; padding:8px 16px; border-radius:999px; background:var(--rose); color:#fff; font-size:13px; font-weight:600; text-decoration:none; }
.shop-link:hover { background:var(--rose-d); }

/* płatności jako ikony */
.pay-chips { display:flex; flex-wrap:wrap; gap:6px; }
.pay-chip { display:inline-flex; align-items:center; gap:5px; padding:4px 9px 4px 7px; border:1px solid var(--line,#E8DDD9); border-radius:999px; background:#fff; font-size:11.5px; font-weight:600; color:var(--ink,#4A3F44); }
.pay-chip .pay-ico { color:var(--rose-d); flex:none; }
.pay-chip img { height:18px; width:auto; display:block; }
/* panel edycji po lewej */
.drawer-scrim { position:fixed; inset:0; background:rgba(60,40,48,.35); z-index:40; }
.drawer-scrim[hidden], .drawer[hidden] { display:none; }
.drawer { position:fixed; top:0; left:0; bottom:0; width:min(400px,100vw); background:#fff; z-index:41; display:flex; flex-direction:column; box-shadow:8px 0 30px rgba(60,40,48,.18); animation:drawer-in .18s ease-out; }
@keyframes drawer-in { from { transform:translateX(-30px); opacity:0; } to { transform:none; opacity:1; } }
.ed-head { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--line,#E8DDD9); }
.ed-head h2 { margin:0; font-family:var(--serif, Georgia, serif); font-size:20px; }
.ed-x { border:0; background:none; font-size:26px; line-height:1; cursor:pointer; color:var(--muted); }
.ed-body { flex:1; overflow-y:auto; padding:16px 20px 24px; display:flex; flex-direction:column; gap:14px; }
.ed-preview { display:flex; align-items:center; gap:12px; }
.ed-thumb { width:64px; height:80px; border-radius:10px; overflow:hidden; background:var(--rose-l); flex:none; }
.ed-thumb img { width:100%; height:100%; object-fit:cover; }
.ed-shop { font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.ed-field { display:flex; flex-direction:column; gap:6px; }
.ed-label { font-size:12.5px; font-weight:600; color:var(--muted); }
.ed-field textarea, .ed-field input[type=text] { width:100%; box-sizing:border-box; font:inherit; font-size:14px; padding:9px 11px; border:1.5px solid var(--line,#E8DDD9); border-radius:10px; background:#fff; resize:vertical; }
.ed-field textarea:focus, .ed-field input:focus { outline:none; border-color:var(--rose); }
.ed-price { display:flex; align-items:center; gap:8px; }
.ed-chips { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.ed-chip { padding:6px 12px; border-radius:999px; border:1.5px solid var(--line,#E8DDD9); background:#fff; font-size:13px; font-weight:600; cursor:pointer; color:var(--ink,#4A3F44); }
.ed-chip.on { background:var(--rose); border-color:var(--rose); color:#fff; }
.ed-chip.off { opacity:.4; text-decoration:line-through; cursor:default; }
.ed-tag { display:inline-flex; align-items:center; gap:4px; padding:4px 6px 4px 10px; border-radius:999px; background:var(--rose-l); color:var(--rose-d); font-size:12.5px; font-weight:600; }
.ed-tag button { border:0; background:none; cursor:pointer; color:inherit; font-size:15px; line-height:1; }
.ed-field .ed-tag-input { width:130px; padding:5px 10px; border-radius:999px; font-size:12.5px; }
.ed-foot { display:flex; align-items:center; gap:8px; padding:14px 20px; border-top:1px solid var(--line,#E8DDD9); }
.ed-foot .spacer { flex:1; }

/* nagłówek: aktualizuj pod logo, profil w prawym górnym rogu */
.brand-col { display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.top-right { display:flex; align-items:center; gap:14px; }
.icon-btn { width:32px; height:32px; border-radius:50%; border:1.5px solid var(--line,#E8DDD9); background:#fff; color:var(--rose-d); display:grid; place-items:center; cursor:pointer; padding:0; transition:border-color .15s, background .15s; }
.icon-btn:hover { border-color:var(--rose); background:var(--rose-l); }
.icon-btn:disabled { cursor:default; }
.icon-btn:disabled svg { animation:kspin 1s linear infinite; }
@keyframes kspin { to { transform:rotate(360deg); } }
.avatar-btn { width:42px; height:42px; border-radius:50%; border:1.5px solid var(--line,#E8DDD9); background:#fff; color:var(--rose-d); display:grid; place-items:center; cursor:pointer; padding:0; transition:border-color .15s, background .15s; }
.avatar-btn:hover, .avatar-btn.on { border-color:var(--rose); background:var(--rose-l); }
.icon-btn { width:auto; height:32px; border-radius:999px; padding:0 14px 0 10px; gap:7px; display:inline-flex; align-items:center; font:600 12.5px/1 inherit; font-family:inherit; }
.icon-btn span { white-space:nowrap; }
.icon-btn { height:24px; padding:0 10px 0 8px; gap:5px; font-size:9.4px; }
.avatar-btn svg { width:26px; height:26px; }
.promo-end { font-size:11.5px; font-weight:600; color:var(--rose-d); margin-top:-4px; }
.promo-end.soon { color:#B2402F; }
.promo-end.over { color:var(--muted); text-decoration:line-through; font-weight:500; }

/* ===== v29: minimalizm premium ===== */
.top { padding: 28px 40px 14px; border-bottom: 1px solid var(--line); max-width: none; }
.top > *, .toolbar, .tagbar, .tag-head, #grid { }
.brand-col { gap: 10px; }
.tabs { gap: 28px; }
.tabs button { padding: 6px 0; font-weight: 400; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid transparent; background: none; }
.tabs button:hover { background: none; color: var(--ink); }
.tabs button.on { background: none; color: var(--ink); border-bottom-color: var(--ink); }
.top-right { gap: 28px; }
.avatar-btn { width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.avatar-btn:hover, .avatar-btn.on { border-color: var(--ink); background: #fff; }
.icon-btn { height: 22px; padding: 0 10px 0 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
.icon-btn:hover { border-color: var(--ink); background: #fff; }

.toolbar { padding: 18px 40px 8px; max-width: none; gap: 12px; }
.toolbar input[type=search] { max-width: 300px; padding-left: 12px; }
.toolbar select { padding: 10px 12px; min-width: 140px; font-size: 12.5px; }
.tool-btn { border: 1px solid var(--line); padding: 9px 14px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; background:#fff; }
.tool-btn:hover { border-color: var(--ink); }

.tagbar { max-width: none; padding: 10px 40px 2px; gap: 18px; align-items: center; }
.tag-chip { padding: 4px 0; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--muted); font-weight: 400; font-size: 12.5px; letter-spacing: .04em; }
.tag-chip:hover { border-color: var(--ink); color: var(--ink); }
.tag-chip.on { background: none; color: var(--ink); border-bottom-color: var(--ink); }
.tag-chip.cat { padding: 6px 0; font-size: 12px; font-family: var(--sans); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }
.bar-label { font-weight: 500; font-size: 10.5px; letter-spacing: .16em; color: var(--muted); }
.cat-link { font-weight: 400; letter-spacing: .04em; }
.cat-link:hover { color: var(--ink); }
.tag-head { max-width: none; }
.tag-head h2 { font-size: 24px; color: var(--ink); }
.tag-link { color: var(--ink); font-weight: 400; }
.tag-link.on { background: none; border-bottom: 1px solid var(--ink); padding: 0 2px; }

#grid { max-width: none; gap: 40px 24px; padding: 30px 40px 130px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: transparent; border: 1px solid transparent; overflow: visible; transition: none; }
.card:hover { transform: none; box-shadow: none; }
.card.selected { border-color: var(--ink); }
.thumb { background: #F4F4F4; aspect-ratio: 3 / 4; }
.ph { background: #F4F4F4; color: #B5B5B5; font-family: var(--sans); font-weight: 300; font-size: 44px; }
.sold { top: 10px; left: 10px; background: #fff; color: var(--ink); font-weight: 500; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; }
.pick { left: 10px; bottom: 10px; background: rgba(255,255,255,.96); color: var(--ink); font-weight: 500; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 14px; border: 1px solid transparent; }
.pick:hover { background: #fff; transform: none; border-color: var(--ink); }
.card.selected .pick { background: var(--ink); color: #fff; }
.card-body { padding: 12px 2px 4px; gap: 6px; }
.shop-tag { font-weight: 500; letter-spacing: .16em; font-size: 10px; }
.card-name { font-family: var(--sans); font-weight: 400; font-size: 14.5px; letter-spacing: .01em; }
.card-name:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.price { font-size: 14.5px; font-weight: 500; }
.comp-line { color: var(--muted); font-size: 12.5px; }
.comp-line b { font-weight: 500; color: var(--ink); }
.promo { background: #F5F5F5; color: var(--ink); padding: 7px 10px; font-size: 12px; }
.promo b { font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.promo-end { color: var(--ink); font-weight: 500; margin-top: 0; }
.promo-end.soon { color: #A32A2A; }
.card-foot { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.link-btn { font-weight: 400; letter-spacing: .06em; font-size: 12px; color: var(--ink); }
.link-btn:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.note { color: var(--muted); }
.tag-link { font-size: 12px; }
.chg.down { color: #1F6B44; } .chg.up { color: #A32A2A; }
.shop-card { padding: 28px 18px; border: 1px solid var(--line); }
.shop-card .avatar { background: #F4F4F4; color: #B5B5B5; border-radius: 50% !important; }
.shop-card h3 { font-size: 16px; font-weight: 400; letter-spacing: .02em; }
.step { box-shadow: none; border: 1px solid var(--line); }
.step b { color: var(--ink); font-weight: 500; }
.empty h2 { font-size: 22px; letter-spacing: .02em; }

/* porównanie, panele, szuflada */
.compare-bar { background: #fff; border: 1px solid var(--ink); padding: 8px 8px 8px 20px; }
.compare-bar .count { font-weight: 400; letter-spacing: .06em; font-size: 12.5px; }
.overlay { background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.panel { border: 1px solid var(--line); background: #fff; }
.panel-head { border-bottom: 1px solid var(--line); padding: 22px 30px; }
.panel-head h2 { font-size: 15px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.switch { font-weight: 400; font-size: 12px; letter-spacing: .06em; }
.switch input { accent-color: var(--ink); }
.x { border-radius: 0 !important; }
.x:hover { background: none; color: var(--ink); }
table.cmp th.rowlabel, table.cmp td.rowlabel { background: #fff; font-weight: 500; letter-spacing: .14em; font-size: 10.5px; }
table.cmp th, table.cmp td { border-bottom: 1px solid #EFEFEF; }
.cmp-head img, .cmp-head .ph { background: #F4F4F4; }
.cmp-head .name { font-family: var(--sans); font-weight: 400; font-size: 14px; }
.cmp-head .name:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cmp-head .rm { background: rgba(255,255,255,.95); color: var(--ink); border-radius: 0 !important; }
.cmp-head .rm:hover { color: var(--ink); }
.cell-price { font-weight: 500; font-size: 17px; }
.cell-price.best { color: var(--ink); }
.badge { background: var(--ink); color: #fff; font-weight: 500; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; }
.cell-dim { color: #BDBDBD; }
.bar { height: 4px; background: #EFEFEF; }
.bar .nat { background: #1B171E; } .bar .cel { background: #6E6A72; } .bar .syn { background: #B9B9B9; } .bar .oth { background: #DDD; }
.toast { background: var(--ink); } .toast button { color: #fff; text-decoration: underline; font-weight: 500; }
.tool-panel { border: 1px solid var(--line); max-width: none; margin: 14px 40px 0; }
.btn.danger { background: #8B1E1E; } .btn.danger.armed { background: #5E1010; }
#refreshPanel .bar .fill { background: var(--ink); }
.chg.down { color: #1F6B44; } .chg.up { color: #A32A2A; }
.dual .track { background: linear-gradient(to right, #E1E1E1 var(--a), var(--ink) var(--a), var(--ink) var(--b), #E1E1E1 var(--b)); height: 2px; top: 11px; }
.dual input[type=range]::-webkit-slider-thumb { border-radius: 50% !important; border: 1.5px solid var(--ink); width: 16px; height: 16px; margin-top: 4px; }
.pb-title { color: var(--muted); font-weight: 500; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.pb-text { font-weight: 400; }
.pricebar { max-width: none; }
.chart-det summary { color: var(--ink); font-weight: 400; font-size: 12px; letter-spacing: .06em; }
.size-chart th, .size-chart td { border-color: #E7E7E7; }
.size-chart thead th, .size-chart tbody th { background: #F5F5F5; font-weight: 500; }
.chart-img { border-radius: 0 !important; }
.chart-sugg { color: #1F6B44; font-weight: 500; } .chart-sugg.warn { color: #8A5A2B; }
.ok-mark { background: var(--ink) !important; }
.pay-chip { border-radius: 0 !important; font-weight: 400; }
.pay-chip .pay-ico { color: var(--ink); }
.drawer-scrim { background: rgba(255,255,255,.7); }
.drawer { box-shadow: none; border-right: 1px solid var(--line); }
.ed-head h2 { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.ed-thumb { background: #F4F4F4; border-radius: 0 !important; }
.ed-label { font-weight: 500; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.ed-field textarea, .ed-field input[type=text] { border-radius: 0 !important; border-width: 1px; }
.ed-field textarea:focus, .ed-field input:focus { border-color: var(--ink); }
.ed-chip { border-width: 1px; font-weight: 400; font-size: 12.5px; }
.ed-chip.on { background: var(--ink); border-color: var(--ink); }
.ed-tag { background: #F5F5F5; color: var(--ink); font-weight: 400; }
.shop-link { background: var(--ink); border-radius: 0 !important; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; }
.shop-link:hover { background: var(--ink); opacity: .85; }
.pf { font-weight: 500; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.pf-in em { text-transform: none; letter-spacing: 0; }
.view-seg { padding: 0; }
.view-seg button { padding: 8px 11px; }
.view-seg button.on { background: var(--ink); color: #fff; }
.added { padding: 6px 2px 0; }
@media (max-width: 720px) { .top { padding: 18px 16px 10px; } .tool-panel { margin: 10px 16px 0; } .tagbar { gap: 14px; } }
#grid.v-large { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 44px 26px; }
#grid.v-large .card-body, #grid.v-small .card-body { padding: 12px 0 4px; }
#grid.v-small .card-body { gap: 3px; }
#grid.v-list .card-body { padding: 4px 22px; }
#grid.v-list .card { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
#grid.v-large .price { font-size: 14.5px; }
.added { padding: 7px 0 0; font-size: 10px; letter-spacing: .06em; }
.toolbar select, .toolbar input[type=search] { padding: 9px 12px; font-size: 12.5px; }
.toolbar select { -webkit-appearance: none; appearance: none; padding-right: 30px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%231B171E' stroke-width='1.2'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center; }
.card-body .price-row .cat-link { text-transform: uppercase; letter-spacing: .12em; font-size: 9.5px; }
.promo-flag { position: absolute; top: 10px; left: 10px; background: #fff; color: #C0281F; font-weight: 500; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; white-space: nowrap; }
.promo-flag.stacked { top: 42px; }
#promoSel[hidden] { display: none; }

/* v35: zaznaczona karta (w porównaniu) – tekst z oddechem od ramki */
#grid .card.selected .card-body { padding-left: 14px; padding-right: 14px; padding-bottom: 14px; }
#grid.v-small .card.selected .card-body { padding-left: 10px; padding-right: 10px; padding-bottom: 10px; }
#grid.v-list .card.selected .card-body { padding-left: 22px; padding-right: 22px; }
#grid .card.selected .added { padding-left: 14px; padding-right: 14px; }
#grid.v-small .card.selected .added { padding-left: 10px; padding-right: 10px; }

/* v35: stopka karty (Przejdź do sklepu / Usuń) zawsze przy dolnej krawędzi */
#grid .card:not(.shop-card) .card-body { flex: 1 1 auto; }
#grid .card .card-foot { margin-top: auto !important; }
.ed-section { font-size:10px; letter-spacing:.18em; text-transform:uppercase; color:var(--muted); margin:8px 0 -4px; padding-top:12px; border-top:1px solid var(--line); }
.ed-field input[type=email] { width:100%; box-sizing:border-box; font:inherit; font-size:14px; padding:9px 11px; border:1px solid var(--line); border-radius:0 !important; background:#fff; }
.ed-field input[type=email]:focus { outline:none; border-color:var(--ink); }
.ed-price input { flex:1; }

/* v38: pola przy dodawaniu (checkbox + uchwyt) */
.fl-list { border:1px solid var(--line); }
.fl-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:0 4px 0 12px; height:42px; border-bottom:1px solid var(--line); background:#fff; }
.fl-row:last-child { border-bottom:0; }
.fl-row.off .fl-check span { color:var(--muted); }
.fl-row.drag { opacity:.4; }
.fl-row.over { box-shadow: inset 0 2px 0 var(--ink); }
.fl-check { display:flex; align-items:center; gap:12px; flex:1; font-size:13px; cursor:pointer; }
.fl-check input { width:15px; height:15px; margin:0; accent-color:var(--ink); }
.fl-handle { border:0; background:none; cursor:grab; color:var(--muted); font-size:16px; letter-spacing:-3px; line-height:1; padding:10px 12px; }
.fl-handle:hover, .fl-handle:focus-visible { color:var(--ink); outline:none; }
.fl-row:active .fl-handle { cursor:grabbing; }

/* v40: hashtagi zawsze tuż nad linią "Przejdź do sklepu"; elementy karty się nie zgniatają */
#grid .card .card-body > * { flex-shrink: 0; }
#grid .card .card-body > .tags { margin-top: auto; }
#grid .card .card-body > .tags + .card-foot { margin-top: 8px !important; }

/* v41: konto, ekran logowania (www) */
.ed-section.first { border-top:0; padding-top:0; margin-top:0; }
.acc { display:flex; flex-direction:column; gap:10px; }
.acc input { width:100%; box-sizing:border-box; font:inherit; font-size:14px; padding:9px 11px; border:1px solid var(--line); border-radius:0 !important; background:#fff; }
.acc input:focus { outline:none; border-color:var(--ink); }
.acc-row { display:flex; gap:8px; flex-wrap:wrap; }
.acc-who { font-size:13px; }
.acc-sub, .acc-msg { font-size:12px; color:var(--muted); min-height:14px; }
.web #refreshBtn { display:none; }
.gate { position:fixed; inset:0; z-index:1000; background:var(--bg,#fff); display:flex; align-items:center; justify-content:center; padding:20px; }
.gate-card { width:100%; max-width:340px; display:flex; flex-direction:column; gap:14px; }
.gate-logo { display:flex; align-items:center; gap:12px; letter-spacing:.4em; font-size:15px; }
.gate-motto { margin:0 0 6px; font-size:12px; color:var(--muted); letter-spacing:.04em; }
.gate-card label { display:flex; flex-direction:column; gap:6px; font-size:10px; letter-spacing:.18em; text-transform:uppercase; color:var(--muted); }
.gate-card input { font:inherit; font-size:14px; letter-spacing:0; text-transform:none; color:var(--ink); padding:11px 12px; border:1px solid var(--line); border-radius:0 !important; background:#fff; }
.gate-card input:focus { outline:none; border-color:var(--ink); }
.gate-msg { min-height:16px; font-size:12px; color:#9b2c2c; }
.gate-actions { display:flex; gap:10px; }
