/* LastStand Theme — playful/joyful + consistent layout
   ใช้คู่กับ Tailwind/Bootstrap ได้ (แนะนำปิด Tailwind preflight)
   Prefix: ls-
*/

/* -------- Root Variables -------- */
:root{
  /* base — sampled straight from the GESTA jester logo */
  --ls-bg: #fdf6ed;       /* logo cream */
  --ls-surface: #ffffff;  /* cards sit above the cream */
  --ls-border: #e8ded0;   /* warm border, not a cold grey */
  --ls-text: #112241;     /* logo navy */
  --ls-muted: #6f7689;    /* navy-leaning grey */

  /* brand palette */
  --ls-accent: #1b3b6f;       /* interactive navy — a step off the ink */
  --ls-accent-600: #112241;   /* logo navy */
  --ls-accent-700: #0a1730;   /* pressed */
  --ls-accent-50: #eaf0f8;    /* navy tint */
  --ls-secondary: #a8a9ad;    /* silver */
  --ls-secondary-50: #f4f4f5; /* silver-50 */
  --ls-mint: #10b981;         /* emerald-500 */
  /* the three hat colours. Used in small doses — a stripe, a badge, a
     hover — so the jester reads as personality, not noise. */
  --brand: #1b3b6f;
  --brand-deep: #112241;
  --brand-bright: #4a6ea8;
  --brand-ink: #112241;
  --brand-cream: #fdf6ed;
  --brand-teal: #069c9e;
  --brand-amber: #faae09;
  --brand-coral: #f3543f;

  /* layout */
  --ls-nav-height-m: 4rem;  /* 64px */
  --ls-nav-height-d: 5rem;  /* 80px */
  --ls-container-px: 1rem;

  /* typography */
  --ls-leading: 1.6;
  --ls-prose-max: 72ch;
}

/* -------- Base -------- */
body{ background: var(--ls-bg); color: var(--ls-text); }



/* -------- Containers (max-width) -------- */
.ls-container,
.ls-container-wide,
.ls-container-narrow{
  margin-left:auto; margin-right:auto;
  padding-left:var(--ls-container-px); padding-right:var(--ls-container-px);
}

/* standard */
@media (min-width:640px){ .ls-container{ max-width:1536px; } }

/* wide (hero/dashboard) */
@media (min-width:640px){ .ls-container-wide{ max-width:1680px; } }

/* narrow (forms/reading) */
@media (min-width:640px){ .ls-container-narrow{ max-width:1024px; } }

/* full-bleed helper */
.ls-fullbleed{ width:100vw; position:relative; left:50%; right:50%; margin-left:-50vw; margin-right:-50vw; }

/* -------- Surfaces / Cards -------- */
.ls-surface{ background:var(--ls-surface); }
.ls-card{
  background:var(--ls-surface);
  border:1px solid var(--ls-border);
  border-radius:1rem; /* 16px */
  box-shadow:0 1px 2px rgba(0,0,0,.05);
}

/* playful hero gradient */
.ls-hero-card{
  background: linear-gradient(135deg, var(--ls-accent-50), var(--ls-secondary-50));
  border:1px solid var(--ls-border);
  border-radius:1rem;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
}

/* -------- Carousel dots -------- */
.ls-dot{
  height:10px; width:10px; border-radius:9999px;
  border:1px solid #e5e7eb; background:#fff;
  opacity:.7; transition:transform .2s ease, opacity .2s ease, background .2s ease, box-shadow .2s ease;
}
.ls-dot.is-active{
  background:var(--ls-accent); opacity:1; transform:scale(1.15);
  box-shadow:0 0 0 4px rgba(249,115,22,.15);
}


/* -------- Heading accent -------- */
.ls-heading{
  font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--ls-text);
  position:relative; display:inline-block; padding-bottom:.35rem;
}
.ls-heading::after{
  content:""; position:absolute; left:50%; transform:translateX(-50%);
  bottom:0; height:3px; width:140px; border-radius:9999px;
  background:linear-gradient(90deg, var(--ls-accent), var(--ls-secondary));
}

