:root {
    /* Color Palette */
    --primary: #2563eb;       /* Trustworthy Blue */
    --primary-dark: #1e40af;
    --accent: #ea580c;        
    --accent-hover: #c2410c;
    --bg-body: #f8fafc;       /* Very light grey-blue */
    --bg-card: #ffffff;
    --text-main: #0f172a;     /* Dark Slate */
    --text-muted: #475569; 
    --border: #e2e8f0;
    
    /* Spacing */
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* --- Global Reset & Typography --- */
body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: --bg-body;
    background: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; padding: 0; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo a { font-weight: 800; font-size: 1.5rem; color: var(--primary); letter-spacing: -0.5px; }
nav a { font-weight: 600; color: var(--text-main); margin-left: 20px; }
nav a:hover { color: var(--primary); }

/* --- Footer --- */
footer { margin-top: 50px; padding: 40px 0; background: #fff; border-top: 1px solid var(--border); text-align: center; color: var(--text-muted); }

/* --- Cards & Grid --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.product-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    margin-bottom: 20px;
}

.card h3 { margin: 0 0 10px 0; font-size: 1.25rem; }

/* --- Key Stats (Grid inside card) --- */
.stats-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
}
.stat-item { text-align: center; width: 50%; }
.stat-label { display: block; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }
.stat-value { font-weight: 700; color: var(--text-main); }

/* --- Buttons --- */
.btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-top: 10px;
    box-sizing: border-box;
}

.btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); /* Orange Gradient */
    color: white;
    border: none;
    box-shadow: 0 4px 6px rgba(234, 88, 12, 0.3); /* Orange shadow glow */
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex; /* Aligns text and icon */
    align-items: center;
    justify-content: center;
    gap: 8px; /* Space between text and icon */
}

.btn-primary:hover {
    transform: translateY(-2px); /* Moves up slightly */
    box-shadow: 0 6px 12px rgba(234, 88, 12, 0.4);
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* --- Product Detail Page --- */
.hero-product {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 30px;
    align-items: center;
}
.hero-img-col { flex: 1; min-width: 300px; text-align: center;}
.hero-info-col { flex: 1.5; min-width: 300px; }
.product-img-large { max-width: 100%; max-height: 400px; }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 15px; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.spec-table th, .spec-table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border); }
.spec-table th { background-color: #f8fafc; width: 35%; color: var(--text-muted); font-weight: 600; }
.spec-table tr:last-child td { border-bottom: none; }

/* --- Comparison Page --- */
.vs-header { text-align: center; margin: 40px 0; font-size: 2rem; font-weight: 800; }
.vs-span { color: var(--primary); background: #e0e7ff; padding: 5px 15px; border-radius: 50px; font-size: 1rem; vertical-align: middle; }

.comparison-container { display: flex; gap: 20px; }
.comparison-col { flex: 1; background: #fff; padding: 30px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); }
.highlight-diff { background-color: #fff7ed; color: #c2410c; font-weight: 600; }
.category-header td { background: #f1f5f9; font-weight: 700; color: var(--text-main); text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; padding: 10px 15px; }

/* --- Utilities --- */
.breadcrumb { margin: 20px 0; font-size: 0.9rem; color: var(--text-muted); }
.aff-notice { font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; display: block; text-align: center;}
.section-title { margin-top: 40px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }

/* --- Mobile Tweaks --- */
@media (max-width: 768px) {
    .comparison-container { flex-direction: column; }
    .hero-product { flex-direction: column; text-align: center;}
    .spec-table th { width: 45%; }
}