/* ============================================================
   shubi — design system w duchu StockX
   biel + czerń + zieleń; karty produktów na jasnych kaflach;
   duża wyszukiwarka; siatka rozmiarów z cenami
   ============================================================ */
:root {
  --green: #0d8a4e;
  --green-dark: #086b3c;
  --green-soft: #e7f5ee;
  --ink: #121212;
  --ink-2: #2b2b2b;
  --mut: #6e6e6e;
  --line: #e5e5e5;
  --line-2: #d4d4d4;
  --tile: #f7f7f7;
  --bg: #ffffff;
  --red: #c62828;
  --amber: #b45309;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,.10);
  --shadow-sm: 0 4px 14px rgba(0,0,0,.07);
  --hdr-h: 64px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
[hidden] { display: none !important; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- pasek zaufania ---------- */
.topbar { background: var(--ink); color: #d9d9d9; font-size: .78rem; }
.topbar-in { display: flex; justify-content: center; gap: 10px; padding: 7px 0; }
.topbar-dot { color: #555; }
@media (max-width: 640px) { .topbar-in span:nth-child(n+4) { display: none; } }

/* ---------- naglowek ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 18px; height: var(--hdr-h); }
.logo { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.logo-mark { width: 32px; height: 32px; }
.logo-word { font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; }
.logo-word i { color: var(--green); font-style: normal; }

.search { position: relative; flex: 1 1 auto; }
.search-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--mut); pointer-events: none; }
#search-input {
  width: 100%; height: 42px; border: 1.5px solid var(--line-2); border-radius: 10px;
  padding: 0 14px 0 42px; background: var(--tile); outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
#search-input:focus { border-color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); }
#search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

.search-drop {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.sd-item { display: flex; gap: 12px; align-items: center; padding: 9px 14px; transition: background .1s; }
.sd-item:hover, .sd-item.on { background: var(--tile); }
.sd-item img { width: 52px; height: 38px; object-fit: contain; background: var(--tile); border-radius: 6px; }
.sd-name { font-size: .88rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sd-meta { font-size: .76rem; color: var(--mut); }
.sd-price { margin-left: auto; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.sd-all { display: block; text-align: center; padding: 10px; font-size: .84rem; font-weight: 600; color: var(--green); border-top: 1px solid var(--line); }
.sd-all:hover { background: var(--green-soft); }

.hdr-actions { display: flex; gap: 4px; flex: 0 0 auto; align-items: center; }

/* przelacznik jezyka z flagami */
.lang { position: relative; margin-right: 4px; }
.lang-btn {
  display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px;
  border: 1.5px solid var(--line-2); border-radius: 9px; background: #fff;
  font-weight: 700; font-size: .78rem; color: var(--ink-2); cursor: pointer;
  transition: border-color .15s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--ink); }
.lang-code { line-height: 1; }
.lang-caret { width: 13px; height: 13px; color: var(--mut); }
.lang-flag {
  width: 21px; height: 14px; border-radius: 2px; overflow: hidden; display: block;
  flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07);
}
.lang-flag svg { display: block; width: 100%; height: 100%; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 70; min-width: 184px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 6px;
}
.lang-menu button {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 11px;
  border-radius: 8px; font-size: .9rem; font-weight: 600; color: var(--ink); text-align: left;
  transition: background .12s;
}
.lang-menu button:hover { background: var(--tile); }
.lang-menu button.on { background: var(--green-soft); color: var(--green-dark); font-weight: 800; }
@media (max-width: 460px) { .lang-code { display: none; } }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; transition: background .15s; }
.icon-btn:hover { background: var(--tile); }
.icon-btn svg { width: 22px; height: 22px; }
.bubble {
  position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--green); color: #fff; border-radius: 9px;
  font-size: .68rem; font-weight: 700; line-height: 17px; text-align: center; font-style: normal;
}

