*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f9fafb;
  color: #111827;
  min-height: 100vh;
}

nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 32px;
  display: flex;
  gap: 0;
}

nav a {
  display: inline-block;
  padding: 16px 20px;
  text-decoration: none;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

nav a:hover { color: #111827; }
nav a.active { color: #2563eb; border-bottom-color: #2563eb; }

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border-radius: 16px;
  margin-bottom: 48px;
}

.hero h1 { font-size: 40px; font-weight: 700; margin-bottom: 16px; color: #111827; }
.hero p { font-size: 18px; color: #4b5563; margin-bottom: 32px; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
}

.feature .icon { font-size: 36px; display: block; margin-bottom: 12px; }
.feature h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature p { font-size: 14px; color: #6b7280; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { background: #1d4ed8; }

.btn-large { padding: 14px 36px; font-size: 16px; }

.btn-outline {
  background: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.btn-outline:hover { background: #eff6ff; }

/* Category page */
main h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
main .subtitle { color: #6b7280; margin-bottom: 32px; font-size: 15px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }

.product-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.product-info { padding: 16px; }
.product-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.product-info .price { color: #2563eb; font-size: 15px; font-weight: 700; }

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-detail-img {
  border-radius: 16px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
}

.breadcrumb { font-size: 13px; color: #9ca3af; margin-bottom: 12px; }
.breadcrumb a { color: #6b7280; text-decoration: none; }
.breadcrumb a:hover { color: #2563eb; }

.product-detail-info h1 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.price-large { font-size: 28px; font-weight: 800; color: #2563eb; margin-bottom: 20px; }
.product-desc { font-size: 15px; color: #4b5563; line-height: 1.7; margin-bottom: 28px; }

.variants { margin-bottom: 28px; }
.variants label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 10px; }

.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn {
  width: 44px; height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
}

.size-btn.active { border-color: #2563eb; background: #eff6ff; color: #2563eb; font-weight: 700; }
.size-btn:hover { border-color: #93c5fd; }

.cta-row { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }

.product-meta { border-top: 1px solid #e5e7eb; padding-top: 20px; }
.product-meta p { font-size: 14px; color: #6b7280; margin-bottom: 8px; }

@media (max-width: 768px) {
  .features { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  nav { padding: 0 16px; }
  nav a { padding: 14px 12px; font-size: 13px; }
}
