/* Gift of Bricks web app. Look follows the V1 proposal dashboard preview. */
/* Poppins (SIL Open Font License 1.1), latin subset, served locally so the browser makes no third-party requests. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-700.woff2") format("woff2"); }

:root {
  --bg: #F3F7FB;
  --surface: #FFFFFF;
  --sunk: #EAF2F9;
  --navy: #003A5C;
  --fg: #212529;
  --muted: #5B6B7A;
  --border: #D9E3EC;
  --blue: #0967A6;
  --blue-hover: #075A93;
  --yellow: #FFD631;
  --radius: 15px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--navy); font-weight: 700; line-height: 1.2; }
a { color: var(--blue); }
.muted { color: var(--muted); }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue);
}

.app { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }

/* Navigation */
.nav {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex; flex-direction: column; gap: 26px;
  position: sticky; top: 0; height: 100vh;
}
.nav .logo { height: 46px; width: auto; display: block; align-self: flex-start; padding-left: 8px; }
.nav ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.nav a, .nav .disabled {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--navy); text-decoration: none; font-weight: 500;
}
.nav svg { width: 18px; height: 18px; flex: none; }
.nav a:hover { background: var(--sunk); }
.nav a.active { background: var(--blue); color: #fff; font-weight: 600; }
.nav .disabled { color: var(--muted); opacity: 0.55; cursor: not-allowed; }
.nav .soon { margin-left: auto; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.nav-foot {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  padding: 14px 12px 0; border-top: 1px solid var(--border); min-width: 0;
}
.nav-foot .who { min-width: 0; }
.nav-foot .who div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--yellow); color: var(--navy);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none;
}

/* Main area */
.main { padding: 26px 40px 32px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.crumb { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--blue); }
.topbar h1 { font-size: 30px; text-transform: uppercase; letter-spacing: 0.01em; }
.topbar .sub { margin-top: 4px; color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.card h2 { font-size: 17px; margin-bottom: 12px; }

/* Empty state */
.empty { padding: 56px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--sunk); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 6px;
}
.empty .icon svg { width: 24px; height: 24px; }
.empty h2 { margin: 0; }
.empty p { color: var(--muted); max-width: 30rem; }

/* Model cards */
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.model {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.model:hover { border-color: var(--blue); }
.render {
  position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  background: var(--sunk); display: grid; place-items: center;
}
.render img { width: 100%; height: 100%; object-fit: contain; display: block; }
.render .none { color: var(--muted); font-size: 13px; }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: var(--yellow); color: var(--navy); font-size: 12px; font-weight: 700;
  padding: 4px 11px; border-radius: 999px;
}
.model-head { margin: 12px 4px 8px; }
.model-head h3 { font-size: 16px; }
.model .specs { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 28px; margin-bottom: 12px; }
.model .price { margin-top: auto; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 0 4px; }
.specs dt { color: var(--muted); font-size: 12px; }
.specs dd { font-weight: 600; color: var(--navy); }
.price {
  margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--sunk);
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.price span { color: var(--muted); font-size: 13px; }
.price em { font-style: normal; font-weight: 600; color: var(--navy); font-size: 13px; text-align: right; white-space: nowrap; }
.price-cost { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.price-cost small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.price-next { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--navy); }
.price-cost .download { align-self: flex-start; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--blue); }
.unit-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.unit-price small { display: block; color: var(--muted); font-size: 11px; }

/* Model detail */
.content { display: grid; grid-template-columns: 380px 1fr; gap: 22px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.detail-render { aspect-ratio: 4 / 3; margin: 10px 0 4px; }
.kv { display: grid; grid-template-columns: 1fr auto; row-gap: 9px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 600; text-align: right; color: var(--navy); }
.colours { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.colours li { display: flex; align-items: center; gap: 10px; }
.colours .count { margin-left: auto; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.swatch {
  width: 16px; height: 16px; border-radius: 4px; flex: none;
  border: 1px solid rgba(0, 0, 0, 0.18); background: var(--sunk);
}
.table-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 16px; }
.table-head p { color: var(--muted); font-size: 13px; }
.pill {
  font-size: 13px; font-weight: 600; padding: 5px 13px; border-radius: 999px;
  background: var(--yellow); color: var(--navy); white-space: nowrap;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
td { color: var(--fg); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.qty { font-weight: 600; color: var(--navy); }
td.part { font-weight: 600; color: var(--navy); white-space: nowrap; }
td.part.long { white-space: normal; word-break: break-all; }
td .colour { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
tbody tr:hover td { background: var(--sunk); }
tr:last-child td { border-bottom: none; }

@media (max-width: 1100px) {
  .content { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .nav { position: static; height: auto; }
  .main { padding: 20px 16px; }
}