/* ---------- koszyk: glowna akcja, wyrozniony ---------- */
#cart-btn { background: var(--green-soft); }
#cart-btn:hover { background: #d3ecdf; }
#cart-btn svg { width: 23px; height: 23px; }
#cart-btn .bubble { box-shadow: 0 0 0 2px #fff; }         /* licznik odcina sie od tla */
/* gdy sa produkty — przycisk swieci na zielono */
#cart-btn.has-items { background: var(--green); }
#cart-btn.has-items:hover { background: var(--green-dark); }
#cart-btn.has-items svg { color: #fff; }
#cart-btn.has-items .bubble { background: #fff; color: var(--green); box-shadow: 0 0 0 2px var(--green); }
/* "pop" po dodaniu do koszyka */
.cart-pop { animation: cartPop .38s cubic-bezier(.34,1.56,.64,1); }
@keyframes cartPop {
  0% { transform: scale(1); } 40% { transform: scale(1.24); }
  70% { transform: scale(.93); } 100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .cart-pop { animation: none; } }

/* ---------- nawigacja kategorii ---------- */
.nav { border-top: 1px solid var(--line); background: #fff; }
.nav-in {
  display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none;
}
.nav-in::-webkit-scrollbar { display: none; }
.nav-in a {
  padding: 10px 12px; font-size: .88rem; font-weight: 600; color: var(--ink-2);
  white-space: nowrap; border-bottom: 2px solid transparent; transition: color .12s;
}
.nav-in a:hover { color: var(--green); }
.nav-in a.on { color: var(--green); border-bottom-color: var(--green); }
.nav-sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 8px; flex: 0 0 auto; }
#nav-brands { display: contents; }

/* ---------- sekcje / landing ---------- */
.app { min-height: 60vh; }

