* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: #f4f4f4;
    padding-top: 130px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Image Slider */
.slider-container {
    position: relative;
    margin: 0;
    width: 100%;
    height: 384px;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    width: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation Buttons */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.764);
    color: #0ab3e4;
    border-radius: 50%;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 22px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover,
.next:hover {
background:#0ab3e4;
box-shadow: 0px 2px 8px rgba(10, 179, 228, 0.6);
    color: white;
}

/* Slide Dots */
.dots-container {
    text-align: center;
    margin-top: 0px;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 5px;
    background: gray;
    display: inline-block;
    border-radius: 50%;
    cursor: pointer;
}

.active-dot {
background:#0ab3e4;
box-shadow: 0px 2px 8px rgba(10, 179, 228, 0.6);
}

/* Modern H1 Styling */
.cards h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0ab3e4;
    text-align: center;
    margin: 40px 0 20px 0;
    position: relative;
    background: #0ab3e4;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.cards  h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #0ab3e4;
    border-radius: 2px;
}

/* Buy Now Button Styling */
.buy-now-btn {
background: #0ab3e4;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 3;
    margin: 12px;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.buy-now-btn:hover {
background:#0ab3e4;
box-shadow: 0px 2px 8px rgba(10, 179, 228, 0.6);
}

.buy-now-btn:active {
    transform: translateY(0);
background:#0ab3e4;
box-shadow: 0px 2px 8px rgba(10, 179, 228, 0.6);
}

/* Modern Professional Card Component */
.card-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    padding: 32px 20px;
    max-width: 1300px;
    margin: auto;
}

.card {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 8px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.5);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);

}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(147, 51, 234, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
    z-index: 0;
}

.card:hover {
box-shadow: 0px 2px 8px rgba(10, 179, 228, 0.6);
}



