/* ============================================================
   Przystań Pupila — redesign "natural"
   Paleta z logo: głęboka leśna zieleń + szałwia + krem/papier.
   Bez ikon — typografia i proporcje robią robotę. Mobile-first.
   ============================================================ */

:root {
    --forest-950: #16241b;
    --forest-900: #1d3325;
    --forest-800: #26402f;
    --forest-700: #2f4f3a;
    --forest-600: #3d654c;
    --forest-500: #4f7a5f;
    --sage-400: #7d9b84;
    --sage-300: #a8bfa9;
    --sage-200: #cddccb;
    --sage-100: #e7efe4;

    --cream: #f8f5ec;
    --cream-deep: #f1ecdd;
    --paper: #fbf9f3;
    --white: #ffffff;

    --ink: #22301f;
    --ink-soft: #48584a;
    --ink-muted: #7a8779;
    --line: #e4dfcd;
    --line-soft: #ede9da;

    --accent: #b0763c;
    --accent-soft: #e8d9c3;

    /* mapowanie na stare tokeny design.css — reszta komponentów dopasuje się sama */
    --mint-50: var(--paper);
    --mint-100: var(--sage-100);
    --mint-200: var(--sage-200);
    --mint-300: var(--sage-300);
    --mint-400: var(--sage-400);
    --mint-500: var(--forest-500);
    --mint-600: var(--forest-600);
    --mint-700: var(--forest-700);
    --mint-800: var(--forest-800);
    --mint-900: var(--forest-900);
    --cream-warm: var(--cream-deep);

    --bg: var(--paper);
    --bg-soft: var(--cream);
    --green: var(--forest-600);
    --green-dark: var(--forest-800);
    --green-light: var(--sage-200);
    --green-pale: var(--sage-100);
    --green-mid: var(--sage-400);
    --text: var(--ink);
    --text-muted: var(--ink-muted);
    --border: var(--line);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-pill: 999px;
    --shadow: 0 14px 40px rgba(29, 51, 37, 0.10);
    --shadow-sm: 0 4px 16px rgba(29, 51, 37, 0.07);
    --shadow-card: 0 2px 10px rgba(29, 51, 37, 0.05), 0 12px 32px rgba(29, 51, 37, 0.05);
    --font-heading: 'Fraunces', 'Georgia', serif;
    --font-body: 'Manrope', 'Segoe UI', sans-serif;
    --transition: 0.22s ease;
}

/* ---------- baza ---------- */
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15.5px;
    letter-spacing: 0.005em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--forest-900);
    letter-spacing: -0.015em;
}

.container { max-width: 1200px; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 1.5rem; } }

a { color: var(--forest-600); }
a:hover { color: var(--forest-800); }

::selection { background: var(--sage-200); color: var(--forest-900); }

/* ---------- przyciski ---------- */
.btn, .btn-small, .btn-outline, .btn-ghost, .btn-lg {
    font-family: var(--font-body);
    font-weight: 700;
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn, .btn-lg {
    background: var(--forest-800);
    color: #f5f2e8;
    border: none;
    box-shadow: 0 6px 18px rgba(29, 51, 37, 0.22);
}
.btn:hover, .btn-lg:hover {
    background: var(--forest-700);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(29, 51, 37, 0.28);
}
.btn:active { transform: translateY(0); }
.btn-outline {
    background: transparent;
    color: var(--forest-800);
    border: 1.5px solid var(--forest-600);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--forest-800);
    color: #f5f2e8;
    border-color: var(--forest-800);
}
.btn-small { padding: .55rem 1rem; font-size: .82rem; }

