/* =========================================================
   GENERAL STYLES & TYPOGRAPHY
   ========================================================= */
body {
    font-family: 'Open Sans', sans-serif;
    color: #444;
    line-height: 1.6;
    background-color: #fdfdfd;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Base Theme Colors */
:root {
    --primary-maroon: #8d1c1c; /* Reference Maroon */
    --accent-orange: #d17a3a; /* Reference Orange */
    --accent-yellow: #f0ac42; /* Reference Yellow */
    --tea-green: #3d6f46;     /* New Green for Tea */
    --snacks-brown: #a17056;  /* New Brown for Snacks */
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
header {
    background-color: #fff;
    /* background-color: #cfcece; */

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    max-height: 50px; /* Adjust to fit */
}

.nav-link {
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
}

.nav-link.active, .nav-link:hover {
    color: var(--primary-maroon);
}

/* Multi-Level Dropdown CSS (CRUCIAL) */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%; /* Position to the right */
    margin-top: -1px;
    display: none; /* Hide by default */
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block; /* Show on hover */
}

/* Adding an arrow indicator for sub-menus */
.dropdown-submenu > .dropdown-toggle::after {
    border-top: 0.3em solid transparent;
    border-right: 0;
    border-bottom: 0.3em solid transparent;
    border-left: 0.3em solid;
    margin-right: -0.1em;
    transform: translateY(1px);
    margin-left: 0.5rem;
}

/* =========================================================
   HERO SLIDER
   ========================================================= */
#hero-slider {
    position: relative;
    z-index: 1;
}

.carousel-item img {
    object-fit: cover;
    height: 70vh; /* Set a substantial height for the hero on desktop */
}

/* Position captions as text-start on larger screens, as in reference */
.carousel-caption {
    background-color: rgba(0, 0, 0, 0.4);
    bottom: 20%;
    max-width: 50%;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    color: #fff;
}

.carousel-caption p {
    font-size: 1.25rem;
}

/* =========================================================
   ABOUT / INTRO SECTION (Three Blocks)
   ========================================================= */
/* The mt-n5 class on the section creates an overlap on the slider */
.intro-blocks {
    background-color: transparent;
}

.intro-blocks h2 {
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.intro-blocks p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Assigning the reference colors */
.intro-block-1 {
    background-color: var(--primary-maroon);
}

.intro-block-2 {
    background-color: var(--accent-orange);
}

.intro-block-3 {
    background-color: var(--primary-maroon); /* Optional: Use different shades or patterns */
}

/* =========================================================
   PRODUCT CATEGORY GRID
   ========================================================= */
.bg-light-section {
    background-color: #f5f5f5;
}

.product-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card img {
    object-fit: cover;
    height: 250px;
}

.product-card .card-body {
    background-color: var(--tea-green); /* Default for Tea */
    color: #fff;
    padding: 1.25rem;
}

/* Category Accent Colors */
.product-card .card-body.spices-accent {
    background-color: var(--accent-orange);
}

.product-card .card-body.snacks-accent {
    background-color: var(--snacks-brown);
}

/* Animated Interaction (Hover Effect) */
.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
    background-color: #1a1a1a;
}

/* footer-content container uses a textured effect on hover in reference,
   we'll simulate the look and feel here. */
.footer-content {
    background-color: #313131;
    border-radius: 15px;
    margin-top: -3rem; /* Optional overlap effect */
}

.footer-brand h2 {
    font-size: 1.75rem;
    color: var(--accent-yellow);
}

footer h4 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.site-index li {
    padding-bottom: 0.5rem;
}

.site-index a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-index a:hover {
    color: var(--accent-yellow);
}

.contact-info strong {
    color: #fff;
}

/* =========================================================
   RESPONSIVE OVERRIDES
   ========================================================= */
/* Small Screens (Mobile) */
@media (max-width: 768px) {
    .carousel-item img {
        height: 50vh; /* Shorter slider on phones */
    }
    
    .carousel-caption h1 {
        font-size: 2.25rem;
    }

    .intro-blocks .row {
        gap: 0; /* Stack them without gap */
    }
    
    .intro-block-1, .intro-block-2, .intro-block-3 {
        padding: 2.5rem 1.5rem !important;
    }
    
    /* On mobile, standard dropdown is better */
    .dropdown-submenu:hover > .dropdown-menu {
        display: none;
    }
    
    .dropdown-submenu .dropdown-menu {
        position: static;
        left: auto;
        display: none;
    }

    /* JavaScript or custom classes can handle touch events better for 
       true multi-level on mobile, but this is the simplest solution. 
       Usually on mobile, sub-menus are collapsed. */
    
    .footer-content {
        margin-top: 0; /* Remove overlap */
        padding: 2rem !important;
    }
}
/* Color Accents for Product Cards */
.tea-accent { background-color: #3d6f46 !important; color: white; }
.spice-accent { background-color: #8d1c1c !important; color: white; }
.snack-accent { background-color: #d17a3a !important; color: white; }

/* Swiper Custom Navigation Positioning */
.swiper-controls {
    position: relative;
    display: flex;
    gap: 40px;
    width: 80px;
}

.swiper-button-next, .swiper-button-prev {
    color: #333 !important;
    background: #fff;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 14px !important;
    font-weight: bold;
}

/* Footer Site Index Hover */
.site-index li {
    transition: transform 0.3s ease;
    margin-bottom: 8px;
}
.site-index li:hover {
    transform: translateX(10px);
}

/* Icons styling */
.contact-info i {
    width: 20px;
    text-align: center;
}

/* Color Helpers */
.btn-maroon {
    background-color: #8d1c1c;
    border-color: #8d1c1c;
    transition: all 0.3s ease;
}
.btn-maroon:hover {
    background-color: #6a1515;
    transform: translateY(-2px);
}

.border-maroon {
    border-color: #8d1c1c !important;
}

/* Breadcrumb Styling */
.breadcrumb-item + .breadcrumb-item::before {
    color: #fff;
}

/* Internal Hero Area */
.internal-hero {
    height: 300px;
}

/* Product Hero Area */
.product-hero {
    height: 300px;
}
/* Product Detail Helpers */
.cursor-pointer {
    cursor: pointer;
}

.nav-tabs .nav-link {
    color: #444;
    font-weight: 600;
}

.nav-tabs .nav-link.active {
    color: #8d1c1c;
    border-bottom: 3px solid #8d1c1c;
}

/* Form Styling */
.form-control:focus {
    border-color: #d17a3a;
    box-shadow: 0 0 0 0.25rem rgba(209, 122, 58, 0.25);
}