:root {
  --bg: #111111;
  --card: #1b1b1b;
  --gold: #d4af37;
  --text: #f5f5f5;
  --muted: #b8b8b8;
  --accent: #8b1e1e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  position: sticky;
  top: 0;
  background: #141414;
  border-bottom: 1px solid #2a2a2a;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

h1 { margin: 0; color: var(--gold); font-size: 22px; }
.subtitle { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.cart-btn,
.checkout-btn,
.close-btn,
.tab,
.add-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
}

.cart-btn,
.checkout-btn,
.add-btn { background: var(--gold); color: #111; }
.close-btn { background: #333; color: #fff; margin-top: 8px; width: 100%; }

.institutional {
  padding: 16px;
  border-bottom: 1px solid #232323;
}
.institutional h2 { margin: 0 0 6px; font-size: 18px; }
.institutional p { margin: 0; color: var(--muted); }

.tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
}
.tab { background: #2a2a2a; color: #ddd; }
.tab.active { background: var(--accent); color: #fff; }

.products {
  padding: 0 16px 22px;
  display: grid;
  gap: 10px;
}

.product {
  background: var(--card);
  border: 1px solid #2c2c2c;
  border-radius: 12px;
  padding: 12px;
}

.product h3 { margin: 0 0 4px; font-size: 16px; }
.product p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: min(380px, 100%);
  background: #161616;
  border-left: 1px solid #2a2a2a;
  padding: 16px;
  overflow-y: auto;
}

.hidden { display: none; }

.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #eaeaea;
}

.cart-row small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.row-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty {
  display: flex;
  gap: 4px;
}

.qty button {
  border: none;
  background: #2f2f2f;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  cursor: pointer;
}

.cart-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  font-size: 18px;
}
