/* ========================================================
   Styles extracted from brands.blade.php
   ======================================================== */

.brands-page-section,
    section.product-section {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        margin-top: 15px !important;
        margin-bottom: 35px !important;
        padding: 10px 0 40px 0 !important;
    }

    .brand-search-container {
        margin-bottom: 30px;
        position: relative;
    }
    .brand-search-input {
        width: 100%;
        padding: 12px 20px;
        padding-left: 45px;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        font-size: 16px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    .brand-search-input:focus {
        border-color: var(--primary-color);
        outline: none;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    .brand-search-icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #888;
        font-size: 18px;
    }
    .brand-item {
        transition: transform 0.3s ease;
    }
    .brand-item.hidden {
        display: none;
    }
    
    /* Synchronize with index.blade.php category card styles */
    body .category-card {
        padding: 8px !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        border: 1px solid #e5e5e5 !important;
        width: 100% !important;
        aspect-ratio: 1.1 / 1 !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
        transition: all 0.3s ease-in-out !important;
        overflow: hidden !important;
    }

    body .category-card:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
        border-color: var(--primary-color) !important;
    }


    
    body .cat_img {
        height: auto !important;
        flex: 1 1 0% !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        padding: 2px !important;
        background: transparent !important;
        min-height: 0 !important;
    }

    body .cat_img img {
        max-width: 95% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        filter: none !important;
        opacity: 1 !important;
        background: transparent !important;
    }

    body .cat_name {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #333 !important;
        height: auto !important;
        flex: 0 0 auto !important;
        display: block !important;
        text-align: center !important;
        line-height: 1.3 !important;
        margin-top: 5px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        width: 100% !important;
    }



    .category-grid-row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: -10px !important;
        margin-right: -10px !important;
    }

    @media (min-width: 768px) {
        .category-grid-item {
            width: 16.666% !important;
            flex: 0 0 16.666% !important;
            max-width: 16.666% !important;
            margin-bottom: 20px !important;
            padding-left: 10px !important;
            padding-right: 10px !important;
        }
        body .cat_name {
            font-size: 15px !important;
        }
    }
    
    @media (max-width: 767px) {
        .category-grid-item {
            width: 33.333% !important;
            flex: 0 0 33.333% !important;
            max-width: 33.333% !important;
            padding: 4px !important;
        }
        body .category-card {
            aspect-ratio: 1 / 1.05 !important;
            padding: 5px !important;
        }
        body .cat_name {
            font-size: 11px !important;
            margin-top: 3px !important;
        }
        .category-grid-row {
            margin-left: -4px !important;
            margin-right: -4px !important;
        }
        .category-breadcrumb {
            margin-top: 50px !important;
        }
    }


/* ========================================================
   Styles extracted from brand_products.blade.php
   ======================================================== */

.brand-products-page {
            padding: 40px 0;
        }

        .brand-hero-card {
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 20px;
            border-radius: 12px;
            border: 1px solid #f0f0f0;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
            background: #fff;
        }

        .brand-hero-card img {
            max-width: 110px;
            max-height: 70px;
            object-fit: contain;
            width: 100%;
        }

        .brand-product-card {
            border: 1px solid #f1f1f1;
            border-radius: 10px;
            overflow: hidden;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            background: #fff;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .brand-product-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
        }

        .brand-product-img {
            width: 100%;
            padding: 15px;
            background: #fafafa;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 180px;
        }

        .brand-product-img img {
            max-height: 150px;
            width: 100%;
            object-fit: contain;
        }

        .brand-product-body {
            padding: 15px;
            flex: 1 1 auto;
            display: flex;
            flex-direction: column;
        }

        .brand-product-body h5 {
            font-size: 15px;
            line-height: 1.3;
            min-height: 40px;
            margin-bottom: 10px;
            color: #111;
        }

        .brand-product-price {
            margin-bottom: 0;
            font-weight: 600;
            color: #222;
        }

        .brand-product-price del {
            color: #9b9b9b;
            margin-right: 6px;
        }
        @media (min-width: 992px) {
            .col-lg-custom-5 {
                flex: 0 0 20% !important;
                max-width: 20% !important;
            }
        }