.homeproduct {
    background: #fff;
    padding: 45px 0 30px;
}

.homeproduct .sec_title {
    text-align: center;
    margin-bottom: 25px;
}

/* Fix category section alignment */
.homeproduct .row {
    margin-left: 0;
    margin-right: 0;
}

.homeproduct .row>[class*='col-'] {
    padding-left: 7.5px;
    padding-right: 7.5px;
}

.home-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 35px 45px;
    justify-content: center;
}

.category-card {
    width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 18px 12px;
    border-radius: 16px;
    border: 1px solid #ebedf2;
    background: linear-gradient(180deg, #fff, #fdfdff);
    min-height: 150px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 12px rgba(15, 29, 55, 0.08);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(15, 29, 55, 0.15);
    border-color: #d5d9e4;
}

.category-card .cat_img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: #f4f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card .cat_img img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

.category-card .cat_name {
    font-size: 14px;
    font-weight: 600;
    color: #0f1d37;
}

/* Custom column for 8 items per row on large devices */
@media (min-width: 992px) {
    .col-lg-1-5 {
        flex: 0 0 auto !important;
        width: 12.5% !important;
        max-width: 12.5% !important;
    }
}

@media (min-width: 1200px) {
    .col-xxl-1-5 {
        flex: 0 0 auto !important;
        width: 12.5% !important;
        max-width: 12.5% !important;
    }
}

/* Mobile category visibility - show only 2 rows (6 items) */
@media (max-width: 575px) {
    .category-item:nth-child(n+7) {
        display: none;
    }

    .category-item.show-all:nth-child(n+7) {
        display: block;
    }

    .see-all-btn {
        display: inline-block;
    }
}

@media (min-width: 576px) {
    .see-all-btn {
        display: none !important;
    }
}

.see-all-btn {
    background-color: #C72A2A;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.see-all-btn:hover {
    background-color: #a52222;
    transform: translateY(-2px);
}

.brand-slider-section {
    padding: 30px 0;
}

.brand-slide-card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 20px 15px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f1f1;
    transition: all 0.2s ease;
    height: 100%;
    text-align: center;
    min-height: 150px;
}

.brand-slide-card:hover {
    border-color: #C72A2A;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.brand-slide-img {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 65px;
}

.brand-slide-img img {
    max-height: 60px;
    width: 100%;
    object-fit: contain;
}

.brand-slide-name {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin-bottom: 0;
}

.brand-swiper-next,
.brand-swiper-prev {
    color: #C72A2A;
}

.banner-img {
    border-radius: 10px;
    /* border: 1px solid #C72A2A; */
    box-shadow: 0 5px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 187px;
    /* object-fit: cover; */
    display: block;
}

/* Mobile (max-width: 576px) */
@media (max-width: 576px) {
    .banner-img {
        height: 96px !important;
    }

    .home-slider-container {
        margin-bottom: 15px;
    }

    /* Fix banner alignment on mobile */
    .sm_baner {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .sm_baner .row {
        --bs-gutter-x: 1.5rem !important;
        --bs-gutter-y: 1.5rem !important;
    }
}