/*
🎨 PrintOnion Design System - Shopify-Inspired Clean Foundation
Version: 1.0
Last updated: August 30, 2025

This file contains:
1. Design tokens (colors, spacing, typography)
2. Base styles and reset
3. Utility classes
4. Responsive breakpoints

Usage: This file should be loaded first, before components.css
*/

/* ===== DESIGN TOKENS ===== */
:root {
  /* Colors - Shopify-inspired clean palette */
  --color-text: #202223;
  --color-text-secondary: #6d7175;
  --color-text-disabled: #8c9196;
  --color-text-inverse: #ffffff;
  
  --color-background: #ffffff;
  --color-surface: #f6f6f7;
  --color-surface-hovered: #f1f2f3;
  --color-surface-pressed: #edeeef;
  --color-surface-selected: #f7f7f7;
  
  --color-border: #d1d5da;
  --color-border-strong: #8c9196;
  --color-border-subdued: #e5e5e5;
  
  --color-primary: #ff6b35;
  --color-primary-hovered: #e55a2b;
  --color-primary-pressed: #cc4d22;
  --color-primary-subdued: #fff4f1;
  
  --color-success: #2ecc71;
  --color-success-hovered: #27ae60;
  --color-success-subdued: #f0fff4;
  
  --color-warning: #f39c12;
  --color-warning-hovered: #e67e22;
  --color-warning-subdued: #fef9e7;
  
  --color-critical: #e74c3c;
  --color-critical-hovered: #c0392b;
  --color-critical-subdued: #fef1f1;
  
  /* Typography */
  --font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  --font-size-75: 0.75rem;    /* 12px */
  --font-size-100: 0.875rem;  /* 14px */
  --font-size-200: 1rem;      /* 16px */
  --font-size-300: 1.125rem;  /* 18px */
  --font-size-400: 1.25rem;   /* 20px */
  --font-size-500: 1.5rem;    /* 24px */
  --font-size-600: 1.75rem;   /* 28px */
  --font-size-700: 2rem;      /* 32px */
  --font-size-800: 2.5rem;    /* 40px */
  --font-size-900: 3rem;      /* 48px */
  
  --line-height-base: 1.4;
  --line-height-relaxed: 1.6;
  --line-height-tight: 1.2;
  
  /* Spacing - 4px base unit system */
  --space-025: 0.125rem; /* 2px */
  --space-050: 0.25rem;  /* 4px */
  --space-100: 0.5rem;   /* 8px */
  --space-150: 0.75rem;  /* 12px */
  --space-200: 1rem;     /* 16px */
  --space-300: 1.5rem;   /* 24px */
  --space-400: 2rem;     /* 32px */
  --space-500: 2.5rem;   /* 40px */
  --space-600: 3rem;     /* 48px */
  --space-800: 4rem;     /* 64px */
  --space-1000: 5rem;    /* 80px */
  
  /* Border radius */
  --border-radius-050: 0.125rem; /* 2px */
  --border-radius-100: 0.25rem;  /* 4px */
  --border-radius-200: 0.5rem;   /* 8px */
  --border-radius-300: 0.75rem;  /* 12px */
  --border-radius-400: 1rem;     /* 16px */
  --border-radius-500: 1.5rem;   /* 24px */
  --border-radius-full: 9999px;
  
  /* Shadows - subtle and modern */
  --shadow-100: 0 1px 0 rgba(22, 29, 37, 0.05);
  --shadow-200: 0 3px 2px -1px rgba(22, 29, 37, 0.06), 0 1px 0 rgba(22, 29, 37, 0.05);
  --shadow-300: 0 4px 6px -2px rgba(22, 29, 37, 0.10), 0 1px 0 rgba(22, 29, 37, 0.05);
  --shadow-400: 0 8px 16px -4px rgba(22, 29, 37, 0.08), 0 1px 0 rgba(22, 29, 37, 0.05);
  --shadow-500: 0 12px 20px -8px rgba(22, 29, 37, 0.12), 0 1px 0 rgba(22, 29, 37, 0.05);
  
  /* Layout - Fixed width optimized for e-commerce */
  --layout-max-width: 1200px;        /* Standard e-commerce width */
  --layout-max-width-narrow: 1140px; /* Slightly narrower variant */
  --layout-max-width-content: 1024px; /* For text-heavy content */
  --layout-padding: 2rem;            /* Fixed edge padding */
  --layout-padding-mobile: 1.5rem;   /* Mobile margins */
  
  /* Z-index scale */
  --z-index-base: 0;
  --z-index-overlay: 100;
  --z-index-dropdown: 200;
  --z-index-sticky: 300;
  --z-index-modal: 400;
  --z-index-toast: 500;

  /* Responsive Breakpoints - Unified Framework */
  --breakpoint-tablet: 768px;        /* Tablet and above */
  --breakpoint-desktop: 1024px;      /* Desktop and above */

  /* Animation */
  --duration-instant: 0s;
  --duration-fast: 0.15s;
  --duration-base: 0.2s;
  --duration-slow: 0.3s;
  --duration-slower: 0.5s;
  
  --ease-base: ease;
  --ease-in: ease-in;
  --ease-out: ease-out;
  --ease-in-out: ease-in-out;
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-200);
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: var(--line-height-base);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  margin-bottom: var(--space-200);
}

h1 {
  font-size: var(--font-size-900);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-400);
}

h2 {
  font-size: var(--font-size-800);
  margin-bottom: var(--space-300);
}

h3 {
  font-size: var(--font-size-700);
  margin-bottom: var(--space-300);
}

h4 {
  font-size: var(--font-size-600);
  margin-bottom: var(--space-200);
}

h5 {
  font-size: var(--font-size-500);
  margin-bottom: var(--space-200);
}

