/* ===========================================
   Thermio Light Theme — Clean, modern, minimal
   =========================================== */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #0ea5e9;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ TOP BAR ============ */
.topbar {
  background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 24px;
}

.topbar-link { 
  color: #fff; 
  font-weight: 600; 
  text-decoration: underline; 
  text-underline-offset: 2px; 
}

/* ============ NAVIGATION ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
  color: var(--text);
  text-transform: uppercase;
}

.brand:hover { color: var(--text); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  display: inline-block;
}
#cartCount {
  display: none;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  text-align: center;
  font-size: 12px;
  line-height: 20px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Mobile nav toggle */
.mobile-nav-toggle { display: none; background: transparent; border: 0; padding: 8px; margin-left: 6px; cursor: pointer; }

/* Off-canvas mobile nav */
.mobile-nav {
  position: fixed; inset: 0; left: 0; top: 0; height: 100vh; width: 280px; background: #fff; box-shadow: 2px 0 24px rgba(0,0,0,0.12); transform: translateX(-110%); transition: transform .28s ease; z-index: 1200; overflow-y: auto; padding: 20px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .nav-links { display: block; }
.mobile-nav .nav-links > a { display:block; padding:12px 8px; border-radius:8px; }

.mobile-nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 1100; }
.mobile-nav-overlay.open { opacity: 1; pointer-events: all; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-nav-toggle { display: inline-flex; }
}

.nav-links > a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-links > a.active {
  background: var(--primary);
  color: #fff;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  text-decoration: none;
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

.btn.secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  background: #e2e8f0;
}

.btn.danger {
  background: var(--danger);
}

.btn.danger:hover {
  background: #dc2626;
}

/* ============ CARDS & FORMS ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

input::placeholder { color: var(--text-muted); }

.msg {
  margin-top: 12px;
  min-height: 20px;
  font-size: 14px;
  font-weight: 500;
}

.msg.ok { color: var(--success); }
.msg.err { color: var(--danger); }

.muted { color: var(--text-muted); }

/* ============ HERO SECTIONS ============ */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Feature Cards */
.features {
  padding: 60px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: #fff;
  font-size: 28px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  margin: 0 0 12px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Stats Section */
.stats-section {
  padding: 60px 0;
  background: var(--surface-2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-item span {
  color: var(--text-muted);
  font-size: 14px;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: #fff;
}

.cta-section h2 {
  font-size: 2rem;
  margin: 0 0 16px;
  font-weight: 800;
}

.cta-section p {
  opacity: 0.9;
  margin: 0 0 32px;
  font-size: 18px;
}

.cta-section .btn {
  background: #fff;
  color: var(--primary);
}

.cta-section .btn:hover {
  background: #f1f5f9;
}

/* ============ FOOTER ============ */
.footer {
  margin-top: 0;
  padding: 60px 0 30px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
}

.footer h4 {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.footer a {
  color: var(--text);
  display: block;
  margin: 8px 0;
  font-size: 14px;
  transition: color 0.2s;
}

.footer a:hover { color: var(--primary); }

.footer-brand p {
  color: var(--text-muted);
  margin: 12px 0 20px;
  font-size: 14px;
  line-height: 1.7;
}

.footer-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 13px;
  gap: 16px;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links a svg { width: 16px; height: 16px; opacity: .9; }

.footer-trust { display: flex; gap: 14px; align-items: center; }

.trust-item { display: inline-flex; gap: 8px; align-items: center; background: var(--surface); padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); }

.trust-item svg { width: 18px; height: 18px; color: var(--primary); }

.trust-item span { font-size: 13px; color: var(--text); font-weight: 600; }

/* Stars */
.stars { display:inline-flex; gap:6px; align-items:center; }
.stars svg { width:18px; height:18px; display:inline-block; }
.star.full { color: #f59e0b; }
.star.empty { color: #e2e8f0; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .footer-grid { grid-template-columns: 1fr; }
  
  .hero { padding: 50px 0 40px; }
  
  .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .container { padding: 0 16px; }
  
  .stats-grid { grid-template-columns: 1fr; }
}
