/* GEAR GARAGE: CLEAN PRODUCT LIST STYLES */

/* Product Grid */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Product Image */
.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Logo fallback styling - when using placeholder images */
.product-image img[src*="logo-black"] {
    object-fit: contain;
    padding: 20px;
    opacity: 0.7;
    filter: grayscale(20%);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.product-card:hover .product-image img[src*="logo-black"] {
    transform: scale(1.1);
    opacity: 0.9;
    filter: grayscale(0%);
}

/* Combination Badge */
.combination-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

.combination-badge .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

/* Product Info */
.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-height: 190px;
}

.variant-count-badge {
    width: fit-content;
    margin-top: auto;
}

.product-brand {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 4px;
    font-weight: 500;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    flex-grow: 1;
    display: -webkit-box;
}

/* Product Options */
.product-options {
    margin: 8px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.option-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.7rem;
    color: #495057;
    font-weight: 500;
}

/* Product Price */
.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e3201c;
    margin-top: auto;
}

/* Loading States */
.filter-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* No Results */
.no-results {
    padding: 60px 20px;
}

.no-results i {
    color: #dee2e6;
}

/* Results Info */
.results-text {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    --bs-pagination-padding-x: 0.75rem;
    --bs-pagination-padding-y: 0.5rem;
    --bs-pagination-border-radius: 8px;
}

.pagination .page-link {
    color: #e3201c;
    border-color: #dee2e6;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination .page-item.active .page-link {
    background-color: #e3201c;
    border-color: #e3201c;
    color: white;
    box-shadow: 0 2px 8px rgba(227, 32, 28, 0.3);
}

.pagination .page-link:hover {
    color: #b71c1c;
    background-color: #f8f9fa;
    border-color: #e3201c;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-card {
        border-radius: 8px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-title {
        font-size: 0.9rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .option-tag {
        font-size: 0.65rem;
        padding: 1px 4px;
    }
    
    .combination-badge {
        top: 6px;
        left: 6px;
    }
    
    .combination-badge .badge {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
}

@media (max-width: 576px) {
    .product-info {
        padding: 10px;
    }
    
    .product-title {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .results-text {
        font-size: 0.8rem;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

.text-primary {
    color: #e3201c !important;
}

/* Filter Loading Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.filter-loading .product-card {
    animation: pulse 1.5s ease-in-out infinite;
}
