/* ======== FONT IMPORTS & VARIABLES ======== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700;800&family=Inter:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&display=swap');

:root {
    --primary-color: #4caf50;
    --primary-dark: #388e3c;
    --primary-light: #c8e6c9;
    --secondary-color: #f8f4eb;
    --accent-color: #8bc34a;
    --text-color: #22223b;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196f3;
    --heading-font: 'Poppins', 'Segoe UI', Arial, sans-serif;
    --body-font: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ======== BASE STYLES ======== */
body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: #f9f9f9;
    line-height: 1.7;
    font-size: 1.05rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    display: block;
}

/* ======== HEADINGS ======== */

h1, h2, h3, h4, h5, h6,
.section-title,
.hero-title,
.brand-name,
.card-title,
.column-title,
.newsletter-title,
.why-choose-title {
    font-family: 'Playfair Display', serif !important;
    font-weight: 900 !important;
    color: var(--primary-dark);
    letter-spacing: 0.01em;
    text-shadow: 0 2px 8px rgba(76, 175, 80, 0.04);
    margin-bottom: 0.7em;
    line-height: 1.15;
}

h1, .display-4, .hero-title {
    font-size: 3.7rem;
    font-weight: 800 !important;
    color:var(--primary-dark);
    padding-top: 1.7rem;
}

h2, .section-title {
    font-size: 2rem;
    font-weight: 800 !important;
    color: var(--primary-dark);
}

h3, .card-title {
    font-size: 1.4rem;
    font-weight: 700 !important;
}

h4, h5, h6 {
    font-weight: 700 !important;
}

/* ======== HERO SECTION ======== */
.hero-section {
    background: url('/static/images/headerbanner2.jpg') center/cover no-repeat;
    box-shadow: 0 8px 32px 0 rgba(76,175,80,0.08);
    position: relative;
    overflow: hidden;
    padding: 0; /* Remove padding for true full image */
    min-height: 650px; /* Increased height for a larger hero banner */
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 1rem 5rem 1rem; /* Adjust as needed for your content */
    color: #fff;
    text-align: left;
}

/* ======== HERO WAVE (SVG) ======== */
.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 180px; /* Increased height to match the larger hero section */
    line-height: 0;
    z-index: 3;
    pointer-events: none;
}
.hero-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

.span{
    color: #FFD600
    
}

/* ======== SIMPLIFIED HERO SHAPES ======== */
.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
    z-index: 0;
    will-change: transform;
}
.hero-section::before {
    width: 300px; height: 300px;
    background: linear-gradient(135deg, #e0f2fe 0%, #a7f3d0 100%);
    top: -80px; left: -80px;
    animation: float 12s ease-in-out infinite alternate;
}
.hero-section::after {
    width: 200px; height: 200px;
    background: linear-gradient(135deg, #fef9c3 0%, #fcd34d 100%);
    bottom: -60px; right: 10vw;
    animation: float 15s ease-in-out infinite alternate-reverse;
}
@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

/* Responsive adjustments for hero section */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 400px;
    }
    .hero-wave {
        height: 100px;
    }
    .hero-section::before {
        width: 260px; height: 260px;
        top: -60px; left: -60px;
    }
    .hero-section::after {
        width: 180px; height: 180px;
        bottom: -40px; right: 5vw;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 260px;
    }
    .hero-wave {
        height: 60px;
    }
}

/* ======== SECTION PADDING ======== */
.section-padding {
    padding: 4rem 2rem;
    position: relative;
}

/* ======== ANIMATIONS ======== */
/* Removed heavy keyframe animations - using CSS transitions instead */

/* Optimized animation classes */
.animate-fade-up,
.animate-fade-left,
.animate-fade-right,
.animate-fade-down,
.animate-scale-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-left { transform: translateX(-20px); }
.animate-fade-right { transform: translateX(20px); }
.animate-fade-down { transform: translateY(-20px); }
.animate-scale-in { transform: scale(0.95); }

.animate-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays */
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }

/* ======== FEATURED/TRANDING PRODUCTS ======== */
.section-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.bg-light-green {
    background-color: var(--secondary-color);
}

.scroll-container {
    overflow-x: auto;
    display: flex;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scrollbar-color: var(--primary-color) #e9e9e9;
    padding: 10px 0;
    gap: 15px;
    height: 100%;
    width: 100%;
    position: relative;
}

.scroll-container::-webkit-scrollar {
    display: none;
}
.scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* ======== PRODUCT CARD ======== */
.product-card {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 2px 16px rgba(76,175,80,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    min-width: 300px;
    max-width: 300px;
    margin-bottom: 10px;
    flex: 0 0 auto;
    contain: layout style paint;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px 0 rgba(76,175,80,0.13);
}

.product-image {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 1.2rem;
    border-top-right-radius: 1.2rem;
    background: #f8fafc;
}

.product-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
    will-change: transform;
}

.product-card:hover .product-image img {
    transform: scale(1.07);
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--heading-font);
    margin-bottom: 0.5rem;
}