/* ---------- pasek ogłoszenia ---------- */
.announce-bar {
    background: var(--forest-900);
    color: #e9e4d3;
    font-size: .8rem;
    letter-spacing: 0.04em;
}
.announce-bar svg { display: none; }
.announce-bar a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }
.announce-bar a:hover { color: #fff; }

/* ---------- nagłówek ---------- */
.site-header {
    /* bez backdrop-filter — tworzy containing block i psuje position:fixed potomków
       (mobilne menu, backdrop) */
    background: rgba(251, 249, 243, 0.97);
    border-bottom: 1px solid var(--line-soft);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: none;
}
.nav-container { display: flex; align-items: center; gap: 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.logo-img { height: 56px; width: auto; border-radius: 50%; }
@media (min-width: 768px) { .logo-img { height: 64px; } }

.main-nav a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .92rem;
    color: var(--ink-soft);
    padding: .4rem .15rem;
    border-bottom: 2px solid transparent;
    transition: color .18s ease, border-color .18s ease;
}
.main-nav a:hover {
    color: var(--forest-900);
    border-bottom-color: var(--accent);
}

/* tekstowe linki zamiast ikon (koszyk / konto) */
.nav-text-link {
    display: inline-flex;
    align-items: baseline;
    gap: .35rem;
    font-weight: 700;
    font-size: .92rem;
    color: var(--forest-800);
    white-space: nowrap;
}
.nav-text-link .count {
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    padding: 0 .45em;
    line-height: 1.5;
}
.cart-badge { display: none; }

.nav-toggle span { background: var(--forest-800); }

/* ---------- stopka ---------- */
.site-footer {
    background: var(--paper);
    color: var(--forest-800);
    margin-top: 5rem;
    border-top: 1px solid rgba(64,84,58,.12);
}
.site-footer .container {
    padding-top: 2.2rem;
    padding-bottom: 2rem;
    display: grid;
    gap: .6rem;
}
.footer-brand { display: flex; align-items: center; justify-content: center; }
.footer-brand .logo-img { height: 64px; }
.footer-brand-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: #f2eee0;
    letter-spacing: -0.01em;
}
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; }
.footer-legal a { color: var(--forest-800); font-size: .88rem; }
.footer-legal a:hover { color: var(--moss-600, #4c7a33); }
.footer-bottom { font-size: .8rem; color: #6b7a66; text-align: center; border-top: 1px solid rgba(64,84,58,.15); padding-top: 1.4rem; }

/* ---------- hero ---------- */
.hero {
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(125,155,132,.20), transparent 60%),
        linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
    padding: 2.2rem 0 3rem;
}
.hero h1 {
    font-size: clamp(1.9rem, 7.2vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--forest-900);
}
.hero-tagline {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--accent);
    font-size: 1.12rem;
    margin: .4rem 0 .9rem;
}
.hero p { color: var(--ink-soft); max-width: 46ch; }
.hero-visual img {
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.hero-floating {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    color: var(--forest-800);
    font-weight: 700;
    font-size: .8rem;
}
.hero-floating svg { display: none; }
.hero-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.hero-list li {
    color: var(--ink-soft);
    font-weight: 600;
    font-size: .9rem;
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: .55rem;
}
.hero-list li svg { display: none; }
.hero-list li::before {
    content: "";
    position: absolute; left: 0; top: .52em;
    width: .45em; height: .45em;
    border-radius: 50%;
    background: var(--sage-400);
}

/* ---------- statystyki / trust ---------- */
.stats { background: var(--forest-900); }
.stats .stat-value { color: #f2eee0; font-family: var(--font-heading); font-weight: 600; }
.stats .stat-label { color: #9fb39c; font-size: .8rem; letter-spacing: .05em; }

.trust-strip { background: var(--cream); border-bottom: 1px solid var(--line-soft); }
.trust-strip .stars { display: none; }
.trust-item {
    color: var(--ink-soft);
    font-size: .85rem;
    font-weight: 600;
}
.trust-item strong { color: var(--forest-800); font-family: var(--font-heading); font-size: 1rem; }

/* ---------- sekcje ---------- */
.section-title {
    font-size: clamp(1.5rem, 4.5vw, 2.2rem);
    text-align: center;
}
.section-subtitle { color: var(--ink-muted); text-align: center; }
.section-soft { background: var(--cream); }
.section-cream { background: var(--cream-deep); }

/* "dlaczego warto" — bez ikon, typograficzne karty */
.feature-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; } }
.feature-item {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 1.4rem 1.3rem;
    box-shadow: var(--shadow-card);
    display: block;
}
.feature-icon { display: none; }
.feature-item h3 { font-size: 1.15rem; margin: 0 0 .45rem; }
.feature-item h3::before {
    content: "";
    display: block;
    width: 34px; height: 3px;
    border-radius: 3px;
    background: var(--accent);
    margin-bottom: .7rem;
}
.feature-item p { color: var(--ink-soft); font-size: .9rem; margin: 0; }

/* ---------- siatka produktów — 2 kolumny już na mobile ---------- */
.card-grid, .products-grid, .grid-products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: .8rem;
}
@media (min-width: 640px) { .card-grid, .products-grid, .grid-products { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }
@media (min-width: 1024px) { .card-grid, .products-grid, .grid-products { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; } }

.card {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-img-wrap { position: relative; background: var(--cream); }
.card-img img, .card-img {
    aspect-ratio: 1/1;
    object-fit: cover;
    width: 100%;
}
.card-body { padding: .85rem .85rem 1rem; display: flex; flex-direction: column; flex: 1; }
@media (min-width: 768px) { .card-body { padding: 1.1rem 1.15rem 1.25rem; } }

.card-rating { display: none; }

.card-title {
    font-family: var(--font-heading);
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 .4rem;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
@media (min-width: 768px) { .card-title { font-size: 1.06rem; } }

.card-price-row { display: flex; align-items: baseline; gap: .5rem; margin-top: auto; flex-wrap: wrap; }
.card-price { font-weight: 800; font-size: 1.05rem; color: var(--forest-800); margin: 0; }
.card-price-old { color: var(--ink-muted); text-decoration: line-through; font-size: .82rem; }

.card-badge {
    position: absolute; top: .55rem; left: .55rem;
    background: var(--accent);
    color: #fff;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .28rem .6rem;
    border-radius: 999px;
    z-index: 2;
}
.card-badge.new { background: var(--forest-600); }
.card-badge.promo { background: #a4442e; }

/* "dodaj do koszyka" — tekstowy przycisk zamiast ikonki */
.card-quick-add {
    position: absolute;
    right: .55rem; bottom: .55rem;
    width: auto;
    height: auto;
    padding: .5rem .8rem;
    border-radius: 999px;
    background: rgba(251,249,243,.95);
    color: var(--forest-800);
    border: 1px solid var(--line);
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    box-shadow: var(--shadow-sm);
}
.card-quick-add svg { display: none; }
.card-quick-add:hover { background: var(--forest-800); color: #f5f2e8; }
.card-quick-add::after { content: "+ Do koszyka"; }

.card-body .btn-small { margin-top: .7rem; }

/* ---------- breadcrumbs / nagłówki stron ---------- */
.breadcrumb {
    font-size: .82rem;
    color: var(--ink-muted);
    letter-spacing: .02em;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb .current { color: var(--forest-800); font-weight: 700; }

.page-title, .shop-title, h1 {
    color: var(--forest-900);
}

/* ---------- koszyk ---------- */
.cart-card, .cart-summary-card, .cart-item {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}
.cart-item-img img { border-radius: var(--radius-sm); }
.cart-item-price, .cart-summary-total { color: var(--forest-800); font-weight: 800; }
.cart-item-remove { color: #a4442e; }

/* ---------- checkout / formularze ---------- */
input, select, textarea {
    font-family: var(--font-body);
    border: 1.5px solid var(--line) !important;
    border-radius: var(--radius-sm) !important;
    background: var(--white);
}
input:focus, select:focus, textarea:focus {
    border-color: var(--forest-500) !important;
    box-shadow: 0 0 0 3px rgba(79, 122, 95, 0.15) !important;
    outline: none;
}

.delivery-banner {
    background: var(--sage-100);
    border: 1px solid var(--sage-200);
    border-radius: var(--radius);
    color: var(--forest-800);
}
.delivery-dot { background: var(--forest-500); }

/* ---------- strony treściowe ---------- */
.section p, .page-content p, .prose p { color: var(--ink-soft); }
.lead { font-size: 1.05rem; color: var(--ink-soft); }

/* ---------- auth ---------- */
.auth-card, .auth-box {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ---------- mobile nav ---------- */
@media (max-width: 900px) {
    .main-nav {
        background: var(--paper);
        border-left: 1px solid var(--line-soft);
    }
    .main-nav a {
        font-size: 1.05rem;
        padding: .8rem 0;
        border-bottom: 1px solid var(--line-soft);
    }
    .nav-login-btn {
        background: var(--forest-800);
        color: #f5f2e8 !important;
        border-radius: var(--radius-sm);
    }
    .nav-login-btn--outline {
        background: transparent;
        color: var(--forest-800) !important;
        border: 1.5px solid var(--forest-600);
    }
}

/* ---------- drobiazgi ---------- */
.btn.w-100, button.w-100 { width: 100%; }
.table { border-color: var(--line-soft); }
table th { font-family: var(--font-body); color: var(--ink-soft); font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }

/* ---------- homepage: kroki / opinie / zespół / kategorie / newsletter ---------- */
.steps-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; } }
.step-item {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
    box-shadow: var(--shadow-card);
}
.step-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    width: auto; height: auto;
    background: none;
    margin-bottom: .6rem;
}
.step-item h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
.step-item p { color: var(--ink-soft); font-size: .9rem; margin: 0; }

.reviews-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; } }
.review-card {
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
    box-shadow: var(--shadow-card);
}
.review-card .stars { color: var(--accent); letter-spacing: .15em; font-size: .85rem; display: block; margin-bottom: .7rem; }
.review-card p { color: var(--ink-soft); font-size: .92rem; font-style: italic; }
.review-card strong { color: var(--forest-800); font-size: .85rem; }

.team-ring { border: none; }
.team-avatar { border: 3px solid var(--cream); box-shadow: var(--shadow-sm); }
.team-ring-text h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
.team-ring-text p { color: var(--ink-soft); }

.category-pick {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-card);
}
.category-pick span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    text-shadow: 0 1px 12px rgba(0,0,0,.45);
}
.category-pick img { transition: transform .35s ease; }
.category-pick:hover img { transform: scale(1.04); }

.newsletter { background: var(--forest-900); }
.newsletter-icon { display: none; }
.newsletter h2 { color: #f2eee0; font-size: clamp(1.3rem, 4vw, 1.9rem); max-width: 560px; }
.newsletter-form input {
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.25) !important;
    color: #f5f2e8;
}
.newsletter-form input::placeholder { color: #a9b8a4; }
.newsletter-form input:focus { border-color: var(--sage-300) !important; box-shadow: none !important; }
.newsletter-form .btn { background: var(--accent); box-shadow: none; }
.newsletter-form .btn:hover { background: #9a6634; }

.chat-visual img { border-radius: var(--radius); box-shadow: var(--shadow); }
.card-text { color: var(--ink-muted); font-size: .82rem; margin: 0 0 .5rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- konto klienta ---------- */
.account-tabs a, .account-mobile-nav a { color: var(--ink-soft); font-weight: 600; }
.account-tabs a.active, .account-tabs a:hover { color: var(--forest-800); border-color: var(--accent); }

/* ---------- przycisk "Konto" w nav ---------- */
.nav-account-btn { background: none; border: none; cursor: pointer; padding: 0; font: inherit; color: var(--forest-800); }
.user-dropdown {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}
.user-dropdown a { color: var(--ink-soft); }
.user-dropdown a:hover { color: var(--forest-800); background: var(--cream); }
.user-dropdown .logout { color: #a4442e; }

/* ---------- mobile drobiazgi ---------- */
@media (max-width: 640px) {
    .announce-bar { text-align: center; }
    .section { padding: 2.2rem 0; }
    .card-body .btn-small { font-size: .78rem; padding: .5rem .7rem; }
    .team-ring { padding: 1.2rem 0; }
    .team-ring-text h2 { font-size: 1.25rem; }
}

/* ============================================================
   Część 2 — sklep, produkt, koszyk, checkout, auth, treści
   ============================================================ */

/* ---------- strona sklepu ---------- */
.shop-hero {
    background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
    padding: 2.2rem 0 1.6rem;
    border-bottom: 1px solid var(--line-soft);
}
.shop-hero .section-title { text-align: left; margin-bottom: .3rem; }
.shop-hero .section-subtitle { text-align: left; margin: 0; }

.shop-layout { display: block; }
@media (min-width: 1024px) {
    .shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
    .shop-sidebar { position: sticky; top: 110px; }
}

.shop-sidebar {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
}
.shop-sidebar h4 {
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin: 0 0 .7rem;
}
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list a {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    padding: .45rem .6rem;
    border-radius: 8px;
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 500;
}
.filter-list a:hover { background: var(--cream); color: var(--forest-900); }
.filter-list a.active { background: var(--sage-100); color: var(--forest-800); font-weight: 700; }
.filter-list a span { color: var(--ink-muted); font-size: .8rem; }
.price-filter { display: flex; align-items: center; gap: .5rem; }
.price-filter input { width: 100%; min-width: 0; padding: .5rem .6rem; font-size: .85rem; }
.price-filter .btn-small { flex-shrink: 0; }

.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem;
    margin-bottom: 1.2rem;
}
.shop-search { flex: 1 1 180px; position: relative; }
.shop-search input { width: 100%; padding: .65rem .9rem; }
.shop-count { color: var(--ink-muted); font-size: .82rem; margin-left: auto; }
.shop-sort select { padding: .6rem .8rem; font-size: .85rem; color: var(--ink-soft); }
.filter-toggle { font-size: .82rem; padding: .55rem 1rem; }
@media (min-width: 1024px) { .filter-toggle { display: none; } }

/* badge dostawy — bez emoji */
.card-badge.delivery-today {
    top: auto; bottom: .55rem; left: .55rem;
    background: var(--forest-800);
    color: #f5f2e8;
    border: none;
    font-size: .62rem;
}
.card-badge.oos-badge {
    background: #fff;
    color: #a4442e;
    border: 1px solid #e5c4bc;
}
.card-badge.dropship-badge {
    top: auto; bottom: .55rem; left: .55rem;
    background: #fff;
    color: #4a5d8a;
    border: 1px solid #d0dffc;
    font-size: .62rem;
}
.shop-sidebar .filter-group { padding: 1rem 1.1rem; }
.shop-sidebar .filter-group + .filter-group { border-top: 1px solid var(--line-soft); }
.shop-sidebar-header { display: none; }
@media (max-width: 1023px) {
    .shop-sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
}

.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2rem; max-width: 100%; }
.pagination a, .pagination .current {
    min-width: 2.4rem; height: 2.4rem;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    font-weight: 700; font-size: .9rem;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    background: var(--white);
    flex-shrink: 0;
}
.pagination a:hover { border-color: var(--forest-600); color: var(--forest-800); }
.pagination .current { background: var(--forest-800); color: #f5f2e8; border-color: var(--forest-800); }
@media (max-width: 480px) {
    .pagination { gap: .3rem; }
    .pagination a, .pagination .current { min-width: 2.1rem; height: 2.1rem; font-size: .82rem; }
}

/* ---------- strona produktu ---------- */
.product-detail { display: grid; gap: 1.6rem; }
@media (min-width: 900px) { .product-detail { grid-template-columns: 1.05fr 1fr; gap: 3rem; } }

.product-gallery img, .gallery-main img { border-radius: var(--radius); background: var(--cream); }
.product-gallery-arrow, .carousel-arrow {
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--forest-800);
    border-radius: 999px;
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
}
.product-gallery-arrow svg, .carousel-arrow svg { display: none; }
.product-gallery-prev::before, .carousel-prev::before { content: "‹"; font-size: 1.5rem; line-height: 1; }
.product-gallery-next::before, .carousel-next::before { content: "›"; font-size: 1.5rem; line-height: 1; }
.product-gallery-arrow:hover, .carousel-arrow:hover { background: var(--forest-800); color: #f5f2e8; }
.carousel-arrow.hidden { visibility: hidden; }

.product-title, .product-detail h1 { font-size: clamp(1.5rem, 5vw, 2.3rem); }
.product-brand { color: var(--ink-muted); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.product-price, .product-price-main { font-family: var(--font-heading); font-size: 1.9rem; color: var(--forest-800); font-weight: 600; }
.product-price-old, .card-price-old { color: var(--ink-muted); }
.product-discount {
    background: #a4442e; color: #fff;
    font-size: .72rem; font-weight: 800; letter-spacing: .05em;
    padding: .25rem .6rem; border-radius: 999px;
}

.feature-chip {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--sage-100);
    border: 1px solid var(--sage-200);
    color: var(--forest-800);
    border-radius: 999px;
    padding: .35rem .8rem;
    font-size: .78rem;
    font-weight: 700;
}
.feature-chip svg { display: none; }
.feature-chip.out-stock { background: #fbf1ee; border-color: #e5c4bc; color: #a4442e; }

.option-select select { width: 100%; padding: .7rem .9rem; }
.params-table { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.params-table td, .params-table th { padding: .65rem .9rem; border-bottom: 1px solid var(--line-soft); font-size: .88rem; }
.params-table tr:last-child td { border-bottom: none; }
.params-table td:first-child, .params-table th { color: var(--ink-muted); font-weight: 600; width: 40%; }

.product-add-form .btn-lg { width: 100%; }
.product-trust { border-top: 1px solid var(--line-soft); margin-top: 1.4rem; padding-top: 1.2rem; }
.product-trust svg, .product-secure svg, .product-help svg { display: none; }
.product-secure strong, .product-help strong { color: var(--forest-800); font-size: .85rem; }
.product-secure span, .product-help span { color: var(--ink-muted); font-size: .8rem; }
.payment-logo { font-weight: 800; letter-spacing: .03em; }

.delivery-banner-head svg, .delivery-list svg { display: none; }
.delivery-list li { color: var(--ink-soft); font-size: .86rem; }

.related-section-title { font-size: 1.4rem; margin-bottom: 1rem; }
.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn { width: 40px; height: 42px; background: var(--paper); border: none; font-size: 1.1rem; font-weight: 700; color: var(--forest-800); cursor: pointer; }
.qty-btn:hover { background: var(--sage-100); }
.qty-value { min-width: 44px; text-align: center; font-weight: 700; }
.qty-stepper.small .qty-btn { width: 34px; height: 34px; }

/* ---------- koszyk ---------- */
.cart-layout { display: grid; gap: 1.2rem; }
@media (min-width: 960px) { .cart-layout { grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; } }
.cart-item { display: flex; gap: .9rem; padding: .9rem; margin-bottom: .8rem; align-items: center; }
.cart-item-img img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius-sm); background: var(--cream); }
@media (min-width: 768px) { .cart-item { padding: 1.1rem 1.2rem; } .cart-item-img img { width: 92px; height: 92px; } }
.cart-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.cart-item-top h4 { font-family: var(--font-body); font-size: .92rem; font-weight: 700; margin: 0; }
.cart-item-top h4 a { color: var(--ink); }
.cart-item-desc { color: var(--ink-muted); font-size: .78rem; margin: .2rem 0 0; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: .6rem; flex-wrap: wrap; }
.cart-item-unit { display: block; font-size: .74rem; color: var(--ink-muted); font-weight: 500; }
.cart-item-price strong { font-size: 1rem; }
.cart-item-remove {
    background: none; border: none; cursor: pointer;
    color: var(--ink-muted); font-size: .78rem; font-weight: 600;
    text-decoration: underline; text-underline-offset: 3px;
    padding: .2rem 0;
}
.cart-item-remove:hover { color: #a4442e; }
.cart-summary-card { padding: 1.3rem 1.25rem; position: sticky; top: 110px; }
.cart-summary-card h3 { margin-top: 0; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: .9rem; padding: .4rem 0; color: var(--ink-soft); }
.cart-summary-muted { color: var(--ink-muted); font-size: .82rem; }
.cart-summary-total {
    display: flex; justify-content: space-between;
    border-top: 1px solid var(--line); margin-top: .6rem; padding: .9rem 0;
    font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600;
}
.cart-trust { border-top: 1px solid var(--line-soft); margin-top: 1.2rem; padding-top: 1rem; font-size: .82rem; }
.cart-trust .product-payment, .cart-trust .product-secure, .cart-trust .product-help { margin-bottom: .8rem; display: flex; gap: .6rem; align-items: flex-start; }
.cart-trust .product-help { color: inherit; }

/* ---------- checkout ---------- */
.checkout-grid { display: grid; gap: 1.4rem; }
@media (min-width: 960px) { .checkout-grid { grid-template-columns: 1fr 360px; gap: 2.4rem; align-items: start; } }
.delivery-option, .payment-option {
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: .9rem 1.1rem;
    background: var(--white);
    margin-bottom: .7rem;
    display: flex; gap: .8rem; align-items: flex-start;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.delivery-option:hover, .payment-option:hover { border-color: var(--sage-300); }
.delivery-option input:checked ~ * , .delivery-option:has(input:checked) {
    border-color: var(--forest-600);
}
.checkout-grid section, .checkout-card {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 1.3rem 1.25rem;
    box-shadow: var(--shadow-card);
    margin-bottom: 1rem;
}
.delivery-opt-title { font-weight: 700; color: var(--forest-800); font-size: .95rem; }

/* ---------- auth ---------- */
.auth-card, .auth-box, .auth-panel {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}
.auth-visual, .auth-side { background: var(--forest-900); border-radius: var(--radius); }
.auth-visual svg, .auth-side svg, .auth-card svg, .auth-box svg { display: none; }
.auth-visual h2, .auth-side h2 { color: #f2eee0; }
.auth-visual p, .auth-side p, .auth-visual li, .auth-side li { color: #b9c6b4; }

/* ---------- strony treściowe — ukryj ikony ozdobne ---------- */
.contact-item svg, .contact-info svg, .contact-card svg,
.delivery-method svg, .delivery-step svg, .delivery-zone svg,
.store-info svg, .store-card svg, .info-item svg,
.feature-box svg, .about-feature svg { display: none; }

/* ---------- footer link do aplikacji ---------- */
.footer-legal a { text-decoration: none; }

/* ---------- porządek na mobile ---------- */
@media (max-width: 640px) {
    .shop-toolbar { gap: .5rem; }
    .shop-sort select { max-width: 150px; }
    .cart-item { gap: .7rem; }
    .cart-item-price { text-align: right; }
    .checkout-grid section { padding: 1.1rem 1rem; }
}

/* ============================================================
   Część 3 — strony treściowe + auth (realne klasy z szablonów)
   ============================================================ */

/* hero treściowe: o-nas / kontakt / dostawa / sklep stacjonarny */
.about-hero, .contact-hero, .delivery-hero, .store-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--radius) var(--radius);
}
.about-hero-bg img, .contact-hero-bg img, .delivery-hero-bg img, .store-hero-bg img { filter: saturate(.85); }
.about-hero-overlay, .contact-hero-overlay, .delivery-hero-overlay, .store-hero-overlay,
.about-cta-overlay, .delivery-final-cta-overlay {
    background: linear-gradient(120deg, rgba(22,36,27,.82) 15%, rgba(29,51,37,.45) 60%, rgba(29,51,37,.15));
}
.about-hero-eyebrow, .contact-hero-eyebrow, .delivery-hero-eyebrow, .store-hero-eyebrow,
.about-eyebrow, .delivery-concept-eyebrow, .delivery-why-eyebrow, .delivery-heavy-eyebrow,
.delivery-final-cta-eyebrow, .store-intro-eyebrow, .dietitian-eyebrow {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent-soft);
}
.about-hero-title { font-size: clamp(1.9rem, 6vw, 3rem); color: #f5f2e8; }
.about-hero-lead, .delivery-lead, .store-lead { color: #d9e0d2; }
.section .about-eyebrow, .section .delivery-concept-eyebrow, .section .delivery-why-eyebrow,
.section .delivery-heavy-eyebrow, .section .store-intro-eyebrow, .section .dietitian-eyebrow { color: var(--accent); }

/* karty kontakt / dostawa / sklep / o-nas */
.contact-card, .delivery-opt, .delivery-step, .about-card, .offer-item,
.heavy-item, .store-info-block, .delivery-zone, .dietitian-card {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}
.contact-icon, .field-icon, .heavy-icon, .offer-number svg,
.contact-card svg, .delivery-opt svg, .delivery-step svg, .delivery-zone svg,
.store-info-block svg, .about-card svg, .offer-item svg, .dietitian-card svg { display: none; }

.contact-card-body, .delivery-opt-body, .about-card-body { color: var(--ink-soft); }
.contact-link { color: var(--forest-700); font-weight: 700; }
.delivery-opt-title { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: var(--forest-900); }
.delivery-opt-desc, .delivery-text { color: var(--ink-soft); font-size: .9rem; }

.offer-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--accent);
    font-weight: 600;
    width: auto; height: auto; background: none;
}
.step-num {
    font-family: var(--font-heading);
    color: var(--accent);
    font-weight: 600;
}
.delivery-checklist li, .store-checklist li { color: var(--ink-soft); }
.delivery-checklist li svg, .store-checklist li svg { display: none; }

.delivery-final-cta-card { border-radius: var(--radius); overflow: hidden; }
.delivery-final-cta-actions .btn-outline { border-color: #e9e4d3; color: #f5f2e8; }
.delivery-final-cta-actions .btn-outline:hover { background: #f5f2e8; color: var(--forest-900); }

.page-header h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }

/* ---------- auth split layout ---------- */
.auth-split { display: grid; gap: 1.4rem; }
@media (min-width: 900px) { .auth-split { grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; } }
.auth-card { padding: 1.6rem 1.4rem; }
@media (min-width: 768px) { .auth-card { padding: 2.2rem 2rem; } }
.auth-subtitle { color: var(--ink-muted); font-size: .9rem; }
.logo-mark { border-radius: 50%; }
.input-wrap input { width: 100%; padding: .75rem .9rem; }
.password-field { position: relative; }
.pw-toggle {
    position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--ink-muted);
    font-size: .78rem; font-weight: 700; cursor: pointer;
}
.pw-toggle svg { display: none; }
.forgot-link { color: var(--forest-600); font-size: .82rem; font-weight: 600; }
.auth-form-wrap .alert {
    background: #fbf1ee; border: 1px solid #e5c4bc; color: #a4442e;
    border-radius: var(--radius-sm); padding: .7rem .9rem; font-size: .85rem;
}
.auth-visual { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }

/* ---------- checkout summary ---------- */
.summary-card {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 1.3rem 1.25rem;
    box-shadow: var(--shadow-card);
    position: sticky; top: 110px;
}
.summary-item { display: flex; gap: .8rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line-soft); }
.summary-item img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--cream); }
.summary-item-info { flex: 1; font-size: .85rem; color: var(--ink-soft); }
.summary-item-price { font-weight: 700; color: var(--forest-800); font-size: .9rem; }
.summary-tot, .summary-total { display: flex; justify-content: space-between; font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: var(--forest-900); padding-top: .8rem; }

/* ---------- konto klienta ---------- */
.account-card, .order-card, .loyalty-card-wrap {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

/* ---------- poprawki auth: tekstowy pw-toggle, padding bez ikon ---------- */
.pw-toggle { padding: .2rem .5rem; }
.pw-toggle svg { display: none; }
.pw-toggle::after { content: "Pokaż"; }
.pw-toggle.on::after { content: "Ukryj"; }
.input-wrap input { padding-left: .9rem !important; }
.input-wrap input:last-child { padding-right: 3.2rem !important; }

/* ---------- ikony koszyk/konto w nav (jedyne ikony — UX sklepu) ---------- */
.nav-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--forest-800);
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.nav-icon svg { width: 21px; height: 21px; }
.nav-icon:hover { background: var(--sage-100); color: var(--forest-900); }
@media (min-width: 901px) { .nav-tools { display: flex; align-items: center; gap: .3rem; } }
.user-menu .nav-icon { padding: 0; }

.cart-badge {
    display: inline-flex !important;
    position: absolute;
    top: 2px; right: 0;
    min-width: 17px; height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.nav-mobile-actions { display: flex; align-items: center; gap: .2rem; }

/* ---------- hero sklepu — zdjęcie jak przed redesignem ---------- */
.shop-hero {
    background: url('/images/shop-hero.png?v=1') no-repeat center/cover;
    border-bottom: none;
    min-height: 30vh;
    padding: 3.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.shop-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(22, 36, 27, 0.5);
    z-index: 0;
}
.shop-hero .container { position: relative; z-index: 1; }
.shop-hero .section-title {
    text-align: center;
    color: #f5f2e8;
    text-shadow: 0 2px 16px rgba(0,0,0,.4);
    font-size: clamp(1.9rem, 5vw, 3rem);
    margin-bottom: .4rem;
}
.shop-hero .section-subtitle {
    text-align: center;
    color: rgba(245, 242, 232, .92);
    margin: 0 auto;
    text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

/* ---------- homepage mobile: naprawa rozjeżdżających się sekcji ---------- */
@media (max-width: 640px) {
    /* team-ring: absolutny pierścień awatarów nakładał się na tekst —
       na mobile zamieniamy na prosty rządek pod tekstem */
    .team-ring { min-height: 0; display: block; padding: 0; }
    .team-ring-text { max-width: 100%; margin-bottom: 1.4rem; }
    .team-avatar {
        position: static;
        display: inline-block;
        width: 52px; height: 52px;
        margin: 0 .25rem .35rem;
        transform: none !important;
        top: auto; right: auto; bottom: auto; left: auto;
    }

    /* chat-bubble wystawały poza obraz — ukrywamy na mobile */
    .chat-bubble { display: none; }

    /* statystyki 2×2 */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem .8rem; }
    .stat-value { font-size: 1.7rem; }
    .stat-label { font-size: .78rem; }

    /* trust-strip ciaśniej */
    .trust-strip { padding: 1.4rem 0; }
    .trust-strip .container { gap: .5rem 1.2rem; }

    /* kategorie — równe 2 kolumny */
    .category-picks, .category-picks-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
    .category-pick-large img { height: 110px; }
    .category-pick-large span { padding: .7rem; font-size: .85rem; }

    /* oddechy sekcji */
    .section { padding: 2.4rem 0; }
    .hero { padding: 1.4rem 0 2.4rem; }
    .stats { padding: 1.8rem 0; }

    /* karuzele produktowe na produkcie — przewijane poziomo */
    .carousel-track { scroll-behavior: smooth; }
}

/* ---------- mobile nav: ikony koszyk/konto w górnym pasku ---------- */
/* utility mobile-only/desktop-only muszą wygrywać ze stylami .nav-icon */
.nav-icon.mobile-only { display: none; }
@media (max-width: 900px) {
    .nav-icon.mobile-only { display: inline-flex; }
    .nav-tools.desktop-only { display: none; }
    .nav-mobile-actions { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
    .nav-mobile-actions .nav-icon { width: 40px; height: 40px; }
    .nav-mobile-actions .nav-icon svg { width: 20px; height: 20px; }
    /* sidebar: same linki + przyciski logowania na dole — żadnych ikon */
    .main-nav .nav-icon, .main-nav .cart-badge { display: none; }
}
@media (min-width: 901px) {
    .nav-mobile-actions .mobile-only { display: none; }
}

/* ---------- usługi — przebudowane karty (mobile-first, bez ikon) ---------- */
.service-list { display: grid; gap: .8rem; }
.service-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow-card);
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-left-color: var(--forest-600); }
.service-icon { display: none; }
.service-card h3 { font-size: 1.12rem; margin: 0 0 .35rem; }
.service-body p { color: var(--ink-soft); font-size: .88rem; margin: 0; }
.service-meta { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.service-price {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .98rem;
    color: var(--forest-800);
    background: var(--sage-100);
    padding: .3rem .85rem;
    border-radius: 999px;
    white-space: nowrap;
}
.service-cta { color: var(--accent); font-weight: 800; font-size: .82rem; letter-spacing: .04em; white-space: nowrap; }
.service-card:hover .service-cta { color: var(--forest-800); }
@media (min-width: 768px) {
    .service-list { max-width: 860px; margin: 0 auto; }
    .service-card { flex-direction: row; align-items: center; justify-content: space-between; padding: 1.35rem 1.6rem; }
    .service-meta { flex-direction: column; align-items: flex-end; gap: .45rem; text-align: right; }
}

/* ---------- jak to działa — oś czasu ---------- */
.steps-timeline {
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.tl-step { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.15rem 0; }
.tl-step + .tl-step { border-top: 1px dashed var(--line); }
.tl-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    min-width: 2.7rem;
    font-variant-numeric: lining-nums;
    line-height: 1.15;
}
.tl-body h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.tl-body p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
@media (min-width: 768px) {
    .steps-timeline { max-width: none; flex-direction: row; }
    .tl-step { flex: 1; flex-direction: column; gap: .5rem; padding: 0 1.6rem; }
    .tl-step + .tl-step { border-top: none; border-left: 1px dashed var(--line); }
    .tl-num { font-size: 2.3rem; }
}

/* ---------- hero: przyciski obok siebie też na mobile ---------- */
.hero-actions { display: flex; flex-direction: row !important; flex-wrap: wrap; gap: .7rem; }
.hero-actions .btn, .hero-actions .btn-lg, .hero-actions .btn-outline { flex: 0 0 auto; padding: .85rem 1.4rem; }
@media (max-width: 380px) {
    .hero-actions .btn-lg, .hero-actions .btn-outline { padding: .8rem 1.05rem; font-size: .88rem; }
}

/* ---------- wyszukiwarka sklepu — zwykłe pole, bez pigułki ---------- */
.shop-search {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    gap: 0;
    max-width: 320px;
}
.shop-search input {
    border: 1.5px solid var(--line) !important;
    border-radius: var(--radius-sm) !important;
    background: var(--white);
    padding: .6rem .85rem;
    font-size: .88rem;
    width: 100%;
}
.shop-search input:focus {
    border-color: var(--forest-500) !important;
    box-shadow: 0 0 0 3px rgba(79,122,95,.15) !important;
}
.shop-sort select { border-radius: var(--radius-sm); }
@media (max-width: 900px) { .shop-search { max-width: none; } }

/* ---------- usługi — karuzela swipe na mobile ---------- */
@media (max-width: 767px) {
    .service-list {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: .8rem;
        /* karty zaglądają z brzegu — podpowiedź, że można przesuwać */
        margin-left: -1rem;
        margin-right: -1rem;
        padding: .25rem 1rem 1.1rem;
        scrollbar-width: none;
    }
    .service-list::-webkit-scrollbar { display: none; }
    .service-card {
        flex: 0 0 84%;
        max-width: 330px;
        scroll-snap-align: start;
        /* nic nie wykracza poza kartę */
        min-width: 0;
        overflow: hidden;
    }
    .service-meta { flex-wrap: wrap; }
    .service-price, .service-cta { white-space: normal; }
}
@media (min-width: 768px) {
    /* desktop zostaje lista — bez karuzeli */
    .service-list { overflow: visible; }
}

/* ---------- sklep: mniejsze odstępy hero → toolbar ---------- */
.shop-section { padding-top: 1.4rem !important; }
@media (max-width: 767px) {
    .shop-hero { min-height: 0; padding: 2.2rem 0; }
    .shop-section { padding-top: 1.1rem !important; }
    .shop-toolbar { margin-bottom: 1rem; }
}
@media (min-width: 768px) {
    .shop-hero { min-height: 26vh; padding: 2.8rem 0; }
}

/* ---------- sklep mobile: ciaśniejszy toolbar ---------- */
@media (max-width: 900px) {
    .shop-toolbar { flex-direction: column; align-items: stretch; gap: .5rem; margin-top: 0; }
    .shop-toolbar .filter-toggle { order: 2; }
    .shop-count { margin-left: 0; order: 3; }
    .shop-sort { order: 4; }
    .shop-sort select { width: 100%; max-width: none; }
}

/* ---------- sklep toolbar: bez space-between (duża dziura) ---------- */
.shop-toolbar { justify-content: flex-start; gap: .6rem; }
.shop-toolbar .shop-sort { margin-left: auto; }
@media (max-width: 900px) {
    .shop-toolbar .shop-sort { margin-left: 0; }
    .shop-hero { padding: 1.6rem 0; }
    .shop-section { padding-top: .8rem !important; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .shop-hero { padding: 2.2rem 0; min-height: 22vh; }
}

/* ---------- sklep: hero z powrotem + ostateczne odstępy toolbar ---------- */
.shop-hero { min-height: 30vh; padding: 3.5rem 0; }
@media (max-width: 900px) { .shop-hero { min-height: 24vh; padding: 2.4rem 0; } }

/* żadne dziecko toolbara nie może mieć własnego marginesu */
.shop-toolbar, .shop-toolbar > * { margin-top: 0; }
.shop-search, .filter-toggle, .shop-count, .shop-sort { margin: 0; }
.shop-search { flex: 0 1 320px; }
@media (max-width: 900px) {
    .shop-search { flex: none; width: 100%; }
    .shop-toolbar { gap: .5rem; }
}
@media (min-width: 901px) {
    .shop-toolbar { flex-wrap: nowrap; }
}

/* ---------- hero tagline: Dancing Script wszędzie, 1 linia na mobile ---------- */
.hero .hero-tagline {
    font-family: 'Dancing Script', cursive !important;
    font-style: normal;
    font-weight: 700;
    font-size: min(1.8rem, 7.2vw);
    white-space: nowrap;
    color: var(--accent);
    margin: .5rem 0 .9rem;
}

/* ---------- sidebar sklepu na desktopie: reset drawerowych właściwości ---------- */
@media (min-width: 1024px) {
    .shop-sidebar {
        position: sticky;
        top: 110px;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        width: auto;
        max-width: none;
        height: auto;
        max-height: calc(100vh - 130px);
        overflow-y: auto;
        z-index: auto;
        padding: 0;
        border: 1px solid var(--line-soft);
        border-left: 1px solid var(--line-soft);
        border-radius: var(--radius);
        scrollbar-width: thin;
    }
    .shop-sidebar::-webkit-scrollbar { width: 6px; }
    .shop-sidebar::-webkit-scrollbar-thumb { background: var(--line-soft); border-radius: 3px; }
    .shop-sidebar-backdrop { display: none; }
    .shop-sidebar-header { display: none; }
}

/* ---------- badge "Dostawa dziś" — lewy górny róg (nie zasłania koszyka) ---------- */
.card-badge.delivery-today {
    top: .55rem;
    bottom: auto;
    left: .55rem;
}
/* gdy obok jest badge Promocja/Nowość — dostawa schodzi niżej */
.card-badge:not(.delivery-today) ~ .card-badge.delivery-today {
    top: 2.1rem;
}

/* ---------- Filtry sklepu: zwijane podkategorie ---------- */
.shop-sidebar .cat-node > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.shop-sidebar .cat-node > summary::-webkit-details-marker { display: none; }
.shop-sidebar .cat-node > summary > a { flex: 1; }
.shop-sidebar .cat-node .cat-caret {
    flex: none;
    font-size: .95em;
    color: var(--ink-muted);
    transition: transform .2s;
}
.shop-sidebar .cat-node[open] > summary .cat-caret { transform: rotate(90deg); }
.shop-sidebar .cat-children {
    list-style: none;
    margin: .15rem 0 .3rem .45rem;
    padding: 0 0 0 .8rem;
    border-left: 2px solid var(--line-soft);
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

/* ---------- strona produktu: padding boczny (rośnie z szerokością) ---------- */
.container.product-page { padding: 0 clamp(1.2rem, 3vw, 2rem); }

/* ---------- strona produktu: padding wewnątrz kontenerów opisu ---------- */
.product-tabs summary { padding: 1.1rem 1.6rem; padding-right: 2.6rem; }
.product-tabs summary::after { right: 1.4rem; }
.product-tabs .product-long-desc { padding: .4rem 1.6rem 1.8rem; }
.product-tabs .product-long-desc ul { padding-left: 1.4rem; margin: .6rem 0; }
.product-tabs .product-long-desc li { margin: .25rem 0; }
.product-tabs .product-long-desc p { margin: .5rem 0; }
.product-tabs .params-table { margin: .4rem 1.6rem 1.5rem; width: calc(100% - 3.2rem); }

/* ---------- hero: H1 (SEO) + mniejszy podtytuł ---------- */
.hero p.hero-subheading {
    font-family: var(--font-heading);
    font-size: clamp(.95rem, 2.8vw, 1.35rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--forest-900);
    max-width: none;
    margin: .1rem 0 .7rem;
}

/* ============================================================
   Auth — redesign: elegancki split, bez ikon
   ============================================================ */
.auth-split {
    display: grid;
    grid-template-columns: 1fr;
    min-height: calc(100vh - 150px);
}
@media (min-width: 900px) {
    .auth-split {
        grid-template-columns: minmax(480px, 46%) 1fr;
        min-height: calc(100vh - 96px);
    }
}

/* --- kolumna formularza --- */
.auth-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem 4rem;
    background: var(--paper);
}
.auth-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}
.auth-card .logo-mark {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.auth-card .logo-img {
    height: 84px;
    border-radius: 50%;
    box-shadow: 0 6px 22px rgba(22, 36, 27, .14);
}
.auth-card h1 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    letter-spacing: -.01em;
    color: var(--forest-900);
    text-align: center;
    margin: 0 0 .45rem;
}
.auth-card .auth-subtitle {
    text-align: center;
    color: var(--ink-muted);
    font-size: .93rem;
    margin: 0 0 1.8rem;
}

/* --- pola --- */
.auth-card .form label {
    display: block;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--forest-700);
    margin: 1.15rem 0 .45rem;
}
.auth-card .form label .label-hint {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    color: var(--ink-muted);
}
.password-field {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.password-field label { margin: 1.15rem 0 .45rem; }
.forgot-link {
    font-size: .8rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}
.forgot-link:hover { text-decoration: underline; }

.auth-card .input-wrap input,
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"],
.auth-card input[type="tel"] {
    width: 100%;
    padding: .82rem 1rem;
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-card .input-wrap input:last-child { padding-right: 4rem !important; }
.auth-card input:focus {
    outline: none;
    border-color: var(--forest-500);
    box-shadow: 0 0 0 3px rgba(79, 122, 95, .16);
}
.auth-card input::placeholder { color: #a9b2a6; }

.pw-toggle {
    position: absolute;
    right: .35rem;
    top: 50%;
    transform: translateY(-50%);
    padding: .35rem .6rem;
    border: none;
    border-radius: 6px;
    background: none;
    font: inherit;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--ink-muted);
    cursor: pointer;
}
.pw-toggle:hover { color: var(--forest-700); background: var(--cream); }
.pw-toggle svg { display: none; }
.pw-toggle::after { content: "Pokaż"; }
.pw-toggle.on::after { content: "Ukryj"; }

/* checkbox + 2 kol */
.auth-card .checkbox-row {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    margin-top: 1.2rem;
    font-size: .85rem;
    color: var(--ink-soft);
}
.auth-card .checkbox-row input { margin-top: .2rem; accent-color: var(--forest-700); }
.auth-card .checkbox-row a { color: var(--forest-700); font-weight: 700; }
.auth-card .form-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 .8rem;
}

/* --- przycisk + linki pod formularzem --- */
.auth-card .form .btn {
    margin-top: 1.5rem;
    width: 100%;
    padding: .88rem 1rem;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .03em;
    border-radius: var(--radius-sm);
    background: var(--forest-800);
}
.auth-card .form .btn:hover { background: var(--forest-900); transform: translateY(-1px); }
.auth-card > .text-center.mt,
.auth-card p.text-center {
    margin-top: 1.9rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-soft);
    font-size: .9rem;
    color: var(--ink-soft);
    text-align: center;
}
.auth-card p.text-center a {
    color: var(--forest-700);
    font-weight: 800;
    text-decoration: none;
}
.auth-card p.text-center a:hover { text-decoration: underline; }
.auth-card p.text-center .btn {
    display: block;
    text-align: center;
}

/* --- alerty --- */
.auth-card .alert {
    border-radius: var(--radius-sm);
    padding: .8rem 1rem;
    font-size: .88rem;
    margin: 0 0 .3rem;
}
.auth-form-wrap .alert-error,
.auth-card .alert-error {
    background: #fbf1ee;
    border: 1px solid #e5c4bc;
    color: #a4442e;
}
.auth-card .alert-success {
    background: #eef4ec;
    border: 1px solid #c4d6c0;
    color: var(--forest-800);
}
.reset-link-label { font-size: .8rem; color: var(--ink-muted); margin-bottom: .2rem; }
.reset-link { word-break: break-all; font-size: .85rem; color: var(--forest-700); }

/* --- kolumna wizualna --- */
.auth-visual {
    position: relative;
    overflow: hidden;
    display: none;
    border-radius: 0;
    background: var(--forest-950);
}
@media (min-width: 900px) { .auth-visual { display: block; } }
.auth-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, rgba(22, 36, 27, .25) 0%, rgba(22, 36, 27, .5) 55%, rgba(22, 36, 27, .85) 100%);
}
.auth-visual-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 3rem clamp(2rem, 4.5vw, 3.5rem);
}
.auth-visual-eyebrow {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin: 0 0 .9rem;
}
.auth-visual h2 {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    line-height: 1.18;
    color: #f5f2e8;
    margin: 0 0 1.7rem;
    max-width: 26ch;
}
.auth-visual-points {
    list-style: none;
    margin: 0;
    padding: 0;
}
.auth-visual-points li {
    border-top: 1px solid rgba(245, 242, 232, .22);
    padding: .85rem 0;
    font-size: .9rem;
    font-weight: 500;
    color: #d9e0d2;
}
.auth-visual-points li:last-child { padding-bottom: 0; }

