
    :root {
        --hs-maroon: #850D10;
        --hs-maroon-dark: #630A0C;
        --hs-gold: #FFB900;
        --hs-gold-soft: #FFF4D6;
        --hs-border: #F0E2C0;
        --hs-shadow: 0 4px 14px rgba(133, 13, 16, .12);
    }

    /* Wrapper Container */
    .header-product-search-wrapper {
        position: relative !important;
        display: inline-block !important;
        font-family: 'Poppins', sans-serif !important;
        box-sizing: border-box !important;
    }
    .header-product-search-wrapper *,
    .header-product-search-wrapper *::before,
    .header-product-search-wrapper *::after { box-sizing: border-box !important; }

    /* Search Trigger Icon Button */
    .header-product-search-wrapper .search-trigger-btn {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        background: #ffffff !important;
        border: 1px solid var(--hs-border) !important;
        color: var(--hs-maroon) !important;
        cursor: pointer !important;
        outline: none !important;
        padding: 0 !important;
        transition: box-shadow .3s ease, border-color .3s ease !important;
    }

    /* Hover: white background + light shadow + 1px solid border */
    .header-product-search-wrapper .search-trigger-btn:hover,
    .header-product-search-wrapper .search-trigger-btn:focus-visible,
    .header-product-search-wrapper.is-open .search-trigger-btn {
        background: #ffffff !important;
        border: 1px solid var(--hs-gold) !important;
        box-shadow: var(--hs-shadow) !important;
    }

    .header-product-search-wrapper .search-icon {
        width: 26px !important;
        height: 26px !important;
        stroke: var(--hs-maroon) !important;
    }

    /* Dropdown Modal Container */
    .header-product-search-wrapper .search-dropdown-container {
        position: absolute !important;
        top: 58px !important;
        right: 0 !important;
        width: 360px !important;
        max-width: calc(100vw - 24px) !important;
        background: #ffffff !important;
        border-radius: 14px !important;
        border: 1px solid var(--hs-border) !important;
        border-top: 3px solid var(--hs-gold) !important;
        padding: 14px !important;
        box-shadow: 0 15px 40px rgba(133, 13, 16, .18) !important;
        z-index: 999999 !important;
        display: none;
    }

    .header-product-search-wrapper.is-open .search-dropdown-container {
        display: block !important;
        animation: searchDropdownOpen .25s ease !important;
    }

    @keyframes searchDropdownOpen {
        from { opacity: 0; transform: translateY(10px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* Pointer Arrow */
    .header-product-search-wrapper .search-dropdown-container:before {
        content: '' !important;
        position: absolute !important;
        top: -10px !important;
        right: 17px !important;
        width: 16px !important;
        height: 16px !important;
        background: var(--hs-gold) !important;
        transform: rotate(45deg) !important;
        border-radius: 2px 0 0 0 !important;
    }

    /* Form Input Controls */
    .header-product-search-wrapper .search-form-input-wrapper {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        border: 1px solid var(--hs-border) !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        background: #ffffff !important;
        transition: box-shadow .25s ease, border-color .25s ease !important;
    }
    .header-product-search-wrapper .search-form-input-wrapper:hover,
    .header-product-search-wrapper .search-form-input-wrapper:focus-within {
        background: #ffffff !important;
        border: 1px solid var(--hs-gold) !important;
        box-shadow: var(--hs-shadow) !important;
    }

    .header-product-search-wrapper .live-search-field {
        width: 100% !important;
        min-width: 0 !important;
        height: 40px !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
        padding: 10px 14px !important;
        font-size: 14px !important; /* 14px+ stops iOS zoom-on-focus being too jarring */
        color: #333333 !important;
        outline: none !important;
        box-shadow: none !important;
    }
    .header-product-search-wrapper .live-search-field::placeholder { color: #999 !important; }

    .header-product-search-wrapper .search-submit-btn {
        background: var(--hs-maroon) !important;
        border: none !important;
        border-radius: 0 !important;
        width: 42px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        color: #ffffff !important;
        flex-shrink: 0 !important;
        padding: 0 !important;
        transition: background .25s ease, color .25s ease !important;
    }
    .header-product-search-wrapper .search-submit-btn:hover {
        background: var(--hs-gold) !important;
        color: var(--hs-maroon) !important;
    }

    .header-product-search-wrapper .search-submit-btn svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Live Search Results List */
    .header-product-search-wrapper .search-live-results {
        margin-top: 10px !important;
        max-height: 320px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .header-product-search-wrapper .search-live-results:empty { margin-top: 0 !important; }

    .header-product-search-wrapper .search-results-list {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .header-product-search-wrapper .search-result-item {
        margin: 0 0 4px 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    .header-product-search-wrapper .search-result-item a {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 8px !important;
        text-decoration: none !important;
        background: #ffffff !important;
        border: 1px solid transparent !important;
        border-bottom-color: #F2F2F2 !important;
        border-radius: 8px !important;
        transition: box-shadow .25s ease, border-color .25s ease !important;
    }

    /* Hover: white background + light shadow + 1px solid border */
    .header-product-search-wrapper .search-result-item a:hover,
    .header-product-search-wrapper .search-result-item a:focus-visible {
        background: #ffffff !important;
        border: 1px solid var(--hs-gold) !important;
        box-shadow: var(--hs-shadow) !important;
    }

    .header-product-search-wrapper .result-thumb { flex-shrink: 0 !important; }
    .header-product-search-wrapper .result-thumb img {
        width: 42px !important;
        height: 42px !important;
        object-fit: cover !important;
        border-radius: 6px !important;
        display: block !important;
    }

    .header-product-search-wrapper .result-details {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    .header-product-search-wrapper .result-title {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: var(--hs-maroon) !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
    }

    .header-product-search-wrapper .result-price {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #B37F00 !important; /* darker gold for readable contrast on white */
        margin-top: 2px !important;
    }
    .header-product-search-wrapper .result-price del { color: #999 !important; font-weight: 400 !important; }
    .header-product-search-wrapper .result-price ins { text-decoration: none !important; background: transparent !important; }

    .header-product-search-wrapper .no-results-found {
        padding: 12px !important;
        text-align: center !important;
        font-size: 13px !important;
        color: #777777 !important;
    }

    /* ---------- Responsive ---------- */
    @media (max-width: 1024px) {
        .header-product-search-wrapper .search-dropdown-container { width: 340px !important; }
    }

    @media (max-width: 768px) {
        .header-product-search-wrapper .search-trigger-btn { width: 44px !important; height: 44px !important; }
        .header-product-search-wrapper .search-icon { width: 24px !important; height: 24px !important; }
        .header-product-search-wrapper .search-dropdown-container { top: 52px !important; width: 320px !important; }
        .header-product-search-wrapper .live-search-field { font-size: 16px !important; } /* prevents iOS auto-zoom */
    }

    /* Phones: full-width panel pinned under the header (top set by JS) */
    @media (max-width: 480px) {
        .header-product-search-wrapper { position: static !important; }
        .header-product-search-wrapper .search-trigger-btn { position: relative !important; }
        .header-product-search-wrapper .search-dropdown-container {
            position: fixed !important;
            left: 12px !important;
            right: 12px !important;
            top: 64px !important;
            width: auto !important;
            max-width: none !important;
            padding: 12px !important;
        }
        .header-product-search-wrapper .search-dropdown-container:before { display: none !important; }
        .header-product-search-wrapper .search-live-results {
            max-height: calc(100vh - 190px) !important;
            max-height: calc(100dvh - 190px) !important;
        }
        .header-product-search-wrapper .search-result-item a { padding: 10px 8px !important; }
    }

    @media (max-width: 360px) {
        .header-product-search-wrapper .search-dropdown-container { left: 8px !important; right: 8px !important; padding: 10px !important; }
        .header-product-search-wrapper .result-thumb img { width: 38px !important; height: 38px !important; }
        .header-product-search-wrapper .result-title { font-size: 12px !important; }
    }

    @media (max-height: 500px) {
        .header-product-search-wrapper .search-live-results { max-height: calc(100vh - 150px) !important; }
    }

    @media (min-width: 1600px) {
        .header-product-search-wrapper .search-dropdown-container { width: 400px !important; }
    }
    