:root {
    --bg-primary: #0F172A;
    --bg-card: #1E293B;
    --border-color: #334155;
    --text-primary: #F8FAFC;
    --text-muted: #94A3B8;
    --accent-green: #10B981;
    --accent-emerald: #059669;
    --accent-amber: #F59E0B;
    --transition: all 0.3s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}


/* Section Containers */
.section-padding {
    padding: 30px 25px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Base Layout Container */
.container {
    width: 90%;
    /* max-width: 1200px;*/
    margin: 0 auto;
    padding: 1rem 0;
}

/* Dynamic Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #064E3B 0%, #022C22 100%);
    border: 1px solid #065F46;
    border-radius: 12px;
    padding: 1.5rem 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.hero-banner h1 {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.hero-banner p {
    color: #A7F3D0;
    font-size: 1.05rem;
    /*max-width: 700px;*/
    margin: 0 auto;
}

/* Card Grids */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 20px;
}

.card {
    background-color: var(--bg-card);
    border: 10px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Navigation Styles */
.main-nav {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-list {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    list-style: none;
    gap: 1.75rem;
    align-items: center;
}

.nav-link, .dropdown-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link.active, .nav-link:hover, .dropdown-link:hover {
    color: var(--accent-green);
}

/* Dropdown Submenus */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 220px;
    list-style: none;
    padding: 0.5rem 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.dropdown-item {
    padding: 0;
}

.dropdown-item a {
    display: block;
    padding: 0.5rem 1rem;
}

/* Show Dropdown on Hover for Desktop */
@media (min-width: 992px) {
    .has-dropdown:hover > .dropdown-menu {
        display: block;
    }
    .mobile-accordion-toggle {
        display: none;
    }
}

/* Filter Buttons */
.btn-filter {
    padding: 0.5rem 1rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-filter:hover {
    border-color: var(--accent-green);
}

.btn-filter.active-filter {
    background-color: var(--accent-green);
    color: #022C22;
    border-color: var(--accent-green);
}

/* Eco Badges */
.badge-eco {
    display: inline-block;
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Responsive Mobile Rules */
@media (max-width: 991px) {
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .has-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background-color: transparent;
        padding-left: 1rem;
    }
    .has-dropdown.is-open > .dropdown-menu {
        display: block;
    }
    .mobile-accordion-toggle {
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 1rem;
        cursor: pointer;
    }
}

/* ==========================================================================
   NAVIGATION BAR & HAMBURGER MENU STYLES
   ========================================================================== */

.main-nav {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    position: relative;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.brand-logo span {
    color: var(--accent-green);
}

/* Hamburger Toggle Icon */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Animate Hamburger to 'X' when Open */
.nav-toggle.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.nav-toggle.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Navigation List */
.nav-list {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link.active,
.nav-link:hover,
.dropdown-link:hover {
    color: var(--accent-green);
}

.arrow {
    font-size: 0.65rem;
    margin-left: 0.2rem;
    transition: transform 0.2s ease;
}

/* Dropdown styling */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 210px;
    list-style: none;
    padding: 0.5rem 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.dropdown-link {
    display: block;
    padding: 0.6rem 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
}

/* ==========================================================================
   DESKTOP VIEW (Min-width: 992px)
   ========================================================================== */
@media (min-width: 992px) {
    .has-dropdown:hover > .dropdown-menu {
        display: block;
    }
    
    .has-dropdown:hover .arrow {
        transform: rotate(180deg);
    }
}

/* ==========================================================================
   MOBILE VIEW (Max-width: 991px)
   ========================================================================== */
@media (max-width: 991px) {
    .nav-toggle {
        display: flex; /* Show Hamburger Icon */
    }

    /* Off-Canvas Drawer Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen by default */
        width: 280px;
        height: 100vh;
        background-color: var(--bg-card);
        border-left: 1px solid var(--border-color);
        padding: 5rem 1.5rem 2rem 1.5rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.is-active {
        right: 0; /* Slide in drawer */
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        font-size: 1.05rem;
        padding: 0.4rem 0;
    }

    /* Mobile Accordion Submenu */
    .has-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--accent-green);
        border-radius: 0;
        background-color: rgba(15, 23, 42, 0.5);
        margin-top: 0.5rem;
        padding-left: 0.5rem;
    }

    .has-dropdown.open-mobile > .dropdown-menu {
        display: block;
    }

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

    /* Dark Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(2px);
        z-index: 999;
    }

    .nav-overlay.is-active {
        display: block;
    }
}

/* Standard Image Container Aspect & Uniform Sizing */
.product-img {
    /* Sets the standard maximum dimensions */
    width: 100%;
    height: 280px;            /* Set your desired standard height across all cards */
    
    /* Key properties for responsiveness and fitting */
    object-fit: contain;      /* Shrinks/scales image inside the dimensions without cropping or stretching */
    object-position: center;  /* Centers the image within the container frame */
    
    display: block;
    max-width: 100%;          /* Ensures compatibility on small mobile screens */
}

/* Optional: If your cards have a dark background (#0F172A) */
.product-image-wrapper {
    background-color: #0F172A;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links {
    display: flex; 
    gap: 5px;
    justify-content: center;
    align-items: center;     /* Optional: aligns them vertically if needed */
    /* margin-bottom: 1rem;     Adds a little space between icons and copyright text */
}

.social-element {
   /* width: 3rem;               w-12 (12 * 0.25rem = 3rem / 48px) */
  /*height: 3rem;                h-12 */
  /*background-color: #dbeafe;   bg-blue-100 */
  /* border-radius: 9999px;       rounded-full */
  /* display: flex;               flex */
  align-items: center;        /* items-center */
  justify-content: center;    /* justify-center */
   /* margin-right: 1rem;        mr-4 (4 * 0.25rem = 1rem / 16px) */
  /* flex-shrink: 0;             flex-shrink-0 */
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; /* transition-colors */
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  text-decoration: none;
  color: #F8FAFC;
}

.social-element:hover {
  background-color:  #10B981 /*bfdbfe;   hover:bg-blue-200 */
}


.social-links a {
    width: 40px;
    height: 40px;
    background-color: #1e293b;
    color: #ffffff;
    border-radius: 10px;
    display: flex;
     align-items: center;
     justify-content: center; 
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px);
    background-color:  #10B981
}