/* koszyk — pozycja ponad stan (domówienie) */
.cart-item-backorder {
    color: #b91c1c;
    font-size: .8rem;
    font-weight: 600;
    margin: .35rem 0 .3rem;
}

/* ---------- sklep: przycisk „Dostawa dziś" + większy caret kategorii ---------- */
.shop-toolbar-actions { display: flex; gap: .5rem; align-items: center; }
.shop-today-btn {
    font-size: .82rem;
    padding: .55rem 1rem;
    white-space: nowrap;
}
.shop-today-btn.on {
    background: var(--forest-800);
    border-color: var(--forest-800);
    color: #f5f2e8;
}
/* caret podkategorii — wyraźny cel dotyku */
.shop-sidebar .cat-node .cat-caret {
    font-size: 1.1rem;
    padding: .15rem .55rem;
    margin-right: -.3rem;
    border-radius: 6px;
    color: var(--forest-600);
}
.shop-sidebar .cat-node > summary:hover .cat-caret { background: var(--cream); color: var(--forest-800); }

/* ---------- karta produktu: badge'i w stosie, bez nakładania ---------- */
.card-badges {
    position: absolute;
    top: .55rem;
    left: .55rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    z-index: 3;
    max-width: 75%;
}
.card-badges .card-badge {
    position: static;
    top: auto;
    left: auto;
    bottom: auto;
    transform: none;
    white-space: normal;
    text-align: left;
    line-height: 1.15;
}

