/**
 * Front Page Styles - Babuszka Store
 * Homepage sections styling
 */

/* ===== GENERAL SECTION STYLES ===== */
.front-page {
    flex: 1;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-h2);
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 3rem 1.25rem;
    background-color: #FFF8F0;
    min-height: 28rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -4rem;
}

.hero-container {
    max-width: 75rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3.75rem;
}

/* Left Side - Main Image */
.hero-image-left {
    position:absolute;
    width: 26em;
    height: 32rem;
    background-color: #EED9D9;
    border-radius: 2.5rem;
    background-size: 120%;
    background-position: 10% 15%;
    background-image: var(--hero-image-left);
    flex-shrink: 0;
    transform: scale(1.1) translate(3rem, 9.9rem);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* Right Side - Collage */
.hero-image-right {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(1.0) translate(5rem, 1rem);
    transition: transform 0.3s ease;
}

/* Main Collage Image - Same size as left */
.main-collage-image {
    position:absolute;
    width: 26rem;
    height: 32rem;
    background-color: #C4A5A5;
    border-radius: 2.5rem;
    background-size: 125%;
    background-position: 28% 37%;
    background-image: var(--hero-image-right);
    transform: scale(1.1) translate(13rem, 4.9rem);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: -1;
}

/* Secondary Collage Image - Overlaid */
.secondary-collage-image {
    position: absolute;
    width: 33rem;
    height: 38rem;
    border-radius: 1.875rem;
    background-size: 109%;
    background-position: center;
    background-image: var(--hero-image-secondary);
    z-index: 2;
    top: 20%;
    left: 75%;
    transform: translate(-59%, -30%);
}

/* Third Collage Image - Overlaid */
.third-collage-image {
    position: absolute;
    width: 11rem;
    height: 13.5rem;
    border-radius: 1.875rem;
    background-size: cover;
    background-position: center;
    background-image: var(--hero-image-third);
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(218%, 31%) rotate(87deg);
}

/* ===== SCARFS INFO SECTION ===== */
.scarfs-info {
    margin-top: 16.5rem;
    padding: 0 0 var(--spacing-xl) 0;
    background-color: var(--color-primary);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.scarfs-info .section-container{
    padding-top: 2rem;
}

.scarfs-info .section-cta{
    /* background-color: #FFD700; */
    transform: translateY(-1.55rem);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-sm);
}

.info-card {
    text-align: center;
    padding: var(--spacing-md);
}

.info-icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-secondary); /* Light background */
    border-radius: 50%;
    margin: 0 auto var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 36px;
    height: 36px;
    display: block;
    fill: var(--color-primary); /* Dark icon - full CSS control */
    stroke: var(--color-primary);
    overflow: visible;
}

