/* Reset */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header shell */
.site-header {
    background: linear-gradient(135deg, #1a4d2e 0%, #166534 50%, #14532d 100%);
    box-shadow: 0 4px 20px rgba(26,77,46,0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

/* Top bar */
.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
    height: 72px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 12px;
}

/* Mobile hamburger */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
}
.hamburger-line {
    width: 22px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
}

/* Logo */
.logo-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.logo-img {
    height: 40px;          /* or 60px in footer if you prefer */
    width: 40px;
    border-radius: 50%;
    object-fit: cover;     /* fills the circle */
    background: none;      /* no white background ring */
    padding: 0;            /* REMOVE padding so image touches circle edge */
    margin-right: 10px;
    box-shadow: none;      /* optional: remove outer ring */
}
.company-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffffff;
}

/* Desktop nav */
.main-nav {
    display: flex;
    justify-content: center;
}
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 36px;
}
.nav-link {
    color: #e8f5e8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-link:hover { color: #ffffff; }

/* Dropdown (desktop) */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(20, 83, 45, 0.98);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s ease;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: #e8f5e8;
    font-size: 14px;
    text-decoration: none;
}
.dropdown-menu a:hover {
    background: rgba(34,197,94,0.25);
}

/* Actions (search + cart) */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}
.search-toggle-btn {
    background: transparent;
    border: none;
    color: #e8f5e8;
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    border-radius: 50%;
}
.cart-section { position: relative; }
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    color: #ffffff;
    text-decoration: none;
}
.cart-link i { font-size: 18px; }
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search overlay */
.search-overlay {
    display: none;
    background: #000000;
    padding: 10px 0;
}
.search-overlay.active { display: block; }
.search-form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.search-input-wrapper {
    flex: 1;
    position: relative;
}
.search-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}
.search-input {
    width: 100%;
    border: none;
    outline: none;
    background: #ffffff;
    padding: 9px 38px;
    font-size: 14px;
}
.search-close-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}
.search-close-line {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 2px;
    background: #ffffff;
}
.search-close-line:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}
.search-close-line:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Mobile nav & overlay */
.mobile-nav {
    display: none;
    background: #0b2816;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
.mobile-nav.open { display: block; }
.mobile-nav ul {
    list-style: none;
    padding: 8px 16px 16px;
}
.mobile-nav > ul > li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav a {
    display: block;
    padding: 10px 4px;
    color: #f9fafb;
    text-decoration: none;
    font-size: 14px;
}

/* Mobile dropdowns */
.mobile-dropdown > button {
    width: 100%;
    padding: 10px 4px;
    background: transparent;
    border: none;
    color: #f9fafb;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}
.mobile-submenu {
    display: none;
    list-style: none;
    padding-left: 8px;
}
.mobile-submenu.open { display: block; }
.mobile-submenu a {
    padding: 8px 4px;
    font-size: 13px;
}

/* Overlay for tap-outside close */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.45);
    z-index: 999; /* BELOW menu, ABOVE page */
}

.mobile-nav-overlay.open {
    display: block;
}

/* Desktop (>= 992px) */
@media (min-width: 992px) {
    .mobile-menu-btn { display: none; }
    .main-nav { display: flex; }
    .mobile-nav,
    .mobile-nav-overlay { display: none !important; }
}

/* Tablets & mobile (< 992px) */
@media (max-width: 991.98px) {
    .header-container {
        height: 64px;
        padding: 0 12px;
    }
    .mobile-menu-btn {
        display: flex;
        justify-content: flex-start;
    }
    .main-nav {
        display: none;
    }
    .logo-section {
        justify-content: center;
    }
    .header-actions {
        justify-content: flex-end;
    }
    .company-name {
        font-size: 18px;
    }
    .logo-img {
        height: 34px;
        width: 34px;
    }
    .mobile-nav {
        top: 64px;
    }
}

/* Small mobiles */
@media (max-width: 480px) {
    .header-container {
        height: 60px;
    }
    .company-name {
        font-size: 16px;
    }
    .logo-img {
        height: 30px;
        width: 30px;
    }
}
@media (max-width: 991.98px) {

    .header-container {
        grid-template-columns: auto 1fr auto;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .logo-section {
        min-width: 0;
    }

    .company-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}