/* Search Page Template Styles */
.ms-search-page-container {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 140px 20px 80px; /* Increased top padding to clear header */
    font-family: var(--font-family, sans-serif);
}
    font-family: var(--font-family, sans-serif);
}

.ms-search-form-wrapper {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.ms-search-form-wrapper h1 {
    font-size: var(--h1);
    font-weight: 300;
    margin-bottom: 50px;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.ms-search-input-group {
    position: relative;
    margin-bottom: 40px;
}

.ms-search-field {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--border-strong);
    font-size: var(--fs-32);
    font-weight: 700;
    color: var(--text-dark);
    padding: 10px 40px 15px 0;
    background: transparent;
    outline: none;
    transition: border-color 0.3s;
    text-align: left; /* Screenshot shows it aligned left in the container */
}

.ms-search-field::placeholder {
    color: var(--text-placeholder);
    font-weight: 300;
}

.ms-search-field:focus {
    border-bottom-color: var(--text-dark);
}

.ms-search-icon-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: default; /* Just decorative in the input */
    padding: 10px;
}

.ms-search-submit-btn {
    background: var(--bg-dark);
    color: var(--white);
    border: none;
    border-radius: 30px;
    padding: 16px 50px;
    font-size: var(--fs-16);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.ms-search-submit-btn:hover {
    background: var(--text-gray-500);
    transform: translateY(-2px);
}

/* AJAX Results Container */
#ms-search-results-container {
    width: 100%;
    max-width: 1400px;
    margin-top: 60px;
    transition: opacity 0.3s;
}

#ms-search-results-container.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Hide the collections header (title/sorting) if we just want the grid */
/* Actually, keeping the title "Search results: s25" might be nice, but the user said "show there in grid", so maybe just hide the header part of the collections template? Let's just output the whole container. */

/* Responsive */
@media (max-width: 600px) {
    .ms-search-form-wrapper h1 {
        font-size: var(--h1);
        margin-bottom: 40px;
    }
    
    .ms-search-field {
        font-size: var(--fs-24);
    }
}
