@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Cinzel:wght@400;600&family=Crimson+Text:ital,wght@0,400;1,400&display=swap');

/* =====================
   VARIABLES
   ===================== */
:root {
  --bg:          #161310;
  --bg2:         #1e1a14;
  --bg3:         #252018;
  --header-bg:   #0f0d0a;
  --footer-bg:   #0f0d0a;
  --border:      #3a3020;
  --border-hi:   #6a5030;
  --gold:        #c8922a;
  --gold-hi:     #e8b040;
  --red:         #c0392b;
  --text:        #e0ccaa;
  --text2:       #a08858;
  --text3:       #604830;
}

/* =====================
   RESET
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* =====================
   PAGE BACKGROUNDS
   ===================== */

body.cult {
    position: relative;
    background-color: #161310 !important;
}

body.cult::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('../source/cult of the lamb/kMLcjVFA62c5SaCj4Ck3cR.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(4px) brightness(0.45);
    z-index: -1;
    pointer-events: none;
    transform: scale(1.05);
}

body.dead-cells {
    position: relative;
    background-color: #161310 !important;
}

body.dead-cells::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('../source/dead cells/dead-cells-key-art.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(4px) brightness(0.45);
    z-index: -1;
    pointer-events: none;
    transform: scale(1.05);
}

body.elden-ring {
    position: relative;
    background-color: #161310 !important;
}

body.elden-ring::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('../source/elden ring/hcFeWRVGHYK72uOw6Mn6f4Ms.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(4px) brightness(0.45);
    z-index: -1;
    pointer-events: none;
    transform: scale(1.05);
}

body.hollow-knight {
    position: relative;
    background-color: #161310 !important;
}

body.hollow-knight::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('../source/hollow knight/hollow-knight-pc-mac-jeu-steam-cover.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(4px) brightness(0.45);
    z-index: -1;
    pointer-events: none;
    transform: scale(1.05);
}

body.risk {
  position: relative;
  background-color: #161310 !important;
}

body.risk::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('../source/risk of rain 2/H2x1_NSwitch_RiskOfRain2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(4px) brightness(0.45);
  z-index: -1;
  pointer-events: none;
  transform: scale(1.05);
}

body.terraria {
  position: relative;
  background-color: #161310 !important;
}

body.terraria::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('../source/terraria/terraria_cover.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(4px) brightness(0.45);
  z-index: -1;
  pointer-events: none;
  transform: scale(1.05);
}

body {
  font-family: 'Crimson Text', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--gold); text-decoration: none; }
img { display: block; max-width: 100%; }

/* =====================
   HEADER
   ===================== */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 40px;
  height: 90px;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  padding-top: 20px;
  height: 150px;
  width: auto;
}

.logo-text {
  font-family: 'Cinzel Decorative', serif;
  font-size: 11px;
  line-height: 1.35;
  color: var(--gold);
}

.logo-text small {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--text2);
  text-transform: uppercase;
}

/* Nav */
.nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-right: 150px;
}

