:root {
  --accent: #ff6b35;
  --accent-dark: #e85a26;
  --bg: #ffffff;
  --bg-soft: #f7f7f9;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.brand { font-weight: 800; font-size: 22px; color: var(--text); letter-spacing: -0.02em; }
.brand .accent { color: var(--accent); }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--text); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--accent); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #fff7f3 0%, #ffe7d6 100%);
  padding: 64px 0 72px;
}
.hero h1 {
  font-size: 42px; line-height: 1.1; margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero p { font-size: 18px; color: var(--text-muted); max-width: 640px; margin: 0 0 24px; }
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 12px 22px; border-radius: var(--radius-sm); font-weight: 600;
  border: none; cursor: pointer; transition: background 0.15s;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* Sections */
section { padding: 56px 0; }
.section-title { font-size: 28px; margin: 0 0 28px; letter-spacing: -0.01em; }
.section-subtitle { color: var(--text-muted); margin: -18px 0 28px; font-size: 16px; }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Cards */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg-soft); }
.card h3 { font-size: 16px; margin: 14px 0 6px; line-height: 1.3; }
.card .price { font-weight: 700; font-size: 18px; color: var(--text); margin: 0 0 12px; }
.card .vendor { color: var(--text-muted); font-size: 13px; margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.card .card-link { margin-top: auto; font-size: 14px; font-weight: 600; }

/* Category card */
.cat-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s;
}
.cat-card:hover { background: #fff; border-color: var(--accent); text-decoration: none; }
.cat-card .icon { font-size: 36px; margin-bottom: 10px; display: block; }
.cat-card h3 { font-size: 17px; margin: 6px 0 4px; color: var(--text); }
.cat-card p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* Breadcrumbs */
.breadcrumbs {
  font-size: 14px; color: var(--text-muted);
  padding: 18px 0 0; margin: 0;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 8px; color: var(--border); }

/* Product page */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  margin-top: 24px;
}
.product-gallery img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); background: var(--bg-soft);
  border: 1px solid var(--border);
}
.product-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.product-thumbs img { width: 80px; height: 80px; aspect-ratio: 1; cursor: pointer; }

.product-info h1 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.01em; }
.product-info .vendor { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-size: 13px; margin-bottom: 8px; }
.product-info .price-block {
  background: var(--bg-soft); padding: 18px; border-radius: var(--radius);
  margin: 22px 0;
}
.product-info .price { font-size: 32px; font-weight: 800; color: var(--text); }
.product-info .availability { color: #15803d; font-weight: 600; font-size: 14px; margin-top: 6px; }

.attr-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.attr-table th, .attr-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.attr-table th { background: var(--bg-soft); font-weight: 600; width: 40%; color: var(--text-muted); }

.product-description { font-size: 16px; line-height: 1.7; color: var(--text); margin-top: 16px; }
.product-description p { margin: 0 0 14px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 48px;
  font-size: 14px;
  color: var(--text-muted);
  background: var(--bg-soft);
}
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }

/* Responsive */
@media (max-width: 760px) {
  .hero { padding: 40px 0 48px; }
  .hero h1 { font-size: 30px; }
  .product-layout { grid-template-columns: 1fr; gap: 24px; }
  .nav { gap: 12px; font-size: 14px; }
  .site-header .container { flex-wrap: wrap; gap: 10px; }
}
