/* Brands and Products section (shared by all pages that load includes/brands.html) */

/* ===== BRANDS - Desktop carousel visible, mobile grid hidden ===== */
.brands-desktop {
    display: block;
}

.brands-mobile {
    display: none;
}

/* ===== BRANDS GRID (mobile/tablet) base styles ===== */
.brands-grid-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.brand-item {
    width: 165px;
    height: 137px;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.brand-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ===== BRANDS CAROUSEL - force horizontal layout on all desktop sizes ===== */
.brands-desktop .pi-gallery .pi-gallery-item {
    float: left !important;
}

@media (max-width: 991px) {
    /* Show mobile grid, hide desktop carousel */
    .brands-desktop {
        display: none !important;
    }

    .brands-mobile {
        display: block !important;
    }

    /* Brands grid - tablet: centered, wrap */
    .brands-grid-inner {
        gap: 20px;
        padding: 0 30px;
    }

    .brand-item {
        width: 180px;
        height: 140px;
        padding: 15px;
    }
}

@media (max-width: 767px) {
    /* Brands grid - mobile: single column, centered */
    .brands-grid-inner {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 20px;
    }

    .brand-item {
        width: 200px;
        height: 140px;
        padding: 15px 25px;
    }
}

@media (max-width: 479px) {
    /* Brands grid - small mobile */
    .brand-item {
        width: 180px;
        height: 130px;
        padding: 12px 20px;
    }
}
