/*
 * Motyw default - baza wszystkich sklepów. Marka sklepu wchodzi wyłącznie przez tokeny
 * (zmienne z ThemeTokens::css w <style> layoutu): --bg, --text, --accent, --accent-text,
 * --border, --success, --error, --font-heading, --font-body, --radius.
 * Odcienie pomocnicze liczone z tokenów (color-mix), żeby każda paleta dała spójny zestaw.
 * Zakazy wyglądu: docs/wyglad.md.
 */

:root {
    --bg: #fbfaf7;
    --text: #1c1b19;
    --accent: #22211f;
    --accent-text: #ffffff;
    --border: #dcd8cf;
    --success: #2b6a3c;
    --error: #b3261e;
    --font-heading: 'Archivo', ui-sans-serif, system-ui, sans-serif;
    --font-body: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
    --radius: 4px;

    --muted: color-mix(in srgb, var(--text) 66%, var(--bg));
    --surface: color-mix(in srgb, var(--text) 4%, var(--bg));
    --surface-strong: color-mix(in srgb, var(--text) 9%, var(--bg));
    --accent-soft: color-mix(in srgb, var(--accent) 10%, var(--bg));
    --focus: color-mix(in srgb, var(--accent) 80%, var(--text));
    --wrap: 82rem;
    --gutter: clamp(16px, 3vw, 32px);
    --header-control: 46px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.012em;
    margin: 0;
    text-wrap: balance;
}

p { margin: 0 0 0.75em; }

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; height: auto; display: block; }

button, input, select { font: inherit; color: inherit; }

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: -100px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--accent);
    color: var(--accent-text);
    border-radius: var(--radius);
    font-weight: 600;
}

.skip-link:focus { top: 8px; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* ---------- Pasek informacyjny ---------- */

.strip {
    background: var(--text);
    color: var(--bg);
    font-size: 13px;
    line-height: 1.3;
}

.strip__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 34px;
}

.strip__tagline {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.strip__contact {
    display: flex;
    gap: 20px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
    white-space: nowrap;
}

.strip__track { white-space: nowrap; font-weight: 600; }
.strip__contact + .strip__track { margin-left: 0; }
.strip__row > .strip__track:first-child { margin-left: auto; }
.strip a { text-decoration: none; }
.strip a:hover { text-decoration: underline; }
.strip :focus-visible { outline-color: var(--bg); }

/* ---------- Nagłówek ---------- */

.masthead {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.masthead__row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand search account";
    align-items: center;
    column-gap: clamp(16px, 3vw, 48px);
    padding-top: 18px;
    padding-bottom: 18px;
}

.brand {
    grid-area: brand;
    display: inline-flex;
    align-items: center;
    min-height: var(--header-control);
    text-decoration: none;
}

.brand__name {
    font-family: var(--font-heading);
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.brand__logo {
    max-height: 48px;
    width: auto;
}

/* Wyszukiwarka: najszerszy element nagłówka. */
.search {
    display: flex;
    width: 100%;
}

.search--top {
    grid-area: search;
    max-width: 44rem;
}

.search__input {
    flex: 1 1 auto;
    min-width: 0;
    height: var(--header-control);
    padding: 0 16px;
    background: var(--bg);
    border: 2px solid var(--text);
    border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 16px;
}

.search__input::placeholder { color: var(--muted); opacity: 1; }

.search__input:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 1px var(--text);
    background: var(--surface);
}

.search__button {
    flex: 0 0 auto;
    height: var(--header-control);
    padding: 0 22px;
    border: 2px solid var(--text);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--accent);
    color: var(--accent-text);
    font-weight: 600;
    cursor: pointer;
}

.search__button:hover { background: color-mix(in srgb, var(--accent) 86%, var(--text)); }

.search--large { --header-control: 54px; max-width: 36rem; margin: 8px 0 20px; }
.search--large .search__input { font-size: 17px; }

/* Konto i koszyk */
.account {
    grid-area: account;
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 600;
    font-size: 15px;
}

.account__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.account__link:hover .account__label { text-decoration: underline; }
.account__icon { flex: 0 0 auto; }

.cart {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: var(--header-control);
    padding: 0 6px 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    background: var(--bg);
}

.cart:hover { border-color: var(--text); }

.cart__count {
    display: inline-grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: calc(var(--radius) * 0.75);
    background: var(--surface-strong);
    font-size: 14px;
    font-weight: 700;
}

/* Przycisk menu (tylko wąskie ekrany) */
.menu-toggle {
    grid-area: menu;
    display: none;
    align-items: center;
    gap: 8px;
    height: var(--header-control);
    padding: 0 12px 0 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
}

.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -5px; }
.menu-toggle__bars::after { top: 5px; }

/* ---------- Nawigacja kategorii ---------- */

.catnav {
    border-top: 1px solid var(--border);
    position: relative;
}

.catnav__list {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0;
    margin-bottom: 0;
    list-style: none;
}

.catnav__item { position: static; }

.catnav__link {
    display: block;
    padding: 13px 0 11px;
    margin-right: 28px;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

.catnav__item:hover > .catnav__link,
.catnav__item:focus-within > .catnav__link {
    border-bottom-color: var(--accent);
}

.catnav__expand { display: none; }

/* Panel podkategorii: pełna szerokość pod paskiem, kolumny. */
.catnav__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    display: none;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 2px solid var(--text);
}

.catnav__item:hover > .catnav__panel,
.catnav__item:focus-within > .catnav__panel { display: block; }

.catnav__sub {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 20px var(--gutter) 24px;
    list-style: none;
    columns: 4 12rem;
    column-gap: 32px;
}

.catnav__sub li { break-inside: avoid; }

.catnav__sub a {
    display: inline-block;
    padding: 5px 0;
    text-decoration: none;
}

.catnav__sub a:hover { text-decoration: underline; }

.catnav__all a {
    margin-top: 6px;
    font-weight: 600;
    color: var(--muted);
}

/* ---------- Treść ---------- */

.main { display: block; min-height: 50vh; }
.main:focus { outline: none; }

.page-head {
    padding: clamp(28px, 4vw, 48px) 0 clamp(20px, 3vw, 32px);
    border-bottom: 1px solid var(--border);
    margin-bottom: clamp(24px, 3vw, 40px);
}

