﻿/* ===========================================================
   GENEL
=========================================================== */

.mst-products-page {
    background: #f5f7fb;
    padding: 40px 0 70px;
}

    .mst-products-page a {
        text-decoration: none;
    }

    .mst-products-page h3,
    .mst-products-page h4,
    .mst-products-page h5 {
        margin: 0;
    }


/* ===========================================================
   SOL FİLTRE
=========================================================== */

.filter-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

    .filter-card h5 {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 18px;
    }

.filter-search input {
    height: 48px;
    border-radius: 10px;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .filter-list label {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        font-size: 15px;
        color: #555;
        transition: .25s;
    }

        .filter-list label:hover {
            color: #f58220;
        }

    .filter-list input {
        width: 18px;
        height: 18px;
    }


/* ===========================================================
   TOOLBAR
=========================================================== */

.products-toolbar {
    background: #fff;
    border-radius: 16px;
    padding: 20px 28px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

    .products-toolbar h3 {
        font-size: 28px;
        font-weight: 700;
    }

    .products-toolbar span {
        color: #888;
        display: block;
        margin-top: 6px;
    }

.toolbar-right {
    width: 250px;
}


/* ===========================================================
   ÜRÜN KARTI
=========================================================== */

.product-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    transition: .35s;
    box-shadow: 0 8px 25px rgba(0,0,0,.07);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 45px rgba(0,0,0,.12);
    }


/* ===========================================================
   RESİM
=========================================================== */

.product-image {
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 25px;
    border-bottom: 1px solid #eee;
}

    .product-image a {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .product-image img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        transition: .35s;
    }

.product-card:hover .product-image img {
    transform: scale(1.08);
}


/* ===========================================================
   BODY
=========================================================== */

.product-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-brand {
    color: #f58220;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-code {
    margin-top: 6px;
    font-size: 13px;
    color: #999;
}

.product-title {
    margin-top: 14px;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    line-height: 1.45;
    height: 55px;
    overflow: hidden;
}

.product-package {
    margin-top: 16px;
    color: #666;
    font-size: 14px;
}

    .product-package strong {
        color: #111;
    }

.product-stock {
    margin-top: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stock-green {
    color: #27ae60;
}

.stock-red {
    color: #dc3545;
}

.stock-orange {
    color: #ff8c00;
}

/* ===========================================================
   FİYAT
=========================================================== */

.product-price-area {
    margin-top: 18px;
}

.login-info {
    font-size: 14px;
    color: #666;
    line-height: 22px;
}

    .login-info a {
        color: #f58220;
        font-weight: 700;
    }

.price {
    font-size: 30px;
    font-weight: 800;
    color: #111;
}


/* ===========================================================
   BUTONLAR
=========================================================== */

.product-buttons {
    margin-top: auto;
    display: flex;
    gap: 12px;
    padding-top: 25px;
}

.btn-detail {
    flex: 1;
    height: 48px;
    border-radius: 10px;
    background: #f58220;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    transition: .30s;
}

    .btn-detail:hover {
        background: #dd6f11;
        color: #fff;
    }

.btn-cart {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: #222;
    color: #fff;
    transition: .30s;
}

    .btn-cart:hover {
        background: #f58220;
    }


/* ===========================================================
   SAYFALAMA
=========================================================== */

.pagination .page-link {
    border: none;
    margin: 0 4px;
    border-radius: 10px;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #444;
}

.pagination .active .page-link {
    background: #f58220;
}


/* ===========================================================
   RESPONSIVE
=========================================================== */

@media(max-width:992px) {

    .products-toolbar {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .toolbar-right {
        width: 100%;
    }
}

@media(max-width:768px) {

    .product-image {
        height: 180px;
    }

    .product-title {
        font-size: 16px;
        height: auto;
    }

    .filter-card {
        padding: 18px;
    }
}


.category-link {
    display: block;
    padding: 10px 15px;
    color: #444;
    font-size: 15px;
    border-radius: 8px;
    transition: .25s;
}

    .category-link:hover {
        background: #fff4ea;
        color: #f58220;
        padding-left: 22px;
    }

.accordion-button {
    padding: 12px 15px;
    font-size: 15px;
    font-weight: 600;
    background: white;
    box-shadow: none !important;
}

    .accordion-button:not(.collapsed) {
        background: #fff;
        color: #f58220;
    }

.accordion-item {
    border: none;
}

.accordion-body {
    padding-bottom: 8px;
}


.brand-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* Yüzlerce marka olduğu için liste artık sonsuza kadar uzamıyor;
       belli bir yükseklikten sonra kendi içinde kayıyor. */
    max-height: 340px;
    overflow-y: auto;
    padding-right: 4px;
}

    /* İnce, sade bir scrollbar (Chrome/Edge/Safari) */
    .brand-list::-webkit-scrollbar {
        width: 6px;
    }

    .brand-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .brand-list::-webkit-scrollbar-thumb {
        background: #e2e2e2;
        border-radius: 10px;
    }

        .brand-list::-webkit-scrollbar-thumb:hover {
            background: #ccc;
        }

    .brand-list {
        scrollbar-width: thin;
        scrollbar-color: #e2e2e2 transparent;
    }

/* Marka arama kutusu */
.sidebar-brand-search {
    position: relative;
    margin-bottom: 14px;
}

    .sidebar-brand-search i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #999;
        font-size: 14px;
    }

    .sidebar-brand-search input {
        width: 100%;
        height: 42px;
        border: 1px solid #eee;
        background: #f8f9fa;
        border-radius: 10px;
        padding: 0 14px 0 36px;
        font-size: 14px;
        transition: .25s;
    }

        .sidebar-brand-search input:focus {
            outline: none;
            border-color: var(--primary);
            background: #fff;
        }

.brand-empty {
    display: none;
    color: #999;
    font-size: 14px;
    padding: 10px 14px;
}

    .brand-empty.show {
        display: block;
    }

.brand-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    color: #444;
    transition: .25s;
}

    .brand-link:hover {
        background: #fff4ea;
        color: #f58220;
        padding-left: 20px;
    }

    .brand-link span {
        background: #f5f7fb;
        min-width: 30px;
        height: 26px;
        border-radius: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 12px;
        color: #666;
    }

.mst-breadcrumb {
    margin-bottom: 25px;
    background: transparent;
    padding: 0;
}

    .mst-breadcrumb .breadcrumb-item a {
        color: #666;
    }

    .mst-breadcrumb .breadcrumb-item.active {
        color: #f58220;
        font-weight: 600;
    }