.card img {
    width: 100%;
    height: 150px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.card:hover img {
    transform: scale(1.08);
    filter: brightness(1.1) saturate(1.1);
}

.card h3 {
    margin: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0ab3e4;
    line-height: 1.4;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    letter-spacing: -0.025em;
}

.card:hover h3 {
    color: #0ab3e4;
    transform: translateY(-2px);
}

/* Footer Styles */
footer {
    background-color: #222;
    color: white;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: auto;
    padding: 20px 10px;
}

.footer-section {
    flex: 1;
    min-width: 120px;
    margin: 10px;
}




.footer-section h3 {
    color: #007bff;
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-section p,
.footer-section ul {
    font-size: 14px;
    line-height: 1.5;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.footer-section ul li a:hover {
    color: #007bff;
}


/* Contact Icons */
.footer-section p i {
    margin-right: 8px;
    color: #007bff;
}


/* Social Icons */
.footer-section.social a {
    display: inline-block;
    font-size: 20px;
    margin-right: 10px;
    color: white;
    transition: 0.3s;
}

.footer-section.social a:hover {
    color: #f4b400;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding: 15px;
    background-color: #111;
    font-size: 14px;
    color: #bbb;
}



/* Brands Trust Section */
.brands-section {
    background: #f8fafc;
    padding: 60px 20px;
    text-align: center;
    margin: 40px 0;
}

.brands-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 40px;
    background: black;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brands-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100px;
}

.brand-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.brand-logo img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.brand-logo:hover img {
    filter: grayscale(0%);
}


/* Horizontal Carousel Styles */
.carousel-wrapper {
    position: relative;
    max-width: 95%;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 24px;
    padding: 32px 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-container .card {
    flex: 0 0 auto;
    width: 200px;
    min-width: 200px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #374151;
    font-size: 16px;
}

.carousel-arrow:hover {
    background: #0ab3e4;
    color: white;
    border-color: #0ab3e4;
    transform: translateY(-50%) scale(1.1);
box-shadow: 0px 2px 8px rgba(10, 179, 228, 0.6);
}

.carousel-arrow-left {
    left: 5px;
}

.carousel-arrow-right {
    right: 5px;
}

.carousel-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}



/* Override grid layout for carousel */
.carousel-container.card-container {
    display: flex !important;
    grid-template-columns: none !important;
}
/* Override grid layout for carousel */
.carousel-container.card-container {
    display: flex !important;
    grid-template-columns: none !important;
}

/* Ensure proper cursor for dragging */
.carousel-container {
    cursor: grab;
}

.carousel-container:active {
    cursor: grabbing;
}

/* Prevent text selection during drag */
.carousel-container * {
    user-select: none;
}

/* Re-enable text selection for specific elements */
.carousel-container .card h3,
.carousel-container .card .rating-text,
.carousel-container .card .review-count {
    user-select: text;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Slider adjustments */
    .slider-container {
        height: 200px;
    }
    
    .prev, .next {
        padding: 6px 10px;
        font-size: 16px;
    }
    
    .prev {
        left: 3px;
    }
    
    .next {
        right: 3px;
    }
    
    /* Cards heading */
    .cards h1 {
        font-size: 1.5rem;
        margin: 15px 0 10px 0;
    }
    
    /* Card grid to single column */
    .card-container {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px 10px;
    }
    
    .card {
        max-width: 100%;
    }
    
    .card img {
        height: 140px;
    }
    
    .card h3 {
        font-size: 14px;
        margin: 6px;
    }
    
    .buy-now-btn {
        padding: 8px 16px;
        font-size: 12px;
        margin: 8px;
        margin-top: auto !important;
    }
    
    /* Footer adjustments */
    .footer-container {
        flex-direction: column;
        text-align: center;
        padding: 12px 8px;
    }
    
    .footer-section {
        margin: 10px 0;
        min-width: 100%;
    }
    
    .footer-section h3 {
        font-size: 14px;
    }
    
    .footer-section p,
    .footer-section ul {
        font-size: 12px;
    }
    
    /* Brands section */
    .brands-section {
        padding: 30px 10px;
    }
    
    .brands-section h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .brands-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .brand-logo {
        height: 65px;
        padding: 10px;
    }
    
    .brand-logo img {
        max-width: 80px;
        max-height: 40px;
    }
    
    /* Carousel adjustments */
    .carousel-wrapper {
        padding: 0 40px;
    }
    
    .carousel-container {
        gap: 12px;
        padding: 15px 10px;
    }
    
    .carousel-container .card {
        width: 170px;
        min-width: 170px;
    }
    
    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .carousel-arrow-left {
        left: 2px;
    }
    
    .carousel-arrow-right {
        right: 2px;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .slider-container {
        height: 160px;
    }
    
    .cards h1 {
        font-size: 1.3rem;
        margin: 10px 0 8px 0;
    }
    
    .card-container {
        padding: 10px 8px;
        gap: 10px;
    }
    
    .card img {
        height: 120px;
    }
    
    .card h3 {
        font-size: 13px;
        margin: 5px;
    }
    
    .buy-now-btn {
        padding: 6px 12px;
        font-size: 11px;
        margin: 6px;
    }
    
    .brands-section {
        padding: 20px 8px;
    }
    
    .brands-section h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .brands-container {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .brand-logo {
        height: 55px;
        padding: 8px;
    }
    
    .brand-logo img {
        max-width: 70px;
        max-height: 35px;
    }
    
    .carousel-wrapper {
        padding: 0 30px;
    }
    
    .carousel-container {
        gap: 10px;
        padding: 12px 8px;
    }
    
    .carousel-container .card {
        width: 150px;
        min-width: 150px;
    }
    
    .carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }
    
    .footer-container {
        padding: 10px 5px;
    }
    
    .footer-section {
        margin: 8px 0;
    }
    
    .footer-section h3 {
        font-size: 13px;
    }
    
    .footer-section p,
    .footer-section ul {
        font-size: 11px;
    }
    
    .footer-bottom {
        padding: 10px;
        font-size: 12px;
    }
}