/* =============================
   Global optimizations
============================= */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

/* =============================
   Brand panel
============================= */
.brand-panel {
    background: #fff;
    padding: 10px 0;
}

.brand-panel-box ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.brand-panel-box ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.brand-panel-box ul li a:hover {
    color: #007bff;
}

/* =============================
   Banners (carousel)
============================= */
.carousel-item {
    width: 100%;
    height: 400px;
}

.carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.carousel-caption h1,
.carousel-caption h2,
.carousel-caption h4 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

/* =============================
   Categories (scroll)
============================= */
.categories-scroll-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.categories-scroll-wrapper {
    display: flex;
    gap: 20px;
    animation: scroll-categories linear infinite;
    will-change: transform;
}

@keyframes scroll-categories {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.category-item {
    flex: 0 0 33.333%;
    min-width: 300px;
}

.collection-banner-main {
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
}

.collection-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 15px;
    text-align: center;
}

.category-name {
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

/* Hover effects */
.category-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.category-link:hover {
    transform: scale(1.05);
}

.category-link:hover .category-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

/* Responsive categories */
@media (max-width: 768px) {
    .category-item {
        flex: 0 0 50%;
        min-width: 250px;
    }
    .collection-banner-main {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .category-item {
        flex: 0 0 100%;
        min-width: 200px;
    }
    .collection-banner-main {
        height: 180px;
    }
}

/* =============================
   Brands slider
============================= */
.brands-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.brand-item {
    flex: 0 0 auto;
    width: 200px;
    text-align: center;
}

.brands-slider::-webkit-scrollbar {
    height: 8px;
}

.brands-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.brands-slider::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

.brands-slider::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}
