/* ==========================================================================
   Guide (guide-ir.pl) — motyw "termowizja"
   Ciemne tło, 3 panele kategorii rozwijane na hover, akcent = gradient
   inspirowany paletą termowizyjną (Ironbow: fiolet -> róż -> pomarańcz -> żółty).
   Sygnaturowy gradient używany oszczędnie: hover paneli, aktywne obramowania, CTA.
   Zdjęcia produktowe (białe tło z auctis.pl) pokazywane na jasnych, białych
   powierzchniach zamiast na ciemnym tle karty — bez maskowania krawędzi.
   ========================================================================== */

:root {
    --bg: #0a0a0c;
    --bg-panel: #16161a;
    --bg-panel-2: #1d1d22;
    --text: #f2f2f4;
    --text-muted: #96969e;
    --line: #29292f;
    --thermal-1: #2a0845;
    --thermal-2: #7b2ff7;
    --thermal-3: #e0218a;
    --thermal-4: #ff6a00;
    --thermal-5: #ffd60a;
    --thermal-gradient: linear-gradient(90deg, var(--thermal-2), var(--thermal-3), var(--thermal-4), var(--thermal-5));
    --font-display: "Archivo Black", Impact, "Arial Narrow", sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-h: 60px;
}

* { box-sizing: border-box; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: var(--font-body);
    font-synthesis: none;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

/* --- nav --- */
.t2-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0));
    transition: background .3s ease, box-shadow .3s ease;
}
.t2-has-panels .t2-nav { background: linear-gradient(to bottom, rgba(0,0,0,0.65), rgba(0,0,0,0)); box-shadow: 0 1px 0 0 transparent; }
body:not(.t2-has-panels) .t2-nav { background: rgba(10,10,12,0.85); backdrop-filter: blur(10px); box-shadow: 0 1px 0 0 var(--line); }
.t2-nav__inner {
    height: var(--nav-h); max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
}
.t2-nav__logo { display: flex; align-items: center; }
.t2-nav__logo-img { height: 45px; width: auto; display: block; }
.t2-nav__links { display: flex; gap: 28px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: #fff; }
.t2-nav__links a { opacity: .85; position: relative; padding-bottom: 4px; }
.t2-nav__links a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
    background: var(--thermal-gradient); transition: right .25s ease;
}
.t2-nav__links a:hover { opacity: 1; }
.t2-nav__links a:hover::after { right: 0; }
.t2-icon-btn { color: #fff; display: flex; }
.t2-nav__actions { display: flex; align-items: center; gap: 12px; position: relative; }
/* Przełączniki języka/waluty w nagłówku (Seek) — własny dropdown <details>/<summary>.
   Panel wielokolumnowy: wszystkie 24 języki / 17 walut widoczne naraz, bez przewijania
   na desktopie. Toggle natywny (details), zamknięcie kliknięciem poza — w site.js. */
.t2-switch { position: relative; }
.t2-switch > summary { list-style: none; }
.t2-switch > summary::-webkit-details-marker { display: none; }
.t2-switch__btn {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.08); color: #fff;
    border: 1px solid rgba(255,255,255,0.20); border-radius: 8px;
    font-size: 12px; font-weight: 600; letter-spacing: .03em; line-height: 1;
    padding: 7px 9px; cursor: pointer; user-select: none;
    transition: background-color .18s ease, border-color .18s ease;
}
.t2-switch__btn:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.35); }
.t2-switch[open] .t2-switch__btn { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.45); }
.t2-switch__chev { flex: none; transition: transform .18s ease; }
.t2-switch[open] .t2-switch__chev { transform: rotate(180deg); }
.t2-switch__panel {
    position: absolute; top: calc(100% + 7px); right: 0; z-index: 300;
    display: grid; gap: 2px; padding: 8px;
    background: #12181f; border: 1px solid rgba(255,255,255,0.14); border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.t2-switch__panel--lang { grid-template-columns: repeat(4, 1fr); }
.t2-switch__panel--cur  { grid-template-columns: repeat(3, 1fr); }
.t2-switch__opt {
    display: block; padding: 6px 12px; border-radius: 6px;
    font-size: 12px; font-weight: 600; letter-spacing: .03em; color: #cdd7e0;
    text-decoration: none; text-align: center; white-space: nowrap;
}
.t2-switch__opt:hover { background: rgba(255,255,255,0.10); color: #fff; }
.t2-switch__opt.is-current { background: rgba(255,255,255,0.18); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25); }
@media (max-width: 520px) {
    .t2-nav__actions { gap: 8px; }
    .t2-switch__btn { font-size: 11px; padding: 6px 7px; }
    .t2-switch__panel--lang { grid-template-columns: repeat(3, 1fr); }
    .t2-switch__panel--cur  { grid-template-columns: repeat(3, 1fr); }
}

/* Na stronie głównej pasek z kategoriami jest schowany, dopóki widoczne są
   3 duże panele — nie ma sensu dublować nawigacji. Gdy użytkownik zjedzie
   niżej (panele znikają z widoku), pasek "wysuwa się" od góry: przezroczyste
   tło nav zmienia się na pełne (jak na innych stronach), a linki wjeżdżają
   z góry z fade-in, zamiast pojawiać się/znikać na sztywno (display:none nie
   da się animować). */
.t2-has-panels .t2-nav__links {
    opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}
.t2-has-panels.t2-nav-scrolled .t2-nav {
    background: rgba(10,10,12,0.9); backdrop-filter: blur(10px); box-shadow: 0 1px 0 0 var(--line);
}
.t2-has-panels.t2-nav-scrolled .t2-nav__links {
    opacity: 1; transform: translateY(0); pointer-events: auto;
}
@media (max-width: 700px) { .t2-nav__links { display: none; } }

body:not(.t2-has-panels) .t2-main { padding-top: var(--nav-h); }

/* --- panele głównej --- */
.t2-panels {
    display: flex; height: 100vh; min-height: 480px; width: 100%;
}
.t2-panel {
    position: relative; flex: 1 1 0; overflow: hidden; background: var(--bg);
    transition: flex-grow .5s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
}
.t2-panels:hover .t2-panel { flex-grow: 2; }
.t2-panels .t2-panel:hover { flex-grow: 3; }
.t2-panel__img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.02); transition: transform .6s ease;
}
.t2-panel:hover .t2-panel__img { transform: scale(1.08); }
/* Oferta dnia: domyślne centrowanie kadru ucinało znak "%" — przesuwamy
   punkt kadrowania w prawo, żeby cały symbol był widoczny. */

