/* --- IWANAYE DESIGNS CORE STYLES --- */

/* 1. Brand Variables & Typography
-------------------------------------------------- */
:root {
    --dark-green: #245334;
    --gray-green: #608f54;
    --pastel-yellow: #cec8a1;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-color: #555;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif; /* Set Montserrat as the main sans-serif font */
    --font-signature: 'Dancing Script', cursive;
}

body {
    font-family: var(--font-sans); /* Use Montserrat for all body text */
    color: var(--text-color);
    background-color: var(--white);
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--dark-green);
    font-weight: 500;
}

a {
    color: var(--gray-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

    a:hover {
        color: var(--dark-green);
    }

/* --- 2. Header & Navigation
-------------------------------------------------- */
.top-bar {
    background-color: var(--dark-green);
    color: var(--white);
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background-color: var(--white);
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.brand-logo-wrapper {
    display: block;
    text-align: center;
    padding: 1.5rem 0;
    text-decoration: none;
}

.brand-logo {
    max-height: 60px;
    width: auto;
}

.brand-signature-text {
    display: block;
    font-family: var(--font-sans); /* This uses Montserrat */
    font-weight: 700; /* This ensures it is bold */
    font-size: 2.5rem; /* Increased font size for impact */
    text-transform: lowercase; /* This forces the text to be lowercase */
    letter-spacing: 1px; /* Adjusted spacing to look clean */
    color: #333; /* A strong, dark gray/off-black color */
    margin-top: -10px; /* Adjust vertical spacing below the logo leaf */
    line-height: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
}

    .header-actions .header-link {
        color: var(--text-color);
        text-decoration: none;
        font-size: 1.2rem;
        transition: color 0.3s ease;
        cursor: pointer;
    }

        .header-actions .header-link:hover {
            color: var(--dark-green);
        }

.main-nav .navbar-nav .nav-link {
    font-family: var(--font-sans); /* Use Montserrat for nav links */
    font-weight: 700; /* Make it bold */
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    white-space: nowrap;
    position: relative;
    padding-bottom: 8px;
    transition: color 0.3s ease;
}

    .main-nav .navbar-nav .nav-link:hover {
        color: var(--dark-green);
    }

    /* Style for the active link and its underline */
    .main-nav .navbar-nav .nav-link.active {
        color: var(--dark-green);
    }

        .main-nav .navbar-nav .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 1rem;
            right: 1rem;
            height: 2px;
            background-color: var(--dark-green);
        }


/* --- 3. Search Overlay --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(36, 83, 52, 0.95);
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.4s ease;
}

    .search-overlay.active {
        display: flex;
        opacity: 1;
    }

    .search-overlay .search-input {
        background: transparent;
        border: none;
        border-bottom: 2px solid var(--pastel-yellow);
        color: var(--white);
        font-size: 2.5rem;
        font-family: var(--font-serif);
        text-align: center;
        width: 80%;
        max-width: 600px;
        outline: none;
    }

        .search-overlay .search-input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

    .search-overlay .close-btn {
        position: absolute;
        top: 30px;
        right: 40px;
        font-size: 2.5rem;
        color: var(--white);
        cursor: pointer;
        background: none;
        border: none;
    }

/* --- 4. Main Content & Footer --- */
main {
    min-height: 60vh;
}

.site-footer {
    background-color: var(--dark-green);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0;
    font-size: 0.95rem;
}

.footer-title {
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

    .footer-links li {
        margin-bottom: 0.6rem;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.8);
        transition: color 0.3s ease;
    }

        .footer-links a:hover {
            color: var(--pastel-yellow);
            text-decoration: none;
        }

.social-icons a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    margin-right: 1.25rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

    .social-icons a:hover {
        color: var(--pastel-yellow);
        transform: translateY(-2px);
    }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- 5. Category & Product Page Styles --- */
/* 1. Redesigned Category Hero Section
-------------------------------------------------- */
.category-hero {
    position: relative;
    height: 55vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

    /* This is the new "card" effect */
    .category-hero .hero-content {
        position: relative;
        z-index: 2;
        color: var(--white); /* Ensures text is white */
        background: rgba(36, 83, 52, 0.7); /* Your dark green with transparency */
        padding: 2rem 3rem;
        border-radius: 5px;
        backdrop-filter: blur(8px);
        max-width: 700px;
    }

    .category-hero .hero-title {
        font-size: 3.5rem;
        font-weight: 500;
        text-shadow: 1px 1px 4px rgba(0,0,0,0.5); /* Soft shadow for readability */
        color: var(--white); /* Explicitly set to white */
    }

    .category-hero .hero-description {
        font-size: 1.2rem;
        opacity: 0.9;
        color: var(--white);
    }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card {
    background-color: var(--white);
    border: 1px solid #eaeaea;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

    .product-card.no-link {
        cursor: default;
    }

.product-card-link:hover .product-card:not(.no-link) {
    transform: translateY(-7px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.product-image-wrapper {
    background-color: var(--white);
    padding: 1rem;
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.product-card-link:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
}

.product-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--dark-green);
    margin-bottom: 0.25rem;
}

.product-price {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--text-color);
}
/* --- FORCEFUL HERO TEXT COLOR OVERRIDE --- */

/* This rule is more specific and uses !important to ensure it is applied */

.hero-slider .hero-slide-content h2 {
    color: white !important; /* Force the title color to white */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6) !important; /* Make shadow stronger */
}

.hero-slider .hero-slide-content p {
    color: white !important; /* Force the paragraph color to white */
    opacity: 0.9 !important;
}

/* This targets the button inside the hero */
.hero-slider .hero-slide-content .explore-btn {
    background: var(--pastel-yellow) !important;
    color: var(--dark-green) !important;
}