/* CSS untuk halaman pencarian lanjutan */

/* Layout utama */
.search-page {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 20px 0;
}

.search-sidebar {
    flex: 0 0 300px;
}

.search-results {
    flex: 1;
    min-width: 300px;
}

/* Breadcrumb */
.breadcrumb {
    margin: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Filter sidebar */
.filter-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.filter-group input[type="text"],
.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-group input[type="number"] {
    width: calc(50% - 10px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-range span {
    color: #666;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-search {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    flex: 1;
    text-align: center;
}

.btn-search:hover {
    background-color: #0055aa;
}

.btn-reset {
    background-color: #f2f2f2;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    flex: 1;
}

.btn-reset:hover {
    background-color: #e6e6e6;
}

/* Active filters */
.active-filters {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.active-filters h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

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

.filter-tag {
    background-color: #e6f2ff;
    color: #0066cc;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.remove-filter {
    margin-left: 8px;
    color: #0066cc;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
}

.remove-filter:hover {
    color: #cc0000;
}

/* Results header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.results-header h1 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

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

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: white;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.no-image {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    color: #999;
}

.no-image i {
    font-size: 40px;
    margin-bottom: 10px;
}

.product-info {
    padding: 15px;
}

.product-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.4;
}

.product-title a {
    color: #333;
    text-decoration: none;
}

.product-title a:hover {
    color: #0066cc;
}

.product-meta {
    margin-bottom: 15px;
}

.product-category {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.product-category a {
    color: #666;
    text-decoration: none;
}

.product-category a:hover {
    color: #0066cc;
    text-decoration: underline;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #cc0000;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stock-info {
    margin-bottom: 5px;
}

.stock-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.in-stock {
    background-color: #e6f7e6;
    color: #2e7d32;
}

.low-stock {
    background-color: #fff8e1;
    color: #ff8f00;
}

.out-of-stock {
    background-color: #ffebee;
    color: #c62828;
}

.btn-add-cart, .btn-notify {
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.2s;
}

.btn-add-cart {
    background-color: #0066cc;
    color: white;
}

.btn-add-cart:hover {
    background-color: #0055aa;
}

.btn-notify {
    background-color: #f2f2f2;
    color: #333;
    border: 1px solid #ddd;
}

.btn-notify:hover {
    background-color: #e6e6e6;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
}

.page-link {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.page-link:hover {
    background-color: #e6f2ff;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.page-number:hover {
    background-color: #e6f2ff;
}

.page-number.active {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}

.page-ellipsis {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    color: #666;
}

/* No results */
.no-results {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.no-results-icon {
    font-size: 50px;
    color: #999;
    margin-bottom: 20px;
}

.no-results h2 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.no-results p {
    color: #666;
    margin-bottom: 20px;
}

/* Responsive design */
@media (max-width: 992px) {
    .search-sidebar {
        flex: 0 0 250px;
    }
}

@media (max-width: 768px) {
    .search-page {
        flex-direction: column;
    }
    
    .search-sidebar {
        flex: 0 0 100%;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .page-numbers {
        display: none;
    }
    
    .pagination {
        justify-content: space-between;
    }
}