:root {
  --red: #e3000b;
  --yellow: #ffd000;
  --blue: #006cb7;
  --green: #00a651;
  --ink: #171717;
  --muted: #5b5b5b;
  --paper: #fff8ef;
  --card: #ffffff;
  --line: #eadfce;
  --shadow: 0 18px 40px rgba(23, 23, 23, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Nunito", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

.compat-bar {
  background: var(--yellow);
  border-bottom: 4px solid var(--ink);
  text-align: center;
  font-weight: 800;
  padding: 10px 16px;
  letter-spacing: .2px;
  font-size: 15px;
}

.studs-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12px 12px, rgba(0,0,0,.05) 4px, transparent 5px) 0 0 / 28px 28px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 22px;
  background: rgba(255,248,239,.92);
  backdrop-filter: blur(12px);
  border-bottom: 4px solid var(--ink);
}
.brand { text-decoration: none; color: inherit; }
.menulinks {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-weight: 800;
}
.menulinks a {
  color: var(--ink);
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 3px solid transparent;
}
.menulinks a:hover, .menulinks a.on {
  border-bottom-color: var(--red);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}
.logo-img {
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--ink);
  background: #fff8ef;
  box-shadow: 0 3px 0 var(--ink);
}
.brand strong {
  font-family: "Fredoka", sans-serif;
  font-size: 22px;
  letter-spacing: .5px;
  display: block;
  line-height: 1;
}
.brand small { color: var(--muted); font-size: 12px; }

.search-wrap input {
  width: 100%;
  max-width: 560px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  background: #fff;
}
.search-wrap input:focus { outline: 3px solid var(--yellow); }

.nav-actions { display: flex; gap: 8px; }
.icon-btn {
  border: 3px solid var(--ink);
  background: #fff;
  border-radius: 14px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.cart-btn { background: var(--yellow); }
.icon-btn span {
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 12px;
  margin-left: 4px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  padding: 36px 28px 18px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}
.hero h1 {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  margin-bottom: 12px;
}
.lead { color: var(--muted); font-size: 18px; max-width: 520px; }
.hero-cta { display: flex; gap: 10px; margin: 22px 0; flex-wrap: wrap; }
.btn {
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: inline-block;
  box-shadow: 0 4px 0 var(--ink);
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-red { background: var(--red); color: #fff; }
.btn-yellow { background: var(--yellow); width: 100%; }
.btn-ghost { background: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-green { background: var(--green); color: #fff; }

.stats { display: flex; gap: 22px; }
.stats b { display: block; font-size: 22px; font-family: "Fredoka", sans-serif; }
.stats span { color: var(--muted); font-size: 13px; }

.hero-visual {
  position: relative;
  border: 4px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow);
}
.hero-visual { cursor: pointer; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 340px; }
.hero-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 800;
  font-size: 13px;
}

.floating-brick {
  position: absolute;
  width: 46px; height: 30px;
  border-radius: 6px;
  box-shadow: inset 0 8px 0 rgba(255,255,255,.25);
  animation: float 4.5s ease-in-out infinite;
}
.floating-brick::before, .floating-brick::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 12px; height: 10px;
  border-radius: 50%;
  background: inherit;
  filter: brightness(1.08);
}
.floating-brick::before { left: 8px; }
.floating-brick::after { right: 8px; }
.b1 { background: var(--red); top: 18px; left: 18px; }
.b2 { background: var(--yellow); bottom: 28px; right: 24px; animation-delay: .6s; }
.b3 { background: var(--blue); top: 42%; right: 12%; animation-delay: 1.2s; }
@keyframes float {
  0%,100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-12px) rotate(6deg); }
}

.toolbar {
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 3px solid var(--ink);
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 800;
  cursor: pointer;
}
.chip.active { background: var(--ink); color: #fff; }
#sort {
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 700;
  background: #fff;
}

