/* ═══════════════════════════════════════
   HOLOFOIL — GLOBAL STYLES
   ═══════════════════════════════════════ */

/* --- Reset & Variables --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep:     #000000;
  --bg-base:     #050505;
  --bg-card:     #0a0a0a;
  --bg-elevated: #101010;
  --bg-input:    #080808;
  --border:         rgba(255,255,255,0.10);
  --border-strong:  rgba(255,255,255,0.20);
  --border-holo:    rgba(212,197,160,0.22);
  --text-primary:   #fafaf8;
  --text-secondary: #888880;
  --text-muted:     #3a3a38;
  /* Holographic palette — logo colors */
  --holo-gold: #d4c5a0;
  --holo-cyan: #7dd5e6;
  --holo-pink: #e879b0;
  --holo-lav:  #c4a8e0;
  /* Aliases */
  --holo-1: #7dd5e6;
  --holo-2: #c4a8e0;
  --holo-3: #e879b0;
  --holo-4: #d4c5a0;
  --holo-5: #e879b0;
  --holo-grad: linear-gradient(90deg, #d4c5a0 0%, #b2cdd8 9%, #7dd5e6 18%, #8ab5e8 27%, #c4a8e0 36%, #df82ca 45%, #e879b0 50%, #df82ca 55%, #c4a8e0 64%, #8ab5e8 73%, #7dd5e6 82%, #b2cdd8 91%, #d4c5a0 100%);

  --white-glass:    rgba(255,255,255,0.04);
  --white-glass-hv: rgba(255,255,255,0.08);
  --radius:    12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Syne', sans-serif;
  --font-body:    'Outfit', sans-serif;
}

html {
  scroll-behavior: smooth;
  background-color: #000;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  animation: pageFadeIn 0.1s ease;
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ═══════════════════════════════════════
   HOLOGRAPHIC EFFECTS
   ═══════════════════════════════════════ */
.holo-text {
  background: linear-gradient(90deg,
    #d4c5a0 0%,
    #b2cdd8 9%,
    #7dd5e6 18%,
    #8ab5e8 27%,
    #c4a8e0 36%,
    #df82ca 45%,
    #e879b0 50%,
    #df82ca 55%,
    #c4a8e0 64%,
    #8ab5e8 73%,
    #7dd5e6 82%,
    #b2cdd8 91%,
    #d4c5a0 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: holoShift 14s linear infinite;
}

@keyframes holoShift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOutDown {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(20px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes sheenSlide {
  0%   { transform: translateX(-110%) skewX(-12deg); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateX(110%) skewX(-12deg); opacity: 0; }
}

/* --- Buttons --- */
.holo-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  overflow: hidden;
  transition: var(--transition);
  z-index: 1;
}
.holo-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg,
    #d4c5a0 0%, #b2cdd8 9%, #7dd5e6 18%,
    #8ab5e8 27%, #c4a8e0 36%, #df82ca 45%,
    #e879b0 50%, #df82ca 55%, #c4a8e0 64%,
    #8ab5e8 73%, #7dd5e6 82%, #b2cdd8 91%,
    #d4c5a0 100%
  );
  background-size: 200% auto;
  animation: holoShift 14s linear infinite;
  will-change: background-position;
  z-index: -1;
}
.holo-btn::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: var(--bg-base);
  z-index: -1;
  transition: var(--transition);
}
.holo-btn:hover::after { opacity: 0; }
.holo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(125, 213, 230, 0.25);
}

.holo-btn-filled {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  overflow: hidden;
  transition: var(--transition);
  background: linear-gradient(90deg,
    #d4c5a0 0%, #b2cdd8 9%, #7dd5e6 18%,
    #8ab5e8 27%, #c4a8e0 36%, #df82ca 45%,
    #e879b0 50%, #df82ca 55%, #c4a8e0 64%,
    #8ab5e8 73%, #7dd5e6 82%, #b2cdd8 91%,
    #d4c5a0 100%
  );
  background-size: 200% auto;
  animation: holoShift 14s linear infinite;
  will-change: background-position;
  color: #000;
}
.holo-btn-filled:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,197,160,0.3);
}

