﻿.pf-wrap {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 24px;
    align-items: flex-start;
    font-size: 14px;
    margin-top: 24px;
}

.pf-sidebar {
    background: #ffffff;
    border: 1px solid #dde1e7;
    border-top: 4px solid #feb324;
    padding: 20px;
}

    .pf-sidebar > div {
        margin-top: 0 !important;
    }

.pf-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5f5f5;
}

.pf-sidebar-title {
    font-size: 13px;
    color: #1a1a1a;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .pf-sidebar-title::before {
        content: '';
        display: inline-block;
        width: 4px;
        height: 14px;
        background: #feb324;
    }

.pf-clear {
    font-size: 11px;
    color: #feb324;
    cursor: pointer;
    background: transparent;
    border: 1px solid #feb324;
    padding: 3px 10px;
    font-family: inherit;
    letter-spacing: 0.05em;
    transition: all 0.15s;
}

    .pf-clear:hover {
        background: #feb324;
        color: #ffffff;
    }

.pf-group {
    margin-bottom: 18px;
    margin-top: 0 !important;
}

.pf-group-title {
    font-size: 10px;
    color: #999999;
    letter-spacing: 0.1em;
    padding-bottom: 7px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f5f5f5;
}

.pf-check-item {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 7px;
    padding: 5px 8px;
    border-left: 2px solid transparent;
    transition: all 0.12s;
    cursor: pointer;
}

    .pf-check-item:hover {
        background: #f5f5f5;
        border-left-color: #feb324;
    }

    .pf-check-item input[type="checkbox"] {
        -webkit-appearance: checkbox;
        appearance: checkbox;
        width: 14px !important;
        height: 14px !important;
        min-width: 14px;
        cursor: pointer;
        accent-color: #feb324;
        flex-shrink: 0;
        margin: 0;
        padding: 0;
    }

    .pf-check-item label {
        font-size: 10px;
        color: #999999;
        cursor: pointer;
        font-family: 'FuturaTr', sans-serif;
        line-height: 1.4;
        font-weight: 500;
    }

.pf-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pf-count-badge {
    font-size: 11px;
    color: #555555;
    background: #f5f5f5;
    border: 1px solid #dde1e7;
    padding: 5px 14px;
    letter-spacing: 0.05em;
}

.pf-active-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pf-tag {
    font-size: 11px;
    background: #fff8e6;
    color: #7a4f00;
    padding: 4px 10px;
    border: 1px solid #feb324;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pf-tag-x {
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    color: #feb324;
}

.pf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-family: 'FuturaTr', sans-serif;
    table-layout: fixed;
}

    /* ===== THEAD ===== */

    .pf-table thead {
        position: relative;
    }

        .pf-table thead tr.row-group th {
            background: #fafafa;
            color: #ffffff;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            padding: 10px 12px 10px;
            text-align: center;
            border-right: 1px solid #fafafa;
            vertical-align: middle;
        }

            .pf-table thead tr.row-group th:last-child {
                border-right: none;
            }

            .pf-table thead tr.row-group th.group-standby {
                background: #feb324;
                color: #1a1a1a;
                border-right: 1px solid #e6a420;
                position: relative;
            }

                .pf-table thead tr.row-group th.group-standby::before {
                    content: '';
                    position: absolute;
                    left: 0;
                    top: 0;
                    bottom: 0;
                    width: 3px;
                    background: #fafafa;
                }

            .pf-table thead tr.row-group th.group-prime {
                background: #feb324;
                color: #1a1a1a;
                border-right: 1px solid #e6a420;
                position: relative;
            }

                .pf-table thead tr.row-group th.group-prime::before {
                    content: '';
                    position: absolute;
                    left: 0;
                    top: 0;
                    bottom: 0;
                    width: 3px;
                    background: #1a1a1a;
                }

        .pf-table thead tr.row-cols th {
            background: #fafafa;
            color: #feb324;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.09em;
            padding: 8px 12px;
            text-align: center;
            border-right: 1px solid #fafafa;
            border-bottom: 3px solid #feb324;
            vertical-align: middle;
            white-space: nowrap;
        }

            .pf-table thead tr.row-cols th:last-child {
                border-right: none;
            }

            .pf-table thead tr.row-cols th.col-kva {
                background: #2a2200;
                color: #feb324;
                border-right: 1px solid #3d3200;
                font-size: 11px;
                font-weight: 800;
            }

            .pf-table thead tr.row-cols th.col-kw {
                background: #1e1900;
                color: #ccaa44;
                border-right: 1px solid #333333;
                font-size: 11px;
            }

            .pf-table thead tr.row-cols th.col-model {
                text-align: left;
                color: #ffffff;
            }

    /* ===== TBODY ===== */

    .pf-table tbody tr {
        border-bottom: 1px solid #eeeeee;
        transition: background 0.1s;
    }

        .pf-table tbody tr:nth-child(even) {
            background: #fafafa;
        }

        .pf-table tbody tr:last-child {
            border-bottom: none;
        }

        .pf-table tbody tr:hover {
            background: #fff8e6;
            box-shadow: inset 3px 0 0 #feb324;
        }

    .pf-table tbody td {
        padding: 7px 1px;
        text-align: center;
        color: #333333;
        font-size: 13px;
        border-right: 1px solid #eeeeee;
        vertical-align: middle;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

        .pf-table tbody td:last-child {
            border-right: none;
        }

.pf-checkbox-cell input[type="checkbox"] {
    -webkit-appearance: checkbox;
    appearance: checkbox;
    width: 14px !important;
    height: 14px !important;
    cursor: pointer;
    accent-color: #feb324;
    margin: 0;
}

/* ===== THUMB & LİGHTBOX ===== */

.pf-thumb {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border: 1px solid #dde1e7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
    cursor: zoom-in;
    transition: border-color 0.15s;
}

    .pf-thumb:hover {
        border-color: #feb324;
    }

    .pf-thumb img {
        width: 44px;
        height: 44px;
        object-fit: contain;
        transition: transform 0.2s;
    }

    .pf-thumb:hover img {
        transform: scale(1.15);
    }

/* Lightbox */
.pf-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

    .pf-lightbox.is-open {
        display: flex;
    }

    .pf-lightbox img {
        max-width: 88vw;
        max-height: 88vh;
        object-fit: contain;
        border-radius: 4px;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
        cursor: default;
    }

.pf-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: border-color 0.15s, background 0.15s;
}

    .pf-lightbox-close:hover {
        border-color: #feb324;
        background: rgba(254, 179, 36, 0.15);
        color: #feb324;
    }

