/* ==========================================================================
   HEADER STYLES - MAU34 (INDUSTRIAL & AUTOMOTIVE EQUIPMENT)
   Top Bar (Logo, Search, Hotline, User, Cart) + Green Navbar + Mega Menu
   ========================================================================== */

:root {
    --hdr-green: #0e6938;
    --hdr-green-dark: #094d28;
    --hdr-green-light: #e8f5e9;
    --hdr-red: #e50308;
    --hdr-red-dark: #c62828;
    --hdr-yellow: #fcbb01;
    --hdr-text-main: #111827;
    --hdr-text-muted: #6b7280;
    --hdr-border: #e5e7eb;
}

.site-header {
    background: #ffffff;
    position: relative;
    z-index: 999;
}

/* ==========================================================================
   1. TOP HEADER (LOGO, SEARCH, HOTLINE, ACCOUNT, CART)
   ========================================================================== */
.site-header__top {
    padding: 12px 0;
    background: #ffffff;
    border-bottom: 1px solid var(--hdr-border);
}

.site-header__top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.site-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-header__logo img {
    height: 48px;
    max-width: 170px;
    object-fit: contain;
}

/* Search Bar */
.site-header__search {
    flex: 1;
    max-width: 540px;
    margin: 0 auto;
}

.header-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.header-search-input {
    flex: 1;
    height: 40px;
    border: 1.5px solid #d1d5db;
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 0 16px;
    font-size: 13.5px;
    color: var(--hdr-text-main);
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.header-search-input:focus {
    border-color: var(--hdr-green);
}

.header-search-input::placeholder {
    color: #9ca3af;
    font-size: 13px;
}

.header-search-btn {
    width: 46px;
    height: 40px;
    background-color: var(--hdr-green);
    color: #ffffff;
    border: none;
    border-radius: 0 6px 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.header-search-btn:hover {
    background-color: var(--hdr-green-dark);
}

.header-search-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Top Right Actions */
.site-header__top-actions {
    display: flex;
    align-items: center;
    gap: 45px;
    flex-shrink: 0;
}

.hdr-action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--hdr-text-main);
    transition: opacity 0.2s ease;
}

.hdr-action-item:hover {
    opacity: 0.9;
}

.hdr-action-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hdr-action-icon svg {
    width: 30px;
    height: 30px;
}

.hdr-icon-hotline {
    color: var(--hdr-red);
}

.hdr-icon-user {
    color: #4b5563;
}

.hdr-icon-cart {
    color: var(--hdr-green);
}

.hdr-action-search {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--hdr-text-main);
}

.hdr-icon-search {
    color: var(--hdr-text-main);
    transition: color 0.2s ease;
}

.hdr-action-search:hover .hdr-icon-search {
    color: var(--hdr-green);
}

.hdr-action-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.hdr-action-sub {
    font-size: 13.5px;
    color: var(--hdr-text-muted);
}

.hdr-action-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--hdr-text-main);
    margin-top: 0;
}

.hdr-hotline-phone {
    color: var(--hdr-red);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.hdr-cart-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background-color: var(--hdr-red);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    border-radius: 10px;
    min-width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(229, 57, 53, 0.3);
}

/* ==========================================================================
   2. MAIN NAVBAR (GREEN BACKGROUND)
   ========================================================================== */
.site-header__navbar {
    background-color: var(--hdr-green);
    height: 44px;
    position: relative;
    z-index: 990;
    transition: box-shadow 0.25s ease;
}

.site-header__navbar.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
    animation: headerStickySlide 0.25s ease;
}

