/*
Theme Name: Product Compare
Theme URI: https://example.com/product-compare
Author: Copilot (Generated)
Author URI: https://example.com
Description: A production-ready product comparison theme scaffold. Generic product comparison platform; Electric Vehicles demo included.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: product-compare
Tags: custom-background, custom-logo, custom-menu, featured-images, translation-ready, accessibility-ready
*/

:root{
  --primary:#0d6efd;
  --secondary:#0f1724;
  --accent:#06b6d4;
  --background:#ffffff;
  --surface:#f8fafc;
  --border:#e6eef6;
  --text:#0b1220;
  --muted:#6b7280;
  --success:#10b981;
  --warning:#f59e0b;
  --danger:#ef4444;
}

/* Basic theme CSS — more componentized styles should be added as needed */
body{font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; color:var(--text);background:var(--background);margin:0}
.site-header,.site-footer{background:var(--surface);border-bottom:1px solid var(--border)}
.container{max-width:1200px;margin:0 auto;padding:24px}
.hero{padding:48px 0;text-align:center}
.hero h1{font-size:32px;margin:0 0 12px}
.hero p{color:var(--muted);margin:0 0 18px}
.searchbar{max-width:720px;margin:10px auto;display:flex}
.searchbar input{flex:1;padding:12px;border:1px solid var(--border);border-right:0;border-radius:6px 0 0 6px}
.searchbar button{padding:12px 16px;border:1px solid var(--border);background:var(--primary);color:#fff;border-radius:0 6px 6px 0}
.category-grid{display:flex;flex-wrap:wrap;gap:16px;justify-content:center}
.category-card{width:160px;padding:12px;background:#fff;border:1px solid var(--border);border-radius:8px;text-align:center}
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}
.product-card{background:#fff;border:1px solid var(--border);padding:12px;border-radius:8px;display:flex;flex-direction:column}
.product-card img{width:100%;height:160px;object-fit:cover;border-radius:6px}
.product-meta{display:flex;justify-content:space-between;align-items:center;margin-top:8px}
.compare-tray{position:fixed;right:20px;bottom:20px;background:#fff;border:1px solid var(--border);padding:10px;border-radius:8px;box-shadow:0 6px 20px rgba(11,18,32,0.08);z-index:9999}
@media (max-width:768px){.product-grid{grid-template-columns:repeat(1,1fr)}.compare-tray{left:0;right:0;bottom:0;border-radius:0;display:flex;justify-content:space-between;}}

/* Utility */
.btn{display:inline-block;padding:8px 12px;border-radius:6px;background:var(--primary);color:#fff;text-decoration:none}
.badge{background:var(--accent);color:#fff;padding:3px 8px;border-radius:999px;font-size:12px}

/* Accessibility focus */
a:focus, button:focus, input:focus{outline:3px solid rgba(13,110,253,0.12);outline-offset:2px}

/* Basic table for comparison */
.compare-table{width:100%;border-collapse:collapse}
.compare-table th,.compare-table td{border:1px solid var(--border);padding:10px;text-align:center}
.compare-best{background:linear-gradient(90deg,rgba(16,185,129,0.12),transparent)}

/* Small responsive tweaks */
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