.nav a {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  color: var(--text2);
  padding: 8px 22px;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

.nav a.active {
  color: var(--gold);
  border-color: var(--border);
  background: var(--bg2);
}

/* Cart icon */
.cart-icon {
  flex-shrink: 0;
  color: var(--text2);
  font-size: 26px;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.cart-icon:hover { color: var(--gold); }

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 24px 20px 20px;
  text-align: center;
  margin-top: auto;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.social {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s;
}
.social:hover { opacity: 0.8; }
.social.fb { background: #1877f2; }
.social.x  { background: #111; border: 1px solid #333; font-family: sans-serif; }
.social.yt { background: #ff0000; }

.footer-copy {
  font-size: 12px;
  color: var(--text3);
  font-style: italic;
  line-height: 1.7;
}

.footer-copy .heart { color: var(--red); }

/* =====================
   PAGE WRAPPER
   ===================== */
.page {
  flex: 1;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 24px 60px;
}

/* =====================
   GENERAL PAGE CENTERING
   ===================== */
.general-page {
  max-width: 620px;
  margin: 0 auto;
}

/* =====================
   GENERAL PAGE
   ===================== */
.hero-image {
  width: 60%;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 30px;
  background: var(--bg2);
  align-content: center;
  display: flex;
  margin-left: 160px;
}

/* Placeholder shown when no image yet */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text3);
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 1px;
}

.img-placeholder span { font-size: 11px; font-family: 'Crimson Text', serif; font-style: italic; }

.general-heading {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 18px;
}

.general-text p {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text2);
  margin-bottom: 14px;
}

.general-text p:last-child { margin-bottom: 0; }
.general-text em { color: var(--text); font-style: italic; }

/* =====================
   LOGIN PAGE
   ===================== */
.login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
}

.login-box {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 22px;
  text-align: center;
}

.login-input {
  width: 100%;
  padding: 10px 13px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: 'Crimson Text', serif;
  font-size: 16px;
  outline: none;
  margin-bottom: 10px;
}

.login-input::placeholder { color: var(--text3); }
.login-input:focus { border-color: var(--border-hi); }

.btn-main {
  width: 100%;
  padding: 11px;
  background: var(--bg3);
  border: 1px solid var(--border-hi);
  border-radius: 4px;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: var(--gold);
  cursor: pointer;
  margin-bottom: 8px;
  transition: background 0.2s, border-color 0.2s;
  text-align: center;
  display: block;
}

.btn-main:hover { background: var(--bg2); border-color: var(--gold); }

.or-text {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: var(--text3);
  margin: 2px 0 8px;
  letter-spacing: 1px;
}

.btn-secondary {
  width: 100%;
  padding: 11px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: var(--text2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
  display: block;
}

.btn-secondary:hover { color: var(--text); background: var(--bg3); }

.forgot-link {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 1px;
  margin-top: 13px;
  text-decoration: none;
  transition: color 0.2s;
}
.forgot-link:hover { color: var(--gold); }

/* =====================
   COLLECTION PAGE
   ===================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.game-tile {
  border: 2px solid var(--border);
  border-radius: 8px;
  aspect-ratio: 2 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  background: var(--bg2);
  position: relative;
}

.game-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.game-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.game-label {
  font-family: 'Cinzel Decorative', serif;
  font-size: 14px;
  text-align: center;
  line-height: 1.3;
  pointer-events: none;
}

/* =====================
   PLUSHIES PAGE
   ===================== */
.plushies-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: var(--text2);
  text-decoration: none;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.plushies-back:hover { color: var(--gold); border-color: var(--border-hi); }

.plushies-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.plush-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.plush-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.plush-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

.plush-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ccc;
  overflow: hidden;
  position: relative;
}

.plush-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plush-card-img .no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: #888;
  background: #c8c6be;
  letter-spacing: 1px;
}

.plush-card-body {
  padding: 10px 12px 12px;
  background: var(--bg2);
}

.plush-card-name {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: var(--text);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plush-card-price {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--gold);
}

/* =====================
   FEATURED PAGE
   ===================== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.featured-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.featured-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

.featured-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #c8c6be;
  overflow: hidden;
  position: relative;
}

.featured-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* REPLACE: src="images/plushies/plush_name.jpg" — see HTML */
}

.featured-card-img .no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: #888;
  background: #c8c6be;
  letter-spacing: 1px;
}

/* Discount badge */
.discount-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}

.featured-card-body {
  padding: 10px 12px 12px;
}

