/* =========================================================================
   mfair.pl — design system "Pracownia Powietrza" (produkcyjna, jasna)
   Wersja produkcyjna kierunku kreatywnego "Pracownia Powietrza": ta sama
   edytorialna typografia, precyzyjna estetyka i zgaszony akcent slate-blue,
   ale WYŁĄCZNIE na jasnym, ciepłym tle — bez ciemnych "sal galerii" z
   koncepcyjnej wersji. Baza: ciepła kość słoniowa + ciepły atrament.
   Akcent: zgaszony błękit #3E5A66 (przygaszona wersja marki #336699).
   Nagłówki: Fraunces (edytorialna szeryfa). Treść: Schibsted Grotesk.
   Dane/etykiety: IBM Plex Mono — karta specyfikacji, nie metka sklepowa.

   Zasada kolorów: głębię buduje CIEŃ w tonie atramentu, nie poświata.
   Promienie są celowo małe (architektoniczne kąty, nie SaaS-owe pigułki) —
   --r-pill zostaje nazwany po staremu, ale ma teraz wartość niemal ostrą.
   ========================================================================= */

/* ===== 1. Tokeny ===================================================== */
:root {
    /* Powierzchnie */
    --paper: #F1EDE4;
    --paper-2: #E7E0D2;
    --surface: #FCFAF5;
    --surface-2: #EFE9DC;
    --surface-3: #E3DBC9;

    /* Tekst — wszystkie zdają WCAG AA na białym i na --paper */
    --text: #14130F;
    --text-soft: #4A473F;
    --text-dim: #6B6759;

    /* Akcent (zgaszony slate-blue) w kilku rolach */
    --accent: #3E5A66;        /* wypełnienia, obramowania, ikony (nie tekst) */
    --accent-ink: #33474F;    /* drobny tekst akcentowy na jasnym tle */
    --accent-deep: #2B3D44;   /* tło przycisku pod biały tekst */
    --accent-soft: #E4EAEB;   /* delikatna podkładka */
    --accent-line: #C7D3D5;

    --accent-2: #6B8791;      /* jaśniejszy slate-blue — klasa filtra, akcenty pomocnicze */
    --accent-2-soft: #EFF3F3;

    --hot: #DC2626;
    --hot-soft: #FEECEC;
    --ok: #067A55;
    --ok-soft: #E3F7EF;
    --warn: #B45309;
    --warn-soft: #FDF3E3;

    /* Linie */
    --line: #E3DCC9;
    --line-strong: #D2C9B0;

    /* Promienie — architektoniczne, nie pigułkowe */
    --r-sm: 3px;
    --r-md: 6px;
    --r-lg: 9px;
    --r-xl: 13px;
    --r-pill: 3px;

    /* Cienie — w tonie ciepłego atramentu, nie czerni ani błękitu */
    --shadow-xs: 0 1px 2px rgba(20, 19, 15, 0.05);
    --shadow-sm: 0 2px 8px rgba(20, 19, 15, 0.06);
    --shadow-md: 0 14px 30px rgba(20, 19, 15, 0.10);
    --shadow-lg: 0 28px 64px rgba(20, 19, 15, 0.14);
    --shadow-accent: 0 12px 30px rgba(62, 90, 102, 0.22);

    /* Typografia */
    --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
    --font-body: "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

    /* Rytm */
    --gap: clamp(16px, 2.2vw, 24px);
    --section-y: clamp(56px, 8vw, 104px);
    --shell: 1240px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== 2. Reset i baza ============================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
}

:focus-visible {
    outline: 2px solid var(--accent-deep);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: var(--accent); color: #fff; }

.container {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
}

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

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== 3. Przyciski ================================================= */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
                background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
    /* Jaśniejszy koniec gradientu też musi utrzymać 4.5:1 pod białym tekstem. */
    background: linear-gradient(135deg, var(--accent-deep), #1E2C31);
    color: #fff;
    box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(62, 90, 102, 0.30);
}

.btn-outline {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--text);
    box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-ink);
    background: var(--accent-soft);
    transform: translateY(-2px);
}

.btn-ghost { background: transparent; color: var(--text-soft); padding: 10px 14px; }
.btn-ghost:hover { color: var(--accent-ink); }

.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-lg { padding: 17px 34px; font-size: 16.5px; }