/* ═══════════════════════════════════════
   AMBIENT BACKGROUND
   ═══════════════════════════════════════ */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.05;
  will-change: transform;
}
.ambient-bg .orb:nth-child(1) {
  width: 600px; height: 600px;
  background: #7dd5e6;
  top: -200px; left: -100px;
  animation: orbFloat1 20s ease-in-out infinite;
}
.ambient-bg .orb:nth-child(2) {
  width: 500px; height: 500px;
  background: #c4a8e0;
  bottom: -150px; right: -100px;
  animation: orbFloat2 25s ease-in-out infinite;
}
.ambient-bg .orb:nth-child(3) {
  width: 400px; height: 400px;
  background: #e879b0;
  top: 40%; left: 50%;
  animation: orbFloat3 18s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(100px, 80px); }
  66% { transform: translate(-50px, 120px); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-80px, -60px); }
  66% { transform: translate(60px, -100px); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-120px, 60px); }
}

/* ═══════════════════════════════════════
   PARTICLES CANVAS
   ═══════════════════════════════════════ */
.particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════
   NAVBAR — Liquid Glass
   ═══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1320px;
  z-index: 1000;
  padding: 0 32px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Liquid glass — blanc sur noir */
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  box-shadow:
    0 4px 32px rgba(0,0,0,0.5),
    0 1px 0 rgba(255,255,255,0.12) inset,
    0 -1px 0 rgba(0,0,0,0.2) inset;
  transition: var(--transition);
}
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18%; right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125,213,230,0.35), rgba(232,121,176,0.28), rgba(196,168,224,0.3), transparent);
  opacity: 0.55;
  border-radius: 0 0 20px 20px;
  pointer-events: none;
}
.navbar.scrolled {
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255,255,255,0.10);
  box-shadow:
    0 8px 40px rgba(0,0,0,0.6),
    0 1px 0 rgba(255,255,255,0.08) inset;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}
.nav-logo, .nav-logo * { text-decoration: none; }
.nav-logo-img {
  height: 42px;
  width: 42px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}
.nav-logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fafaf8;
  white-space: nowrap;
  line-height: 1;
  display: flex;
  align-items: center;
}
.nav-logo-tm {
  font-size: 0.52em;
  font-weight: 600;
  align-self: flex-start;
  margin-top: 0.1em;
  letter-spacing: 0;
  opacity: 0.6;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: #d4c5a0;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cart-btn {
  position: relative;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.cart-btn:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
}
.cart-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute;
  top: -2px; right: -2px;
  width: 18px; height: 18px;
  background: linear-gradient(135deg, #d4c5a0, #bfa880);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: var(--transition);
}
.cart-count.visible {
  opacity: 1;
  transform: scale(1);
}
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  padding: 9px 7px;
  flex-shrink: 0;
  transition: var(--transition);
}
.mobile-toggle:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
}
.mobile-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════════════════════════════
   SECTION UTILITIES
   ═══════════════════════════════════════ */
.page-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: 92px; /* 60px navbar + 16px top + 16px gap */
}

.section-header {
  margin-bottom: 44px;
}
.section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d4c5a0;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: #d4c5a0;
  opacity: 0.55;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fafaf8;
}

/* ═══════════════════════════════════════
   CARD COMPONENT
   ═══════════════════════════════════════ */
