/* ============================================================
   BRICKENCY — chrome (header, category bar, footer) styles
   ============================================================ */

/* ---------- HEADER ---------- */
.cx-header { position: relative; background: #fff; }

.cx-lang {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  cursor: pointer; color: var(--ink-3);
  background: transparent; border: 0; padding: 4px 2px;
}
.cx-lang .is { color: var(--ink); font-weight: 600; }
.cx-lang .no { opacity: .45; }
.cx-sep { opacity: .25; }

.cx-bar {
  max-width: 1440px; margin: 0 auto; padding: 16px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 32px;
}
.cx-bar .brk-mark { padding: 0; }
.cx-bar .brk-mark img { height: 46px; width: auto; }

.cx-nav {
  display: flex; gap: 28px; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
}
.cx-nav-link {
  color: var(--ink-2); padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.cx-nav-link:hover { color: var(--ink); }
.cx-nav-link.is-active { color: var(--ink); border-bottom-color: var(--orange); }

.cx-search {
  display: flex; align-items: center; gap: 10px;
  width: 320px; height: 36px;
  padding: 0 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink-3);
}
.cx-search input {
  border: 0; background: transparent; outline: none; flex: 1;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink);
}
.cx-search input::placeholder { color: var(--ink-faint); }
.cx-search kbd {
  font-family: var(--font-mono); font-size: 10px;
  background: #fff; border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  padding: 2px 5px;
  color: var(--ink-3);
}

.cx-actions { display: flex; align-items: center; gap: 6px; }
.cx-stock {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--ink-3); white-space: nowrap;
  padding-right: 4px;
}
.cx-stock b { color: var(--ink); font-weight: 600; }
.cx-stock-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 22%, transparent);
}
.cx-act-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.cx-act {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  transition: background .15s;
}
.cx-act:hover { background: var(--bg-soft); color: var(--ink); }
.cx-cart {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px 0 12px;
  margin-left: 6px;
  background: var(--surface-dark); color: #fff;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
}
.cx-cart:hover { background: var(--surface-darkest); }
.cx-badge {
  background: var(--orange); color: #fff;
  font-size: 10px; letter-spacing: 0;
  padding: 2px 6px; border-radius: var(--r-xs);
  min-width: 18px; text-align: center;
}

/* Category strip */
.cx-cats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.cx-cats-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: repeat(15, 1fr);
  gap: 0;
}
.cx-cat {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 3px 12px;
  border-right: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-2);
  transition: background .15s, color .15s;
  position: relative;
}
.cx-cat-lbl { text-align: center; line-height: 1.25; }
.cx-cat:first-child { border-left: 1px solid var(--line); }
.cx-cat-icon { display: inline-flex; align-items: center; justify-content: center; height: 36px; }
.cx-cat:hover { background: var(--bg); color: var(--ink); }
.cx-cat.is-active { background: var(--surface-dark); color: #fff; }
.cx-cat.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--orange);
}

/* ---------- FOOTER ---------- */
.cx-footer {
  background: var(--surface-dark);
  color: var(--ink-onDark);
  font-size: 13px;
}
.cx-foot-top {
  max-width: 1440px; margin: 0 auto; padding: 56px 32px 40px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
}
.cx-foot-logo {
  display: inline-flex; align-items: center;
  background: #fff;
  border-radius: var(--r-md);
  padding: 14px 20px;
  box-shadow: 0 1px 0 rgba(255,255,255,.04);
}
.cx-foot-logo img { height: 50px; width: auto; display: block; }
.cx-foot-blurb {
  margin-top: 18px; max-width: 36ch;
  color: var(--ink-onDark-2);
  line-height: 1.6;
}
.cx-foot-meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.cx-foot-meta div { display: flex; flex-direction: column; gap: 4px; }
.cx-foot-meta span {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-onDark-3);
}
.cx-foot-meta b {
  font-family: var(--font-display); font-weight: 800;
  font-size: 24px; color: #fff;
}

.cx-foot-cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.cx-foot-cols a {
  display: block; padding: 6px 0;
  color: var(--ink-onDark-2);
  font-size: 13px;
}
.cx-foot-cols a:hover { color: var(--orange-2); }
.cx-foot-h {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-dark);
}

.cx-foot-bot {
  border-top: 1px solid var(--line-dark);
  max-width: 1440px; margin: 0 auto; padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  color: var(--ink-onDark-3);
}
.cx-foot-legal { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cx-foot-legal a { color: inherit; }
.cx-foot-legal a:hover { color: var(--orange-2); }
.cx-foot-pay { display: flex; gap: 8px; }
.cx-pay {
  padding: 4px 8px;
  background: var(--bg-darker);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-xs);
  color: var(--ink-onDark-2);
  font-size: 9px; letter-spacing: .12em;
}

/* Mobile (just for mobile artboards) */
.mobile .cx-stock,
.mobile .cx-lang,
.mobile .cx-act-sep { display: none; }
.mobile .cx-bar {
  padding: 14px 16px;
  grid-template-columns: 1fr auto;
  gap: 12px;
}
.mobile .cx-bar .cx-nav,
.mobile .cx-bar .cx-search { display: none; }
.mobile .cx-actions { gap: 4px; }
.mobile .cx-cart span:not(.cx-badge) { display: none; }
.mobile .cx-cats-inner { grid-template-columns: repeat(15, minmax(64px, 1fr)); overflow-x: auto; }
.mobile .cx-cats { overflow: hidden; }
