/* --- 1. KONFIGURACJA I ZMIENNE --- */
:root {
    --lumi-blue: #c5d1db;      /* Ten błękit z Canvy */
    --lumi-beige: #f9f5d7;     /* Tło strony */
    --lumi-dark: #2c3e50;      /* Kolor tekstu */
    --lumi-white: #ffffff;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}


body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--lumi-blue);
    color: var(--lumi-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo, .accent-quote {
    font-family: 'Playfair Display', serif;
}

/* --- 2. NAWIGACJA --- */
nav {
    --nav-bg: rgba(197, 209, 219, 0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(44, 62, 80, 0.15);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background 260ms ease, border-color 260ms ease;
}
.logo {
    font-size: 1.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav ul a {
    text-decoration: none;
    color: var(--lumi-dark);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    transition: var(--transition);
}

nav ul a:hover {
    opacity: 0.6;
}

/* --- 3. HERO SECTION --- */
.hero {
    min-height: 100vh;
    background-color: var(--lumi-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 8% 90px;
}

.hero-content {
    max-width: 720px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
    transform: translateY(-16px);

    padding: 16px 0 32px;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 6px;
}

.hero-content p {
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.hero-embed {
    position: absolute;
    left: 50%;
    top: 44%;
    transform: translate(-50%, -50%) rotate(-6deg);
    width: min(760px, 120%);
    height: auto;
    display: block;
    opacity: 0.20;
    filter: saturate(0.95) contrast(0.98) blur(0.15px);
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.55) 58%, rgba(0,0,0,0) 78%);
    mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.55) 58%, rgba(0,0,0,0) 78%);
}


.hero-content h1,
.hero-content p,
.hero-content .btn-main {
    position: relative;
    z-index: 2;
}
.btn-main {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--lumi-dark);
    color: var(--lumi-dark);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: var(--transition);
}

.btn-main:hover {
    background: var(--lumi-dark);
    color: white;
}
/* --- 4. DELIKATNE PRZEJŚCIA KOLORÓW + SEKCJE --- */

#home {
    position: relative;
}
#home::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 220px;
    background: linear-gradient(to bottom, transparent 30%, #f4f4f4 100%);
    pointer-events: none;
    z-index: 1;
}

#products {
    position: relative;
}
#products::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent 30%, var(--lumi-blue) 100%);
    pointer-events: none;
    z-index: 1;
}

#about {
    position: relative;
    overflow: visible; /* Upewnij się, że gradient nie jest wycinany */
}

#about::after {
    content: "";
    position: absolute;
    bottom: -1px; /* Przesunięcie o 1px w dół, żeby nie było widać luki */
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent 0%, #f4f4f4 100%) !important;
    pointer-events: none;
    z-index: 10; /* Wysoki z-index, żeby był NAD gridem na desktopie */
}

.section {
    padding: 120px 8%;
    scroll-margin-top: 110px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

#about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
}

.intro-text {
    font-weight: 500;
    margin-bottom: 20px;
    color: #444;
}

.accent-quote {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 30px 0;
    padding-left: 20px;
    border-left: 1px solid #aebbc7;
    font-style: italic;
    line-height: 1.3;
}

.lumi-img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 100px 10px 100px 10px;
    position: relative;
    z-index: 2;
}


/* --- 5. SKLEP I KARTY PRODUKTÓW --- */
.gray-bg { 
    background: #f4f4f4; 
}




#products .container > h2 {
    text-align: center;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.shop-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 14px;
}


/* --- 5B. KARUZELA PRODUKTOW --- */
.shop-carousel {
    position: relative;
    margin-top: 22px;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 92px;
}

.shop-carousel::before,
.shop-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 36px;
    width: 92px;
    pointer-events: none;
    z-index: 3;
}

.shop-carousel::before {
    left: 0;
    background: linear-gradient(to right, rgba(244, 244, 244, 0.98), rgba(244, 244, 244, 0));
}

.shop-carousel::after {
    right: 0;
    background: linear-gradient(to left, rgba(244, 244, 244, 0.98), rgba(244, 244, 244, 0));
}

