.e-commerce-layout {
    display: flex;
    gap: 30px;
    font-family: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
    color: #333;
    align-items: flex-start;
}

.filter-sidebar {
    width: 260px;
    min-width: 260px;
    position: sticky;
    top: 20px;
    background: #fff;
    border-right: 1px solid #eee;
    padding-right: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.filter-box {
    margin-bottom: 25px;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 20px;
}

    .filter-box:last-child {
        border-bottom: none;
    }

.filter-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 15px;
    color: #1a1a1a;
    transition: color 0.2s;
    font-weight: 500;
}

    .custom-checkbox:hover {
        color: #0f3178;
    }

    .custom-checkbox input {
        margin-right: 10px;
        width: 16px;
        height: 16px;
        cursor: pointer;
        accent-color: #f27a1a;
    }

.price-range-inputs {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.price-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

    .price-input:focus {
        border-color: #f27a1a;
    }

.btn-filter-search {
    width: 100%;
    background-color: #fff;
    border: 1px solid #0f3178;
    color: #0f3178;
    padding: 6px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-filter-search:hover {
        background-color: #0f3178;
        color: #fff;
    }

.product-grid-wrapper {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* ===== ÃœRÃœN KARTI ===== */
.product-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 10px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

    .product-card:hover {
        box-shadow: 0 6px 20px rgba(0,0,0,0.08);
        border-color: transparent;
        transform: translateY(-3px);
    }

/* ===== ÃœRÃœN RESÄ°M ALANI (MASAÃœSTÃœ) ===== */
.p-image-container {
    width: 100%;
    height: 220px;
    background-color: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

    .p-image-container img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        mix-blend-mode: multiply;
        image-rendering: -webkit-optimize-contrast;
        transition: transform 0.4s ease;
    }

.product-card:hover .p-image-container img {
    transform: scale(1.04);
}

/* ===== ÃœRÃœN BÄ°LGÄ° ALANI ===== */
.p-info {
    padding: 8px 5px 5px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.p-brand {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #000;
    letter-spacing: 0.8px;
}

.p-name {
    font-size: 14.5px;
    color: #444;
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
}

.p-code {
    font-size: 11px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #888;
    background: #f3f4f6;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    width: fit-content;
    letter-spacing: 0.3px;
}

/* ===== FÄ°YAT ALANI ===== */
.product-price {
    font-size: 18px !important;
    font-weight: 600;
    color: #111 !important;
    margin-top: auto;
    margin-bottom: 14px;
    letter-spacing: -0.2px;
    line-height: 1.3;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
}

    .product-price span {
        display: block;
        font-size: 13.5px;
        font-weight: 400;
        color: #b0b0b0;
        text-decoration: line-through;
        margin-top: 3px;
    }

/* ===== SEPETE EKLE BUTONU ===== */
.add-to-cart {
    width: 100%;
    background-color: #dedede;
    color: #000;
    border: 1px solid #5a5a5a;
    padding: 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

    .add-to-cart:hover {
        background-color: #0f3178;
        color: #fff;
        border-color: #cccccc;
        box-shadow: 0 4px 14px rgba(43, 196, 114, 0.3);
    }

    .add-to-cart:active {
        transform: scale(0.98);
    }

/* Buton her zaman gÃ¶rÃ¼nÃ¼r */
.product-card:hover .add-to-cart {
    opacity: 1;
    transform: translateY(0);
}

.mobile-filter-trigger,
.mobile-filter-header,
.filter-overlay,
.btn-show-results-mobile {
    display: none;
}

/* ===== KATEGORÄ° LÄ°NKLERÄ° ===== */
.filter-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .filter-box ul li {
        margin-bottom: 4px;
    }

        .filter-box ul li a {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: #555;
            font-size: 15px;
            font-weight: 500;
            padding: 10px 12px;
            border-radius: 6px;
            transition: all 0.2s ease-in-out;
            background-color: transparent;
        }

            .filter-box ul li a i {
                font-size: 11px;
                color: #b0b0b0;
                margin-right: 12px;
                transition: color 0.2s ease;
            }

            .filter-box ul li a:hover {
                background-color: #f5f5f5;
                color: #0f3178;
                padding-left: 18px;
            }

                .filter-box ul li a:hover i {
                    color: #0f3078;
                }

            .filter-box ul li a.active {
                background-color: #f27a1a;
                color: #fff;
            }

                .filter-box ul li a.active i {
                    color: #fff;
                }

/* ==========================================================
   RESPONSÄ°VE
   ========================================================== */

/* Tablet ve altÄ± (992px) */
@media (max-width: 992px) {

    .e-commerce-layout {
        flex-direction: column;
        gap: 15px;
        position: relative;
    }

    .product-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
    }

    .product-card {
        padding: 8px;
        border-radius: 8px;
    }

        .product-card:hover {
            transform: none;
            box-shadow: none;
        }

    /* --- RESÄ°M DÃœZELTMESÄ° --- */
    .p-image-container {
        height: 200px;
        padding: 10px;
        background-color: #fafafa;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

        .p-image-container img {
            max-width: 100%;
            max-height: 100%;
            width: 60%;
            height: auto;
            object-fit: contain;
            mix-blend-mode: multiply;
        }

    .p-brand {
        font-size: 15px;
    }

    .p-name {
        font-size: 12.5px;
        -webkit-line-clamp: 2;
    }

    .p-code {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .product-price {
        font-size: 20px;
        margin-bottom: 10px;
        padding: 6px 0;
    }

        .product-price span {
            font-size: 12px;
        }

    /* Mobilde buton her zaman gÃ¶rÃ¼nÃ¼r */
    .add-to-cart {
        padding: 10px;
        margin-top: 5px;
        font-size: 12.5px;
        border-radius: 6px;
    }

    /* Mobil filtre butonu */
    .mobile-filter-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        background: #fff;
        border: 1px solid #ddd;
        padding: 12px;
        border-radius: 8px;
        font-weight: 600;
        color: #333;
        font-size: 14px;
        cursor: pointer;
        margin-bottom: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    /* Filtre sidebar mobil */
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        height: 100vh;
        background: #fff;
        z-index: 1050;
        transition: left 0.3s ease-in-out;
        box-shadow: 4px 0 15px rgba(0,0,0,0.1);
        padding: 0;
        border: none;
        display: flex;
        flex-direction: column;
    }

        .filter-sidebar.active {
            left: 0;
        }

        .filter-sidebar .filter-box {
            padding: 20px;
            overflow-y: auto;
        }

    .mobile-filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        background: #fff;
        font-weight: bold;
        font-size: 16px;
    }

    .close-filter-btn {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #555;
    }

    .btn-show-results-mobile {
        display: block;
        margin: auto 20px 20px 20px;
        padding: 12px;
        background: #f27a1a;
        color: white;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
    }

    .filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
        display: none;
        backdrop-filter: blur(2px);
    }

        .filter-overlay.active {
            display: block;
        }
}

/* Tek sÃ¼tun - Ã§ok kÃ¼Ã§Ã¼k ekranlar */
@media (max-width: 400px) {
    .product-grid-wrapper {
        grid-template-columns: 1fr;
    }

    .p-image-container {
        text-align: center;
    }

    .p-image-container {
        height: 250px;
    }
}