.info-card h3 {
    font-family: var(--font-primary);
    font-size: var(--font-size-h3);
    font-weight: 900;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3660000562667847em;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.info-card p {
    color: var(--color-text);
    line-height: 1.6;
}

/* ===== BESTSELLERS SECTION ===== */
.bestsellers {
    padding: 0;
    width: 100%;
    background-color: var(--color-light);
}

/* Scroller - Main scroll container with height */
.bestsellers .scroller {
    min-height: 250vh;
    position: relative;
}

/* Sticky content wrapper - contains title, carousel, and button */
.bestsellers .sticky-content {
    position: sticky;
    top: 0;
    min-height: 100vh;
    z-index: 15;          /* wyższy z-index niż scarfs-info (10) */
    background-color: var(--color-secondary);
    padding: 0;
    padding-top: 3rem;    /* zmniejszone z 6rem */
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
}

.section-heading{
    padding-top: 1rem;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: 8rem;
}

.content-heading {
    font-family: var(--font-heading);
}

.bestsellers.section-title {
    padding-top: 4rem;
    background-color: var(--color-light);
}

/* Carousel Wrapper */
.carousel-wrapper {
    padding-top: 6rem;
    width: 100%;
    flex: 1;
    min-height: 500px;
    max-height: 70vh;
    overflow: visible;    /* zmienione z hidden - produkty nie będą ucinane */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Carousel - Flexbox container with the products */
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Each product card (slide) */
.carousel-product {
    width: 20vw;
    height: 20vw;
    min-width: 250px;
    min-height: 250px;
    max-width: 400px;
    max-height: 400px;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

.carousel-product .product-image {
    transition: transform 0.3s ease;
    transform: scale(1.3);
    overflow: visible;
    width: 100%;
    height: 100%;
    display: block;
}

.carousel-product .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-product:hover .product-image {
    transform: scale(1.55);
}

.bestsellers .section-cta {
    text-align: center;
    margin-top: auto;
    padding-bottom: 3rem;
}

.section-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.section-cta a,
.section-cta button {
    transition: all var(--transition-fast);
}

.section-cta a:hover,
.section-cta button:hover {
    transform: scale(1.05);
}

/* Bazowe style przycisków - zunifikowane */
.button-primary,
.button-secondary {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-xl);
    min-width: 200px;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;    /* pastylki */
    font-size: 1.5rem;
    font-weight: 900;
    transition: transform var(--transition-fast);
}

.button-primary {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border: 2px solid var(--color-primary);
}

.button-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.button-primary:hover,
.button-secondary:hover {
    transform: scale(1.05);
}

/* ===== IMAGE & TEXT SECTION ===== */
.image-text-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md) 0;
    background-color: var(--color-secondary);
    overflow: hidden;
    position: relative;
}

/* Background decorative image - outside grid */
.section-bg-image {
    position: absolute;
    right: 0;
    top: 50%;
    width: 45%;
    max-width: 600px;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
    transform: 
        translateX(50%)
        translateY(-30%)
        scale(1.5);
}

.section-bg-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.image-text-section .section-heading {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 0 var(--spacing-md);
    text-align: center;
    position: relative;
    z-index: 2;
}

.image-text-section .content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0rem;
    align-items: stretch;
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 1rem auto 1rem 0;
    margin-left: 2%;
    padding: 0;
    position: relative;
    z-index: 2;
}

.image-text-section .text-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    padding-left: 0;
}

/* Text boxes alternating left/right within column */
.image-text-section .text-box {
    padding: var(--spacing-sm);
    background-color: transparent;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 320px;
}

/* Odd boxes (1, 3) - align left */
.image-text-section .text-box:nth-child(odd) {
    align-self: flex-start;
}

/* Even boxes (2, 4) - align right */
.image-text-section .text-box:nth-child(even) {
    align-self: flex-end;
}