.page-head__title {
    max-width: 22em;
    font-size: clamp(28px, 3.6vw, 44px);
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 13px;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

/* Spis kategorii na stronie głównej: indeks z numeracją, linie zamiast kart. */
.directory { margin-bottom: clamp(40px, 6vw, 72px); }

.directory__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 0 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.directory__item {
    display: grid;
    grid-template-columns: 2.25rem 1fr;
    align-content: start;
    padding: 16px 0 22px;
    border-top: 2px solid var(--text);
}

.directory__index {
    grid-row: span 2;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    padding-top: 6px;
}

.directory__name { font-size: 22px; }
.directory__name a { text-decoration: none; }
.directory__name a:hover { text-decoration: underline; }

.directory__sub {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
}

.directory__sub li + li { margin-top: 4px; }
.directory__sub a { color: var(--muted); text-decoration: none; }
.directory__sub a:hover { color: var(--text); text-decoration: underline; }

/* Przycisk */
.button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--accent-text);
    font-weight: 600;
    text-decoration: none;
}

.button:hover { background: color-mix(in srgb, var(--accent) 86%, var(--text)); }

/* Drugorzędny: obok głównej akcji (np. wyszukiwarki) nie konkuruje kolorem. */
.button--secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--text);
}

.button--secondary:hover { background: var(--surface-strong); }

/* ---------- Strony błędów ---------- */

.error-page {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 96px);
    padding-top: clamp(40px, 7vw, 88px);
    padding-bottom: clamp(48px, 8vw, 104px);
}

.error-page--single { grid-template-columns: minmax(0, 40rem); }

.error-page__code {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.error-page__title {
    font-size: clamp(30px, 4.4vw, 52px);
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}

.error-page__lead {
    max-width: 34em;
    font-size: 18px;
    color: var(--muted);
}

.error-page__home { margin-top: 8px; }

.error-page__aside {
    align-self: start;
    border-top: 2px solid var(--text);
    padding-top: 16px;
}

.error-page__cats {
    margin: 0;
    padding: 0;
    list-style: none;
}

.error-page__cats a {
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    text-decoration: none;
}

.error-page__cats a::after { content: "\2192"; color: var(--muted); }
.error-page__cats a:hover { color: var(--accent); }

.incident {
    margin: 20px 0;
    padding: 12px 16px;
    border-left: 3px solid var(--accent);
    background: var(--surface);
}

.incident__id {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    letter-spacing: 0.05em;
}

.error-page__contact { margin-bottom: 20px; }

/* ---------- Okruszki ---------- */

.crumbs { padding-top: 18px; font-size: 14px; color: var(--muted); }

.crumbs__list {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.crumbs__list li + li::before {
    content: "/";
    margin: 0 8px;
    color: var(--border);
}

.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text); }

/* ---------- Listing kategorii ---------- */

.listing-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 6px 24px;
    padding: clamp(14px, 2.4vw, 28px) 0 clamp(16px, 2vw, 22px);
    border-bottom: 2px solid var(--text);
}

.listing-head__title {
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.025em;
}

.listing-head__count {
    margin: 0;
    padding-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.listing-head__intro {
    grid-column: 1 / -1;
    max-width: 44em;
    margin: 4px 0 0;
    color: var(--muted);
}

/* Podkategorie: indeks w jednym wierszu, liczba produktów jak przypis. */
.subcats { border-bottom: 1px solid var(--border); }

.subcats__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 28px;
    margin: 0;
    padding: 4px 0;
    list-style: none;
}

.subcats__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    font-weight: 600;
    text-decoration: none;
}

.subcats__link:hover { text-decoration: underline; }

.subcats__count {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    vertical-align: super;
    margin-left: 2px;
}

.listing {
    display: grid;
    grid-template-columns: 15.5rem minmax(0, 1fr);
    gap: clamp(24px, 3.5vw, 48px);
    padding-top: clamp(20px, 2.5vw, 28px);
}

.listing--nofilters { grid-template-columns: minmax(0, 1fr); }

/* Filtry: kolumna z regułami jak w spisie treści, liczby wyrównane do prawej. */
.filters { align-self: start; }

.filters__toggle {
    display: none;
    list-style: none;
}

.filters__toggle::-webkit-details-marker { display: none; }

.facet {
    margin: 0 0 22px;
    padding: 10px 0 0;
    border: 0;
    border-top: 2px solid var(--text);
    min-width: 0;
}

.facet__name {
    float: left;
    width: 100%;
    padding: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.facet__values {
    clear: both;
    margin: 0;
    padding: 0;
    list-style: none;
}

.facet__value {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}

.facet__value label {
    display: block;
    padding: 11px 0;
    cursor: pointer;
}

.facet__check {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.facet__count {
    font-size: 13px;
    color: var(--muted);
}

.facet__check:checked ~ label { font-weight: 600; }

.filters__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}

.filters__clear { font-size: 14px; color: var(--muted); }

/* Pasek nad siatką: aktywne filtry po lewej, sortowanie po prawej. */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 20px;
}

.toolbar:empty { display: none; }

.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.active-filters__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px 0 12px;
    border: 1px solid var(--text);
    border-radius: var(--radius);
    font-size: 14px;
    text-decoration: none;
    background: var(--bg);
}

.active-filters__item:hover { background: var(--surface-strong); }
.active-filters__facet { color: var(--muted); }

/* Krzyżyk rysowany dwiema kreskami (bez ikon i emoji). */
.active-filters__x {
    position: relative;
    width: 12px;
    height: 12px;
    margin-left: 2px;
}

.active-filters__x::before,
.active-filters__x::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 1.5px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
}

.active-filters__x::after { transform: translate(-50%, -50%) rotate(-45deg); }

.active-filters__clear { font-size: 14px; color: var(--muted); margin-left: 4px; }

.sort {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    font-size: 14px;
}

.sort__label { font-weight: 600; }

.sort__select {
    height: 44px;
    font-size: 16px;
    padding: 0 34px 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23777' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    cursor: pointer;
}

.sort__select:hover { border-color: var(--text); }

.sort__submit {
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--text);
    border-radius: var(--radius);
    background: transparent;
    font-weight: 600;
    cursor: pointer;
}

.js .sort__submit { display: none; }

