/* ============================================
   ARINAMM HERBAL - Brand Stylesheet
   Color Palette: Sage Green, Terracotta, Warm Beige
   ============================================ */

:root {
    /* Brand Colors */
    --sage-green: #748B6F;
    --sage-dark: #5C6F58;
    --terracotta: #C06C54;
    --terracotta-light: #D48A75;
    --warm-beige: #F5F1E8;
    --cream: #FDFBF7;
    --warm-white: #FFFEF9;
    
    /* Text Colors */
    --text-dark: #2C3628;
    --text-medium: #4A5A42;
    --text-light: #6B7A65;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
    padding-top: 100px; /* Space for fixed header */
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--sage-green);
    color: white;
    padding: 8px 0;
    z-index: 1030;
    font-size: 0.875rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.main-header {
    position: fixed;
    top: 35px;
    left: 0;
    width: 100%;
    background: var(--warm-white);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1020;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--sage-dark);
    text-decoration: none;
}

.brand-dot {
    color: var(--terracotta);
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--terracotta);
}

/* Mega Menu (Shop All) */
/* IMPORTANT:
   Bootstrap positions .dropdown-menu absolutely relative to the closest positioned parent.
   The <li> (.mega-menu) is positioned by default, so width:100% collapses to the width of "Shop All".
   We override that to make a true mega menu on desktop. */
.navbar .mega-menu {
    position: static !important; /* break out of narrow <li> width */
}

.navbar .mega-menu .dropdown-menu.mega-dropdown {
    /* Centered, wide panel on desktop */
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    top: 100%;
    width: min(960px, calc(100vw - 2rem));
    max-width: 960px;
    padding: 1.5rem 2rem;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-top: 3px solid var(--sage-green);
    background: #fff;
}

/* Keep the three columns side-by-side on desktop */
.navbar .mega-menu .dropdown-menu.mega-dropdown .row {
    flex-wrap: nowrap;
}

.navbar .mega-menu .dropdown-menu.mega-dropdown .col-md-4 {
    padding: 0 1rem;
}

/* Avoid weird wrapping/overlap */
.navbar .mega-menu .dropdown-menu.mega-dropdown .dropdown-header,
.navbar .mega-menu .dropdown-menu.mega-dropdown .dropdown-item {
    white-space: nowrap;
}

/* Below lg (mobile/tablet), navbar collapses: dropdown should become normal stacked menu */
@media (max-width: 991.98px) {
    .navbar .mega-menu .dropdown-menu.mega-dropdown {
        left: 0 !important;
        transform: none;
        width: 100%;
        max-width: 100%;
        padding: 1rem 1.25rem;
        box-shadow: none;
        border-top: 0;
    }

    .navbar .mega-menu .dropdown-menu.mega-dropdown .row {
        flex-wrap: wrap;
    }

    .navbar .mega-menu .dropdown-menu.mega-dropdown .col-md-4 {
        padding: 0 0 1rem 0;
        border-bottom: 1px solid rgba(116, 139, 111, 0.12);
    }

    .navbar .mega-menu .dropdown-menu.mega-dropdown .col-md-4:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

.dropdown-header {
    color: var(--sage-green);
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.dropdown-item {
    padding: 0.5rem 0;
    color: var(--text-medium);
    transition: color 0.3s;
}

.dropdown-item:hover {
    color: var(--terracotta);
    background: transparent;
}

.featured-combo img {
    border: 2px solid var(--warm-beige);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 250px;
    border: 1px solid var(--sage-green);
    border-radius: 25px;
    padding: 8px 15px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--sage-green);
    border-radius: 8px;
    margin-top: 5px;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.cart-icon {
    position: relative;
    color: var(--text-dark);
    font-size: 1.5rem;
    text-decoration: none;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--terracotta);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
    margin-top: -65px;
}

.hero-slide {
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators button.active {
    background: white;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background-color: var(--terracotta);
    border-color: var(--terracotta);
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 25px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--terracotta-light);
    border-color: var(--terracotta-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(192, 108, 84, 0.3);
}

.btn-outline-primary {
    border-color: var(--terracotta);
    color: var(--terracotta);
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 25px;
}

.btn-outline-primary:hover {
    background-color: var(--terracotta);
    border-color: var(--terracotta);
}

/* ============================================
   SECTIONS
   ============================================ */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--sage-dark);
    margin-bottom: 2rem;
}