.image-text-section .text-box h3 {
    font-size: var(--font-size-h3);
    font-style: italic;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.image-text-section .text-box p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.image-text-section .image-column {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 10;
    padding-right: 2rem;
}

.image-text-section .image-left .main-image {
    width: 64%;
    height: 82%;
    max-width: 618px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.image-text-section .main-image img {
    width: 110%;
    height: 51%;
    min-height: 757px;
    object-fit: cover;
    transform: scale(1);
}

/* Carousel controls & dots (hidden on desktop) */
.carousel-arrow,
.carousel-dots {
    display: none;
}

.text-boxes-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0rem;
    margin-top: 0rem;
}

/* All text boxes visible on desktop */
.image-text-section .text-box {
    display: flex;
}

/* Mobile styles */
@media (max-width: 768px) {
    .image-text-section {
        min-height: auto;
        padding: var(--spacing-md) 0;
        position: relative;
        margin-top: 4rem;
    }

    .image-text-section .section-heading {
        margin-bottom: var(--spacing-md);
        text-align: center;
        font-size: 2.5rem;
        padding: 0 var(--spacing-sm);
        padding-bottom: 2rem;
    }

    .image-text-section .content-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        margin: 0;
    }

    .image-text-section .text-column {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-xs);
        margin: 0 auto;
        order: 1;
        padding: 0;
        width: 100%;
        max-width: 400px;
    }

    /* Hide background image on mobile */
    .section-bg-image {
        display: none;
    }

    /* Left image becomes full width on mobile */
    .image-text-section .image-left {
        order: 2;
        margin: 0;
        padding: 0;
    }

    .image-text-section .image-column {
        padding-right: 0;
        justify-content: center;
    }

    .image-text-section .image-left .main-image {
        max-width: 100%;
        width: 100%;
        border-radius: 0;
        margin: 0 auto;
        transform: none;
        position: relative;
        z-index: 10;
        box-shadow: none;
        overflow: hidden;
    }
    
    /* Gradient fade na dolnej krawędzi zdjęcia dla smooth transition */
    .image-text-section .image-left .main-image::after {
        content: '';
        position: absolute;
        bottom: 17%;
        left: 0;
        right: 0;
        height: 10vh;
        background: linear-gradient(to bottom, transparent, var(--color-primary));
        pointer-events: none;
        z-index: 11;
    }

    .image-text-section .main-image img {
        width: 100%;
        height: 82%;
        min-height: auto;
        transform: none;
        border-radius: 0;
        display: block;
    }

    .text-boxes-wrapper {
        flex: 1;
        min-height: 120px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        overflow: visible;
        padding: 0;
    }

    /* Reset alternating alignment on mobile */
    .image-text-section .text-box:nth-child(odd),
    .image-text-section .text-box:nth-child(even) {
        align-self: center;
    }

    .image-text-section .text-box {
        display: none;
        text-align: center;
        animation: fadeIn 0.3s ease-in-out;
        width: 100%;
        flex-direction: column;
        padding: var(--spacing-xs);
        max-width: 100%;
        min-height: 120px;
    }

    .image-text-section .text-box.active {
        display: flex;
    }

    .image-text-section .text-box h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .image-text-section .text-box p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .carousel-arrow {
        display: flex;
        background: none;
        border: none;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        padding: 0;
        width: 50px;
        height: 50px;
        transition: opacity 0.3s ease;
        flex-shrink: 0;
        background-color: var(--color-primary);
        -webkit-mask-size: 24px 24px;
        mask-size: 24px 24px;
        -webkit-mask-position: center;
        mask-position: center;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }

    /* Lewa strzałka - chevron z zaokrąglonymi rogami */
    .carousel-arrow.prev {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E");
    }

    /* Prawa strzałka - chevron z zaokrąglonymi rogami */
    .carousel-arrow.next {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    }

    .carousel-arrow:hover {
        opacity: 0.6;
    }

    .carousel-arrow.prev {
        order: -1;
    }

    .carousel-arrow.next {
        order: 1;
    }

    .carousel-dots {
        display: none; /* ukryte - klient nie chce kropek */
    }

    .carousel-dot {
        display: none;
    }

    .carousel-dot.active {
        display: none;
    }

    .image-text-section .main-image {
        min-height: 300px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== REVIEWS SECTION ===== */
.reviews {
    padding: 0 0;
    background-color: var(--color-primary);
    position: relative;
    margin-top: -7vh;
    padding-top: calc(var(--spacing-xl));
    z-index: 1;
    min-height: 60vh;
}

.reviews-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
    align-items: center;
    min-height: 70vh;
}

/* Left Column - Control */
.reviews-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    align-self: center;
    margin-top: 1rem;
}

.reviews-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-secondary);
    text-align: center;
    line-height: 1.3;
}

.camera-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.camera-button svg {
    width: 60px;
    height: 60px;
    color: var(--color-primary);
}

.camera-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.camera-button:active {
    transform: scale(0.95);
}

/* Right Column - Polaroid Container */
.polaroid-container {
    position: relative;
    width: 100%;
    height: 600px;
    perspective: 1000px;
}

.polaroid {
    position: absolute;
    width: 400px;
    background-color: #fff;
    padding: 15px;
    padding-bottom: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transform: rotate(0deg);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    pointer-events: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.8);
}

.polaroid.active {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-3deg) scale(1);
    z-index: 10;
}

.polaroid.previous {
    opacity: 0.7;
    transform: translate(-50%, -50%) rotate(5deg) scale(0.95);
    z-index: 5;
}

.polaroid-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    margin-bottom: 15px;
}

