/* Lumina Forge — shop page styles */
html {
  scroll-behavior: smooth;
}

:root {
  --shop-gold: #f1c40f;
  --shop-gold-dark: #d4a80a;
  --shop-ink: #050505;
  --shop-surface: rgba(10, 10, 10, 0.86);
  --shop-surface-2: rgba(16, 16, 16, 0.92);
  --shop-border: rgba(241, 196, 15, 0.35);
  --shop-border-strong: rgba(241, 196, 15, 0.7);
  --shop-text: rgba(255, 255, 255, 0.84);
  --shop-text-dim: rgba(255, 255, 255, 0.66);
  --shop-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  --shop-shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.45);
  --shop-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shop-ui-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

@font-face {
  font-family: 'MinecraftTen';
  src: url('../fonts/MinecraftTen-VGORe.ttf') format('truetype');
  font-display: swap;
}

body {
  margin: 0;
  background-color: #050505;
  color: var(--shop-gold);
  font-family: 'MinecraftTen', sans-serif;
  text-rendering: geometricPrecision;
}

/* Lock scrolling until the hero button is pressed */
body.shop-scroll-locked {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

/* Make the catalog area readable (less bright yellow wash) */
.shop-catalog-section.news-section {
  background:
    radial-gradient(circle at 20% 0%, rgba(241, 196, 15, 0.12), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(255, 236, 110, 0.08), transparent 42%),
    linear-gradient(180deg, #060606 0%, #040404 100%);
}

.shop-catalog-section.news-section::before {
  opacity: 0.55;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 44px,
      rgba(241, 196, 15, 0.06) 44px,
      rgba(241, 196, 15, 0.06) 45px
    );
}

.shop-catalog-header .news-body {
  font-family: var(--shop-ui-font);
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.78);
}

/* Reduce the "stiff" feeling: smoother motion defaults */
a, button, [role="button"] {
  transition-timing-function: var(--shop-ease-out);
}

/* Note: we intentionally do NOT disable animations on the shop page.
   (Some users have "Reduce motion" enabled at OS/browser level, which would make the shop feel broken.
   If you need reduced motion later, we can scope it to non-essential effects only.) */

/* Shop hero */
.shop-hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(4.25rem, 10vh, 6.5rem) 1.5rem 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(135deg, #f1c40f 0%, #ffd700 40%, #f1c40f 100%);
  overflow: hidden;
}

.shop-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 40px,
    rgba(0, 0, 0, 0.03) 40px,
    rgba(0, 0, 0, 0.03) 41px
  );
  pointer-events: none;
  transform: translateY(calc(var(--shop-hero-progress, 0) * 18px));
  opacity: calc(1 - (var(--shop-hero-progress, 0) * 0.55));
  transition: opacity 0.15s linear;
}

.shop-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.22), transparent 40%),
    radial-gradient(circle at 80% 35%, rgba(255, 255, 255, 0.18), transparent 44%),
    radial-gradient(circle at 50% 100%, rgba(0, 0, 0, 0.14), transparent 55%);
  opacity: 0.9;
  mix-blend-mode: soft-light;
  pointer-events: none;
  transform:
    translateY(calc(var(--shop-hero-progress, 0) * 28px))
    scale(calc(1 + (var(--shop-hero-progress, 0) * 0.03)));
}

.shop-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  animation: shopHeroIn 0.65s var(--shop-ease-out) both;
  will-change: transform, opacity, filter;
  transform:
    translateY(calc(var(--shop-hero-progress, 0) * -26px))
    scale(calc(1 - (var(--shop-hero-progress, 0) * 0.06)));
  opacity: calc(1 - (var(--shop-hero-progress, 0) * 0.45));
  filter: blur(calc(var(--shop-hero-progress, 0) * 1.2px));
}

/* Scroll cue */
.shop-scroll-cue {
  margin-top: 1.75rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  opacity: calc(1 - (var(--shop-hero-progress, 0) * 1.2));
  transform: translateY(calc(var(--shop-hero-progress, 0) * -10px));
  pointer-events: auto;
  background: transparent;
  border: 0;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s var(--shop-ease-out), background 0.18s var(--shop-ease-out);
}

