
.h12-topbar {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 6px 16px;
    font-size: 13px;
    letter-spacing: 0.025em;
}

.h12-topbar p {
    margin: 0;
    font-weight: 300;
}

.h12-topbar .h12-topbar-sep {
    margin: 0 4px;
    opacity: 0.6;
}

.h12-topbar .h12-topbar-code {
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 1px;
}


.header.style-12 {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: visible;
}

.header.style-12 .h12-header-inner {
    position: relative;
    overflow: visible;
				padding:0 20px;
}

.header.style-12 .h12-header-content {
    position: relative;
    overflow: visible;
}

.header.style-12 .h12-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 30px;
}

@media (min-width: 768px) {
    .header.style-12 .h12-row {
        height: 78px;
    }
}


.header.style-12 .h12-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header.style-12 .h12-mobile-toggle {
    display: none;
    font-size: 2.4rem;
    line-height: 1;
    color: #374151;
    margin-right: 12px;
}

.header.style-12 .h12-logo {
    display: flex;
    flex-shrink: 0;
    line-height: 0;
}

.header.style-12 .h12-logo img {
    height: 44px;
    max-width: 160px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .header.style-12 .h12-logo img {
        height: 56px;
    }
}


.header.style-12 .h12-nav {
    display: none;
    align-items: center;
}

@media (min-width: 768px) {
    .header.style-12 .h12-nav {
        display: flex;
        align-items: center;
    }
}

.header.style-12 .h12-nav .menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.header.style-12 .h12-nav .menu > li {
    position: relative;
    margin-right: 0;
    line-height: 1;
}

.header.style-12 .h12-nav .menu > li > a {
    display: flex;
    align-items: center;
    padding: 0;
    font-size: 16px;
    font-weight: 400;
    color: #374151;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.header.style-12 .h12-nav .menu > li > a:hover {
    color: #1d3d2c;
}



.header.style-12 .h12-nav .has-submenu > a:hover::after {
   display: none !important;
}


.header.style-12 .h12-nav .menu ul,
.header.style-12 .h12-nav .menu li .megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #eeeeee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.15s ease-in-out;
}

.header.style-12 .h12-nav .menu > li > ul {
    top: 100%;
    left: 0;
}

.header.style-12 .h12-nav .menu li > ul ul {
    top: -1px;
    left: 100%;
}

.header.style-12 .h12-nav .menu li:hover > ul,
.header.style-12 .h12-nav .menu li:focus-within > ul,
.header.style-12 .h12-nav .menu > li:hover .megamenu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Dropdown links */
.header.style-12 .h12-nav .menu ul li {
    position: relative;
    margin: 0;
    line-height: 1;
}

.header.style-12 .h12-nav .menu ul li a {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 400;
    color: #374151;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.header.style-12 .h12-nav .menu ul li a:hover {
    color: #fff;
    background: #1d3d2c;
}

.header.style-12 .h12-nav .menu ul li:has(> ul) > a::after {
    content: "";
    width: 10px;
    height: 6px;
    margin-left: 6px;
    opacity: 0.6;
    background: currentColor;
    transform: rotate(-90deg);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M9.354.646a.5.5 0 0 0-.708 0L5 4.293 1.354.646a.5.5 0 0 0-.708.708l4 4a.5.5 0 0 0 .708 0l4-4a.5.5 0 0 0 0-.708' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M9.354.646a.5.5 0 0 0-.708 0L5 4.293 1.354.646a.5.5 0 0 0-.708.708l4 4a.5.5 0 0 0 .708 0l4-4a.5.5 0 0 0 0-.708' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / contain;
}

.header.style-12 .h12-nav .menu li .megamenu {
    padding: 8px 0;
}

.header.style-12 .h12-nav .megamenu .megamenu-item {
    position: relative;
    min-width: 200px;
    padding: 0;
}

.header.style-12 .h12-nav .megamenu .menu-title {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    text-transform: none;
}

.header.style-12 .h12-nav .megamenu .menu-title a {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 0 16px;
    color: #374151;
    font-weight: 400;
}

.header.style-12 .h12-nav .megamenu .menu-title a:hover {
    color: #fff;
    background: #1d3d2c;
}

.header.style-12 .h12-nav .megamenu .megamenu-item > ul {
    position: absolute;
    top: -9px;
    left: 100%;
    min-width: 200px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #eeeeee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.15s ease-in-out;
}

.header.style-12 .h12-nav .megamenu .megamenu-item:hover > ul {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}


.header.style-12 .h12-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}


.header.style-12 .h12-actions .h-search-widget,
.header.style-12 .h12-actions .dropdown {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header.style-12 .h12-actions .h-search-widget-icon,
.header.style-12 .h12-account-btn,
.header.style-12 .h12-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: color 0.2s ease;
}

.header.style-12 .h12-actions .h-search-widget-icon:hover,
.header.style-12 .h12-account-btn:hover,
.header.style-12 .h12-cart-btn:hover {
    color: #1d3d2c;
}