/* Overlay dla lepszej czytelności tekstu na zdjęciu */
.polaroid-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(238, 217, 217, 0.7), rgba(196, 165, 165, 0.7));
}

.polaroid .review-text {
    color: var(--color-dark);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Instruction Polaroid - Hidden on desktop */
.polaroid-instruction {
    display: none;
}

.instruction-text {
    color: var(--color-dark);
    font-style: italic;
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

.polaroid-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.review-stars {
    color: #FFD700;
    font-size: 1.25rem;
}

.review-author {
    color: var(--color-dark);
    font-weight: 600;
    font-size: 1rem;
}

/* Reviews mobile adjustments */
@media (max-width: 768px) {
    .reviews {
        margin-top: -31vh;
        padding-top: calc(var(--spacing-xl) + 2vh);
        min-height: 85vh;
        position: relative;
        z-index: 1
    }

    .reviews-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        min-height: auto;
        margin-top: -1rem;
    }

    .reviews .section-container {
        padding-top: 8rem;
    }

    .reviews-control {
        order: 2;
        margin-bottom: 1rem;
        margin-top: -1rem;;
    }

    .polaroid-container {
        order: 1;
        height: 450px;
        position: relative;
        z-index: 15; /* ponad zdjęcie (10) ale wewnątrz reviews (5) */
    }

    .reviews-heading {
        display: none;
    }

    .polaroid-instruction {
        display: block;
    }

    .polaroid {
        width: 320px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) rotate(0deg);
        z-index: 20;
        opacity: 0;
        pointer-events: none;
    }

    .polaroid.active {
        opacity: 1;
        pointer-events: auto;
        z-index: 25;
    }

    /* Różne rotacje dla efektu "spadania" zdjęcia */
    .polaroid[data-index="0"].active {
        transform: translate(-50%, -50%) rotate(2deg) scale(1);
    }

    .polaroid[data-index="1"].active {
        transform: translate(-50%, -50%) rotate(-4deg) scale(1);
    }

    .polaroid[data-index="2"].active {
        transform: translate(-50%, -50%) rotate(3deg) scale(1);
    }

    .polaroid[data-index="3"].active {
        transform: translate(-50%, -50%) rotate(-2deg) scale(1);
    }

    .polaroid.previous {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(0deg) scale(0.9);
        z-index: 15;
    }

    .polaroid-image {
        height: 320px;
    }

    .camera-button {
        width: 100px;
        height: 100px;
    }

    .camera-button svg {
        width: 50px;
        height: 50px;
    }
}

/* ===== CUSTOM CTA SECTION ===== */
.custom-cta {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-secondary);
    text-align: center;
}

.custom-cta-heading {
    font-family: var(--font-heading);
    font-size: var(--font-size-h2);
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.3;
}

@media (max-width: 768px) {
    .custom-cta-heading {
        font-size: 2rem;
        padding-bottom: 1rem;
    }
}

/* ===== FAQ SECTION ===== */
.faq {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-light);
}

.faq-list {
    max-width: 800px;
    margin: var(--spacing-lg) auto 0;
}

.faq-item {
    background-color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    border-radius: 25px;     /* bardziej zaokrąglone */
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--spacing-md);
    background-color: var(--color-primary);
    border: none;
    border-radius: 25px;     /* zaokrąglone rogi */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-secondary);
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background-color: var(--color-dark);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-secondary);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: var(--spacing-sm);
}

