/* Base Styles & Variables */
:root {
    --primary-color: #FFCE1B; /* Your Mustard Yellow */
    --primary-hover: #E5B817; /* A slightly darker mustard for button hover effects */
    --secondary-gold: #fca311; 
    --text-dark: #2b2b2b;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --border-color: #eaeaea;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   TOP BAR (Animated Marquee)
   ========================================= */
.top-bar {
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 10px 0;
    font-size: 0.9rem;
    font-weight: 600;
    
    /* Animation container locks */
    overflow: hidden;       /* Hides the text when it's outside the bar */
    white-space: nowrap;    /* Forces the text to stay on one single line */
    box-sizing: border-box;
}

.top-bar p {
    display: inline-block;
    padding-left: 100%; /* Pushes the text completely off the right side of the screen */
    margin: 0;
    
    /* The animation: name | duration | timing-function | iteration-count */
    animation: marqueeTicker 20s linear infinite; 
}

/* Pause the animation if the user hovers over it to read */
.top-bar p:hover {
    animation-play-state: paused;
}

/* The actual movement instructions */
@keyframes marqueeTicker {
    0% {
        transform: translateX(0); /* Start at the right (pushed by padding) */
    }
    100% {
        transform: translateX(-100%); /* Move entirely past the left edge */
    }
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 80px; 
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 1. Left side: Logo */
.logo {
    flex: 1; 
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.brand-logo {
    max-height: 100px; 
    width: auto;      
    display: block;
}

/* 2. Middle: Navigation */
.navbar {
    flex: 2; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar ul {
    display: flex;
    gap: 35px;
    align-items: center;
}

.navbar a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.navbar a:hover {
    color: var(--primary-color);
}

/* =========================================
   DROPDOWN SPECIFIC FIXES 
   ========================================= */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 80px; 
}

.dropdown-menu {
    display: none !important; 
    position: absolute;
    top: 80px; 
    left: 50%;
    transform: translateX(-50%); 
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06); 
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary-color); 
    min-width: 240px;
    flex-direction: column;
    padding: 15px 0;
    border-radius: 0 0 6px 6px;
}

.dropdown.active .dropdown-menu {
    display: flex !important; 
}

.dropdown-menu a {
    padding: 12px 25px;
    display: block;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 400; 
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.dropdown-toggle i {
    transition: transform 0.3s ease;
}
.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}
/* ========================================= */

/* 3. Right side: Button */
.nav-cta {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.btn-outline-small {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    color: var(--text-dark);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.btn-outline-small:hover {
    background: var(--primary-color);
    color: var(--text-dark);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative; 
    width: 100%;
    height: 65vh; 
    min-height: 550px; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; 
    border-bottom: 1px solid var(--border-color);
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); 
    z-index: 2;
}

.hero-slider {
    position: relative;
    z-index: 3; 
    padding: 0 20px; 
}

.slide-content h1 {
    font-size: 3.5rem; 
    margin-bottom: 10px;
    color: var(--white); 
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6); 
}

.slide-content p {
    font-size: 1.2rem;
    color: #f1f2f6; 
    margin-bottom: 25px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-dark); 
    padding: 14px 32px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s, transform 0.3s;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px); 
}

/* =========================================
   GENERIC SECTIONS & GRIDS
   ========================================= */
.section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--text-dark);
}

/* =========================================
   CATEGORY GRID (Horizontal Cards Match)
   ========================================= */
.horizontal-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.category-card-hz {
    background: linear-gradient(135deg, #ffffff 0%, #e6e6e6 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 20px 30px 30px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.category-card-hz:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

/* The 100% CSS Green Veg Icon (No image required!) */
.veg-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 14px;
    height: 14px;
    border: 1px solid #27ae60;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.veg-badge::after {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #27ae60;
    border-radius: 50%;
}

/* Text Container */
.card-text {
    flex: 1;
    text-align: left;
    z-index: 2; 
}

.card-text h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.card-text p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* The "Explore" Button with Red Play Icon */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.btn-action i {
    color: #e74c3c; 
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.category-card-hz:hover .btn-action i {
    transform: translateX(5px); 
}

/* Image Container */
.card-img-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 50%; 
}

.card-img-wrapper img {
    max-width: 120%; 
    height: auto;
    max-height: 150px;
    object-fit: contain;
    /* MAGIC TRICK: This adds a realistic shadow specifically to the shape of your product */
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
}

.category-card-hz:hover .card-img-wrapper img {
    transform: scale(1.05); /* Slight zoom on hover */
}

/* =========================================
   PRODUCT GRID (Showcase)
   ========================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-img {
    height: 220px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-view {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-view:hover {
    background: var(--primary-color);
    color: var(--text-dark);
}

/* About Section */
.about-brand {
    background: var(--bg-light);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--text-light);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    color: var(--primary-color); 
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #aaa;
}