/* Search Page Styles */
.search-page {
    min-height: 60vh;
}

.search-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.search-header h2 i {
    color: #667eea;
    margin-left: 10px;
}

/* Search Filters */
.search-filters {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
}

.search-filters .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.search-filters .card-header h5 {
    font-size: 1rem;
}

.filter-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

.filter-group .form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-size: 0.9rem;
}

.filter-group .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* Product Cards in Search */
.search-page .product-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
}

.search-page .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.search-page .product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.search-page .product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
}

.search-page .product-category {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
}

.search-page .product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e91e63;
}

/* No Results */
.no-results i {
    opacity: 0.3;
}

/* Live Search Dropdown */
.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.live-search-results.active {
    display: block;
}

.live-search-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.live-search-item:hover {
    background: #f8f9fa;
}

.live-search-item:last-child {
    border-bottom: none;
}

.live-search-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-left: 12px;
}

.live-search-item .item-info {
    flex: 1;
}

.live-search-item .item-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.live-search-item .item-category {
    font-size: 0.8rem;
    color: #888;
}

.live-search-item .item-price {
    font-weight: 700;
    color: #e91e63;
    font-size: 0.95rem;
}

.live-search-footer {
    padding: 12px;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.live-search-footer a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

/* Search Box Enhanced */
.search-box {
    position: relative;
}

.search-box .form-control {
    padding-right: 45px;
    padding-left: 15px;
    height: 48px;
    border-radius: 25px;
    border: 2px solid #eee;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.search-box .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.search-box .search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.search-box .search-btn {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.search-box .search-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

/* Mobile Search Enhanced */
.mobile-searchbar {
    background: white;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.mobile-searchbar .form-control {
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #eee;
}

.mobile-searchbar .form-control:focus {
    border-color: #667eea;
}

/* Search Suggestions Tags */
.search-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.search-suggestion-tag {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.search-suggestion-tag:hover {
    background: #667eea;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-filters {
        margin-bottom: 20px;
        position: static;
    }
    
    .search-filters .card-body {
        padding: 15px;
    }
    
    .search-page .product-card .card-img-top {
        height: 150px;
    }
    
    .search-page .product-title {
        font-size: 0.85rem;
    }
    
    #filtersCollapse {
        display: none;
    }
    
    #filtersCollapse.show {
        display: block;
    }
}
