/* ============================================================
   TEMPLATE PRODUCTS — standalone CSS
   ============================================================ */

.hero__image {
    display: flex;
    justify-content: center;
    margin-top: 3.2rem;
}

/* ── 1. COOPERATION SECTION ─────────────────────────────── */

.products--cooperation {
    margin-top: 12rem;
}

.products--cooperation .container {
    text-align: center;
    max-width: 65%;
    margin-left: auto;
    margin-right: auto;
}

.products--cooperation__subtitle {
    margin-top: 4.8rem;
}

.products--cooperation__content {
    margin-top: 12rem;
}

.products--cooperation__content .images {
    position: relative;
}

.products--cooperation__content .img1 {
    width: 100%;
    object-fit: cover;
    min-height: 70rem;
    border-radius: 16px;
    display: block;
}

.products--cooperation__content .flower-right {
    position: absolute;
    z-index: 3;
    right: -13rem;
    bottom: -4%;
    max-width: 26rem;
}

.products--cooperation__content .flower-right svg {
    height: auto;
    width: 100%;
}

/* Prawa kolumna — tekst na górze, img2 na dole */
.cooperation-right-col {
    display: flex;
    flex-direction: column;
}

.products--cooperation__content .content {
    flex: 1;
    padding-top: 1rem;
}

.products--cooperation__content .content .txt {
    margin-bottom: 3rem;
}

.products--cooperation__content .content .btns {
    margin-top: 3rem;
}

.products--cooperation__content .img2 {
    display: block;
    margin-top: 4rem;
    width: 100%;
    max-height: 42rem;
    object-fit: cover;
    border-radius: 16px;
}

/* ── 2. PRODUCTS SECTION ─────────────────────────────────── */

.products--products {
    margin-top: 12rem;
    padding-top: 10rem;
    padding-bottom: 10rem;
    background-color: #F8F8F8;
}

.products--products__image {
    text-align: center;
}

.products--products__image .image {
    max-height: 8rem;
    width: auto;
    display: inline-block;
}

