/* Sklep PowSpec – samodzielne style (nie zależą od plików strony głównej) */
:root {
  --bg: #0b1220;
  --bg-deep: #070b14;
  --card: #121a2b;
  --card-2: #161d2f;
  --inset: #0c121e;
  --line: #1f2a40;
  --line-2: #2c3752;
  --text: #f3f5f9;
  --muted: #8a97ad;
  --blue: #3d8bff;
  --blue-soft: #17305a;
  --blue-line: #3374d6;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --purple: #a855f7;
  --r: 22px;
  --max: 1160px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%) fixed, var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, -apple-system, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--blue); }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* ── nagłówek ── */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(11, 18, 32, .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand b { display: block; font-size: 18px; line-height: 1.15; font-weight: 600; }
.brand small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .12em; }
.nav nav { display: flex; align-items: center; gap: 8px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 8px 14px; border-radius: 999px; }
.nav nav a:hover { color: var(--text); background: var(--card); }
.cart-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text) !important; background: var(--card); border: 1px solid var(--line-2); }
.cart-link svg { width: 18px; height: 18px; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.cart-count:empty, .cart-count[data-n="0"] { display: none; }

/* ── przyciski ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 12px 22px; border-radius: 16px; border: 1px solid var(--blue); background: var(--blue); color: #fff;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background .15s, transform .15s;
}
.btn:hover { background: #5a9cff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: var(--card-2); border-color: var(--line-2); color: var(--text); }
.btn.ghost:hover { border-color: var(--blue-line); }
.btn.big { padding: 15px 26px; font-size: 16px; }
.btn.added { background: var(--green); border-color: var(--green); }

/* ── hero ── */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -10%; top: -40%; width: 700px; height: 700px; background: radial-gradient(closest-side, rgba(61, 139, 255, .2), transparent 70%); pointer-events: none; }
.label { display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); max-width: 260px; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -.03em; margin: 16px 0 14px; }
h1 em { font-style: normal; color: var(--blue); }
.lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0; }
.perks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 24px; color: var(--muted); font-size: 14px; }
.perks span { display: inline-flex; align-items: center; gap: 8px; }
.perks svg { width: 18px; height: 18px; color: var(--blue); }

