:root {
--primary-color: #461740; 
--accent-color: #ef7a23; 
--accent-hover: #e6615a;
--text-dark: #252525;
--text-light: #666666;
--bg-light: #f9f9f9;
--white: #ffffff;
--font-heading: 'Poppins', sans-serif;
--font-body: 'Raleway', sans-serif;
}


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

body {
    font-family: var(--font-body);
    color: var(--text-light);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   Top Bar
========================================= */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.top-bar a {
    color: var(--white);
    font-weight: 600;
}

.top-bar a:hover {
    color: var(--accent-color);
}

/* =========================================
   Main Header & Navigation
========================================= */
.main-header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.brand-logo img {
    max-width: 200px;
    height: auto;
}

.header-contact {
    display: flex;
    gap: 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
}

.header-contact a:hover {
    color: var(--accent-color);
}

/* Navigation Styles */
.main-nav {
    width: 100%;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
}

.nav-menu > li > a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
    padding: 10px 0;
    display: block;
}

.nav-menu > li > a:hover {
    color: var(--accent-color);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown i {
    font-size: 12px;
    margin-left: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
    min-width: 220px;
    list-style: none;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    z-index: 100;
    border-radius: 0 0 5px 5px;
    max-height: 70vh; 
    overflow-y: auto; 
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-menu li a {
    color: var(--white);
    padding: 8px 20px; 
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.95rem; 
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: var(--accent-color);
    padding-left: 25px;
}

/* Mobile Toggle Checkbox */
.nav-toggle, .nav-toggle-label {
    display: none;
}

/* =========================================
   Buttons
========================================= */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
    margin-top: 20px;
}

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

/* =========================================
   Hero Carousel Section
========================================= */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background-color: var(--primary-color);
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.slide img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
}

.slide-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.slide-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Carousel Buttons */
.prev-slide, .next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s;
}

.prev-slide { left: 20px; }
.next-slide { right: 20px; }

.prev-slide:hover, .next-slide:hover {
    background: var(--accent-color);
}

/* =========================================
   Intro & Highlights Grid (Flexbox)
========================================= */
.intro-section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.highlights-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.highlight-card {
    width: calc(33.333% - 20px); /* 3 columns minus the gap */
    min-width: 280px; /* Prevents columns from getting too skinny */
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 30px 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card-content p {
    margin-bottom: 20px;
    color: var(--text-light);
    flex-grow: 1;
}

.card-content .btn-secondary {
    align-self: center;
    margin-top: auto;
}

/* =========================================
   Inner Pages & Category Styles
========================================= */
.page-banner {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 20px;
    margin-bottom: 40px;
}

.page-banner h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.text-center {
    text-align: center;
}

.category-section {
    padding-bottom: 80px;
}

/* =========================================
   Single Product Page Styles
========================================= */
.breadcrumbs {
    padding: 20px 20px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--primary-color);
    font-weight: 600;
}

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

.single-product-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    padding: 40px 20px 60px;
}

.product-gallery {
    flex: 1;
    min-width: 300px;
}

.main-product-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 600px;
    object-fit: contain; 
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

.product-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-brand-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.product-info h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 10px;
}

.product-tagline {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 25px;
}

.feature-list {
    list-style: none;
    margin: 20px 0 30px;
}

.feature-list li {
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-dark);
}

.feature-list i {
    color: var(--accent-color);
    margin-right: 10px;
}

.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.product-actions .btn-secondary {
    margin-top: 0;
    background-color: #f1f1f1;
    color: var(--text-dark);
}

.product-actions .btn-secondary:hover {
    background-color: #ddd;
}

/* Product Specifications Table */
.product-specs {
    padding: 0 20px 80px;
}

.product-specs h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.spec-table {
    width: 100%;
    max-width: 800px;
    border-collapse: collapse;
}

.spec-table th, .spec-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.spec-table th {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-weight: 600;
    width: 40%;
}

/* =========================================
   Contact Page Styles (Flexbox)
========================================= */
.contact-page-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 20px 80px;
}

.contact-details {
    width: 38%;
}

.contact-form-wrapper {
    width: 55%;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-details h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info-list {
    list-style: none;
    margin-top: 30px;
}

.contact-info-list li {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--text-dark);
}

.contact-info-list i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 5px;
}

/* Modern Form Elements */
.modern-form .form-group {
    margin-bottom: 20px;
}

.modern-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.3s;
}

.modern-form input:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-submit-btn {
    width: 100%;
    margin-top: 10px;
    border: none;
}

/* PHP Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 25px;
    font-weight: 600;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* =========================================
   About Page Styles (Flexbox)
========================================= */
.about-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 60px 20px 80px;
}

.about-text {
    width: 47%;
}

.about-image {
    width: 47%;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.2;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    display: block;
}

