/* =========================================
   1. THEME VARIABLES & SETUP
   ========================================= */

:root {
    /* Brand Colors */
    --primary: #006C4F;
    /* Emerald Green */
    --primary-dark: #004d38;
    /* Darker Green for Hover */
    --secondary: #FFB700;
    /* Brand Yellow (Golden) */
    --secondary-hover: #e0a100;
    /* Neutrals */
    --dark: #0F172A;
    /* Deep Navy/Black for text */
    --light: #F8FAFC;
    /* Very light grey for backgrounds */
    --white: #FFFFFF;
    --gray-500: #64748b;
    /* System */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Prevents navbar from covering titles */
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--dark);
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}


/* =========================================
   2. UTILITY CLASSES (Brand Colors)
   ========================================= */

.text-primary-brand {
    color: var(--primary) !important;
}

.bg-primary-brand {
    background-color: var(--primary) !important;
}


/* Primary Button (Green) */

.btn-primary-brand {
    background-color: var(--primary);
    border: 2px solid var(--primary);
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-brand:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 108, 79, 0.3);
}


/* Secondary Button (Yellow/Outline) */

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.btn-outline-light:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--dark);
    /* Dark text on yellow for contrast */
}


/* Badge Styling */

.badge.bg-warning {
    background-color: var(--secondary) !important;
    color: var(--dark) !important;
}


/* =========================================
   3. NAVBAR & TOP BAR
   ========================================= */

.top-bar {
    background-color: var(--dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-link {
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    position: relative;
}


/* Underline animation for links */

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link.active {
    color: var(--primary) !important;
}


/* Cart Badge */

.cart-count {
    font-size: 0.7rem;
    background-color: #ef4444 !important;
    /* Red for alert */
}


/* =========================================
   4. HERO SECTION
   ========================================= */

.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background-color: var(--dark);
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient from Dark Green to transparent black */
    background: linear-gradient(135deg, rgba(0, 50, 30, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.hero-text-box {
    position: relative;
    z-index: 10;
}

.object-fit-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================
   5. CARDS & ICON BOXES
   ========================================= */


/* Card Hover Effect (Lift Up) */

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}


/* Icon Circles */

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.card-hover:hover .icon-box {
    transform: scale(1.1);
}


/* Green Icon Box */

.icon-box-primary {
    background-color: rgba(0, 108, 79, 0.1);
    color: var(--primary);
}


/* Yellow Icon Box */

.icon-box-secondary {
    background-color: rgba(255, 183, 0, 0.15);
    /* Light Yellow */
    color: #b48200;
    /* Darker yellow for text visibility */
}


/* =========================================
   6. STORE FILTERS & PRODUCTS
   ========================================= */

.filter-btn {
    border: 2px solid var(--dark);
    color: var(--dark);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--dark);
    color: var(--white);
}

.product-item img {
    transition: transform 0.3s ease;
}

.product-item:hover img {
    transform: scale(1.05);
}


/* =========================================
   7. FLOATING ELEMENTS (WhatsApp)
   ========================================= */

.float-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1050;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.float-wa:hover {
    transform: scale(1.1);
    color: white;
}


/* =========================================
   8. FOOTER
   ========================================= */

footer {
    background-color: var(--dark);
}

footer a {
    transition: color 0.2s;
}

footer a:hover {
    color: var(--secondary) !important;
}


/* =========================================
   9. MOBILE RESPONSIVENESS
   ========================================= */

@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 0 0 1rem 1rem;
        box-shadow: var(--shadow-lg);
        margin-top: 10px;
    }
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-top: 80px;
        padding-bottom: 50px;
    }
    .display-3 {
        font-size: 2.5rem;
    }
}


/* News Ticker Animation */

.news-ticker {
    white-space: nowrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    background: rgba(0, 108, 79, 0.95) !important;
    /* Your Brand Green */
}

.ticker-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
    padding-left: 100%;
    /* Start from right */
}

.ticker-item {
    display: inline-block;
    padding-right: 50px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}


/* Pause animation on hover so users can read */

.news-ticker:hover .ticker-content {
    animation-play-state: paused;
}


/* 1. Force consistent heights */

.gallery-item {
    height: 300px;
    /* Adjust this if you want taller images */
    cursor: pointer;
}


/* 2. Zoom Animation */

.zoom-img {
    transition: transform 0.5s ease;
}

.gallery-item:hover .zoom-img {
    transform: scale(1.1);
    /* Smooth zoom in */
}


/* 3. Text Overlay on Hover */

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}