.shop-container.carousel-viewport {
    display: block;
    overflow: hidden;
    width: 100%;
    margin-top: 0;
}

.carousel-track {
    display: flex;
    transition: transform 420ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 6px;
}

.carousel-slide .product-card {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    border-radius: 22px;
    padding: 28px 28px 30px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(44, 62, 80, 0.10);
    box-shadow: 0 24px 70px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.carousel-slide .product-card button {
    width: min(360px, 100%);
    margin: 6px auto 0;
    padding: 14px 22px;
    border-radius: 999px;
    border: 1px solid rgba(44, 62, 80, 0.22);
    background: rgba(197, 209, 219, 0.75);
    color: var(--lumi-dark);
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-slide .product-card button:hover {
    background: rgba(44, 62, 80, 0.92);
    color: #fff;
}


.carousel-slide .product-card h3 {
    margin: 4px 0 0;
    font-size: 1.7rem;
    letter-spacing: 0.5px;
}

.carousel-slide .product-card .price {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 300;
    opacity: 0.82;
}.carousel-slide .product-img-placeholder {

    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 340px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(174, 187, 199, 0.18), rgba(249, 249, 249, 0.95));
    border: 1px solid rgba(44, 62, 80, 0.10);
}


.shop-carousel .product-card:hover {
    transform: none;
    box-shadow: 0 30px 90px rgba(0,0,0,0.08);
}
.carousel-btn {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(44, 62, 80, 0.18);
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--lumi-dark);
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    transition: transform 160ms ease, background 220ms ease, color 220ms ease, opacity 220ms ease;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.05);
    background: rgba(44, 62, 80, 0.92);
    color: white;
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.98);
}

.carousel-btn:focus-visible {
    outline: 2px solid rgba(44, 62, 80, 0.45);
    outline-offset: 3px;
}

.carousel-btn:disabled {
    opacity: 0.28;
    cursor: default;
    box-shadow: none;
}

.carousel-btn.prev { left: 22px; }
.carousel-btn.next { right: 22px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 18px;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: 0;
    background: rgba(44, 62, 80, 0.22);
    cursor: pointer;
    padding: 0;
    transition: width 220ms ease, background 220ms ease, opacity 220ms ease;
}

.carousel-dot[aria-current="true"] {
    width: 22px;
    background: rgba(44, 62, 80, 0.70);
}

@media (max-width: 640px) {
    .shop-carousel {
        padding: 0 12px;
    }
    .shop-carousel::before, .shop-carousel::after {
        width: 22px;
    }
    .carousel-btn {
        width: 32px;
        height: 32px;
    }
    .carousel-btn.prev { left: -20px; }
    .carousel-btn.next { right: -20px; }
    .carousel-slide .product-card {
        max-width: 100%;
        padding: 22px;
        border-radius: 20px;
        gap: 12px;
    }

    .carousel-slide .product-img-placeholder {
        aspect-ratio: 1 / 1;
        max-height: 420px;
        min-height: 240px;
    }

    }

@media (hover: hover) and (pointer: fine) {
    .shop-carousel .carousel-btn {
        opacity: 0;
    }
    .shop-carousel:hover .carousel-btn,
    .shop-carousel .carousel-btn:focus-visible {
        opacity: 1;
    }
}
.product-card {
    background: var(--lumi-white);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.product-img-placeholder {
    width: 100%;
    height: 350px;
    background: #f9f9f9;
    margin-bottom: 20px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    display: flex;
}

.product-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--crop-x, 50%) var(--crop-y, 45%);
    display: block;
}

.price {
    font-size: 1.2rem;
    margin: 15px 0;
    font-weight: 300;
}

.product-card button {
    width: 100%;
    background: var(--lumi-blue);
    border: none;
    padding: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.product-card button:hover {
    background: var(--lumi-dark);
    color: white;
}
#cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff4d4d;
    color: white;
    font-size: 11px;
    line-height: 1;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    margin-left: 8px;
    transform: translateY(-2px);
}

