/* ===========================
   Site Engine – Shared Styles
   =========================== */

:root {
  --bg: #ffffff;
  --text: #111;
  --muted: #555;
  --border: #e6e6e6;
  --card: #fafafa;
  --brand: #0b5fff;
  --brand2: #0847be;
  --chip: #f1f5ff;
}

/* ---------- Reset / Base ---------- */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
}

a { color: var(--brand); }
a:hover { color: var(--brand2); }

/* ---------- Layout ---------- */
.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

.grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  margin-top: 18px;
}
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
}

/* ---------- Header ---------- */
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: .2px;
}
.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}
nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 14px;
  font-weight: 600;
  font-size: 14px;
}
nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  padding: 16px;
}

/* ---------- Typography ---------- */
h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.15; }
h2 { margin: 18px 0 10px; font-size: 18px; }
.meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 10px;
}
.meta strong { color: var(--text); }
.price {
  font-size: 18px;
  margin: 10px 0 14px;
}

/* ---------- CTA Buttons ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0 8px;
}
.cta {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 800;
}
.cta:hover { background: var(--brand2); color: #fff; }
.secondary {
  display: inline-block;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 700;
}

/* ---------- Disclosure ---------- */
.disclosure {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* ---------- Hero Image ---------- */
.hero-img {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.hero-img img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Best-For Chips ---------- */
.chips ul {
  margin: 8px 0 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  list-style: none;
  background: var(--chip);
  border: 1px solid #dbe6ff;
  color: #143a8a;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Specs Table ---------- */
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
th, td {
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
th {
  width: 42%;
  background: #fcfcfc;
}
tr:last-child th,
tr:last-child td {
  border-bottom: none;
}

/* ---------- Category Product List ---------- */
.product-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.product-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.product-list li:last-child {
  border-bottom: none;
}
.product-list a {
  font-weight: 700;
  text-decoration: none;
}
.product-list a:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */
footer {
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  color: var(--muted);
  font-size: 12px;
}
footer a {
  color: var(--muted);
  text-decoration: underline;
}

/* ---------- Product Cards (Category Pages) ---------- */
.product-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  padding: 16px;
  margin-bottom: 14px;
}
.product-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.product-card .card-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 8px;
}
.product-card .card-meta strong {
  color: var(--text);
}
.product-card .card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 12px;
}
.product-card .card-specs span {
  white-space: nowrap;
}
.product-card .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.product-card .card-actions .cta {
  font-size: 14px;
  padding: 9px 12px;
}
.product-card .card-actions .secondary {
  font-size: 14px;
  padding: 9px 12px;
}