/* ===== 4. Topbar ==================================================== */
.topbar {
    background: var(--accent-deep);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
    padding-top: 9px;
    padding-bottom: 9px;
}
.topbar-inner span { display: inline-flex; align-items: center; gap: 8px; }
.topbar-inner a { color: #fff; font-weight: 600; }
.topbar-inner a:hover { color: #CFE0E1; }
.topbar strong { color: #CFE0E1; font-weight: 700; }

.pulse-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #34D399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: pulse 2.4s infinite;
    flex: none;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ===== 5. Header ==================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.is-stuck {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2.4vw, 28px);
    padding-top: 16px;
    padding-bottom: 16px;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex: none;
    transition: transform 0.3s var(--ease);
}
.logo:hover { transform: scale(1.03); }
.logo-img { display: block; height: 40px; width: auto; }

/* Wyszukiwarka */
.search-form {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 520px;
    padding: 5px 6px 5px 16px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.search-form:focus-within {
    background: var(--surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(62, 90, 102, 0.12);
}
.search-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 14.5px;
}
.search-form input::placeholder { color: var(--text-dim); }
.search-form input:focus { outline: none; }
.search-form button {
    flex: none;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 0;
    border-radius: 50%;
    /* Jaśniejszy koniec gradientu też musi utrzymać 4.5:1 pod białym tekstem. */
    background: linear-gradient(135deg, var(--accent-deep), #1E2C31);
    color: #fff;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.search-form button:hover { transform: scale(1.08); box-shadow: var(--shadow-accent); }
.search-form button svg { width: 17px; height: 17px; stroke: currentColor; }

/* Akcje po prawej */
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }

.icon-btn {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-soft);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease);
}
.icon-btn:hover { color: var(--accent-ink); border-color: var(--accent); transform: translateY(-2px); }
.icon-btn svg { width: 19px; height: 19px; stroke: currentColor; }

/* Konto */
.account-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px 11px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 11.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-soft);
    max-width: 190px;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.25s var(--ease);
}
.account-link:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.account-link svg { width: 18px; height: 18px; stroke: currentColor; flex: none; }
.account-link .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px 11px 16px;
    border-radius: var(--r-pill);
    background: var(--accent-deep);
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 11.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s ease;
}
.cart-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #1E2C31; }
.cart-link svg { width: 19px; height: 19px; stroke: currentColor; }
.cart-count {
    min-width: 22px; height: 22px;
    padding: 0 6px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--r-pill);
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.cart-link.is-empty .cart-count { background: rgba(255, 255, 255, 0.22); color: #C9D6D8; }

.nav-toggle { display: none; }

/* ===== 6. Nawigacja główna ========================================= */
.main-nav {
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
}
.main-nav > .container > ul {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}
.main-nav > .container > ul > li { position: relative; }
.main-nav > .container > ul > li > a {
    display: block;
    padding: 15px 18px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-soft);
    transition: color 0.2s ease;
}
.main-nav > .container > ul > li > a::after {
    content: "";
    position: absolute;
    left: 18px; right: 18px; bottom: 8px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}
.main-nav > .container > ul > li:hover > a { color: var(--text); }
.main-nav > .container > ul > li:hover > a::after { transform: scaleX(1); }

.main-nav .submenu {
    position: absolute;
    left: 0; top: 100%;
    min-width: 260px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    z-index: 110;
}
.main-nav li.has-submenu:hover .submenu,
.main-nav li.has-submenu:focus-within .submenu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.main-nav .submenu a {
    display: block;
    padding: 11px 14px;
    border-radius: var(--r-sm);
    font-size: 14px;
    color: var(--text-soft);
    transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}
.main-nav .submenu a:hover {
    background: var(--accent-soft);
    color: var(--accent-ink);
    padding-left: 20px;
}