.featured-card-name {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: var(--text);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-card-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-orig {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  color: var(--text3);
  text-decoration: line-through;
}

.price-sale {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: var(--red);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 640px) {
  .site-header { padding: 0 16px; }
  .logo-text { display: none; }
  .nav a { padding: 6px 10px; font-size: 12px; }

  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .plush-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 400px) {
  .plush-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
}
/* =====================
   CART SIDEBAR
   ===================== */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  backdrop-filter: blur(2px);
}
.cart-overlay.open { display: block; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 360px;
  height: 100vh;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  box-shadow: -8px 0 30px rgba(0,0,0,0.6);
}
.cart-sidebar.open { right: 0; }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.cart-head-title {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.cart-close-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text2);
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.cart-close-btn:hover { border-color: var(--gold); color: var(--gold); }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-empty-msg {
  text-align: center;
  color: var(--text3);
  font-style: italic;
  font-size: 16px;
  padding: 40px 0;
  line-height: 1.8;
}
.cart-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cart-item-info { flex: 1; }
.cart-item-name {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  color: var(--text);
  margin-bottom: 6px;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}
.qty-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  width: 22px; height: 22px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.qty-btn:hover { border-color: var(--gold); color: var(--gold); }
.qty-del:hover { border-color: var(--red); color: var(--red); }
.qty-val {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  min-width: 16px;
  text-align: center;
  color: var(--text);
}
.cart-item-price {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--gold);
  flex-shrink: 0;
}

.cart-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.cart-total-label {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: var(--text2);
  letter-spacing: 1px;
}
.cart-total-val {
  font-family: 'Cinzel Decorative', serif;
  font-size: 17px;
  color: var(--gold-hi);
}
.btn-checkout {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, var(--gold), #7a5010);
  border: none;
  border-radius: 4px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-checkout:hover { opacity: 0.85; }

/* =====================
   CART ICON / BADGE
   ===================== */
.cart-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.cart-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.cart-count {
  display: none;
  position: absolute;
  top: -6px; right: -8px;
  background: var(--red);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: bold;
  width: 18px; height: 18px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--header-bg);
}
.cart-count.visible { display: flex; }

/* =====================
   ADD TO CART BUTTON
   ===================== */
.add-to-cart-btn {
  width: 100%;
  margin-top: 8px;
  padding: 7px;
  background: var(--bg3);
  border: 1px solid var(--border-hi);
  border-radius: 3px;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.2s;
}
.add-to-cart-btn:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

/* =====================
   AUTH IN NAV
   ===================== */
.nav-username {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--gold);
}
.nav-logout {
  background: none;
  border: 1px solid var(--border);
  color: var(--text3);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 3px;
  cursor: pointer;
  margin-left: 6px;
  transition: all 0.2s;
}
.nav-logout:hover { color: var(--red); border-color: var(--red); }

/* =====================
   LOGIN TABS
   ===================== */
.login-tabs {
  display: flex;
  width: 100%;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.tab-btn {
  flex: 1;
  padding: 9px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text3);
  cursor: pointer;
  margin-bottom: -1px;
  transition: all 0.2s;
}
.tab-btn:hover { color: var(--text2); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

.tab-panel { display: none; width: 100%; flex-direction: column; align-items: center; }
.tab-panel.active { display: flex; }

.form-error {
  display: none;
  width: 100%;
  padding: 8px 12px;
  background: rgba(192,57,43,0.15);
  border: 1px solid var(--red);
  border-radius: 4px;
  color: #e74c3c;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-align: center;
}

.forgot-desc {
  font-size: 15px;
  color: var(--text3);
  font-style: italic;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.6;
}

.forgot-success {
  display: none;
  width: 100%;
  margin-top: 12px;
  padding: 9px 12px;
  background: rgba(45,106,45,0.2);
  border: 1px solid #2d6a2d;
  border-radius: 4px;
  color: #5cb85c;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  text-align: center;
}

/* =====================
   TOAST
   ===================== */
.mr-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg3);
  border: 1px solid var(--gold);
  color: var(--text);
  font-family: 'Cinzel', serif;
  font-size: 12px;
  padding: 10px 22px;
  border-radius: 4px;
  z-index: 9999;
  transition: transform 0.3s;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  pointer-events: none;
}
.mr-toast.show { transform: translateX(-50%) translateY(0); }

