/* ==================================================
   ÜRÜNLERİMİZ SAYFASI
================================================== */

.products-section {
    width: 100%;
    padding: 70px 0 100px;
    background-color: #ffffff;
}

.products-section .container {
    max-width: 1210px;
}

/* Ana ürün yerleşimi */

.products-layout {
    display: grid;
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    align-items: start;
    gap: 32px 35px;
}

/*
 Görseller ve açıklamalar aynı grid içerisine alınır.
 Böylece her görsel kendi açıklamasının yanında görünür.
*/

.products-image-column,
.products-content-column {
    display: contents;
}

/* Bütün görseller sol sütunda */

.product-side-image {
    grid-column: 1;
    align-self: start;
    width: 100%;
    margin: 48px 0 0;
    overflow: hidden;
    background-color: #eeeeee;
}

.product-side-image:nth-child(8) {
    margin-top: 0;
}

.product-side-image img {
    display: block;
    width: 100%;
    height: auto;
}

.product-overview-image img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background-color: #ffffff;
}

/* Görsellerin masaüstü sırası */

.product-side-image:nth-child(1) {
    grid-row: 1;
}

.product-side-image:nth-child(2) {
    grid-row: 2;
}

.product-side-image:nth-child(3) {
    grid-row: 3;
}

.product-side-image:nth-child(4) {
    grid-row: 4;
}

.product-side-image:nth-child(5) {
    grid-row: 5;
}

.product-side-image:nth-child(6) {
    grid-row: 6;
}

.product-side-image:nth-child(7) {
    grid-row: 7;
}

.product-side-image:nth-child(8) {
    grid-row: 8;
}

/* Açıklamalar sağ sütunda */

.product-info-block {
    grid-column: 2;
    align-self: start;
    min-width: 0;
    margin: 0;
}

.product-info-block:nth-child(1) {
    grid-row: 1;
}

.product-info-block:nth-child(2) {
    grid-row: 2;
}

.product-info-block:nth-child(3) {
    grid-row: 3;
}

.product-info-block:nth-child(4) {
    grid-row: 4;
}

.product-info-block:nth-child(5) {
    grid-row: 5;
}

.product-info-block:nth-child(6) {
    grid-row: 6;
}

/*
 Son ürün açıklaması iki görselin yanında devam eder.
 slider_10.jpg ve bkr.jpg bu son ürün grubunda kullanılır.
*/

.product-info-block:nth-child(7) {
    grid-row: 7 / 9;
}

/* Ürün başlıkları */

.product-info-block h2 {
    margin: 0 0 9px;
    padding-bottom: 9px;
    color: #174b9b;
    border-bottom: 2px solid #174b9b;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}.product-info-block h2 {
    position: relative;
    z-index: 2;
    margin: 0 0 12px;
    padding-bottom: 12px;
    color: #174b9b;
    border: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.product-info-block h2::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: -475px;
    height: 2px;
    content: "";
    background-color: #174b9b;
}

/* Ürün bilgi tabloları */

.product-info-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    color: #555555;
    font-size: 14px;
}

.product-info-table th,
.product-info-table td {
    padding: 4px 0;
    border: 0;
    line-height: 1.55;
    text-align: left;
    vertical-align: top;
}

.product-info-table th {
    width: 155px;
    padding-right: 18px;
    color: #444444;
    font-weight: 600;
}

.product-info-table td {
    color: #555555;
    overflow-wrap: anywhere;
}

.product-info-table td span {
    display: block;
    margin-bottom: 3px;
}

.product-info-table td span:last-child {
    margin-bottom: 0;
}

/* Son detaylı tablo */

.product-detail-wrapper {
    width: 100%;
    overflow-x: auto;
}

.product-detail-table {
    min-width: 690px;
    table-layout: auto;
}

.product-detail-table th,
.product-detail-table td {
    padding: 6px 8px;
    border: 1px solid #dddddd;
}

.product-detail-table th {
    width: auto;
    background-color: #f4f6f8;
    font-weight: 600;
}

.product-detail-heading th,
.product-detail-heading td {
    color: #174b9b;
    background-color: #f4f6f8;
    font-weight: 600;
}

/* Tablet */

@media (max-width: 991.98px) {
    .products-section {
        padding: 55px 0 75px;
    }

    .products-section .container {
        padding-right: 25px;
        padding-left: 25px;
    }

    .products-layout {
        grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
        gap: 28px;
    }

    .product-info-block h2 {
        font-size: 15px;
    }

    .product-info-table {
        font-size: 13px;
    }

    .product-info-table th {
        width: 125px;
        padding-right: 12px;
    }

    .product-info-block h2::after {
        left: -368px;
    }

    .product-side-image {
        margin-top: 44px;
    }
}

/* Mobil */

@media (max-width: 767.98px) {
    .products-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-side-image,
    .product-info-block {
        grid-column: 1;
        grid-row: auto !important;
    }

    /* Mobilde görsel ve açıklama sırayla gelir */

    .product-side-image:nth-child(1) {
        order: 1;
    }

    .product-info-block:nth-child(1) {
        order: 2;
    }

    .product-side-image:nth-child(2) {
        order: 3;
    }

    .product-info-block:nth-child(2) {
        order: 4;
    }

    .product-side-image:nth-child(3) {
        order: 5;
    }

    .product-info-block:nth-child(3) {
        order: 6;
    }

    .product-side-image:nth-child(4) {
        order: 7;
    }

    .product-info-block:nth-child(4) {
        order: 8;
    }

    .product-side-image:nth-child(5) {
        order: 9;
    }

    .product-info-block:nth-child(5) {
        order: 10;
    }

    .product-side-image:nth-child(6) {
        order: 11;
    }

    .product-info-block:nth-child(6) {
        order: 12;
    }

    .product-side-image:nth-child(7) {
        order: 13;
    }

    .product-info-block:nth-child(7) {
        order: 14;
    }

    .product-side-image:nth-child(8) {
        order: 15;
    }

    .product-info-block {
        margin-bottom: 20px;
        padding-bottom: 25px;
        border-bottom: 1px solid #dddddd;
    }

    .product-info-block:nth-child(7) {
        border-bottom: 0;
    }

    .product-side-image {
        margin-top: 0;
    }

    .product-info-block h2::after {
        left: 0;
}
}

/* Telefon */

@media (max-width: 575.98px) {
    .products-section {
        padding: 40px 0 60px;
    }

    .products-section .container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .product-info-block h2 {
        font-size: 15px;
    }

    .product-info-table {
        font-size: 13px;
    }

    .product-info-table th {
        width: 120px;
        padding-right: 10px;
    }
}