@keyframes headerStickySlide {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.site-header__navbar-inner {
    display: flex;
    align-items: stretch;
    height: 100%;
    position: relative;
}

/* Category Button Wrapper */
.site-header__cat-btn-wrap {
    width: 270px;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.site-header__cat-btn {
    width: 100%;
    height: 100%;
    background-color: var(--hdr-green-dark);
    color: #ffffff !important;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.site-header__cat-btn:hover {
    background-color: #07381d;
}

.cat-btn-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-btn-left svg {
    width: 18px;
    height: 18px;
}

.cat-btn-arrow svg {
    width: 12px;
    height: 12px;
    transition: transform 0.25s ease;
}

.site-header__cat-btn-wrap.open .cat-btn-arrow svg {
    transform: rotate(180deg);
}

/* Navigation Horizontal Menu */
.site-header__nav-menu {
    flex: 1;
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    /* padding: 0 0 0 15px; */
    gap: 0;
}

.nav-menu-item {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.nav-menu-item:not(:last-child)::after {
    content: '|';
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    margin: 0 2px;
}

.nav-menu-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 0 20px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.nav-menu-link:hover,
.nav-menu-item.active .nav-menu-link {
    color: var(--hdr-yellow);
}

.nav-menu-link.active-badge {
    /* background-color: rgba(255, 255, 255, 0.15); */
    color: #ffffff;
}

/* Nav Submenu Dropdown */
.nav-menu-item.has-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    padding: 6px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 999;
}

.nav-menu-item:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    width: 100%;
}

.nav-dropdown-link {
    display: block;
    padding: 8px 18px;
    color: #333333;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.nav-dropdown-link:hover,
.nav-dropdown-item.active .nav-dropdown-link {
    background-color: #f5f9f6;
    color: var(--hdr-green, #0e6938);
    font-weight: 600;
}

/* ==========================================================================
   3. VERTICAL CATEGORY DROPDOWN & FLYOUT MEGA MENU
   ========================================================================== */
.site-header__cat-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 270px;
    background: #ffffff;
    border: 1px solid var(--hdr-border);
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    list-style: none;
    padding: 5px 0;
    margin: 10px 0 0 0;
    z-index: 950;
    box-sizing: border-box;
}

/* Invisible bridge to prevent mouse leaving hover area */
.site-header__cat-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}

/* Header Dropdown State */
.site-header .site-header__cat-dropdown {
    display: none;
}

/* Homepage when NOT sticky: do NOT show dropdown and do NOT show on hover */
.classHome .site-header__navbar:not(.is-sticky) .site-header__cat-dropdown,
.classHome .site-header__navbar:not(.is-sticky) .site-header__cat-btn-wrap:hover .site-header__cat-dropdown {
    display: none !important;
}

.classHome .site-header__navbar:not(.is-sticky) .site-header__cat-btn-wrap:hover .cat-btn-arrow svg {
    transform: none;
}

/* Non-homepage State: Hover or open shows dropdown */
body:not(.classHome) .site-header__cat-btn-wrap:hover .site-header__cat-dropdown,
body:not(.classHome) .site-header__cat-btn-wrap.open .site-header__cat-dropdown {
    display: block !important;
    animation: catDropFade 0.2s ease;
}

body:not(.classHome) .site-header__cat-btn-wrap:hover .cat-btn-arrow svg {
    transform: rotate(180deg);
}

/* Homepage when sticky: Hover or open shows dropdown */
.classHome .site-header__navbar.is-sticky .site-header__cat-btn-wrap:hover .site-header__cat-dropdown,
.classHome .site-header__navbar.is-sticky .site-header__cat-btn-wrap.open .site-header__cat-dropdown {
    display: block !important;
    animation: catDropFade 0.2s ease;
}

.classHome .site-header__navbar.is-sticky .site-header__cat-btn-wrap:hover .cat-btn-arrow svg {
    transform: rotate(180deg);
}

/* When Sticky Navbar: Attached directly without gap */
.site-header__navbar.is-sticky .site-header__cat-dropdown {
    margin-top: 0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

@keyframes catDropFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category Items */
.cat-nav-item {
    position: relative;
    border-bottom: 1px solid #f3f4f6;
}

.cat-nav-item:last-child {
    border-bottom: none;
}

.cat-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cat-nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cat-nav-icon {
    width: 20px;
    height: 20px;
    min-width: 18px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.cat-nav-icon svg,
.cat-nav-icon iconify-icon {
    width: 16px;
    height: 16px;
    font-size: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
}

.cat-nav-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.cat-nav-chevron {
    color: #9ca3af;
    font-size: 14px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.cat-nav-item:hover>.cat-nav-link {
    background-color: #f8fafc;
    /* color: var(--hdr-green); */
    font-weight: 600;
}

.cat-nav-item:hover>.cat-nav-link .cat-nav-icon {
    color: var(--hdr-green);
}

.cat-nav-item:hover>.cat-nav-link .cat-nav-chevron {
    color: var(--hdr-green);
    transform: translateX(3px);
}

/* Subcategory Flyout Panel */
.cat-sub-flyout {
    position: absolute;
    top: 0;
    left: 100%;
    width: 550px;
    min-height: 100%;
    background: #ffffff;
    border: 1px solid var(--hdr-border);
    border-radius: 0 8px 8px 8px;
    box-shadow: 6px 8px 24px rgba(0, 0, 0, 0.12);
    padding: 18px 22px;
    display: none;
    z-index: 1060;
    box-sizing: border-box;
}

/* Invisible bridge so mouse moving from item to flyout doesn't flicker */
.cat-sub-flyout::before {
    content: '';
    position: absolute;
    top: 0;
    left: -12px;
    width: 12px;
    height: 100%;
}

.cat-nav-item:hover>.cat-sub-flyout {
    display: block !important;
    animation: flyoutSlide 0.18s ease;
}

@keyframes flyoutSlide {
    from {
        opacity: 0;
        transform: translateX(8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.flyout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
}

.flyout-col-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--hdr-green);
    text-transform: uppercase;
    margin: 0 0 10px 0;
    border-bottom: 1.5px solid #e5e7eb;
    padding-bottom: 6px;
    /* letter-spacing: 0.3px; */
}

.flyout-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flyout-links li a {
    color: #4b5563;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.flyout-links li a:hover {
    color: var(--hdr-red);
    transform: translateX(3px);
}

/* ==========================================================================
   4. HOMEPAGE HERO SECTION (LEFT CATEGORY SPACER + RIGHT SLIDER)
   ========================================================================== */
.home-hero-section {
    padding: 10px 0 0 0;
    /* margin-bottom: 20px; */
}

.home-hero-container {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.home-hero-cat-spacer {
    width: 270px;
    min-width: 270px;
    flex-shrink: 0;
    position: relative;
    z-index: 20;
}

.home-hero-cat-spacer .site-header__cat-dropdown,
.home-hero-cat-dropdown {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--hdr-border);
    border-radius: 8px;
    background: #ffffff;
    height: auto !important;
    box-sizing: border-box;
    z-index: 1;
}

.home-hero-cat-spacer .site-header__cat-dropdown::before,
.home-hero-cat-dropdown::before {
    display: none !important;
}

.home-hero-slider-wrap {
    flex: 1;
    min-width: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.home-hero-slider {
    width: 100%;
    height: 100%;
    flex: 1;
}

.home-hero-slider .slick-list,
.home-hero-slider .slick-track,
.home-hero-slider .hero-slide-item {
    height: 100%;
}

.hero-slide-item a {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
}

.hero-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* Custom Slick Slider Controls for Hero */
.home-hero-slider .slick-prev,
.home-hero-slider .slick-next {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    z-index: 5;
    transition: background 0.2s ease;
}

.home-hero-slider .slick-prev {
    left: 15px;
}

.home-hero-slider .slick-next {
    right: 15px;
}

.home-hero-slider .slick-prev:hover,
.home-hero-slider .slick-next:hover {
    background: var(--hdr-green);
}

.home-hero-slider .slick-dots {
    bottom: 12px;
}

.home-hero-slider .slick-dots li button:before {
    color: #ffffff;
    opacity: 0.6;
    font-size: 9px;
}

.home-hero-slider .slick-dots li.slick-active button:before {
    color: var(--hdr-yellow);
    opacity: 1;
}

/* ==========================================================================
   5. MOBILE HAMBURGER & DRAWER
   ========================================================================== */
.site-header__hamburger {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
}

.site-header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--hdr-text-main);
    transition: 0.3s;
}

.site-header__drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    z-index: 1002;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.site-header__drawer.is-open {
    left: 0;
}

.site-header__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.site-header__overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.site-header__drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
}

.site-header__drawer-logo img {
    height: 42px;
    object-fit: contain;
}

.site-header__drawer-close {
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.site-header__drawer-body {
    padding: 15px 20px;
    overflow-y: auto;
}

.site-header__mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-header__mobile-menu li {
    border-bottom: 1px solid #f5f5f5;
}

.site-header__mobile-menu a {
    display: block;
    padding: 12px 0;
    color: #111827;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

/* ==========================================================================
   6. SEARCH POPUP MODAL (MOBILE & QUICK SEARCH)
   ========================================================================== */
.site-search-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 14px;
}

.site-search-modal.is-open {
    display: flex;
}

.site-search-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    animation: searchBackdropFade 0.25s ease forwards;
}

.site-search-modal__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    padding: 20px;
    animation: searchSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.site-search-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hdr-border);
}