.nav-cart .cart-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-cart .cart-icon {
    line-height: 1;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lumi-dark);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    z-index: 2000;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; bottom: 0; }
    to { opacity: 1; bottom: 30px; }
}

/* --- STOPKA (teraz dużo niższa i kompaktowa) --- */
footer {
    padding: 0px 2% 33px;
    text-align: center;
    background: #f4f4f4;
    border-top: 1px solid rgba(44, 62, 80, 0.12);
    color: var(--lumi-dark);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

footer a {
    color: var(--lumi-dark);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid var(--lumi-dark);
    transition: 0.3s;
}

footer a:hover {
    opacity: 0.6;
}

/* --- 8. STYLIZACJA STRONY KOSZYKA --- */
.cart-page {
    background-color: var(--lumi-beige);
    min-height: 100vh;
    padding-top: 150px;
}

.cart-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.cart-item-info span {
    color: #888;
    font-size: 0.9rem;
}

.remove-btn {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.2s;
}

.remove-btn:hover {
    transform: scale(1.2);
}

.cart-summary {
    margin-top: 40px;
    text-align: right;
}

.cart-summary h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.btn-order {
    background-color: var(--lumi-dark);
    color: white;
    padding: 15px 40px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-order:hover {
    background-color: var(--lumi-blue);
    color: var(--lumi-dark);
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
    color: var(--lumi-dark);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* --- 9. RESPONSYWNOSC --- */
img { max-width: 100%; height: auto; display: block; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(44, 62, 80, 0.25);
    color: var(--lumi-dark);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
}

@media (max-width: 900px) {
    #products.section {
        padding-top: 68px;
    }

    html {
        scroll-padding-top: 90px;
    }
    #home::after, #products::after, #about::after {
        height: 110px;
        bottom: -1px;
    }
    #home::after {
        background: linear-gradient(to bottom, transparent 35%, #f4f4f4 100%);
    }
    #products::after {
        background: linear-gradient(to bottom, transparent 35%, var(--lumi-blue) 100%);
    }
    #about::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 150px; /* Wysokość mgiełki */
        background: linear-gradient(to bottom, transparent 0%, #f4f4f4 100%);
        pointer-events: none;
        z-index: 1;
    }

    nav {
        position: fixed;
        background: var(--nav-bg, rgba(197, 209, 219, 0.88));
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        padding: 16px 6%;
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        gap: 16px;
        justify-content: flex-start;
        min-height: 64px;
    }
    .logo {
        font-size: 1.3rem;
        letter-spacing: 1px;
    
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 10px;
    
        margin-left: auto;
        flex-shrink: 0;
        letter-spacing: 1px;
        padding: 10px 12px;
    }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 16px;
        padding: 0 8%;
        background: var(--lumi-white);
        border-bottom: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
    }
    nav.nav-open .nav-menu {
        max-height: 70vh;
        padding: 16px 8%;
        border-bottom: 1px solid rgba(44, 62, 80, 0.12);
    }
    .hero {
        min-height: 100vh;
        padding: 120px 6% 70px;
    }
    .hero-content {
        transform: translateY(-8px);
    }
    .hero-content p {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }
    .section {
        padding: 80px 6%;
    }
    #about .container {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .about-text h2 {
        font-size: clamp(2.2rem, 7vw, 3.2rem);
        margin-bottom: 18px;
    }
    .accent-quote {
        font-size: 1.4rem;
    }
    .lumi-img {
        margin: 0 auto;
        max-width: 520px;
    }
}

@media (max-width: 640px) {
    nav {
        padding: 16px 6%;
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    nav ul a {
        font-size: 0.8rem;
    }
    .shop-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 22px;
    }
    .product-img-placeholder {
        height: 260px;
    }
}

@media (max-width: 420px) {
    .hero-embed {
        width: 140%;
    }
    .shop-container {
        grid-template-columns: 1fr;
    }
    .hero-content {
        padding-left: 6%;
        padding-right: 6%;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto;
        transition: none !important;
        animation: none !important;
    }
}

footer p {
    margin: 6px 0;
}


