/* Product Listing and Detail Page Styles */

.card-product {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

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

.product-img img {
    transition: transform 0.3s ease;
}

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

.cursor-pointer {
    cursor: pointer;
}

.thumbnail-img {
    border: 2px solid transparent;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.thumbnail-img:hover {
    border-color: #0d6efd;
}

.input-spinner {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    max-width: 150px;
}

.input-spinner input[type="number"] {
    border: none;
    outline: none;
    text-align: center;
}

.input-spinner .btn {
    border: none;
    background: none;
    color: #6c757d;
    width: 35px;
    height: 35px;
}

.input-spinner .btn:hover {
    color: #0d6efd;
    background-color: #f8f9fa;
}

.filter-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #198754;
}

.product-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.img-zoom {
    overflow: hidden;
    border-radius: 8px;
}

.img-zoom img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-section {
        margin-bottom: 2rem;
    }
    
    .product-img {
        margin-bottom: 1rem;
    }
}

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

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state h4 {
    color: #6c757d;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #adb5bd;
    margin-bottom: 2rem;
}

/* Product placeholders */
.product-placeholder {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.product-placeholder:hover {
    border-color: #0d6efd;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.product-placeholder-large {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 3px dashed #dee2e6;
    transition: all 0.3s ease;
}

.product-placeholder-large:hover {
    border-color: #0d6efd;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

/* Image error handling */
.product-image {
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Clickable elements */
.cursor-pointer {
    cursor: pointer;
}

.product-placeholder.cursor-pointer:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

