/* Stylowanie strony produktu */

#wrapper {
    padding-top: 20px;
}

/* Opis + specyfikacja – dwie kolumny 50% / 50% */
.product-description-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.product-description-col {
    min-width: 0;
}

.product-spec-title {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
}

@media (max-width: 640px) {
    .product-description-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ===== Product gallery – thumbnails square frames ===== */
.vertical .images-container .thumb-images .thumb-container.swiper-slide {
    aspect-ratio: 1 !important;
    height: auto !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vertical .images-container .thumb-images .thumb-container .thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

/* ===== Product gallery – center main image vertically ===== */
.vertical .images-container .product-cover-container {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
}

.vertical .images-container .product-cover-container .product-cover {
    width: 100%;
}

.product-cover .swiper-slide {
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.product-cover .swiper-slide img.img-fluid {
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
}

/* ===== Product gallery mobile fix ===== */
@media (max-width: 767px) {
    /* Force slides to container width instead of hardcoded 548px */
    .product-cover .swiper-slide {
        width: 100% !important;
        margin-right: 0 !important;
    }

    /* Stack gallery vertically: main image on top, thumbs below */
    .vertical .images-container {
        flex-direction: column !important;
    }

    .vertical .images-container .product-cover-container {
        width: 100% !important;
    }

    .vertical .images-container .thumb-images {
        width: 100% !important;
        margin-top: 10px;
    }

    /* Thumbs horizontal on mobile */
    .thumb-images .swiper_thumb {
        height: auto !important;
    }

    .thumb-images .product-images.swiper-wrapper {
        flex-direction: row !important;
    }

    .thumb-images .thumb-container.swiper-slide {
        height: auto !important;
        width: 80px !important;
        margin-bottom: 0 !important;
        margin-right: 8px;
    }

    .thumb-images .thumb-container .thumb {
        max-width: 100%;
        height: auto;
    }
}

/* ===== Blockreassurance – wiersze pionowo, równe odstępy ===== */
.blockreassurance_product {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    margin-top: 0 !important;
}

.blockreassurance_product > div {
    display: flex !important;
    align-items: center;
    width: 100% !important;
    padding: 8px 0 !important;
    margin-bottom: 0 !important;
}

.blockreassurance_product > div:not(:last-child) {
    border-bottom: none !important;
}

.blockreassurance_product .item-product {
    flex-shrink: 0;
}

.blockreassurance_product .content {
    min-width: 0;
}

.blockreassurance_product .content p {
    margin: 2px 0 0;
}