.poke-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(10,10,12,0.72);
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), box-shadow 0.32s ease, border-color 0.32s ease, background 0.32s ease;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.05) inset;
  contain: layout style;
  will-change: transform;
}
.poke-card:hover {
  border-color: rgba(212,197,160,0.45);
  transform: translateY(-8px);
  box-shadow:
    0 32px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(212,197,160,0.22),
    0 0 40px rgba(212,197,160,0.06),
    0 1px 0 rgba(255,255,255,0.08) inset;
  background: rgba(14,14,18,0.85);
}
.poke-card-img {
  position: relative;
  aspect-ratio: 3/4;
  background: linear-gradient(155deg, #0d0d10, #080808);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.poke-card-img > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
  transition: transform 0.42s cubic-bezier(0.4,0,0.2,1);
}
.poke-card:hover .poke-card-img > img { transform: scale(1.05); }
.poke-card-img .card-visual {
  width: 76%; height: 84%;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.poke-card-img .card-visual .card-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.poke-card-img .card-visual .card-name-overlay {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.poke-card-img .card-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  color: #000;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}
.poke-card-img .card-badge.new { background: rgba(125,213,230,0.96); }
.poke-card-img .card-badge.hot { background: rgba(232,121,176,0.96); }
.poke-card-img .holo-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 18%,
    rgba(212,197,160,0.04) 30%,
    rgba(125,213,230,0.22) 41%,
    rgba(232,121,176,0.18) 50%,
    rgba(196,168,224,0.18) 59%,
    rgba(212,197,160,0.04) 70%,
    transparent 82%
  );
  opacity: 0;
  pointer-events: none;
}
.poke-card:hover .holo-sheen {
  animation: sheenSlide 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.poke-card-info { padding: 15px 17px 17px; }
.poke-card-set {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4c5a0;
  margin-bottom: 6px;
  opacity: 0.8;
}
.poke-card-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
  color: #fafaf8;
}
.poke-card-rarity {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.38);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.poke-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.poke-card-price {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  color: #fafaf8;
}
.add-cart-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background: rgba(255,255,255,0.04);
  flex-shrink: 0;
}
.add-cart-btn:hover {
  background: rgba(212,197,160,0.12);
  border-color: rgba(212,197,160,0.4);
  transform: scale(1.06);
}
.add-cart-btn svg { width: 16px; height: 16px; }

