*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #1c1917;
  --muted: #78716c;
  --brand: #0d9488;
  --bg: #fafaf9;
  --card: #ffffff;
  --border: #e7e5e4;
}
body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
}
.logo { font-size: 1.4rem; font-weight: 800; text-decoration: none; color: var(--ink); }
.logo span { color: var(--brand); }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
main { max-width: 1100px; margin: 0 auto; padding: 2rem; }
.hero { text-align: center; padding: 2rem 0 3rem; }
.hero h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.hero p { color: var(--muted); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: 0 8px 24px rgba(28, 25, 23, 0.12); transform: translateY(-2px); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.card-body { padding: 0.9rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.category { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand); font-weight: 700; }
.card-body h2 { font-size: 1rem; line-height: 1.3; }
.rating { color: #f59e0b; font-size: 0.9rem; }
.rating span { color: var(--muted); }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 0.5rem; }
.price { font-size: 1.15rem; font-weight: 800; }
.price small { font-size: 0.7rem; color: var(--muted); font-weight: 600; }
.badge { font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 999px; }
.crumbs { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.5rem; }
.crumbs a { color: var(--brand); text-decoration: none; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.product img { width: 100%; border-radius: 12px; border: 1px solid var(--border); }
.product-info { display: flex; flex-direction: column; gap: 0.75rem; }
.product-info h1 { font-size: 1.7rem; line-height: 1.25; }
.desc { color: var(--muted); }
.buy-row { display: flex; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.buy-row .price { font-size: 1.8rem; }
.add-cart {
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
}
.add-cart:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1.5rem; margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 1rem; font-size: 0.9rem; }
.specs dt { color: var(--muted); font-weight: 600; }
.site-footer { text-align: center; color: var(--muted); font-size: 0.8rem; padding: 2rem; border-top: 1px solid var(--border); margin-top: 3rem; }
.footer-links { margin-bottom: 0.5rem; font-size: 0.85rem; }
.footer-links a { color: var(--brand); text-decoration: none; font-weight: 600; }
.policy { max-width: 720px; margin: 0 auto; }
.policy h1 { font-size: 1.8rem; margin-bottom: 1rem; }
.policy h2 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.policy p { margin-bottom: 0.75rem; color: #44403c; }
.policy a { color: var(--brand); }
@media (max-width: 720px) {
  .product { grid-template-columns: 1fr; }
  main { padding: 1rem; }
}
