/* =====================================
   HEADER PRODUCT SEARCH
===================================== */

.outer-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-search-form {
    display: flex;
    align-items: center;
    height: 44px;
    width: 155px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
}

.header-search-form input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    padding: 0 12px;
    font-size: 13px;
    color: #333333;
    background: transparent;
}

.header-search-form button {
    height: 44px;
    min-width: 42px;
    border: none;
    background: #222222;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-search-form button:hover {
    background: #94401D;
}

.header-search-form button i {
    font-size: 15px;
}

/* Mobile Responsive */

@media (max-width: 991px) {

    .outer-box {
        gap: 8px;
    }

    .header-search-form {
        width: 170px;
    }

}

@media (max-width: 576px) {

    .header-search-form {
        width: 145px;
    }

    .header-search-form input {
        font-size: 12px;
        padding: 0 8px;
    }

}


/* SEARCH FLOATING ICON */
.wp-search {
    position: fixed;
    right: 20px;
    bottom: 440px !important;
    width: 55px;
    height: 55px;
    background: #102344;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 55px;
    font-size: 22px;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.wp-search:hover {
    background: #d4ad35;
    color: #102344;
    transform: scale(1.08);
}

/* MOBILE */
@media (max-width: 576px) {
    .wp-search {
        right: 15px;
        bottom: 285px;
    }
}

/* SEARCH POPUP OVERLAY */
.search-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 99999;
}

.search-popup-overlay.active {
    display: flex;
}

/* POPUP BOX */
.search-popup-box {
    position: relative;
    width: 100%;
    max-width: 550px;
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.search-popup-box h3 {
    color: #102344;
    font-size: 27px;
    font-weight: 700;
    margin-bottom: 8px;
}

.search-popup-box p {
    color: #777;
    margin-bottom: 25px;
}

/* SEARCH INPUT */
.search-popup-input {
    display: flex;
    gap: 10px;
}

.search-popup-input input {
    flex: 1;
    min-width: 0;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 15px;
    outline: none;
}

.search-popup-input input:focus {
    border-color: #d4ad35;
}

.search-popup-input button {
    height: 50px;
    padding: 0 20px;
    background: #102344;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.search-popup-input button:hover {
    background: #d4ad35;
    color: #102344;
}

/* CLOSE BUTTON */
.search-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    border: none;
    background: transparent;
    font-size: 30px;
    color: #777;
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 576px) {
    .search-popup-box {
        padding: 35px 18px;
    }

    .search-popup-input {
        flex-direction: column;
    }

    .search-popup-input button {
        width: 100%;
    }

    .wp-search {
        right: 15px;
    }
}

.scroll-to-top {
    bottom: 25px !important;
}