/* Siatka produktów: bez kart z cieniem - zdjęcie na tle, pod nim tekst, kolumny dzieli odstęp. */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
    gap: clamp(28px, 3vw, 40px) clamp(16px, 2vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card__media {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card__noimage,
.gallery__empty {
    padding: 16px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.card--unavailable .card__media img { opacity: 0.55; }

.card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding-top: 12px;
}

.card__name {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
    margin-bottom: 8px;
    text-wrap: pretty;
}

.card__link { text-decoration: none; }

/* Cały kafel klikalny, w drzewie jeden link na produkt. */
.card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.card:hover .card__link { text-decoration: underline; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 4px; }


/* Cena */
.price__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    margin: 0;
}

.price__now {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.price--discount .price__now { color: var(--error); }

.price__was {
    color: var(--muted);
    font-size: 15px;
}

.price__badge {
    padding: 1px 6px;
    border-radius: calc(var(--radius) * 0.75);
    background: var(--error);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* Etykieta promocji sklepu (etap 12): tylko przy pokazanej obniżce; data końca prawdziwa, bez odliczania. */
.price__label {
    margin: 0 0 3px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--error);
}

.price__ends {
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
}

.price--large .price__label { font-size: 13px; margin-bottom: 6px; }

.price__omnibus {
    margin: 4px 0 0;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--muted);
}

.price--large .price__now { font-size: clamp(30px, 3.2vw, 38px); }
.price--large .price__was { font-size: 18px; }
.price--large .price__badge { font-size: 15px; padding: 2px 8px; }
.price--large .price__omnibus { font-size: 14px; margin-top: 6px; }

/* Dostępność: tekst z kreską koloru, nie "kropka sukcesu". */
.stock {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 600;
}

.stock::before {
    content: "";
    align-self: center;
    width: 14px;
    height: 3px;
    background: currentColor;
}

.stock--yes { color: var(--success); }
.stock--no { color: var(--muted); }
.stock--large { font-size: 15px; margin-top: 14px; }
.stock__note { flex-basis: 100%; font-weight: 400; color: var(--muted); }

/* Paginacja */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    margin-top: clamp(32px, 4vw, 48px);
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.pager__list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pager__page {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 8px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
}

a.pager__page:hover { background: var(--surface-strong); }
.pager__page.is-current { background: var(--text); color: var(--bg); }
.pager__gap { padding: 0 4px; color: var(--muted); }
.pager__step { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.empty {
    padding: 28px 0 8px;
    border-top: 2px solid var(--text);
    max-width: 38rem;
}

.empty__title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

/* ---------- Karta produktu ---------- */

.product {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-areas:
        "gallery buy"
        "info buy";
    column-gap: clamp(28px, 5vw, 72px);
    padding-top: clamp(16px, 2.4vw, 28px);
}

.product__gallery { grid-area: gallery; min-width: 0; }
.product__buy { grid-area: buy; }
.product__info { grid-area: info; min-width: 0; }

.gallery__stage {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    border-radius: var(--radius);
    background: var(--surface);
    scrollbar-width: none;
}

.gallery__stage::-webkit-scrollbar { display: none; }

.gallery__slide {
    flex: 0 0 100%;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    margin: 0;
    scroll-snap-align: start;
}

.gallery__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery__empty {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    background: var(--surface);
}

.gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.gallery__thumb {
    display: block;
    width: 76px;
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: var(--surface);
}

.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { border-color: var(--border); }
.gallery__thumb.is-current { border-color: var(--text); }

/* Panel zakupu przyklejony przy przewijaniu opisu (szeroki ekran). */
.buybox {
    align-self: start;
    position: sticky;
    top: 20px;
    padding-top: 6px;
}

.buybox__producer {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.buybox__name {
    font-size: clamp(26px, 2.8vw, 36px);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.buybox__lead {
    font-size: 17px;
    color: var(--muted);
    margin-bottom: 20px;
}

.buybox .price {
    padding-top: 18px;
    border-top: 2px solid var(--text);
}

.buybox__cart { margin-top: 22px; }

.button--cart {
    width: 100%;
    justify-content: center;
    min-height: 54px;
    font-size: 17px;
}

.button:disabled,
.button:disabled:hover {
    background: var(--surface-strong);
    border-color: var(--surface-strong);
    color: var(--muted);
    cursor: not-allowed;
}

.buybox__note {
    margin: 10px 0 0;
    font-size: 14px;
    color: var(--muted);
}

.buybox__note a { white-space: nowrap; }

.buybox__facts {
    margin: 22px 0 0;
    font-size: 14px;
}

.buybox__facts div {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
}

.buybox__facts dt { font-weight: 600; }
.buybox__facts dd { margin: 0; color: var(--muted); }

.product-section {
    margin-top: clamp(32px, 4vw, 48px);
    padding-top: 14px;
    border-top: 2px solid var(--text);
}

.product-section__title {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.prose {
    max-width: 38em;
    font-size: 17px;
    line-height: 1.65;
}

.prose h2, .prose h3 { margin: 1.4em 0 0.5em; font-size: 21px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 0.9em; }
.prose p { margin-bottom: 0.9em; }

.specs {
    width: 100%;
    max-width: 38rem;
    border-collapse: collapse;
    font-size: 15px;
}

.specs th,
.specs td {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.specs th {
    width: 42%;
    padding-right: 16px;
    font-weight: 400;
    color: var(--muted);
}

.related {
    margin-top: clamp(48px, 6vw, 80px);
    padding-top: 14px;
    border-top: 2px solid var(--text);
}

.related--flush { margin-top: 0; }

/* Pozioma lista na telefonie (przewijana), siatka na szerokim ekranie. */
.grid--row { grid-template-columns: repeat(5, minmax(0, 1fr)); }

@media (max-width: 1100px) {
    .grid--row { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
}

/* ---------- Strona główna ---------- */

.page-head--home { border-bottom: 0; margin-bottom: 0; padding-bottom: clamp(8px, 1.5vw, 16px); }

.home-section {
    margin-top: clamp(32px, 5vw, 64px);
    padding-top: 14px;
    border-top: 2px solid var(--text);
}

.home-section__title {
    margin-bottom: clamp(16px, 2.4vw, 26px);
    font-size: clamp(22px, 2.4vw, 28px);
}

.page-head--home + .home-section { margin-top: clamp(12px, 2vw, 24px); }

/* Kafle kategorii: zdjęcie pierwszego produktu, pod nim nazwa i liczba produktów. */
.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.tile {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    column-gap: 12px;
    text-decoration: none;
}

.tile__media {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-strong);
}

.tile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.tile:hover .tile__media img { transform: scale(1.03); }

.tile__index {
    font-family: var(--font-heading);
    font-size: clamp(48px, 7vw, 84px);
    font-weight: 700;
    line-height: 1;
    color: color-mix(in srgb, var(--text) 24%, var(--bg));
}

.tile--plain .tile__media { background: var(--surface); border: 1px solid var(--border); }

.tile__name {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 2px;
}

.tile:hover .tile__name { text-decoration-color: currentColor; }

.tile__count { font-size: 14px; color: var(--muted); white-space: nowrap; }

/* Produkty na stronie głównej: cztery w rzędzie zamiast pięciu, większe zdjęcia. */
.grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* "Dlaczego my": nagłówek z lewej, tekst z prawej, bez kart i ikon. */
.home-why {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: clamp(24px, 5vw, 72px);
    margin-bottom: clamp(40px, 6vw, 80px);
}

.home-why__text { max-width: 40rem; font-size: 18px; line-height: 1.6; }
.home-why__text p:last-child { margin-bottom: 0; }

.results--search { padding-top: clamp(20px, 3vw, 32px); }

.subcats--suggest { border-bottom: 0; margin-top: 20px; }


/* ---------- Stopka ---------- */

.footer {
    margin-top: clamp(40px, 6vw, 80px);
    background: var(--surface);
    border-top: 1px solid var(--border);
    font-size: 15px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 32px;
}

.footer__name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.015em;
    margin-bottom: 6px;
}


.footer__heading {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.footer__links { margin: 0; padding: 0; list-style: none; }
.footer__links li + li { margin-top: 6px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }

.footer__company { color: var(--muted); }

.footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 16px;
    padding-bottom: 24px;
    /* Linia tylko na szerokość treści (bez marginesów .wrap). */
    background: linear-gradient(var(--border), var(--border)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
    color: var(--muted);
    font-size: 13px;
}

.footer__legal p { margin: 0; }

/* ---------- Wąskie ekrany ---------- */

@media (max-width: 960px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .error-page { grid-template-columns: 1fr; }

    /* Filtry zwinięte w <details> nad listą. */
    .listing { grid-template-columns: minmax(0, 1fr); gap: 0; }

    .filters {
        border-bottom: 1px solid var(--border);
        margin-bottom: 16px;
    }

    .filters__toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 48px;
        font-weight: 700;
        cursor: pointer;
    }

    .filters__toggle::after {
        content: "";
        width: 8px;
        height: 8px;
        margin-left: auto;
        margin-right: 6px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-3px);
    }

    .filters[open] > .filters__toggle::after { transform: rotate(-135deg) translateY(-3px); }

    .filters__badge {
        display: inline-grid;
        place-items: center;
        min-width: 24px;
        height: 24px;
        padding: 0 6px;
        border-radius: calc(var(--radius) * 0.75);
        background: var(--text);
        color: var(--bg);
        font-size: 13px;
    }

    .filters__form {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
        column-gap: 24px;
        padding: 8px 0 20px;
    }

    .filters__actions { grid-column: 1 / -1; }

    .product {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "gallery" "buy" "info";
    }

    .buybox { position: static; padding-top: 22px; }
}

@media (max-width: 760px) {
    :root { --header-control: 44px; }

    /* Telefon w pasku zamiast uciętego hasła: hasło jest w nagłówku strony głównej i w stopce. */
    .strip__tagline { display: none; }
    .strip__contact li + li { display: none; }
    .strip__contact { margin: 0 auto 0 0; }

    /* Cele dotyku 44 px (etap 13): linki paska na pełną wysokość, okruszki i stopka z polem dotyku. */
    .strip__row { min-height: 44px; }
    .strip a { display: inline-flex; align-items: center; min-height: 44px; }
    .crumbs { padding-top: 8px; }
    .crumbs a { display: inline-block; padding-block: 12px; }
    .crumbs__list { align-items: center; }
    .footer__links li + li { margin-top: 0; }
    .footer__links a, .footer__consent { display: inline-flex; align-items: center; min-height: 44px; }
    .filters__clear, .active-filters__item, .active-filters__clear, .accnav__notice a, .accpage__back a, .accpage__danger a { display: inline-flex; align-items: center; min-height: 44px; }
    .cartline__name a { display: inline-block; padding-block: 11px; margin-block: -11px; }
    .grid--home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-why { grid-template-columns: minmax(0, 1fr); }
    .home-why__text { font-size: 17px; }

    .masthead__row {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "menu brand account"
            "search search search";
        row-gap: 12px;
        column-gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .menu-toggle { display: inline-flex; }
    .brand { justify-self: start; min-height: 44px; }
    .brand__name { font-size: 21px; }
    .brand__logo { max-height: 36px; }
    /* Telefon: ikona z małym podpisem pod spodem (link do konta zawsze widoczny). */
    .account { gap: 12px; }
    .account__link { flex-direction: column; justify-content: center; gap: 1px; min-width: 44px; min-height: 44px; font-size: 11px; line-height: 1.1; }
    .account__icon { width: 20px; height: 20px; }
    .cart { height: 44px; padding: 0 6px 0 12px; }
    .cart__count { min-width: 28px; height: 28px; }
    .search__button { padding: 0 16px; }

    /* Menu kategorii jako rozwijana lista pod nagłówkiem (JS przełącza .is-open). */
    .catnav { display: none; }
    .catnav.is-open { display: block; }

    .catnav__list { display: block; padding: 0; }
    .catnav__item {
        display: grid;
        grid-template-columns: 1fr auto;
        border-bottom: 1px solid var(--border);
    }

    .catnav__link {
        margin: 0;
        padding: 14px var(--gutter);
        border: 0;
        font-size: 16px;
    }

    .catnav__item:hover > .catnav__link,
    .catnav__item:focus-within > .catnav__link { border-bottom-color: transparent; }

    .catnav__expand {
        display: block;
        width: 52px;
        border: 0;
        border-left: 1px solid var(--border);
        background: transparent;
        cursor: pointer;
        position: relative;
    }

    .catnav__expand::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translate(-50%, -70%) rotate(45deg);
    }

    .catnav__expand[aria-expanded="true"]::before { transform: translate(-50%, -30%) rotate(-135deg); }

    .catnav__panel,
    .catnav__item:hover > .catnav__panel,
    .catnav__item:focus-within > .catnav__panel {
        position: static;
        display: none;
        grid-column: 1 / -1;
        border: 0;
        background: var(--surface);
    }

    .catnav__item.is-open > .catnav__panel { display: block; }

    .catnav__sub { columns: 1; padding: 6px var(--gutter) 12px calc(var(--gutter) + 12px); }

    .directory__name { font-size: 20px; }

    /* Na telefonie wyszukiwarka nagłówka jest tuż nad treścią - druga byłaby powtórzeniem. */
    .error-page .search--large { display: none; }
    .error-page__lead { font-size: 17px; }
}

@media (max-width: 480px) {
    .footer__grid { grid-template-columns: 1fr; gap: 24px; }

    .grid, .grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
    /* Kafle kategorii na telefonie: jeden pod drugim, zdjęcie z lewej, nazwa i liczba z prawej. */
    .tiles { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .tile { grid-template-columns: 40% minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; column-gap: 16px; }
    .tile__media { grid-column: 1; grid-row: 1 / span 2; margin-bottom: 0; }
    .tile__name { grid-column: 2; align-self: end; font-size: 19px; }
    .tile__count { grid-column: 2; align-self: start; font-size: 13px; }
    .tile__name:last-child { grid-row: 1 / span 2; align-self: center; }
    .tile__index { font-size: 40px; }
    .card__name { font-size: 15px; }
    .price__now { font-size: 17px; }
    .price__omnibus { font-size: 12px; }

    /* Powiązane: jeden przewijany wiersz zamiast długiej siatki. */
    .grid--row {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin-right: calc(-1 * var(--gutter));
        padding-right: var(--gutter);
    }

    .grid--row > .grid__item { flex: 0 0 44%; scroll-snap-align: start; }

    .listing-head { grid-template-columns: minmax(0, 1fr); }
    .listing-head__count { padding-bottom: 0; }
    .sort { margin-left: 0; width: 100%; }
    .sort__select { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Blog i strony informacyjne ---------- */

.posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(32px, 4vw, 56px) clamp(20px, 2.6vw, 36px);
    margin: 0;
    padding: clamp(24px, 3vw, 36px) 0 8px;
    list-style: none;
}

.post-card {
    position: relative;
    height: 100%;
}

.post-card__media {
    aspect-ratio: 3 / 2;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
}

.post-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.post-card__date, .article__date, .more-posts__date {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.post-card__title { font-size: clamp(21px, 2vw, 25px); line-height: 1.2; margin-bottom: 8px; }

/* Cała karta klikalna jednym linkiem tytułu. */
.post-card__link { text-decoration: none; }
.post-card__link::after { content: ""; position: absolute; inset: 0; }
.post-card:hover .post-card__link { text-decoration: underline; text-underline-offset: 3px; }

.post-card__excerpt { margin: 0; color: var(--muted); max-width: 34em; }

/* Artykuł: kolumna tekstu około 68 znaków, nagłówek i okładka szersze od niej. */
.article { padding: clamp(8px, 2vw, 24px) 0 clamp(32px, 5vw, 64px); }

.article__head, .article > .prose, .article__cover { max-width: 44rem; }

.article__title {
    font-size: clamp(30px, 4.4vw, 48px);
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}

.article__lead { font-size: 19px; line-height: 1.5; color: var(--muted); margin: 0 0 24px; }

/* Dokumenty prawne: wersja i lista wersji (etap 6b). */
.article__version { margin: 0 0 24px; font-size: 15px; color: var(--muted); }
.article__version a { margin-left: 0.4em; text-underline-offset: 3px; }
.article__version--old { padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--text); }
.versionlist { list-style: none; margin: 0; padding: 0; max-width: 44rem; border-top: 1px solid var(--border); }
.versionlist__item { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--border); }
.versionlist__item a { font-weight: 600; text-underline-offset: 3px; }
.versionlist__note { font-size: 13px; color: var(--muted); }

.article__cover { margin: 0 0 clamp(24px, 3vw, 36px); max-width: 60rem; }
.article__cover img { display: block; width: 100%; height: auto; max-height: 30rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--surface); }

.prose--article { font-size: 18px; line-height: 1.7; max-width: 44rem; }
.prose--article h2 { font-size: clamp(24px, 2.6vw, 29px); margin: 2em 0 0.55em; }
.prose--article h3 { font-size: 21px; margin: 1.7em 0 0.45em; }
.prose--article p, .prose--article ul, .prose--article ol { margin-bottom: 1.1em; }
.prose--article li + li { margin-top: 0.3em; }
.prose--article a { text-underline-offset: 3px; }

.prose--article blockquote {
    margin: 1.6em 0;
    padding: 2px 0 2px 20px;
    border-left: 4px solid var(--accent);
    font-size: 1.06em;
    color: var(--muted);
}

.prose--article img { display: block; max-width: 100%; max-height: 28rem; width: auto; height: auto; object-fit: contain; margin: 1.6em 0; border-radius: var(--radius); }

.prose--article table {
    display: block;
    width: 100%;
    margin: 1.6em 0;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.45;
}

.prose--article th, .prose--article td {
    padding: 10px 14px 10px 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.prose--article th { border-bottom: 2px solid var(--text); font-weight: 700; }

.more-posts { max-width: 44rem; padding: 20px 0 clamp(32px, 5vw, 56px); border-top: 2px solid var(--text); }
.more-posts__title { font-size: 20px; margin-bottom: 12px; }
.more-posts__list { margin: 0; padding: 0; list-style: none; }
.more-posts__list li { display: flex; flex-wrap: wrap; gap: 2px 16px; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.more-posts__link { font-weight: 600; }
.more-posts__date { margin: 0; }

@media (max-width: 960px) {
    .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .posts { grid-template-columns: minmax(0, 1fr); }
    .prose--article { font-size: 17px; }
    .article__lead { font-size: 18px; }
}

/* ---------- Koszyk ---------- */

.listing-head--plain { border-bottom: 0; }

/* Komunikat po akcji koszyka bez JS (ciasteczko komunikatu, layout). */
.notice {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    font-size: 15px;
}

.notice__row { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.notice p { margin: 0; }
.notice--ok { border-left: 4px solid var(--success); }
.notice--error { border-left: 4px solid var(--error); }
.notice a { font-weight: 600; }

/* Karta produktu: ilość + przycisk w jednym rzędzie. */
.addform { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 10px; align-items: end; }
.addform__qty { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }

.qtyfield {
    width: 100%;
    min-height: 54px;
    padding: 0 10px;
    border: 1px solid var(--text);
    border-radius: var(--radius);
    background: var(--bg);
    font-size: 17px;
    font-weight: 600;
    text-align: center;
}

.buybox__status { margin: 10px 0 0; font-size: 15px; }
.buybox__status.is-ok { color: var(--success); }
.buybox__status.is-error { color: var(--error); }
.buybox__status a { margin-left: 4px; font-weight: 600; color: var(--text); }

/* Telefon (etap 13): pasek "Dodaj do koszyka" przy dolnej krawędzi i suma nad listą koszyka. */
.buybar, .carttop { display: none; }

@media (max-width: 760px) {
    .buybar.is-shown {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 6px 14px;
        padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
        background: var(--bg);
        border-top: 2px solid var(--text);
    }
    .buybar__price { margin: 0; font-family: var(--font-heading); font-size: 20px; font-weight: 700; white-space: nowrap; }
    .buybar__button { width: 100%; min-height: 48px; justify-content: center; }
    .buybar__status { grid-column: 1 / -1; margin: 0; font-size: 15px; }
    .buybar__status.is-ok { color: var(--success); }
    .buybar__status.is-error { color: var(--error); }
    .buybar__status a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 4px; font-weight: 600; color: var(--text); }

    .carttop {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px 16px;
        margin: 0 0 16px;
    }
    .carttop__total { margin: 0; }
    .carttop__total strong { font-family: var(--font-heading); font-size: 20px; margin-left: 4px; }
    .carttop__hint { display: block; font-size: 13px; color: var(--muted); }
    .carttop__button { flex: 1 1 100%; min-height: 48px; justify-content: center; }
}

.cartpage__suggest { margin: 18px 0 6px; font-weight: 600; }
.cartpage { padding-bottom: clamp(40px, 6vw, 80px); }
.cartpage__status { margin: 0 0 12px; font-size: 15px; }
.cartpage__status.is-ok { color: var(--success); }
.cartpage__status.is-error { color: var(--error); }

.cartpage__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.cartlines { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--text); }

.cartline {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto 7.5rem;
    grid-template-areas: "media main qty total";
    gap: 8px 20px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.cartline__media { grid-area: media; }
.cartline__media img, .cartline__noimg {
    display: block;
    width: 88px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: calc(var(--radius) * 0.6);
    background: var(--surface-strong);
}

.cartline__main { grid-area: main; min-width: 0; }
.cartline__name { margin: 0 0 6px; font-weight: 600; line-height: 1.35; }
.cartline__name a { text-decoration: none; }
.cartline__name a:hover { text-decoration: underline; }
.cartline__main .price__now { font-size: 16px; }
.cartline__note { margin: 6px 0 0; font-size: 14px; color: var(--error); }
.cartline--gone .cartline__name, .cartline--unavailable .cartline__name { color: var(--muted); }

.cartline__qty { grid-area: qty; display: grid; justify-items: start; gap: 6px; }
.qtyform { display: flex; gap: 6px; }
.qtyform__input {
    width: 4.5rem;
    height: 44px;
    padding: 0 6px;
    border: 1px solid var(--text);
    border-radius: calc(var(--radius) * 0.6);
    background: var(--bg);
    text-align: center;
    font-weight: 600;
}
.qtyform__save {
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--text);
    border-radius: calc(var(--radius) * 0.6);
    background: transparent;
    cursor: pointer;
}
.js .qtyform__save { display: none; }

.cartline__remove {
    min-height: 44px;
    padding: 0 6px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
}
.cartline__remove:hover { color: var(--text); }
.cartline__qtytext { line-height: 44px; color: var(--muted); }

.cartline__total { grid-area: total; margin: 0; text-align: right; font-weight: 700; font-size: 17px; line-height: 44px; }
.cartline__excluded { font-size: 14px; font-weight: 400; color: var(--muted); }

.cartsum {
    position: sticky;
    top: 20px;
    padding: 16px 0 0;
    border-top: 2px solid var(--text);
}

.cartsum__title {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.freebar { margin-bottom: 16px; font-size: 15px; }
.freebar__text { margin-bottom: 8px; }
.freebar__track { display: block; height: 6px; background: var(--surface-strong); border-radius: 3px; overflow: hidden; }
.freebar__fill { display: block; height: 100%; background: var(--success); }

.cartsum__rows { margin: 0 0 18px; }
.cartsum__rows div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.cartsum__rows dt { font-weight: 400; }
.cartsum__rows dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }
.cartsum__hint { display: block; font-size: 13px; color: var(--muted); }
.cartsum__total { border-bottom: 0 !important; padding-top: 14px !important; font-size: 19px; }
.cartsum__total dt, .cartsum__total dd { font-family: var(--font-heading); font-weight: 700; }
.cartsum__warn { font-size: 14px; color: var(--error); }
.cartsum__note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

@media (max-width: 960px) {
    .cartpage__grid { grid-template-columns: minmax(0, 1fr); }
    .cartsum { position: static; }
}

@media (max-width: 600px) {
    .cartline {
        grid-template-columns: 72px minmax(0, 1fr) auto;
        grid-template-areas:
            "media main main"
            "media qty total";
        gap: 10px 14px;
    }
    .cartline__media img, .cartline__noimg { width: 72px; }
    .cartline__qty { grid-template-columns: auto auto; align-items: center; gap: 14px; }
    .cartline__total { line-height: 40px; }
}

/* ---------- Logowanie, rejestracja, konto klienta ---------- */

.authpage {
    display: grid;
    grid-template-columns: minmax(0, 28rem) minmax(0, 22rem);
    justify-content: start;
    gap: clamp(32px, 6vw, 96px);
    padding-top: clamp(28px, 4vw, 56px);
    padding-bottom: clamp(48px, 7vw, 96px);
}
.authpage--single { grid-template-columns: minmax(0, 30rem); }

.authpage__title, .accpage__title {
    font-size: clamp(28px, 3.2vw, 38px);
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}
.authpage__lead { color: var(--muted); margin-bottom: 20px; max-width: 34em; }

.authpage__aside {
    align-self: start;
    padding-top: 18px;
    border-top: 2px solid var(--text);
    margin-top: clamp(0px, 5vw, 64px);
}
.authpage__subtitle { font-size: 21px; margin-bottom: 10px; }
.authpage__aside p { color: var(--muted); margin-bottom: 16px; }

.form { display: grid; gap: 18px; max-width: 30rem; }
.form__row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 14px; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 4px; }
.form__link { font-size: 15px; }
.form__legal { margin: 0; font-size: 14px; color: var(--muted); }
.form__legal a { color: var(--text); }

.field { display: grid; gap: 6px; }
.field__label { font-weight: 600; font-size: 15px; }
.field__optional { font-weight: 400; color: var(--muted); }
.field__input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid color-mix(in srgb, var(--text) 55%, var(--bg));
    border-radius: var(--radius);
    background: var(--bg);
    font-size: 16px;
}
.field__input:hover { border-color: var(--text); }
.field__input:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--text); }
.field__hint { margin: 0; font-size: 14px; color: var(--muted); }
.field__error { margin: 0; font-size: 14px; font-weight: 600; color: var(--error); }
.field--error .field__input { border: 2px solid var(--error); }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: 0 0 auto; }

