/**
 * Product technical specification table — TR / EN / RU
 */

.product-table--modern {
    padding: 0 0 2.5rem;
    overflow: visible;
}

.product-table--modern .container,
.product-table--modern .inner-container {
    overflow: visible;
}

.product-table--modern .inner-container--white {
    padding-top: 2.25rem;
    padding-bottom: 2.5rem;
}

.product-table__head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2rem;
}

.product-table__eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1b6a92;
    margin-bottom: 0.5rem;
}

.product-table__head h2 {
    margin: 0;
    font-size: 1.65rem;
    color: #14526f;
}

.product-table--modern .product-table__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 36%);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 991px) {
    .product-table--modern .product-table__layout {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

.product-table--modern .product-table__content {
    padding: 0;
    color: inherit;
    max-width: none;
    min-width: 0;
    overflow: visible;
}

.product-table--modern .product-table__image {
    position: static;
    display: block;
    height: auto;
    padding: 0;
}

.product-table--modern .product-table__image .pm-product-image-trigger {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d8e6ef;
    box-shadow: 0 8px 28px rgba(15, 45, 68, 0.1);
    background: #f4f8fb;
}

.product-table--modern .product-table__image .pm-product-image-trigger img {
    float: none;
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Scroll container */
.pm-spec-table-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    border-radius: 12px;
    border: 1px solid #d8e6ef;
    box-shadow: 0 4px 22px rgba(15, 45, 68, 0.08);
    background: #fff;
    scrollbar-width: thin;
    scrollbar-color: #1b6a92 #e8f0f5;
}

.pm-spec-table-wrap::-webkit-scrollbar {
    height: 6px;
}

.pm-spec-table-wrap::-webkit-scrollbar-track {
    background: #e8f0f5;
    border-radius: 0 0 12px 12px;
}

.pm-spec-table-wrap::-webkit-scrollbar-thumb {
    background: #1b6a92;
    border-radius: 999px;
}

.pm-spec-table-wrap::after {
    content: '';
    display: none;
}

.pm-spec-table-wrap.pm-spec-table-wrap--scrollable::after {
    display: block;
    padding: 0.45rem 0.75rem 0.55rem;
    font-size: 0.72rem;
    line-height: 1.3;
    text-align: center;
    color: #5a7a8c;
    background: #f4f8fb;
    border-top: 1px solid #d8e6ef;
    content: 'Tabloyu görmek için yatay kaydırın \2192';
}

html[lang="en"] .pm-spec-table-wrap.pm-spec-table-wrap--scrollable::after {
    content: 'Swipe horizontally to view the table \2192';
}

html[lang="ru"] .pm-spec-table-wrap.pm-spec-table-wrap--scrollable::after {
    content: 'Прокрутите таблицу влево-вправо \2192';
}

/* Override style.min.css mobile table { display: block } */
.pm-spec-table-wrap table {
    display: table !important;
    table-layout: auto !important;
    width: max-content !important;
    min-width: 100%;
    max-width: none !important;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    background: #fff;
}

.pm-spec-table-wrap table th,
.pm-spec-table-wrap table td {
    padding: 0.72rem 0.85rem;
    vertical-align: middle;
    border-bottom: 1px solid #e8f0f5;
    text-align: center;
    font-style: normal !important;
    opacity: 1 !important;
    white-space: nowrap;
}

.pm-spec-table-wrap table tr:last-child th,
.pm-spec-table-wrap table tr:last-child td {
    border-bottom: none;
}

/* Override legacy .product-table__content rules from style.min.css */
.product-table--modern .product-table__content table th {
    position: static;
    left: auto;
    z-index: auto;
    text-align: left;
    font-weight: 600;
    color: #14526f;
    background: #f4f8fb;
    white-space: normal;
    min-width: 10.5rem;
    max-width: 14rem;
    font-family: inherit;
    padding-right: 0.85rem;
}

.product-table--modern .product-table__content table td {
    opacity: 1;
}

.product-table--modern .product-table__content table tr *:nth-child(2) {
    font-family: inherit;
}

.pm-spec-table-wrap table td:nth-child(2) {
    font-weight: 700;
    color: #1b6a92;
    background: #fafcfd;
    white-space: nowrap;
    min-width: 3.25rem;
}

.pm-spec-table-wrap table td:nth-child(n+3) {
    font-weight: 600;
    color: #2a3a45;
    min-width: 3.75rem;
}

.pm-spec-table-wrap table tbody tr:nth-child(even) td:nth-child(n+3) {
    background: #fafcfd;
}

.pm-spec-table-wrap table tbody tr:hover td {
    background: #eef6fb;
}

.pm-spec-table-wrap table tbody tr:hover th {
    background: #e8f2f8;
}

.pm-spec-table-wrap table tr.pm-spec-table__model-row th,
.pm-spec-table-wrap table tr.pm-spec-table__model-row td {
    background: #14526f;
    color: #fff;
    border-bottom: none;
    font-weight: 700;
    text-align: center;
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    white-space: nowrap;
}

.pm-spec-table-wrap table tr.pm-spec-table__capacity-row th {
    background: #1b6a92;
    color: #fff;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.pm-spec-table-wrap table tr.pm-spec-table__capacity-row td {
    background: #1b6a92;
    color: #fff;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.pm-spec-table-wrap table tr.pm-spec-table__capacity-row td:nth-child(2) {
    background: #1b6a92;
    color: rgba(255, 255, 255, 0.85);
}

.pm-spec-table-wrap table .text--bold,
.pm-spec-table-wrap table strong {
    font-weight: 700;
}

.product-table--modern .product-table__table-hint {
    margin: 1rem 0 0;
    padding: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #5a7a8c;
    opacity: 1;
}

.pm-spec-table-wrap table .pm-spec-table__empty {
    display: none !important;
}

/* Mobile: sticky label column + edge-to-edge scroll */
@media (max-width: 767px) {
    .product-table--modern .inner-container--white {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .pm-spec-table-wrap {
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
        max-width: calc(100% + 2rem);
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .pm-spec-table-wrap table {
        font-size: 0.8rem;
    }

    .pm-spec-table-wrap table th,
    .pm-spec-table-wrap table td {
        padding: 0.58rem 0.65rem;
    }

    .product-table--modern .product-table__content table th:first-child {
        position: sticky;
        left: 0;
        z-index: 2;
        min-width: 8.75rem;
        max-width: 9.5rem;
        box-shadow: 4px 0 8px rgba(15, 45, 68, 0.1);
    }

    .pm-spec-table-wrap table tr.pm-spec-table__capacity-row th:first-child {
        position: sticky;
        left: 0;
        z-index: 3;
        background: #1b6a92;
        color: #fff;
    }

    .pm-spec-table-wrap table tr.pm-spec-table__model-row th:first-child {
        position: sticky;
        left: 0;
        z-index: 3;
        background: #14526f;
        color: #fff;
    }
}

@media (max-width: 991px) {
    .product-table--modern .product-table__image {
        display: block;
    }
}