/* Szuflada mobilna */
.mobile-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 88vw);
    z-index: 200;
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 22px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
}
.mobile-drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.mobile-drawer .drawer-group { margin-bottom: 8px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.mobile-drawer .drawer-group > a {
    display: block;
    padding: 13px 4px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
}
.mobile-drawer .drawer-group ul a {
    display: block;
    padding: 9px 4px 9px 18px;
    font-size: 14px;
    color: var(--text-dim);
}
.mobile-drawer .drawer-group ul a:hover { color: var(--accent-ink); }
.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(20, 19, 15, 0.35);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

/* ===== 7. Hero ===================================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 9vw, 116px) 0 clamp(52px, 8vw, 92px);
    background: linear-gradient(180deg, #FFFFFF 0%, var(--paper) 100%);
    isolation: isolate;
}

/* Miękkie plamy koloru — na jasnym tle dużo subtelniejsze niż w wersji ciemnej */
.hero-aurora {
    position: absolute;
    inset: -25% -10%;
    z-index: -2;
    pointer-events: none;
}
.hero-aurora span {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.75;
}
.hero-aurora span:nth-child(1) {
    width: 44vw; height: 44vw; top: 0; left: -8%;
    background: radial-gradient(circle, rgba(62, 90, 102, 0.42), transparent 65%);
    animation: drift1 18s ease-in-out infinite alternate;
}
.hero-aurora span:nth-child(2) {
    width: 38vw; height: 38vw; top: 10%; right: -6%;
    background: radial-gradient(circle, rgba(196, 178, 140, 0.32), transparent 65%);
    animation: drift2 22s ease-in-out infinite alternate;
}
.hero-aurora span:nth-child(3) {
    width: 32vw; height: 32vw; bottom: -12%; left: 36%;
    background: radial-gradient(circle, rgba(107, 135, 145, 0.30), transparent 65%);
    animation: drift3 26s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate3d(8vw, 5vh, 0) scale(1.16); } }
@keyframes drift2 { to { transform: translate3d(-7vw, 7vh, 0) scale(1.1); } }
@keyframes drift3 { to { transform: translate3d(5vw, -6vh, 0) scale(1.2); } }

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(20, 19, 15, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 19, 15, 0.045) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: radial-gradient(ellipse 90% 65% at 50% 35%, #000 35%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 35%, #000 35%, transparent 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}
.hero-text { max-width: 640px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px 8px 12px;
    margin-bottom: 26px;
    border: 1px solid var(--accent-line);
    border-radius: var(--r-pill);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-ink);
}

.hero-text h1 {
    font-size: clamp(38px, 6.2vw, 76px);
    line-height: 1.03;
    letter-spacing: -0.01em;
    margin-bottom: 22px;
}
.hero-text h1 .grad {
    background: linear-gradient(105deg, var(--accent-deep) 0%, #567F8A 50%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero-text p {
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--text-soft);
    max-width: 52ch;
    margin: 0 0 34px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(24px, 4vw, 48px);
    padding-top: 28px;
    border-top: 1px solid var(--line-strong);
}
.hero-stat strong {
    display: block;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text);
    line-height: 1;
}
.hero-stat span { font-size: 13px; color: var(--text-dim); }