/* -------- Date row tint -------- */
.ls-date-row{
  background:linear-gradient(90deg, var(--ls-accent-50), var(--ls-secondary-50));
  color:#374151;
}

/* -------- Nav spacer -------- */
.ls-nav-spacer{ height:var(--ls-nav-height-m); }
@media (min-width:768px){ .ls-nav-spacer{ height:var(--ls-nav-height-d); } }

/* -------- Hero sizes / Image behavior -------- */
.ls-hero-h{ height:46vw; }
@media (min-width:640px){ .ls-hero-h{ height:420px; } }
@media (min-width:1024px){ .ls-hero-h{ height:520px; } }
@media (min-width:1280px){ .ls-hero-h{ height:600px; } }

.ls-img-contain{ object-fit:contain; object-position:center; }
.ls-img-cover{ object-fit:cover; object-position:center; }

/* -------- Link glow (hover) -------- */
.ls-link-glow{
  transition: color .15s ease, text-shadow .15s ease;
}
.ls-link-glow:hover{
  text-decoration:underline;
  text-shadow:0 0 0 rgba(0,0,0,0), 0 0 12px rgba(99,102,241,.25);
}

/* -------- List row hover -------- */
.ls-row{ transition: background-color .15s ease, box-shadow .15s ease; }
.ls-row:hover{
  background:#fff;
  box-shadow:0 6px 18px rgba(99,102,241,.06);
}

/* -------- Prose -------- */
.ls-prose{ max-width:var(--ls-prose-max); line-height:var(--ls-leading); color:var(--ls-text); }
.ls-prose p{ margin:0 0 1em; }
.ls-prose h1,.ls-prose h2,.ls-prose h3{ line-height:1.25; margin:1.2em 0 .6em; }
.ls-prose ul,.ls-prose ol{ padding-left:1.25em; margin:0 0 1em; }

/* -------- Footer -------- */
.ls-footer{ background:var(--ls-surface); border-top:1px solid var(--ls-border); }

/* -------- Dark Theme (optional) -------- */
[data-theme="dark"]{
  --ls-bg:#0b0f17;
  --ls-surface:#0f172a;
  --ls-border:#1f2937;
  --ls-text:#e5e7eb;
  --ls-muted:#9ca3af;
}

