/* ==========================================================================
   SIMPLE SHOP - CSS VARIABLES
   Dùng biến CSS để Customizer ghi đè trực tiếp màu/radius/font.
   ========================================================================== */
:root{
  --ss-primary: #16a34a;
  --ss-primary-dark: #15803d;
  --ss-primary-light: #dcfce7;
  --ss-secondary: #0f172a;
  --ss-bg: #f8fafc;
  --ss-surface: #ffffff;
  --ss-text: #0f172a;
  --ss-text-muted: #64748b;
  --ss-border: #e2e8f0;
  --ss-danger: #ef4444;
  --ss-warning: #f59e0b;
  --ss-success: #16a34a;

  --ss-radius-sm: 8px;
  --ss-radius: 14px;
  --ss-radius-lg: 24px;

  --ss-shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --ss-shadow: 0 4px 16px rgba(15,23,42,.08);
  --ss-shadow-lg: 0 12px 32px rgba(15,23,42,.12);

  --ss-container: 1200px;
  --ss-font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ss-font-heading: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ss-space-1: 4px;
  --ss-space-2: 8px;
  --ss-space-3: 12px;
  --ss-space-4: 16px;
  --ss-space-5: 24px;
  --ss-space-6: 32px;
  --ss-space-8: 48px;

  --ss-transition: 180ms cubic-bezier(.4,0,.2,1);

  /* Safe area (iPhone notch/Dynamic Island, Android punch-hole) */
  --ss-safe-top: env(safe-area-inset-top, 0px);
  --ss-safe-bottom: env(safe-area-inset-bottom, 0px);
  --ss-safe-left: env(safe-area-inset-left, 0px);
  --ss-safe-right: env(safe-area-inset-right, 0px);

  /* Chiều cao thanh điều hướng dưới + vùng chừa cho nội dung không bị che */
  --ss-bottomnav-h: 60px;
  --ss-touch-min: 48px;
}

/* ===== Dark mode tự động theo hệ thống ===== */
@media (prefers-color-scheme: dark) {
  :root{
    --ss-bg: #0b1220;
    --ss-surface: #131c2e;
    --ss-text: #e2e8f0;
    --ss-text-muted: #94a3b8;
    --ss-border: #243049;
    --ss-primary-light: #14321f;
    --ss-shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --ss-shadow: 0 4px 16px rgba(0,0,0,.5);
    --ss-shadow-lg: 0 12px 32px rgba(0,0,0,.6);
  }
}
