body {
    font-family: Arial, sans-serif;
    background-color: #e3f2fd;
}

h1.title {
    margin-top: 30px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
    color: #333;
    font-size: 2rem;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin: auto;
}

.product-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    transition: transform 0.5s ease-in-out;
}

.product-container::-webkit-scrollbar {
    display: none;
}

.product-card {
    flex: 0 0 25%;
    padding: 10px;
    max-width: 280px;
    max-height: 350px;
}

.card-inner {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    transition: box-shadow 0.3s ease;
    height: 100%;
}

.card-inner:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: auto;
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    padding: 10px;
    margin: 0 auto;
    display: block;
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
    height: 48px;
    overflow: hidden;
}

.product-price {
    color: red;
    font-size: 18px;
    font-weight: bold;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    padding: 8px 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.arrow.left {
    left: 10px;
}
.arrow.right {
    right: 10px;
}

.no-products {
    text-align: center;
    color: red;
    font-size: 18px;
    margin-top: 30px;
}

/* Banner slider */
.banner-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    height: 300px;
    margin: 30px auto;
    border-radius: 8px;
}

.banner-track {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    transition: transform 0.5s ease-in-out;
}

.banner-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 28px;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
}

.banner-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.prev-btn {
    left: 10px;
}
.next-btn {
    right: 10px;
}

.brand-slider-wrapper img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}

/* ========== Responsive: Tablet (≤768px) ========== */
@media (max-width: 768px) {
    .product-card {
        flex: 0 0 50%;
        max-width: 100%;
    }

    .product-name {
        font-size: 15px;
        height: auto;
    }

    .product-price {
        font-size: 16px;
    }

    .arrow {
        font-size: 20px;
        padding: 6px 10px;
    }

    .banner-slider {
        height: 220px;
    }

    .banner-slide {
        height: 220px;
    }

    h1.title {
        font-size: 1.6rem;
    }
}

/* ========== Responsive: Mobile (≤480px) ========== */
@media (max-width: 480px) {
    .product-card {
        flex: 0 0 80%;
        max-width: 100%;
    }

    .product-name {
        font-size: 14px;
    }

    .product-price {
        font-size: 15px;
    }

    .arrow {
        font-size: 18px;
        padding: 5px 9px;
    }

    .banner-slider {
        height: 160px;
        border-radius: 6px;
    }

    .banner-slide {
        height: 160px;
    }

    h1.title {
        font-size: 1.4rem;
    }
}
