/* Carousel Container */
.carousel-wrapper {
    position: relative;
    /* max-width: 1200px; */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Carousel */
.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 500px; /* Adjust height as needed */
}

/* Slides */
.slide {
    min-width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
    position: relative;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slide Indicators/Dots */
.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: white;
    transform: scale(1.2);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Navigation Buttons */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.nav.prev {
    left: -20px;
}

.nav.next {
    right: -20px;
}

.nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav:disabled:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) scale(1);
}

/* Slide Counter */
.slide-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel {
        height: 400px;
    }
    
    .nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .nav.prev {
        left: 10px;
    }
    
    .nav.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 300px;
    }
    
    .nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .slide-indicators {
        bottom: 15px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Fade Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide {
    animation: fadeIn 0.8s ease;
}

/* Auto-play controls */
.auto-play-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.auto-play-btn {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.auto-play-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.auto-play-btn.active {
    background-color: rgba(212, 165, 116, 0.9);
}
/* 10 cards slider */
body{
    font-family: Arial;
    background:#f4f6f9;
    margin:0;
    /* padding:30px; */
}

.title{
    text-align:center;
    margin-bottom:25px;
}

/* Section */
.web-slider-section{
    background-color: rgb(250, 243, 233);
    position:relative;
    /* max-width:1300px; */
    margin:auto;
    display:flex;
    align-items:center;
}

/* Track */
.card-track{
    padding-top: 10px;
    display:flex;
    gap:18px;
    overflow:hidden;
    scroll-behavior:smooth;
    width:100%;
}

/* Card */
.card{
    flex:0 0 220px;
    background:#f3f1f1;
    border-radius:14px;
    box-shadow:0 6px 15px rgba(0,0,0,0.12);
    padding:12px;
    text-align:center;
}

.card img{
    width:100%;
    height:140px;
    object-fit:cover;
    border-radius:10px;
}

.card h4{
    margin:10px 0 5px;
}

.card p{
    font-size:13px;
    color:#555;
}

/* Nav Buttons */
.card-nav{
    background:#000;
    color:#fff;
    border:none;
    width:45px;
    height:45px;
    border-radius:50%;
    cursor:pointer;
}

/* Responsive */
@media(max-width:1024px){
    .card{ flex:0 0 190px; }
}

@media(max-width:768px){
    .card{ flex:0 0 160px; }
}


/* trending  */
.trending-slider-wrapper{
    position:relative;
    /* max-width:1200px; */
    margin:auto;
    display:flex;
    align-items:center;
    gap:10px;
}

/* Slider Track */
.trending-slider{
    display:flex;
    gap:15px;
    overflow-x:hidden;
    scroll-behavior:smooth;
    width:100%;
}

/* Card */
.trending-card{
    flex:0 0 250px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,0.1);
    padding:10px;
    display:flex;
    flex-direction:column;
    gap:5px;
    position:relative;
}

.trending-card img{
    width:100%;
    height:120px;
    object-fit:cover;
    border-radius:8px;
}

.promo{
    position:absolute;
    top:10px;
    left:10px;
    color:#fff;
    font-weight:bold;
    background:linear-gradient(45deg, #f09433, #e6683c);
    padding:5px 8px;
    border-radius:6px;
    font-size:12px;
    line-height:1.2;
}

.promo span{
    display:block;
    font-size:10px;
    font-weight:normal;
}

.shop-btn{
    margin-top:auto;
    background:#000;
    color:#fff;
    border:none;
    padding:8px;
    border-radius:6px;
    cursor:pointer;
    font-size:12px;
}

.shop-btn:hover{
    background:#333;
}

/* Navigation Buttons */
.slider-nav{
    background:rgba(0,0,0,0.5);
    color:#fff;
    border:none;
    width:40px;
    height:40px;
    border-radius:50%;
    cursor:pointer;
    z-index:2;
}

/* Responsive */
@media(max-width:1024px){
    .trending-card{ flex:0 0 200px; }
}

@media(max-width:768px){
    .trending-card{ flex:0 0 160px; }
}


/* Hottest Brands on Offer */



/* Hottest Brands Section */
.hot-brands {
    background-color: rgb(252, 236, 236);
    /* max-width: 1200px; */
    margin: 50px auto;
    /* padding: 0 20px; */
}

.hot-brands .section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #ff9800;
    font-weight: bold;
}

.brands-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.brand-card {
    flex: 1 1 250px;
    max-width: 250px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.brand-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.brand-card h4 {
    margin: 10px 0 5px;
    font-size: 18px;
    color: #333;
}

.brand-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.brand-card button {
    background-color: #ff9800;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    margin-bottom: 15px;
    transition: 0.3s;
}

.brand-card button:hover {
    background-color: #e68900;
}

/* @media (max-width: 992px) {
    .brand-card {
        flex: 1 1 45%;
    }
} */

/* @media (max-width: 600px) {
    .brand-card {
        flex: 1 1 100%;
    }
} */
@media (max-width: 992px) {
    .brand-card {
        flex: 1 1 45%; /* 2 cards per row on tablet */
    }
}

@media (max-width: 600px) {
    .brand-card {
        flex: 1 1 45%; /* 2 cards per row on mobile */
    }
}

/* 
 */


 /* Hot Brands Section */
.hot-brands {
    margin: 21px auto;
    padding: 20px 20px;
    
}

.hot-brands .section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #ff9800;
    font-weight: bold;
}

.brands-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.brand-card {
    flex: 1 1 250px;
    max-width: 250px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Make image full width and fixed height */
.brand-card img {
    width: 100%;
    height: 250px; /* adjust height as needed */
    object-fit: cover; /* ensures image covers fully without distortion */
        object-position: top;   /* 👈 shows image from top */
    display: block;
}


/* Card text */
.brand-card h4 {
    margin: 10px 0 5px;
    font-size: 18px;
    color: #333;
}

.brand-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* Button */
.brand-card button {
    background-color: #ff9800;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    margin-bottom: 15px;
    transition: 0.3s;
}

.brand-card button:hover {
    background-color: #e68900;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .brand-card {
        flex: 1 1 45%; /* 2 cards per row */
    }
}

@media (max-width: 600px) {
    .brand-card {
        flex: 1 1 45%; /* 2 cards per row on mobile */
    }
}