.grid-wrap { max-width: 1200px; margin: 0 auto; padding: 16px 28px 60px; }
.results { margin-bottom: 12px; color: var(--muted); font-weight: 700; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 0 rgba(0,0,0,.06);
  transition: transform .18s ease;
}
.card:hover { transform: translateY(-6px); }
.card-img {
  height: 210px;
  background: #f4efe6;
  position: relative;
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}
.wish {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 16px;
}
.wish.on { background: #ffd6da; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat { font-size: 12px; font-weight: 800; color: var(--blue); text-transform: uppercase; }
.card h3 { font-family: "Fredoka", sans-serif; font-size: 20px; }
.meta { color: var(--muted); font-size: 13px; }
.price-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.price { font-weight: 800; font-size: 20px; }
.card .btn { padding: 8px 12px; font-size: 14px; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(460px, 100%);
  background: #fff;
  border-left: 4px solid var(--ink);
  z-index: 60;
  transform: translateX(110%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head, .drawer-foot { padding: 16px; border-bottom: 3px solid var(--line); }
.drawer-foot { border-bottom: 0; border-top: 3px solid var(--line); overflow-y: auto; max-height: 72vh; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-body { padding: 16px; overflow: auto; flex: 1; }
.close {
  width: 36px; height: 36px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}
.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
}
.cart-line img {
  width: 64px; height: 64px; object-fit: cover;
  border-radius: 10px; border: 2px solid var(--ink);
}
.qty {
  display: flex; gap: 6px; align-items: center; margin-top: 6px;
}
.qty button {
  width: 26px; height: 26px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  cursor: pointer;
  font-weight: 800;
}
.total { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 20px; }
.empty { color: var(--muted); text-align: center; padding: 30px 10px; }

.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  display: none;
  place-items: center;
  z-index: 70;
  padding: 18px;
}
.modal.open { display: grid; }
.modal-card {
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 24px;
  width: min(860px, 100%);
  max-height: 90vh;
  overflow: auto;
  position: relative;
  padding: 18px;
}
.modal-card .close { position: absolute; top: 12px; right: 12px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.modal-grid img {
  width: 100%;
  border-radius: 16px;
  border: 3px solid var(--ink);
  object-fit: contain;
  background: #f4efe6;
  min-height: 260px;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  z-index: 80;
  opacity: 0;
  transition: .25s ease;
  font-weight: 700;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
}

footer {
  padding: 36px 28px 24px;
  color: var(--muted);
  border-top: 4px solid var(--ink);
  background: #fff;
}
.foot-grid {
  max-width: 1200px;
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  text-align: left;
}
.foot-grid strong {
  font-family: "Fredoka", sans-serif;
  color: var(--ink);
  font-size: 22px;
}
.foot-grid p:first-child { color: var(--ink); font-weight: 800; margin-bottom: 8px; }
.foot-grid a { display: block; color: var(--ink); text-decoration: none; margin: 6px 0; font-weight: 700; }
.foot-note { text-align: center; font-size: 13px; max-width: 800px; margin: 0 auto; }

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 22px 70px;
}
.page h1 {
  font-family: "Fredoka", sans-serif;
  font-size: 40px;
  margin-bottom: 12px;
}
.page h2 { margin: 22px 0 8px; font-size: 22px; }
.page p, .page li { line-height: 1.55; margin-bottom: 10px; }
.page ul { padding-left: 20px; }
.todo {
  background: #fff3bf;
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  margin: 14px 0 22px;
}
.form { display: grid; gap: 10px; }
.form input, .form textarea, .form select {
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
}
.form textarea { min-height: 140px; resize: vertical; }
faq-item, details.faq {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
details.faq summary { font-weight: 800; cursor: pointer; }
details.faq p { margin: 10px 0 0; }

.shop-lite .search-wrap { display: none; }
.shop-lite .topbar { grid-template-columns: auto 1fr; }
.stats { flex-wrap: wrap; }

@media (max-width: 820px) {
  .topbar { grid-template-columns: 1fr auto; }
  .menulinks { grid-column: 1 / -1; }
  .search-wrap { grid-column: 1 / -1; }
  .hero, .modal-grid, .foot-grid { grid-template-columns: 1fr; }
}

.langbox { position: relative; }
.lang-btn { min-width: 46px; }
.langmenu {
  position: absolute;
  right: 0; top: 46px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 6px;
  z-index: 80;
  min-width: 190px;
  box-shadow: var(--shadow);
}
.langmenu button {
  display: block; width: 100%;
  text-align: left;
  border: 0; background: transparent;
  padding: 7px 8px; font: inherit; font-weight: 700;
  cursor: pointer; border-radius: 8px;
}
.langmenu button:hover { background: #fff3bf; }
.ship-box { margin-bottom: 12px; display: grid; gap: 8px; }
.ship-label { font-weight: 700; font-size: 14px; display: grid; gap: 4px; }
.ship-label select {
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 8px;
  font: inherit;
}
.ship-line { font-weight: 800; }

.paypal-note { font-size: 13px; font-weight: 800; margin: 0 0 8px; }
#paypal-button-container { min-height: 0; }

#mrWrap { margin: 10px 0 14px; }
#Zone_Widget { min-height: 240px; height: auto; border: 3px solid var(--ink); border-radius: 14px; overflow: visible; background: #fff; }
.mr-selected { font-size: 13px; font-weight: 800; margin-top: 8px; }