/* --- 11. PRODUKT (PODSTRONA) --- */
.product-link {
    color: inherit;
    text-decoration: none;
}

.product-link:focus-visible {
    outline: 2px solid rgba(44, 62, 80, 0.45);
    outline-offset: 4px;
    border-radius: 10px;
}

.product-back {
    display: inline-block;
    margin-bottom: 22px;
    color: rgba(44, 62, 80, 0.85);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.product-back:hover {
    opacity: 0.75;
}

.product-shell {
    max-width: 1100px;
}

/* Przejście ze strony produktu do stopki */
/* Celujemy w konkretne ID na stronie produktu */
#products.product-section {
    position: relative;
    background: var(--lumi-blue); /* Upewniamy się, że tło jest niebieskie */
}

#products.product-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent 0%, #f4f4f4 100%) !important;
    pointer-events: none;
    z-index: 10; /* Zwiększyłem z-index, żeby nic go nie zasłoniło */
}

.product-detail {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 44px;
    align-items: start;
}

.product-gallery-main {
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(44, 62, 80, 0.10);
    box-shadow: 0 24px 70px rgba(0,0,0,0.06);
    aspect-ratio: 1 / 1;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Zmieniamy z cover na contain */
    background: #f9f9f9; /* Opcjonalnie: tło, jeśli zdjęcie jest węższe niż ramka */
    display: block;
}

.product-gallery-empty {
    padding: 80px 20px;
    text-align: center;
    color: rgba(44, 62, 80, 0.60);
}

.product-thumbs {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 10px;
}

.product-thumb {
    border: 1px solid rgba(44, 62, 80, 0.12);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}

.product-thumb[aria-current="true"] {
    border-color: rgba(44, 62, 80, 0.35);
    box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}

.product-thumb img {
    width: 100%;
    height: 84px; /* Możesz to zwiększyć, jeśli chcesz większe miniatury */
    object-fit: contain; /* To jest klucz: pokazuje CAŁE zdjęcie wewnątrz ramki */
    background: rgba(0, 0, 0, 0.03); /* Delikatne tło, żeby było widać obrys miniatury */
    display: block;
    object-position: center; /* Centruje zdjęcie w ramce */
}

.product-info {
    padding-top: 8px;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4vw, 3.1rem);
    line-height: 1.05;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.15rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.82;
    margin-bottom: 18px;
}

.product-desc {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(44, 62, 80, 0.10);
    border-radius: 18px;
    padding: 18px 18px;
    line-height: 1.75;
}

.product-accordion {
    margin-top: 8px;
    border-top: 1px solid rgba(44, 62, 80, 0.16);
}

.product-acc-item {
    border-bottom: 1px solid rgba(44, 62, 80, 0.16);
}

.product-acc-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 4px;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-acc-item summary::-webkit-details-marker {
    display: none;
}

.product-acc-item summary::after {
    content: "\25be";
    font-size: 0.9rem;
    opacity: 0.75;
    transition: transform 180ms ease;
}

.product-acc-item[open] summary::after {
    transform: rotate(180deg);
}

.product-acc-content {
    padding: 0 4px 16px;
    line-height: 1.7;
    color: rgba(44, 62, 80, 0.9);
}

.product-muted {
    color: rgba(44, 62, 80, 0.65);
}

.product-cta {
    width: 100%;
    margin-top: 18px;
}

.product-note {
    margin-top: 14px;
    font-size: 0.9rem;
    color: rgba(44, 62, 80, 0.60);
}

@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .product-section {
        padding-top: 100px;
    }
}
.cart-page footer {
    padding: 171px 6% 22px;
}