/* Core Values Section */
.core-values-section {
    background-color: var(--bg-light);
    padding: 80px 20px;
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.value-card {
    width: calc(33.333% - 30px);
    min-width: 280px;
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.value-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* =========================================
   Footer
========================================= */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
    text-align: center;
    margin-top: 40px;
}

.footer-content img {
    max-width: 250px;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}

.footer-info {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.footer-info p {
    margin-bottom: 10px;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #ccc;
}

/* =========================================
   Keyframes
========================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   Responsive Media Queries (CONSOLIDATED)
========================================= */

/* Tablet Adjustments */
@media (max-width: 992px) {
    .contact-details, 
    .contact-form-wrapper,
    .about-text,
    .about-image {
        width: 100%;
        margin-bottom: 40px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .highlight-card, 
    .value-card {
        width: calc(50% - 15px); /* Swaps grid to 2 columns on tablets */
    }
}

/* =========================================
   Mobile View: Premium Side-Drawer Nav
========================================= */
@media (max-width: 768px) {
    /* Hide top contact details on mobile */
    .header-contact {
        display: none;
    }

    /* Keep header items aligned horizontally */
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    /* The Hamburger Icon */
    .nav-toggle-label {
        display: block;
        font-size: 1.8rem;
        color: var(--primary-color);
        cursor: pointer;
        padding: 5px;
        z-index: 9999; /* Ensures the icon stays on top of the menu */
        position: relative;
    }

    /* Magic Trick: Change Hamburger to an 'X' when the menu opens */
    .nav-toggle:checked + .nav-toggle-label i::before {
        content: "\f00d" !important; /* !important forces FontAwesome to update */
    }

    /* -------------------------------------
       The Slide-out Side Drawer 
    -------------------------------------- */
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -120%; /* Hides it completely off screen */
        width: 85%; /* Menu takes up 85% of the screen width */
        max-width: 350px;
        height: 100vh;
        background-color: var(--white);
        padding: 80px 20px 40px 20px; /* Pads the top so the 'X' button doesn't block text */
        overflow-y: auto; /* NATIVE scrolling inside the drawer! */
        -webkit-overflow-scrolling: touch; /* Smooth iOS scrolling */
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
        z-index: 9998;
    }

    /* When checked: Slide menu in AND create a dark overlay over the site */
    .nav-toggle:checked ~ .nav-menu {
        right: 0;
        box-shadow: 0 0 0 100vw rgba(0, 0, 0, 0.6); 
    }

    /* Style the main links */
    .nav-menu > li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #eee;
    }

    .nav-menu > li > a {
        padding: 15px 0;
        font-size: 1.2rem;
        display: block;
    }

    /* -------------------------------------
       Mobile Dropdowns (Accordion Style)
    -------------------------------------- */
    .dropdown {
        cursor: pointer; /* Forces iOS Safari to recognize this as a tappable element */
    }

    .dropdown-menu {
        display: none;
        position: static; /* Removes absolute positioning so it flows naturally */
        background-color: var(--bg-light);
        box-shadow: none;
        border-radius: 5px;
        margin-bottom: 10px;
        padding: 5px 0;
        border-left: 3px solid var(--accent-color); /* Visual indent so users know it's a sub-menu */
        max-height: none; 
        overflow-y: visible;
    }

    /* Show dropdown on tap */
    .dropdown:hover .dropdown-menu,
    .dropdown:active .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .dropdown-menu li a {
        color: var(--text-dark);
        padding: 12px 20px;
        font-size: 1rem;
        border-bottom: 1px solid #e0e0e0;
    }

    .dropdown-menu li:last-child a {
        border-bottom: none;
    }

    /* Clean up main nav spacing */
    .main-nav {
        margin-top: 0;
        border-top: none;
        padding-top: 0;
    }

    /* -------------------------------------
       General Mobile Page Adjustments 
    -------------------------------------- */
    .slide-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-carousel {
        height: 50vh;
    }

    .single-product-layout {
        flex-direction: column;
    }
    
    .product-info h1 {
        font-size: 2rem;
    }
}
/* =========================================
   Product Extras / Features Grid
========================================= */
.product-extras {
    padding: 0 20px 80px;
}

.product-extras h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.extras-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.extra-card {
    width: calc(33.333% - 20px);
    min-width: 280px;
    background-color: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.extra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.extra-card img {
    width: 100%;
    height: 250px; /* Forces all images to be exactly the same height so the grid stays neat */
    object-fit: cover; /* Ensures images don't stretch or distort */
    display: block;
}

.extra-card p {
    padding: 20px;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Tablet & Mobile Adjustments */
@media (max-width: 992px) {
    .extra-card {
        width: calc(50% - 15px); /* Swaps to 2 items per row on tablets */
    }
}

@media (max-width: 768px) {
    .extra-card {
        width: 100%; /* Stacks them 1 on top of the other for mobile phones */
    }
}
/* =========================================
   Product Variant Selector (EcoFlame 5)
========================================= */
.base-options {
    margin: 30px 0;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 10px;
    border: 1px solid #eee;
}

.base-options h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.variant-grid {
    display: flex;
    gap: 15px;
}

.variant-card {
    flex: 1;
    background: var(--white);
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.variant-card img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
}

.variant-card span {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.variant-card:hover {
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* The style applied to the currently selected option */
.variant-card.active {
    border-color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(233, 78, 27, 0.15); /* Soft orange glow */
}

/* Make cards stack nicer on very small phones */
@media (max-width: 480px) {
    .variant-grid {
        flex-direction: column;
    }
    .variant-card img {
        height: 120px;
    }
}
/* =========================================
   Product Image Gallery Thumbnails
========================================= */
.thumbnail-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    max-width: 600px; /* Aligns with the max-width of your main product image */
    margin-left: auto;
    margin-right: auto;
}

.thumb {
    width: calc(33.333% - 10px);
    height: 120px;
    object-fit: cover; /* Keeps the images perfectly square/proportional */
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6; /* Dims the inactive images slightly */
}

.thumb:hover {
    opacity: 1;
}

.thumb.active-thumb {
    border-color: var(--accent-color); /* Uses your EcoFlame Orange */
    opacity: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}