.t2-panel__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.35) 100%);
}
.t2-panel__accent {
    position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
    background: var(--thermal-gradient); opacity: 0; transition: opacity .3s ease;
}
.t2-panel:hover .t2-panel__accent { opacity: 1; }
.t2-panel__label {
    position: absolute; left: 24px; right: 24px; bottom: 28px; color: #fff;
}
.t2-panel__count { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--thermal-5); margin-bottom: 6px; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
.t2-panel:hover .t2-panel__count { opacity: 1; transform: translateY(0); }
.t2-panel__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 2.6vw, 32px); line-height: 1.1; letter-spacing: 0.01em; }

.t2-panel.is-expanding { flex-grow: 100 !important; transition: flex-grow .45s cubic-bezier(0.22, 1, 0.36, 1); }
.t2-panels.is-navigating .t2-panel:not(.is-expanding) { flex-grow: 0 !important; opacity: 0; transition: flex-grow .45s ease, opacity .3s ease; }

@media (max-width: 780px) {
    .t2-panels { flex-direction: column; height: auto; }
    .t2-panel { height: 34vh; flex-grow: 1 !important; }
    .t2-panels:hover .t2-panel,
    .t2-panels .t2-panel:hover { flex-grow: 1; }
    .t2-panel:hover .t2-panel__img { transform: scale(1.02); }
}

/* --- o marce (zamiast pojedynczego hasła — szersza informacja jak w oryginale) --- */
.t2-intro {
    max-width: 1100px; margin: 0 auto; padding: 90px 24px 70px; text-align: center;
}
.t2-intro__eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--thermal-4); margin: 0 0 14px; }
.t2-intro h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3.6vw, 34px); line-height: 1.2; margin: 0 0 20px; }
.t2-intro p { color: var(--text-muted); font-size: 15.5px; line-height: 1.75; margin: 0 0 14px; text-align: left; }
.t2-intro p:last-child { margin-bottom: 0; }

/* --- zastosowania (6 ikon) --- */
.t2-features { max-width: 1100px; margin: 0 auto; padding: 10px 24px 90px; }
.t2-features__heading { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 3vw, 30px); text-align: center; margin: 0 0 48px; }
.t2-features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
@media (max-width: 820px) { .t2-features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .t2-features__grid { grid-template-columns: 1fr; } }
.t2-feature { text-align: center; }
.t2-feature__icon {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center; color: #fff;
}
.t2-feature__icon svg { width: 28px; height: 28px; }
/* Każda ikona ma inne przejście tonalne termowizji i inny kierunek gradientu —
   celowo zróżnicowane, żeby rząd 6 plakietek nie wyglądał na jeden powielony wzór. */
.t2-feature:nth-child(1) .t2-feature__icon { background: linear-gradient(135deg, var(--thermal-2), var(--thermal-4)); }
.t2-feature:nth-child(2) .t2-feature__icon { background: linear-gradient(45deg, var(--thermal-3), var(--thermal-5)); }
.t2-feature:nth-child(3) .t2-feature__icon { background: linear-gradient(200deg, var(--thermal-1), var(--thermal-3)); }
.t2-feature:nth-child(4) .t2-feature__icon { background: linear-gradient(320deg, var(--thermal-4), var(--thermal-2)); }
.t2-feature:nth-child(5) .t2-feature__icon { background: linear-gradient(60deg, var(--thermal-5), var(--thermal-3)); }
.t2-feature:nth-child(6) .t2-feature__icon { background: linear-gradient(160deg, var(--thermal-2), var(--thermal-5)); }
.t2-feature h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.t2-feature p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* --- nagłówek strony kategorii --- */
.t2-category-hero {
    position: sticky; top: 0; z-index: 0;
    height: 46vh; min-height: 300px; max-height: 420px; overflow: hidden;
}
.t2-category-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t2-category-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, rgba(10,10,12,0.35) 55%, rgba(10,10,12,0.55) 100%);
}
.t2-category-hero__content { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 24px 40px; max-width: 1280px; margin: 0 auto; }
.t2-category-hero h1 {
    font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 4.5vw, 48px); margin: 0;
    display: inline-block; position: relative; padding-bottom: 14px;
}
.t2-category-hero h1::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px;
    background: var(--thermal-gradient); border-radius: 2px;
}

/* "Kartka" z opisem i produktami wjeżdża na przypięte (sticky) zdjęcie w miarę
   przewijania: ujemny margines podciąga ją nad dół hero, a że hero zostaje
   przypięte, treść stopniowo je zasłania od dołu zamiast po prostu "znikać
   razem z nim". Zaokrąglony górny narożnik podkreśla efekt zasuwanej płyty. */
.t2-category-shell {
    position: relative; z-index: 1; background: var(--bg);
    margin-top: -56px; border-radius: 28px 28px 0 0;
    padding-top: 8px;
}

.t2-category-desc {
    max-width: 1280px; margin: 0 auto; padding: 48px 24px 8px;
    color: var(--text-muted); font-size: 15px; line-height: 1.8;
}
.t2-category-desc p { margin: 0 0 16px; }
.t2-category-desc p:last-child { margin-bottom: 0; }

.t2-grid {
    max-width: 1280px; margin: 0 auto; padding: 32px 24px 100px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 1000px) { .t2-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .t2-grid { grid-template-columns: 1fr; } }

