/* ShopWave — realistic e-commerce demo site */

:root {
  --brand-primary: #2563eb;
  --brand-primary-hover: #1d4ed8;
  --brand-dark: #0f172a;
  --brand-light: #f8fafc;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --surface: #ffffff;
  --surface-raised: #f1f5f9;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  background: var(--brand-light);
  line-height: 1.6;
}

/* Navigation */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand-primary); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-cart {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-secondary);
}
.nav-cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--brand-primary);
  color: white;
  font-size: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, #1e3a5f 100%);
  color: white;
  padding: 80px 24px;
  text-align: center;
}
.hero h1 { font-size: 48px; font-weight: 800; margin-bottom: 16px; }
.hero p { font-size: 20px; opacity: 0.85; max-width: 600px; margin: 0 auto 32px; }
.hero-cta {
  display: inline-block;
  background: var(--brand-primary);
  color: white;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  transition: background 0.15s;
}
.hero-cta:hover { background: var(--brand-primary-hover); }

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Section */
.section {
  padding: 64px 0;
}
.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-subtitle {
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--surface-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 48px;
}
.product-info { padding: 16px; }
.product-name { font-weight: 600; margin-bottom: 4px; }
.product-price { color: var(--brand-primary); font-weight: 700; font-size: 18px; }
.product-rating { color: var(--warning); font-size: 14px; margin-top: 8px; }
.product-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: var(--brand-primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.product-btn:hover { background: var(--brand-primary-hover); }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 14px; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.testimonial-text { font-style: italic; margin-bottom: 16px; color: var(--text-secondary); }
.testimonial-author { font-weight: 600; font-size: 14px; }
.testimonial-role { color: var(--text-muted); font-size: 13px; }

/* Newsletter */
.newsletter {
  background: var(--brand-dark);
  color: white;
  text-align: center;
  padding: 64px 24px;
}
.newsletter h2 { font-size: 28px; margin-bottom: 12px; }
.newsletter p { opacity: 0.8; margin-bottom: 24px; }
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
}
.newsletter-btn {
  padding: 12px 24px;
  background: var(--brand-primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--text-secondary); font-size: 14px; margin-top: 8px; }
.footer-col h4 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; color: var(--text-muted); }
.footer-col a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 14px; margin-bottom: 8px; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Checkout form */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  padding: 40px 0;
}
.form-section { margin-bottom: 32px; }
.form-section h2 { font-size: 20px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.form-input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  transition: border-color 0.15s;
}
.form-input:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

.order-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 88px;
  height: fit-content;
}
.order-summary h2 { font-size: 18px; margin-bottom: 16px; }
.order-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.order-total { display: flex; justify-content: space-between; padding-top: 16px; font-weight: 700; font-size: 18px; }
.checkout-btn {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  background: var(--brand-primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

/* About */
.about-hero {
  text-align: center;
  padding: 64px 24px;
  background: var(--surface);
}
.about-hero h1 { font-size: 36px; margin-bottom: 16px; }
.about-hero p { color: var(--text-secondary); max-width: 640px; margin: 0 auto; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 40px 0;
}
.stat { text-align: center; }
.stat-number { font-size: 36px; font-weight: 800; color: var(--brand-primary); }
.stat-label { color: var(--text-secondary); font-size: 14px; }

/* Mode badge */
.mode-badge {
  position: fixed;
  top: 72px;
  right: 16px;
  background: var(--brand-dark);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 12px;
  font-family: monospace;
  z-index: 200;
  box-shadow: var(--shadow-md);
  opacity: 0.9;
}
.mode-badge.compliant { border-left: 3px solid var(--success); }
.mode-badge.noncompliant { border-left: 3px solid var(--danger); }

/* Responsive */
@media (max-width: 768px) {
  .features-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 32px; }
}