.cart-page footer p {
    margin: 4px 0;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.cart-item-thumb {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(197, 209, 219, 0.28);
    border: 1px solid rgba(44, 62, 80, 0.10);
    flex: 0 0 auto;
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: var(--crop-x, 50%) var(--crop-y, 45%);
}

.cart-item-info {
    min-width: 0;
}

.cart-item-info h4 {
    margin: 0;
}

.cart-item-info span {
    display: block;
    color: rgba(44, 62, 80, 0.65);
    font-size: 0.9rem;
}/* --- 10. KOSZYK (LAYOUT) --- */
.cart-page {
    padding-top: 120px;
}

.cart-page nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(249, 245, 215, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.cart-main {
    padding: 0 0 40px;
}

.cart-shell {
    max-width: 900px;
}

.cart-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 24px;
}

.cart-container {
    background: var(--lumi-white);
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.06);
}

.cart-empty {
    text-align: center;
    padding: 44px 12px;
    color: #666;
}

.cart-item {
    gap: 18px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-order {
    border: 1px solid var(--lumi-dark);
}

@media (max-width: 640px) {
    .cart-page {
        padding-top: 110px;
    }
    .cart-container {
        padding: 22px;
    }
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .cart-summary {
        text-align: left;
    }
}
/* style.css */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; /* To sprawi, że pokaże się całe zdjęcie bez ucinania */
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
/* --- 12. KOSZYK (SPOJNY ZE STRONA GLOWNA I PRODUKTEM) --- */
.cart-page {
    background: #f4f4f4;
    min-height: 100vh;
    padding-top: 0;
    display: flex;
    flex-direction: column;
}

.cart-main {
    padding: 0;
    background: transparent;
    min-height: 0;
}

.cart-page nav {
    background: var(--nav-bg);
}

#products.cart-section {
    position: relative;
    background: var(--lumi-blue);
    padding-top: 96px;
    padding-bottom: 56px;
    min-height: auto;
    overflow: visible;
}

#products.cart-section::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 160px;
    background: linear-gradient(to bottom, transparent 0%, #f4f4f4 100%) !important;
    pointer-events: none;
    z-index: 1;
}

.cart-shell {
    max-width: 920px;
    position: relative;
    z-index: 2;
}

.cart-section .product-back {
    margin-bottom: 18px;
}

.cart-container {
    max-width: 760px;
    margin: 56px auto 0;
    border-radius: 22px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(44, 62, 80, 0.10);
    box-shadow: 0 24px 70px rgba(0,0,0,0.06);
}

.cart-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    line-height: 1.05;
    margin-bottom: 16px;
}

.cart-empty {
    padding: 24px 8px;
    text-align: center;
    color: rgba(44, 62, 80, 0.7);
}

.cart-item {
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(44, 62, 80, 0.10);
}

.cart-item-thumb {
    width: 64px;
    height: 64px;
    border-radius: 14px;
}

.cart-item-actions strong {
    letter-spacing: 1px;
    font-weight: 400;
}

.cart-summary {
    margin-top: 18px;
    text-align: right;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(44, 62, 80, 0.10);
    border-radius: 18px;
    padding: 14px;
}

.cart-summary p {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    color: rgba(44, 62, 80, 0.72);
}

.cart-summary h2 {
    margin: 6px 0 12px;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.btn-order {
    width: 100%;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid rgba(44, 62, 80, 0.22);
    background: rgba(197, 209, 219, 0.75);
    color: var(--lumi-dark);
    font-size: 0.78rem;
    letter-spacing: 2px;
    transition: var(--transition);
}

.btn-order:hover {
    background: rgba(44, 62, 80, 0.92);
    color: #fff;
}

.cart-container.cart-is-empty {
    max-width: 900px;
    min-height: 280px;
    padding: 42px 44px;
}

.cart-container.cart-is-empty .cart-title {
    margin-bottom: 8px;
}

.cart-container.cart-is-empty .cart-empty {
    padding: 24px 10px;
}

.cart-container.cart-is-empty .cart-summary {
    display: none;
}

.cart-container.cart-is-empty .cart-summary h2 {
    margin: 2px 0 6px;
    font-size: clamp(1rem, 1.45vw, 1.25rem);
}

.cart-container.cart-is-empty .btn-order {
    padding: 7px 12px;
    font-size: 0.72rem;
}

.cart-page footer {
    position: static;
    padding: 0 6% 22px;
    background: #f4f4f4;
    margin-top: auto;
}

@media (max-width: 900px) {
    .cart-section {
        padding-top: 88px;
        padding-bottom: 72px;
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .cart-container {
        padding: 22px;
        border-radius: 20px;
    }
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
    }
    .cart-summary {
        text-align: left;
        margin-top: 20px;
    }
}

/* --- 13. STABILIZACJA LAYOUTU (KANONICZNE STYLE) --- */
.product-page #products.product-section {
    padding-top: 112px;
}