.shop-scroll-cue:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.shop-scroll-cue:active {
  transform: translateY(0px) scale(0.98);
}

.shop-scroll-cue:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.85);
  outline-offset: 3px;
}

.shop-scroll-text {
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: rgba(0, 0, 0, 0.75);
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.16);
}

.shop-scroll-arrow {
  width: 18px;
  height: 18px;
  border-right: 3px solid rgba(0, 0, 0, 0.75);
  border-bottom: 3px solid rgba(0, 0, 0, 0.75);
  transform: rotate(45deg);
  animation: shopArrowBounce 1.15s var(--shop-ease-out) infinite;
}

@keyframes shopArrowBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.85; }
  55% { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}

/* Sticky category bar (feels more app-like) */
.shop-category-filters {
  position: sticky;
  top: 70px;
  z-index: 12;
  padding: 0.75rem 0.5rem;
  border-radius: 14px;
  background: rgba(8, 8, 8, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(241, 196, 15, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.shop-hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: #000;
  background: rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(0, 0, 0, 0.85);
  padding: 0.3rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 999px;
}

.shop-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #000;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), 3px 3px 0 rgba(255, 255, 255, 0.2);
  margin-bottom: 0.75rem;
}

.shop-hero p {
  color: rgba(0, 0, 0, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Battlepass block reuses news-section from legal.css */
.shop-battlepass-panel .news-body {
  margin-bottom: 1.25rem;
}

/* Catalog layout */
.shop-catalog-header {
  max-width: 760px;
  margin-bottom: 1.25rem;
}

.shop-catalog-header .news-title {
  margin-bottom: 0.35rem;
}

.shop-catalog-header .news-body {
  margin-bottom: 0;
  font-family: var(--shop-ui-font);
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.78);
}

/* Badge variant for dark catalog section */
.shop-catalog-header .shop-hero-badge {
  color: #000;
  background: rgba(241, 196, 15, 0.92);
  border-color: #000;
  box-shadow:
    inset -2px -2px 0 rgba(181, 144, 10, 0.85),
    inset 2px 2px 0 rgba(255, 254, 189, 0.85),
    2px 2px 0 rgba(0, 0, 0, 0.55);
}

.shop-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.shop-category-btn {
  font-family: 'MinecraftTen', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: #000;
  background: linear-gradient(180deg, #fff5a0 0%, #f1c40f 45%, #d4a80a 100%);
  border: 2px solid rgba(0, 0, 0, 0.85);
  padding: 0.45rem 0.8rem;
  box-shadow:
    inset -2px -2px 0 rgba(0, 0, 0, 0.25),
    inset 2px 2px 0 rgba(255, 255, 255, 0.28),
    2px 2px 0 rgba(0, 0, 0, 0.45);
  cursor: pointer;
  border-radius: 999px;
  transform: translateZ(0);
  transition:
    transform 0.22s var(--shop-ease-out),
    filter 0.22s var(--shop-ease-out),
    background 0.22s var(--shop-ease-out),
    box-shadow 0.22s var(--shop-ease-out);
}

.shop-category-btn:hover,
.shop-category-btn.is-active {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #fffbd0 0%, #ffd700 45%, #f1c40f 100%);
  filter: saturate(1.05) contrast(1.02);
}

.shop-category-btn:active {
  transform: translateY(0px) scale(0.98);
}

.shop-category-btn:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.9);
  outline-offset: 2px;
}

.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
}

.shop-product-card {
  background: linear-gradient(180deg, var(--shop-surface), rgba(0, 0, 0, 0.92));
  border: 1px solid rgba(241, 196, 15, 0.32);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(241, 196, 15, 0.28),
    var(--shop-shadow-soft);
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateZ(0);
  cursor: pointer;
  transition: transform 0.22s var(--shop-ease-out), box-shadow 0.22s var(--shop-ease-out), border-color 0.22s var(--shop-ease-out);
}

/* While JS Web Animations run, hover styles must not fight the motion */
.shop-product-card.is-animating,
.shop-product-card.is-animating:hover {
  transition: none !important;
}