.products--products__txt {
    margin-top: 8rem;
    max-width: 72%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.products--products__title {
    margin-top: 10rem;
    margin-bottom: 8rem;
}

/* Product card */
.products--products .x-product {
    background-color: #fff;
    border-radius: 16px;
    padding: 2.4rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    color: #231F20;
    text-decoration: none;
}

.products--products .x-product .image {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 1rem 0;
}

.products--products .x-product .image .img {
    object-fit: contain;
    max-height: 20rem;
    width: auto;
    max-width: 100%;
}

.products--products .x-product .image .bestseller {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #2C529B;
    color: #fff;
    border-radius: 24px;
    padding: .6rem 1.6rem;
    font-size: 13px;
    font-weight: 300;
    font-family: 'AreaExtended', sans-serif;
    z-index: 2;
    white-space: nowrap;
}

.products--products .x-product .txt {
    margin-top: 1.5rem;
    text-transform: uppercase;
    color: #242021;
    font-weight: 300;
}

/* Big first product */
.products--products .x-product--big {
    padding: 3rem 2.4rem 2.4rem;
}

.products--products .x-product--big .image .img {
    max-height: 44rem;
}

/* Link hover only */
.products--products a.x-product {
    transition: all 0.4s;
}

.products--products a.x-product:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

/* Row gap between product cards */
.products--products .mb-products {
    margin-bottom: 16px;
}

/* ── 3. GALLERIES SECTION ────────────────────────────────── */

.products--galleries {
    padding-top: 12rem;
    padding-bottom: 10rem;
}

.products--galleries .container {
    text-align: center;
}

.products--galleries .container .btns {
    margin-top: 3rem;
}

.products--galleries .galleries {
    margin-top: 8rem;
    position: relative;
}

.products--galleries .galleries .flower {
    position: absolute;
    z-index: 3;
    bottom: -1rem;
    right: 12%;
    max-width: 30rem;
    pointer-events: none;
}

.products--galleries .galleries .flower svg {
    height: auto;
    width: 100%;
}

/* CSS Grid — collage galerii */
.products--galleries .gallery-grid {
    display: grid;
    grid-template-columns: 3fr 2fr 4fr 3fr;
    grid-template-rows: auto auto;
    gap: 1.6rem;
    align-items: center;
}

.products--galleries .gallery-grid .img {
    object-fit: cover;
    border-radius: 16px;
    width: 100%;
    display: block;
}

/* img1: górny rząd, rozpina kolumny 1 i 2 */
.products--galleries .gallery-grid .img1 {
    grid-column: 1 / span 2;
    grid-row: 1;
    height: 40rem;
}

/* img2: dolny rząd, tylko kolumna 2 */
.products--galleries .gallery-grid .img2 {
    grid-column: 2;
    grid-row: 2;
    height: 27rem;
}

/* img3: oba rzędy, wycentrowane w pionie */
.products--galleries .gallery-grid .img3 {
    grid-column: 3;
    grid-row: 1 / span 2;
    height: 58rem;
}

/* img4: oba rzędy, wycentrowane w pionie */
.products--galleries .gallery-grid .img4 {
    grid-column: 4;
    grid-row: 1 / span 2;
    height: 36rem;
}

/* ── RWD — 1200px ────────────────────────────────────────── */

@media (max-width: 1200px) {
    .products--cooperation__content .flower-right {
        right: -10rem;
        max-width: 20rem;
    }

    .products--products .x-product--big .image .img {
        max-height: 38rem;
    }

    .products--products .x-product .image .img {
        max-height: 32rem;
    }

    .products--galleries .galleries .flower {
        max-width: 24rem;
        right: 10%;
    }
}

/* ── RWD — 992px ─────────────────────────────────────────── */

@media (max-width: 992px) {
    .products--cooperation .container {
        max-width: 100%;
    }

    .products--cooperation__content {
        margin-top: 6rem;
    }

    .products--cooperation__content .img1 {
        height: auto;
        max-height: max-content;
    }

    .products--cooperation__content .flower-right {
        right: -14px;
        bottom: 0%;
        max-width: 22rem;
    }

    .products--cooperation__content .content {
        margin-top: 8rem;
        margin-bottom: 4rem;
        padding-top: 0;
    }

    .products--cooperation__content .img2 {
        height: auto;
        max-height: max-content;
    }

    .products--products {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }

    .products--products__txt {
        max-width: 100%;
    }

    .products--products .x-product--big .image .img {
        max-height: 30rem;
    }

    .products--products .x-product .image .img {
        max-height: 32rem;
    }

    .products--galleries {
        padding-top: 8rem;
        padding-bottom: 6rem;
    }

    .products--galleries .galleries {
        margin-top: 5rem;
    }


}

/* ── RWD — 768px ─────────────────────────────────────────── */

@media (max-width: 768px) {
    .products--cooperation__content .img1 {
        height: auto;
        max-height: none;
    }

    .products--cooperation__content .flower-right {
        max-width: 18rem;
        right: -8px;
    }

    .products--cooperation__content .img2 {
        height: auto;
        max-height: none;
        margin-top: 2rem;
    }


    .products--galleries .galleries .flower {
        max-width: 24rem;
        bottom: -6rem;
        right: -2%;
    }

    .products--galleries .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 1.2rem;
        align-items: stretch;
    }

    .products--galleries .gallery-grid .img1,
    .products--galleries .gallery-grid .img2,
    .products--galleries .gallery-grid .img3,
    .products--galleries .gallery-grid .img4 {
        grid-column: auto;
        grid-row: auto;
        height: auto;
    }
}

/* ── RWD — 576px ─────────────────────────────────────────── */

@media (max-width: 576px) {

    .products--cooperation__content .img1{
        min-height: auto;
    }

    .hero__image .image, .products--products__image .image{
        max-width: 80%;
    }

    .products--galleries .gallery-grid {
        grid-template-columns: 1fr;
    }

    .products--galleries .gallery-grid .img {
        height: auto;
    }
}  
 

@media (max-width: 1600px){

    .header__menu ul li {
        margin-left: 2rem;
    }

    .header__menu ul li a {
        font-size: 13px;
    }
}