:root {
  --ink: #1c1b19;
  --paper: #faf7f2;
  --muted: #6b6560;
  --accent: #b3261e;
  --line: #e4ddd2;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}

header.site a.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
}

header.site a.brand img { display: block; width: 34px; height: 34px; }

header.site nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  header.site { flex-wrap: wrap; row-gap: 10px; padding: 14px 16px; }
  header.site a.brand { font-size: 1.05rem; }
  header.site nav { display: flex; gap: 16px; }
  header.site nav a { margin-left: 0; }
}

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

.hero { text-align: center; padding: 40px 16px 24px; }
.hero h1 { font-size: 2rem; margin-bottom: 8px; }
.hero p { color: var(--muted); }

.sku-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.sku-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sku-card .thumb {
  height: 120px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #efe7da, #f7f2ea);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.sku-card h3 { margin: 0; font-size: 1.05rem; }
.sku-card p.tagline { color: var(--muted); font-size: 0.9rem; margin: 0; }
.sku-card .price { font-weight: 700; margin-top: auto; }
.sku-card .hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  width: fit-content;
}

a.btn, button.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
a.btn.secondary, button.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
button.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 800px) { .product-layout { grid-template-columns: 1fr; } }

.preview-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 320px;
}

.preview-box canvas { max-width: 100%; height: auto; }

fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; padding: 14px; }
legend { padding: 0 6px; font-weight: 600; font-size: 0.85rem; }
label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 10px;
  font-family: inherit;
}

.swatches { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
}
.swatch.selected { border-color: var(--accent); }

.error-msg { color: var(--accent); font-size: 0.85rem; min-height: 1.2em; margin-bottom: 8px; }
.note { color: var(--muted); font-size: 0.8rem; }

table.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
table.cart-table td, table.cart-table th { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.9rem; }

.totals-row { display: flex; justify-content: space-between; font-weight: 700; padding: 10px 6px; }

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 20px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
footer.site a { color: var(--muted); margin: 0 8px; }

.confirm-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 28px;
  text-align: center;
}
.confirm-box .order-id { font-family: monospace; background: var(--paper); padding: 4px 8px; border-radius: 6px; }

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  text-decoration: none;
}
.whatsapp-float:hover { background: #1ebe5b; }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
