:root {
    --color-bg: #f4f6f8;
    --color-surface: #ffffff;
    --color-primary: #e07a5f;
    --color-primary-hover: #d0694e;
    --color-secondary: #3d405b;
    --color-accent: #81b29a;
    --color-text: #2b2d42;
    --color-muted: #6c757d;
    --color-border: #e2e8f0;
    --radius-lg: 12px;
    --radius-sm: 6px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: #fff3e1;
    color: var(--color-text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
/* --- NAGŁÓWEK --- */
.header {
    background-color: #c6a587;
    box-shadow: var(--shadow, 0 4px 15px rgba(0, 0, 0, 0.06));
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color:#c6a587;
}

/* Klikalne logo */
.header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-primary, #e07a5f);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
    position: relative;
    top: -15px;
}

.header__logo:hover {
    opacity: 0.85;
}

.header__logo-img {
    max-height:90px; /* Wysokość grafiki logo */
    width: auto;
    object-fit: contain;
}

/* Koszyk w prawym górnym rogu */
.header__cart {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-bg, #f4f6f8);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.header__cart:hover {
    background-color: #e9ecef;
}

.header__cart-count {
    background-color: var(--color-primary, #e07a5f);
    color: white;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
}

.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    flex: 1;
    width: 100%;
}

.view {
    display: none;
}

.view--active {
    display: block;
}

.view__title {
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card__image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* kwadrat – zdjęcia produktów nie są ucinane */
    overflow: hidden;
    background-color: #eee;
}

.product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
}

.product-card__badge--new { background-color: var(--color-accent); }
.product-card__badge--bestseller { background-color: var(--color-primary); }

