﻿

.brands-section {
    width: 100%;
    overflow: hidden;
    background: white;
    padding: 30px 0;
}

.brands-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 30px;
    flex-direction: row-reverse;
}

.section-title {
    font-size: 24px;
    color: #333;
    font-weight: 600;
    margin-bottom:0;
}

.view-all {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .view-all:hover {
        color: #0056b3;
    }

    .view-all::before {
        content: '←';
        font-size: 16px;
    }

.brands-container {
    overflow-x: auto;
    padding: 0 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f8f9fa;
    scrollbar-width: none;
    -ms-overflow-style: none;
    list-style: none;
}

    .brands-container::-webkit-scrollbar {
        height: 8px;
    }

    .brands-container::-webkit-scrollbar-track {
        background: #f8f9fa;
        border-radius: 4px;
    }

    .brands-container::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 4px;
    }

.brands-wrapper {
    display: flex;
    gap: 0;
    padding-bottom: 10px;
}

.brand-item {
    flex: 0 0 auto;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: pointer;
    width: 22vw;
    height: 95px;
}

    .brand-item:hover {
        transform: translateY(-5px);
    }

.brand-logo {
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
    border-radius: var(--radius);
    transition: box-shadow 0.3s ease;
}

/*
    .brand-item:hover .brand-logo {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.brand-item:hover .brand-logo img {
    filter: grayscale(0%);
}

*/

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.3s ease;
}
.brand-name {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.brand-item:hover .brand-name {
    color: #333;
}

/* Scroll Indicators */
.scroll-indicator {
    display: none;
    text-align: center;
    color: #999;
    font-size: 12px;
    margin-top: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .brands-section {
        padding: 20px 0;
    }

    .brands-header {
        padding: 0 15px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 20px;
    }

    .view-all {
        font-size: 13px;
    }

    /*    .brand-logo {
        width: 80px;
        height: 80px;
    }

        .brand-logo img {
            width: 55px;
            height: 55px;
        }*/

    .brand-name {
        font-size: 12px;
    }

    .brands-wrapper {
        gap: 3px;
    }

    .scroll-indicator {
        display: block;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-item {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

    .brand-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .brand-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .brand-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .brand-item:nth-child(4) {
        animation-delay: 0.4s;
    }

    .brand-item:nth-child(5) {
        animation-delay: 0.5s;
    }

    .brand-item:nth-child(6) {
        animation-delay: 0.6s;
    }

    .brand-item:nth-child(7) {
        animation-delay: 0.7s;
    }

    .brand-item:nth-child(8) {
        animation-delay: 0.8s;
    }