/* ===== DİĞER ELEMANLAR ===== */

.pf-model-name {
    color: #999;
    font-size: 13px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.pf-new-badge {
    display: inline-block;
    font-size: 9px;
    background: #feb324;
    color: #1a1a1a;
    padding: 2px 7px;
    font-weight: 700;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pf-kva {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 13px;
}

.pf-kw {
    color: #666666;
    font-size: 12px;
}

.pf-motor {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pf-btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

    .pf-btn-action:hover {
        border-color: #999;
        color: #333;
    }

.pf-btn-pdf:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

.pf-btn-detail {
    width: 32px;
    height: 32px;
    background: #feb324;
    color: #1a1a1a;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.15s;
    text-decoration: none;
}

    .pf-btn-detail:hover {
        background: #e6a420;
        color: #1a1a1a;
    }

.pf-btn-quote:hover {
    background: #f39c12;
    border-color: #f39c12;
    color: #fff;
}

.pf-btn-compare-row {
    width: 32px;
    height: 32px;
    background: #1a1a1a;
    color: #feb324;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.15s;
}

    .pf-btn-compare-row:hover {
        background: #333333;
    }

.pf-actions {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

/* ===== KARŞILAŞTIRMA BAR ===== */

.compare-bar {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-top: 3px solid #feb324;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 9999;
    transition: bottom 0.35s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

    .compare-bar.visible {
        bottom: 0;
    }

.compare-bar-items {
    display: flex;
    gap: 12px;
    flex: 1;
    overflow-x: auto;
    padding: 4px 0;
}

.compare-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 6px 10px;
    min-width: 180px;
    max-width: 220px;
    position: relative;
}

    .compare-bar-item img {
        width: 36px;
        height: 36px;
        object-fit: contain;
        background: #fff;
        border-radius: 4px;
        padding: 2px;
    }

.compare-bar-item-name {
    color: #eee;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compare-bar-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #e74c3c;
    color: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s;
}

    .compare-bar-remove:hover {
        transform: scale(1.2);
        background: #c0392b;
    }

.compare-bar-info {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

    .compare-bar-info strong {
        color: #feb324;
    }

.compare-bar-btn {
    background: #feb324;
    color: #1a1a1a;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .compare-bar-btn:hover {
        background: #e6a420;
    }

    .compare-bar-btn:disabled {
        background: #555;
        cursor: not-allowed;
    }

.compare-bar-clear {
    color: #999;
    background: none;
    border: 1px solid #555;
    padding: 8px 14px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

    .compare-bar-clear:hover {
        border-color: #e74c3c;
        color: #e74c3c;
    }

/* ===== MOBİL ===== */

.pf-mobile-filter-toggle {
    display: none;
}

.pf-sidebar-close {
    display: none;
}

@media (max-width: 900px) {

    .pf-wrap {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 14px;
    }

    .pf-sidebar {
        position: fixed;
        top: 0;
        left: -340px;
        width: 300px;
        max-width: 85vw;
        height: 100dvh;
        overflow-y: auto;
        z-index: 10000;
        transition: left .28s ease;
        box-shadow: 2px 0 20px rgba(0,0,0,.25);
        border-top: none;
        border-left: 4px solid #feb324;
        padding-top: 56px;
    }

        .pf-sidebar.is-open {
            left: 0;
        }

    .pf-sidebar-close {
        display: flex;
        position: absolute;
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        background: #1a1a1a;
        color: #feb324;
        border: none;
        font-size: 18px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .pf-sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.55);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s;
    }

        .pf-sidebar-overlay.is-open {
            opacity: 1;
            visibility: visible;
        }

    .pf-mobile-filter-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #1a1a1a;
        color: #feb324;
        border: none;
        padding: 8px 14px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
        cursor: pointer;
    }

        .pf-mobile-filter-toggle:hover {
            background: #333;
        }

    .pf-top-bar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pf-active-tags {
        width: 100%;
        order: 3;
    }
}

@media (max-width: 768px) {

    #breadcrumbs h1 {
        font-size: 20px;
    }

    #breadcrumbs .breadcrumb {
        font-size: 11px;
        margin-top: 10px;
    }

    .pf-table,
    .pf-table tbody,
    .pf-table tr,
    .pf-table td {
        display: block;
        width: 100% !important;
    }

        .pf-table thead {
            display: none;
        }

    .pf-table {
        border-collapse: separate;
        border-spacing: 0;
    }

        .pf-table tbody tr {
            background: #fff !important;
            border: 1px solid #dde1e7;
            border-left: 4px solid #feb324;
            margin-bottom: 14px;
            display: grid;
            grid-template-columns: 64px 1fr auto;
            grid-template-areas:
                "img  title  check"
                "spec spec   spec"
                "act  act    act";
            column-gap: 14px;
            row-gap: 8px;
            align-items: center;
            padding: 14px 14px 12px 14px;
        }

            .pf-table tbody tr:nth-child(even) {
                background: #fff !important;
            }

            .pf-table tbody tr:hover {
                box-shadow: none;
                background: #fff !important;
            }

            .pf-table tbody tr.selected {
                background: #fff8e6 !important;
                border-left-color: #e6a420;
            }

        .pf-table tbody td {
            border: none !important;
            padding: 0 !important;
            text-align: left !important;
        }

        .pf-table tbody .pf-checkbox-cell {
            grid-area: check;
            text-align: right !important;
        }


        .pf-table tbody tr > td:nth-of-type(2) {
            grid-area: img;
            overflow: hidden; 
            display: flex;
            align-items: center;
            justify-content: center;
        }


    .pf-thumb {
        width: 64px;
        height: 64px;
        margin: 0;
        overflow: hidden;
        flex-shrink: 0; 
        border-radius: 4px; 
    }

        .pf-thumb img {
            width: 58px;
            height: 58px;
            object-fit: contain;
        }

    .pf-table tbody tr > td:nth-of-type(3) {
        grid-area: title;
    }

    .pf-model-name {
        font-size: 14px;
        line-height: 1.3;
        max-width: unset;
        white-space: normal;
    }

    .pf-table tbody td[data-label] {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 10px !important;
        background: #f8f9fb;
        border-radius: 2px;
        font-size: 12px;
        margin-top: 4px;
    }

        .pf-table tbody td[data-label]::before {
            content: attr(data-label);
            font-size: 10px;
            font-weight: 700;
            color: #888;
            text-transform: uppercase;
            letter-spacing: .08em;
        }

    .pf-table tbody tr > td:last-of-type {
        grid-area: act;
        padding-top: 10px !important;
        border-top: 1px solid #f0f0f0 !important;
        margin-top: 4px;
    }

    .pf-actions {
        justify-content: flex-start;
        gap: 8px;
    }

    .pf-btn-action {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .pf-count-badge {
        padding: 5px 10px;
    }

    .compare-bar {
        flex-wrap: wrap;
        padding: 10px 12px;
        gap: 8px;
    }

    .compare-bar-items {
        width: 100%;
    }

    .compare-bar-item {
        min-width: 140px;
    }
}

@media (max-width: 420px) {
    .pf-table tbody tr {
        grid-template-columns: 56px 1fr auto;
        padding: 10px;
    }

    .pf-thumb {
        width: 56px;
        height: 56px;
    }

    .pf-model-name {
        font-size: 13px;
    }

    .pf-btn-action {
        width: 36px;
        height: 36px;
    }
}