.site-search-modal__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--hdr-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-search-modal__title svg {
    color: var(--hdr-green);
}

.site-search-modal__close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--hdr-text-muted);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.site-search-modal__close:hover {
    color: var(--hdr-text-main);
    background: #f3f4f6;
}

.site-search-modal__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-search-modal__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.site-search-modal__icon {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-search-modal__input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 42px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 14.5px;
    color: var(--hdr-text-main);
    outline: none;
    background: #f9fafb;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.site-search-modal__input:focus {
    border-color: var(--hdr-green);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(14, 105, 56, 0.15);
}

.site-search-modal__submit-btn {
    height: 44px;
    background-color: var(--hdr-green);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.site-search-modal__submit-btn:hover {
    background-color: var(--hdr-green-dark);
}

@keyframes searchSlideDown {
    from {
        opacity: 0;
        transform: translateY(-24px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes searchBackdropFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 1200px) {

    .site-header__cat-btn-wrap,
    .home-hero-cat-spacer {
        width: 240px;
        min-width: 240px;
    }

    .site-header__cat-dropdown {
        width: 240px;
    }

    .nav-menu-link {
        padding: 0 10px;
        font-size: 13px;
    }

    .hero-slide-item img {
        height: 100%;
        min-height: 382px;
    }

    .cat-sub-flyout {
        width: 460px;
    }
}

@media (max-width: 991px) {
    .site-header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #ffffff;
        width: 100%;
        transition: box-shadow 0.25s ease;
    }

    .site-header.is-affix,
    .site-header.is-sticky,
    .site-header.affix {
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    }

    .site-header__hamburger {
        display: flex;
    }

    .site-header__navbar {
        display: none;
    }

    .home-hero-cat-spacer {
        display: none !important;
        min-height: 0 !important;
    }

    .home-hero-slider-wrap {
        min-height: 0 !important;
    }

    .hero-slide-item img {
        /* height: 250px; */
        /* min-height: 250px; */
        min-height: auto;
    }

    /* Hide desktop inline search bar on mobile */
    .site-header__search {
        display: none !important;
    }

    /* Top actions on mobile: only show Search button and Cart */
    .site-header__top-actions {
        gap: 10px;
        padding-right: 5px;
    }

    .site-header__top-actions .hdr-action-item {
        display: none;
    }

    .site-header__top-actions .hdr-action-search,
    .site-header__top-actions .hdr-action-item:last-child {
        display: inline-flex;
        align-items: center;
    }

    .site-header__top-actions .hdr-action-text {
        display: none !important;
    }

    .site-header__logo {
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .site-header__top-inner {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .site-header__logo img {
        height: 38px;
        max-width: 140px;
    }

    .hero-slide-item img {
        /* height: 180px; */
    }

    .hdr-action-icon svg {
        width: 25px;
        height: 25px;
    }
}

/* ==========================================================================
   7. MOBILE FIXED BOTTOM NAVIGATION BAR
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
}

.site-cat-drawer__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
}

.site-cat-drawer__overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.site-cat-drawer {
    position: fixed;
    top: 0;
    left: -330px;
    width: 310px;
    max-width: 86vw;
    height: 100vh;
    background: #ffffff;
    z-index: 1002;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.site-cat-drawer.is-open {
    left: 0;
}

.site-cat-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--hdr-green, #0e6938) 0%, var(--hdr-green-dark, #094d28) 100%);
    color: #ffffff;
}

.site-cat-drawer__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.site-cat-drawer__close {
    background: rgba(255, 255, 255, 0.18);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.site-cat-drawer__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.site-cat-drawer__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 30px;
}

.site-cat-drawer__all-link {
    padding: 12px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.site-cat-drawer__all-link a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--hdr-green, #0e6938);
    font-size: 13.5px;
    font-weight: 700;
}

.site-cat-drawer__chevron {
    font-size: 18px;
    line-height: 1;
}

.site-cat-drawer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-cat-drawer__item {
    border-bottom: 1px solid #f1f5f9;
}

.site-cat-drawer__item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 8px 2px 18px;
}

.site-cat-drawer__link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    text-decoration: none;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.15s ease;
}

.site-cat-drawer__link:hover {
    color: var(--hdr-green, #0e6938);
}

.site-cat-drawer__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--hdr-green, #0e6938);
}

.site-cat-drawer__icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.site-cat-drawer__toggle {
    background: transparent;
    border: none;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    transition: transform 0.25s ease, color 0.2s ease;
}

.site-cat-drawer__item.is-expanded>.site-cat-drawer__item-header .site-cat-drawer__toggle {
    transform: rotate(180deg);
    color: var(--hdr-green, #0e6938);
}

.site-cat-drawer__sublist {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8fafc;
    border-top: 1px dashed #e2e8f0;
}

.site-cat-drawer__item.is-expanded>.site-cat-drawer__sublist {
    display: block;
}

.site-cat-drawer__subitem {
    border-bottom: 1px solid #edf2f7;
}

.site-cat-drawer__subitem-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 8px 2px 28px;
}

.site-cat-drawer__sublink {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    text-decoration: none;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
}

.site-cat-drawer__sublink:hover {
    color: var(--hdr-green, #0e6938);
}

.site-cat-drawer__subitem.is-expanded>.site-cat-drawer__subitem-header .site-cat-drawer__toggle {
    transform: rotate(180deg);
    color: var(--hdr-green, #0e6938);
}

.site-cat-drawer__grandchildren {
    display: none;
    list-style-type: disc;
    padding: 6px 12px 8px 48px;
    margin: 0;
    background: #ffffff;
}

.site-cat-drawer__subitem.is-expanded>.site-cat-drawer__grandchildren {
    display: block;
}

.site-cat-drawer__grandchildren li {
    list-style-type: disc;
    color: var(--hdr-green, #0e6938);
    padding-left: 2px;
}

.site-cat-drawer__grandchildren li::marker {
    color: var(--hdr-green, #0e6938);
    font-size: 0.85em;
}

.site-cat-drawer__grandchildren li a {
    display: inline-block;
    padding: 5px 0;
    text-decoration: none;
    color: #64748b;
    font-size: 13px;
    transition: color 0.15s ease;
}

.site-cat-drawer__grandchildren li a:hover {
    color: var(--hdr-green, #0e6938);
}

@media (max-width: 991px) {
    body {
        padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
    }

    #topcontrol .backtotop {
        bottom: 67px !important;
    }

    .support-widget {
        bottom: 135px !important;
    }

    .mobile-bottom-nav {
        display: flex;
        align-items: center;
        justify-content: space-around;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.08);
        z-index: 998;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .mobile-bottom-nav__item {
        flex: 1;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        background: transparent;
        border: none;
        padding: 4px 0;
        color: #64748b;
        text-decoration: none;
        cursor: pointer;
        transition: color 0.2s ease, transform 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-bottom-nav__item:active {
        transform: scale(0.95);
    }

    .mobile-bottom-nav__icon {
        width: 22px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease;
    }

    .mobile-bottom-nav__icon svg {
        width: 21px;
        height: 21px;
    }

    .mobile-bottom-nav__label {
        font-size: 12px;
        font-weight: 600;
        line-height: 1;
        letter-spacing: -0.01em;
        max-width: 92px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center;
    }

    .mobile-bottom-nav__item.active,
    .mobile-bottom-nav__item:hover {
        color: var(--hdr-green, #0e6938);
    }

    .mobile-bottom-nav__item.active .mobile-bottom-nav__icon {
        transform: translateY(-1px);
    }

    .mobile-bottom-nav__item.active .mobile-bottom-nav__label {
        font-weight: 700;
    }
}