/* Wizualizacja hero — baner "dobierz filtr do urządzenia" (realna funkcja: */
/* select z markami z bazy → wyszukiwarka), nie dekoracja. */
.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
}
.finder-banner {
    position: relative;
    width: 100%;
    max-width: 460px;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: linear-gradient(155deg, var(--accent-soft) 0%, #FFFFFF 55%, var(--paper) 100%);
    border: 1px solid var(--accent-line);
    box-shadow: var(--shadow-lg);
}
.finder-pleats {
    position: absolute;
    inset: 0 0 0 auto;
    width: 40%;
    display: flex;
    gap: 3px;
    padding: 10% 10%;
    opacity: 0.55;
    mask-image: linear-gradient(90deg, transparent, #000 45%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.finder-pleats i {
    flex: 1;
    background: linear-gradient(180deg, transparent, rgba(62, 90, 102, .55) 25%, rgba(62, 90, 102, .75) 50%, rgba(62, 90, 102, .55) 75%, transparent);
    border-radius: 2px;
    animation: finder-pulse 3.2s ease-in-out infinite;
}
.finder-pleats i:nth-child(3n) { animation-delay: .4s; }
.finder-pleats i:nth-child(4n) { animation-delay: .8s; }
@keyframes finder-pulse {
    0%, 100% { transform: scaleY(.72); }
    50%      { transform: scaleY(1); }
}
.finder-body {
    position: relative;
    z-index: 1;
    padding: clamp(28px, 4vw, 40px);
    max-width: 80%;
}
.finder-body .eyebrow { color: var(--accent-ink); }
.finder-body h3 {
    font-size: clamp(21px, 2.4vw, 26px);
    line-height: 1.12;
    margin-bottom: 10px;
}
.finder-body p {
    font-size: 14.5px;
    color: var(--text-soft);
    margin: 0 0 22px;
    max-width: 32ch;
}
.finder-form { display: flex; gap: 10px; flex-wrap: wrap; }
.finder-form select {
    flex: 1;
    min-width: 150px;
    padding: 13px 15px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.finder-form select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(62, 90, 102, 0.12);
}
.finder-form .btn { flex: none; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50%      { transform: translateY(-16px) rotate(1.5deg); }
}

.float-tag {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: var(--r-pill);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
    white-space: nowrap;
}
.float-tag b { color: var(--accent-ink); }
.float-tag:nth-of-type(1) { top: 8%; left: -4%; animation: float 8s ease-in-out infinite 0.4s; }
.float-tag:nth-of-type(2) { bottom: 14%; right: -6%; animation: float 9s ease-in-out infinite 1.2s; }

/* ===== 8. Sekcje =================================================== */
section { position: relative; }
.section { padding: var(--section-y) 0; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(28px, 4vw, 44px);
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-ink);
}
.eyebrow::before {
    content: "";
    width: 22px; height: 1px;
    background: var(--accent);
    opacity: .7;
}
.section-title {
    font-size: clamp(28px, 3.8vw, 46px);
    letter-spacing: -0.01em;
    margin: 0;
}
.section-sub { color: var(--text-soft); max-width: 56ch; margin: 14px 0 0; }

/* ===== 9. Kategorie ================================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap);
}
.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px;
    min-height: 240px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.4s var(--ease);
}
.category-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-line);
    box-shadow: var(--shadow-md);
}

.cat-icon {
    width: 52px; height: 52px;
    margin-bottom: 20px;
    display: grid; place-items: center;
    border-radius: var(--r-md);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    transition: transform 0.4s var(--ease);
}
.category-card:hover .cat-icon { transform: scale(1.08) rotate(-6deg); }
.cat-icon svg { width: 25px; height: 25px; stroke: var(--accent-ink); }

.category-card h3 { font-size: 21px; margin-bottom: 10px; }
.category-card p { color: var(--text-dim); font-size: 14.5px; margin: 0 0 20px; flex: 1; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--accent-ink);
}
.link-arrow::after {
    content: "→";
    transition: transform 0.3s var(--ease);
}
.category-card:hover .link-arrow::after { transform: translateX(6px); }

/* ===== 10. Produkty ================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: var(--gap);
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.4s var(--ease);
}
.product-card:hover {
    transform: translateY(-7px);
    border-color: var(--accent-line);
    box-shadow: var(--shadow-md);
}

.product-card-img {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: linear-gradient(150deg, #FBF8F1, #F0EAD9);
    overflow: hidden;
}
.product-card-img img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 14px;
    transition: transform 0.55s var(--ease);
}
.product-card:hover .product-card-img img { transform: scale(1.07); }

.badge {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 2;
    padding: 6px 11px;
    border-radius: var(--r-pill);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
}
.badge-sale { background: var(--hot); color: #fff; box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3); }
.badge-new { background: var(--accent-deep); color: #fff; }

.product-card-body {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 18px;
    flex: 1;
}
.product-class {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: var(--accent-2-soft);
    border: 1px solid var(--accent-line);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--accent-ink);
}
.product-card-title {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 63px;
}
.product-card-title a { transition: color 0.2s ease; }
.product-card-title a:hover { color: var(--accent-ink); }

.product-card-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
}
.price-old { text-decoration: line-through; color: var(--text-dim); font-size: 13.5px; }
.price-current {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text);
}
.add-to-cart-form { margin-top: 12px; }

/* ===== 11. Pasek zaufania ========================================== */
.value-props {
    padding: clamp(40px, 6vw, 68px) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--gap);
}
.value-item {
    padding: 26px 22px;
    border-radius: var(--r-md);
    border: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.35s var(--ease);
}
.value-item:hover {
    border-color: var(--line);
    background: var(--paper);
    transform: translateY(-4px);
}
.value-icon {
    display: grid; place-items: center;
    width: 46px; height: 46px;
    margin-bottom: 16px;
    border-radius: var(--r-md);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
}
.value-icon svg { width: 22px; height: 22px; stroke: var(--accent-ink); }
.value-item h3 { font-size: 16.5px; margin-bottom: 7px; }
.value-item p { font-size: 14px; color: var(--text-dim); margin: 0; }