.shop-product-card.is-animating:hover {
  transform: none !important;
  box-shadow:
    0 0 0 1px rgba(241, 196, 15, 0.28),
    var(--shop-shadow-soft) !important;
  border-color: rgba(241, 196, 15, 0.32) !important;
}

.shop-product-card.is-animating:hover .shop-product-media {
  transform: none !important;
  filter: saturate(0.95) contrast(1.05) !important;
}

.btn-minecraft-3d.is-animating,
.btn-minecraft-3d.is-animating:hover,
.btn-minecraft-3d.is-animating:active {
  transition: none !important;
}

/* Diagonal wipe shine (matches staff card screenshot style) */
.shop-product-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(241, 196, 15, 0.0) 32%,
    rgba(241, 196, 15, 0.22) 44%,
    rgba(241, 196, 15, 0.38) 50%,
    rgba(241, 196, 15, 0.22) 56%,
    rgba(241, 196, 15, 0.0) 68%,
    transparent 100%
  );
  transform: translateX(-55%) rotate(-18deg);
  transition: transform 0.65s var(--shop-ease-out);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}

.shop-product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(241, 196, 15, 0.14) 0%, transparent 70%);
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.shop-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px rgba(241, 196, 15, 0.38), var(--shop-shadow);
  border-color: rgba(241, 196, 15, 0.55);
}

.shop-product-card:hover::before {
  transform: translateX(55%) rotate(-18deg);
}

.shop-product-card:hover::after {
  opacity: 1;
}

.shop-product-card:has([data-add-to-cart]:focus-visible) {
  box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.55), var(--shop-shadow);
  border-color: rgba(241, 196, 15, 0.75);
}

.shop-product-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111;
  border-bottom: 2px solid rgba(241, 196, 15, 0.45);
  transition: transform 0.4s var(--shop-ease-out), filter 0.4s var(--shop-ease-out);
  filter: saturate(0.95) contrast(1.05);
}

.shop-product-card:hover .shop-product-media {
  transform: scale(1.04);
  filter: saturate(1.03) contrast(1.08);
}

.shop-product-body {
  padding: 1.05rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1 1 auto;
}

.shop-product-title {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: 1px;
  color: #f1c40f;
}

.shop-product-description {
  margin: 0;
  font-family: var(--shop-ui-font);
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  min-height: 2.8rem;
}

.shop-product-hint {
  margin: 0;
  font-family: var(--shop-ui-font);
  font-size: 0.78rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: rgba(241, 196, 15, 0.72);
}

.shop-product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.shop-product-price {
  font-size: 1.05rem;
  color: #f1c40f;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
}

.shop-catalog-loading,
.shop-catalog-empty {
  font-size: 0.85rem;
  font-family: var(--shop-ui-font);
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
}

/* Footer */
.footer-container {
  color: gold;
  font-weight: 400 !important;
  letter-spacing: 1px;
  background: #000;
  padding-top: 2rem;
}

.footer-link {
  color: rgba(108, 108, 108, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: gold;
}

.cookie-banner {
  backdrop-filter: blur(4px);
  color: #fff;
}

.cookie-banner a {
  color: gold;
  text-decoration: underline;
}

.btn-outline-info {
  border-color: #f1c40f !important;
  color: #f1c40f !important;
}

.btn-outline-info:hover {
  background-color: #f1c40f !important;
  color: #000 !important;
}

@media (max-width: 600px) {
  .shop-hero {
    padding: clamp(4rem, 12vh, 6rem) 1rem 2.75rem;
  }
}

/* ── Shop navbar actions ── */
.shop-nav-actions {
  align-items: center !important;
  gap: 0.5rem !important;
}

.shop-nav-util {
  display: flex;
  align-items: center;
}

.shop-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #f1c40f;
  background: transparent;
  border: 2px solid rgba(241, 196, 15, 0.45);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.shop-cart-btn:hover {
  color: #000;
  background: linear-gradient(180deg, #fff5a0 0%, #f1c40f 45%, #d4a80a 100%);
  border-color: #000;
  transform: translateY(-1px);
}

.shop-cart-btn:active {
  transform: translateY(0px) scale(0.98);
}

.shop-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-family: 'MinecraftTen', sans-serif;
  font-size: 0.55rem;
  line-height: 18px;
  text-align: center;
  color: #000;
  background: #e74c3c;
  border: 2px solid #000;
  border-radius: 2px;
}

.shop-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'MinecraftTen', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 1px;
  color: #fff !important;
  background: #5865f2;
  border: 2px solid #000;
  border-radius: 4px;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  box-shadow:
    inset -2px -2px 0 #3c45a5,
    inset 2px 2px 0 #7b85ff,
    2px 2px 0 rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, background 0.15s ease;
}

