
:root {
    --card-bg: rgba(30, 30, 50, 0.6);
    --neon-blue: #00ddeb;
    --neon-pink: #ff2e63;
    --neon-purple: #9b59b6;
    --text-light: #f0f0f0;
    --text-muted: #a0a0b0;
    --border-width: 2px;
    --animation-speed: 3s;
    --glow-intensity: 3px;
}

.card.product-card-vibrant {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); 
    border: none;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, box-shadow;
}

.card.product-card-vibrant:hover,
.card.product-card-vibrant:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.card.product-card-vibrant::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    padding: var(--border-width);
    background: conic-gradient(
        from var(--angle, 0deg),
        var(--neon-pink),
        var(--neon-blue),
        var(--neon-purple),
        var(--neon-pink)
    );
    -webkit-mask: 
        linear-gradient(#dad8d8 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotate var(--animation-speed) linear infinite;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.card.product-card-vibrant:hover::before,
.card.product-card-vibrant:focus-within::before {
    opacity: 1;
}

@supports not (mask-composite: exclude) {
    .card.product-card-vibrant::before {
        border: var(--border-width) solid transparent;
        background-clip: border-box;
    }
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotate {
    to { --angle: 360deg; }
}

/* Image Container */
.image-container {
    position: relative;
    overflow: hidden;
}

.product-image {
    aspect-ratio: 1 / 1.1;
    object-fit: cover;
    width: 100%;
    transition: transform 0.4s ease;
}

.card.product-card-vibrant:hover .product-image,
.card.product-card-vibrant:focus-within .product-image {
    transform: scale(1.06);
}

/* Wishlist Button */
.btn-wishlist {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(30, 30, 50, 0.7);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
    z-index: 3;
}

.btn-wishlist:hover,
.btn-wishlist:focus {
    background: var(--neon-blue);
    box-shadow: 0 0 8px var(--neon-blue);
    transform: scale(1.1);
}

.btn-wishlist i {
    font-size: 0.9rem;
}

/* Discount Badge */
.discount-badge {
    background: var(--neon-pink);
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    transition: transform 0.3s ease;
}

.card.product-card-vibrant:hover .discount-badge,
.card.product-card-vibrant:focus-within .discount-badge {
    transform: scale(1.1);
}

/* Product Body */
.product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    z-index: 2;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.card.product-card-vibrant:hover .product-title,
.card.product-card-vibrant:focus-within .product-title {
    color: var(--neon-blue);
}

/* Price Container */
.price-container {
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    transition: transform 0.3s ease;
}

.card.product-card-vibrant:hover .price-container,
.card.product-card-vibrant:focus-within .price-container {
    transform: translateY(-2px);
}

.current-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--neon-blue);
    text-shadow: 0 0 6px var(--neon-blue);
}

.original-price {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
}

/* Checkout Button */
.btn-checkout {
    width: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    background-size: 200% auto;
    color: var(--text-light);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.4s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-checkout:hover,
.btn-checkout:focus {
    background-position: right center;
    box-shadow: 0 0 15px var(--neon-blue);
    transform: translateY(-2px);
}