/* ==========================
     Search Popup (Drawer Style)
   ========================== */

.search-popup-trigger {
    cursor: pointer;
    font-size: 22px;
    display: flex;
}

.search-popup-trigger svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.search-drawer {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background: #0A0A0A;
    z-index: 9999;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
    transition: top 0.4s ease;
}

.search-drawer.active {
    top: 0;
}

.search-drawer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 70px 66px 10px;
}

.popup-search-form {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input-wrapper input[type="search"] {
    width: 100%;
    padding: 10px 40px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    color: #333;
    transition: border-color 0.3s ease;
}

.search-input-wrapper input[type="search"]:focus {
    border-color: #000;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 3px;
    font-size: 18px;
    color: #888;
    pointer-events: none;
}

.search-input-wrapper .cancel-btn {
    position: absolute;
    right: 12px;
    font-size: 20px;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.3s ease;
}

.search-input-wrapper .cancel-btn:hover {
    color: #000;
    background-color: transparent;
}

.popup-search-results {
    margin-top: 10px;
    border-top: 1px solid #17181A;
    padding-top: 39px;
}

.popup-search-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.popup-search-results li {
    margin: 6px 0;
}

.popup-search-results a {
    text-decoration: none;
    font-family: Inter;
    font-weight: 400;
    font-size: 12px;
    line-height: 30px;
    color: #D1CED9;
    transition: color 0.2s ease;
}

/* .popup-search-results a:hover {
    color: #000;
    text-decoration: underline;
} */

.popup-search-results .loading {
    display: none;
    font-size: 14px;
    color: #666;
}

.search-results-wrapper .heading {
    font-family: Inter;
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
    color: #8C8896;
    margin-bottom: 10px;
    margin-top: 0;
}

@media (max-width: 600px) {
    .search-drawer-inner {
        padding: 15px;
    }

    .search-input-wrapper input[type="search"] {
        font-size: 15px;
        padding: 8px 38px;
    }
}