.product-page .product-shell {
    max-width: 1100px;
}

.product-page .product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(22px, 4vw, 44px);
    align-items: start;
}

.product-page .product-info {
    min-width: 0;
}

.product-page .product-gallery-main {
    border-radius: 20px;
}

.product-page .product-accordion {
    margin-top: 10px;
}

.product-page .product-acc-item summary {
    padding: 15px 4px;
}

.product-page .product-cta {
    margin-top: 16px;
}

.cart-page {
    background: #f4f4f4;
    min-height: 100vh;
}

.cart-page .cart-main {
    background: transparent;
    padding: 0;
}

.cart-page #products.cart-section {
    padding-top: 106px;
    padding-bottom: 56px;
    background: var(--lumi-blue);
}

.cart-page #products.cart-section::after {
    height: 145px;
}

.cart-page .cart-shell {
    max-width: 1000px;
}

.cart-page .cart-section .product-back {
    margin-bottom: 14px;
}

.cart-page .cart-container {
    max-width: 800px;
    margin: 32px auto 0;
    padding: 26px;
    border-radius: 22px;
}

.cart-page .cart-container.cart-is-empty {
    max-width: 900px;
    min-height: 300px;
    padding: 38px 42px;
}

.cart-page .cart-summary {
    margin-top: 16px;
}

.checkout-form {
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(44, 62, 80, 0.12);
    border-radius: 16px;
    padding: 16px;
}

.checkout-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin: 0 0 12px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.checkout-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
}

.checkout-grid input,
.checkout-grid textarea,
.checkout-grid select {
    border: 1px solid rgba(44, 62, 80, 0.18);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.96rem;
    background: #fff;
    color: var(--lumi-dark);
}

.checkout-span-2 {
    grid-column: span 2;
}

.checkout-consents {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
}

.checkout-consents label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.paczkomat-picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.paczkomat-picker[hidden] {
    display: none !important;
}

.paczkomat-btn {
    width: fit-content;
    padding: 10px 16px;
}

.widget-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.widget-panel {
    width: min(980px, 100%);
    height: min(82vh, 760px);
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(44, 62, 80, 0.16);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
}

.widget-close {
    justify-self: end;
    margin: 10px;
    border: 1px solid rgba(44, 62, 80, 0.2);
    border-radius: 999px;
    padding: 8px 12px;
    background: #fff;
    cursor: pointer;
}

.widget-panel inpost-geowidget {
    width: 100%;
    height: 100%;
}

.cart-container.cart-is-empty .checkout-form {
    display: none;
}

.cart-page footer {
    position: static;
    margin-top: 0;
    padding: 0 6% 22px;
    background: #f4f4f4;
}

@media (max-width: 1024px) {
    .product-page .product-detail {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    .product-page #products.product-section {
        padding-top: 102px;
    }
}

@media (max-width: 900px) {
    .cart-page #products.cart-section {
        padding-top: 94px;
        padding-bottom: 48px;
    }
    .cart-page .cart-container {
        margin-top: 20px;
        padding: 22px;
    }
    .cart-page .cart-container.cart-is-empty {
        min-height: 250px;
        padding: 28px 22px;
    }
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .checkout-span-2 {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .product-page #products.product-section {
        padding-top: 94px;
    }
    .product-page .product-title {
        font-size: clamp(1.8rem, 8vw, 2.35rem);
    }
    .product-page .product-price {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }
    .product-page .product-acc-item summary {
        font-size: 0.98rem;
        padding: 13px 2px;
    }
    .product-page .product-acc-content {
        padding: 0 2px 14px;
        font-size: 0.95rem;
    }

    .cart-page #products.cart-section {
        padding-top: 88px;
        padding-bottom: 38px;
    }
    .cart-page .cart-container {
        margin-top: 14px;
        padding: 18px;
        border-radius: 18px;
    }
    .cart-page .cart-container.cart-is-empty {
        min-height: 210px;
        padding: 24px 16px;
    }
    .cart-page .cart-title {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
        margin-bottom: 10px;
    }
}