.t2-card {
    background: var(--bg-panel); border: 1px solid var(--line); border-radius: 14px;
    padding: 22px 18px; position: relative; overflow: hidden;
    transition: border-color .25s ease, transform .25s ease;
    display: flex; flex-direction: column; height: 100%;
}
.t2-card:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 16px 32px rgba(0,0,0,0.35); }
.t2-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: var(--thermal-gradient); opacity: 0; transition: opacity .25s ease;
}
.t2-card:hover::before { opacity: 1; }
.t2-card__badge {
    position: absolute; top: 14px; left: 14px; background: var(--thermal-3); color: #fff;
    font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 4px; z-index: 1;
}
.t2-card__image { height: 160px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; flex-shrink: 0; }
.t2-card__image img { max-height: 92%; max-width: 92%; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0,0,0,0.5)); }
.t2-card__name { font-size: 14px; font-weight: 600; margin: 0 0 10px; color: var(--text); }
.t2-card__bottom {
    display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
    column-gap: 10px; row-gap: 2px; margin-top: auto;
}
.t2-card__discount-info {
    grid-column: 1 / 3; grid-row: 1; justify-self: end; align-self: end;
    display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 4px 6px; max-width: 100%;
}
.t2-card__note { font-size: 9.5px; color: var(--text-muted); white-space: nowrap; }
.t2-card__old {
    font-size: 12px; text-decoration: line-through; opacity: .6; color: var(--text-muted); white-space: nowrap;
}
.t2-card__stock {
    grid-column: 1; grid-row: 2; justify-self: start; align-self: end;
    display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); white-space: nowrap;
}
.t2-card__current-price {
    grid-column: 2; grid-row: 2; justify-self: end; align-self: end; text-align: right;
    font-size: 17px; font-weight: 700; color: var(--text); white-space: nowrap;
}
.t2-card__current-price.is-sale {
    background: var(--thermal-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.t2-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.t2-dot--green { background: #2fbf6f; }
.t2-dot--yellow { background: var(--thermal-4); }
.t2-dot--red { background: var(--thermal-3); }

.t2-empty { text-align: center; color: var(--text-muted); padding: 80px 24px; }

/* --- karta produktu: pojedyncze zdjęcie (01) po lewej, dane po prawej ---
   Kontener tej samej szerokości co strona kategorii (1280px, te same marginesy). */
.t2-product { max-width: 1280px; margin: 0 auto; padding: 56px 24px 100px; }
.t2-product__top { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 820px) { .t2-product__top { grid-template-columns: 1fr; } }

.t2-product__media {
    background: #ffffff; border-radius: 18px; aspect-ratio: 1/1;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.t2-product__media img { width: 84%; height: 84%; object-fit: contain; }
/* Prawdziwy wycięty PNG (bez tła) — bez białej karty, prosto na ciemnej stronie. */
.t2-product__media--cutout { background: transparent; }
.t2-product__media--cutout img { width: 92%; height: 92%; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45)); }

/* Licznik ilości — kwadratowe przyciski -/+ wokół wartości, szara zaokrąglona
   ramka, zwykła czcionka tekstowa (NIE font-display), minus wyszarzony i
   nieklikalny przy wartości 1. Współdzielony między stroną produktu
   (przed dodaniem do koszyka) i koszykiem (zmiana ilości) — Michał, 08.2026. */
.t2-qty-stepper {
    display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px;
    overflow: hidden; margin-bottom: 12px; width: fit-content;
}
.t2-qty-stepper__btn {
    background: var(--bg-panel-2); border: none; color: var(--text); font-family: var(--font-body);
    font-size: 18px; font-weight: 600; width: 40px; height: 40px; cursor: pointer; line-height: 1;
}
.t2-qty-stepper__btn:hover:not(:disabled) { background: var(--bg-panel); }
.t2-qty-stepper__btn:disabled { color: var(--text-muted); cursor: not-allowed; opacity: .4; }
.t2-qty-stepper__value {
    width: 44px; height: 40px; text-align: center; border: none; border-left: 1px solid var(--line);
    border-right: 1px solid var(--line); background: transparent; color: var(--text);
    font-family: var(--font-body); font-size: 15px; font-weight: 600;
    -moz-appearance: textfield;
}
.t2-qty-stepper__value::-webkit-outer-spin-button, .t2-qty-stepper__value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.t2-product__info h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3.2vw, 32px); margin: 0 0 26px; line-height: 1.2; }

