/**
 * Compac Engineering — Design System A
 * Extracted from inline styles across 160+ product HTML pages.
 * Outfit headings + IBM Plex Sans body, slate/blue/emerald/amber palette.
 *
 * This file supplements (does not replace) the inline <style> blocks in
 * product pages. It provides shared overrides and e-commerce additions.
 */

/* ================================================================
   CSS VARIABLES — Design System A canonical values
   ================================================================ */
:root {
  /* Slate scale */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Blue scale */
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;

  /* Emerald */
  --emerald-50:  #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-500: #10b981;
  --emerald-600: #059669;

  /* Amber (Kynar badges) */
  --amber-50:  #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;

  /* Red (Acetal badges, errors) */
  --red-50:  #fef2f2;
  --red-200: #fecaca;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body:    'IBM Plex Sans', sans-serif;

  /* Material color coding */
  --pp-dot: #475569; --pp-bg: #f8fafc; --pp-border: #e2e8f0; --pp-text: #475569;
  --ac-dot: #dc2626; --ac-bg: #fff5f5; --ac-border: #fecaca; --ac-text: #b91c1c;
  --kr-dot: #d97706; --kr-bg: #fffbeb; --kr-border: #fde68a; --kr-text: #92400e;
}

/* ================================================================
   E-COMMERCE ADDITIONS (not in original inline styles)
   ================================================================ */

/* Stock status badge */
.stock-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
}
.stock-status.in-stock { color: var(--emerald-600); }
.stock-status.in-stock::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--emerald-600);
}

/* "As low as" price badge */
.as-low-as {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--emerald-600);
}

/* Add-to-cart enhancements */
.add-to-cart-block .btn-cart {
  transition: background 0.15s, transform 0.1s;
}
.add-to-cart-block .btn-cart:active {
  transform: scale(0.97);
}
.add-to-cart-block .btn-cart.adding {
  opacity: 0.7;
  pointer-events: none;
}
.add-to-cart-block .btn-cart.added {
  background: var(--emerald-600);
}

/* Cart added feedback */
.cart-feedback {
  position: fixed;
  top: 80px;
  right: 20px;
  background: var(--emerald-600);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  transform: translateX(120%);
  transition: transform 0.3s ease;
}
.cart-feedback.show { transform: translateX(0); }

/* Free sample CTA link in nav/secondary buttons */
.btn-sample {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--emerald-600);
  border: 2px solid var(--emerald-100);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: inline-block;
}
.btn-sample:hover {
  border-color: var(--emerald-600);
  background: var(--emerald-50);
}
