


:root {
    --primary-color: #4f46e5;
    --secondary-color: #fb641b;
}

body {
    background-color: #daebf5;
    margin: 0;
    padding: 0;
    font-family: Roboto, Arial, sans-serif;
}

/* Category Section */
.category-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 1rem;
    border-radius: 2px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .1);
}

.category-item {
    text-align: center;
    padding: 10px;
    transition: transform 0.2s;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f7f8fa;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e2054b;
}

.category-name {
    font-size: 14px;
    color: #212121;
    margin: 0;
}

/* Featured Products */
.section-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

/* Product Grid */
.product-card {
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .1);
    transition: box-shadow .2s ease-in-out;
    height: 100%;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 3px 16px 0 rgba(0, 0, 0, .11);
}

.product-image {
    height: 200px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-details {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
}

.product-title {
    font-size: 14px;
    margin-bottom: 8px;
    color: #212121;
    height: 36px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    --webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 16px;
    font-weight: 500;
    color: #212121;
}

.price-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.original-price {
    color: #878787;
    text-decoration: line-through;
    font-size: 14px;
}

.discount {
    color: #388e3c;
    font-size: 13px;
}

.view-all-btn {
    background: var(--primary-color);
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.5s ease;
}

.view-all-btn:hover::before {
    left: 100%;
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(79, 70, 229, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .swiper {
        height: 200px;
    }

    .category-icon {
        width: 48px;
        height: 48px;
    }

    .category-name {
        font-size: 12px;
    }

    .product-image {
        height: 250px;
        /* Increased height for better visibility */
        padding: 10px;
        /* Adjusted padding for a balanced look */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-image img {
        max-height: 0%;
        max-width: 100%;
        object-fit: contain;
    }
}

.banner-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.banner-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.banner-subtitle {
    font-size: 18px;
    max-width: 500px;
}

@media (max-width: 768px) {
    .banner-content {
        bottom: 20px;
        left: 20px;
    }

    .banner-title {
        font-size: 24px;
    }

    .banner-subtitle {
        font-size: 14px;
    }
}

.hero-banner {
    background: var(--primary-color);
    padding: 0;
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
}

.swiper {
    width: 100%;
    height: auto;
    /* Changed from fixed height to auto */
    aspect-ratio: 16/9;
    /* Added aspect ratio for consistent proportions */
    color: #fff;
}

.banner-slide-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.banner-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 600px;
    overflow: hidden;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 0.8s ease;
    min-height: 300px;
    max-height: 600px;
}

.swiper-slide:hover .banner-image {
    transform: scale(1.05);
}



.swiper-slide:hover .banner-overlay {
    opacity: 0.9;
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 3rem;
    color: #fff;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.swiper-slide:hover .banner-content {
    transform: translateY(-10px);
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
}

.banner-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: --var(--primary-color);
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.banner-btn:hover {
    background-color: transparent;
    border-color: #fff;
    transform: translateY(-2px);
}

/* Custom Navigation Buttons */
.custom-next-btn,
.custom-prev-btn {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.custom-next-btn:hover,
.custom-prev-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.custom-next-btn::after,
.custom-prev-btn::after {
    font-size: 1.2rem;
    color: #fff;
}

/* Custom Pagination */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: #fff;
    opacity: 1;
    transform: scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .swiper {
        aspect-ratio: 4/3;
        /* Even more square for smaller screens */
    }

    .banner-title {
        font-size: 1.75rem;
    }

    .banner-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .banner-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .swiper {
        aspect-ratio: 1/1;
        /* Square aspect ratio for very small screens */
        min-height: 300px;
    }

    .banner-title {
        font-size: 1.25rem;
    }

    .banner-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .banner-content {
        padding: 1rem;
    }
}

@media screen and (min-width: 1200px) {
    .swiper {
        aspect-ratio: 21/9;
        /* Wider aspect ratio for larger screens */
        max-height: 600px;
        /* Maximum height on large screens */
    }
    banner-image-wrapper {
        height: calc(100vh - 200px);
        max-height: 600px;
    }
    
    .banner-image {
        height: 100%;
    }
}

@media screen and (max-width: 991px) {
    .swiper {
        aspect-ratio: 3/2;
        /* More square aspect ratio for medium screens */
    }
     .banner-image-wrapper {
        height: 400px;
    }
}

/* Add this to your index.css file */
.banner-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}