/* ===== 12. Pasek marek ============================================= */
.brand-strip {
    padding: clamp(36px, 5vw, 56px) 0;
    overflow: hidden;
}
.brand-strip-label {
    text-align: center;
    font-size: 12.5px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 26px;
}
.marquee {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: marquee 34s linear infinite;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.brand-strip:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee span {
    font-family: var(--font-display);
    font-size: clamp(19px, 2.4vw, 27px);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-dim);
    white-space: nowrap;
    transition: color 0.25s ease;
}
.marquee span:hover { color: var(--accent-ink); }

/* ===== 13. Panel CTA =============================================== */
.cta-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 6vw, 72px);
    border-radius: var(--r-xl);
    background: linear-gradient(135deg, #F7F2E8 0%, #FFFFFF 55%, var(--paper) 100%);
    border: 1px solid var(--accent-line);
    color: var(--text);
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.cta-panel::before {
    content: "";
    position: absolute;
    width: 560px; height: 560px;
    top: -55%; left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(62, 90, 102, 0.16), transparent 65%);
    filter: blur(50px);
    pointer-events: none;
}
.cta-panel > * { position: relative; }
.cta-panel .eyebrow { color: var(--accent-ink); }
.cta-panel .eyebrow::before { background: var(--accent-ink); }
.cta-panel h2 { font-size: clamp(26px, 3.4vw, 42px); margin-bottom: 14px; color: var(--text); }
.cta-panel p { color: var(--text-soft); max-width: 56ch; margin: 0 auto 30px; }
.cta-panel .btn-outline { background: #fff; border-color: var(--accent-line); color: var(--accent-ink); }
.cta-panel .btn-outline:hover { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ===== 14. FAQ ===================================================== */
.faq-list { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.faq-item[open] { border-color: var(--accent-line); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 16.5px;
    font-weight: 600;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    flex: none;
    font-size: 24px;
    font-weight: 400;
    color: var(--accent-ink);
    transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 24px 22px; color: var(--text-soft); font-size: 15px; }

/* ===== 15. Stopka ================================================== */
.site-footer {
    margin-top: var(--section-y);
    border-top: 1px solid var(--line);
    background: var(--surface-2);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
    gap: clamp(28px, 4vw, 52px);
    padding-top: clamp(48px, 6vw, 72px);
    padding-bottom: clamp(36px, 5vw, 56px);
}
.site-footer h3 {
    font-size: 13px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 18px;
}
.footer-brand .logo { margin-bottom: 18px; }
.site-footer p { font-size: 14px; color: var(--text-dim); margin: 0 0 14px; }
.footer-links li { margin-bottom: 11px; }
.footer-links a {
    font-size: 14.5px;
    color: var(--text-soft);
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-links a:hover { color: var(--accent-ink); padding-left: 5px; }
.footer-contact a { color: var(--text-soft); font-weight: 600; }
.footer-contact a:hover { color: var(--accent-ink); }
.footer-contact li { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; font-size: 14.5px; color: var(--text-soft); }
.footer-contact svg { width: 17px; height: 17px; stroke: var(--accent-ink); flex: none; }

.footer-bottom {
    border-top: 1px solid var(--line-strong);
    padding: 22px 0;
    font-size: 13px;
    color: var(--text-dim);
}
.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.payment-badges { display: flex; align-items: center; gap: 10px; }
.payment-badges span {
    padding: 5px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-dim);
}
.hosting-strip { padding-top: 0; padding-bottom: clamp(32px, 5vw, 56px); }
.hosting-strip-inner { display: flex; justify-content: center; text-align: center; }
.hosting-badge {
    display: inline-flex;
    opacity: 0.85;
    border-radius: 16px;
    transition: opacity 0.2s ease, transform 0.3s var(--ease);
}
.hosting-badge:hover { opacity: 1; transform: translateY(-2px); }
.hosting-badge img { display: block; width: min(728px, 92vw); height: auto; border-radius: 8px; box-shadow: var(--shadow-md); }

/* ===== 16. Nagłówki podstron ======================================= */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--text-dim);
    padding: 22px 0 18px;
}
.breadcrumbs a { color: var(--text-soft); transition: color 0.2s ease; }
.breadcrumbs a:hover { color: var(--accent-ink); }

.page-title {
    font-size: clamp(30px, 4.2vw, 50px);
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}
.category-description { color: var(--text-soft); max-width: 62ch; margin: 0 0 28px; font-size: 16px; }

/* ===== 17. Chipy i toolbar ========================================= */
.subcategory-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    background: var(--surface);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-soft);
    transition: all 0.25s var(--ease);
}
.chip:hover, .chip-active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-ink);
    transform: translateY(-2px);
}

