/* Custom fonts import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,800;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Organic Cream & Deep Forest */
    --bg-primary: #fbfaf7;
    --bg-secondary: #f3f2ee;
    --bg-card: #ffffff;
    --text-main: #1a2b20;
    --text-muted: #5c6f62;
    --accent: #2d6a4f;
    --accent-light: #e8f5e9;
    --accent-hover: #1b4332;
    --border-color: #e2e8e4;
    
    /* Fonts */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
    
    /* Shadows */
    --shadow-soft: 0 10px 30px -10px rgba(26, 43, 32, 0.06);
    --shadow-hover: 0 20px 40px -15px rgba(26, 43, 32, 0.12);
    
    /* Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

section[id], div[id] {
    scroll-margin-top: 110px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Base Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Layout Grid */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 0;
}

/* Decorative soft green organic blob in background */
.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45, 106, 79, 0.05) 0%, rgba(251, 250, 247, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
    text-align: center;
}

/* Animation Delays for Hero elements */
.hero-content .badge {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content h1 {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    opacity: 0;
}

.hero-content .lead {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.hero-content .signup-form-wrapper {
    animation: scaleIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

.badge {
    background: var(--accent-light);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 32px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 28px;
    color: var(--text-main);
}

.highlight {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.lead {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* Premium signup wrapper */
.signup-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    max-width: 520px;
    margin: 0 auto;
    transition: var(--transition-smooth);
}

.signup-form-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 15px 35px -10px rgba(45, 106, 79, 0.15);
    transform: translateY(-2px);
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 600px) {
    .signup-form {
        flex-direction: row;
    }
}

.input-email {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 16px 20px;
    font-size: 16px;
    font-family: var(--font-body);
    outline: none;
}

.input-email::placeholder {
    color: #a0afb7;
}

.btn-submit {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 16px 36px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-submit:hover {
    background-color: var(--accent-hover);
    transform: scale(1.02);
}

/* Features Section */
.features {
    padding: 120px 0;
    background-color: var(--bg-secondary);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 64px;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    display: inline-block;
    opacity: 0.9;
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Recipes and Videos Section */
.recipes {
    padding: 50px 0 100px 0;
    scroll-margin-top: 110px;
    background-color: var(--bg-primary);
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.recipe-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.recipe-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #2d6a4f; /* Fallback brand color */
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
}

.video-thumbnail-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 43, 32, 0.1) 0%, rgba(26, 43, 32, 0.4) 100%);
    transition: var(--transition-smooth);
}

.recipe-card:hover .video-thumbnail-container::after {
    background: linear-gradient(to bottom, rgba(26, 43, 32, 0.2) 0%, rgba(26, 43, 32, 0.6) 100%);
}

/* Pulses play button */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 2;
    transition: var(--transition-smooth);
    box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.5);
    animation: pulsePlay 2s infinite;
}

@keyframes pulsePlay {
    0% {
        box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(45, 106, 79, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(45, 106, 79, 0);
    }
}

.recipe-card:hover .play-btn {
    background-color: var(--accent-hover);
    transform: translate(-50%, -50%) scale(1.08);
}

.recipe-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.recipe-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.recipe-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.recipe-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
    flex-grow: 1;
}

.read-more-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.read-more-link:hover {
    color: var(--accent-hover);
}

/* Products Section */
.products-section {
    padding: 30px 0 40px 0;
    scroll-margin-top: 110px;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.product-shop-card,
.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 155px !important;
    padding-top: 0 !important;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-secondary);
}

