/**
 * PREMIUM PRODUCT CARDS UPGRADE
 * Adds deep shadows, smooth lift, and glassmorphic touches
 */

/* 1. Base Card Upgrade */
.product {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    /* Subtle border for definition */
    border-radius: 16px;
    /* Modern rounded corners */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    /* Soft base shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy spring transition */
    overflow: hidden;
    /* Ensure images stay inside */
    position: relative;
    z-index: 1;
}

/* 2. Hover Effects (The "Premium" Feel) */
.product:hover {
    transform: translateY(-8px) scale(1.01);
    /* Lift & slight zoom */
    box-shadow: 0 20px 40px -10px rgba(124, 58, 237, 0.15);
    /* Purple tint shadow on hover */
    border-color: rgba(124, 58, 237, 0.3);
    /* Subtle purple border on hover */
    z-index: 10;
}

/* 3. Image Area - Glassmorphic Edge */
.product-img {
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    position: relative;
}

.product-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), transparent);
    opacity: 0.8;
    pointer-events: none;
}

/* 4. Button Enhancement */
.add-to-cart-btn {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
    background-color: #7c3aed;
    /* Ensure vibrant purple */
}

/* 5. Discount Badge Pop */
.discount-badge {
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
    animation: badge-pulse 3s infinite;
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}