/* =========================================================
   CLEAN AMPERSAND (&) & MODERN BRAND TYPOGRAPHY
   ========================================================= */

.amp,
.amp-clean {
    font-family: 'Poppins', 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-style: normal !important;
    font-weight: 500 !important;
    display: inline-block;
    padding: 0 0.08em;
    font-size: 0.88em;
    vertical-align: 0.04em;
    color: inherit;
}

:root {
    --primary-color: #65A344;
    --primary-dark: #11320A;
    --accent-color: #F26B0E;
    --bg-color: #ffffff;
    --text-color: #333333;
    --font-heading: 'Montserrat', 'Barlow', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --font-display: 'Montserrat', sans-serif;
}

html {
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
    position: relative;
    margin: 0;
    padding: 0;
}

.main-navbar {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1040 !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6,
.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

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

.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(43, 122, 11, 0.2);
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(43, 122, 11, 0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1596040033229-a9821ebd058d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
    height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Product Cards */
.product-card {
    border-radius: 12px;
    border: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .badge-discount {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 2;
}

/* Category Circles */
.category-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: transform 0.3s ease;
}

.category-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 4px solid white;
}

.category-circle:hover {
    transform: scale(1.05);
}

/* Feature Boxes */
.feature-box {
    padding: 30px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(43, 122, 11, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

/* Testimonial */
.testimonial-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 60px;
    color: rgba(43, 122, 11, 0.1);
    font-family: serif;
}

/* =========================================================
   MOBILE RESPONSIVENESS & TOUCH OPTIMIZATIONS (< 768px & < 576px)
   ========================================================= */
@media (max-width: 768px) {
    /* Navbar & Header */
    .navbar-brand img, #headerLogoImg {
        max-height: 48px !important;
    }
    
    .main-navbar {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    /* WhatsApp floating button on small screens */
    #whatsapp-btn {
        width: 48px !important;
        height: 48px !important;
        font-size: 26px !important;
        margin: 1rem !important;
    }

    #scrollToTopBtn {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.1rem !important;
        margin: 1rem !important;
    }

    /* Section padding on mobile */
    section {
        padding-top: 2.25rem !important;
        padding-bottom: 2.25rem !important;
    }

    /* Headings on mobile */
    .display-4, .display-5, .display-6 {
        font-size: clamp(1.45rem, 5.5vw, 1.85rem) !important;
    }

    /* Category scroll track item on mobile */
    .format-card {
        padding: 0.85rem !important;
        border-radius: 18px !important;
    }

    .format-img-wrapper {
        width: 110px !important;
        height: 110px !important;
    }

    .format-title {
        font-size: 0.92rem !important;
    }
}

@media (max-width: 576px) {
    /* Product card compact grid for 2-column mobile view */
    .featured-product-card {
        padding: 0.6rem !important;
        border-radius: 16px !important;
    }

    .featured-product-card .product-img-box {
        height: 135px !important;
        border-radius: 12px !important;
        padding: 4px !important;
    }

    .featured-product-card .product-img {
        max-height: 120px !important;
    }

    .featured-product-card h6 {
        font-size: 0.82rem !important;
        min-height: 2.4em;
        line-height: 1.25 !important;
        margin-bottom: 0.25rem !important;
    }

    .featured-product-card .cart-btn {
        font-size: 0.74rem !important;
        padding: 6px 8px !important;
    }

    .featured-product-card .action-icon-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.75rem !important;
    }

    /* Promo Banners on small phones */
    .banner-card:not(#superfoodSec) {
        min-height: 280px;
        height: auto;
        border-radius: 18px !important;
    }

    #superfoodSec {
        height: auto !important;
        min-height: auto !important;
        overflow: hidden !important;
    }

    .banner-card h2 {
        font-size: 1.45rem !important;
    }

    .banner-card p {
        font-size: 0.85rem !important;
        margin-bottom: 0.75rem !important;
    }

    /* Feature boxes */
    .feature-box {
        padding: 18px !important;
        border-radius: 14px !important;
    }

    .feature-icon {
        width: 46px !important;
        height: 46px !important;
        font-size: 20px !important;
        margin-bottom: 12px !important;
    }
}

/* =========================================================
   CUSTOM DROPDOWN THEME (Replaces Bootstrap Default Blue)
   ========================================================= */
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #E8F5E9 !important;
    color: #153E17 !important;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #153E17 !important;
    color: #FFFFFF !important;
}