.product-shop-info {
    padding: 12px 14px !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-shop-info h3 {
    font-family: var(--font-heading);
    font-size: 0.98rem !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
    color: var(--text-main);
    font-weight: 600 !important;
}

.product-price {
    font-size: 0.98rem !important;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px !important;
}

.product-action-btn {
    padding: 8px 10px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
}

.product-info-link {
    margin-top: 6px !important;
    font-size: 11px !important;
}

/* Tablet Layout (3 columns) */
@media (max-width: 1023px) and (min-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
    .product-image-container {
        height: 140px !important;
    }
    .product-shop-info {
        padding: 12px !important;
    }
}

/* Mobile Responsive Grid (2 columns for compact viewing) */
@media (max-width: 599px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin-top: 15px !important;
    }

    .product-shop-card,
    .product-card {
        border-radius: 12px !important;
    }

    .product-image-container {
        height: 120px !important;
    }

    .product-shop-info {
        padding: 10px !important;
    }

    .product-shop-info h3 {
        font-size: 0.85rem !important;
        line-height: 1.25 !important;
        margin-bottom: 4px !important;
        min-height: 2.5em;
    }

    .product-price {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }

    .product-action-btn {
        padding: 7px 6px !important;
        font-size: 11px !important;
    }

    .product-info-link {
        font-size: 10px !important;
        margin-top: 4px !important;
    }

    .wishlist-heart-icon {
        width: 28px !important;
        height: 28px !important;
        top: 8px !important;
        right: 8px !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .wishlist-heart-icon svg {
        width: 15px !important;
        height: 15px !important;
    }
}

/* Wishlist Heart Icon Styling */
.wishlist-heart-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8e4);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.wishlist-heart-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-muted, #5c6f62);
    fill: none;
    transition: stroke 0.2s ease, fill 0.2s ease, transform 0.2s ease;
}

/* Reveal unselected (gray) heart on product card hover */
.product-shop-card:hover .wishlist-heart-icon,
.product-card:hover .wishlist-heart-icon {
    opacity: 1;
    pointer-events: auto;
}

