/* Critical CSS for above-the-fold content */

/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header styles */
.MuiAppBar-root {
  background-color: #1976d2 !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Loading spinner */
.MuiCircularProgress-root {
  color: #1976d2 !important;
}

/* Product card skeleton */
.MuiSkeleton-root {
  background-color: #f5f5f5 !important;
}

/* Critical layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Above-the-fold content */
.hero-section {
  min-height: 400px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Product grid - critical for homepage */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 16px;
}

/* Image optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Lazy loading placeholder */
.lazy-placeholder {
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

/* Performance optimizations */
.will-change-transform {
  will-change: transform;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}
