:root {
  --bg: #FFFFFF;
  --text: #000000;
  --muted: #666666;
  --line: #000000;
  --max: 72rem;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100%;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.nav {
  border-bottom: 2px solid var(--line);
  padding: calc(1rem + var(--safe-t)) 0 1rem;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.nav__links { display: flex; gap: 1.5rem; list-style: none; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.nav__links a { min-height: 44px; display: inline-flex; align-items: center; }

.hero {
  padding: 4rem 0 3rem;
  border-bottom: 2px solid var(--line);
}
.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 0.95; margin-bottom: 1rem;
}
.hero__lead { font-size: 1rem; color: var(--muted); max-width: 28rem; }

.categories {
  display: flex; gap: 0; border-bottom: 2px solid var(--line);
}
.cat-btn {
  flex: 1; min-height: 44px; padding: 1rem;
  background: transparent; border: none; border-right: 2px solid var(--line);
  font-family: inherit; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  cursor: pointer;
}
.cat-btn:last-child { border-right: none; }
.cat-btn.is-active { background: var(--text); color: var(--bg); }

.products { padding: 2rem 0; }
.product-grid {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .product-grid { grid-template-columns: 1fr 1fr 1fr; } }

.product-card {
  border: 2px solid var(--line);
  border-width: 0 2px 2px 0;
  display: flex; flex-direction: column;
}
.product-card__img {
  aspect-ratio: 1; background: #f5f5f5;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 2px solid var(--line); overflow: hidden;
}
.product-card__img img { width: 70%; height: auto; }
.product-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-card__cat {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem;
}
.product-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
.product-card__price { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.75rem; }
.badge-dpp {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.35rem 0.6rem; border: 2px solid var(--line);
  margin-top: auto;
}
.product-card__btn {
  margin-top: 1rem; min-height: 44px; width: 100%;
  background: var(--text); color: var(--bg); border: 2px solid var(--line);
  font-family: inherit; font-weight: 700; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer;
}
.product-card__btn:hover { background: var(--bg); color: var(--text); }

.checkout {
  border-top: 2px solid var(--line);
  padding: 3rem 0;
  background: #fafafa;
}
.checkout h2 {
  font-size: 1.25rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 1.5rem;
}
.checkout-steps { display: grid; gap: 0; grid-template-columns: 1fr; }
@media (min-width: 640px) { .checkout-steps { grid-template-columns: 1fr 1fr; } }
.checkout-step {
  padding: 1.5rem; border: 2px solid var(--line);
  border-width: 2px 2px 2px 0;
}
.checkout-step:first-child { border-left-width: 2px; }
.checkout-step h3 {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 0.75rem;
}
.checkout-step p { font-size: 0.88rem; color: var(--muted); }
.checkout-mock {
  margin-top: 1.5rem; padding: 1.25rem;
  border: 2px dashed var(--line); font-size: 0.85rem; color: var(--muted);
}

.loading { padding: 3rem; text-align: center; color: var(--muted); }

.site-footer {
  border-top: 2px solid var(--line);
  padding: 2rem 0 calc(2rem + var(--safe-b)); text-align: center;
}
.eco-footer__links { font-size: 0.8rem; font-weight: 600; margin-bottom: 0.75rem; }
.eco-footer__links a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__copy { font-size: 0.75rem; color: var(--muted); }