/* Condition badges */
.condition-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: normal;
  vertical-align: baseline;
}
.condition-mint { background: rgba(125, 213, 230, 0.1); color: #7dd5e6; }
.condition-nm { background: rgba(74, 222, 128, 0.1); color: #4ade80; }
.condition-ex { background: rgba(250, 204, 21, 0.1); color: #facc15; }
.condition-good { background: rgba(232, 121, 176, 0.1); color: #e879b0; }
.condition-played { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0 30px;
  background: rgba(6, 6, 11, 0.92);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo-img {
  height: 44px;
  width: 44px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.footer-logo-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  display: flex;
  align-items: center;
}
.footer-logo-tm {
  font-size: 0.5em;
  font-weight: 600;
  align-self: flex-start;
  margin-top: 0.12em;
  opacity: 0.55;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 300px;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-socials {
  display: flex;
  gap: 16px;
}
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.footer-socials a:hover {
  border-color: rgba(212,197,160,0.35);
  background: rgba(212,197,160,0.06);
}
.footer-socials svg { width: 16px; height: 16px; color: var(--text-secondary); }

.footer-payments {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.footer-payments-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.footer-payments-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.pay-icon {
  height: 28px;
  width: auto;
  border-radius: 4px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.pay-icon:hover { opacity: 1; }

/* ═══════════════════════════════════════
   TOAST
   ═══════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 30px; right: 30px;
  padding: 16px 28px;
  border-radius: var(--radius);
  background: rgba(12, 12, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 197, 160, 0.2);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.05) inset;
}
.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

/* ═══════════════════════════════════════
   CART — Floating Panel
   ═══════════════════════════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}
.cart-sidebar {
  position: fixed;
  top: 96px;
  right: 24px;
  width: 400px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px);
  background: rgba(8,8,8,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  box-shadow:
    0 24px 80px rgba(0,0,0,0.6),
    0 1px 0 rgba(255,255,255,0.10) inset,
    0 -1px 0 rgba(0,0,0,0.3) inset;
  z-index: 2001;
  transform: translateY(-16px) scale(0.97);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease, visibility 0.3s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cart-sidebar.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}
.cart-header {
  padding: 20px 24px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.cart-header h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}
.cart-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.1rem;
}
.cart-close:hover {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  align-items: flex-start;
}
.cart-item-color {
  width: 48px; height: 64px;
  border-radius: 8px;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.cart-item-set {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.cart-item-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}
.cart-item-remove {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 4px;
}
.cart-item-remove:hover { color: #ef4444; }
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.cart-empty svg {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  opacity: 0.3;
}
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.cart-total-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.cart-total-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}
.cart-checkout-btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(90deg,
    #d4c5a0 0%, #b2cdd8 9%, #7dd5e6 18%,
    #8ab5e8 27%, #c4a8e0 36%, #df82ca 45%,
    #e879b0 50%, #df82ca 55%, #c4a8e0 64%,
    #8ab5e8 73%, #7dd5e6 82%, #b2cdd8 91%,
    #d4c5a0 100%
  );
  background-size: 200% auto;
  animation: holoShift 14s linear infinite;
  color: #000;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.cart-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,197,160,0.3);
}

/* Account button — logged in indicator */
#navAccountBtn {
  position: relative;
  text-decoration: none;
}
#navAccountBtn .logged-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid var(--bg-deep);
  display: none;
}
#navAccountBtn .logged-dot.visible {
  display: block;
}
.nav-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212,197,160,0.5);
  display: block;
}

/* ═══════════════════════════════════════
   GLOBAL SEARCH OVERLAY
   ═══════════════════════════════════════ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-panel {
  width: 100%;
  max-width: 620px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  overflow: hidden;
  transform: translateY(-16px) scale(0.97);
  transition: transform 0.25s ease;
}
.search-overlay.open .search-panel {
  transform: translateY(0) scale(1);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.search-input-wrap svg {
  flex-shrink: 0;
  color: #d4c5a0;
  opacity: 0.7;
}
.search-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
}
.search-input-wrap input::placeholder {
  color: var(--text-muted);
}
.search-kbd {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: inherit;
  line-height: 1;
}

.search-results {
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,197,160,0.3) transparent;
}
.search-results::-webkit-scrollbar { width: 4px; }
.search-results::-webkit-scrollbar-track { background: transparent; }
.search-results::-webkit-scrollbar-thumb { background: rgba(212,197,160,0.3); border-radius: 4px; }

.search-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.search-result-item:hover {
  background: rgba(212,197,160,0.06);
}
.search-result-item:last-child {
  border-bottom: none;
}

.search-result-img {
  width: 48px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-elevated);
}

.search-result-info {
  flex: 1;
  min-width: 0;
}
.search-result-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.search-result-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-result-price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-primary);
}

.search-more {
  padding: 14px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.search-more a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #d4c5a0;
  transition: var(--transition);
}
.search-more a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  .navbar {
    width: calc(100% - 24px);
    padding: 0 16px;
    top: 12px;
    border-radius: 16px;
    height: 54px;
  }
  .nav-logo-img { height: 36px; width: 36px; }
  .nav-logo-wordmark { font-size: 1.15rem; }
  .nav-right { gap: 12px; }
  .cart-btn { width: 38px; height: 38px; }
  .cart-btn svg { width: 18px; height: 18px; }
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 24px;
    gap: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  }
  .page-content { padding-top: 80px; }
  .container { padding: 0 20px; }
  .search-overlay { padding-top: 72px; padding-left: 16px; padding-right: 16px; }
  .search-panel { border-radius: 16px; }
  .search-input-wrap { padding: 14px 18px; }
  .search-result-item { padding: 10px 18px; gap: 12px; }
  .search-result-img { width: 40px; height: 54px; }
  .search-result-name { font-size: 0.82rem; }
  .search-result-price { font-size: 0.9rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ── Modal: bottom-sheet on mobile ── */
@media (max-width: 768px) {
  /* Overlay: align to bottom */
  #listingModal, #cardModal {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  /* Sheet container */
  #listingModal > div, #cardModal > div {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92dvh !important;
    border-radius: 24px 24px 0 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    animation: slideUpSheet 0.3s cubic-bezier(0.4,0,0.2,1) !important;
  }
  /* Close button in image panel — visible on mobile only */
  #listingModalCloseTop { display: flex !important; }
  /* Image panel */
  #listingModal > div > div:first-child,
  #cardModal > div > div:first-child {
    border-radius: 0 !important;
    padding: 20px !important;
    max-height: 42dvh !important;
    min-height: 180px !important;
    flex-shrink: 0 !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    overflow: hidden !important;
  }
  /* Info panel */
  #listingModal > div > div:last-child,
  #cardModal > div > div:last-child {
    padding: 20px !important;
    overflow-y: auto !important;
    flex: 1 !important;
    min-height: 0 !important;
  }
}
@keyframes slideUpSheet {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes fadeOutDown {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(20px) scale(0.97); }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .page-content { padding-top: 72px; }
  .navbar { width: calc(100% - 16px); top: 8px; height: 50px; padding: 0 12px; border-radius: 14px; }
  .nav-logo-img { height: 32px; width: 32px; }
  .nav-logo-wordmark { font-size: 1rem; }
  .nav-right { gap: 8px; }
  .cart-btn { width: 34px; height: 34px; }
  .cart-btn svg { width: 16px; height: 16px; }
  .mobile-toggle { width: 34px; height: 34px; padding: 8px 6px; }
  .nav-links.open { padding: 16px 18px; gap: 14px; }
  .nav-links.open a { font-size: 0.85rem; }
  .search-overlay { padding-top: 60px; padding-left: 10px; padding-right: 10px; }
  .search-input-wrap input { font-size: 0.9rem; }
  .cart-sidebar { right: 0; width: 100%; max-width: 100%; max-height: calc(100dvh - 96px); border-radius: 0 0 20px 20px !important; }
  .cart-header, .cart-footer { padding: 16px; }
  .cart-items { padding: 12px; }
  .section-title { font-size: 1.5rem; }
  .section-label { font-size: 0.65rem; }
  .footer-col h4 { font-size: 0.85rem; }
  .footer-col ul li a { font-size: 0.82rem; }
  .holo-btn { padding: 12px 24px; font-size: 0.85rem; }
  #listingModal > div > div:last-child,
  #cardModal > div > div:last-child { padding: 20px !important; }
  .poke-card-info { padding: 11px 13px 13px; }
  .poke-card-name { font-size: 0.85rem; }
  .poke-card-set { font-size: 0.58rem; }
  .poke-card-rarity { font-size: 0.68rem; }
  .poke-card-price { font-size: 1.05rem; }
  .poke-card:hover { transform: translateY(-4px); }
  .add-cart-btn { width: 32px; height: 32px; border-radius: 8px; }
}

/* ── iOS: prevent zoom on input focus (only text/form inputs, not qty selectors) ── */
@media (max-width: 768px) {
  input[type="text"], input[type="email"], input[type="password"],
  input[type="search"], input[type="tel"], input[type="url"],
  textarea, select { font-size: max(16px, 1em); }
}

/* ── Touch devices: suppress sticky hover states ── */
@media (hover: none) {
  .poke-card:hover {
    transform: none;
    border-color: rgba(255,255,255,0.04);
    box-shadow: none;
  }
  .poke-card:hover .add-cart-btn { opacity: 0; transform: none; }
  .holo-btn:hover, .holo-btn-filled:hover { transform: none; }
  .nav-links a:hover { color: var(--text-primary); }
  .nav-links a:hover::after { width: 0; }
  .cart-item-remove:hover { background: none; color: var(--text-muted); }
}
