/* Ürün detay: sol galeri / sağ bilgi+fiyat, altta açıklama sekmeleri */

.product-details-page .pd-section {
    margin-bottom: 1rem;
}

.product-details-page .pd-section-top {
    margin-bottom: .75rem;
}

.product-details-page .pd-section-bottom {
    margin-top: .5rem;
    padding-top: 0;
    width: 100%;
    clear: both;
}

/* Ortak sütun oranları (Bootstrap gutter) */
.product-details-page {
    --pd-gutter-x: 1.5rem;
}

/* Yeni şablon: section.row.pd-section-top */
.product-details-page section.pd-section-top.row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start;
    --bs-gutter-x: var(--pd-gutter-x);
    margin-right: calc(var(--bs-gutter-x) * -.5);
    margin-left: calc(var(--bs-gutter-x) * -.5);
}

.product-details-page section.pd-section-top.row > .pd-data-col,
.product-details-page section.pd-section-top.row > .pd-info-col {
    box-sizing: border-box;
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
}

/* Canlıda hâlâ derlenmiş eski şablon: pd-layout-grid (Production DLL) */
.product-details-page #main-update-container.pd-layout-grid > form.pd-layout-form {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    --bs-gutter-x: var(--pd-gutter-x);
    margin-right: calc(var(--bs-gutter-x) * -.5);
    margin-left: calc(var(--bs-gutter-x) * -.5);
}

.product-details-page form.pd-layout-form > .pd-layout-gallery,
.product-details-page form.pd-layout-form > .pd-layout-sidebar,
.product-details-page form.pd-layout-form > .pd-data-col,
.product-details-page form.pd-layout-form > .pd-info-col {
    box-sizing: border-box;
    flex: 0 0 100%;
    max-width: 100% !important;
    width: 100% !important;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
}

@media (min-width: 768px) {
    .product-details-page section.pd-section-top.row > .pd-data-col,
    .product-details-page form.pd-layout-form > .pd-layout-gallery,
    .product-details-page form.pd-layout-form > .pd-data-col {
        flex: 0 0 50%;
        max-width: 50% !important;
        width: 50% !important;
    }

    .product-details-page section.pd-section-top.row > .pd-info-col,
    .product-details-page form.pd-layout-form > .pd-layout-sidebar,
    .product-details-page form.pd-layout-form > .pd-info-col {
        flex: 0 0 50%;
        max-width: 50% !important;
        width: 50% !important;
    }
}

@media (min-width: 992px) {
    .product-details-page section.pd-section-top.row > .pd-data-col,
    .product-details-page form.pd-layout-form > .pd-layout-gallery,
    .product-details-page form.pd-layout-form > .pd-data-col {
        flex: 0 0 58.333333%;
        max-width: 58.333333% !important;
        width: 58.333333% !important;
    }

    .product-details-page section.pd-section-top.row > .pd-info-col,
    .product-details-page form.pd-layout-form > .pd-layout-sidebar,
    .product-details-page form.pd-layout-form > .pd-info-col {
        flex: 0 0 41.666667%;
        max-width: 41.666667% !important;
        width: 41.666667% !important;
    }
}

.product-details-page .pd-info-col,
.product-details-page .pd-layout-sidebar {
    min-width: 0;
}

.product-details-page .pd-data-col-inner {
    position: static;
}

.product-details-page #pd-gallery .gal-item-viewport {
    padding-top: 0;
    height: clamp(220px, 50vw, 360px);
}

.product-details-page #pd-gallery .gal-item-viewport.no-picture {
    height: clamp(200px, 45vw, 300px);
}

@media (min-width: 768px) {
    .product-details-page #pd-gallery .gal-item-viewport {
        height: clamp(240px, 36vw, 380px);
    }
}

@media (min-width: 992px) {
    .product-details-page #pd-gallery .gal-item-viewport {
        height: clamp(260px, 28vw, 400px);
    }

    .product-details-page .pd-tabs > .nav-tabs {
        justify-content: flex-start;
    }
}