.hero {
  background: linear-gradient(120deg, #101010 0%, #1c1c1c 55%, #0d3c25 100%);
  color: #fff;
}
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; padding: 56px 20px; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: #43d187; }
.hero p { color: #c9c9c9; font-size: 1.05rem; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero-art { position: relative; min-height: 240px; }
.hero-art .ha {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  overflow: hidden; transition: transform .25s;
}
.hero-art .ha img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.hero-art .ha:hover { transform: translateY(-4px) rotate(0deg) !important; }
.ha1 { width: 52%; aspect-ratio: 5/4; right: 34%; top: 0; transform: rotate(-5deg); z-index: 2; }
.ha2 { width: 46%; aspect-ratio: 5/4; right: 0; top: 22%; transform: rotate(4deg); z-index: 1; }
.ha3 { width: 40%; aspect-ratio: 5/4; right: 46%; bottom: -4%; transform: rotate(3deg); z-index: 1; }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; padding: 40px 20px; }
  .hero-art { display: none; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 10px;
  font-weight: 700; font-size: .95rem; transition: background .15s, transform .05s, border-color .15s;
  border: 1.5px solid transparent;
}
.btn:active { transform: scale(.98); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { border-color: #ffffff66; color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-line { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }

.props { border-bottom: 1px solid var(--line); background: #fff; }
.props-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px 20px; }
.prop { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.prop svg { width: 20px; height: 20px; color: var(--green); flex: 0 0 auto; }
@media (max-width: 640px) { .props-in { grid-template-columns: 1fr; gap: 8px; } }

.sec { padding: 34px 0 8px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 18px; }
.sec-head h2 { font-size: 1.25rem; font-weight: 800; }
.sec-head a { font-size: .86rem; font-weight: 600; color: var(--mut); white-space: nowrap; }
.sec-head a:hover { color: var(--green); }

.brand-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.brand-tile {
  display: flex; align-items: center; justify-content: center; height: 74px;
  background: var(--tile); border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.brand-tile small { color: var(--mut); font-weight: 600; margin-left: 6px; }
.brand-tile:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); transform: translateY(-2px); }

/* ---------- slider poziomy ---------- */
.slider { position: relative; }
.slider-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(215px, 1fr);
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: 6px;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { scroll-snap-align: start; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
  transition: opacity .15s, border-color .15s;
}
.slider-btn:hover { border-color: var(--ink); }
.slider-btn svg { width: 18px; height: 18px; }
.slider-prev { left: -14px; }
.slider-next { right: -14px; }
.slider-btn[disabled] { opacity: 0; pointer-events: none; }

/* ---------- karta produktu ---------- */
.card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.card:hover { box-shadow: var(--shadow-sm); border-color: var(--line-2); transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 5/4; background: var(--tile); }
.card-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 10px; }
.card-badge {
  position: absolute; left: 10px; top: 10px; background: var(--red); color: #fff;
  font-size: .68rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em;
}
.card-badge.promo { background: var(--green); }
.price-old { color: var(--mut); font-weight: 600; font-size: .78em; margin-right: 2px; }
.card-price.is-promo, .buy-price .price-promo { color: var(--red); }
.card-price.is-promo { color: var(--red); }
.card-fav {
  position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s, border-color .15s; z-index: 2;
}
.card:hover .card-fav, .card-fav.is-fav { opacity: 1; }
.card-fav svg { width: 17px; height: 17px; }
.card-fav.is-fav svg { fill: var(--red); stroke: var(--red); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-brand { font-size: .74rem; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .05em; }
.card-name {
  font-size: .9rem; font-weight: 600; min-height: 2.5em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-price-lbl { margin-top: auto; padding-top: 8px; font-size: .72rem; color: var(--mut); }
.card-price { font-size: 1.05rem; font-weight: 800; }
.card-price small { font-weight: 600; color: var(--mut); font-size: .74rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .slider-track { grid-auto-columns: 46%; }
  .card-name { font-size: .82rem; }
}

/* ---------- katalog ---------- */
.cat-layout { display: grid; grid-template-columns: 272px 1fr; gap: 26px; padding: 24px 0 40px; }
@media (max-width: 900px) { .cat-layout { grid-template-columns: 1fr; } }

.filters {
  position: sticky; top: calc(var(--hdr-h) + 46px); align-self: start;
  max-height: calc(100vh - 130px); overflow-y: auto;
  padding-right: 14px; scrollbar-gutter: stable;   /* pasek przewijania nie najezdza na liczniki */
}
@media (max-width: 900px) {
  .filters {
    position: fixed; inset: 0 auto 0 0; width: min(330px, 88vw); max-height: none;
    background: #fff; z-index: 70; padding: 18px; box-shadow: var(--shadow);
    transform: translateX(-105%); transition: transform .22s; top: 0;
  }
  .filters.open { transform: none; }
}
.f-head { display: none; align-items: center; justify-content: space-between; margin-bottom: 10px; }
@media (max-width: 900px) { .f-head { display: flex; } }
.f-group { border-bottom: 1px solid var(--line); padding: 14px 0; }
.f-group > summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: .92rem; cursor: pointer; user-select: none;
}
.f-group > summary::-webkit-details-marker { display: none; }
.f-group > summary::after { content: "+"; font-weight: 400; color: var(--mut); font-size: 1.1rem; }
.f-group[open] > summary::after { content: "–"; }
.f-body { padding-top: 10px; display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; padding-right: 8px; scrollbar-gutter: stable; }
.f-check { display: flex; align-items: center; gap: 9px; font-size: .88rem; cursor: pointer; padding: 2px 0; }
.f-check input { accent-color: var(--green); width: 16px; height: 16px; }
.f-check .cnt { margin-left: auto; color: var(--mut); font-size: .76rem; }
.f-sub { font-size: .72rem; font-weight: 800; color: var(--mut); text-transform: uppercase;
  letter-spacing: .05em; padding-top: 10px; }
.f-sizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding-top: 8px; }
.f-variants { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
.f-variants .f-size { padding: 6px 11px; background: var(--tile); border-color: transparent; }
.f-variants .f-size:hover { border-color: var(--ink); }
.f-variants .f-size.on { background: var(--ink); color: #fff; }
.f-size {
  border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 0; text-align: center;
  font-size: .8rem; font-weight: 600; transition: border-color .12s, background .12s;
  min-width: 0; overflow: hidden;
}
.f-size:hover { border-color: var(--ink); }
.f-size.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.f-price { display: flex; gap: 8px; align-items: center; padding-top: 10px; }
.f-price input {
  width: 100%; height: 38px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; outline: none;
}
.f-price input:focus { border-color: var(--ink); }
.f-clear { margin-top: 12px; width: 100%; }

.cat-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cat-top h1 { font-size: 1.35rem; font-weight: 800; margin-right: auto; }
.cat-count { color: var(--mut); font-size: .86rem; }
.cat-sort {
  height: 40px; border: 1.5px solid var(--line-2); border-radius: 9px; padding: 0 12px;
  background: #fff; outline: none; font-weight: 600; font-size: .88rem;
}
.f-toggle { display: none; }
@media (max-width: 900px) { .f-toggle { display: inline-flex; height: 40px; } }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; background: var(--green-soft); color: var(--green-dark);
  border-radius: 999px; padding: 5px 12px; font-size: .8rem; font-weight: 700;
}
.chip button { font-size: 1rem; line-height: 1; color: inherit; }

.load-more { display: flex; justify-content: center; padding: 24px 0; }

.empty { text-align: center; color: var(--mut); padding: 70px 20px; }
.empty b { display: block; font-size: 1.1rem; color: var(--ink); margin-bottom: 6px; }

/* ---------- karta produktu (PDP) ---------- */
.crumbs { display: flex; gap: 7px; flex-wrap: wrap; font-size: .8rem; color: var(--mut); padding: 16px 0 4px; }
.crumbs a:hover { color: var(--green); }

.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); gap: 36px; padding: 12px 0 30px; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: 20px; } }