.game-card {
    border-radius: 1rem;
    background: var(--card-bg);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

/* ใส่ใน laststand-theme.css */
.ls-clamp-2{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.ls-clamp-3{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

.ajaxloader{
  display: none;
}

/* Overlay ตรง base.html มีโครงไว้แล้ว */
.div-screen-blocker {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  display: none;            /* แสดงเมื่อมี .add-flex */
  z-index: 9999;
}
.div-screen-blocker.add-flex {
  display: flex; align-items: center; justify-content: center;
}
.div-disp-screen-blocker { max-width: 90vw; max-height: 90vh; }
.inv-slip-big {
  max-width: 90vw; max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* ======== Navbar Components ======== */

/* GESTA navbar — white bar over the cream page, navy type, and the
   jester's three colours as a hairline under it */
.gesta-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--ls-border);
  box-shadow: 0 1px 3px rgba(17, 34, 65, 0.06);
  position: relative;
}
.gesta-nav::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: linear-gradient(90deg,
    var(--brand-teal) 0 33.3%, var(--brand-amber) 33.3% 66.6%,
    var(--brand-coral) 66.6% 100%);
}
.gesta-nav .gesta-nav-link {
  color: #55607a;
  text-decoration: none;
  transition: color 0.15s ease;
}
.gesta-nav .gesta-nav-link:hover { color: var(--brand-deep); }
.gesta-nav .nav-link-active { color: var(--brand-deep) !important; }
.gesta-nav .nav-underline { background: var(--brand-teal); }
.gesta-nav .nav-icon-btn {
  background: #ffffff;
  border-color: var(--ls-border);
  color: #55607a;
}
.gesta-nav .nav-icon-btn:hover { background: var(--ls-accent-50); color: var(--brand-deep); }
.gesta-nav .nav-user-btn {
  background: #ffffff;
  border-color: var(--ls-border);
}
.gesta-nav .nav-user-btn:hover { background: var(--ls-accent-50); box-shadow: 0 2px 8px rgba(17,34,65,0.08); }
.gesta-nav .nav-user-btn span { color: var(--brand-deep) !important; }
.gesta-nav .nav-user-btn .fa-chevron-right { color: var(--brand-teal) !important; }
.gesta-lockup { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.gesta-lockup:hover { text-decoration: none; }
.gesta-logo { height: 38px; width: auto; display: block; }
@media (min-width: 768px) { .gesta-logo { height: 46px; } }
.gesta-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: 1px solid rgba(27, 59, 111, 0.55);
  color: var(--brand-bright);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.gesta-login-btn:hover { background: var(--ls-accent-50); color: var(--brand-deep); }
.gesta-nav .gesta-burger {
  border: 1px solid var(--ls-border) !important;
  color: var(--brand-deep);
}

/* Text wordmark — stand-in until the vector logo arrives */
.gesta-wordmark {
  font-family: 'Oswald', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.32em;
  padding-left: 0.16em;   /* optically recenter the tracking tail */
  color: var(--brand-deep);
  line-height: 1;
  text-decoration: none;
}
.gesta-wordmark:hover { color: var(--brand); text-decoration: none; }
.gesta-wordmark--onlight { color: var(--brand-deep); }
.gesta-wordmark--onlight:hover { color: var(--brand); }

/* Generic dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background: var(--ls-surface);
  border: 1px solid var(--ls-border);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 0.5rem;
  z-index: 50;
}
.nav-dropdown-menu.is-open { display: block; }

/* Game items in dropdown */
.nav-game-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--ls-text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s ease;
}
.nav-game-item:hover { background: #f3f4f6; color: var(--ls-text); }
.nav-game-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ARENA button — esports gradient with texture */
.nav-arena-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 1rem 0.4rem 0.75rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #4c1d95);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-arena-btn::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 4px,
    rgba(255,255,255,0.06) 4px, rgba(255,255,255,0.06) 8px
  );
  pointer-events: none;
}
.nav-arena-btn::after {
  content: "";
  position: absolute;
  bottom: 0; left: 10%; width: 80%; height: 2px;
  background: linear-gradient(90deg, transparent, #a78bfa, transparent);
}
.nav-arena-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(99,102,241,0.4);
  color: #fff;
  text-decoration: none;
}
.nav-arena-icon {
  font-size: 0.9rem;
  filter: drop-shadow(0 0 3px rgba(167,139,250,0.6));
}