.welcome-section {
    background: var(--warm-white);
}

.promise-text {
    color: var(--terracotta);
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

/* Trust Bar */
.trust-bar {
    background: var(--sage-green);
    color: white;
}

.trust-item {
    padding: 1rem;
}

.trust-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.trust-item p {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Featured Categories */
.category-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    display: block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    color: var(--terracotta);
}

.category-icon {
    font-size: 3rem;
    color: var(--sage-green);
    margin-bottom: 1rem;
}

.category-card h5 {
    font-weight: 600;
    margin: 0;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--sage-dark);
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--terracotta);
    margin-bottom: 1rem;
}

.product-rating {
    color: #FFA500;
    margin-bottom: 0.5rem;
}

/* Shop by Concern */
.concern-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 15px;
    text-decoration: none;
}

.concern-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.concern-card:hover img {
    transform: scale(1.1);
}

.concern-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 2rem;
}

.concern-overlay h4 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.stars {
    color: #FFA500;
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-medium);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/* Footer */
.main-footer {
    background-color: var(--sage-dark) !important;
    color: var(--warm-beige);
}

.main-footer h5 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: white;
}

.main-footer a {
    color: var(--warm-beige);
    text-decoration: none;
    transition: color 0.3s;
}

.main-footer a:hover {
    color: white;
}

.main-footer ul {
    list-style: none;
}

.main-footer li {
    margin-bottom: 0.5rem;
}

.newsletter-form input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.social-icons a {
    font-size: 1.5rem;
    color: var(--warm-beige);
    transition: color 0.3s;
}

.social-icons a:hover {
    color: white;
}

.payment-badges {
    color: var(--warm-beige);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .hero-slide {
        height: 60vh;
        min-height: 400px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .search-box {
        display: none;
    }
    
    .trust-icon {
        font-size: 2rem;
    }
    
    .category-icon {
        font-size: 2rem;
    }
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */
.process-section {
    background: var(--warm-beige);
}

.process-step {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.process-icon {
    font-size: 3rem;
    color: var(--sage-green);
}

.process-step h4 {
    font-family: var(--font-heading);
    color: var(--sage-dark);
    margin-bottom: 1rem;
}

.promise-section {
    background: var(--warm-white);
}

.promise-item {
    padding: 1.5rem;
}

.promise-icon {
    font-size: 2.5rem;
    color: var(--terracotta);
    margin-bottom: 1rem;
    display: block;
}

.promise-item h5 {
    font-family: var(--font-heading);
    color: var(--sage-dark);
    font-size: 1.1rem;
}

.promise-signature {
    color: var(--text-medium);
    font-size: 1.1rem;
}

.promise-signature strong {
    color: var(--sage-dark);
    font-family: var(--font-heading);
}

/* ============================================
   GLOSSARY PAGE STYLES
   ============================================ */
.herb-card .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border-radius: 15px;
}

.herb-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.herb-card .card-img-top {
    border-radius: 15px 15px 0 0;
    height: 250px;
    object-fit: cover;
}

.herb-card .card-title {
    font-family: var(--font-heading);
    color: var(--sage-dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.herb-tamil-name {
    color: var(--terracotta);
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.herb-scientific {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.herb-benefits {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--warm-beige);
}

.herb-benefits ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.herb-benefits li {
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}
/* --- Premium Stat Boxes --- */
.stat-box {
    position: relative;
    overflow: hidden; /* Keeps the background icon inside the box */
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s ease;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Gradients using your brand colors */
.stat-sage {
    background: linear-gradient(135deg, var(--sage-green), #608569);
    color: white;
}

.stat-terra {
    background: linear-gradient(135deg, var(--terracotta), #cc593b);
    color: white;
}

/* Glassmorphism Icon Circle */
.stat-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-icon-wrapper i {
    font-size: 2rem;
    color: white;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.95;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Large faded icon in the bottom right corner */
.stat-bg-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 12rem;
    opacity: 0.1; /* Barely visible */
    z-index: -1; /* Puts it behind the text */
    transform: rotate(-15deg);
    pointer-events: none;
}