.gal-main {
  position: relative; aspect-ratio: 5/4; background: var(--tile);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  touch-action: pan-y;
}
.gal-main img { width: 100%; height: 100%; object-fit: contain; padding: 4%; mix-blend-mode: multiply; }
.gal-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s, border-color .15s;
}
.gal-btn svg { width: 19px; height: 19px; }
.gal-btn:hover { border-color: var(--ink); }
.gal-prev { left: 12px; }
.gal-next { right: 12px; }
.gal-main:hover .gal-btn, .gal-btn:focus-visible { opacity: 1; }
@media (hover: none) { .gal-btn { opacity: .9; } }   /* dotyk: strzalki zawsze widoczne */
.gal-count {
  position: absolute; right: 12px; bottom: 10px; z-index: 3;
  background: rgba(18,18,18,.72); color: #fff; border-radius: 999px;
  font-size: .72rem; font-weight: 700; padding: 4px 10px; letter-spacing: .03em;
}
.gal-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-top: 10px; }
.gal-thumb {
  aspect-ratio: 5/4; background: var(--tile); border: 1.5px solid var(--line);
  border-radius: 9px; overflow: hidden; padding: 0; transition: border-color .12s;
}
.gal-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gal-thumb.on { border-color: var(--ink); }

.pdp-brand { font-size: .82rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .06em; }
.pdp-brand:hover { text-decoration: underline; }
.pdp h1 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 800; margin: 6px 0 4px; }
.pdp-sub { color: var(--mut); font-size: .84rem; display: flex; gap: 14px; flex-wrap: wrap; }
.pdp-sub b { color: var(--ink-2); font-weight: 600; }

