/* Products Grid Styles - Technical Matrix */

.products-matrix-section {
    padding: 80px 0;
    background-color: #f8fafc;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 20px 20px;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.matrix-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    /* Sharper corners */
    padding: 0;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.matrix-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #FED7AA;
}

/* Technical Header Strip */
.matrix-card-header {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.matrix-id {
    font-family: monospace;
    font-size: 0.75rem;
    color: #64748b;
    letter-spacing: 1px;
}

.matrix-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #059669;
    /* Green */
    text-transform: uppercase;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #059669;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.matrix-body {
    padding: 24px;
    flex-grow: 1;
}

.matrix-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.matrix-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 1.5rem;
}

.matrix-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.matrix-desc {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}

.matrix-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #f8fafc;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.stat-box {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: monospace;
    font-weight: 700;
    color: #334155;
    font-size: 1.1rem;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: #9A3412;
    text-transform: uppercase;
    margin-top: 2px;
}

.matrix-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: white;
    border-radius: 0 0 8px 8px;
}

.btn-matrix {
    display: block;
    width: 100%;
    text-align: center;
    background: white;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-matrix:hover {
    background: #f1f5f9;
    border-color: #FDBA74;
    color: #1e293b;
}

/* Featured Card (Dark) */
.matrix-card.featured {
    background: #1e293b;
    border-color: #334155;
    color: white;
}

.matrix-card.featured .matrix-card-header {
    background: #0f172a;
    border-color: #334155;
}

.matrix-card.featured .matrix-id {
    color: #FED7AA;
}

.matrix-card.featured .matrix-title {
    color: white;
}

.matrix-card.featured .matrix-desc {
    color: #cbd5e1;
}

.matrix-card.featured .matrix-icon {
    background: #334155;
    border-color: #475569;
}

.matrix-card.featured .matrix-stats {
    background: #0f172a;
}

.matrix-card.featured .stat-value {
    color: white;
}

.matrix-card.featured .matrix-footer {
    background: #1e293b;
    border-color: #334155;
}

.matrix-card.featured .btn-matrix {
    background: #F97316;
    border-color: #F97316;
    color: white;
}

.matrix-card.featured .btn-matrix:hover {
    background: var(--color-primary);
}