.wishlist-heart-icon:hover {
    transform: scale(1.1);
    border-color: var(--accent, #2d6a4f);
}

.wishlist-heart-icon:hover svg {
    stroke: var(--accent, #2d6a4f);
}

/* Active (Wishlisted) State: Always visible / fixed with header green fill */
.wishlist-heart-icon.active {
    opacity: 1 !important;
    pointer-events: auto !important;
    background: #ffffff !important;
    border-color: var(--accent, #2d6a4f) !important;
    box-shadow: 0 2px 10px rgba(45, 106, 79, 0.15);
}

.wishlist-heart-icon.active svg {
    stroke: var(--accent, #2d6a4f) !important;
    fill: var(--accent, #2d6a4f) !important;
}

.product-shop-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 65%; /* Reduced Aspect Ratio for compact layout */
    background-size: cover;
    background-position: center;
    background-color: var(--bg-secondary);
}

.product-shop-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-shop-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: var(--text-main);
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.product-shop-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.product-action-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
    text-align: center;
}

.product-action-btn:hover {
    background-color: var(--accent-hover);
}

.product-info-link {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: underline;
    display: inline-block;
    margin-top: 15px;
    text-align: center;
}

.product-info-link:hover {
    color: var(--accent);
}

/* Navigation Header */
.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 80px;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links {
    display: flex !important;
    gap: 40px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-links a {
    text-decoration: none !important;
    color: var(--text-muted) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    position: relative !important;
    padding-bottom: 2px !important;
    display: inline-block !important;
    transition: var(--transition-smooth) !important;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1.5px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: bottom left;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* Custom Dropdown System */
.custom-dropdown {
    display: inline-block;
}

.dropdown-trigger {
    transition: var(--transition-smooth) !important;
}

.dropdown-trigger:hover, .custom-dropdown.open .dropdown-trigger {
    border-color: var(--accent) !important;
    background-color: var(--accent-light) !important;
    color: var(--accent) !important;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.dropdown-option {
    color: var(--text-main);
}

.dropdown-option:hover {
    background-color: var(--accent-light);
    color: var(--accent);
}

.dropdown-option.active {
    background-color: rgba(92, 111, 98, 0.08);
    color: var(--accent);
}

/* Category Filters */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid #5c6f62;
    color: #5c6f62;
    padding: 10px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
}

.filter-btn:hover, .filter-btn.active {
    background-color: #768d7e; /* Sage green mockup active color */
    color: white;
    border-color: #768d7e;
}

/* Product Card Transition Support */
.product-shop-card.hidden {
    display: none !important;
}

/* Side Cart & Overlay CSS */
.side-cart.open {
    right: 0 !important;
}

.cart-overlay.open {
    display: block !important;
    opacity: 1 !important;
}

/* Pinned Cart System */
body {
    transition: padding-right 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.cart-pinned {
    padding-right: 340px !important;
}

.side-cart.pinned {
    right: 0 !important;
    box-shadow: -1px 0 0 var(--border-color) !important; /* Border instead of floating shadow */
}

#pin-cart.active {
    color: var(--accent) !important;
    transform: rotate(45deg);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-main);
}

.cart-item-price {
    font-size: 13px;
    color: var(--accent);
    font-weight: bold;
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.cart-qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.cart-qty-btn:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent);
}

.cart-item-remove {
    background: none;
    border: none;
    color: #c62828;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    padding: 0;
    margin-top: 8px;
}

/* Badge Pop Animation */
@keyframes cartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.cart-badge-pop {
    animation: cartPop 0.3s ease-out;
}

/* --- Password Gate Overlay Styling --- */
.pwd-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(26, 43, 32, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.pwd-gate-overlay.authenticated {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pwd-gate-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 32px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    animation: scaleIn 0.3s ease-out;
}

.pwd-gate-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.pwd-gate-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.pwd-gate-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.pwd-gate-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pwd-gate-input {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s ease;
    text-align: center;
}

.pwd-gate-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

.pwd-gate-btn {
    padding: 14px 20px;
    border-radius: 12px;
    background-color: var(--accent);
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.pwd-gate-btn:hover {
    background-color: var(--accent-hover);
}

.pwd-gate-btn:active {
    transform: scale(0.98);
}

.pwd-gate-error {
    color: #d32f2f;
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 14px;
}

/* --- Floating Filter Funnel Button & Popover (Bottom Right) --- */
.floating-filter-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.8px solid var(--accent, #2d6a4f);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.floating-filter-trigger:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(45, 106, 79, 0.25);
    background-color: #f4f9f5;
}

.floating-filter-trigger:active {
    transform: scale(0.95);
}

.floating-filter-trigger svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent, #2d6a4f);
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.floating-filter-menu {
    position: fixed;
    bottom: 94px;
    right: 30px;
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8e4);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
    z-index: 10000;
    display: none;
    flex-direction: column;
    gap: 8px;
    min-width: 250px;
    animation: filterPopUp 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-filter-menu.open {
    display: flex !important;
}

@keyframes filterPopUp {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Multi-Select Diet Filter Option & Checkbox Styling */
.diet-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: #f8faf8;
    color: #1a2b20;
    border: 1px solid #e2e8e4;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    user-select: none;
}

.diet-filter-option:hover {
    background: #eef4f0;
    border-color: #2d6a4f;
}

.diet-filter-option.active {
    background: #e8f5e9;
    border-color: #2d6a4f;
    color: #1b4332;
    font-weight: 600;
}

.diet-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.8px solid #a3b8aa;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.diet-filter-option.active .diet-checkbox {
    background: #2d6a4f;
    border-color: #2d6a4f;
    color: #ffffff;
}

/* --- Header Navigation Dropdown Menu --- */
.nav-dropdown-wrapper {
    position: relative;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    margin-top: 10px;
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8e4);
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.14);
    padding: 10px 0;
    min-width: 250px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 2000;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-top: 1px solid var(--border-color, #e2e8e4);
    border-left: 1px solid var(--border-color, #e2e8e4);
}

.nav-dropdown-menu li {
    margin: 0;
    padding: 0;
}

.nav-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-main, #1a2b20);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.nav-dropdown-menu li a:hover {
    background-color: #f0f7f2;
    color: #2d6a4f;
}

.hamburger-btn {
    display: none !important;
}

.hamburger-btn:hover {
    color: #2d6a4f !important;
}

/* Responsive navigation visibility rules */
@media (min-width: 993px) {
    .hamburger-btn {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .hamburger-btn {
        display: flex !important;
    }
    .header-nav {
        padding: 14px 20px !important;
    }
    .header-nav .nav-links {
        display: none !important;
    }
}