.shop-discord-btn:hover {
  background: #6b77ff;
  transform: translateY(-1px);
}

.shop-discord-btn:active {
  transform: translateY(0px) scale(0.99);
}

.shop-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.5rem 0.3rem 0.35rem;
  background: rgba(241, 196, 15, 0.08);
  border: 2px solid rgba(241, 196, 15, 0.35);
  border-radius: 4px;
}

.shop-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #000;
}

.shop-user-name {
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: #f1c40f;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-logout-btn {
  font-family: 'MinecraftTen', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
}

.shop-logout-btn:hover {
  color: #f1c40f;
}

/* ── Product actions ── */
.shop-product-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.shop-product-actions .btn-minecraft-3d {
  font-size: 1rem;
  padding: 0.7rem 1.6rem;
}

.shop-product-price {
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: #f1c40f;
  text-shadow: 2px 2px 0 #000;
}

/* ── Cart panel ── */
.shop-cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.shop-cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.shop-cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1050;
  width: min(380px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  border-left: 3px solid #f1c40f;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.shop-cart-panel.is-open {
  transform: translateX(0);
}

body.shop-cart-open {
  overflow: hidden;
}

.shop-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 2px solid rgba(241, 196, 15, 0.2);
}

.shop-cart-header h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 2px;
  color: #f1c40f;
}

.shop-cart-close {
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  line-height: 1;
  color: #f1c40f;
  background: transparent;
  border: 2px solid rgba(241, 196, 15, 0.35);
  border-radius: 4px;
  cursor: pointer;
}

.shop-cart-close:hover {
  background: rgba(241, 196, 15, 0.1);
}

.shop-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}

.shop-cart-empty {
  margin: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 1px;
}

.shop-cart-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(241, 196, 15, 0.12);
}

.shop-cart-item-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 2px solid #000;
  flex-shrink: 0;
}

.shop-cart-item-info {
  flex: 1;
  min-width: 0;
}

.shop-cart-item-name {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: #f1c40f;
  margin-bottom: 0.25rem;
}

.shop-cart-item-price {
  display: block;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.45rem;
}

.shop-cart-item-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid rgba(241, 196, 15, 0.25);
  border-radius: 4px;
  padding: 0.15rem 0.35rem;
}

.shop-qty-btn {
  width: 24px;
  height: 24px;
  font-size: 1rem;
  line-height: 1;
  color: #f1c40f;
  background: transparent;
  border: none;
  cursor: pointer;
}

.shop-qty-btn:hover {
  color: #fff;
}

.shop-cart-remove {
  width: 28px;
  height: 28px;
  font-size: 1.2rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.shop-cart-remove:hover {
  color: #e74c3c;
}

.shop-cart-footer {
  padding: 1.25rem;
  border-top: 2px solid rgba(241, 196, 15, 0.2);
}

.shop-cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  color: #f1c40f;
}

.shop-checkout-btn {
  width: 100%;
  font-size: 0.95rem !important;
  padding: 0.75rem 1rem !important;
}

.shop-checkout-btn.is-loading {
  opacity: 0.75;
  cursor: wait;
}

.shop-checkout-btn:disabled {
  pointer-events: none;
}

/* ── Toast ── */
.shop-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 1100;
  transform: translateX(-50%) translateY(20px);
  padding: 0.65rem 1.25rem;
  font-family: 'MinecraftTen', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: #000;
  background: #f1c40f;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.shop-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.shop-product-footer .btn-minecraft-3d {
  font-size: 0.95rem;
  padding: 0.65rem 1.35rem;
  transition: transform 0.18s var(--shop-ease-out), box-shadow 0.18s var(--shop-ease-out), filter 0.18s var(--shop-ease-out);
  will-change: transform;
}

