/* Overlay Fullscreen */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.open {
    opacity: 1;
    visibility: visible;
}

.overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95); /* Fundo branco translúcido premium */
    backdrop-filter: blur(5px);
    z-index: 1;
}

.search-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header & Input */
.search-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 15px;
}

#search-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.5rem; /* Fonte grande como no Louis */
    font-weight: 300;
    color: #000;
    outline: none;
}

.close-btn, .search-submit-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* Resultados */
.search-body {
    flex: 1;
    overflow-y: auto;
    padding-top: 30px;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

/* Card de Produto Preditivo */
.predictive-item {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.predictive-item:hover {
    opacity: 0.7;
}

.predictive-img {
    width: 100%;
    aspect-ratio: 1/1; /* Quadrado perfeito */
    object-fit: cover;
    background-color: #f5f5f5;
    margin-bottom: 10px;
}

.predictive-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.predictive-price {
    font-size: 0.85rem;
    color: #666;
}

/* Mobile First Adjustments */
@media (min-width: 768px) {
    .search-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}