/* Product Card Styles */
.product-card {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
    visibility: visible;
}

.product-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.product-actions button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #8b4513;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.product-actions button:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.product-actions button i {
    font-size: 1rem;
}

.product-info {
    padding: 20px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.product-rating i {
    color: #fbbf24;
    font-size: 0.875rem;
}

.product-rating span {
    margin-left: 8px;
    font-size: 0.875rem;
    color: #6b7280;
}

.product-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-category {
    font-size: 0.875rem;
    color: #8b4513;
    margin-bottom: 12px;
    text-transform: capitalize;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: #8b4513;
}

.price-original {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.stock-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stock-status.in-stock {
    background: #d1fae5;
    color: #065f46;
}

.stock-status.low-stock {
    background: #fef3c7;
    color: #92400e;
}

.stock-status.out-of-stock {
    background: #fee2e2;
    color: #991b1b;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .product-actions {
        gap: 8px;
    }
    
    .product-actions button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        max-width: 100%;
    }
}

/* No Products State */
.no-products {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 40px;
    grid-column: 1 / -1;
}

.no-products i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 24px;
}

.no-products h3 {
    color: #6b7280;
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 600;
}

.no-products p {
    color: #9ca3af;
    margin-bottom: 24px;
    max-width: 400px;
}

/* Loading State */
.products-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Product Modal Enhancements */
.product-modal .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a0522d 0%, #8b4513 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.3);
}

.btn-outline {
    background: transparent;
    color: #8b4513;
    border: 2px solid #8b4513;
}

.btn-outline:hover {
    background: #8b4513;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.3);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transition: all 0.3s ease;
    transform: translateX(100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.notification.success {
    background: #10b981;
}

.notification.error {
    background: #ef4444;
}

.notification.info {
    background: #3b82f6;
}

.notification.show {
    transform: translateX(0);
}

/* Animation Improvements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card[data-aos="fade-up"] {
    animation: fadeInUp 0.6s ease forwards;
}

/* Filter Integration */
.product-card.filtered-out {
    display: none !important;
}

.product-card.filtered-in {
    display: block !important;
}

/* Responsive Improvements */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .product-card {
        border-radius: 12px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-badge {
        font-size: 0.625rem;
        padding: 3px 8px;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .price-current {
        font-size: 1.125rem;
    }
}
