/* Search Module CSS */
.search-module-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-module-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-module-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.search-module-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.search-module-close {
    font-size: 30px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

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

.search-module-form {
    padding: 30px;
}

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

.search-module-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e5e5e5;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-module-input:focus {
    outline: none;
    border-color: #de968d;
}

.search-module-button {
    background: #de968d;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

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

.filter-label {
    font-weight: 600;
    color: #333;
}

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

.filter-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn.active,
.filter-btn:hover {
    background: #de968d;
    color: white;
    border-color: #de968d;
}

.search-results-container {
    max-height: 400px;
    overflow-y: auto;
    border-top: 1px solid #e5e5e5;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
}

.search-results-count {
    font-weight: 600;
    color: #333;
}

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

.search-sort-select {
    padding: 5px 10px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: white;
}

.search-results {
    padding: 20px 30px;
}

.search-result-item {
    padding: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    border-color: #de968d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-category {
    font-size: 12px;
    color: #de968d;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

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

.result-description {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.result-price {
    font-weight: 600;
    color: #de968d;
    font-size: 16px;
}

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

.highlight {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 600;
}

/* Header Search Bar Styles */
.header-search-bar {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    z-index: 1001;
}

.header-search-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.search-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-right: 15px;
    white-space: nowrap;
}

.search-input-container {
    flex-grow: 1;
    position: relative;
    margin-right: 15px;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #de968d;
    box-shadow: 0 0 0 2px rgba(222, 150, 141, 0.2);
}

.search-button {
    background: #de968d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-button:hover {
    background: #d4877e;
    transform: translateY(-2px);
}

/* Mobile Responsive Styles */
@media (max-width: 991px) {
    .header-search-bar {
        padding: 10px 0;
    }
    
    .header-search-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-label {
        margin-right: 0;
        text-align: center;
    }
    
    .search-input-container {
        margin-right: 0;
        width: 100%;
    }
    
    .search-button {
        width: 100%;
    }
    
    .search-module-container {
        width: 95%;
        max-width: none;
    }
    
    .search-module-header,
    .search-module-form,
    .search-results-header,
    .search-results {
        padding: 15px 20px;
    }
    
    .search-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-results-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .search-label {
        font-size: 14px;
    }
    
    .search-input {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .search-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .search-module-title {
        font-size: 20px;
    }
    
    .filter-options {
        justify-content: center;
    }
}

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