/* --- LORAXS Matrix Design Base Configuration System --- */
:root {
    --space-black: #050507;
    --panel-dark: #0c0c10;
    --border-glass: rgba(255, 255, 255, 0.04);
    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    --transition-bezier: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--space-black);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    padding: 60px 20px;
}

/* --- Ambient Cyber Overlay Layers --- */
.cyber-grid-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
}

/* Dynamic glow sphere following active focus targets via script coordinates */
.dynamic-glow-orchestrator {
    position: fixed;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    will-change: top, left, background;
    transition: background 0.8s ease;
}

.products-dashboard-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Typography and Header Filtration Blocks --- */
.catalog-header {
    text-align: center;
    margin-bottom: 60px;
}

.brand-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.pulse-node {
    width: 6px; height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: beaconPulse 2s infinite ease-in-out;
}

.brand-meta p {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; color: #6b7280;
}

.catalog-title {
    font-size: 3.2rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 14px;
}

.text-gradient {
    background: linear-gradient(135deg, #a5b4fc, #6366f1);
    
    /* 1. Background Clipping */
    -webkit-background-clip: text; 
    background-clip: text;                 /* ADDED: Modern standard compliance */
    
    /* 2. Text Transparency */
    -webkit-text-fill-color: transparent; 
    color: transparent;                    /* ADDED: Safe fallback for legacy engines */
}

.catalog-subtitle {
    font-size: 1.05rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 40px auto; line-height: 1.6;
}

/* Filter Control Hub Elements */
.filter-matrix-row {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
}

.filter-trigger {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 10px 22px; border-radius: 30px;
    font-size: 0.88rem; font-weight: 600; cursor: pointer;
    transition: all 0.3s var(--transition-bezier);
}

.filter-trigger:hover, .filter-trigger.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.filter-trigger.active {
    background: #6366f1; border-color: #6366f1; box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

/* --- Interactive Grid Canvas Framework --- */
.products-grid-arena {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    will-change: transform;
}

/* --- The 3D Component Hardware Card System --- */
.product-card-container {
    perspective: 1000px; /* Crucial field depth setting for 3D tilting */
    will-change: transform, opacity;
    transition: transform 0.6s var(--transition-bezier), opacity 0.6s var(--transition-bezier);
}

/* Item transformation state indicators processed during sorting filtering */
.product-card-container.filtered-out {
    transform: scale(0.8) translateY(30px);
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 0; height: 0; overflow: hidden; padding: 0; margin: 0; border: none;
}

.card-inner-3d {
    position: relative;
    background: var(--panel-dark);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    will-change: transform;
    /* Clean fallback transition parameters handle deceleration tracking loops safely */
    transition: transform 0.5s var(--transition-bezier), border-color 0.4s ease, box-shadow 0.4s ease;
}

.product-card-container:hover .card-inner-3d {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Corner Floating Overlay Badge element */
.product-badge {
    position: absolute; top: 20px; right: 20px; z-index: 5;
    background: rgba(5, 5, 7, 0.8);
    border: 1px solid var(--border-glass);
    padding: 4px 10px; border-radius: 6px;
    font-size: 0.65rem; font-weight: 800; letter-spacing: 1px; color: var(--text-muted);
}

/* Image Container Studio Window Layer */
.image-frame {
    width: 100%; height: 220px;
    background: #050507; border-radius: 12px;
    margin-bottom: 24px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    transform: translateZ(30px); /* Pushes image forward in 3D perspective space */
    transition: transform 0.5s var(--transition-bezier);
}

.image-frame img {
    width: 85%; height: 85%; object-fit: contain;
    transition: transform 0.5s var(--transition-bezier);
}

.product-card-container:hover .image-frame img {
    transform: scale(1.06) rotate(-1deg);
}

/* Text and Meta Specifications Block */
.product-details {
    display: flex; flex-direction: column; flex-grow: 1;
    transform: translateZ(20px);
}

.category-tag {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 8px; width: max-content;
}
.tag-indigo { color: #818cf8; }
.tag-emerald { color: #34d399; }
.tag-purple { color: #c084fc; }
.tag-amber { color: #fbbf24; }
.tag-blue { color: #60a5fa; }
.tag-pink { color: #f472b6; }

.product-details h3 {
    font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 10px; letter-spacing: -0.3px;
}

.specs-summary {
    font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 24px; flex-grow: 1;
}

/* Footer Section Action Triggers Row */
.card-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; transform: translateZ(10px);
}

.status-indicator {
    display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600;
}
.status-indicator::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%; display: inline-block;
}
.status-indicator.online { color: #10b981; }
.status-indicator.online::before { background-color: #10b981; box-shadow: 0 0 8px #10b981; }
.status-indicator.backlog { color: #f59e0b; }
.status-indicator.backlog::before { background-color: #f59e0b; box-shadow: 0 0 8px #f59e0b; }

.btn-card-action {
    background: none; border: none; color: #6366f1;
    font-size: 0.88rem; font-weight: 700; cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}
.btn-card-action:hover {
    color: #fff; transform: translateX(4px);
}

/* --- Core Keyframe Animations Loops --- */
@keyframes beaconPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* Responsive Adaptive Sizing Modifiers */
@media (max-width: 768px) {
    .catalog-title { font-size: 2.4rem; }
    .products-grid-arena { grid-template-columns: 1fr; }
    body { padding: 40px 15px; }
}