/* Brands Carousel Component */

.brands-carousel-wrapper {
    position: relative;
}

.brands-carousel-viewport {
    overflow: hidden;
}

.brands-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

/* Desktop Grid: 5 columns x 2 rows */
.brands-page-desktop {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    min-width: 100%;
    box-sizing: border-box;
}

/* Brand Card */
.brand-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 140px;
}

.brand-card:hover {
    border-color: #d4a017;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.brand-logo-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.brand-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-name {
    font-size: 16px;
    font-weight: 700;
    color: #1A3263;
    text-align: center;
}

/* ==========================================
   NAVIGATION BUTTONS
========================================== */
.brands-nav-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.brands-nav-btn {
    width: 48px;
    height: 48px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    color: #1A3263;
    font-size: 16px;
}

.brands-nav-btn:hover {
    background: #1A3263;
    color: white;
    border-color: #1A3263;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(26, 50, 99, 0.25);
}

/* Pagination Dots */
.brands-pagination-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.brands-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D1D5DB;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.brands-dot.active {
    background: #1A3263;
    width: 24px;
    border-radius: 4px;
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 1280px) {
    .brands-page-desktop {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .brands-page-desktop {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* على الموبايل: 2 columns x 2 rows per page */
    .brands-page-desktop {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 0.75rem;
    }

    .brand-card {
        min-height: 110px;
        padding: 1rem;
        gap: 0.6rem;
    }

    .brand-logo-container {
        width: 55px;
        height: 55px;
    }

    .brand-name {
        font-size: 13px;
    }

    .brands-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .brands-page-desktop {
        gap: 0.6rem;
    }

    .brand-card {
        min-height: 100px;
        padding: 0.8rem;
    }

    .brand-logo-container {
        width: 45px;
        height: 45px;
    }
}