/* produkt — ostrzeżenie „domówimy" przy ilości ponad stan */
.backorder-warn {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.4;
    padding: .6rem .9rem;
    margin: .5rem 0 0;
    max-width: 34rem;
}

/* ---------- mobilne menu: drawer na poziomie <body> (pewny position:fixed) ---------- */
.mobile-nav { display: none; }

@media (max-width: 900px) {
    /* desktopowa nawigacja chowana — obsługuje ją .mobile-nav */
    .nav-container .main-nav { display: none; }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 86vw);
        height: 100vh;
        height: 100dvh;
        background: var(--paper);
        border-left: 1px solid var(--line-soft);
        box-shadow: -12px 0 44px rgba(22, 36, 27, .18);
        padding: 0 1.4rem 1.4rem;
        z-index: 9999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        transform: translateX(2.5rem);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform .32s cubic-bezier(.4, 0, .2, 1), opacity .25s, visibility .32s;
    }
    body.nav-open .mobile-nav {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    /* blokada scrolla strony przy otwartym menu */
    body.nav-open { overflow: hidden; }

    .mobile-nav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: .9rem 0;
        border-bottom: 1px solid var(--line-soft);
        margin-bottom: .4rem;
        position: sticky;
        top: 0;
        background: var(--paper);
        z-index: 1;
    }
    .mobile-nav-head .logo-img { height: 44px; }
    .mobile-nav-close {
        background: none;
        border: none;
        font-size: 1.9rem;
        line-height: 1;
        color: var(--ink-soft);
        cursor: pointer;
        padding: .3rem .5rem;
    }
    .mobile-nav-close:hover { color: var(--forest-900); }

    .mobile-nav > a {
        display: block;
        font-weight: 700;
        font-size: 1.05rem;
        color: var(--ink-soft);
        padding: .95rem .2rem;
        border-bottom: 1px solid var(--line-soft);
        text-decoration: none;
    }
    .mobile-nav > a:hover { color: var(--forest-900); }
    .mobile-nav .nav-mobile-bottom {
        display: flex;
        flex-direction: column;
        gap: .8rem;
        margin-top: auto;
        padding-top: 1.3rem;
    }
    .mobile-nav-backdrop { z-index: 9998; }
}
@media (min-width: 901px) {
    .mobile-nav, .mobile-nav-backdrop { display: none; }
}

