/* Main Banner Carousel Styles */
.carousel-inner {
    width: 100%;
    position: relative;
}

.carousel-item {
    width: 100%;
    position: relative;
    background-color: #000;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.responsive-banner {
    width: 100%;
    object-fit: cover;
    display: block;
    object-position: center;
}

.mobile-banner {
    display: none;
    height: 100vh;
    max-height: 600px;
    object-position: center;
}

/* Banner Text Overlay */
.carousel-caption {
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    left: 0;
    right: auto;
    padding: 40px;
    max-width: 600px;
    text-align: left;
}

/* Responsive Breakpoints */
@media (max-width: 1400px) {
    .desktop-banner {
        height: 550px;
    }
}

@media (max-width: 1200px) {
    .desktop-banner {
        height: 500px;
    }
    .carousel-caption {
        padding: 30px;
        max-width: 500px;
    }
}

@media (max-width: 991px) {
    .desktop-banner {
        height: 400px;
    }
    .carousel-caption {
        padding: 25px;
        max-width: 450px;
    }
}

/* Mobile Shop Now Button Styles */
.mobile-shop-btn {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%;
    text-align: center;
    padding: 0 20px;
}

.mobile-shop-btn .ws-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 14px;
    padding: 12px 30px;
    border-radius: 25px;
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: 0 2px 15px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 200px;
}

.mobile-shop-btn .ws-btn:hover {
    background: #F57C00;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(245, 124, 0, 0.3);
}

@media (max-width: 767px) {
    .desktop-banner {
        display: none;
    }
    .mobile-banner {
        display: block;
        height: 400px;
    }
    .carousel-caption {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 20px;
        max-width: 100%;
    }
    .carousel-caption h1 {
        font-size: 24px !important;
        margin-bottom: 8px !important;
        color: #fff;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }
    .carousel-caption p {
        font-size: 14px !important;
        margin-bottom: 0 !important;
        color: #fff;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    }
    /* Hide carousel controls on mobile */
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    .mobile-shop-btn {
        bottom: 40px;
    }
    .mobile-shop-btn .ws-btn {
        font-size: 13px;
        padding: 10px 25px;
        min-width: 180px;
        background: #F57C00;
        border: none;
        color: #fff;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
}

@media (max-width: 480px) {
    .mobile-banner {
        height: 300px;
    }
    .carousel-caption {
        padding: 50px 15px 65px;
    }
    .carousel-caption h1 {
        font-size: 20px !important;
    }
    .carousel-caption p {
        font-size: 13px !important;
    }
    .mobile-shop-btn .ws-btn {
        font-size: 12px;
        padding: 8px 20px;
        min-width: 160px;
    }
}

/* Categories Section Styles */
.horizontal-categories-section {
    background: #fff;
    padding: 20px 0;
    margin: 0;
}

.categories-wrapper {
    position: relative;
    padding: 0;
    margin: 0 auto;
    max-width: 1200px;
}

.categories-scroll-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.category-item-horizontal {
    flex: 0 0 auto;
    width: 90px;
    padding: 8px 4px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.category-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 1.5px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
}

.category-item-horizontal:hover .category-circle {
    border-color: #F57C00;
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.15);
    transform: translateY(-2px);
}

.category-circle img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.category-circle i {
    font-size: 28px;
    color: #666;
}

/* Daraz-like Product Grid Layout */
.daraz-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 15px;
    margin-top: -19px;
    margin-bottom: 35px;
}

.daraz-product-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.daraz-product-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.daraz-product-image {
    position: relative;
    padding: 10px;
    background: #fff;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.daraz-product-image img {
    width: 100%;
    max-width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.2s ease;
    background: #fff;
}

.daraz-product-image:hover img {
    transform: scale(1.05);
}

.daraz-product-info {
    padding: 12px 10px 15px 10px;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: auto;
}

.daraz-product-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 8px 0;
    color: #212121;
    min-height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: left;
}

.daraz-product-title a {
    text-decoration: none;
    color: inherit;
}

.daraz-product-price {
    margin-bottom: 6px;
    text-align: left;
}

.daraz-product-price .price {
    font-size: 16px;
    font-weight: 600;
    color: #f57224;
    display: inline-block;
}

.daraz-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-start;
}

.daraz-product-rating .stars {
    display: flex;
    gap: 1px;
}

.daraz-product-rating .star {
    font-size: 12px;
    line-height: 1;
}

.daraz-product-rating .star.filled {
    color: #ffc107;
}

.daraz-product-rating .star.half {
    color: #ffc107;
}

.daraz-product-rating .star.empty {
    color: #e9ecef;
}

.daraz-product-rating .rating-text {
    font-size: 12px;
    color: #757575;
}
