/**
 * Shop Page Custom Styles
 * Recuparts - Auto Parts E-commerce
 */

/* Search Tabs */
.search-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.search-tab {
    padding: 0.75rem 1.25rem;
    border: none;
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.search-tab:hover {
    background: rgba(124, 179, 66, 0.1);
    color: var(--accent-color);
}

.search-tab.active {
    background: var(--accent-color);
    color: white;
}

.search-tab i {
    margin-right: 0.5rem;
}

/* Search Box */
.search-box {
    display: none;
    animation: fadeIn 0.3s ease;
}

.search-box.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Brand Dropdown */
.brand-dropdown {
    position: relative;
}

.brand-list {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.brand-list.show {
    display: block;
}

.brand-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f1f1f1;
}

.brand-item:hover {
    background: rgba(124, 179, 66, 0.1);
}

.brand-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Product Cards */
.product-card {
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.product-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product-card .product-image {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-card .product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: cover;
}

.product-card .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card .badge-used {
    background: #fff3cd;
    color: #856404;
}

.product-card .badge-new {
    background: #d4edda;
    color: #155724;
}

.product-card .badge-overhaul {
    background: #cce5ff;
    color: #004085;
}

.product-card .product-info {
    padding: 1.25rem;
}

.product-card .product-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-card .product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
}

.product-card .product-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.category-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.category-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.category-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0;
}

/* Filters sidebar */
.filter-section {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.filter-section h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Loading spinner */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--accent-color);
}
