/* Enhanced Product Cards - Beautiful Design */

/* Main Product Card Styling */
.product-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(184, 134, 11, 0.1);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(184, 134, 11, 0.25);
    border-color: rgba(184, 134, 11, 0.3);
}

/* Product Image Container */
.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    border-radius: 20px 20px 0 0;
}

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

/* Product Badges */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #32CD32, #228B22);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(50, 205, 50, 0.3);
}

.product-badge.featured {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.product-badge.bestseller {
    background: linear-gradient(135deg, #FF6B6B, #EE5A52);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Stock Status Badge */
.stock-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    color: #28a745;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.stock-status.low-stock {
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.2);
}

.stock-status.out-of-stock {
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.2);
}

/* Cart Overlay */
.cart-overlay {
    background: rgba(184, 134, 11, 0.9);
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

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

/* Add to Cart Button */
.add-to-cart-btn {
    background: linear-gradient(135deg, #32CD32, #228B22);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(50, 205, 50, 0.3);
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #228B22, #006400);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 205, 50, 0.4);
    color: white;
}

/* Product Content */
.product-content {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}

/* Product Title */
.product-title {
    font-size: 18px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
}

/* Product Category */
.product-category {
    color: #B8860B;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    opacity: 0.8;
}

/* Product Description */
.product-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Price */
.product-price {
    font-size: 24px;
    font-weight: 800;
    color: #B8860B;
    margin-bottom: 15px;
    position: relative;
}

.product-price::before {
    content: 'Rs.';
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    margin-right: 4px;
}

/* Original Price (if discounted) */
.original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto;
}

/* View Details Button */
.btn-view-details {
    background: linear-gradient(135deg, #B8860B, #8B7714);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

.btn-view-details:hover {
    background: linear-gradient(135deg, #8B7714, #6B5B0A);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4);
    color: white;
    text-decoration: none;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 8px;
}

.quick-action {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(184, 134, 11, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B8860B;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.quick-action:hover {
    background: #B8860B;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

/* Rating Stars */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #FFD700;
    font-size: 14px;
}

.star.empty {
    color: #e9ecef;
}

.rating-count {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-card .product-image {
        height: 250px;
    }
    
    .product-title {
        font-size: 16px;
    }
    
    .product-price {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .product-card {
        margin-bottom: 20px;
    }
    
    .product-card .product-image {
        height: 220px;
    }
    
    .product-content {
        padding: 20px 15px;
    }
    
    .product-title {
        font-size: 16px;
        min-height: 40px;
    }
    
    .product-price {
        font-size: 18px;
    }
    
    .btn-view-details {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .product-card .product-image {
        height: 200px;
    }
    
    .product-content {
        padding: 18px 12px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .quick-actions {
        justify-content: center;
    }
}

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

.product-card.animate-in {
    animation: cardAppear 0.6s ease forwards;
}

/* Loading States */
.product-card.loading {
    pointer-events: none;
}

.product-card.loading .product-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Section Headers Enhancement */
.section-header {
    position: relative;
    margin-bottom: 50px !important;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: #2C3E50;
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #B8860B, #32CD32);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: #6c757d;
    font-weight: 400;
    margin-bottom: 0;
}