/* sklep */

.shop-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.shop-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--waves) 0 0 / 60px 30px;
  opacity: .18;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
  mask-image: linear-gradient(90deg, transparent 30%, #000);
  z-index: -1;
}
.shop-hero h1 {
  font-size: clamp(64px, 12vw, 150px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: .95;
  padding-bottom: .06em;
}
.shop-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.shop-hero-row > p { color: var(--muted); max-width: 560px; margin: 0; }
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  color: var(--muted);
  display: grid;
  gap: 4px;
}
.facts b { color: var(--text); }

.shop { padding-top: 40px; }

/* ---------- wybór trybu ---------- */
.step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 16px;
}
.step-label .mono {
  font-size: 13px;
  color: var(--gold);
  border: 1px solid rgba(244, 192, 74, .4);
  border-radius: 6px;
  padding: 2px 7px;
}
.mode-pick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 44px;
}
.mode-card {
  font: inherit;
  text-align: left;
  color: var(--text);
  background: var(--bg-2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 16px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: border-color .15s, transform .15s, background .15s;
}
.mode-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  opacity: .5;
}
.mode-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.mode-card b { font-size: 22px; font-weight: 800; }
.mode-card span { font-size: 14px; color: var(--muted); }
.mode-card small { font-size: 11px; color: var(--dim); margin-top: 6px; }
.mode-card[aria-selected="true"] {
  border-color: var(--accent);
  background:
    radial-gradient(240px 120px at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent),
    var(--bg-3);
}
.mode-card[aria-selected="true"]::before { opacity: 1; }
.mode-card.is-soon {
  cursor: default;
  background: transparent;
  border-style: dashed;
  border-color: var(--line-2);
  align-content: center;
}
.mode-card.is-soon::before { display: none; }
.mode-card.is-soon:hover { transform: none; }
.mode-card.is-soon b { color: var(--dim); }
.mode-card[aria-selected="true"] small { color: var(--accent); }

.shop-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.shop-bar .step-label { margin: 0; }

/* ---------- zakładki ---------- */
.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--line-2);
  padding: 9px 18px;
  border-radius: 30px;
  cursor: pointer;
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] {
  background: var(--pink);
  color: #2a0420;
  border-color: var(--pink);
}

/* ---------- produkty ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  transition: border-color .15s, transform .15s;
}
.product:hover { border-color: var(--line-2); transform: translateY(-2px); }
.product.is-rank { border-top: 3px solid var(--accent); }
.ribbon {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--gold);
  color: #2a1600;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  transform: rotate(2deg);
}
.product-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.product h3 { font-size: 24px; font-weight: 700; }
.rank-tag { color: var(--accent); font-size: 26px; letter-spacing: -.01em; }
.period { font-size: 12px; color: var(--dim); white-space: nowrap; }
.desc { color: var(--muted); margin: 0 0 10px; font-size: 16px; }
.works-in {
  font-size: 11px;
  color: var(--cyan);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cart-mode {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 0 4px;
  margin-right: 4px;
}
.perks {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-size: 15px;
  display: grid;
  gap: 7px;
}
.perks li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
}
.perks li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  margin-top: 8px;
  transform: rotate(45deg);
}
.product-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-2);
}
.price { display: flex; flex-direction: column; }
.price strong { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.price .old { font-size: 14px; color: var(--dim); text-decoration: line-through; }
.product .add { padding: 10px 16px; font-size: 15px; }
.omnibus { font-size: 12px; color: var(--dim); margin: 12px 0 0; }

.shop-legal {
  margin-top: 40px;
  font-size: 14px;
  color: var(--dim);
  max-width: 640px;
}
.shop-legal a { color: var(--pink-2); }

/* ---------- szuflada koszyka ---------- */
body.drawer-open { overflow: hidden; }
.drawer-bg {
  position: fixed;
  inset: 0;
  background: rgba(5, 3, 7, .6);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.drawer-open .drawer-bg { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100%);
  background: var(--bg-2);
  border-left: 1px solid var(--line-2);
  z-index: 90;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: 26px; font-weight: 800; }
