:root {
  --bg: #14160f;
  --panel: #1d2017e6;
  --panel-solid: #1d2017;
  --line: #34382a;
  --text: #f1f3ea;
  --muted: #b3b7a6;
  --accent: #b4cf1f;
  --accent-ink: #14160f;
  --error: #ff8f7a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 Poppins, system-ui, sans-serif;
}
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.page-bg {
  position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(#14160f99, var(--bg) 620px), url(img/banniere.png) top center / cover no-repeat;
}
.topbar, .hero, .tabs, main, footer { width: min(1180px, 100% - 32px); margin-inline: auto; }

.topbar {
  display: flex; justify-content: flex-end; align-items: center; gap: 12px;
  margin-top: 12px; padding: 8px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
}
.discord { color: var(--text); text-decoration: none; padding: 6px 10px; }
.cart-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: var(--text); }
#cartCount {
  position: absolute; top: 0; right: 0; min-width: 20px; padding: 0 5px;
  font-size: 12px; font-weight: 600; line-height: 20px;
  color: var(--accent-ink); background: var(--accent); border-radius: 10px;
}

.hero { display: flex; align-items: center; gap: 28px; min-height: 216px; padding: 24px clamp(8px, 8vw, 100px); }
.hero h1 { margin: 0 0 6px; font-size: clamp(24px, 4vw, 32px); font-weight: 500; line-height: 1.2; }
.hero p { margin: 0; max-width: 460px; }
.hero-text { padding: 14px 18px; background: #0000008c; border-radius: 10px; }

.tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
}
.tabs a { padding: 6px 14px; color: var(--text); text-decoration: none; border-radius: 7px; }
.tabs a:hover { background: #ffffff14; }
.tabs a[aria-current='true'] { color: var(--accent-ink); background: var(--accent); font-weight: 500; }

main { min-height: 320px; padding-block: 12px 40px; }
.panel { padding: 22px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.section-title { margin: 14px 0; font-size: 20px; font-weight: 500; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
}
.card-media { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 12px; background: #00000040; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-media span { color: var(--accent); font-size: 42px; font-weight: 600; }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 14px; }
.card h3 { margin: 0; font-size: 16px; font-weight: 500; }
.price { color: var(--accent); font-weight: 600; }
.price small { color: var(--muted); font-weight: 400; }
.actions { display: grid; gap: 6px; margin-top: auto; }
.card input { width: 100%; padding: 8px 10px; background: #00000040; border: 1px solid var(--line); border-radius: 7px; }

.primary, .ghost { min-height: 42px; padding: 8px 14px; border-radius: 7px; }
.primary { color: var(--accent-ink); background: var(--accent); border: 0; font-weight: 600; }
.primary:hover { filter: brightness(1.08); }
.primary:disabled { opacity: .55; cursor: not-allowed; }
.ghost { background: transparent; border: 1px solid var(--line); }
.ghost:hover { border-color: var(--accent); }
.unavailable { color: var(--muted); font-size: 14px; }

footer { display: flex; align-items: center; gap: 14px; padding: 18px 0 28px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
footer p { margin: 0; }

.scrim { position: fixed; inset: 0; z-index: 9; background: #0009; }
.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 10;
  width: min(430px, 100%); padding: 20px; overflow-y: auto;
  background: var(--panel-solid); border-left: 1px solid var(--line);
  transform: translateX(100%); visibility: hidden;
  transition: transform .2s ease-out, visibility .2s;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head h2 { margin: 0; font-size: 20px; font-weight: 500; }
.drawer-head button { width: 44px; height: 44px; background: none; border: 0; font-size: 26px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line-actions { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.line-actions button { min-width: 32px; min-height: 32px; background: none; border: 1px solid var(--line); border-radius: 6px; }
.total { display: flex; justify-content: space-between; padding: 12px 0; font-weight: 600; }
.empty { color: var(--muted); padding: 24px 0; }

form { display: grid; gap: 12px; }
form label, fieldset { display: grid; gap: 4px; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { padding: 0 0 4px; }
form input:not([type=checkbox], [type=radio]) { width: 100%; min-height: 42px; padding: 8px 10px; background: #00000040; border: 1px solid var(--line); border-radius: 7px; }
small { color: var(--muted); font-size: 12.5px; }
.method { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; }
.method:has(:checked) { border-color: var(--accent); }
.method span { display: grid; }
.check { display: flex !important; align-items: flex-start; gap: 10px; font-size: 13.5px; }
.check input { margin-top: 4px; }
.error { min-height: 1.5em; margin: 0; color: var(--error); font-size: 14px; }

.thanks { max-width: 620px; margin: 60px auto; text-align: center; }
.pay-details { display: grid; gap: 2px; margin: 18px 0; text-align: left; }
.pay-details dt { color: var(--muted); font-size: 13px; }
.pay-details dd { margin: 0 0 10px; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .hero { flex-direction: column; align-items: flex-start; gap: 12px; padding-inline: 0; }
  .hero img { width: 84px; height: 84px; }
  .panel { padding: 16px; }
  .tabs { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .drawer { transition: none; } }
