@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

html,
body {
    overflow-x: hidden;
    width: 100%;
}

@media (max-width: 767px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

:root {
    --h-bg: #ffffff;
    --h-fg: #0a1b18;
    --h-primary: var(--theme);
    --h-primary-fg: #ffffff;
    --h-secondary: var(--bg);
    --h-muted: #f1f5f4;
    --h-muted-fg: #5a7b75;
    --h-accent: var(--theme);
    --h-accent-fg: #096e5b;
    --h-border: #e2edea;
    --h-utility-bg: var(--theme2);
    --h-utility-fg: #ffffff;

    --h-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.05), 0 12px 24px rgba(0, 0, 0, 0.02);
    --h-dropdown-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 20px 40px -20px rgba(0, 0, 0, 0.1);

    --h-radius: 1rem;
    --h-transition: 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Component Scoped Styles */
.header-modern {
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
    width: 100%;
    margin-bottom: 0;
}

.header-modern .h-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
}

/* Utility Bar */
.header-modern .utility-bar {
    background: var(--h-utility-bg);
    color: var(--h-utility-fg);
    height: 40px;
}

.header-modern .u-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-modern .u-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-modern .u-contact a,
.header-modern .u-actions a,
.header-modern .u-actions button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color var(--h-transition);
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.825rem;
    font-family: inherit;
    cursor: pointer;
}

.header-modern .u-contact a:hover,
.header-modern .u-actions a:hover,
.header-modern .u-actions button:hover {
    color: #ffffff;
}

.header-modern .u-promo {
    flex: 1;
    text-align: center;
    font-weight: 500;
}

.header-modern .u-promo b {
    color: var(--h-accent);
}

/* Social Media Links */
.header-modern .u-social {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-modern .u-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.header-modern .u-social a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

/* Actions */
.header-modern .u-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Main Header */
.header-modern .main-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--h-border);
    height: 72px;
    display: flex;
    align-items: center;
    transition: all var(--h-transition);
    z-index: 100;
}

.header-modern .main-header.is-scrolled {
    box-shadow: var(--h-shadow);
    height: 64px;
}

.header-modern .main-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    /* Anchor for mega menu */
}

/* Layout Slots: Flex grow logic for absolute centering */
.header-modern .header-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    width: 80px;
}

.header-modern .header-center {
    flex: 1 0 0%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-modern .header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: auto;
}

/* Logo */
.header-modern .logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-modern .logo-img {
    height: 40px;
    /* Standardized height */
    width: auto;
    object-fit: contain;
}

/* Nav Menu */
.header-modern .nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Nav Item */
.header-modern .nav-item {
    position: static;
    height: 72px;
    display: flex;
    align-items: center;
}

.header-modern .nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #33413e;
    text-decoration: none;
    border-radius: 12px;
    transition: all var(--h-transition);
}

.header-modern .nav-link i {
    font-size: 8px;
    color: #8a9d9a;
    transition: transform var(--h-transition);
    margin-left: 8px;
}

.header-modern .nav-link:hover,
.header-modern .nav-item:hover .nav-link {
    color: var(--h-primary);
    background: var(--h-secondary);
}

.header-modern .nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

/* Mega Menu */
.header-modern .mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    /* Auto Width & Centered */
    width: fit-content;
    margin: 0 auto;

    transform: translateY(10px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--h-border);
    border-radius: var(--h-radius);
    box-shadow: var(--h-dropdown-shadow);
    padding: 24px 20px 30px;

    max-width: 100%;

    visibility: hidden;
    /* Fast Exit to clear traffic */
    transition: opacity 100ms ease, transform 100ms ease, visibility 100ms;
    opacity: 0;
    z-index: 1000;
    /* Base Layer */
}

.header-modern .nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);

    /* Smooth Enter */
    transition: opacity 300ms ease, transform 300ms ease;

    /* Active Layer - Sits on top of fading menus */
    z-index: 1100;
}

.header-modern .nav-item.position-relative {
    position: relative !important;
}

.header-modern .mega-menu.align-left {
    left: 0;
    right: auto;
    margin: 0;
    transform: translateY(10px);
    width: fit-content;
}

.header-modern .mega-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.header-modern .mega-category {
    flex: 0 0 auto;
    width: 220px;
}

.header-modern .mega-category h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8a9d9a;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--h-border);
}

.header-modern .dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-modern .dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 10px;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.header-modern .dropdown-item:hover {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.03);
    transform: translateY(-1px);
}

