.product-grid-section {
    padding: 20px;
    background-color: none;
    text-align: center;
}

.product-grid-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Ensure 5 cards per row */
    gap: 20px;
    justify-items: center;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 cards per row for medium screens */
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row for small screens */
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr; /* 1 card per row for very small screens */
    }
}

.product-card {
    position: relative; /* Enable positioning for child elements like ribbon and brand logo */
    background-color: none;
    border-radius: 8px;
    box-shadow: none;
    padding: 15px;
    text-align: center;
    transition: none;
    overflow: hidden; /* Ensure child elements don't overflow the card */
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 18px;
    color: #333;
    margin: 10px 0;
}

.product-card p {
    font-size: 16px;
    color: #666;
    font-weight: bold;
}

.product-card:hover {
    transform: none;
}

.product-link {
    text-decoration: none; /* Remove text decoration for product links */
}

.status-ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #EF5A10; /* Default color for the ribbon */
    color: #fff;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
    white-space: nowrap; /* Prevent text wrapping */
}

.brand-label {
    position: absolute;
    top: 100px;
    right: 90px;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
    overflow: hidden; /* Ensure the image doesn't overflow the label */
}

.brand-label img {
    max-width: 100%; /* Ensure the logo fits within the label */
    max-height: 100%;
    object-fit: contain; /* Prevent distortion */
    display: block; /* Ensure the image is treated as a block element */
    margin: auto; /* Center the image inside the label */
}

@media (max-width: 768px) {
    .brand-label {
        top: 90px; /* Adjust position for smaller screens */
        right: 80px;
        width: 35px; /* Reduce size for mobile view */
        height: 35px;
    }
}

@media (max-width: 480px) {
    .brand-label {
        top: 135px; /* Adjust position for very small screens */
        right: 125px;
        width: 35px; /* Further reduce size for very small screens */
        height: 35px;
    }
}

.brand-scroller-section {
    padding: 20px 0;
    background-color: none;
    overflow: hidden;
}

.brand-scroller-section .container {
    position: relative;
    width: 100vw; /* Use viewport width to ensure full page width */
    margin: 0; /* Remove horizontal margins */
    overflow: hidden;
    box-sizing: border-box;
}

.brand-scroller {
    display: flex;
    align-items: center;
    gap: 80px;
    animation: scrollBrands 40s linear infinite;
    will-change: transform;
}

.brand-scroller::after {
    content: "";
    display: flex;
    gap: 100px;
    width: 40%; /* Duplicate the content for seamless scrolling */
}

.brand-scroller img {
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-scroller img:hover {
    transform: scale(1.2);
}

@keyframes scrollBrands {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}
