/* The shop basket (js/basket.js): a gold button bottom right, and a panel
   that slides in from the right (a full-width sheet on phones). Uses the
   site's own tokens from style.css. */
.zvb-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--obsidian);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}
.zvb-button svg { width: 26px; height: 26px; }
.zvb-button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.zvb-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--ember);
  color: var(--celestial);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 22px;
  text-align: center;
  display: none;
}
.zvb-button.has-items .zvb-count { display: block; }

.zvb-shade {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.zvb-shade.is-open { opacity: 1; pointer-events: auto; }

.zvb-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  width: min(420px, 100vw);
  background: var(--basalt);
  border-left: 1px solid rgba(201, 168, 76, 0.35);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  color: var(--parchment);
  font-family: var(--font-body);
}
.zvb-panel.is-open { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .zvb-panel, .zvb-shade { transition: none; }
}
.zvb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.zvb-title { margin: 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--celestial); }
.zvb-close {
  background: none;
  border: 0;
  color: var(--parchment);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.zvb-list { flex: 1; overflow-y: auto; padding: 8px 20px; }
.zvb-empty { color: var(--smoke); margin: 24px 0; }
.zvb-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.zvb-line img { width: 64px; height: 64px; object-fit: contain; background: var(--obsidian); }
.zvb-name { color: var(--celestial); font-size: 0.98rem; line-height: 1.3; }
.zvb-note { color: var(--smoke); font-size: 0.85rem; margin-top: 2px; }
.zvb-price { font-variant-numeric: tabular-nums; color: var(--gold); }
.zvb-qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; }
.zvb-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(201, 168, 76, 0.5);
  background: none;
  color: var(--gold-bright);
  cursor: pointer;
  font-size: 1rem;
}
.zvb-qty span { min-width: 1.2em; text-align: center; font-variant-numeric: tabular-nums; }
.zvb-foot { padding: 16px 20px 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: grid; gap: 10px; }
.zvb-region { display: grid; gap: 6px; }
.zvb-region span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.zvb-region select {
  background: var(--obsidian);
  color: var(--celestial);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 9px 10px;
  font-family: var(--font-body);
  font-size: 1rem;
}
.zvb-sums { display: grid; gap: 4px; }
.zvb-sum { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.zvb-total { font-family: var(--font-display); color: var(--celestial); font-size: 1.15rem; margin-top: 4px; }
.zvb-error { margin: 0; color: #ef9a9a; min-height: 1.2em; }
.zvb-checkout {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 14px;
  border: 0;
  cursor: pointer;
  color: var(--void);
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
}
.zvb-checkout:disabled { opacity: 0.55; cursor: default; }
.zvb-small { margin: 0; color: var(--smoke); font-size: 0.8rem; }