.t2-variants { margin-bottom: 26px; }
.t2-variants__label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 8px; }
.t2-variants__list { display: flex; flex-wrap: wrap; gap: 10px; }
.t2-variant-btn { border: 1px solid var(--line); border-radius: 8px; padding: 9px 16px; font-size: 14px; color: var(--text); }
.t2-variant-btn.is-selected { border-color: transparent; background: var(--thermal-gradient); color: #0a0a0c; font-weight: 700; }
.t2-variant-btn.is-disabled { opacity: .35; text-decoration: line-through; }

/* Dwa przyciski akcji: "Zdjęcia produktu" (otwiera okno z galerią) i
   "Instrukcja obsługi" (link, tylko jeśli manual_exists()). */
.t2-actions { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.t2-action-btn {
    flex: 1 1 200px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid var(--line); border-radius: 10px; padding: 13px 18px; font-size: 14px; font-weight: 600;
    background: var(--bg-panel); color: var(--text); cursor: pointer; transition: border-color .2s ease;
}
.t2-action-btn:hover { border-color: var(--thermal-3); }
.t2-action-btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
/* "Szczegóły" wyróżnione ramką termowizyjną — jedyny z trzech przycisków
   z trwałym kolorowym obramowaniem, żeby prowadzić oko do specyfikacji. */
.t2-action-btn--highlight {
    position: relative; border-color: transparent; background: var(--bg-panel);
}
.t2-action-btn--highlight::before {
    content: ""; position: absolute; inset: 0; border-radius: 10px; padding: 2px;
    background: var(--thermal-gradient);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}

.t2-stock { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }

/* Siatka 2x2: dostępność (lewo-góra) / obniżka+stara cena (prawo-góra),
   licznik ilości (lewo-dół) / aktualna cena (prawo-dół) — Michał, 08.2026.
   Kolejność w DOM (stock, discount, qty, price) daje to automatycznie przy
   grid-auto-flow: row, ale i tak przypinamy explicite żeby brak rabatu
   (pusty div w jego miejscu) nie rozjechał drugiego wiersza. */
.t2-product__meta-grid {
    display: grid; grid-template-columns: 1fr 1fr; align-items: center;
    column-gap: 16px; row-gap: 10px; margin-bottom: 20px;
}
.t2-meta-cell--stock { grid-column: 1; grid-row: 1; margin: 0; justify-self: start; }
.t2-meta-cell--discount { grid-column: 2; grid-row: 1; margin: 0; justify-self: end; text-align: right; }
.t2-meta-cell--qty { grid-column: 1; grid-row: 2; justify-self: start; margin: 0; }
.t2-meta-cell--price {
    grid-column: 2; grid-row: 2; justify-self: end; text-align: right; margin: 0;
    font-family: var(--font-display); font-weight: 400; font-size: 30px;
    background: var(--thermal-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.t2-meta-cell--discount .old { font-family: var(--font-body); font-size: 16px; text-decoration: line-through; color: var(--text-muted); margin-right: 10px; -webkit-text-fill-color: var(--text-muted); }
.t2-badge-discount { font-family: var(--font-body); background: var(--thermal-3); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; margin-right: 8px; -webkit-text-fill-color: #fff; vertical-align: middle; }

.t2-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 100%;
    border-radius: 10px; font-size: 16px; font-weight: 700; padding: 15px 28px; border: none; cursor: pointer;
}
.t2-btn--primary { background: var(--thermal-gradient); color: #0a0a0c; }
.t2-btn--primary:hover { filter: brightness(1.08); }
.t2-btn--primary:disabled { background: var(--line); color: var(--text-muted); cursor: not-allowed; }

/* Szczegóły produktu — teraz w oknie (modal), otwieranym przyciskiem "Szczegóły",
   tą samą "powłoką" co okno zdjęć (biały panel na ciemnym tle). */
.t2-details-modal__panel { max-width: 720px; }
.t2-details-modal__body { padding: 48px 40px 40px; overflow-y: auto; max-height: 90vh; color: #1d1d1f; }
.t2-details-modal__section { color: #45454a; font-size: 14.5px; line-height: 1.75; margin-bottom: 20px; }
.t2-details-modal__section:last-child { margin-bottom: 0; }
/* Treść sekcji szczegółów pochodzi z surowego HTML w bazie (stare kolumny
   2_XX..7_XX / shop_product_description) — bywa, że niesie własny, wpalony
   font-family ze starego CMS-a. Wymuszamy fonty strony na WSZYSTKICH
   elementach potomnych, żeby nigdy nie odjeżdżały wizualnie od reszty strony. */
.t2-details-modal__section, .t2-details-modal__section * {
    font-family: var(--font-body) !important;
}
.t2-details-modal__section h1, .t2-details-modal__section h2, .t2-details-modal__section h3,
.t2-details-modal__section h4, .t2-details-modal__section h5, .t2-details-modal__section h6 {
    font-size: 15px !important; font-weight: 700 !important; color: #1d1d1f !important;
    margin: 0 0 10px !important; line-height: 1.3 !important;
}
.t2-details-modal__section p { margin: 0 0 12px; }
.t2-details-modal__section ul, .t2-details-modal__section ol { margin: 0 0 12px; padding-left: 20px; }
.t2-details-modal__section img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
.t2-details-modal__section table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 0 0 12px; }
.t2-details-modal__section td, .t2-details-modal__section th { border: 1px solid #e2e2e2; padding: 6px 10px; text-align: left; }

/* --- okno (modal) z galerią zdjęć produktu --- */
.t2-gallery-modal {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(10,10,12,0.9);
    display: none; align-items: center; justify-content: center; padding: 24px;
}
.t2-gallery-modal.is-open { display: flex; }
.t2-gallery-modal__panel {
    background: #ffffff; border-radius: 18px; width: 100%; max-width: 900px; max-height: 94vh;
    overflow: hidden; display: flex; flex-direction: column; position: relative;
}
.t2-gallery-modal__close {
    position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
    background: #f2f2f2; border: none; color: #1d1d1f; font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; z-index: 2;
}
.t2-gallery-modal__main {
    flex: 1 1 auto; display: flex; align-items: center; justify-content: center;
    padding: 20px; min-height: 62vh; position: relative;
}
.t2-gallery-modal__main img { max-width: 94%; max-height: 80vh; object-fit: contain; }
.t2-gallery-modal__arrow {
    position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
    background: var(--thermal-gradient); border: none; color: #0a0a0c; font-size: 18px; font-weight: 700; cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.t2-gallery-modal__arrow--prev { left: 16px; }
.t2-gallery-modal__arrow--next { right: 16px; }
.t2-gallery-modal__thumbs { display: flex; gap: 10px; padding: 16px 24px 24px; overflow-x: auto; border-top: 1px solid #eee; }
.t2-gallery-modal__thumb { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 8px; border: 2px solid transparent; padding: 4px; background: #f7f7f7; cursor: pointer; }
.t2-gallery-modal__thumb.is-active { border-image: var(--thermal-gradient) 1; border-style: solid; }
.t2-gallery-modal__thumb img { width: 100%; height: 100%; object-fit: contain; }

/* --- "zobacz inne produkty w tej kategorii" (karta produktu) --- */
.t2-related { max-width: 1280px; margin: 64px auto 0; padding: 0 24px 100px; }
.t2-related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.t2-related__head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 2.6vw, 26px); margin: 0; }
.t2-related__all { font-size: 13px; font-weight: 600; color: var(--thermal-5); white-space: nowrap; }
.t2-related__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .t2-related__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .t2-related__grid { grid-template-columns: 1fr; } }

/* --- statyczne strony (o nas, regulamin, polityka, dostawa, gwarancja) --- */
.t2-static-hero { max-width: 1280px; margin: 0 auto; padding: 56px 24px 0; }
.t2-static-hero h1 {
    font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 4.5vw, 44px); margin: 0;
    display: inline-block; position: relative; padding-bottom: 14px;
}
.t2-static-hero h1::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px;
    background: var(--thermal-gradient); border-radius: 2px;
}
.t2-static-body { max-width: 760px; margin: 0 auto; padding: 32px 24px 120px; color: var(--text-muted); font-size: 15px; line-height: 1.8; }
.t2-static-body p { margin: 0 0 16px; }
.t2-static-body h2 { font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--text); margin: 32px 0 14px; }
.t2-static-body ul, .t2-static-body ol { padding-left: 20px; margin: 0 0 16px; }
.t2-static-todo {
    background: var(--bg-panel); border: 1px solid var(--thermal-4); border-radius: 10px;
    padding: 16px 18px; color: var(--text); font-size: 14px;
}
.t2-static-body--legal ol { padding-left: 22px; }
.t2-static-body--legal ol li { margin-bottom: 12px; }
.t2-static-body--legal strong { color: var(--text); }
.t2-legal-form {
    background: var(--bg-panel); border: 1px solid var(--line); border-radius: 12px;
    padding: 20px 22px; margin: 24px 0; font-size: 14px; line-height: 2;
}
.t2-legal-form p { margin: 0; }
.t2-legal-form p:first-child { color: var(--text); margin-bottom: 8px; }

/* --- koszyk --- */
.t2-cart { max-width: 900px; margin: 0 auto; padding: 56px 24px 120px; }
.t2-cart > h1 {
    font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 4.5vw, 40px); margin: 0 0 32px;
}
.t2-cart-empty { color: var(--text-muted); font-size: 15px; }
.t2-cart-empty a { color: var(--thermal-5); font-weight: 600; }

.t2-cart-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.t2-cart-line {
    display: grid; grid-template-columns: 84px 1fr auto auto; gap: 18px; align-items: center;
    background: var(--bg-panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px;
}
@media (max-width: 640px) { .t2-cart-line { grid-template-columns: 64px 1fr; grid-template-areas: "img body" "img price" "img remove"; } }
.t2-cart-line__image { width: 84px; height: 84px; background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.t2-cart-line__image img { width: 88%; height: 88%; object-fit: contain; }
.t2-cart-line__name { font-size: 14px; font-weight: 600; margin: 0 0 4px; color: var(--text); }
.t2-cart-line__variant { font-size: 12.5px; color: var(--text-muted); margin: 0 0 10px; }
.t2-cart-line__qty { display: flex; align-items: center; gap: 8px; }
.t2-cart-line__qty input {
    width: 56px; background: var(--bg-panel-2); border: 1px solid var(--line); border-radius: 6px;
    color: var(--text); padding: 6px 8px; font-size: 13px;
}
.t2-cart-line__qty button {
    background: transparent; border: 1px solid var(--line); border-radius: 6px; color: var(--text-muted);
    font-size: 12px; padding: 6px 12px; cursor: pointer;
}
.t2-cart-line__price { font-family: var(--font-display); font-weight: 400; font-size: 16px; color: var(--text); white-space: nowrap; }
.t2-cart-line__remove {
    background: transparent; border: none; color: var(--text-muted); font-size: 20px; line-height: 1; cursor: pointer;
    width: 32px; height: 32px; border-radius: 50%;
}
.t2-cart-line__remove:hover { background: var(--bg-panel-2); color: var(--thermal-3); }

.t2-cart-summary { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; max-width: 380px; margin-left: auto; }
.t2-cart-summary__row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-muted); }
.t2-cart-summary__row--total { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.t2-cart-summary__row--discount { color: #2ecc71; font-weight: 600; }

.t2-cart-coupon { max-width: 380px; margin: 0 0 16px auto; }
.t2-cart-coupon__form { display: flex; gap: 8px; }
.t2-cart-coupon__form input {
    flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-panel-2);
    color: var(--text); font-family: inherit; font-size: 13.5px;
}
.t2-cart-coupon__applied {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: rgba(46,204,113,.08); border: 1px solid rgba(46,204,113,.3); border-radius: 10px;
    padding: 10px 14px; font-size: 13.5px; color: #2ecc71;
}
.t2-cart-coupon__remove { background: none; border: none; color: var(--text-muted); text-decoration: underline; font-size: 12px; cursor: pointer; font-family: inherit; }
.t2-cart-coupon__error { color: var(--thermal-3); font-size: 12.5px; margin: 6px 0 0; }
.t2-cart-summary__note { font-size: 12.5px; color: var(--text-muted); margin: 10px 0 20px; }

/* --- footer --- */
.t2-footer { background: #000; border-top: 1px solid var(--line); padding: 48px 24px; margin-top: 40px; }
.t2-footer__inner { max-width: 1280px; margin: 0 auto; text-align: center; }
.t2-footer__tagline { font-family: var(--font-display); font-weight: 400; font-size: 15px; margin: 0 0 20px; }
.t2-footer__links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.t2-footer__legal { font-size: 11px; color: var(--text-muted); margin: 0; }

@media (prefers-reduced-motion: reduce) {
    .t2-panel, .t2-panel__img, .t2-panel__accent, .t2-panel__count { transition: none !important; }
}

/* Logowanie / checkout / historia zamówień — formularze w stylu t2-cart-summary */
.t2-auth { max-width: 420px; margin: 0 auto; padding: 64px 24px 120px; }
.t2-auth h1 { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin: 0 0 10px; }
.t2-auth__intro { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0 0 28px; }
.t2-auth__notice { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 13.5px; color: var(--text-muted); margin: 0 0 20px; }
.t2-auth__error { background: rgba(224, 33, 138, 0.1); border: 1px solid var(--thermal-3); border-radius: 10px; padding: 14px 16px; font-size: 13.5px; color: var(--text); margin: 0 0 20px; }
.t2-field { margin-bottom: 18px; }
.t2-field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.t2-field input, .t2-field select, .t2-field textarea {
    width: 100%; background: var(--bg-panel-2); border: 1px solid var(--line); border-radius: 8px;
    color: var(--text); padding: 12px 14px; font-size: 15px; font-family: var(--font-body);
}
.t2-field input:focus, .t2-field select:focus, .t2-field textarea:focus { outline: none; border-color: var(--thermal-3); }
.t2-field textarea { resize: vertical; min-height: 100px; }
.t2-contact__phone { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-muted); }
.t2-contact__phone a { color: var(--thermal-5); }
.t2-auth__switch { text-align: center; margin-top: 16px; font-size: 13.5px; }
.t2-auth__switch a { color: var(--thermal-5); }

.t2-checkout { max-width: 1000px; margin: 0 auto; padding: 56px 24px 120px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 780px) { .t2-checkout { grid-template-columns: 1fr; } }
.t2-checkout h1 { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin: 0 0 24px; }
.t2-checkout__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .t2-checkout__row { grid-template-columns: 1fr; } }
.t2-checkout__summary { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; position: sticky; top: 90px; }
.t2-checkout__summary h2 { font-family: var(--font-display); font-weight: 400; font-size: 16px; margin: 0 0 16px; }
.t2-checkout__line { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; font-size: 13.5px; color: var(--text-muted); padding: 8px 0; border-bottom: 1px solid var(--line); }
.t2-checkout__line span:first-child { flex: 1 1 auto; min-width: 0; }
.t2-checkout__line span:last-child { flex: 0 0 auto; white-space: nowrap; text-align: right; }
.t2-checkout__line:last-of-type { border-bottom: none; }
.t2-checkout__total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; color: var(--text); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

.t2-orders { max-width: 820px; margin: 0 auto; padding: 56px 24px 120px; }
.t2-orders h1 { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin: 0 0 28px; }
.t2-orders__empty { color: var(--text-muted); font-size: 15px; }
.t2-orders__table { width: 100%; border-collapse: collapse; }
.t2-orders__table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.t2-orders__table td { padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.t2-orders__table a { color: var(--thermal-5); font-weight: 600; }
.t2-order-status { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 20px; background: var(--bg-panel-2); color: var(--text-muted); }
/* Data zamówienia łamana na 2 linie (d.m. nad rokiem) — wąska kolumna DATA. Port z 3Doodler. */
.t2-orders__date { white-space: nowrap; }
/* Mobile: tabela zamówień (5 kolumn) mieści się na wąskim ekranie — ciaśniejsze komórki
   i mniejszy padding sekcji; wcześniej kolumna WARTOŚĆ uciekała poza prawą krawędź. */
@media (max-width: 520px) {
    .t2-orders { padding: 40px 12px 90px; }
    .t2-orders__table th { padding: 0 6px 8px; font-size: 10.5px; letter-spacing: 0.02em; }
    .t2-orders__table td { padding: 10px 6px; font-size: 12.5px; }
    .t2-order-status { font-size: 11px; padding: 2px 7px; }
}

.t2-order-detail { max-width: 1050px; margin: 0 auto; padding: 64px 24px 120px; text-align: center; }
.t2-order-detail h1 { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin: 0 0 14px; }
.t2-order-detail__number { font-size: 15px; color: var(--text-muted); margin-bottom: 6px; }
.t2-order-detail__note { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.t2-order-detail__note--warn { color: var(--thermal-3); font-weight: 600; margin-bottom: 12px; }

/* Strona zamówienia — status na żywo z Apilo, w kolorystyce Guide (Michał, 08.2026). */
.t2-tracking-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; margin-bottom: 24px; }
@media (max-width: 860px) { .t2-tracking-grid { grid-template-columns: 1fr; } }
.t2-tracking-main, .t2-tracking-sidebar { display: flex; flex-direction: column; gap: 16px; }
.t2-tracking-card { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.t2-tracking-card--accent { border-color: var(--thermal-3); }
.t2-tracking-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.t2-tracking-card__eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--thermal-3); margin: 0 0 6px; }
.t2-tracking-card__title { font-size: 22px; margin: 0; }
.t2-tracking-card__subtitle { font-size: 16px; margin: 0 0 8px; }
.t2-tracking-card__note { font-size: 13px; color: var(--text-muted); margin: 8px 0 0; line-height: 1.6; }
.t2-tracking-card__banner { font-size: 13.5px; font-weight: 600; padding: 10px 14px; border-radius: 8px; margin: 10px 0 0; }
.t2-tracking-card__banner--warn { background: rgba(224, 33, 138, .12); color: var(--thermal-3); }
.t2-tracking-card__courier-badge { font-size: 12px; font-weight: 700; padding: 6px 12px; border: 1px solid var(--line); border-radius: 20px; color: var(--text-muted); white-space: nowrap; }

.t2-tracking-progress { margin-top: 18px; }
.t2-tracking-progress__bar { height: 6px; background: var(--bg-panel-2); border-radius: 4px; overflow: hidden; }
.t2-tracking-progress__fill { height: 100%; background: var(--thermal-gradient); border-radius: 4px; transition: width .3s ease; }
.t2-tracking-progress__labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11.5px; color: var(--text-muted); }
.t2-tracking-progress__labels .is-active { color: var(--text); font-weight: 700; }

.t2-tracking-waybill { margin-top: 18px; padding: 14px 16px; background: var(--bg-panel-2); border-radius: 10px; }
.t2-tracking-waybill__label { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.t2-tracking-waybill__value { font-size: 14.5px; font-weight: 700; color: var(--thermal-3); text-decoration: none; }
.t2-tracking-waybill__value--muted { color: var(--text-muted); font-weight: 500; font-style: italic; }

.t2-tracking-action {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--bg-panel);
    border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; cursor: pointer; color: var(--text);
    font-family: inherit;
}
.t2-tracking-action:hover { border-color: var(--thermal-3); }
.t2-tracking-action--warn { border-color: rgba(224,33,138,.4); }
.t2-tracking-action--done { background: rgba(46, 204, 113, .08); border-color: rgba(46, 204, 113, .3); cursor: default; }
.t2-tracking-action__icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-panel-2); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.t2-tracking-action strong { display: block; font-size: 14px; }
.t2-tracking-action small { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.t2-tracking-form { background: var(--bg-panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.t2-tracking-form textarea { min-height: 90px; resize: vertical; }

/* Kolorowe akcenty kart (Michał, 08.2026): zielony=instrukcja/faktura,
   niebieski=pytanie, czerwony=odstąpienie — dopasowane do gradientu Guide,
   nie do fioletu z referencji. */
.t2-tracking-card--invoice-ready { border-color: rgba(46, 204, 113, .4); background: rgba(46, 204, 113, .06); }
.t2-tracking-card--invoice-pending { border-color: rgba(46, 204, 113, .25); background: rgba(46, 204, 113, .04); }
.t2-tracking-action--question { border-color: rgba(79, 195, 247, .35); background: rgba(79, 195, 247, .06); }
.t2-tracking-action--question:hover { border-color: #4fc3f7; }
.t2-tracking-action--return { border-color: rgba(224, 33, 138, .35); background: rgba(224, 33, 138, .06); }
.t2-tracking-action--return:hover { border-color: var(--thermal-3); }

/* Modal "Mam pytanie"/"Odstąp od umowy" — ten sam wzorzec co my-order-tracking
   (nakładka + wyśrodkowana karta), w kolorystyce Guide. */
.t2-modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.8); backdrop-filter: blur(6px);
    align-items: center; justify-content: center; padding: 16px; z-index: 200;
}
.t2-modal-overlay.is-open { display: flex; }
.t2-modal {
    background: #000; border: 1px solid var(--line); border-radius: 20px; padding: 0; width: 100%;
    max-width: 460px; max-height: 90vh; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.6);
    display: flex; flex-direction: column;
}
.t2-modal::before { content: ''; display: block; height: 4px; background: var(--thermal-gradient); flex-shrink: 0; }
.t2-modal > form, .t2-modal__body { padding: 28px; overflow-y: auto; }
.t2-modal__title { font-size: 19px; margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; }
.t2-modal__title--question { color: #4fc3f7; }
.t2-modal__title--return { color: var(--thermal-3); }
.t2-modal__desc { font-size: 13.5px; color: var(--text-muted); margin: 0 0 20px; line-height: 1.6; }
.t2-modal form { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.t2-modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.t2-btn--secondary { background: var(--bg-panel-2); color: var(--text); border: 1px solid var(--line); }

.t2-tracking-form__label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.t2-tracking-form select, .t2-tracking-form textarea, .t2-modal select, .t2-modal textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-panel-2);
    color: var(--text); font-family: inherit; font-size: 14px; transition: border-color .15s;
}
.t2-tracking-form select:focus, .t2-tracking-form textarea:focus, .t2-modal select:focus, .t2-modal textarea:focus {
    outline: none; border-color: var(--thermal-3);
}
.t2-modal select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2390a4ae' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }

/* "Moje zamówienia" / "Moje dane" — zakładki (Michał, 08.2026). */
.t2-account-tabs { display: flex; gap: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.t2-account-tabs__tab { padding: 10px 0 16px; font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--text-muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.t2-account-tabs__tab:hover { color: var(--text); }
.t2-account-tabs__tab.is-active { color: var(--text); border-bottom-color: var(--thermal-3); }
/* Mobile: taby „Moje zamówienia / Moje dane" mieszczą się na szerokość.
   Przy 26px etykiety zawijały się do 2 linii i wychodziły poza ekran; poprawka: mniejszy font + nowrap
   (19px daje zapas nawet dla dłuższych języków, np. „Meine Bestellungen"). Port z 3Doodler. */
@media (max-width: 520px) {
    .t2-account-tabs { gap: 18px; }
    .t2-account-tabs__tab { font-size: 19px; white-space: nowrap; padding-bottom: 12px; }
}

.t2-account-form { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin: 0 auto 20px; max-width: 480px; }
.t2-account-form .t2-field { margin-bottom: 16px; }
.t2-account-form .t2-field label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.t2-account-form .t2-field input {
    width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-panel-2);
    color: var(--text); font-family: inherit; font-size: 14px;
}
.t2-account-form .t2-field input:disabled { color: var(--text-muted); cursor: not-allowed; }
.t2-account-form--danger { border-color: rgba(224, 33, 138, .3); }
.t2-order-detail__items { text-align: left; background: var(--bg-panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin-bottom: 24px; }
.t2-order-detail__address { text-align: left; background: var(--bg-panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin-bottom: 24px; }
.t2-order-detail__address-heading { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin: 0 0 8px; }
.t2-order-detail__address-body { font-size: 14px; line-height: 1.6; color: var(--text); margin: 0; }
.t2-order-detail__item { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.t2-order-detail__item span:first-child { flex: 1 1 auto; min-width: 0; }
.t2-order-detail__item span:last-child { flex: 0 0 auto; white-space: nowrap; text-align: right; }
.t2-order-detail__item:last-child { border-bottom: none; }
.t2-order-detail__back { display: inline-block; margin-top: 8px; color: var(--thermal-5); font-size: 14px; }

/* Plakietka ilości w koszyku + feedback wizualny po dodaniu produktu (koszyk był
   "cichy" — przycisk submitował formularz, strona się przeładowywała i nic nie
   było widać, że coś się stało). Flaga w sesji ($_SESSION['cart_flash'], patrz
   cart/add.php + includes/header.php) włącza animację + toast na NASTĘPNYM
   renderze strony, do której użytkownik wraca po dodaniu. */
.t2-icon-btn--cart { position: relative; }
.t2-cart-badge {
    position: absolute; top: -7px; right: -9px; background: var(--thermal-gradient); color: #0a0a0c;
    font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center; padding: 0 4px; line-height: 1;
}
@keyframes t2-badge-bump {
    0% { transform: scale(1); }
    35% { transform: scale(1.4); }
    65% { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.t2-cart-badge--bump { animation: t2-badge-bump 0.55s ease; }

@keyframes t2-toast-inout {
    0% { opacity: 0; transform: translate(-50%, 10px); }
    10% { opacity: 1; transform: translate(-50%, 0); }
    85% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -8px); }
}
.t2-toast {
    position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 0);
    background: var(--bg-panel); border: 1px solid var(--thermal-3); color: var(--text);
    padding: 13px 22px; border-radius: 10px; font-size: 14px; font-weight: 600;
    z-index: 999; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    animation: t2-toast-inout 2.6s ease forwards;
}

.t2-cart-continue { margin: 0 0 20px; }
.t2-cart-continue a { color: var(--text-muted); font-size: 13.5px; }
.t2-cart-continue a:hover { color: var(--thermal-5); }

/* Checkout — sekcje dostawa/faktura, checkboxy, komunikat GUS/VIES */
.t2-checkout__section-heading { font-family: var(--font-display); font-weight: 400; font-size: 17px; margin: 28px 0 14px; }
.t2-checkout__section-heading:first-child { margin-top: 0; }
.t2-field--checkbox { display: flex; align-items: flex-start; margin: 18px 0; }
.t2-field--checkbox label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-muted); cursor: pointer; }
.t2-field--checkbox input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--thermal-3); cursor: pointer; flex-shrink: 0; }
.t2-field--checkbox a { color: var(--thermal-5); }
.t2-checkout__invoice { border-top: 1px solid var(--line); padding-top: 4px; }
.t2-checkout__vies-message { font-size: 13px; margin: -8px 0 16px; padding: 10px 14px; border-radius: 8px; }
.t2-checkout__vies-message--ok { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.t2-checkout__vies-message--warn { background: rgba(224, 33, 138, 0.1); color: var(--text); }

/* Weryfikacja e-maila kodem przed "za pobraniem" bez logowania (Michał, 08.2026). */
.t2-cod-verify { background: var(--bg-panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin: -8px 0 20px; }
.t2-cod-verify__intro { font-size: 13.5px; color: var(--text-muted); margin: 0 0 12px; }
.t2-cod-verify__done { font-size: 13.5px; color: #2ecc71; font-weight: 700; margin: 0; }

/* Wybór konkretnego paczkomatu — wyszukiwarka przez publiczne API InPost zamiast
   mapy Geowidget (Michał, 08.2026: mapa sprawiała problemy z adblokerami). */
.t2-paczkomat-picker { margin: -8px 0 20px; }
.t2-paczkomat-picker__label { display: block; font-size: 13px; color: var(--text-muted); margin: 0 0 10px; }
.t2-paczkomat-search { display: flex; gap: 10px; }
.t2-paczkomat-search input[type="text"] {
    flex: 1; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--bg-panel-2); color: var(--text); font-family: var(--font-body); font-size: 14px;
}
.t2-paczkomat-picker__results {
    width: 100%; margin-top: 10px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--bg-panel-2); color: var(--text); font-family: var(--font-body); font-size: 13.5px;
    padding: 4px;
}
.t2-paczkomat-picker__results option { padding: 8px 10px; border-radius: 6px; }
.t2-paczkomat-picker__results option:checked { background: rgba(224, 33, 138, 0.15); color: var(--text); }
.t2-paczkomat-picker__status { font-size: 13px; color: var(--text-muted); margin: 10px 0 0; }
.t2-paczkomat-picker__selected { font-size: 13.5px; color: #2ecc71; font-weight: 700; margin: 10px 0 0; }
.t2-paczkomat-picker__cod-note { font-size: 13.5px; color: #e0218a; font-weight: 600; margin: 8px 0 0; }
.t2-paczkomat-picker__change {
    background: none; border: none; color: var(--thermal-3); font-family: var(--font-body); font-size: 13px;
    font-weight: 600; cursor: pointer; margin-left: 10px; padding: 0; text-decoration: underline;
}

/* Widżet Google Places Autocomplete — domyślnie dopasowuje się do preferencji
   systemu/przeglądarki (jasny/ciemny) NIEZALEŻNIE od CSS-a strony, stąd bez
   jawnego nadpisania renderuje się jako jasny prostokąt na ciemnym tle.
   color-scheme + background-color/border to oficjalnie wspierane właściwości
   ustawiane na samym elemencie gmp-place-autocomplete (nie da się wejść głębiej
   przez Shadow DOM, ale tego akurat nie potrzebujemy). */
gmp-place-autocomplete {
    color-scheme: dark;
    background-color: var(--bg-panel-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    width: 100%;
}

/* Metody płatności + wyszarzone (nieaktywne) pole województwa tam, gdzie
   niepotrzebne (np. Polska) */
.t2-field input:disabled { opacity: 0.4; cursor: not-allowed; }
.t2-payment-methods { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 24px; }
.t2-payment-method {
    display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--bg-panel-2); cursor: pointer; font-size: 14px; font-weight: 600;
    flex: 1 1 160px;
}
.t2-payment-method input[type="radio"] { width: 16px; height: 16px; accent-color: var(--thermal-3); }
.t2-payment-method:has(input:checked) { border-color: var(--thermal-3); background: rgba(224, 33, 138, 0.08); }
.t2-payment-method.is-disabled { opacity: .4; cursor: not-allowed; }
.t2-payment-method.is-disabled input[type="radio"] { cursor: not-allowed; }

/* Sekcja "Metoda dostawy" w checkoucie (Michał, 08.2026) — te same reguły co
   .t2-payment-methods/.t2-payment-method, bo wizualnie to ten sam wzorzec
   (grupa radiobuttonów w kartach). */
.t2-shipping-methods { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 24px; }
.t2-shipping-methods__locked, .t2-shipping-methods__placeholder { font-size: 14px; color: var(--text-muted); padding: 8px 0; }

/* Wybór dostawy w koszyku — osobna karta nad podsumowaniem sumy. */
.t2-cart-shipping { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin-bottom: 20px; }
.t2-cart-shipping__heading { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin: 0 0 14px; }
.t2-cart-shipping__locked { font-size: 14px; color: var(--text-muted); margin: 0; }
.t2-cart-shipping__options { display: flex; flex-wrap: wrap; gap: 12px; }
.t2-cart-shipping__option {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--bg-panel-2); cursor: pointer; font-size: 14px; flex: 1 1 200px;
}
.t2-cart-shipping__option input[type="radio"] { width: 16px; height: 16px; accent-color: var(--thermal-3); }
.t2-cart-shipping__option:has(input:checked) { border-color: var(--thermal-3); background: rgba(224, 33, 138, 0.08); }
.t2-cart-shipping__price { margin-left: auto; font-weight: 700; color: var(--text); }

/* Nowoczesne strzałki + X galerii (przeniesione z 3doodler; kolory z palety
   termowizji przez var(--thermal-3)). "Szklane" kółko z głębią. */
.t2-gallery-modal__arrow {
    width: 50px; height: 50px; color: var(--thermal-3);
    background: rgba(255,255,255,0.14);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow: 0 10px 26px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.t2-gallery-modal__arrow svg { width: 22px; height: 22px; display: block; }
.t2-gallery-modal__arrow:hover { transform: translateY(-50%) scale(1.09); background: rgba(255,255,255,0.22); box-shadow: 0 16px 34px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.3); }
.t2-gallery-modal__arrow:active { transform: translateY(-50%) scale(0.97); }

.t2-gallery-modal__close {
    width: 44px; height: 44px; border-radius: 50%; color: var(--thermal-3);
    background: rgba(255,255,255,0.14);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow: 0 10px 26px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center; font-size: 24px; line-height: 1;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.t2-gallery-modal__close:hover { transform: scale(1.08); background: rgba(255,255,255,0.22); box-shadow: 0 16px 34px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.3); }
.t2-gallery-modal__close:active { transform: scale(0.97); }
