:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1a1d23;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #1e40af;
  --accent-soft: #dbeafe;
  --price: #b91c1c;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.site-header {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.brand span { color: var(--accent); }

.main-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  transition: color .15s;
}
.main-nav a:hover { color: var(--accent); }

.site-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px;
}

.site-footer {
  max-width: 1280px;
  margin: 48px auto 32px;
  padding: 0 32px;
  color: var(--muted);
  font-size: 14px;
}

/* Hero */
.hero {
  padding: 48px 0 32px;
}
.hero h1 {
  font-size: 40px;
  margin: 0 0 8px;
}
.hero p {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

/* Category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 0 0 48px;
}
.category-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,.06), 0 12px 28px rgba(0,0,0,.08);
}
.category-card__img {
  aspect-ratio: 1;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.category-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-card__body {
  padding: 16px;
}
.category-card__body h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.category-card__body p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.category-card__body .count {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

/* Featured / product grid */
.featured h2 {
  font-size: 24px;
  margin: 0 0 20px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,.06), 0 12px 28px rgba(0,0,0,.08);
}
.product-card__img {
  aspect-ratio: 1;
  background: #f1f5f9;
  overflow: hidden;
}
.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-card__body h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}
.product-card__body .muted {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.chip {
  display: inline-block;
  padding: 2px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.brand {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
}
.price {
  font-size: 17px;
  font-weight: 700;
  color: var(--price);
}
.rrp {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }

/* Category header */
.category-header {
  margin-bottom: 28px;
}
.category-header h1 {
  margin: 0 0 4px;
}
.category-header p {
  margin: 0;
  color: var(--muted);
}

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 48px;
}
@media (max-width: 800px) {
  .product-detail { grid-template-columns: 1fr; }
}
.product-detail__img {
  aspect-ratio: 1;
  background: #f1f5f9;
  border-radius: var(--radius);
  overflow: hidden;
}
.product-detail__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail__body h1 {
  margin: 12px 0 8px;
  font-size: 28px;
}
.brand-line {
  color: var(--muted);
  margin: 0 0 16px;
}
.description {
  font-size: 16px;
  color: var(--text);
  margin: 0 0 24px;
}
.price-block {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}
.price-big {
  font-size: 32px;
  font-weight: 800;
  color: var(--price);
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  transition: background .15s;
}
.btn-primary:hover { background: #1e3a8a; }

.meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin: 28px 0 0;
  font-size: 13px;
}
.meta dt {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 11px;
  align-self: center;
}
.meta dd {
  margin: 0;
  word-break: break-all;
}
.meta dd a { color: var(--accent); }
