﻿/* ===================================================================
   Vrilsoft Store — Animated Product Cards with Circuit Flow + Pulse
   =================================================================== */

#grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

/* ===== CARD BASE ===== */
.product-card {
    position: relative;
    background-color: #1d1f27;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 0 25px rgba(0,150,255,0.25);
    }

    /* ===== CIRCUIT LIGHT BORDER ===== */
    .product-card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1px;
        background: linear-gradient( 120deg, var(--tblr-primary) 0%, transparent 30%, var(--tblr-primary) 60%, transparent 100% );
        background-size: 300% 300%;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .product-card:hover::before {
        opacity: 1;
        animation: vrilsoft-circuit-flow 3s linear infinite, vrilsoft-pulse 1.8s ease-in-out infinite;
    }

/* Moving neon flow */
@keyframes vrilsoft-circuit-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Gentle pulsing brightness */
@keyframes vrilsoft-pulse {
    0%, 100% {
        box-shadow: 0 0 4px rgba(0,150,255,0.25);
    }

    50% {
        box-shadow: 0 0 12px rgba(0,150,255,0.55);
    }
}

/* ===== HEADER STRIP ===== */
.product-header {
    background-color: var(--tblr-primary);
    color: var(--tblr-primary-foreground, #fff);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ===== BODY ===== */
.product-body {
    padding: 1rem;
    background-color: #232530;
    color: #e5e5e5;
}

/* ===== SPECS TABLE ===== */
.product-card .specs td {
    border: none;
    padding: 0.15rem 0.4rem;
    vertical-align: top;
    font-size: 0.9rem;
}

    .product-card .specs td:first-child {
        width: 30%;
        color: #aaa;
        font-weight: 500;
    }

/* ===== DRIVE SELECTOR ===== */
.product-card .drive-selector {
    background-color: #1b1c22;
    border-color: rgba(255,255,255,0.1);
    color: #ddd;
}

    .product-card .drive-selector:focus {
        border-color: var(--tblr-primary);
        box-shadow: 0 0 0 2px color-mix(in srgb, var(--tblr-primary) 50%, transparent);
    }

/* ===== PRICE & BUTTON ===== */
.product-card .price {
    font-weight: 600;
}

.product-card .btn {
    font-weight: 500;
    border-radius: 0.5rem;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

    .product-card .btn:hover {
        box-shadow: 0 0 10px color-mix(in srgb, var(--tblr-primary) 40%, transparent);
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    #grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }

    .product-card .specs td {
        font-size: 0.85rem;
    }
}

.added-pulse {
    animation: pulseAdd .35s ease;
}

@keyframes pulseAdd {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.07);
    }

    100% {
        transform: scale(1);
    }
}
/* Added for checking out */
.checkout-summary-box {
    background: var(--tblr-bg-surface);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
}

.dark .checkout-summary-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}
/* Spacing for models on cart checkout */
.addon-modal .modal-body {
    line-height: 1.55;
    font-size: 0.95rem;
}
/* Shop checkout review section */
/* Subtle transparent box for each item in Review checkout screen */
.checkout-service-box {
    border-radius: 8px;
    padding: 1.25rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.05);
}