/* User button (pill with avatar) */
.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border-radius: 9999px;
  border: 1px solid var(--ls-border);
  background: var(--ls-surface);
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  font-size: 0.85rem;
}
.nav-user-btn:hover {
  background: #f9fafb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Avatar circle */
.nav-avatar {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  object-fit: cover;
}
.nav-avatar-initials {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b3b6f, #a8a9ad);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* User dropdown */
.nav-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 220px;
  background: var(--ls-surface);
  border: 1px solid var(--ls-border);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  padding: 0.5rem;
  z-index: 50;
}
.nav-user-dropdown.is-open { display: block; }
.nav-user-dropdown a,
.nav-user-dropdown button {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  color: var(--ls-text);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.nav-user-dropdown a:hover,
.nav-user-dropdown button:hover { background: #f3f4f6; }
.nav-divider {
  height: 1px;
  background: var(--ls-border);
  margin: 0.375rem 0;
}

/* Bell / Cart icon button */
.nav-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--ls-border);
  background: var(--ls-surface);
  color: var(--ls-muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-icon-btn:hover { background: #f3f4f6; color: var(--ls-text); }
.nav-icon-badge {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 1rem; height: 1rem;
  border-radius: 9999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* Offcanvas overrides */
.nav-offcanvas {
  width: 85vw !important;
  max-width: 360px !important;
  border-left: none !important;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15) !important;
  z-index: 1055 !important;
}
/* Dark backdrop behind offcanvas */
.offcanvas-backdrop {
  background-color: #000 !important;
  z-index: 1050 !important;
}
.offcanvas-backdrop.show {
  opacity: 0.5 !important;
}
.nav-offcanvas .offcanvas-header {
  border-bottom: 1px solid var(--ls-border);
  padding: 0.75rem 1rem;
  min-height: auto !important;
}
.nav-offcanvas .offcanvas-body {
  padding: 0.75rem 1rem;
  overflow-y: auto;
}
.nav-offcanvas-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ls-text);
  text-decoration: none;
  transition: background 0.15s ease;
}
.nav-offcanvas-link:hover,
.nav-offcanvas-link.is-active { background: #f3f4f6; }
.nav-offcanvas-section {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ls-muted);
  margin: 1rem 0 0.375rem 0.75rem;
}

/* Desktop-only elements (hidden on mobile) */
.nav-desktop-only { display: none !important; }
@media (min-width: 768px) {
  .nav-desktop-only { display: inline-flex !important; }
  .nav-desktop-only.nav-desktop-flex { display: flex !important; }
  .nav-desktop-only.nav-desktop-block { display: block !important; }
}
.nav-mobile-only { display: inline-flex; }
@media (min-width: 768px) {
  .nav-mobile-only { display: none !important; }
}

/* Nav link active state */
.nav-link-active {
  color: #111827 !important;
  font-weight: 600 !important;
}

/* Mobile arena card in offcanvas */
.nav-arena-mobile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #6366f1, #4c1d95);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.5rem 0;
  transition: opacity 0.15s ease;
}
.nav-arena-mobile:hover { opacity: 0.9; color: #fff; text-decoration: none; }

/* ======== Product Catalog (gm-) ======== */

/* Filter toolbar */
/* ── Products / Games Page ── */

.gm-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
.gm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gm-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.gm-pill:hover {
  border-color: #9ca3af;
  color: #111827;
  background: #f9fafb;
  text-decoration: none;
}
.gm-pill.is-active {
  background: #111827;
  border-color: #111827;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.gm-pill.is-active .nav-game-dot { box-shadow: 0 0 0 2px rgba(255,255,255,0.5); }
.gm-filter-select {
  padding: 0.35rem 2rem 0.35rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  color: #111827;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
  cursor: pointer;
  transition: border-color .15s;
}
.gm-filter-select:hover { border-color: #9ca3af; }
.gm-count {
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: 500;
  margin-left: auto;
}

/* Product grid */
.gm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
}
@media (min-width: 640px) { .gm-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .gm-grid { grid-template-columns: repeat(4, 1fr); } }

/* Section headers (grouped view) */
.gm-section-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 2rem 0 1rem;
  padding: .625rem 0;
  border-bottom: none;
  position: relative;
}
.gm-section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #e5e7eb 0%, transparent 100%);
}
.gm-section-header:first-child { margin-top: .75rem; }
.gm-section-icon {
  width: 2rem; height: 2rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: .5rem;
  font-size: .85rem;
  flex-shrink: 0;
}
.gm-section-icon--booster { background: #eff6ff; color: #2563eb; }
.gm-section-icon--starter { background: #fef3c7; color: #d97706; }
.gm-section-icon--accessory { background: #f3e8ff; color: #7c3aed; }
.gm-section-icon--promo { background: #ecfdf5; color: #059669; }
.gm-section-icon--default { background: #f3f4f6; color: #6b7280; }
.gm-section-title {
  font-size: .95rem;
  font-weight: 700;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
}
.gm-section-count {
  font-size: .65rem;
  font-weight: 700;
  color: #6b7280;
  background: #f3f4f6;
  padding: 2px 9px;
  border-radius: 9999px;
  flex-shrink: 0;
}

/* Product card */
.gm-product {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.gm-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.1);
  border-color: #d1d5db;
}
.gm-product__img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  cursor: pointer;
  overflow: hidden;
}
.gm-product__img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .3s ease;
}
.gm-product:hover .gm-product__img {
  transform: scale(1.03);
}
.gm-product__body {
  padding: 0.75rem 1rem 0.875rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.gm-product__name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
  margin: 0;
  line-height: 1.35;
  transition: color .15s;
}
.gm-product__name:hover { color: #1b3b6f; }
.gm-product__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.375rem;
  font-size: 0.7rem;
  color: #9ca3af;
  font-weight: 500;
}
.gm-product__type-tag {
  display: inline-flex;
  align-items: center;
  font-size: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 1px 7px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
  margin-top: .35rem;
}
.gm-product__price {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  align-items: baseline;
  gap: .25rem;
  flex-wrap: wrap;
}
.gm-product__price-label {
  font-size: .55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #9ca3af;
  padding: 1px 5px;
  border-radius: 3px;
  background: #f3f4f6;
}
.gm-product__price-label--wp {
  color: #065f46;
  background: #ecfdf5;
  margin-left: .25rem;
}
.gm-product__price-msrp {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}
.gm-product__price-wp {
  font-size: 0.9rem;
  font-weight: 800;
  color: #059669;
  letter-spacing: -.01em;
}
.gm-product__actions {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.375rem;
}

/* Badges */
.gm-badge {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 2;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  backdrop-filter: blur(6px);
}
.gm-badge--preorder {
  background: rgba(255,247,237,.9);
  color: #c2410c;
  border: 1px solid #fed7aa;
}
.gm-badge--oos {
  background: rgba(243,244,246,.9);
  color: #6b7280;
  border: 1px solid #d1d5db;
}

/* Buttons */
.gm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.gm-btn--dark { background: #111827; color: #fff; }
.gm-btn--dark:hover { background: #374151; box-shadow: 0 2px 8px rgba(17,24,39,.2); }
.gm-btn--green { background: #059669; color: #fff; }
.gm-btn--green:hover { background: #047857; box-shadow: 0 2px 8px rgba(5,150,105,.25); }
.gm-btn--disabled { background: #f3f4f6; color: #9ca3af; cursor: not-allowed; }
.gm-btn--lg {
  padding: 0.625rem 1rem;
  font-size: 0.85rem;
  border-radius: 0.75rem;
}

/* Pagination */
.gm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 2rem;
  padding: 1rem 0;
}
.gm-pagination a,
.gm-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.125rem;
  height: 2.125rem;
  padding: 0 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}
.gm-pagination a { color: #374151; border: 1px solid #e5e7eb; background: #fff; }
.gm-pagination a:hover { background: #f3f4f6; border-color: #d1d5db; }
.gm-pagination .is-current {
  background: #111827;
  color: #fff;
  border: 1px solid #111827;
  box-shadow: 0 2px 4px rgba(0,0,0,.12);
}
.gm-pagination .is-disabled {
  color: #d1d5db;
  border: 1px solid #f3f4f6;
  cursor: default;
}

/* Detail page */
.gm-detail-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.375rem 1rem;
  font-size: 0.85rem;
}
.gm-detail-specs dt { color: var(--ls-muted); white-space: nowrap; }
.gm-detail-specs dd { font-weight: 500; margin: 0; }

/* Game tag pill on detail */
.gm-game-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.2rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
}

/* Empty state */
.gm-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ls-muted);
  padding: 3rem 1rem;
  font-size: 0.9rem;
}