/* ===== D-Town Premium Floating Product Card ===== */

/* ---------- Card Container ---------- */
.product-card {
    background: #FFFFFF; /* White base */
    border-radius: 22px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); /* Lighter shadow */
    width: 280px;
    padding: 22px;
    text-align: center;
    transition: all 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* ---------- Floating Hover Effect ---------- */
.product-card:hover {
    transform: translateY(-20px); /* More float */
    box-shadow: 0 30px 60px rgba(0,0,0,0.12); /* Soft elegant shadow */
}

/* ---------- Diagonal Stripe Overlay ---------- */
.product-card::before {
    content: '';
    position: absolute;
    top: -50px; left: -50px;
    width: 200%; height: 200%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,215,0,0.015),
        rgba(255,215,0,0.015) 2px,
        transparent 2px,
        transparent 8px
    );
    z-index: 0;
    pointer-events: none;
}

/* ---------- Soft Glowing Particle ---------- */
.product-card::after {
    content: '';
    position: absolute;
    bottom: -40px; right: -40px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, #00C6FF30, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: pulse 4s infinite ease-in-out;
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.25); opacity: 0.35; }
}

/* ---------- Product Image ---------- */
.product-card img {
    width: 100%;
    border-radius: 18px;
    border: 2px solid #f0f0f0; /* Subtle border for elegance */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease-in-out;
    position: relative;
    filter: brightness(1.05); /* Slightly brighter for premium feel */
}

/* Hover Zoom + Glow */
.product-card img:hover {
    transform: scale(1.08);
    box-shadow: 0 18px 35px rgba(0,198,255,0.25);
    filter: brightness(1.1);
}

/* ---------- Product Title ---------- */
.product-card h3 {
    font-size: 20px;
    font-weight: bold;
    color: #FFAA00;
    margin: 15px 0 10px;
    position: relative;
    transition: all 0.3s ease-in-out;
}

/* Neon Glow on Hover */
.product-card:hover h3 {
    color: #00C6FF;
    text-shadow: 0 0 10px #00C6FF, 0 0 20px #00C6FF40;
}

/* Accent Line Under Title */
.product-card h3::after {
    content: '';
    display: block;
    width: 55px;
    height: 3px;
    margin: 6px auto 0;
    background: linear-gradient(90deg, #FFAA00, #00C6FF);
    border-radius: 2px;
}

/* ---------- Product Description ---------- */
.product-card p {
    font-size: 14px;
    color: #333333;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* ---------- Product Price ---------- */
.product-card .price {
    font-size: 18px;
    font-weight: bold;
    color: #00C6FF;
    margin-bottom: 15px;
}

/* ---------- Add to Cart Button ---------- */
.product-card .btn-add {
    background: linear-gradient(135deg, #FFD700, #FFAA00);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    display: inline-block;
}
.product-card .btn-add:hover {
    background: linear-gradient(135deg, #00C6FF, #0072FF);
    box-shadow: 0 6px 22px rgba(0,198,255,0.4);
}

/* Ensure content stays above graphics */
.product-card * {
    position: relative;
    z-index: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .product-card { width: 90%; margin: 20px auto; }
}