.button--wide { min-width: 12rem; justify-content: center; }
.button--danger { background: var(--error); border-color: var(--error); color: #fff; }
.button--danger:hover { background: color-mix(in srgb, var(--error) 86%, #000); }

.linkbutton {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
}
.linkbutton--muted { color: var(--muted); }
.linkbutton:hover { color: var(--text); text-decoration-thickness: 2px; }

.nowrap { white-space: nowrap; }

.formmsg { margin: 0 0 20px; padding: 12px 16px; border-left: 4px solid; background: var(--surface); font-size: 15px; max-width: 34rem; }
.formmsg p { margin: 0; }
.formmsg ul { margin: 0; padding-left: 1.1em; }
.formmsg--ok { border-color: var(--success); }
.formmsg--error { border-color: var(--error); }

.accpage {
    display: grid;
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
    padding-top: clamp(28px, 4vw, 48px);
    padding-bottom: clamp(48px, 7vw, 96px);
}
.accpage__main { min-width: 0; max-width: 46rem; }
.accpage__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.accpage__back { margin: 0 0 8px; font-size: 15px; }
.accpage__back a::before { content: "\2190\00a0"; }
.accpage__danger { margin-top: 36px; font-size: 15px; }
.accpage__danger a { color: var(--error); }

.accnav { align-self: start; border-top: 2px solid var(--text); padding-top: 14px; }
.accnav__who { margin: 0 0 12px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.accnav__notice { margin: -6px 0 12px; font-size: 14px; font-weight: 600; }
.accnav__notice a { color: var(--error); text-underline-offset: 3px; }
.accnav__list { list-style: none; margin: 0 0 14px; padding: 0; }
.accnav__link {
    display: block;
    padding: 10px 0 10px 12px;
    border-left: 3px solid transparent;
    font-weight: 600;
    text-decoration: none;
}
.accnav__link:hover { border-left-color: var(--border); }
.accnav__link.is-current { border-left-color: var(--accent); background: var(--accent-soft); }
.accnav__logout { padding-left: 15px; font-size: 15px; color: var(--muted); }

.accfacts { margin: 0 0 24px; }
.accfacts div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.accfacts dt { min-width: 10rem; color: var(--muted); }
.accfacts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.accfacts dd a { margin-left: 8px; font-weight: 400; font-size: 15px; }

.accblock { padding: 20px 0 8px; border-top: 1px solid var(--border); }
.accblock + .accblock { margin-top: 20px; }
.accblock__title { font-size: 21px; margin-bottom: 14px; }
.accblock__note { color: var(--muted); }
.accblock__list { margin: 0 0 22px; padding-left: 1.2em; max-width: 38rem; }
.accblock__list li + li { margin-top: 6px; }

.addrlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 16px; }
.addr { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); display: grid; gap: 12px; align-content: start; }
.addr--default { border: 2px solid var(--text); padding: 15px 17px; }
.addr__badge { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.addr__text { font-style: normal; line-height: 1.5; }
.addr__actions { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; }
.addr__actions form { margin: 0; }

@media (max-width: 760px) {
    .authpage, .authpage--single { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .authpage__aside { margin-top: 0; }
    /* Telefon: zakładki konta nad treścią, "Wyloguj się" pod treścią (nav jako display: contents,
       żeby jego części mogły stanąć w kolejności flex strony). */
    .accpage { display: flex; flex-direction: column; gap: 0; padding-top: 4px; }
    .accnav { display: contents; }
    .accnav__who { display: none; }
    .accnav__list { order: 0; display: flex; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 22px; padding: 0 calc(var(--gutter) - 10px); scrollbar-width: none; border-bottom: 1px solid var(--border); }
    .accnav__link { padding: 12px 10px 11px; border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; }
    .accnav__link.is-current { border-bottom-color: var(--accent); background: none; }
    .accnav__long { display: none; }
    .accpage__main { order: 1; }
    .accnav__logout { order: 2; margin-top: 32px; padding: 16px 0 0; border-top: 1px solid var(--border); }
    .accnav__logout .linkbutton, .form__link { display: inline-flex; align-items: center; min-height: 44px; }
    .check { min-height: 44px; padding-block: 11px; }
    .form__row { grid-template-columns: minmax(0, 1fr); }
    .button--wide { width: 100%; }
}

/* ---------- Zamówienia: podsumowanie (paragon), szczegóły, lista w koncie ----------
 * Wspólne dla checkoutu (checkout.css), strony podziękowania i konta klienta. */

.coledger { margin: 0; }
.coledger div { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; }
/* Linia kropkowa między nazwą a kwotą - jak na paragonie. */
.coledger div::after { content: none; }
.coledger dt { display: flex; align-items: baseline; gap: 8px; flex: 1 1 auto; min-width: 0; }
.coledger dt::after { content: ""; flex: 1 1 auto; min-width: 16px; border-bottom: 1px dotted var(--muted); transform: translateY(-4px); }
.coledger dd { margin: 0; font-weight: 600; white-space: nowrap; }
.coledger__hint { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coledger__total { margin-top: 6px; padding-top: 14px !important; border-top: 2px solid var(--text); font-family: var(--font-heading); font-size: 21px; }
.coledger__total dt, .coledger__total dd { font-weight: 700; }
.coledger__total dt::after { display: none; }
.coledger--final { max-width: 36rem; }

/* ---------- Szczegóły zamówienia (podziękowanie i konto) ---------- */

.orderview { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.orderview__title { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.orderview__facts { display: grid; gap: 22px; font-size: 15px; }
.orderview__facts p { margin: 0 0 4px; }
.orderview__mono { white-space: nowrap; font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.03em; }
.orderview__muted { color: var(--muted); }
.orderview__docs { list-style: none; margin: 0; padding: 0; }
.orderview__docs li + li { margin-top: 4px; }

.ordertable { width: 100%; border-collapse: collapse; margin-bottom: 8px; font-size: 15px; }
.ordertable th, .ordertable td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.ordertable thead th { font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--text); }
.ordertable tbody th { font-weight: 600; }
.ordertable td:last-child, .ordertable th:last-child { text-align: right; padding-right: 0; white-space: nowrap; }
.coledger--order { max-width: none; }

/* ---------- Konto: lista zamówień ---------- */

.accpage__main--wide { max-width: 62rem; }
.acorders { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--text); }
.acorder__link {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 6px 18px;
    align-items: baseline;
    padding: 15px 4px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}
.acorder__link:hover { background: var(--surface); }
.acorder__number { font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.02em; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.acorder__date { color: var(--muted); font-size: 15px; }
.acorder__total { font-weight: 700; text-align: right; }
.acorder__status { font-size: 14px; font-weight: 600; }
.acorder__status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--muted); transform: translateY(-1px); }
.acorder__status--pending_payment::before { background: var(--accent); }
.acorder__status--paid::before, .acorder__status--delivered::before { background: var(--success); }
.acorder__status--cancelled::before { background: var(--error); }
.acorder__state { margin: -4px 0 24px; }

@media (max-width: 900px) {
    .orderview { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
    .ordertable thead { display: none; }
    .ordertable tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
    .ordertable th, .ordertable td { padding: 0; border: 0; }
    .ordertable tbody th { grid-column: 1 / -1; }
    .ordertable td[data-label="Cena"] { display: none; }
    .acorder__link { grid-template-columns: minmax(0, 1fr) auto; }
    .acorder__date { grid-column: 1; }
    .acorder__status { grid-column: 1; }
    .acorder__total { grid-column: 2; grid-row: 1; }
}

/* Stan płatności zamówienia (strona zamówienia i konto klienta, partials/order-payment). */
.paystate { max-width: 46rem; margin: 0 0 30px; padding: 18px 22px; border-left: 4px solid var(--border); background: var(--surface); }
.paystate--paid { border-left-color: var(--success); }
.paystate--failed, .paystate--interrupted, .paystate--review { border-left-color: var(--error); }
.paystate--confirming, .paystate--waiting, .paystate--unpaid { border-left-color: var(--accent); }
.paystate__title { margin: 0 0 6px; font-size: 20px; }
.paystate__text { margin: 0; }
.paystate__refresh { margin: 12px 0 0; font-size: 15px; }
.paystate__hint { color: var(--muted); }
.paystate__form { margin-top: 16px; display: grid; gap: 14px; justify-items: start; }
.paystate__methods { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.paystate__legend { margin-bottom: 8px; padding: 0; font-weight: 600; font-size: 15px; }
.paystate__method { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); cursor: pointer; }
.paystate__method:has(input:checked) { border: 2px solid var(--text); padding: 8px 13px; }
.paystate__method input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
/* Etap 15: dane do przelewu MPP - tabela do przepisania w bankowości (rachunek czcionką o stałej szerokości cyfr). */
.paystate--transfer { border-left-color: var(--accent); }
.paystate--transfer .paystate__text + .paystate__text { margin-top: 10px; }
.paytransfer { margin: 14px 0; display: grid; border-top: 1px solid var(--border); }
.paytransfer > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.paytransfer dt { color: var(--muted); font-size: 15px; }
.paytransfer dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.paytransfer__account { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.paytransfer__minor { font-weight: 400; color: var(--muted); }
@media (max-width: 600px) {
    .paystate { padding: 16px; }
    .paystate__methods { flex-direction: column; align-items: stretch; width: 100%; }
    .paystate__form .button { width: 100%; }
    .paytransfer > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Formularz kontaktowy ---------- */

.field__input--area { min-height: 10rem; padding: 12px 14px; line-height: 1.5; resize: vertical; }
/* Pułapka na boty: poza ekranem (nie display:none - część botów to sprawdza). */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contactpage .form { max-width: 34rem; }
.contactpage .form__legal { max-width: 34rem; }

/* ---------- Zwroty i reklamacje (etap 6b) ---------- */

.orderreturns { margin: clamp(24px, 3vw, 36px) 0; padding-top: 18px; border-top: 1px solid var(--border); font-size: 15px; }
.orderreturns__list { list-style: none; margin: 0 0 12px; padding: 0; }
.orderreturns__list li + li { margin-top: 6px; }
.orderreturns__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.returnform__items { width: 100%; border-collapse: collapse; margin: 0 0 8px; font-size: 15px; }
.returnform__items th, .returnform__items td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.returnform__items select { min-width: 5rem; }
.returnform__box { margin: 0 0 22px; padding: 14px 16px; background: var(--surface); border-left: 3px solid var(--accent); font-size: 15px; }
.returnform__box p { margin: 0 0 6px; }
.returnform__box p:last-child { margin-bottom: 0; }
.returnform__address { white-space: pre-line; font-weight: 600; }
.returnform__choice { display: grid; gap: 8px; margin: 0 0 20px; padding: 0; border: 0; }
.returnform__choice legend { font-weight: 700; margin-bottom: 8px; }
.returnform__choice label { display: flex; gap: 10px; align-items: flex-start; }

/* ---------- Zgody cookies (etap 8a, tracking.js) ----------
 * Pasek u dołu, bez zasłaniania strony i bez blokady przewijania. "Odrzuć wszystkie" i
 * "Akceptuj wszystkie" mają ten sam wygląd (bez dark patterns), "Ustawienia" to link.
 */
.consent {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--bg);
    border-top: 2px solid var(--text);
    padding: 18px 0 calc(18px + env(safe-area-inset-bottom, 0px));
}

.consent[hidden] { display: none; }

.consent__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 32px;
    align-items: end;
}

.consent__title {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.consent__text p {
    margin: 0;
    max-width: 68ch;
    font-size: 0.94rem;
}

.consent__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
}

.consent__btn {
    min-height: 44px;
    min-width: 11.5rem;
    padding: 0 18px;
    border: 2px solid var(--text);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
}

.consent__btn:hover { background: var(--surface-strong); }

.consent__link {
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
}

.consent__prefs {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: end;
}

.consent__prefs[hidden] { display: none; }

.consent__fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 8px;
    max-width: 68ch;
}

.consent__legend {
    padding: 0;
    margin-bottom: 4px;
    font-weight: 600;
}

.consent__option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.94rem;
}

.consent__option input {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    flex: none;
    accent-color: var(--accent);
}

.footer__consent {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.footer__consent:hover { text-decoration: underline; }

html:not(.js) .footer__consent { display: none; }

@media (max-width: 760px) {
    .consent__row { grid-template-columns: minmax(0, 1fr); }
    .consent__actions { display: grid; grid-template-columns: 1fr 1fr; }
    .consent__btn { min-width: 0; width: 100%; padding: 0 10px; }
    .consent__link { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Newsletter w stopce (etap 8b) ---------- */

.footnews { margin-top: 20px; max-width: 420px; }
.footnews .footer__heading { margin-bottom: 8px; }
.footnews__row { display: flex; gap: 8px; }
.footnews__input { flex: 1 1 auto; min-width: 0; }
.footnews__button { flex: 0 0 auto; }
.footnews__consent { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

@media (max-width: 420px) {
    .footnews__row { flex-direction: column; }
}

/* Ekran dotykowy szerszy niż telefon (tablet, etap 13): te same pola dotyku 44 px co na telefonie
   tam, gdzie układ szerokiego ekranu ma małe linki. */
@media (pointer: coarse) and (min-width: 761px) {
    .strip__row { min-height: 44px; }
    .strip a { display: inline-flex; align-items: center; min-height: 44px; }
    .account__link { min-height: 44px; }
    .crumbs a { display: inline-block; padding-block: 12px; }
    .crumbs__list { align-items: center; }
    .footer__links li + li { margin-top: 0; }
    .footer__links a, .footer__consent, .filters__clear, .active-filters__item, .accnav__notice a, .accpage__back a, .accpage__danger a, .form__link, .linkbutton { display: inline-flex; align-items: center; min-height: 44px; }
    .cartline__name a { display: inline-block; padding-block: 11px; margin-block: -11px; }
    .check { min-height: 44px; padding-block: 11px; }
}
