/* ─── Corporate Theme ──────────────────────────────────────── */
/* Clean, professional blue-toned design */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #f9fafb;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 1rem 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.5rem; font-weight: 700; color: #2563eb; }
.main-nav a { margin-left: 1.5rem; font-weight: 500; color: #4b5563; transition: color 0.2s; }
.main-nav a:hover { color: #2563eb; }

/* Hero */
.hero { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; padding: 4rem 0; text-align: center; }
.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.hero p { font-size: 1.125rem; opacity: 0.9; }

/* Sections */
.categories-section, .products-section, .category-page, .product-detail, .cms-page { padding: 3rem 0; }
section h2 { font-size: 1.5rem; margin-bottom: 1.5rem; color: #111827; }

/* Category Grid */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.category-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 0.5rem; padding: 1rem; text-align: center; transition: box-shadow 0.2s; }
.category-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.category-card img { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 0.75rem; }
.category-card h3 { font-size: 0.875rem; font-weight: 600; }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.product-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 0.5rem; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }
.product-card__image { aspect-ratio: 1; overflow: hidden; background: #f3f4f6; }
.product-card__image img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.product-card__info { padding: 1rem; }
.product-card__name { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.25rem; line-height: 1.4; }
.product-card__brand { display: block; font-size: 0.75rem; color: #6b7280; margin-bottom: 0.5rem; }
.product-card__price { font-size: 1rem; font-weight: 700; color: #2563eb; }
.product-card__original-price { font-size: 0.8rem; color: #9ca3af; text-decoration: line-through; margin-left: 0.5rem; }

/* Product Detail */
.product-detail__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
@media (max-width: 768px) { .product-detail__layout { grid-template-columns: 1fr; gap: 2rem; } }
.product-detail__main-image { width: 100%; border-radius: 0.5rem; border: 1px solid #e5e7eb; background: #fff; padding: 1rem; }
.product-detail__thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.product-detail__thumb { width: 60px; height: 60px; object-fit: contain; border: 1px solid #e5e7eb; border-radius: 0.25rem; cursor: pointer; padding: 0.25rem; }
.product-detail__brand { display: block; font-size: 0.875rem; color: #6b7280; margin-bottom: 0.5rem; }
.product-detail__name { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.product-detail__sku { font-size: 0.8rem; color: #9ca3af; }
.product-detail__pricing { margin: 1rem 0; }
.product-detail__price { font-size: 1.5rem; font-weight: 700; color: #2563eb; }
.product-detail__original-price { font-size: 1rem; color: #9ca3af; text-decoration: line-through; margin-left: 0.75rem; }
.product-detail__stock { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 1rem; font-size: 0.8rem; font-weight: 600; }
.product-detail__stock.in-stock { background: #d1fae5; color: #065f46; }
.product-detail__stock.out-of-stock { background: #fee2e2; color: #991b1b; }
.product-detail__short-desc { margin-top: 1.5rem; color: #4b5563; line-height: 1.7; }
.product-detail__description { border-top: 1px solid #e5e7eb; padding-top: 2rem; }
.product-detail__description h2 { margin-bottom: 1rem; }
.rich-text { line-height: 1.8; color: #374151; }

/* Utilities */
.alert { padding: 1rem; border-radius: 0.5rem; margin-bottom: 1.5rem; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.empty-state { text-align: center; padding: 3rem; color: #6b7280; }
.not-found { text-align: center; padding: 5rem 0; }
.not-found h1 { font-size: 2rem; margin-bottom: 1rem; }
.not-found p { color: #6b7280; margin-bottom: 1.5rem; }
.btn { display: inline-block; padding: 0.75rem 1.5rem; background: #2563eb; color: #fff; border-radius: 0.5rem; font-weight: 600; transition: background 0.2s; }
.btn:hover { background: #1d4ed8; }

/* Footer */
.site-footer { background: #1f2937; color: #9ca3af; padding: 2rem 0; text-align: center; margin-top: 3rem; }