/* --- 14. NOWOCZESNE PRZYCISKI (GLOBAL) --- */
.btn-main,
.btn-order,
.product-card button,
.carousel-slide .product-card button {
    appearance: none;
    border: 1px solid rgba(44, 62, 80, 0.18);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(228,236,242,0.95));
    color: #1f2f42;
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(27, 46, 64, 0.16);
    transition: transform 180ms ease, box-shadow 220ms ease, background 220ms ease, color 220ms ease;
}

.btn-main:hover,
.btn-order:hover,
.product-card button:hover,
.carousel-slide .product-card button:hover {
    background: linear-gradient(180deg, #2d4359, #223448);
    color: #fff;
    box-shadow: 0 14px 30px rgba(21, 36, 49, 0.28);
    transform: translateY(-1px);
}

.btn-main:active,
.btn-order:active,
.product-card button:active,
.carousel-slide .product-card button:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(21, 36, 49, 0.2);
}

.btn-main:focus-visible,
.btn-order:focus-visible,
.product-card button:focus-visible,
.carousel-slide .product-card button:focus-visible {
    outline: 2px solid rgba(44, 62, 80, 0.35);
    outline-offset: 2px;
}

.checkout-submit-wrap {
    margin-top: 14px;
}

.checkout-submit {
    width: 100%;
    min-height: 48px;
    font-weight: 600;
}

.remove-btn {
    box-shadow: none !important;
    background: transparent !important;
    border: 0 !important;
}

/* --- 15. CART MOBILE FIX (FINAL OVERRIDE) --- */
.cart-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.cart-page .cart-main {
    flex: 1 0 auto;
}

.cart-page footer {
    margin-top: auto;
}

.cart-page .cart-shell {
    width: 100%;
}

.cart-page .checkout-grid > * {
    min-width: 0;
}

.cart-page .checkout-grid input,
.cart-page .checkout-grid textarea,
.cart-page .checkout-grid select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .cart-page #products.cart-section {
        padding-top: 92px;
        padding-bottom: 44px;
    }

    .cart-page .cart-shell {
        padding-left: 14px;
        padding-right: 14px;
    }

    .cart-page .cart-container {
        width: 100%;
        max-width: 100%;
        margin: 28px auto 0;
        padding: 20px;
        border-radius: 18px;
    }

    .cart-page .cart-container.cart-is-empty {
        min-height: 0;
        padding: 22px 16px;
    }

    .cart-page .cart-summary {
        margin-top: 14px;
        padding: 12px;
    }

    .cart-page .checkout-form {
        margin-top: 14px;
        padding: 12px;
    }
}

@media (max-width: 640px) {
    .cart-page #products.cart-section {
        padding-top: 86px;
        padding-bottom: 34px;
    }

    .cart-page .cart-container {
        margin-top: 32px;
        padding: 16px;
        border-radius: 16px;
    }

    .cart-page .cart-title {
        margin-bottom: 8px;
        font-size: clamp(1.9rem, 9vw, 2.3rem);
    }

    .cart-page .cart-empty {
        padding: 16px 4px 12px;
    }

    .cart-page .checkout-title {
        font-size: 1.2rem;
    }

    .cart-page .checkout-grid input,
    .cart-page .checkout-grid textarea,
    .cart-page .checkout-grid select {
        font-size: 16px;
    }

    .cart-page .checkout-grid {
        overflow: hidden;
    }

    .cart-page .btn-main,
    .cart-page .btn-order {
        min-height: 46px;
        font-size: 0.82rem;
        letter-spacing: 1.2px;
    }
}