.shop-product-footer .btn-minecraft-3d:hover {
  transform: translateY(-2px);
  filter: saturate(1.05);
}

.shop-product-footer .btn-minecraft-3d:active {
  transform: translateY(0px) scale(0.99);
}

/* ── Scroll/Render reveal animations (applied from JS) ── */
.shop-animate-in {
  animation: shopCardIn 680ms var(--shop-ease-out) both;
  animation-delay: var(--shop-stagger, 0ms);
  will-change: transform, opacity, filter;
}

/* Click feedback — must come after .shop-animate-in so it wins on product cards */
.shop-product-card.is-clicked {
  animation: shopCardClick 340ms var(--shop-ease-out) both !important;
  transition: none !important;
  border-color: rgba(241, 196, 15, 0.85) !important;
}

.shop-product-card.is-opening {
  animation: shopCardOpen 360ms var(--shop-ease-out) both !important;
  transition: none !important;
  border-color: rgba(241, 196, 15, 0.9) !important;
  z-index: 3;
}

.shop-product-footer .btn-minecraft-3d.is-clicked,
.shop-product-modal-add.is-clicked {
  animation: shopButtonClick 300ms var(--shop-ease-out) both !important;
  transition: none !important;
}

.shop-cart-btn.is-bump {
  animation: shopCartBump 420ms var(--shop-ease-out) both;
}

@keyframes shopHeroIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shopCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: saturate(0.9) contrast(0.98);
  }
  60% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1) contrast(1);
  }
}

@keyframes shopCardClick {
  0% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 0 0 1px rgba(241, 196, 15, 0.38),
      var(--shop-shadow-soft);
  }
  35% {
    transform: translateY(4px) scale(0.96);
    box-shadow:
      0 0 0 3px rgba(241, 196, 15, 0.55),
      0 0 28px rgba(241, 196, 15, 0.35),
      0 14px 30px rgba(0, 0, 0, 0.8);
  }
  70% {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
      0 0 0 2px rgba(241, 196, 15, 0.7),
      0 0 36px rgba(241, 196, 15, 0.28),
      var(--shop-shadow);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 0 0 1px rgba(241, 196, 15, 0.4),
      var(--shop-shadow-soft);
  }
}

@keyframes shopCardOpen {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: brightness(1);
  }
  40% {
    transform: translateY(-8px) scale(1.04);
    opacity: 1;
    filter: brightness(1.12);
    box-shadow:
      0 0 0 2px rgba(241, 196, 15, 0.75),
      0 0 40px rgba(241, 196, 15, 0.35),
      var(--shop-shadow);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: brightness(1);
    box-shadow:
      0 0 0 1px rgba(241, 196, 15, 0.4),
      var(--shop-shadow-soft);
  }
}

@keyframes shopButtonClick {
  0% {
    transform: translateY(0) scale(1);
    filter: saturate(1) brightness(1);
    box-shadow:
      inset -4px -4px 0px #b5900a,
      inset 4px 4px 0px #fffebd,
      4px 4px 0px rgba(0, 0, 0, 0.4);
  }
  35% {
    transform: translateY(3px) scale(0.94);
    filter: saturate(1.15) brightness(1.08);
    box-shadow:
      inset 3px 3px 0px #cda20a,
      inset -3px -3px 0px #fffff0,
      2px 2px 0px rgba(0, 0, 0, 0.45);
  }
  65% {
    transform: translateY(-2px) scale(1.03);
    filter: saturate(1.2) brightness(1.12);
    box-shadow:
      inset -4px -4px 0px #cda20a,
      inset 4px 4px 0px #fffff0,
      5px 5px 0px rgba(0, 0, 0, 0.35),
      0 0 18px rgba(241, 196, 15, 0.45);
  }
  100% {
    transform: translateY(0) scale(1);
    filter: saturate(1) brightness(1);
    box-shadow:
      inset -4px -4px 0px #b5900a,
      inset 4px 4px 0px #fffebd,
      4px 4px 0px rgba(0, 0, 0, 0.4);
  }
}