.x {
  background: none;
  border: 1px solid var(--line-2);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.drawer-body[hidden], .drawer-foot[hidden] { display: none; }

.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-list b { display: block; }
.cart-list small { color: var(--dim); font-size: 13px; }
.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.qty button {
  background: none;
  border: 0;
  color: var(--text);
  width: 30px;
  height: 30px;
  font-size: 17px;
  cursor: pointer;
}
.qty button:hover { color: var(--pink); }
.qty span { min-width: 22px; text-align: center; font-size: 14px; }
.line-sum { min-width: 78px; text-align: right; font-size: 15px; }
.cart-empty { text-align: center; padding: 50px 0; color: var(--muted); }
.cart-empty[hidden] { display: none; }

.drawer-foot {
  border-top: 1px solid var(--line);
  padding: 18px 24px 22px;
  background: var(--bg);
}
.sum-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 17px;
}
.sum-row strong { font-size: 26px; font-weight: 800; }
.vat-note { font-size: 12px; color: var(--dim); margin: 2px 0 14px; }
.foot-btns { display: flex; gap: 10px; }
.foot-btns .btn-pink { flex: 1; justify-content: center; }
.foot-btns [hidden] { display: none; }

/* ---------- formularz ---------- */
.checkout { display: grid; gap: 18px; align-content: start; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span { font-weight: 600; font-size: 15px; }
.field small { color: var(--dim); font-size: 13px; }
.field input:not([type]),
.field input[type="email"] {
  font: inherit;
  background: var(--bg);
  border: 1.5px solid var(--line-2);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius);
  outline: none;
}
.field input:focus { border-color: var(--violet-2); }
.field input[name="nick"] { font-family: var(--f-mono); }

.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pay-methods label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line-2);
  padding: 11px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 15px;
}
.pay-methods label:has(input:checked) { border-color: var(--pink); background: rgba(255, 63, 155, .07); }
.pay-methods input, .check input { accent-color: var(--pink); }

.consents { display: grid; gap: 12px; }
.check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.check input { width: 17px; height: 17px; margin-top: 2px; }
.check a { color: var(--pink-2); }
.check em { color: var(--pink); font-style: normal; }
.form-error { color: #ff7a9a; font-size: 14px; margin: 0; min-height: 1em; }

.done { padding: 30px 0; }
.done h3 { font-size: 26px; margin-bottom: 12px; }
.done p { color: var(--muted); margin: 0 0 24px; }

/* ---------- metody płatności ---------- */
.hero-side { display: grid; gap: 12px; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 6px; max-width: 300px; }
.pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: var(--bg-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.pay-blik { background: #000; border-color: #000; color: #fff; font-weight: 800; letter-spacing: -.02em; text-transform: lowercase; }
.pay-visa { color: #fff; background: #1a1f71; border-color: #1a1f71; font-style: italic; font-weight: 800; }
.secure-note { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--dim); max-width: 300px; }
.secure-note svg { flex: none; color: var(--ok); }
.pay-methods .pay-badge { height: 22px; font-size: 11px; padding: 0 6px; }

/* ---------- porównanie rang ---------- */
.compare { margin-top: 56px; }
.compare[hidden] { display: none; }
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.compare-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.compare-table th, .compare-table td { padding: 14px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.compare-table tbody th, .compare-table tfoot th { text-align: left; font-weight: 600; color: var(--muted); }
.compare-table thead th { border-bottom: 2px solid var(--line-2); }
.compare-table thead .rank-tag { font-size: 16px; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tfoot td, .compare-table tfoot th { border-top: 2px solid var(--line-2); border-bottom: 0; vertical-align: top; }
.compare-table tfoot strong { display: block; font-size: 20px; font-weight: 800; }
.compare-table tfoot small { display: block; color: var(--dim); font-size: 11px; margin-bottom: 10px; }
.compare-table .add { padding: 8px 12px; font-size: 13px; }
.compare-table .yes { color: var(--ok); font-weight: 800; }
.compare-table .no { color: var(--dim); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- podgląd skórki ---------- */
.skin-preview { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 10px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); }
.skin-preview[hidden] { display: none; }
.skin-preview img { image-rendering: pixelated; border-radius: 4px; flex: none; }
.skin-preview p { margin: 0; display: grid; gap: 2px; }
.field > span small { font-weight: 400; color: var(--dim); }

/* ---------- responsywność ---------- */
@media (max-width: 960px) {
  .products { grid-template-columns: 1fr 1fr; }
  .mode-pick { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .products { grid-template-columns: 1fr; }
  .mode-card { padding: 14px; }
  .mode-card b { font-size: 19px; }
  .mode-card span { font-size: 13px; }
  .shop-hero { padding: 44px 0 30px; }
  .drawer-head, .drawer-body, .drawer-foot { padding-left: 16px; padding-right: 16px; }
  .cart-list li { grid-template-columns: 1fr auto; }
  .line-sum { grid-column: 2; text-align: right; }
}
