/* Search Module Styles */
.search-module-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-module-overlay.active {
    display: block;
    opacity: 1;
}

.search-module-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.search-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.search-module-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.search-module-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.search-module-close:hover {
    color: #333;
}

.search-module-form {
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.search-input-group {
    display: flex;
    margin-bottom: 20px;
}

.search-module-input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #e1e5ee;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.search-module-input:focus {
    border-color: #6a11cb;
}

.search-module-button {
    background: #6a11cb;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    padding: 0 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-module-button:hover {
    background: #5a0db9;
}

.search-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-label {
    font-weight: 500;
    color: #666;
    font-size: 14px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 6px 12px;
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Manrope', sans-serif;
}

.filter-btn.active, .filter-btn:hover {
    background: #6a11cb;
    color: white;
}

.search-results-container {
    flex: 1;
    overflow-y: auto;
    padding: 0 25px 25px;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
}

.search-results-count {
    font-size: 14px;
    color: #666;
}

.search-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-sort label {
    font-size: 14px;
    color: #666;
}

.search-sort-select {
    padding: 5px 10px;
    border: 1px solid #e1e5ee;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-result-item {
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

.search-result-item:hover {
    border-color: #6a11cb;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.1);
}

.result-category {
    display: inline-block;
    padding: 3px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.result-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.result-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.result-price {
    font-size: 14px;
    font-weight: 600;
    color: #6a11cb;
}

.highlight {
    background-color: #fff9c2;
    padding: 1px 3px;
    border-radius: 2px;
}

.no-results {
    text-align: center;
    padding: 40px 0;
    color: #999;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-module-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .search-module-header {
        padding: 15px 20px;
    }
    
    .search-module-form {
        padding: 20px;
    }
    
    .search-results-container {
        padding: 0 20px 20px;
    }
    
    .search-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .search-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-options {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }
}

/* Prevent body scroll when search is open */
body.search-open {
    overflow: hidden;
}