/* Home Page Specific Styles */

/* Hero Section */
.hero-section {
    padding-top: 20px;
    padding-bottom: 2rem;
}

.hero-slider-container {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.hero-slide {
    position: relative;
    height: 500px;
    min-width: 100%;
    /* Ensure slide takes full width for flex slider */
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    position: absolute;
    inset: 0;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

/* Dots */
.slider-dots {
    bottom: 20px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.slider-dot.active {
    background: var(--white);
    transform: scale(1.3);
}


/* Why Choose Section */
.why-choose-section {
    background-color: #fcfdfc;
    padding: 5rem 0;
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Popular Category Section */
.popular-category-section {
    padding: 5rem 0;
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.popular-content-wrapper {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.popular-text {
    flex: 1;
}

.popular-grid {
    flex: 1.2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.popular-product-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1rem;
    color: var(--dark);
    transition: transform 0.3s;
}

.popular-product-card:hover {
    transform: translateY(-5px);
}

/* Dynamic Categories */
.category-section {
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.category-banner-link {
    display: block;
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.category-banner-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-banner-link:hover .category-banner-img {
    transform: scale(1.03);
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-slide {
        height: 600px;
        /* Taller on mobile for better text fit */
    }

    .hero-content {
        left: 5%;
        width: 90%;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .feature-cards-grid {
        grid-template-columns: 1fr;
    }

    .popular-content-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Keep 2 cols on mobile for products if space permits, else 1 */
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .category-banner-img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .popular-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }
}

/* Fix for wishlist button positioning */
.product-image-container {
    position: relative;
}