.header.style-12 .h12-actions svg {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.header.style-12 .h12-account-btn {
    display: none;
}

@media (min-width: 640px) {
    .header.style-12 .h12-account-btn {
        display: inline-flex;
    }
}

.header.style-12 .h12-cart-btn {
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.header.style-12 .h12-cart-btn .h12-cart-count {
    position: absolute;
    top: -4px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color, #1d3d2c);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    border-radius: 9999px;
    padding: 0 4px;
}
/* =========================================
   MINIMOG STYLE SEARCH MODAL
   ========================================= */

/* Backdrop Overlay */
#searchOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    z-index: 9998; /* Behind the modal */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#searchOverlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Panel - Short and Refined */
.h12-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f1f6f3 !important; /* Solid light green */
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: visible; /* Let the search results drop over the dark overlay */
    height: auto; /* Only as tall as the search bar */
}

.h12-search-modal.active {
    transform: translateY(0);
}

.h12-modal-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 30px;
}

/* Modal Panel - Solid Light Primary Background */
.h12-search-modal {
    background-color: #f1f6f3 !important; /* Solid light green, no transparency */
}

.h12-modal-inner {
    padding: 29px 0; /* Reduced padding */
}

/* Mobile Header */
.h12-modal-mobile-header {
    display: none !important; /* Removed cross/header */
}

/* Desktop Grid Layout */
.h12-modal-grid {
    display: flex;
    align-items: center; /* Centered vertically for tighter look */
    justify-content: space-between;
    gap: 30px;
    padding: 0 30px;
}

.h12-modal-left {
    width: 16.66%;
    display: none;
}

@media (min-width: 768px) {
    .h12-modal-left {
        display: flex;
        align-items: center;
    }
}

.h12-modal-center {
    width: 100%;
    position: relative;
}

@media (min-width: 768px) {
    .h12-modal-center {
        width: 66.66%;
    }
}

.h12-modal-right {
    width: 16.66%;
    display: none;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

@media (min-width: 768px) {
    .h12-modal-right {
        display: flex;
    }
}

/* Search Form - White Input Field */
.h12-modal-form {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff; /* White input field */
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 4px 16px; /* Refined padding */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.h12-modal-form:focus-within {
    border-color: var(--primary-color, #1d3d2c);
    box-shadow: 0 0 0 4px rgba(29, 61, 44, 0.08);
}

.h12-modal-form .form-control {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    outline: none;
    font-size: 16px;
    color: #111827;
    padding: 12px 0;
    font-weight: 500;
}

.h12-modal-form .form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.h12-search-icon-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 18px;
    cursor: pointer;
    padding: 0 8px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.h12-search-icon-btn:hover {
    color: var(--primary-color, #1d3d2c);
}

.h12-clear-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
    padding: 0 8px;
    display: none;
    flex-shrink: 0;
}

.h12-clear-btn.is-visible {
    display: block;
}

/* Live search results — scoped so global min-width:700px cannot blow out the modal */
.header.style-12 .h12-search-modal ul.live_search_box,
.header.style-12 .h12-search-modal #mobileSearchResults {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 10000;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    max-height: min(60vh, 420px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.header.style-12 .h12-search-modal ul.live_search_box li.live_search_item a.live_search_product_link {
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
}

.header.style-12 .h12-search-modal ul.live_search_box li.live_search_item a.live_search_product_link img.live_search_product_image {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
}

.header.style-12 .h12-search-modal .live_search_product_content {
    margin-left: 0;
    min-width: 0;
}

.header.style-12 .h12-search-modal ul.live_search_box li.live_search_item a.live_search_product_link h6.live_search_product_title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Removed Close Button CSS entirely */

/* Reused Action Buttons Styling */
.h12-modal-right .h12-account-btn,
.h12-modal-right .h12-cart-btn {
    color: #374151;
    transition: color 0.2s;
}
.h12-modal-right .h12-account-btn:hover,
.h12-modal-right .h12-cart-btn:hover {
    color: var(--primary-color, #1d3d2c);
}
.h12-modal-right svg {
    display: block;
    width: 22px;
    height: 22px;
}
.h12-modal-right .h12-cart-btn {
    position: relative;
}
.h12-modal-right .h12-cart-count {
    position: absolute;
    top: -4px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color, #1d3d2c);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    border-radius: 9999px;
    padding: 0 4px;
}

@media (max-width: 991px) {
    .h12-modal-container {
        padding: 0 16px;
    }

    .h12-modal-grid {
        gap: 16px;
        padding: 0;
    }
}

@media (max-width: 767px) {
    .h12-modal-inner {
        padding: 16px 0;
    }

    .h12-modal-container {
        padding: 0 12px;
        max-width: 100% !important;
    }

    .h12-modal-grid {
        gap: 0;
        padding: 0;
    }

    .h12-modal-form {
        padding: 6px 12px;
        border-radius: 10px;
    }

    .h12-modal-form .form-control {
        font-size: 16px;
        padding: 10px 0;
    }

    .h12-search-icon-btn,
    .h12-clear-btn {
        min-width: 40px;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        font-size: 18px;
    }

    .h12-clear-btn {
        display: none;
    }

    .h12-clear-btn.is-visible {
        display: inline-flex;
    }

    .header.style-12 .h12-search-modal ul.live_search_box,
    .header.style-12 .h12-search-modal #mobileSearchResults {
        top: calc(100% + 6px) !important;
        max-height: min(55vh, 360px);
        border-radius: 10px;
    }

    .header.style-12 .h12-search-modal ul.live_search_box li.live_search_item a.live_search_product_link {
        padding: 12px;
    }

    .header.style-12 .h12-search-modal ul.live_search_box li.live_search_item a.live_search_product_link img.live_search_product_image {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
}

.h12-modal-close-area {
    display: none !important; /* Remove the full screen click area */
}