.size-head { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0 9px; }
.size-head h3 { font-size: .95rem; font-weight: 700; }
.size-head span { font-size: .78rem; color: var(--mut); }
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.size-cell {
  border: 1.5px solid var(--line-2); border-radius: 10px; padding: 8px 4px 7px; text-align: center;
  transition: border-color .12s, background .12s, box-shadow .12s; background: #fff;
}
.size-cell b { display: block; font-size: .92rem; }
.size-cell span { display: block; font-size: .74rem; color: var(--mut); font-weight: 600; margin-top: 2px; }
.size-cell:hover { border-color: var(--ink); }
.size-cell.on { border-color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.size-cell.out { opacity: .38; cursor: not-allowed; text-decoration: line-through; }

.buy-box {
  margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #fff;
}
.buy-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.buy-lbl { font-size: .8rem; color: var(--mut); }
.buy-price { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.buy-note { font-size: .78rem; color: var(--mut); }
.buy-note.ok { color: var(--green-dark); font-weight: 600; }
.buy-note.warn { color: var(--amber); font-weight: 600; }
.buy-actions { display: flex; gap: 10px; }
.buy-actions .btn-green { flex: 1; height: 50px; font-size: 1rem; }
.fav-big { width: 50px; height: 50px; border: 1.5px solid var(--line-2); border-radius: 10px; display: flex; align-items: center; justify-content: center; transition: border-color .15s; }
.fav-big:hover { border-color: var(--ink); }
.fav-big svg { width: 22px; height: 22px; }
.fav-big.is-fav svg { fill: var(--red); stroke: var(--red); }

.pdp-acc { margin-top: 22px; border-top: 1px solid var(--line); }
.pdp-acc details { border-bottom: 1px solid var(--line); }
.pdp-acc summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 2px; font-weight: 700; font-size: .95rem; cursor: pointer;
}
.pdp-acc summary::-webkit-details-marker { display: none; }
.pdp-acc summary::after { content: "+"; color: var(--mut); font-weight: 400; font-size: 1.2rem; }
.pdp-acc details[open] summary::after { content: "–"; }
.pdp-acc .acc-body { padding: 0 2px 16px; font-size: .9rem; color: var(--ink-2); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.spec-table td { padding: 7px 4px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.spec-table td:first-child { color: var(--mut); width: 42%; }
.desc-html { overflow-wrap: anywhere; }
.desc-html img { border-radius: 10px; margin: 8px 0; }
.desc-html h1, .desc-html h2, .desc-html h3 { font-size: 1rem; margin: 14px 0 6px; }
.desc-html ul { padding-left: 20px; }

/* ---------- ulubione / strony statyczne ---------- */
.page { max-width: 820px; margin: 0 auto; padding: 30px 20px 60px; }
.page h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 14px; }
.page h2 { font-size: 1.1rem; margin: 22px 0 8px; }
.page p, .page li { color: var(--ink-2); font-size: .94rem; }
.page-wide { max-width: 1280px; }

/* ---------- koszyk (drawer) ---------- */
.drawer-veil { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 80; opacity: 0; transition: opacity .2s; }
.drawer-veil.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 94vw); z-index: 90;
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .24s cubic-bezier(.2,.7,.3,1);
  box-shadow: var(--shadow);
}
.drawer.show { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 1.15rem; font-weight: 800; }
.drawer-ship { padding: 12px 18px 0; }
.ship-bar { height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 7px; }
.ship-bar i { display: block; height: 100%; background: var(--green); border-radius: 4px; transition: width .3s; }
.ship-txt { font-size: .8rem; color: var(--ink-2); }
.ship-txt b { color: var(--green-dark); }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 18px; display: flex; flex-direction: column; gap: 12px; }
.ci { display: flex; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.ci img { width: 84px; height: 66px; object-fit: contain; background: var(--tile); border-radius: 8px; flex: 0 0 auto; }
.ci-name { font-size: .84rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ci-meta { font-size: .76rem; color: var(--mut); margin-top: 2px; }
.ci-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 8px; }
.qty button { width: 28px; height: 28px; font-size: 1rem; font-weight: 700; }
.qty button:hover { color: var(--green); }
.qty b { min-width: 26px; text-align: center; font-size: .86rem; }
.ci-price { font-weight: 800; font-size: .92rem; }
.ci-del { color: var(--mut); font-size: .76rem; text-decoration: underline; }
.ci-del:hover { color: var(--red); }
.drawer-foot { border-top: 1px solid var(--line); padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.sum-row { display: flex; justify-content: space-between; font-size: .9rem; color: var(--ink-2); }
.sum-row.total { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.cart-empty { text-align: center; color: var(--mut); padding: 40px 10px; }

/* ---------- checkout ---------- */
.chk { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr); gap: 30px; padding: 26px 0 60px; }
@media (max-width: 900px) { .chk { grid-template-columns: 1fr; } }
.chk h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.chk-sec { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 16px; }
.chk-sec h3 { font-size: 1rem; font-weight: 800; margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; gap: 5px; }
.fld label { font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.fld input, .fld textarea {
  height: 44px; border: 1.5px solid var(--line-2); border-radius: 9px; padding: 0 12px; outline: none;
  transition: border-color .12s; background: #fff; width: 100%;
}
.fld textarea { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; }
.fld input:focus, .fld textarea:focus { border-color: var(--ink); }
.fld input.err { border-color: var(--red); }
/* pole hasla z podgladem (oczko) */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-eye {
  position: absolute; top: 0; right: 0; height: 44px; width: 42px;
  display: flex; align-items: center; justify-content: center;
  color: var(--mut); background: none; border: 0; cursor: pointer;
}
.pw-eye:hover { color: var(--ink); }
.pw-eye svg { width: 20px; height: 20px; }
.opt {
  display: flex; align-items: center; gap: 11px; border: 1.5px solid var(--line-2); border-radius: 10px;
  padding: 12px 14px; cursor: pointer; transition: border-color .12s, background .12s; margin-top: 8px;
}
.opt.on { border-color: var(--green); background: var(--green-soft); }
.opt input { accent-color: var(--green); width: 17px; height: 17px; }
.opt .opt-lbl { font-weight: 700; font-size: .9rem; }
.opt .opt-sub { font-size: .78rem; color: var(--mut); }
.opt .opt-price { margin-left: auto; font-weight: 800; font-size: .88rem; }
.chk-side { align-self: start; position: sticky; top: calc(var(--hdr-h) + 60px); }
.chk-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; max-height: 320px; overflow-y: auto; }
.chk-alert { background: #fdecea; color: var(--red); border-radius: 10px; padding: 12px 14px; font-size: .86rem; margin-top: 12px; }
.chk-ok { text-align: center; padding: 60px 20px; }
.chk-ok .big { font-size: 3rem; }
.chk-ok h1 { margin: 10px 0 6px; }
.chk-ok .ref { display: inline-block; background: var(--tile); border: 1px dashed var(--line-2); border-radius: 10px; padding: 8px 18px; font-weight: 800; font-size: 1.15rem; margin: 12px 0; }

/* ---------- toasty ---------- */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; width: min(420px, 92vw); }
.toast {
  background: var(--ink); color: #fff; border-radius: 10px; padding: 12px 16px; font-size: .88rem;
  box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center;
  animation: toast-in .22s ease-out;
}
.toast.ok { background: var(--green-dark); }
.toast.err { background: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- stopka ---------- */
.ftr { background: var(--ink); color: #bdbdbd; margin-top: 50px; }
.ftr-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 26px; padding: 42px 20px; }
.ftr h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.ftr a { display: block; padding: 4px 0; font-size: .88rem; }
.ftr a:hover { color: #fff; }
.ftr-logo { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.ftr-logo i { color: var(--green); font-style: normal; }
.ftr-tag { font-size: .85rem; margin-top: 8px; }
.ftr-small { font-size: .75rem; color: #8a8a8a; margin-top: 14px; }
@media (max-width: 760px) { .ftr-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- szkielety ladowania ---------- */
.sk { background: linear-gradient(90deg, var(--tile) 25%, #efefef 37%, var(--tile) 63%); background-size: 400% 100%; animation: sk 1.2s infinite ease; border-radius: var(--radius); }
@keyframes sk { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sk-card { aspect-ratio: 5/6; }

/* ---------- konto / rabaty / status zamowienia ---------- */
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
@media (max-width: 760px) { .auth-grid { grid-template-columns: 1fr; } }
.acc-ok { color: var(--green-dark); font-weight: 700; font-size: .9rem; }
.acc-warn {
  background: #fdf6e3; border: 1px solid #f0e2b6; color: #8a6d00;
  border-radius: 10px; padding: 12px 14px; font-size: .88rem; margin: 10px 0;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
}
.acc-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 26px; }
.acc-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.acc-order {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px;
  transition: border-color .12s, box-shadow .12s;
}
.acc-order:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.acc-st { font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.acc-st-new { background: #fff3e6; color: #b35500; }
.acc-st-pending_payment { background: #fdf3d7; color: #8a6d00; }
.acc-st-paid { background: #e6f4ff; color: #0061a8; }
.acc-st-shipped { background: var(--green-soft); color: var(--green-dark); }
.acc-st-cancelled { background: #f1f1f1; color: #888; }

.disc-row { display: flex; gap: 8px; }
.disc-row input {
  flex: 1; height: 44px; border: 1.5px solid var(--line-2); border-radius: 9px;
  padding: 0 12px; outline: none; text-transform: uppercase;
}
.disc-row input:focus { border-color: var(--ink); }
.disc-ok { color: var(--green-dark); font-weight: 700; font-size: .84rem; margin-top: 9px; }
.disc-err { color: var(--red); font-size: .84rem; margin-top: 9px; }

/* dostepnosc */
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
