:root {
    --primary-orange: #f37821;
    --primary-green: #1a711d;
    --text-dark: #333333;
    --text-light: #ffffff;
    --font-main: 'Roboto', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: #ffffff;
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Top Bar */
.top-bar {
    background-color: var(--primary-orange);
    color: var(--text-light);
    padding: 16px 0;
    font-size: 13px;
    font-weight: 500;
}

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

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.top-bar i {
    margin-right: 6px;
}

.top-bar-right a {
    color: var(--text-light);
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.top-bar-right a:hover {
    opacity: 0.8;
}

/* Navbar */
.navbar {
    background-color: #ffffff;
    padding: 15px 0;
    position: relative;
    z-index: 100;
    transition: padding 0.3s ease;
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 90px;
    object-fit: contain;
    transition: height 0.3s ease;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--primary-green);
    cursor: pointer;
    padding: 5px;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    text-transform: uppercase;
    padding: 10px 15px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    white-space: nowrap;
    border-radius: 6px;
}

.nav-links a i {
    margin-left: 6px;
    font-size: 11px;
}

/* Hover States for non-active links */
.nav-links a:not(.active-box):hover {
    background-color: var(--primary-green);
    color: white !important;
    box-shadow: 0 4px 10px rgba(43, 122, 11, 0.3);
}

/* The specific green box for Active Page */
.nav-links a.active-box {
    background-color: var(--primary-green);
    color: white !important;
    box-shadow: 0 4px 10px rgba(43, 122, 11, 0.3);
}

.mobile-sidebar-header {
    display: none;
}

.sidebar-backdrop {
    display: none;
}

@media (max-width: 991px) {
    .top-bar {
        display: none;
    }

    .navbar {
        padding: 20px 0;
    }

    .logo-img {
        height: 55px;
        /* Reduced header height for mobile */
    }

    .mobile-menu-btn {
        display: block;
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .sidebar-backdrop.show {
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 0;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
        gap: 0;
        z-index: 999;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .nav-links.show {
        left: 0;
    }

    .mobile-sidebar-header {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 15px 20px;
        border-bottom: 1px solid #f3f4f6 !important;
        background: white;
    }

    .sidebar-logo {
        height: 60px;
        object-fit: contain;
    }

    .close-sidebar-btn {
        position: absolute;
        right: 15px;
        background: none;
        border: none;
        font-size: 24px;
        color: #4b5563;
        cursor: pointer;
        padding: 5px;
    }

    .nav-links li {
        width: 100%;
        border-bottom: none;
    }

    .nav-links a {
        padding: 14px 20px;
        font-size: 13px;
        font-weight: 600;
        color: #333333 !important;
        justify-content: space-between;
        background: transparent !important;
        box-shadow: none !important;
        text-transform: uppercase;
        border-radius: 0 !important;
        display: flex;
        align-items: center;
    }
    
    .nav-links a:hover,
    .nav-links a:active,
    .nav-links a:focus {
        color: #f37821 !important;
        background: transparent !important;
    }

    ul.nav-links a.active-box {
        color: var(--primary-green) !important;
        font-weight: 700;
        background: transparent !important;
    }

    /* Rotate chevron when open */
    ul.nav-links .dropdown.show > a,
    ul.nav-links .dropdown-submenu.show > a {
        color: #f37821 !important;
        background: transparent !important;
    }

    ul.nav-links .dropdown.show > a i,
    ul.nav-links .dropdown-submenu.show > a i {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }
    .nav-links a i {
        transition: transform 0.3s ease;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    background: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center center / cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 60%);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-text-box {
    max-width: 700px;
}

.hero-title {
    color: var(--primary-orange);
    font-size: 48px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 20;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.slider-arrow:hover {
    opacity: 1;
}

.slider-arrow.left {
    left: 30px;
}

.slider-arrow.right {
    right: 30px;
}

/* Product Bags Overlay */
.product-bags {
    position: absolute;
    bottom: 0;
    right: 10%;
    display: flex;
    align-items: flex-end;
    z-index: 15;
}

.product-bag {
    background: white;
    border-radius: 4px 4px 0 0;
    padding: 10px;
    margin-left: 10px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-weight: bold;
    font-size: 12px;
}

.bag-large {
    width: 180px;
    height: 250px;
}

.bag-medium {
    width: 150px;
    height: 200px;
}

.bag-small {
    width: 120px;
    height: 160px;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    margin-top: 50px;
}

/* --- Multi-Level Dropdown CSS --- */
.dropdown,
.dropdown-submenu {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-green);
    min-width: 250px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    margin-top: 10px;
    animation: fadeInDropdown 0.3s ease;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Invisible bridge so hover doesn't break over the 10px margin gap */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

.dropdown-menu li {
    border-bottom: none;
    position: relative;
}

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

.dropdown-menu a {
    color: #ffffff !important;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    text-transform: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.dropdown-menu a:hover,
.dropdown.show>a,
.dropdown-submenu.show>a {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    padding-left: 32px;
}

/* Sub-dropdown positioning */
.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: 0;
}

/* Hover effect for desktop (min-width: 992px) */
@media (min-width: 992px) {
    .dropdown:hover>.dropdown-menu {
        display: block;
    }

    .dropdown-submenu:hover>.dropdown-menu {
        display: block;
    }
}

/* Mobile adjustments (max-width: 991px) */
@media (max-width: 991px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 15px;
        background-color: transparent;
        border: none;
        margin-top: 5px;
        display: none;
    }

    .dropdown-menu a {
        color: #666666 !important;
        border-bottom: none;
        padding: 12px 30px; /* Indent sub-menu items */
        margin: 0;
        border-radius: 0 !important;
        background: transparent !important;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
    }

    .dropdown-menu a:hover,
    .dropdown-menu a:active {
        color: #f37821 !important;
        background: transparent !important;
    }

    /* Open dropdown parent link should be orange, no background */
    ul.nav-links .dropdown.show > a,
    ul.nav-links .dropdown-submenu.show > a {
        background: transparent !important;
        color: #f37821 !important;
    }

    /* When 'show' class is added via JS on touch/click */
    .dropdown.show>.dropdown-menu,
    .dropdown-submenu.show>.dropdown-menu {
        display: block;
    }
}

/* --- Product Detail Page CSS (Reference Layout) --- */
.product-top-banner {
    background-color: var(--primary-green);
    padding: 120px 0;
    text-align: center;
    color: white;
    margin-bottom: 60px;
}

.product-top-banner h1 {
    margin: 0;
    font-size: 42px;
    font-weight: 500;
}

/* Green Bordered Box */
.green-bordered-box {
    border: 1px solid var(--primary-green);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    /* Reduced space between sections */
    background-color: white;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
    /* Changed to flex-start to allow exact manual placement from the top */
}

.product-image-col {
    text-align: center;
    padding: 20px;
}

.product-image-col img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-image-col:hover img {
    transform: scale(1.03);
}

.product-info-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 70px;
    /* Push the text block down manually to align with the middle of the image */
}

.product-info-title {
    color: var(--primary-green);
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 5px;
    font-weight: 700;
    line-height: 1.2;
}

.product-info-variety {
    color: var(--primary-orange);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(243, 120, 33, 0.2);
}

/* Description with leaf icons */
.product-description {
    color: #4a4a4a;
    line-height: 1.8;
    font-size: 14.5px;
    margin-bottom: 10px;
    /* Reduced to pull button up */
}

.product-description ul,
.product-description ol {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    /* Remove default browser margin */
}

.product-description p:last-child {
    margin-bottom: 0;
}

.product-description ul li,
.product-description ol li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 5px;
    /* Reduced space between items */
    padding-bottom: 5px;
    /* Reduced space between items */
    border-bottom: 1px solid #f0f0f0;
}

.product-description ul li:last-child,
.product-description ol li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-description ul li::before,
.product-description ol li::before {
    content: "\f06c";
    /* FontAwesome leaf icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--primary-green);
    background-color: #f0fdf4;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(26, 113, 29, 0.15);
}

.btn-inquiry {
    background: linear-gradient(135deg, var(--primary-green) 0%, #208724 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: -15px;
    /* Aggressively pull button up to fix rich-text spacing */
    box-shadow: 0 6px 15px rgba(26, 113, 29, 0.25);
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
}

.btn-inquiry::after {
    content: "\f0a9";
    /* FontAwesome Arrow Right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn-inquiry:hover {
    background: linear-gradient(135deg, #186b1b 0%, var(--primary-green) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 113, 29, 0.35);
    color: white;
}

.btn-inquiry:hover::after {
    transform: translateX(5px);
}

/* Additional Images Gallery */
.extra-images-gallery {
    display: flex;
    justify-content: space-evenly;
    /* Balances space on left, middle, and right */
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px 0;
}

.extra-images-gallery a {
    display: block;
    flex: 1 1 30%;
    /* Ensure equal width distribution for up to 3 columns */
    text-align: center;
    max-width: 32%;
}

.extra-images-gallery img {
    width: 100%;
    height: 250px;
    /* Reduced height to make the box shorter */
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s;
}

.extra-images-gallery img:hover {
    transform: scale(1.05);
}

/* --- Our Products Slider CSS --- */
.our-products-section {
    padding: 20px 0;
    /* Reduced top/bottom padding */
    margin-top: 15px;
    /* Reduced top margin */
    border-top: 1px solid #eaeaea;
}

.our-products-section h2 {
    text-align: center;
    color: var(--primary-green);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    /* Reduced space below heading */
}

.our-products-section p.subheading {
    text-align: center;
    color: #0a0a0a;
    max-width: 1140px;
    /* Increased text width */
    margin: 0 auto 25px auto;
    /* Reduced space below paragraph */
    line-height: 1.8;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.product-slider-card {
    border: none;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    background: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    margin: 15px 5px;
    min-height: 420px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-slider-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.product-slider-card img {
    max-width: 100%;
    height: 320px !important;
    /* Made image significantly larger */
    object-fit: contain;
    margin-bottom: 25px;
    transition: transform 0.4s ease;
}

.product-slider-card:hover img {
    transform: scale(1.05);
}

.product-slider-card h3 {
    color: var(--text-dark, #333);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.product-slider-card .variety-text {
    color: var(--primary-orange);
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.owl-nav button.owl-prev,
.owl-nav button.owl-next {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: #fff !important;
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 22px !important;
    color: var(--primary-green) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.owl-nav button.owl-prev:hover,
.owl-nav button.owl-next:hover {
    background: var(--primary-green) !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(26, 113, 29, 0.3) !important;
}

.owl-nav button.owl-prev {
    left: -20px;
}

.owl-nav button.owl-next {
    right: -20px;
}

@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .green-bordered-box {
        padding: 20px;
    }

    .product-top-banner {
        padding: 60px 0;
        margin-bottom: 30px;
    }

    .product-top-banner h1 {
        font-size: 28px;
    }

    .product-info-col {
        padding-top: 15px;
    }

    .extra-images-gallery {
        min-height: auto;
        gap: 15px;
    }

    .extra-images-gallery a {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .extra-images-gallery img {
        height: auto;
        max-height: 250px;
    }

    .our-products-section h2 {
        font-size: 28px;
    }

    .owl-nav button.owl-prev {
        left: 0px;
    }

    .owl-nav button.owl-next {
        right: 0px;
    }
}