h6 {
  font-size: var(--font-size-400);
  margin-bottom: var(--space-200);
}

p {
  margin-bottom: var(--space-200);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
}

small {
  font-size: var(--font-size-100);
  color: var(--color-text-secondary);
}

strong, b {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}


a:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===== LAYOUT UTILITIES ===== */
.container {
  max-width: calc(var(--layout-max-width) + 2 * var(--space-200));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-200);
  padding-right: var(--space-200);
}

.container-narrow {
  max-width: calc(var(--layout-max-width-narrow) + 2 * var(--space-200));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-200);
  padding-right: var(--space-200);
}

.container-content {
  max-width: calc(var(--layout-max-width-content) + 2 * var(--space-200));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-200);
  padding-right: var(--space-200);
}

.container-full {
  width: 100%;
  padding-left: var(--layout-padding);
  padding-right: var(--layout-padding);
}

.section {
  padding-top: var(--space-800);
  padding-bottom: var(--space-800);
}

.section-sm {
  padding-top: var(--space-600);
  padding-bottom: var(--space-600);
}

.section-lg {
  padding-top: var(--space-1000);
  padding-bottom: var(--space-1000);
}

/* ===== FLEXBOX UTILITIES ===== */
.flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.flex-1 {
  flex: 1;
}

/* ===== FLEX ALIGNMENT UTILITIES ===== */
.flex-end {
  display: flex;
  align-items: flex-end;
}

/* ===== GRID UTILITIES ===== */
.layout-grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gap-050 { gap: var(--space-050); }
.gap-100 { gap: var(--space-100); }
.gap-200 { gap: var(--space-200); }
.gap-300 { gap: var(--space-300); }
.gap-400 { gap: var(--space-400); }

/* ===== SPACING UTILITIES ===== */
.m-0 { margin: 0; }
.m-100 { margin: var(--space-100); }
.m-200 { margin: var(--space-200); }
.m-300 { margin: var(--space-300); }
.m-400 { margin: var(--space-400); }

.mt-0 { margin-top: 0; }
.mt-100 { margin-top: var(--space-100); }
.mt-200 { margin-top: var(--space-200); }
.mt-300 { margin-top: var(--space-300); }
.mt-400 { margin-top: var(--space-400); }

.mb-0 { margin-bottom: 0; }
.mb-100 { margin-bottom: var(--space-100); }
.mb-200 { margin-bottom: var(--space-200); }
.mb-300 { margin-bottom: var(--space-300); }
.mb-400 { margin-bottom: var(--space-400); }

.p-0 { padding: 0; }
.p-100 { padding: var(--space-100); }
.p-200 { padding: var(--space-200); }
.p-300 { padding: var(--space-300); }
.p-400 { padding: var(--space-400); }

/* ===== TEXT UTILITIES ===== */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-disabled { color: var(--color-text-disabled); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-critical { color: var(--color-critical); }

.text-sm { font-size: var(--font-size-100); }
.text-base { font-size: var(--font-size-200); }
.text-lg { font-size: var(--font-size-300); }
.text-xl { font-size: var(--font-size-400); }
.text-2xl { font-size: var(--font-size-500); }

.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* ===== BACKGROUND UTILITIES ===== */
.bg-surface { background-color: var(--color-surface); }
.bg-surface-hovered { background-color: var(--color-surface-hovered); }
.bg-primary { background-color: var(--color-primary); }
.bg-success { background-color: var(--color-success); }
.bg-warning { background-color: var(--color-warning); }
.bg-critical { background-color: var(--color-critical); }

/* ===== BORDER UTILITIES ===== */
.border { border: 1px solid var(--color-border); }
.border-strong { border: 1px solid var(--color-border-strong); }
.border-subdued { border: 1px solid var(--color-border-subdued); }

.border-t { border-top: 1px solid var(--color-border); }
.border-b { border-bottom: 1px solid var(--color-border); }
.border-l { border-left: 1px solid var(--color-border); }
.border-r { border-right: 1px solid var(--color-border); }

.rounded-none { border-radius: 0; }
.rounded-sm { border-radius: var(--border-radius-100); }
.rounded { border-radius: var(--border-radius-200); }
.rounded-md { border-radius: var(--border-radius-300); }
.rounded-lg { border-radius: var(--border-radius-400); }
.rounded-full { border-radius: var(--border-radius-full); }

/* ===== SHADOW UTILITIES ===== */
.shadow-100 { box-shadow: var(--shadow-100); }
.shadow-200 { box-shadow: var(--shadow-200); }
.shadow-300 { box-shadow: var(--shadow-300); }
.shadow-400 { box-shadow: var(--shadow-400); }
.shadow-500 { box-shadow: var(--shadow-500); }

/* ===== RESPONSIVE BREAKPOINTS ===== */
/*
Unified 3-Breakpoint Framework:
- Phone: < 768px (default, mobile-first)
- Tablet: 768px - 1023px
- Desktop: 1024px+

Usage:
- .class-phone (default)
- .class-tablet (applies at 768px+)
- .class-desktop (applies at 1024px+)
*/

/* Phone (default, mobile-first) */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.text-center { text-align: center; }

h1 { font-size: var(--font-size-700); }
h2 { font-size: var(--font-size-600); }
h3 { font-size: var(--font-size-500); }

/* Tablet and above (768px+) */
@media (min-width: 768px) {
  .grid-cols-2-tablet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cols-3-tablet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .text-left-tablet { text-align: left; }
}

/* Desktop and above (1024px+) */
@media (min-width: 1024px) {
  .grid-cols-3-desktop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-cols-4-desktop { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles */
*:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}/* Updated Sun Sep 14 16:26:00 CEST 2025 - Layout width changed to 82vw */
/* Force cache update: 1726326360 */
