/* Katalog stilleri ilk çizimden önce yüklenir. */

/* Views/Shared/Components/CategoryMenu/Default.cshtml */
/* MOBİL SABİT İKON STİLİ */
    .mobile-filter-trigger {
        position: fixed;
        left: 20px;
        bottom: 30px;
        width: 55px;
        height: 55px;
        background-color: #004a5d;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        z-index: 9999;
        cursor: pointer;
        transition: transform 0.2s;
    }
    .mobile-filter-trigger:active { transform: scale(0.9); }

    /* GENEL STİLLER (#004a5d Temalı) */
    .catalog-sidebar { border: 1px solid #eee !important; }

    .all-products-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        padding: 12px 15px;
        text-decoration: none;
        color: #333;
        font-weight: 700;
        font-size: 12px;
        background: #f8f9fa;
        border-bottom: 1px solid #eee;
        text-align: center;
    }

    .all-products-btn.active {
        background-color: #004a5d !important;
        color: #fff !important;
    }

    .subgroup-wrapper {
        max-height: 60vh;
        overflow-y: auto;
    }

    .subgroup-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .subgroup-item {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 8px;
        height: 112px;
        box-sizing: border-box;
        padding: 10px;
        text-decoration: none;
        color: #444;
        font-size: 11px;
        font-weight: 600;
        border-bottom: 1px solid #eee;
        border-right: 1px solid #eee;
        background: #fff;
        min-width: 0;
        text-align: center;
    }

    .subgroup-item { border-right: none; }

    .subgroup-item.active {
        background-color: #f0f7f9 !important;
        color: #004a5d !important;
        box-shadow: inset 3px 0 0 #004a5d;
    }

    .subgroup-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-transform: uppercase;
    }

    .subgroup-dot {
        width: 4px;
        height: 4px;
        background: #ccc;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .catalog-sidebar .subgroup-image,
    .offcanvas .subgroup-image {

        height: 58px;
       
        object-fit: contain;
        flex: 0 0 58px;
        margin: 0;
    }

    .subgroup-item.active .subgroup-dot { background: #004a5d; }

    /* Scrollbar */
    .subgroup-wrapper::-webkit-scrollbar { width: 4px; }
    .subgroup-wrapper::-webkit-scrollbar-thumb {
        background: #004a5d;
        border-radius: 10px;
    }

    /* ISITEK MARKET ana renk */
    .all-products-btn.active, .all-brands-btn.active { background: #0ea5e9 !important; border-color: #0ea5e9 !important; color: #ffffff !important; }
    .all-products-btn:hover, .all-brands-btn:hover { background: #e8f7fe !important; border-color: #0ea5e9 !important; color: #075985 !important; }
    .all-products-btn.active:hover, .all-brands-btn.active:hover { background: #0284c7 !important; color: #ffffff !important; }
    .all-products-btn i, .all-brands-btn i { color: inherit !important; }
    .subgroup-item.active, .brand-item.active { border-color: #0ea5e9 !important; color: #075985 !important; }
    .subgroup-item.active .subgroup-dot { background: #0ea5e9 !important; }
    .subgroup-wrapper::-webkit-scrollbar-thumb, .brand-wrapper::-webkit-scrollbar-thumb { background: #0ea5e9 !important; }

/* Views/Shared/Components/CategoryMenu/Brands.cshtml */
/* MOBİL SABİT İKON (SAĞDA) */
    .mobile-brand-trigger {
        position: fixed;
        right: 20px; /* Sağ tarafa alındı */
        bottom: 30px;
        width: 55px;
        height: 55px;
        background-color: #004a5d;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        z-index: 9999;
        cursor: pointer;
    }

    /* MASAÜSTÜ VE GENEL STİLLER */
    .all-brands-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        padding: 12px 15px;
        text-decoration: none;
        color: #333;
        font-weight: 700;
        font-size: 12px;
        background: #f8f9fa;
        border: 1px solid #eee;
        text-align: center;
        transition: 0.2s;
    }

    .all-brands-btn.active {
        background-color: #004a5d !important;
        color: #fff !important;
        border-color: #004a5d;
    }

    .brand-wrapper {
        max-height: 60vh;
        overflow-y: auto;
        border: 1px solid #eee;
        border-top: none;
    }

    .brand-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .brand-box {
        display: flex;
        align-items: center;
        gap: 8px;
        height: 56px;
        box-sizing: border-box;
        padding: 8px 10px;
        text-decoration: none;
        color: #444;
        font-size: 11px;
        font-weight: 600;
        border-bottom: 1px solid #eee;
        border-right: 1px solid #eee;
        background: #fff;
        min-width: 0;
        position: relative;
    }

    .brand-box { border-right: none; }

    .active-brand {
        color: #004a5d !important;
        background-color: #f0f7f9 !important;
        box-shadow: inset 3px 0 0 #004a5d;
    }

    .brand-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-transform: uppercase;
    }

    .brand-dot {
        width: 4px;
        height: 4px;
        background: #ccc;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .brand-image { object-fit: contain; flex: 0 0 28px; }

    .active-brand .brand-dot { background: #004a5d; }

    /* Scrollbar */
    .brand-wrapper::-webkit-scrollbar { width: 4px; }
    .brand-wrapper::-webkit-scrollbar-thumb {
        background: #004a5d;
        border-radius: 10px;
    }

    /* ISITEK MARKET ana renk */
    .all-products-btn.active, .all-brands-btn.active { background: #0ea5e9 !important; border-color: #0ea5e9 !important; color: #ffffff !important; }
    .all-products-btn:hover, .all-brands-btn:hover { background: #e8f7fe !important; border-color: #0ea5e9 !important; color: #075985 !important; }
    .all-products-btn.active:hover, .all-brands-btn.active:hover { background: #0284c7 !important; color: #ffffff !important; }
    .all-products-btn i, .all-brands-btn i { color: inherit !important; }
    .subgroup-item.active, .brand-item.active { border-color: #0ea5e9 !important; color: #075985 !important; }
    .subgroup-item.active .subgroup-dot { background: #0ea5e9 !important; }
    .subgroup-wrapper::-webkit-scrollbar-thumb, .brand-wrapper::-webkit-scrollbar-thumb { background: #0ea5e9 !important; }

/* Views/Catalog/Products.cshtml */
.product-card { border-radius: 16px; transition: transform .2s ease, box-shadow .2s ease; overflow: hidden; display: flex; flex-direction: column; }
    .product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(15, 61, 99, .12) !important; }
    .product-card .d-flex.align-items-center.justify-content-between { min-width: 0; flex-wrap: nowrap !important; min-height: 42px; }
    .product-card .d-flex.align-items-center.justify-content-between form { display: flex !important; flex: 0 0 auto; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center; }
    .product-price { color: #0f3d63; font-size: 1.1rem; line-height: 1.35; flex: 1 1 auto; min-width: 0; text-align: left; white-space: nowrap; }
    .product-price span { color: #0ea5e9; font-size: .85rem; }
    .price-on-request { color: #648399 !important; font-size: .78rem !important; font-weight: 600; white-space: normal; }
    .product-card .btn-cart-add { flex: 0 0 42px; width: 42px; height: 38px; padding: 0; border-radius: 10px; background: #0ea5e9; color: #fff; border: 1px solid #0ea5e9; font-size: 1.1rem; }
    .btn-cart-add:hover { background: #0284c7; border-color: #0284c7; color: #fff; }
    .product-quantity { width: 72px; min-width: 72px; min-height: 38px; text-align: center; border-color: #cbd5e1; }