@keyframes shopCartBump {
  0% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-4px) scale(1.12); }
  55% { transform: translateY(1px) scale(0.96); }
  100% { transform: translateY(0) scale(1); }
}

/* Loader fallback (in case another css overrides it) */
.loader-bar-fill {
  background-size: 200% 100%;
  animation: loaderBarFill 1.35s var(--shop-ease-out) infinite, loaderBarShine 0.85s linear infinite !important;
}

@keyframes loaderBarFill {
  0% { width: 0%; }
  55% { width: 88%; }
  100% { width: 100%; }
}

@keyframes loaderBarShine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Product detail modal */
body.shop-product-modal-open {
  overflow: hidden;
}

.shop-product-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.shop-product-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.shop-product-modal[hidden] {
  display: none !important;
}

.shop-product-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.38s var(--shop-ease-out);
}

.shop-product-modal.is-open .shop-product-modal-overlay {
  opacity: 1;
}

.shop-product-modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(90vh, 760px);
  overflow-x: hidden;
  overflow-y: auto;
  background: linear-gradient(180deg, #111 0%, #050505 100%);
  border: 2px solid rgba(241, 196, 15, 0.45);
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.65);
  transform: scale(0.88) translateY(32px);
  opacity: 0;
  scrollbar-color: rgba(241, 196, 15, 0.45) #0b0b0b;
  scrollbar-width: thin;
}

.shop-product-modal.is-open .shop-product-modal-panel {
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(241, 196, 15, 0.08);
}

.shop-product-modal-panel::-webkit-scrollbar {
  width: 10px;
}

.shop-product-modal-panel::-webkit-scrollbar-track {
  background: #0b0b0b;
}

.shop-product-modal-panel::-webkit-scrollbar-thumb {
  background: rgba(241, 196, 15, 0.45);
  border: 2px solid #0b0b0b;
  border-radius: 999px;
}

@keyframes shopModalImgIn {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shopModalFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shop-product-modal.is-open .shop-product-modal-img {
  animation: shopModalImgIn 0.5s var(--shop-ease-out) 0.06s both;
}

.shop-product-modal.is-open .shop-product-modal-body > * {
  animation: shopModalFadeUp 0.42s var(--shop-ease-out) both;
}

.shop-product-modal.is-open .shop-product-modal-body > *:nth-child(1) { animation-delay: 0.12s; }
.shop-product-modal.is-open .shop-product-modal-body > *:nth-child(2) { animation-delay: 0.17s; }
.shop-product-modal.is-open .shop-product-modal-body > *:nth-child(3) { animation-delay: 0.22s; }
.shop-product-modal.is-open .shop-product-modal-body > *:nth-child(4) { animation-delay: 0.27s; }
.shop-product-modal.is-open .shop-product-modal-body > *:nth-child(5) { animation-delay: 0.32s; }
.shop-product-modal.is-open .shop-product-modal-body > *:nth-child(6) { animation-delay: 0.37s; }

.shop-product-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(241, 196, 15, 0.5);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #f1c40f;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.shop-product-modal-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #050505;
  border-bottom: 1px solid rgba(241, 196, 15, 0.18);
}

.shop-product-modal-body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shop-product-modal-title {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 1px;
  color: #f1c40f;
}

.shop-product-modal-price {
  margin: 0;
  font-size: 1.15rem;
  color: #fff;
}

.shop-product-modal-desc {
  margin: 0;
  font-family: var(--shop-ui-font);
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.84);
}

.shop-product-modal-includes-title {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(241, 196, 15, 0.85);
}

.shop-product-modal-includes {
  margin: 0;
  padding-left: 1.15rem;
  font-family: var(--shop-ui-font);
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.shop-product-modal-includes li + li {
  margin-top: 0.35rem;
}

.shop-product-modal-add {
  margin-top: 0.35rem;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .shop-product-modal,
  .shop-product-modal-overlay {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 991px) {
  .shop-nav-util {
    width: 100%;
    margin-top: 0.35rem;
  }

  .shop-discord-btn {
    width: 100%;
    justify-content: center;
  }

  .shop-user-chip {
    width: 100%;
    justify-content: space-between;
  }

  .shop-cart-btn {
    width: 100%;
    height: 44px;
  }
}