.listing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    padding: 15px 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    color: var(--text-soft);
    font-size: 14px;
}
.sort-form { display: flex; align-items: center; gap: 10px; }
.sort-form label { color: var(--text-dim); font-size: 13.5px; }
.sort-form select {
    padding: 9px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 13.5px;
    cursor: pointer;
}
.sort-form select:focus { outline: none; border-color: var(--accent); }

.empty-state {
    padding: 56px 24px;
    text-align: center;
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-lg);
    background: var(--surface);
    color: var(--text-dim);
    font-size: 15.5px;
}
.empty-state .btn { margin-top: 18px; }

/* ===== 18. Karta produktu ========================================== */
.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    margin-bottom: 48px;
}
.product-detail-img {
    position: relative;
    border-radius: var(--r-lg);
    background: linear-gradient(150deg, #FBF8F1, #F0EAD9);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.product-detail-img img { width: 100%; height: 100%; object-fit: contain; padding: 32px; }

.product-brand {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: 10px;
}
.product-detail-info h1 {
    font-size: clamp(25px, 3.2vw, 38px);
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}
.sku { color: var(--text-dim); font-size: 13px; margin-bottom: 20px; }

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 20px 0;
    margin-bottom: 6px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.product-detail-price .price-current { font-size: clamp(30px, 3.6vw, 40px); color: var(--accent-ink); }

.stock {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 18px 0;
    font-size: 14px;
    font-weight: 600;
}
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.in-stock { color: var(--ok); }
.stock.out-of-stock { color: var(--hot); }

.product-short-desc { color: var(--text-soft); font-size: 16px; line-height: 1.7; margin-bottom: 24px; }

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--surface);
}
.spec-table th, .spec-table td {
    text-align: left;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { color: var(--text-dim); font-weight: 500; width: 210px; background: var(--surface-2); }
.spec-table td { color: var(--text); font-weight: 500; }

.add-to-cart-form-detail { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.add-to-cart-form-detail input[type=number],
.qty-input {
    width: 78px;
    padding: 13px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}
.add-to-cart-form-detail input[type=number]:focus,
.qty-input:focus { outline: none; border-color: var(--accent); }

.product-description {
    padding: clamp(24px, 3vw, 36px);
    margin-bottom: 40px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}
.product-description p {
    color: var(--text-soft);
    white-space: pre-line;
    max-width: 72ch;
    line-height: 1.8;
    margin: 0;
}

/* ===== 19. Koszyk ================================================== */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 26px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}
.cart-table th {
    padding: 15px 18px;
    text-align: left;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.cart-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 14.5px;
    color: var(--text-soft);
}
.cart-table tr:last-child td { border-bottom: 0; }
.cart-product-cell { display: flex; align-items: center; gap: 14px; color: var(--text); font-weight: 500; }
.cart-product-cell img {
    width: 62px; height: 62px;
    object-fit: contain;
    padding: 6px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    flex: none;
}
.btn-remove {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-dim);
    font-size: 17px;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}
.btn-remove:hover { color: var(--hot); border-color: var(--hot); background: var(--hot-soft); }
.hidden-form { display: none; }
.cart-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

.cart-summary, .checkout-summary {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.cart-summary { max-width: 440px; margin-left: auto; }
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    font-size: 14.5px;
    color: var(--text-soft);
}
.cart-summary-total {
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--line-strong);
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums;
    font-size: 21px;
    font-weight: 500;
    color: var(--text);
}
.cart-summary-total :last-child { color: var(--accent-ink); }
.cart-summary .btn { margin-top: 20px; }