@media (max-width: 640px) {
  .cart-sidebar { width: 100%; right: -100%; }
}

/* =====================
   AUTH-LINK ALIGNMENT FIX
   ===================== */
#auth-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#auth-link a {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  color: var(--text2);
  padding: 8px 22px;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  text-decoration: none;
}

#auth-link a:hover { color: var(--text); }
#auth-link a.active { color: var(--gold); border-color: var(--border); background: var(--bg2); }

/* =====================
   MOBILE — hamburger menu
   ===================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 7px 9px;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: background 0.2s;
}
.hamburger:hover span { background: var(--gold); }

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 400;
  backdrop-filter: blur(2px);
}
.mobile-nav-overlay.open { display: block; }

.mobile-nav {
  position: fixed;
  top: 0;
  left: -280px;
  width: 260px;
  height: 100vh;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  z-index: 500;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  transition: left 0.3s ease;
  box-shadow: 6px 0 24px rgba(0,0,0,0.5);
}
.mobile-nav.open { left: 0; }

.mobile-nav-close {
  align-self: flex-end;
  margin-right: 16px;
  margin-bottom: 20px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text2);
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.mobile-nav-close:hover { border-color: var(--gold); color: var(--gold); }

.mobile-nav a,
.mobile-nav-auth a {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--text2);
  text-decoration: none;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
  display: block;
}
.mobile-nav a:hover,
.mobile-nav-auth a:hover { color: var(--gold); background: var(--bg3); }
.mobile-nav a.active,
.mobile-nav-auth a.active { color: var(--gold); }

.mobile-nav-auth {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-username {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}
.mobile-nav-logout {
  background: none;
  border: 1px solid var(--border);
  color: var(--text3);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}
.mobile-nav-logout:hover { color: var(--red); border-color: var(--red); }

/* =====================
   RESPONSIVE BREAKPOINTS
   ===================== */
@media (max-width: 768px) {
  /* Header: hide desktop nav, show hamburger */
  .site-header { padding: 0 16px; height: 70px; gap: 12px; }
  .nav { display: none; }
  .hamburger { display: flex; }
  .logo-img { height: 150px; }

  /* Pages */
  .page { padding: 24px 16px 48px; }

  /* Grids → 2 columns */
  .games-grid    { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .plush-grid    { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Hero image */
  .hero-image { width: 90%; margin-left: auto; margin-right: auto; }

  /* Login box */
  .login-box { max-width: 100%; }

  /* Cart sidebar */
  .cart-sidebar { width: 100%; right: -100%; }

  /* Plushies title */
  .plushies-title { font-size: 16px; }
}

@media (max-width: 480px) {
  /* Single column for small phones */
  .games-grid    { grid-template-columns: 1fr 1fr; }
  .plush-grid    { grid-template-columns: 1fr 1fr; }
  .featured-grid { grid-template-columns: 1fr 1fr; }

  .plush-card-name,
  .featured-card-name { font-size: 10px; }

  .site-header { height: 60px; }
  .logo-img { height: 150px; }

  /* Smaller cart */
  .cart-head-title { font-size: 13px; }
  .cart-item-name  { font-size: 10px; }
}

/* =====================
   MOBILE HEADER LAYOUT
   hamburger | logo (center) | cart
   ===================== */
@media (max-width: 768px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 14px;
    height: 70px;
  }

  /* Hamburger — left slot */
  .hamburger {
    justify-self: start;
    order: 1;
  }

  /* Logo — center slot */
  .logo {
    justify-self: center;
    order: 2;
    height: 10px;
  }

  /* Hide desktop nav */
  .nav { display: none; }

  /* Cart — right slot */
  .cart-wrap {
    justify-self: end;
    order: 3;
  }
}