/**
 * Oath Peptides Search Modal
 * Simple, clean, guaranteed to work
 */

/* Hide Savoy's default search panel */
#nm-header-search-panel {
    display: none !important;
}

/* Modal Overlay */
.oath-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 40, 40, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.oath-search-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Modal Box */
.oath-search-box {
    position: relative;
    width: 90%;
    max-width: 600px;
    background: #F7F4EC;
    border-radius: 8px;
    padding: 50px 20px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.oath-search-overlay.show .oath-search-box {
    transform: scale(1);
}

/* Close Button */
.oath-search-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.oath-search-close:hover {
    color: #282828;
}

/* Search Form */
.oath-search-form {
    display: flex;
    gap: 10px;
}

.oath-search-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #d0cdc0;
    border-radius: 6px;
    background: white;
    color: #282828;
}

.oath-search-input:focus {
    outline: none;
    border-color: #282828;
}

.oath-search-btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    background: #282828;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.oath-search-btn:hover {
    background: #1a1a1a;
}

/* Mobile */
@media (max-width: 768px) {
    .oath-search-box {
        width: 95%;
        padding: 45px 15px 20px;
    }

    .oath-search-form {
        flex-direction: column;
    }

    .oath-search-btn {
        width: 100%;
    }
}