/* ===== 20. Zamówienie ============================================== */
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 40px);
    align-items: start;
    margin-bottom: 60px;
}
.checkout-form {
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.checkout-form label {
    margin: 16px 0 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-soft);
}
.form-hint { font-size: 13px; color: var(--text-dim); margin: 0 0 4px; }
.checkout-form input,
.checkout-form textarea,
.auth-form input,
.admin-form input, .admin-form select, .admin-form textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 14.5px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.checkout-form input::placeholder, .checkout-form textarea::placeholder { color: var(--text-dim); }
.checkout-form input:focus, .checkout-form textarea:focus, .auth-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(62, 90, 102, 0.12);
}
.checkout-form input:disabled { background: var(--surface-2); color: var(--text-dim); cursor: not-allowed; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-error { color: var(--hot); font-size: 12.5px; margin-top: 5px; }
.form-error-box {
    padding: 15px 18px;
    margin-bottom: 20px;
    border: 1px solid #F5C2C2;
    border-radius: var(--r-md);
    background: var(--hot-soft);
    color: #A61B1B;
    font-size: 14px;
}
.payment-note {
    padding: 15px 18px;
    margin: 20px 0;
    border: 1px solid var(--accent-line);
    border-radius: var(--r-md);
    background: var(--accent-soft);
    color: var(--text-soft);
    font-size: 13.5px;
}
.checkout-item-list { margin-bottom: 16px; }
.checkout-item-list li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--text-soft);
}

/* Zachęta do logowania w checkoucie */
.login-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 15px 20px;
    margin-bottom: 24px;
    border: 1px solid var(--accent-line);
    border-radius: var(--r-md);
    background: var(--accent-soft);
    color: var(--text-soft);
    font-size: 14.5px;
}
.login-prompt svg { stroke: var(--accent-ink); flex: none; }
.login-prompt a { color: var(--accent-ink); font-weight: 700; text-decoration: underline; }

/* ===== 21. Potwierdzenie zamówienia ================================ */
.order-confirmation { max-width: 760px; margin: 0 auto 80px; text-align: center; }
.order-confirmation h1 { color: var(--ok); font-size: clamp(28px, 4vw, 44px); }
.order-confirmation .cart-table { text-align: left; margin-top: 30px; }

/* ===== 22. Strony statyczne ======================================== */
.static-page { max-width: 800px; margin: 0 auto 80px; }
.static-page h2 { margin-top: 36px; font-size: 22px; }
.static-page p { color: var(--text-soft); line-height: 1.8; }

/* ===== 23. Logowanie i rejestracja ================================= */
.auth-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
    padding-top: clamp(36px, 5vw, 64px);
    padding-bottom: clamp(48px, 7vw, 88px);
}
.auth-card {
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}
.auth-card h1 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.01em; margin-bottom: 8px; }
.auth-lead { color: var(--text-soft); margin: 0 0 26px; font-size: 15.5px; }
.auth-form { display: flex; flex-direction: column; }
.auth-form label {
    margin: 16px 0 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-soft);
}
.auth-form .form-row label { margin-top: 0; }
.auth-form .btn { margin-top: 26px; }
.auth-switch {
    margin: 22px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 14.5px;
    color: var(--text-dim);
}
.auth-switch a { color: var(--accent-ink); font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }

.auth-aside { padding-top: clamp(0px, 2vw, 28px); }
.auth-aside h2 { font-size: 21px; margin-bottom: 22px; }
.auth-benefits { display: grid; gap: 18px; }
.auth-benefits li { display: flex; gap: 15px; align-items: flex-start; }
.auth-benefits svg {
    width: 38px; height: 38px;
    flex: none;
    padding: 9px;
    border-radius: var(--r-md);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    stroke: var(--accent-ink);
}
.auth-benefits strong { display: block; font-family: var(--font-body); font-weight: 600; font-size: 15px; }
.auth-benefits span { font-size: 14px; color: var(--text-dim); }

/* ===== 24. Panel klienta =========================================== */
.account-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.account-head .page-title { margin-bottom: 6px; }
.account-email { color: var(--text-dim); font-size: 14.5px; margin: 0; }

.account-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(24px, 3vw, 40px);
    align-items: start;
    margin-bottom: 70px;
}
.account-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    position: sticky;
    top: 100px;
}
.account-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--text-soft);
    transition: background 0.2s ease, color 0.2s ease;
}
.account-nav a svg { width: 18px; height: 18px; flex: none; }
.account-nav a:hover { background: var(--surface-2); color: var(--text); }
.account-nav a.is-active { background: var(--accent-soft); color: var(--accent-ink); }