.header-modern .dropdown-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: var(--h-secondary);
    color: var(--h-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.header-modern .dropdown-item:hover .dropdown-icon {
    background: var(--h-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.header-modern .dropdown-content h5 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
}

.header-modern .dropdown-content p {
    font-size: 12px;
    color: #64748b;
    margin: 2px 0 0;
    line-height: 1.4;
}

.header-modern .mega-featured {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--h-border);
}

.header-modern .featured-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: linear-gradient(90deg, #f0fdf4, #f7fee7);
    border-radius: 16px;
    text-decoration: none;
    border: 1px solid #dcfce7;
    transition: all var(--h-transition);
}

.header-modern .featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.header-modern .featured-badge {
    background: var(--h-accent);
    color: var(--h-accent-fg);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 99px;
    margin-left: 10px;
}

/* Actions */
.header-modern .action-btn {
    background: none;
    border: none;
    color: #475569;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--h-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
}

.header-modern .action-btn:hover {
    color: var(--h-primary);
    background: var(--h-secondary);
}

.header-modern .cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #0e2a24;
    color: white;
    font-size: 9px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* CTA */
.header-modern .cta-btn {
    background: var(--h-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--h-transition);
    border: none;
    box-shadow: 0 4px 12px rgba(30, 113, 93, 0.15);
}

.header-modern .cta-btn:hover {
    background: var(--theme2);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 113, 93, 0.25);
}

/* Responsive */
@media (max-width: 1240px) {
    .header-modern .mega-menu {
        min-width: 95vw;
    }
}

@media (max-width: 1024px) {

    .header-modern .header-center,
    .header-modern .cta-btn,
    .header-modern .u-promo,
    .header-modern .u-contact,
    .header-modern .u-actions .login-btn,
    .header-modern .u-actions a:not(.u-chat),
    .header-modern .u-actions button {
        display: none;
    }

    /* Force show Chat on mobile */
    .header-modern .u-actions .u-chat {
        display: flex !important;
    }

    .header-modern .main-header {
        height: 64px;
    }

    .header-modern .u-content {
        justify-content: space-between;
        gap: 0;
    }

    /* Ensure social icons are visible on mobile */
    .header-modern .u-social {
        display: flex;
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .header-modern .utility-bar {
        height: 40px;
        /* Keep fixed height */
        padding: 0;
    }

    .header-modern .u-social {
        gap: 1rem;
    }

    .header-modern .u-social a {
        font-size: 0.85rem;
    }
}

/* --- Premium Mobile Navigation Design --- */
.modern-offcanvas {
    background: #ffffff !important;
    width: 320px !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    border-right: 1px solid #f1f5f9;
}

.modern-offcanvas .offcanvas__top {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 24px !important;
    height: 70px;
}

.modern-offcanvas .nav-list {
    margin-top: 10px;
}

.modern-offcanvas .nav-item-mobile {
    border-bottom: 1px solid #f8fafc;
    margin-bottom: 0;
}

.modern-offcanvas .nav-link-mobile {
    color: #1a202c !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    display: block;
}

.modern-offcanvas .submenu-toggle-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.modern-offcanvas .submenu-container {
    padding-left: 0;
    margin-top: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.modern-offcanvas .submenu-container.is-open {
    height: auto;
    padding: 10px 0;
}

.modern-offcanvas .sub-item-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    text-decoration: none;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    gap: 12px;
}

.modern-offcanvas .sub-item-link:hover {
    color: var(--theme);
    background: var(--h-secondary);
}

.modern-offcanvas .sub-item-title {
    display: block;
}

.modern-offcanvas .mobile-footer {
    padding: 24px;
    margin-top: auto;
    /* Push to bottom */
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.modern-offcanvas .btn-get-started {
    background: var(--theme2);
    /* Dark Green */
    color: white !important;
    height: 50px;
    border-radius: 8px;
    /* Slightly squarer than before */
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.modern-offcanvas .btn-get-started:hover {
    background: #0d4642;
}

.modern-offcanvas .btn-login {
    background: #ffffff;
    color: var(--theme2) !important;
    /* Dark Green text */
    height: 50px;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    width: 100%;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.modern-offcanvas .btn-login:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

/* Entrance Animations */
.offcanvas__info.info-open .nav-item-mobile {
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.offcanvas__info.info-open .nav-item-mobile:nth-child(1) {
    animation-delay: 0.1s;
}

.offcanvas__info.info-open .nav-item-mobile:nth-child(2) {
    animation-delay: 0.15s;
}

.offcanvas__info.info-open .nav-item-mobile:nth-child(3) {
    animation-delay: 0.2s;
}

.offcanvas__info.info-open .nav-item-mobile:nth-child(4) {
    animation-delay: 0.25s;
}

.offcanvas__info.info-open .nav-item-mobile:nth-child(5) {
    animation-delay: 0.3s;
}

.offcanvas__info.info-open .nav-item-mobile:nth-child(6) {
    animation-delay: 0.35s;
}

.offcanvas__info.info-open .nav-item-mobile:nth-child(7) {
    animation-delay: 0.4s;
}

/* Isolated Footer Spacing: Only footer component */
.footer-widgets-wrapper {
    padding: 40px 0 30px !important;
}

.footer-widgets-wrapper .single-footer-widget {
    margin-top: 10px !important;
}

.footer-widgets-wrapper .single-footer-widget .widget-head {
    margin-bottom: 20px !important;
}

.footer-widgets-wrapper .single-footer-widget .widget-head h3 {
    padding-bottom: 10px !important;
    font-size: 20px !important;
}

.footer-bottom {
    margin-bottom: 0 !important;
    padding-bottom: 20px !important;
}

.footer-bottom .footer-wrapper {
    padding: 15px 20px !important;
    margin-top: 0 !important;
}