/* Chrome: nav, footer, language switcher, shared UI */

/* --- NAV --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 72px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.nav-brand-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand);
  position: relative;
}
.nav-brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.55);
}
.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
  margin-left: 24px;
}
.nav-link {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-dim);
  border-radius: 999px;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  position: relative;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 1.5px;
  background: var(--brand);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language switcher */
.lang {
  position: relative;
}
.lang-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: border-color var(--dur-fast) var(--ease);
}
.lang-trigger:hover { border-color: var(--line-strong); color: var(--ink); }
.lang-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 280px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 8px;
  display: none;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.lang.open .lang-menu { display: block; }
.lang-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink-dim);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.lang-row:hover { background: var(--bg-elev-2); color: var(--ink); }
.lang-row.active { color: var(--ink); }
.lang-row.active::after {
  content: "✓";
  color: var(--brand);
  font-size: 14px;
}
.lang-flag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  background: var(--bg-elev-2);
  border-radius: 2px;
  padding: 3px 5px;
  text-align: center;
}
.lang-search {
  width: 100%;
  background: var(--bg-elev-2);
  border: 0;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 8px;
  outline: none;
}
.lang-section-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 10px 12px 4px;
}

/* Cart button */
.cart-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
}
.cart-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.cart-btn .count {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- FOOTER --- */
.footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  margin-top: 120px;
}
.footer-top {
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
.footer-brand h3 {
  font-family: var(--f-display);
  font-size: 48px;
  margin: 12px 0 20px;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.footer-brand p {
  color: var(--ink-dim);
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 20px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  color: var(--ink-dim);
  font-size: 14px;
  transition: color var(--dur-fast) var(--ease);
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.footer-bottom .rights { display: flex; gap: 24px; }

/* --- TWEAKS --- */
.tweaks-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 16px;
  z-index: 100;
  display: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  font-size: 12px;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h5 {
  margin: 0 0 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}
.tweak-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.tweak-row label {
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--f-mono);
}
.tweak-options {
  display: flex;
  gap: 4px;
  background: var(--bg-elev-2);
  border-radius: 4px;
  padding: 3px;
}
.tweak-options button {
  flex: 1;
  padding: 6px 8px;
  border-radius: 3px;
  font-size: 11px;
  color: var(--ink-dim);
  transition: all var(--dur-fast) var(--ease);
  text-transform: capitalize;
}
.tweak-options button.active {
  background: var(--brand);
  color: #fff;
}

/* --- CART DRAWER --- */
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 440px;
  max-width: 100vw;
  background: var(--bg);
  border-left: 1px solid var(--line);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.cart-header h3 {
  font-family: var(--f-display);
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.02em;
}
.cart-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-dim);
}
.cart-empty .eyebrow { margin-bottom: 12px; }
.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--line);
}
.cart-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