.account-main { min-width: 0; }

.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--gap);
    margin-bottom: 40px;
}
.account-stat {
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}
.account-stat .stat-value {
    display: block;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 25px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--accent-ink);
}
.account-stat .stat-label { font-size: 13px; color: var(--text-dim); }

.account-section-title { font-size: clamp(21px, 2.6vw, 27px); margin: 0 0 18px; }
.account-main .form-hint { margin-bottom: 16px; }
.account-main .panel-form { margin-bottom: 44px; }

/* Historia zamówień */
.order-history { display: grid; gap: 12px; }
.order-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto auto auto auto;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    transition: border-color 0.25s ease, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.order-row:hover {
    border-color: var(--accent-line);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.order-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.order-number {
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--text);
}
.order-number:hover { color: var(--accent-ink); }
.order-date { font-size: 13px; color: var(--text-dim); }
.order-items { font-size: 13.5px; color: var(--text-dim); white-space: nowrap; }
.order-total {
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums;
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}

/* Statusy — po stronie klienta (admin ma własne w admin.css) */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}
.status-nowe         { background: var(--accent-2-soft); color: #1D4ED8; border-color: #C7DBFB; }
.status-w_realizacji { background: var(--warn-soft);     color: var(--warn); border-color: #F3DDB5; }
.status-wyslane      { background: var(--accent-soft);   color: var(--accent-ink); border-color: var(--accent-line); }
.status-zrealizowane { background: var(--ok-soft);       color: var(--ok); border-color: #B7E6D2; }
.status-anulowane    { background: var(--surface-2);     color: var(--text-dim); border-color: var(--line-strong); }

/* Szczegóły zamówienia na koncie */
.order-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.order-detail-head .account-section-title { margin-bottom: 4px; }
.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap);
    margin-bottom: 30px;
}
.panel {
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}
.order-detail-grid .panel { padding: 26px; }
.order-detail-grid h3 { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; margin-bottom: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.order-detail-grid p { color: var(--text-soft); font-size: 14.5px; line-height: 1.7; margin: 0 0 16px; }

/* ===== 25. Flash / toast =========================================== */
.cart-flash {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 0;
    padding: 15px 20px;
    border: 1px solid #B7E6D2;
    border-radius: var(--r-md);
    background: var(--ok-soft);
    color: var(--ok);
    font-weight: 600;
    font-size: 14.5px;
    animation: slideDown 0.45s var(--ease);
}
.account-main .cart-flash { margin: 0 0 24px; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: none; }
}

.to-top {
    position: fixed;
    right: 22px; bottom: 22px;
    z-index: 90;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    color: var(--text-soft);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.35s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--accent-ink); border-color: var(--accent); }
.to-top svg { width: 18px; height: 18px; stroke: currentColor; }

/* ===== 26. Responsywność =========================================== */
@media (max-width: 1080px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { order: -1; width: 100%; max-width: 340px; margin: 0 auto; }
    .float-tag { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .product-detail { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-aside { order: -1; }
    .account-layout { grid-template-columns: 1fr; }
    .account-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 880px) {
    .main-nav { display: none; }
    .nav-toggle { display: grid; }
    .search-form { order: 3; max-width: 100%; width: 100%; }
    .header-inner { flex-wrap: wrap; }
    .topbar-inner span:last-child { display: none; }
    .cart-link span.label, .account-link .label { display: none; }
    .cart-link, .account-link { padding: 11px 14px; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .cart-summary { max-width: none; margin-left: 0; }
    .order-row { grid-template-columns: 1fr auto; row-gap: 12px; }
    .order-row .order-items { display: none; }
    .order-row .link-arrow { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-cta .btn { width: 100%; }
    .hero-stats { gap: 24px; }
    .hero-stat { flex: 1 1 40%; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .product-card-body { padding: 14px; }
    .price-current { font-size: 19px; }
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
    .cart-table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
    .cart-table td { border: 0; padding: 8px 16px; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .account-stats { grid-template-columns: 1fr; }
}

/* ===== 27. Ograniczenie ruchu ====================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ===== 28. Druk ==================================================== */
@media print {
    body { background: #fff; }
    .site-header, .topbar, .site-footer, .to-top, .hero-aurora, .account-nav { display: none; }
}