/* ---------- mobile nav: większe logo + wyżej i większy przycisk login ---------- */
@media (max-width: 900px) {
    .mobile-nav-head { padding: 1.1rem 0; }
    .mobile-nav-head .logo-img { height: 62px; }
    .mobile-nav .nav-mobile-bottom { margin-top: 0; padding-top: 1.1rem; }
    .mobile-nav .nav-login-btn {
        font-size: 1rem;
        font-weight: 800;
        padding: .85rem 1.4rem;
        border-radius: 12px;
        min-width: 200px;
    }
}

/* ===== Powiadomienie o dostępności (karta produktu niedostępnego) ===== */
.stock-notify {
    background: #faf8f3;
    border: 1px solid #ece5d5;
    border-radius: 14px;
    padding: 1.05rem 1.2rem;
    margin: .6rem 0;
}
.stock-notify-head {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #92400e;
    font-size: .98rem;
}
.stock-notify-txt {
    margin: .55rem 0 0;
    font-size: .9rem;
    line-height: 1.55;
    color: #6b7a6e;
}
.stock-notify-btn {
    margin-top: .8rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: #2d6a4f;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: .62rem 1.35rem;
    font-size: .9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.stock-notify-btn:hover {
    background: #235c43;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(45, 106, 79, .28);
}
.stock-notify-form {
    margin-top: .75rem;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.stock-notify-form input {
    flex: 1;
    min-width: 210px;
    padding: .62rem .95rem;
    border: 1px solid #d9d3c3;
    border-radius: 999px;
    font-size: .92rem;
    font-family: inherit;
    background: #fff;
}
.stock-notify-form input:focus {
    outline: none;
    border-color: #2d6a4f;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, .14);
}
.stock-notify-form .stock-notify-submit { margin-top: 0; }
.stock-notify-ok {
    margin: .55rem 0 0;
    color: #2d6a4f;
    font-weight: 600;
    font-size: .92rem;
}
.stock-notify-err {
    margin: .55rem 0 0;
    color: #b91c1c;
    font-size: .88rem;
}

/* ===== Pasek „kod aktywowany" po kliknięciu ?kod= ===== */
.kod-notice {
    padding: .55rem 0;
    font-size: .88rem;
    line-height: 1.4;
}
.kod-notice--ok {
    background: #eaf4ec;
    color: #235c43;
    border-bottom: 1px solid #cfe4d4;
}
.kod-notice--login {
    background: #fdf3e3;
    color: #8a5a11;
    border-bottom: 1px solid #f0dcb8;
}
.kod-notice a { color: inherit; font-weight: 700; text-decoration: underline; }