/* ── lista produktów ── */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; padding: 16px 0 88px; }
.product {
  position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; transition: border-color .15s, transform .15s;
}
.product:hover { border-color: var(--blue-line); transform: translateY(-2px); }
.product .pic { aspect-ratio: 16 / 10; background: radial-gradient(400px 200px at 50% 0%, rgba(61, 139, 255, .14), transparent), var(--inset); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.product .pic svg { width: 86%; height: auto; }
.product .body { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; flex: 1; }
.product h2 { margin: 0; font-size: 19px; line-height: 1.25; }
.product h2 a { color: var(--text); text-decoration: none; }
.product h2 a::after { content: ""; position: absolute; inset: 0; }
.product .sub { color: var(--muted); font-size: 14px; margin: 0; }
.product .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.price { font-size: 22px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.price small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.product .btn { position: relative; z-index: 1; padding: 10px 16px; }
.badge { position: absolute; top: 14px; left: 14px; z-index: 1; font-size: 12px; font-weight: 700; color: #fff; background: var(--blue); padding: 4px 10px; border-radius: 999px; }
.badge.off { background: var(--line-2); color: var(--muted); }

/* ── strona produktu ── */
.crumbs { font-size: 14px; color: var(--muted); padding: 28px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.pdp { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; padding: 24px 0 88px; align-items: start; }
.pdp > * { min-width: 0; }
.pdp .pic { position: sticky; top: 96px; border-radius: 28px; border: 1px solid var(--line-2); padding: 40px 28px; background: radial-gradient(500px 260px at 50% 0%, rgba(61, 139, 255, .18), transparent), var(--inset); }
.pdp h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 6px; }
.pdp .sub { color: var(--muted); font-size: 17px; margin: 0 0 18px; }
.pdp .price { font-size: 32px; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--green); margin: 6px 0 22px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.off { color: var(--muted); }
.buy { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; margin-bottom: 26px; }
.qty { display: inline-flex; align-items: center; background: var(--inset); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
.qty button { width: 42px; height: 100%; min-height: 46px; background: none; border: 0; cursor: pointer; font-size: 18px; color: var(--muted); }
.qty button:hover { color: var(--text); background: var(--card-2); }
.qty input { width: 44px; text-align: center; background: none; border: 0; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pdp p.desc { color: #c9d1de; margin: 0 0 18px; }
.checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; color: var(--blue); background: var(--blue-soft); margin-top: 1px; }
.specs { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { color: var(--muted); font-weight: 500; width: 42%; }
.doc-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; text-decoration: none; }

/* ── koszyk i zamówienie ── */
.page-head { padding: 40px 0 10px; }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); margin: 10px 0 0; }
.checkout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; padding: 18px 0 88px; align-items: start; }
.checkout > * { min-width: 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.panel + .panel, #order { margin-top: 18px; }
.panel h2 { font-size: 18px; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.panel h2 span { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; background: var(--blue-soft); color: var(--blue); border: 1px solid var(--blue-line); }
.line-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-item:first-child { padding-top: 0; }
.line-item:last-child { border-bottom: 0; padding-bottom: 0; }
.line-item .thumb { width: 76px; height: 54px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.line-item .thumb svg { width: 90%; }
.line-item b { display: block; font-size: 15px; }
.line-item .ctrl { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.line-item .qty button { min-height: 34px; width: 34px; font-size: 16px; }
.line-item .qty input { width: 34px; font-size: 14px; }
.remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; padding: 4px 0; }
.remove:hover { color: var(--red); }
.line-item .sum { font-weight: 700; white-space: nowrap; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .btn { margin-top: 16px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--inset); border: 1px solid var(--line-2); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61, 139, 255, .2); }
.field input:user-invalid { border-color: var(--red); }
details.invoice { margin-top: 14px; }
details.invoice summary { cursor: pointer; color: var(--blue); font-size: 14px; font-weight: 600; }
details.invoice .grid2 { margin-top: 12px; }

.options { display: grid; gap: 10px; }
.option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--inset); border: 1px solid var(--line-2); cursor: pointer; transition: border-color .15s, background .15s; }
.option:hover { border-color: #3a4766; }
.option input { accent-color: var(--blue); width: 18px; height: 18px; margin: 0; }
.option div { flex: 1; }
.option b { display: block; font-size: 15px; }
.option small { color: var(--muted); font-size: 13px; }
.option .cost { font-weight: 600; white-space: nowrap; }
.option:has(input:checked) { border-color: var(--blue-line); background: var(--blue-soft); }
.option.disabled { opacity: .45; cursor: not-allowed; }

.summary { position: sticky; top: 96px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: #c9d1de; font-size: 15px; }
.summary .row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; color: var(--text); font-size: 20px; font-weight: 700; }
.summary .free { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.summary .free b { color: var(--green); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 16px 0; cursor: pointer; }
.consent input { accent-color: var(--blue); width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.summary .btn { width: 100%; }
.form-error { display: none; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .4); color: #fca5a5; font-size: 14px; }
.form-error.show { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── potwierdzenie ── */
.thanks { max-width: 640px; margin: 0 auto; padding: 64px 0 96px; text-align: center; }
.thanks .ok { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 197, 94, .14); color: var(--green); border: 1px solid rgba(34, 197, 94, .45); }
.thanks .ok svg { width: 34px; height: 34px; }
.thanks h1 { font-size: clamp(30px, 4vw, 40px); margin: 0 0 10px; }
.thanks .panel { text-align: left; margin-top: 26px; }
.thanks .kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.thanks dt { color: var(--muted); }
.thanks dd { margin: 0; font-weight: 600; word-break: break-word; }

/* ── dokument (regulamin) ── */
.doc { max-width: 820px; padding: 40px 0 96px; }
.doc h2 { font-size: 21px; margin: 32px 0 10px; }
.doc p, .doc li { color: #c9d1de; }
.todo { background: rgba(245, 158, 11, .15); color: var(--amber); border-radius: 6px; padding: 0 5px; font-weight: 600; }

/* ── komunikat „dodano do koszyka” ── */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 50;
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; border-radius: 18px;
  background: var(--card-2); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast .btn { padding: 8px 14px; font-size: 14px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 14px; background: var(--bg-deep); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .pdp, .checkout { grid-template-columns: 1fr; }
  .pdp .pic, .summary { position: static; }
}
@media (max-width: 620px) {
  .nav nav a:not(.cart-link) { display: none; }
  .brand small { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .line-item { grid-template-columns: 60px 1fr; }
  .line-item .thumb { width: 60px; height: 44px; }
  .line-item .sum { grid-column: 2; }
  .toast { left: 16px; right: 16px; transform: translateY(20px); }
  .toast.show { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product, .btn, .toast { transition: none; }
}