.faq-answer p {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.faq-item.active .faq-answer p {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 64em) {
    .hero-container {
        gap: 2.5rem;
    }

    .hero-image-left {
        width: 18.75rem;
        height: 23.4375rem;
    }

    .main-collage-image {
        width: 18.75rem;
        height: 23.4375rem;
    }

    .secondary-collage-image {
        width: 9.375rem;
        height: 11.6875rem;
    }

    .third-collage-image {
        width: 4.6875rem;
        height: 5.875rem;
    }

    .info-grid {
        grid-template-columns: repeat(3, 1fr);  /* zachowaj 3 kolumny na tablecie */
        gap: var(--spacing-sm);
    }

    .info-icon {
        width: 60px;
        height: 60px;
    }

    .info-card h3 {
        font-size: 0.9rem;
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 48em) {
    .hero {
        padding: 0 1rem;
        background-color: #FFF8F0;
        background-image: none;
        position: relative;
        min-height: 57vh;
        z-index: 1;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    .hero::before {
        display: none;
    }

    .hero-container {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0;
        position: relative;
        z-index: 2;
        padding: 0.5rem;
        max-width: 100%;
    }

    /* Show both images on mobile - side by side, overlapping, BIG */
    .hero-image-left {
        display: block;
        position: relative;
        width: 45vw;
        height: 55vw;
        max-width: 12rem;
        max-height: 15rem;
        border-radius: 1.5rem;
        background-size: 120%;
        background-position: 10% 15%;
        transform: translate(0.8rem, 0) rotate(-4deg);
        z-index: 2;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    }
    
    .hero-image-right {
        display: flex;
        position: relative;
        transform: translate(-1rem, 0.8rem);
        flex: none;
    }
    
    .main-collage-image {
        position: relative;
        width: 45vw;
        height: 55vw;
        max-width: 12rem;
        max-height: 15rem;
        border-radius: 1.5rem;
        background-size: 125%;
        background-position: 28% 37%;
        transform: rotate(4deg);
        z-index: 1;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    }
    
    /* Hide secondary and third images on mobile */
    .secondary-collage-image,
    .third-collage-image {
        display: none;
    }
    
    /* Scarfs info - przycisk i ikony - osobna sekcja pod hero */
    .scarfs-info {
        position: relative;
        z-index: 10;
        margin-top: -4rem;
        padding: var(--spacing-md) 0 var(--spacing-sm);
        overflow: hidden;
        padding-bottom: 3rem;
    }

    .scarfs-info .section-container {
        padding-top: 0rem;
        margin-bottom: 0rem;
    }

    /* Przycisk APASZKI - widoczny i wyrazisty */
    .scarfs-info .section-cta {
        transform: translateY(1); 
        margin-bottom: var(--spacing-sm);
    }

    .scarfs-info .section-cta .button-primary {
        padding: 0.75rem 2rem;
        transform: scale(0.8);
    }

    /* Info grid - 3 ikony w rzędzie na mobile */
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xs);
        margin-top: 0;
    }

    .info-card {
        padding: var(--spacing-xs);
    }

    /* Ikony na mobile - trochę większe */
    .info-icon {
        width: 50px;
        height: 50px;
        margin-bottom: var(--spacing-xs);
    }

    /* Napisy przy ikonach */
    .info-card h3 {
        font-size: 0.65rem;
        margin-bottom: 0.25rem;
        line-height: 1.3;
        font-weight: 700;
    }

    .info-card p {
        display: none;  /* ukryj opisy na mobile */
    }

    .section-heading {
        padding-top: 5rem;
        font-family: var(--font-heading);
        font-size: 2.5rem;
        color: var(--color-primary);
        text-align: center;
        margin-bottom: var(--spacing-lg);
        margin-bottom: -6rem;
        margin-top: 3rem;
        padding-bottom: -5rem;
    }

    /* Mniejsze produkty w karuzeli na mobile */
    .carousel-product {
        min-width: 150px;
        min-height: 150px;
        max-width: 200px;
        max-height: 200px;
    }

    .carousel-product .product-image {
        transform: scale(1.8);
    }

    .carousel-wrapper {
        padding-top: 18rem;
        min-height: 350px;
        max-height: 50vh;
        /* overflow: hidden; */
    }

    .bestsellers .scroller {
        min-height: 250vh; /* długa animacja - 2.5x wysokość ekranu */
    }

    .bestsellers .section-title{
        padding-top: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .bestsellers .sticky-content {
        min-height: 60vh; /* karuzela 60%, dolne 40% = następna sekcja widoczna od początku */
        padding-top: 0rem;
        z-index: 5; /* niższy niż desktop (15) - żeby image-text-section była widoczna */
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }
}