.product-card__slider {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card__img--active { opacity: 1; }

.product-card__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.product-card__arrow:hover { background: rgba(255, 255, 255, 0.95); }
.product-card__arrow--prev { left: 8px; }
.product-card__arrow--next { right: 8px; }

.product-card__content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.product-card__desc {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-bottom: 1.25rem;
    flex: 1;
}

.product-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card__price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.btn {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}

.btn--primary { background-color: var(--color-primary); color: white; }
.btn--primary:hover { background-color: var(--color-primary-hover); }
.btn--success { background-color: var(--color-accent); color: white; }
.btn--success:hover { opacity: 0.9; }
.btn--copy { background-color: var(--color-secondary); color: white; font-size: 0.8rem; }
.btn--full { width: 100%; padding: 0.8rem; font-size: 1rem; }

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .cart-layout { grid-template-columns: 1fr; }

    .header__logo {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: var(--color-primary, #e07a5f);
        font-size: 1.5rem;
        font-weight: 700;
        cursor: pointer;
        transition: opacity 0.2s;
        text-decoration: none;
        position: relative;
        top: -5px;
    }

}
.cart-summary-box, .checkout-form {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.cart-items-list {
    list-style: none;
    margin: 1rem 0;
    max-height: 250px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 2px solid var(--color-secondary);
}

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; margin-bottom: 0.3rem; font-weight: 600; }
.form-group input { width: 100%; padding: 0.6rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 1rem; }
.form-checkboxes { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.checkbox-label { font-size: 0.85rem; color: var(--color-muted); }

.success-box {
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-box__title { color: var(--color-accent); margin-bottom: 1rem; }

.info-tiles { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.info-tile { background-color: var(--color-bg); padding: 1rem; border-radius: var(--radius-sm); display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.info-tile__label { font-size: 0.85rem; color: var(--color-muted); }
.info-tile__value-box { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.info-tile__value { font-size: 1.25rem; font-weight: 700; color: var(--color-secondary); }

/* --- NOWOCZESNA STOPKA --- */
.footer {
    background-color: #c6a587;
    color: #ffffff;
    padding: 2rem 1.5rem;
    margin-top: auto;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Trzy równe kolumny */
    align-items: center;
    gap: 1.5rem;
}

/* Układ elementów po lewej stronie */
.footer__col--left {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

.footer__item {
    font-size: 0.95rem;
    color: #e2e8f0;
}

/* Środkowa kolumna z logo PNG */
.footer__col--center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer__logo-img {
    max-height: 100px; /* Dopasuj wysokość logo według uznania */
    width: auto;
    object-fit: contain;
}

/* Prawa kolumna - podpis */
.footer__col--right {
    text-align: right;
    font-size: 0.85rem;
    color: #adb5bd;
}

/* --- RWD: Responsywność dla telefonów --- */
@media (max-width: 768px) {
    .footer__container {
        grid-template-columns: 1fr; /* Na telefonach kolumny ustawiają się jedna pod drugą */
        text-align: center;
        gap: 1.5rem;
    }

    .footer__col--left {
        text-align: center; /* Wyśrodkowanie danych po lewej na mobile */
    }

    .footer__col--right {
        text-align: center;
    }
}
/* --- PASEK POSTĘPU WYSYŁKI --- */
.shipping-progress-container {
    margin-bottom: 20px;
}

.progress-bar-bg {
    background-color: #e0e0e0;
    border-radius: 10px;
    height: 25px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 100%);
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.shipping-message {
    font-size: 14px;
    color: var(--color-muted);
    margin-top: 10px;
}

.shipping-message.success {
    color: #2e7d32;
    font-weight: 600;
}
.footer__copyright {
    font-size: 0.85rem;
    color: #ffffff;
    margin-top: 10px;
}
/* --- WYGLĄD ELEMENTÓW W KOSZYKU --- */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    gap: 1rem;
}

@media (max-width: 576px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
/* Styl bazowy przycisku zamówienia z płynną animacją */
.checkout-form .btn--success {
    background-color: #81b29a;
    transition: all 0.3s ease;
    transform: scale(1);
}

/* Styl, gdy wszystkie dane są poprawne (aktywny / gotowy) */
.checkout-form .btn--success.btn--ready {
    background-color: #2b9348; /* żywszy, głębszy zielony */
    transform: scale(1.03); /* lekkie powiększenie */
    box-shadow: 0 4px 12px rgba(43, 147, 72, 0.3);
}

/* ==========================================================================
   SEKCJA STATYSTYK (4 BLOKI NAD KOMENTARZAMI)
   ========================================================================== */
.stats-section {
    padding: 3rem 1.5rem 1rem;
    background-color: #fff3e1;
    width: 100%;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--color-surface, #ffffff);
    border: 2px solid #e6d5c1;
    border-bottom: 4px solid #c6a587;
    border-radius: 16px;
    padding: 2rem 1.25rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(61, 64, 91, 0.06);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 28px rgba(224, 122, 95, 0.16);
}

.stat-card__icon {
    font-size: 2.1rem;
    display: block;
    margin-bottom: 0.6rem;
}

.stat-card__number {
    font-size: clamp(1.7rem, 2.5vw, 2.2rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.15;
    margin-bottom: 0.4rem;
}

.stat-card__label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-secondary);
}

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

@media (max-width: 520px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* --- SEKCJA OPINII --- */
.testimonials-section {
    padding: 3rem 1.5rem 4rem;
    background-color: #fff3e1;
    overflow: hidden;
    width: 100%;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.testimonials-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--color-secondary, #3d405b);
}

.testimonials-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.testimonials-track {
    display: flex;
    width: max-content;
    /* Płynna pętla: dwie identyczne grupy kart, przesunięcie o dokładnie jedną grupę (-50%) */
    animation: scrollTestimonials 40s linear infinite;
}

.testimonials-group {
    display: flex;
    flex-shrink: 0;
    gap: 2rem;
    padding-right: 2rem; /* odstęp na styku grup = taki sam jak między kartami */
}

/* Zatrzymanie przewijania po najechaniu myszką (wygodne do czytania) */
.testimonials-slider:hover .testimonials-track {
    animation-play-state: paused;
}

.testimonial-card {
    background: var(--color-surface, #ffffff);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow, 0 4px 15px rgba(0, 0, 0, 0.06));
    width: 320px;
    flex-shrink: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--color-border, #e2e8f0);
}

.testimonial-stars {
    color: #f59e0b; /* Kolor gwiazdek */
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary, #e07a5f);
}

/* Klucz animacji przesuwania w bok */
@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsywność dla mniejszych ekranów */
@media (max-width: 768px) {
    .testimonial-card {
        width: 280px;
    }
    .testimonials-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}
/* --- MENU NAWIGACJI W NAGŁÓWKU --- */
.header__nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.5rem 1.75rem;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 1rem;
    padding: 0.4rem 0.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}
.header__nav a { white-space: nowrap; flex: 0 0 auto; }
/* gdy menu się mieści – wyśrodkowane, gdy nie – przewijane w osi X */
.header__nav a:first-child { margin-left: auto; }
.header__nav a:last-child { margin-right: auto; }
/* KOMPUTER: widoczny suwak pod menu – przesuwasz go kliknięciem lub kółkiem, bez przytrzymywania */
@media (min-width: 769px) {
    .header__nav { scrollbar-width: thin; scrollbar-color: #8a6a4d rgba(255,255,255,0.35); padding-bottom: 0.6rem; }
    .header__nav::-webkit-scrollbar { height: 8px; }
    .header__nav::-webkit-scrollbar-track { background: rgba(255,255,255,0.35); border-radius: 8px; }
    .header__nav::-webkit-scrollbar-thumb { background: #8a6a4d; border-radius: 8px; }
    .header__nav::-webkit-scrollbar-thumb:hover { background: #6f523a; }
}

.header__nav a {
    color: var(--color-secondary);
    font-weight: 600;
    text-decoration: none;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.header__nav a:hover,
.header__nav a[aria-current="page"] {
    border-bottom-color: var(--color-secondary);
}

a.header__cart {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 768px) {
    .header__container {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .header__nav {
        order: 3;
        width: 100%;
    }
}

/* --- PODSTRONY KATEGORII --- */
.page-intro {
    max-width: 640px;
    margin: -0.75rem 0 2rem;
    color: var(--color-muted);
}

/* --- PASEK PROMOCYJNY: WYSYŁKA ZA DARMO (zapętlony, płynny) --- */
.promo-bar {
    background-color: var(--color-secondary);
    color: #ffffff;
    overflow: hidden;
    white-space: nowrap;
}

.promo-bar__track {
    display: flex;
    width: max-content;
    /* przyspieszenie GPU = brak przycinania */
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    animation: promoScroll 45s linear infinite;
}

.promo-bar__group {
    display: flex;
    flex: 0 0 auto;
}

.promo-bar__item {
    flex: 0 0 auto;
    padding: 0.55rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Obie grupy są identyczne, więc przesunięcie o 50% = dokładnie jedna grupa (pętla bez skoku) */
@keyframes promoScroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .promo-bar__track { animation-duration: 120s; }
}

/* --- STOPKA: LINKI PRAWNE (prawy dolny róg) --- */
.footer__legal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.footer__legal a {
    color: #ffffff;
    font-size: 0.85rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.footer__legal a:hover { border-bottom-color: #ffffff; }

@media (max-width: 768px) {
    .footer__legal { align-items: center; }
}

/* --- LINKI W CHECKBOXACH --- */
.checkbox-label a { color: var(--color-primary); font-weight: 600; }

/* --- PODSTRONA TOPPERA --- */
.topper-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    margin: 0 auto;
}

.topper-card:hover { transform: none; }

.topper-card .product-card__image-wrapper {
    height: 100%;
    min-height: 420px;
}

.topper-card .product-card__content { padding: 2rem; }
.topper-card .product-card__title { font-size: 1.4rem; }
.topper-card .product-card__desc { flex: 0 0 auto; font-size: 0.95rem; }

.topper-warning {
    background-color: #fff3e1;
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-text);
}

.topper-options { margin-bottom: 0.5rem; }
.topper-hint { font-weight: 400; color: var(--color-muted); }
.topper-error { display: block; min-height: 1.1em; margin-top: 0.3rem; color: #dc2626; font-weight: 600; }

.topper-color-row { display: flex; align-items: center; gap: 0.6rem; }

.topper-color-row select {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: #ffffff;
}

.topper-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    flex-shrink: 0;
}

.topper-card .product-card__footer { margin-top: auto; padding-top: 1rem; }

@media (max-width: 768px) {
    .topper-card { grid-template-columns: 1fr; }
    .topper-card .product-card__image-wrapper { min-height: 300px; height: 300px; }
}

/* --- PODSTRONY PRAWNE (regulamin, polityka prywatności) --- */
.legal-page { max-width: 820px; }

.legal-card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    line-height: 1.7;
    color: #4b5563;
}

.legal-card h3 { color: var(--color-secondary); margin: 1.75rem 0 0.5rem; }
.legal-card h3:first-child { margin-top: 0; }
.legal-card p { margin-bottom: 0.75rem; }
.legal-card ul { margin: 0 0 0.75rem 1.4rem; }
.legal-card li { margin-bottom: 0.3rem; }
.legal-card a { color: var(--color-primary); font-weight: 600; }
.legal-todo { background: #fff3e1; padding: 0 0.3rem; border-radius: 4px; color: var(--color-secondary); font-weight: 600; }
.legal-updated { margin-top: 1.5rem; font-size: 0.85rem; color: var(--color-muted); }

@media (prefers-reduced-motion: reduce) {
    .testimonials-track { animation-duration: 120s !important; }
}
/* ==========================================================================
   SEKCJA HERO Z EFEKTEM PARALAKSY
   ========================================================================== */
.parallax-hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #241911;
    color: #ffffff;
    text-align: center;
    padding: 4rem 1.5rem;
}

.parallax-layer {
    position: absolute;
    inset: -15%;
    pointer-events: none;
    will-change: transform;
}

.parallax-layer--bg {
    background-image:
        linear-gradient(180deg, rgba(24, 16, 10, 0.58) 0%, rgba(28, 19, 12, 0.52) 50%, rgba(24, 16, 10, 0.68) 100%),
        url('grafika/tlo_baner.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.parallax-layer--orb-1 {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 122, 95, 0.22), transparent 70%);
    top: 5%;
    left: 8%;
    inset: auto;
}

.parallax-layer--orb-2 {
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 165, 135, 0.20), transparent 70%);
    bottom: -10%;
    right: 6%;
    inset: auto;
}

.parallax-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(20, 14, 9, 0.25) 0%, rgba(16, 11, 7, 0.62) 100%);
    pointer-events: none;
}

.parallax-hero__content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    will-change: transform;
}

.parallax-hero__eyebrow {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(24, 16, 10, 0.48);
    border: 1px solid rgba(244, 213, 184, 0.4);
    backdrop-filter: blur(6px);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: #f4d5b8;
    margin-bottom: 1.25rem;
}

.parallax-hero__title {
    font-size: clamp(2rem, 4.5vw, 3.3rem);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1.1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
}

.parallax-hero__subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: #f3ece4;
    max-width: 620px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.parallax-hero__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.parallax-hero__btn {
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(224, 122, 95, 0.4);
}

.parallax-hero__btn-outline {
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.75);
    background: rgba(24, 16, 10, 0.35);
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.parallax-hero__btn-outline:hover {
    background: #ffffff;
    color: var(--color-secondary);
}

/* ==========================================================================
   PASEK PROGÓW RABATOWYCH POD HERO
   ========================================================================== */
.tiers-banner {
    background: var(--color-secondary);
    color: #ffffff;
    padding: 0.85rem 1.5rem;
    border-bottom: 3px solid #c6a587;
}

.tiers-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.tiers-banner__title {
    font-weight: 700;
    color: #f4d5b8;
}

.tiers-banner__pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tiers-banner__pills span {
    background: rgba(255, 255, 255, 0.12);
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.tiers-banner__pills b {
    color: #81b29a;
}

/* ==========================================================================
   KARUZELA: NASZE BESTSELLERY (3 widoczne z 5, duże strzałki po bokach)
   ========================================================================== */
.bestsellers-section {
    margin: 1.5rem 0 3.5rem;
}

.bestsellers-header {
    text-align: center;
    margin-bottom: 2rem;
}

.bestsellers-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: 0.4rem;
}

.bestsellers-subtitle {
    color: var(--color-muted);
    font-size: 1rem;
}

.bestsellers-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bestsellers-viewport {
    overflow: hidden;
    width: 100%;
    padding: 0.5rem 0.25rem 1rem;
}

.bestsellers-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Dokładnie 3 karty widoczne na desktopie */
.bestseller-card {
    flex: 0 0 calc((100% - 3rem) / 3);
    background: var(--color-surface);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(61, 64, 91, 0.08);
    border: 2px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.bestseller-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-primary);
    box-shadow: 0 14px 30px rgba(224, 122, 95, 0.18);
}

.bestseller-card__img-box {
    position: relative;
    height: auto;
    aspect-ratio: 1 / 1; /* kwadrat – zdjęcia nie są ucinane */
    max-height: 360px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.bestseller-card__img-box .product-card__image-wrapper { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.bestseller-card__img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.bestseller-card:hover .bestseller-card__img-box img {
    transform: scale(1.05);
}

.bestseller-card__tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-secondary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    z-index: 2;
}

.bestseller-card__rank {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    z-index: 2;
}

.bestseller-card__body {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bestseller-card__name {
    font-size: 1.15rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.bestseller-card__desc {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 1.25rem;
    flex: 1;
}

.bestseller-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.bestseller-card__price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-secondary);
}

/* DUŻE, DOBRZE WIDOCZNE STRZAŁKI PO BOKACH */
.carousel-nav-btn {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(61, 64, 91, 0.28);
    transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
    z-index: 10;
}

.carousel-nav-btn:hover:not(:disabled) {
    background: var(--color-secondary);
    transform: scale(1.1);
}

.carousel-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.bestsellers-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
}

.bestseller-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.bestseller-dot.active {
    background: var(--color-primary);
    transform: scale(1.25);
}

@media (max-width: 980px) {
    .bestseller-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
    }
}

@media (max-width: 680px) {
    .bestseller-card {
        flex: 0 0 100%;
    }
    .carousel-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   KAFELKI KATEGORII NA STRONIE GŁÓWNEJ
   ========================================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.category-tile {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--color-secondary);
    border: 2px solid var(--color-border);
    box-shadow: var(--shadow);
    transition: transform 0.2s, border-color 0.2s;
}

.category-tile:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

.category-tile--accent {
    background: linear-gradient(135deg, #3d405b, #2b2d42);
    color: #ffffff;
    border-color: #3d405b;
}

.category-tile--accent p {
    color: #cbd5e1;
}

.category-tile__icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.6rem;
}

.category-tile h3 {
    margin-bottom: 0.35rem;
    font-size: 1.15rem;
}

.category-tile p {
    font-size: 0.88rem;
    color: var(--color-muted);
}

/* ==========================================================================
   KOSZYK: RABAT ILOŚCIOWY I KOD INFLUENCERA
   ========================================================================== */
.qty-discount-hint {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.promo-code-box {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 0.9rem;
    margin-bottom: 1rem;
}

.promo-code-box label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.45rem;
}

.promo-code-row {
    display: flex;
    gap: 0.5rem;
}

.promo-code-row input {
    flex: 1;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.promo-code-msg {
    font-size: 0.82rem;
    margin-top: 0.4rem;
    min-height: 1.1em;
}

.promo-code-msg--ok {
    color: #15803d;
    font-weight: 600;
}

.promo-code-msg--err {
    color: #dc2626;
    font-weight: 600;
}

.cart-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.cart-breakdown__row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--color-text);
}

.cart-breakdown__row--discount {
    color: #15803d;
}

/* ==========================================================================
   DOSTOSOWANIE DO TELEFONÓW (RWD MOBILE)
   Blok dopisany na końcu pliku. Desktop (powyżej 768px) wygląda jak dotychczas.
   Selektory z "body" mają wyższą specyficzność, dzięki czemu wygrywają
   także z blokami <style> wpisanymi w podstronach (swieta, naklejki, toppery, projekty).
   ========================================================================== */

/* --- Zasady ogólne --- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; min-height: 100vh; min-height: 100dvh; -webkit-tap-highlight-color: rgba(224, 122, 95, 0.2); }
img, video, canvas, svg { max-width: 100%; }

/* Siatka produktów: na ekranach węższych niż 280px nie wypycha strony w bok */
.products-grid { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }

/* Na ekranach dotykowych wyłączamy "przyklejone" efekty hover */
@media (hover: none) {
    .product-card:hover,
    .bestseller-card:hover,
    .category-tile:hover,
    .stat-card:hover { transform: none; }
    .bestseller-card:hover .bestseller-card__img-box img { transform: none; }
}

/* --- Tablety i telefony (do 768px) --- */
@media (max-width: 768px) {

    /* Nagłówek: mniejsze logo, jedna linia menu z przewijaniem w bok */
    .header__container { padding: 0.6rem 1rem; gap: 0.5rem; }
    .header__logo-img { max-height: 53px; }
    .header__cart { padding: 0.4rem 0.8rem; font-size: 0.9rem; }

    .header__nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.25rem 1.1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -1rem;
        padding: 0 1rem;
        width: calc(100% + 2rem);
    }
    .header__nav::-webkit-scrollbar { display: none; }
    .header__nav a {
        white-space: nowrap;
        flex: 0 0 auto;
        padding: 0.55rem 0.1rem;
        font-size: 0.95rem;
    }
    /* Gdy menu się mieści - wyśrodkowane, gdy nie - przewijane */
    .header__nav a:first-child { margin-left: auto; }
    .header__nav a:last-child { margin-right: auto; }

    .main-content { padding: 0 1rem; margin: 1.25rem auto; }
    .view__title { font-size: 1.4rem; margin-bottom: 1rem; }
    .products-grid { gap: 1.25rem; }

    /* Hero */
    .parallax-hero { min-height: 400px; padding: 3rem 1rem; }
    .parallax-hero__actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
    .parallax-hero__btn, .parallax-hero__btn-outline { display: block; text-align: center; padding: 0.9rem 1rem; }
    .parallax-hero__eyebrow { font-size: 0.7rem; letter-spacing: 0.08em; padding: 0.35rem 0.8rem; }

    /* Baner rabatów */
    .tiers-banner { padding: 0.75rem 1rem; }
    .tiers-banner__inner { gap: 0.6rem; font-size: 0.85rem; text-align: center; }
    .tiers-banner__pills { justify-content: center; gap: 0.4rem; }

    /* Bestsellery: karta na całą szerokość, strzałki NAKŁADANE na zdjęcie */
    .bestsellers-section { margin: 1rem 0 2.5rem; }
    .bestsellers-title { font-size: 1.6rem; }
    .bestsellers-subtitle { font-size: 0.92rem; }
    .bestsellers-carousel-wrapper { display: block; }
    .bestsellers-viewport { padding: 0.5rem 0 1rem; }
    .bestsellers-carousel-wrapper .carousel-nav-btn {
        position: absolute;
        top: 118px;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        border-width: 2px;
        opacity: 0.92;
    }
    .bestsellers-carousel-wrapper .carousel-nav-btn--prev { left: 0.4rem; }
    .bestsellers-carousel-wrapper .carousel-nav-btn--next { right: 0.4rem; }
    .bestsellers-carousel-wrapper .carousel-nav-btn:hover:not(:disabled) { transform: translateY(-50%); }
    .bestsellers-carousel-wrapper .carousel-nav-btn:disabled { opacity: 0.25; }
    .bestseller-dot { width: 14px; height: 14px; }
    .bestsellers-dots { gap: 0.75rem; }
    .bestseller-card__body { padding: 1.1rem; }

    /* Statystyki: 2 kolumny */
    .stats-section { padding: 2rem 1rem 0.5rem; }
    .stats-grid { gap: 0.75rem; }
    .stat-card { padding: 1.25rem 0.75rem; }
    .stat-card__icon { font-size: 1.7rem; }
    .stat-card__number { font-size: 1.5rem; }
    .stat-card__label { font-size: 0.85rem; }

    /* Opinie */
    .testimonials-section { padding: 2rem 1rem 3rem; }
    .testimonial-card { padding: 1.5rem; }

    /* Koszyk i formularz */
    .cart-layout { gap: 1.25rem; }
    .cart-summary-box, .checkout-form { padding: 1rem; }
    .cart-items-list { max-height: none; }
    .promo-code-row { flex-wrap: wrap; }
    .promo-code-row input { min-width: 0; flex: 1 1 140px; }
    .promo-code-row .btn { flex: 1 1 auto; }
    .checkbox-label input[type="checkbox"] { width: 20px; height: 20px; margin-right: 0.4rem; vertical-align: middle; }
    .checkbox-label { line-height: 1.6; }
    .btn { min-height: 44px; }
    .btn--full { min-height: 48px; }

    /* Ekran po zamówieniu */
    .success-box { padding: 1.5rem 1rem; }
    .info-tile__value-box { flex-wrap: wrap; gap: 0.5rem; }
    .info-tile__value { font-size: 1.1rem; word-break: break-word; }

    /* Stopka */
    .footer { padding: 1.5rem 1rem; }

    /* Strony prawne */
    .legal-card { padding: 1.25rem; }
    .legal-card h3 { font-size: 1.05rem; }

    /* Inputy 16px = iOS nie powiększa strony po kliknięciu w pole */
    input[type="text"], input[type="tel"], input[type="email"], input[type="number"],
    input[type="search"], textarea, select { font-size: 16px !important; }

    /* Toppery i naklejki (akordeon): rozwinięta karta nie może być ucinana */
    body .topper-card { grid-template-columns: minmax(0, 1fr); }
    body .topper-card.open .topper-body-wrapper { max-height: 3000px; }
    body .topper-thumb-box { width: 80px; height: 80px; border-radius: 14px; }
    body .topper-header { padding: 0.9rem 1rem; }
    body .topper-header-left { gap: 0.9rem; width: 100%; }
    body .topper-title-mini { font-size: 1.05rem; }
    body .topper-desc-mini { font-size: 0.82rem; }
    body .topper-body { padding: 1rem; }
    body .topper-left-col, body .topper-slider-container { min-height: 260px; }
    body .topper-slide { padding: 0.75rem; }
    body .slider-btn { width: 44px; height: 44px; }
    body .color-swatches { gap: 0.7rem; }
    body .color-swatch { width: 36px; height: 36px; }
    body .btn-topper-cart { min-height: 48px; }

    /* Dekoracje świąteczne: większe kółka kolorów i szuflada, która się nie ucina */
    body .product-card--expanded .product-card__swatches-drawer { max-height: 900px; }
    body .swatch-group__list { gap: 10px; }
    body .swatch-btn { width: 32px; height: 32px; }
    body .swatch-group__header { font-size: 0.85rem; }

    /* Własny projekt (wycena 3D) */
    body .upload-card { padding: 1rem; }
    body .dropzone { padding: 1.5rem 0.75rem; }
    body #canvas-container { height: 260px; }
    body .est { padding: 1rem; }
    body .est__price { font-size: 1.8rem; }
    body .file-list li { word-break: break-word; }
    body .color-swatch { padding: 0.6rem 0.9rem; }

    /* Panel admina: szerokie elementy przewijają się, a nie rozpychają strony */
    .admin-nav { gap: 0.5rem; }
    .admin-tab-btn { flex: 1 1 auto; padding: 0.6rem 0.8rem; }
    .box { padding: 1rem; overflow-x: auto; }
}

/* --- Małe telefony (do 520px) --- */
@media (max-width: 520px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .promo-bar__item { padding: 0.5rem 1.5rem; font-size: 0.82rem; }
    .parallax-hero__title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
    .product-card__footer { gap: 0.75rem; }
    .bestseller-card__img-box { max-height: 320px; }
    .categories-grid { gap: 0.9rem; }
    .category-tile { padding: 1.1rem; }
    body .two-inputs-row, body .est-grid2 { grid-template-columns: 1fr; }
}

/* --- Bardzo wąskie ekrany (do 340px) --- */
@media (max-width: 340px) {
    .stats-grid { grid-template-columns: 1fr; }
    .header__cart-total { display: none; }
}

/* Ruch ograniczony w ustawieniach systemu: zatrzymujemy pętle animacji */
@media (prefers-reduced-motion: reduce) {
    .promo-bar__track, .testimonials-track { animation: none !important; }
}

/* ==========================================================================
   PAGINACJA KATALOGU (Dekoracje świąteczne)
   ========================================================================== */
.catalog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 2.5rem 0 1rem;
    padding: 1rem 0;
}

.catalog-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.85rem;
    border-radius: 10px;
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
    cursor: pointer;
}

.catalog-pagination__btn:hover:not(.catalog-pagination__btn--disabled):not(.catalog-pagination__btn--current) {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.catalog-pagination__btn--current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    cursor: default;
}

.catalog-pagination__btn--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.catalog-pagination__info {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-top: 0.35rem;
}

@media (max-width: 520px) {
    .catalog-pagination__btn {
        min-width: 38px;
        height: 38px;
        font-size: 0.88rem;
        padding: 0 0.6rem;
    }
}

/* 💡 Lampki choinkowe – wiszą na dolnej krawędzi paska promocyjnego, nad treścią strony
   (tak jak dawniej: na stronie głównej zawisają nad zdjęciem, bez dodatkowego pasa) */
.fairy-lights {
    position: relative;
    height: 0;
    width: 100%;
    z-index: 50;
    pointer-events: none;
    line-height: 0;
}
.fairy-lights__row {
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
}
/* na pozostałych stronach treść zaczyna się pod lampkami, żeby nie najeżdżały na napisy
   (wysokość lampek ustawia lights.js w zmiennej --lights-h) */
.fairy-lights + *:not(.parallax-hero):not(:has(.parallax-hero)) {
    margin-top: calc(var(--lights-h, 70px) + 0.75rem);
}
.fairy-lights__strand {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    /* jasny obrys, żeby czarny przewód był widoczny także na ciemnym tle */
    filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.95));
}
.fairy-lights__strand img { user-select: none; -webkit-user-drag: none; }
.fairy-lights__off { display: block; width: 100%; height: 100%; }
.fairy-lights__bulb {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    filter: drop-shadow(0 0 5px rgba(255, 244, 150, 0.9));
}
.fairy-lights__bulb.is-on { opacity: 1; }
