/* SaaS Deal Engine - Global Variables */
:root {
    --primary: #2563eb;       /* Tech Blue */
    --success: #16a34a;       /* Savings Green */
    --warning: #ea580c;       /* Price Drop Orange */
    --bg-light: #f8fafc;      /* Dashboard Background */
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
}

/* Bento Grid Container */
.deal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 20px;
    background-color: var(--bg-light);
}

/* The Micro-SaaS Product Card */
.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

/* Value Score Badge (The "Algorithm" Feel) */
.value-score {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* Image Container */
.product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #f1f5f9;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Price Section */
.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.old-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.savings-label {
    color: var(--success);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Alternative Comparison Bar */
.alternative-stat {
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 12px 0;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label { color: var(--text-muted); }
.stat-value { color: var(--primary); font-weight: 700; }

/* The CTA Button */
.deal-button {
    display: block;
    width: 100%;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.deal-button:hover {
    background: #1d4ed8;
}