.product-title a {
    color: var(--primary-dark);
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-price {
    margin-bottom: 0.5rem;
    font-family: var(--body-font);
}

.current-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-left: 0.5rem;
}

.discount-percentage {
    color: var(--danger-color);
    font-size: 0.95rem;
    margin-left: 0.5rem;
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.btn-wishlist {
    background-color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.12);
    border: none;
    transition: all 0.3s;
}

.btn-wishlist:hover {
    transform: scale(1.1);
    background: #e0f2fe;
}

.btn-wishlist i {
    color: var(--danger-color);
}

/* ======== CATEGORY CARD ======== */
.category-card {
    min-width: 320px;
    max-width: 320px;
    height: 300px;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: 0 2px 8px rgba(76,175,80,0.08);
    transition: all 0.4s ease;
    background: #fff;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.03);
}

.category-card img, .category-card svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card .category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    padding: 10px;
    text-align: center;
}

.category-card .category-info h5 {
    margin: 0;
    font-size: 1.1rem;
    font-family: var(--heading-font);
    font-weight: 700;
}

/* ======== BENEFIT CARDS ======== */
.benefit-card {
    padding: 1.5rem;
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: 0 3px 10px rgba(76,175,80,0.08);
    height: 100%;
    transition: all 0.4s ease;
}

.benefit-card:hover {
    transform: translateY(-5px) scale(1.03);
}

.benefit-icon {
    color: var(--primary-color);
}

.benefit-title {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.benefit-text {
    font-family: var(--body-font);
    color: #4e5d4e;
    font-size: 1rem;
}

/* ======== TESTIMONIALS ======== */
.testimonial-card {
    border-radius: 1.2rem;
    box-shadow: 0 2px 12px rgba(76,175,80,0.08);
    border: none;
    font-family: var(--body-font);
}

.testimonial-rating i {
    color: #ffd600;
    margin-right: 2px;
}

.testimonial-text {
    font-size: 1.08rem;
    color: #333;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author h5 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.2rem;
}

.testimonial-author small {
    color: #8bc34a;
    font-family: var(--body-font);
}

/* ======== NEWSLETTER ======== */
.newsletter-form .form-control {
    border-radius: 2rem 0 0 2rem;
    border: none;
    font-family: var(--body-font);
    font-size: 1.1rem;
    padding: 0.75rem 1.2rem;
}

.newsletter-form .btn {
    border-radius: 0 2rem 2rem 0;
    font-weight: 700;
    font-family: var(--heading-font);
    padding: 0.75rem 2rem;
}

.bg-success {
    background-color: var(--primary-color) !important;
}

.text-success {
    color: var(--primary-color) !important;
}

/* ======== FOOTER ======== */
.footer {
    background-color: var(--primary-color);
    color: white;
    font-family: var(--body-font);
}

.footer a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.footer a:hover {
    color: #fff;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 400px;
    }
    .hero-wave {
        height: 100px;
    }
    .hero-section::before {
        width: 260px; height: 260px;
        top: -60px; left: -60px;
    }
    .hero-section::after {
        width: 180px; height: 180px;
        bottom: -40px; right: 5vw;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 260px;
    }
    .hero-wave {
        height: 60px;
    }
}

@media (max-width: 575.98px) {
    .product-image img {
        height: 120px;
    }
    .hero-section {
        border-radius: 0 0 1.2rem 1.2rem;
    }
}

/* Add to your style.css or home.css */


/* ======== SCROLL BUTTONS ======== */
.scroll-btn {
    background: #fff;
    border: 1.5px solid #4caf50;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4caf50;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76,175,80,0.10);
    opacity: 0.95;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.scroll-btn:hover {
    background: #e0f2f1;
    color: #388e3c;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(76,175,80,0.20);
}

.scroll-left {
    left: -22px;
}

.scroll-right {
    right: -22px;
}

/* Featured section specific scroll buttons */
.featured-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* Scroll controls for sections without absolute positioning */
.scroll-controls {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.scroll-controls .scroll-btn {
    position: static;
    transform: none;
}

.scroll-controls .scroll-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 767.98px) {
    .scroll-btn {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    .scroll-left {
        left: -18px;
    }
    
    .scroll-right {
        right: -18px;
    }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .featured-card-lg {
        min-width: 300px;
        max-width: 320px;
        min-height: 400px;
    }
    .featured-card-lg .product-image img,
    .featured-card-lg .product-image svg {
        height: 200px;
    }
}
@media (max-width: 767.98px) {
    .featured-card-lg {
        min-width: 220px;
        max-width: 240px;
        min-height: 280px;
    }
    .featured-card-lg .product-image img,
    .featured-card-lg .product-image svg {
        height: 120px;
    }
}

/* Category detail product grid: 3 cards per row and gap between cards */
#products-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem; /* Adjust gap as needed */
}

@media (max-width: 991.98px) {
    #products-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}
@media (max-width: 575.98px) {
    #products-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Remove Bootstrap's default row/gutter for this grid if needed */
#products-container .col-6,
#products-container .col-md-4,
#products-container .col-lg-3 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
}