/* Desktop Styles - Top Right Utility Area */
@media screen and (min-width: 801px) {
    .header-search-v2 {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        margin-left: 20px;
    }

    .header-search-v2 form {
        position: relative;
        display: flex;
        align-items: center;
        width: 180px;
    }
}

.header-search-v2 input[type="text"] {
    width: 100%;
    padding: 8px 35px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 13px;
    outline: none;
    background: #fff;
    color: #333;
}

.header-search-v2 input[type="text"]:focus {
    border-color: #ccc;
}

.header-search-v2 button {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.header-search-v2 button:hover {
    color: #333;
}

.header-search-v2 button svg {
    width: 18px;
    height: 18px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .header-search-v2 {
        margin-right: 15px;
    }
    .header-search-v2 form {
        width: 150px;
    }
}

/* Mobile Styles */
@media screen and (max-width: 800px) {
    .header-search-v2 {
        display: none !important;
    }

    #mobile_search_trigger {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 43px;
        height: 54px;
        cursor: pointer;
        color: #333;
        margin-right: 5px;
    }

    #mobile_search_trigger svg {
        width: 20px;
        height: 20px;
        margin-bottom: 2px;
    }

    #mobile_search_trigger span {
        font-size: 10px;
        line-height: 1;
        white-space: nowrap;
    }

    #mobile_search_bar {
        display: none;
        width: 100%;
        padding: 15px;
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        box-sizing: border-box;
    }

    #mobile_search_bar.active {
        display: block;
    }

    #mobile_search_bar form {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
    }

    #mobile_search_bar input[type="text"] {
        width: 100%;
        padding: 12px 45px 12px 20px;
        border: 1px solid #ddd;
        border-radius: 30px;
        font-size: 16px; /* Prevent zooming on iOS */
        outline: none;
        background: #f9f9f9;
        color: #333;
        box-sizing: border-box;
    }

    #mobile_search_bar button {
        position: absolute;
        right: 15px;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999;
    }

    #mobile_search_bar button svg {
        width: 22px;
        height: 22px;
    }
}

@media screen and (min-width: 801px) {
    #mobile_search_trigger, #mobile_search_bar {
        display: none !important;
    }
}
