/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
}
:root {
  /* Brand */
  --primary: #ff6b35;
  --primary-dark: #cc4f1a;
  --primary-soft: rgba(255, 107, 53, 0.18);
  --secondary: #00d4ff;
  --secondary-dark: #0099cc;
  --secondary-soft: rgba(0, 212, 255, 0.18);
  --accent: #ff006e;
  --accent-soft: rgba(255, 0, 110, 0.18);
  --neon: #3bff6e;
  --neon-soft: rgba(59, 255, 110, 0.18);
  --purple: #a855f7;
  --purple-soft: rgba(
    168,
    85,
    247,
    0.18
  ); /* Surfaces (dark base, low-opacity over background) */
  --bg: #000000;
  --bg-2: #050508;
  --surface: rgba(20, 20, 30, 0.55);
  --surface2: rgba(28, 28, 40, 0.55);
  --surface3: rgba(40, 40, 55, 0.55);
  --text: #f5f5ff;
  --text-soft: #c8c8e2;
  --text-muted: #9494c0;
  --border: rgba(255, 255, 255, 0.08); /* Status */
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b; /* Radius */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 18px; /* Shadows */
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 60px rgba(0, 0, 0, 0.55); /* Glows */
  --glow-primary: 0 0 20px rgba(255, 107, 53, 0.55);
  --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.5);
  --glow-neon: 0 0 18px rgba(59, 255, 110, 0.5);
  --glow-accent: 0 0 20px rgba(255, 0, 110, 0.45);
  --glow-purple: 0 0 20px rgba(168, 85, 247, 0.45); /* Easing */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1); /* Fonts */
  --pixel-font: "Press Start 2P", monospace;
  --header-h: 120px; /* Glassmorphism */
  --glass-1: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.06);
  --glass-3: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(14, 14, 22, 0.55);
  --glass-bg-strong: rgba(14, 14, 22, 0.78);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-strong: rgba(255, 255, 255, 0.14);
  --glass-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --glass-shadow-lg:
    0 20px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
} /* Layer 1 — ambient grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 107, 53, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(
    ellipse 90% 90% at 50% 35%,
    #000 30%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 90% 90% at 50% 35%,
    #000 30%,
    transparent 100%
  );
  animation: gridDrift 40s linear infinite;
}
@keyframes gridDrift {
  0% {
    background-position:
      0 0,
      0 0;
  }
  100% {
    background-position:
      72px 72px,
      72px 72px;
  }
} /* Layer 2 — floating ambient blobs (deep, blurred) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle 700px at 8% 20%,
      rgba(255, 107, 53, 0.08),
      transparent 60%
    ),
    radial-gradient(
      circle 600px at 92% 65%,
      rgba(0, 212, 255, 0.07),
      transparent 60%
    ),
    radial-gradient(
      circle 800px at 50% 110%,
      rgba(255, 0, 110, 0.06),
      transparent 65%
    ),
    radial-gradient(
      circle 500px at 30% 90%,
      rgba(168, 85, 247, 0.05),
      transparent 60%
    );
  animation: ambientFloat 24s ease-in-out infinite alternate;
}
@keyframes ambientFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(25px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-22px, 15px) scale(0.97);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
} /* Layer 3 — global CRT scanlines (very subtle) */
.scanlines-overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  mix-blend-mode: overlay;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.18) 2px,
    rgba(0, 0, 0, 0.18) 3px
  );
  opacity: 0.35;
} /* Layer 4 — vignette */
.scanlines-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 90% 90% at 50% 50%,
    transparent 65%,
    rgba(0, 0, 0, 0.35) 100%
  );
}
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
}
input,
select,
textarea {
  font-family: inherit;
  background: rgba(14, 14, 22, 0.45);
  border: 1px solid var(--glass-border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  width: 100%;
  outline: none;
  transition:
    border-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    background 0.2s var(--ease-out);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}
input:hover,
select:hover,
textarea:hover {
  border-color: rgba(255, 255, 255, 0.18);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow:
    0 0 0 3px rgba(255, 107, 53, 0.15),
    var(--glow-primary);
  background: rgba(20, 20, 30, 0.6);
}
select option {
  background: #14141e;
  color: var(--text);
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.hidden {
  display: none !important;
} /* ===== HEADER ===== */
#main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(
    180deg,
    rgba(7, 7, 13, 0.7) 0%,
    rgba(7, 7, 13, 0.4) 100%
  );
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.25s var(--ease-out);
}
#main-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 107, 53, 0.55) 25%,
    rgba(0, 212, 255, 0.55) 75%,
    transparent 100%
  );
  opacity: 0.7;
  pointer-events: none;
  animation: borderGlow 6s ease-in-out infinite alternate;
}
@keyframes borderGlow {
  0% {
    opacity: 0.45;
  }
  100% {
    opacity: 0.85;
  }
} /* Top marquee — removida */
.header-top {
  display: none;
}
@keyframes marqueeGradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
.header-top-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  animation: marqueeScroll 28s linear infinite;
  width: max-content;
  white-space: nowrap;
}
.header-top-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.header-top-sep {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.65rem;
  animation: spin 8s linear infinite;
  display: inline-block;
}
.header-main {
  padding: 0.85rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
} /* Logo with pixel font, arcade style */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out);
  position: relative;
  padding: 0.25rem 0.5rem;
}
.logo:hover {
  transform: scale(1.03);
}
.logo-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.7));
  animation: logoJoystick 3.2s ease-in-out infinite;
  display: inline-block;
  transform-origin: 50% 80%;
}
@keyframes logoJoystick {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(6deg);
  }
}
.logo-text {
  font-family: var(--pixel-font);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--text);
  line-height: 1.4;
}
.logo-text .highlight {
  color: var(--primary);
  text-shadow: var(--glow-primary);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 4s ease-in-out infinite alternate;
}
@keyframes textShimmer {
  0% {
    filter: brightness(1) drop-shadow(0 0 8px rgba(255, 107, 53, 0.4));
  }
  100% {
    filter: brightness(1.2) drop-shadow(0 0 16px rgba(255, 107, 53, 0.8));
  }
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  margin-left: auto;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  transition: all 0.2s var(--ease-out);
  position: relative;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.icon-btn:hover {
  color: #fff;
  border-color: rgba(255, 107, 53, 0.5);
  background: rgba(255, 107, 53, 0.1);
  box-shadow: var(--glow-primary);
  transform: translateY(-1px);
}
.icon-btn:active {
  transform: translateY(0) scale(0.95);
}
.refresh-btn-style {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 0.38rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.refresh-btn-style:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-primary-sm {
  background: linear-gradient(135deg, var(--primary) 0%, #ff4500 100%);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: all 0.2s var(--ease-out);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 12px rgba(255, 107, 53, 0.25);
}
.btn-primary-sm::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}
.btn-primary-sm:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 6px 18px rgba(255, 107, 53, 0.4),
    var(--glow-primary);
}
.btn-primary-sm:hover::before {
  transform: translateX(100%);
}
.btn-primary-sm:active {
  transform: translateY(0) scale(0.97);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #ff4500 100%);
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s var(--ease-out);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 6px 18px rgba(255, 107, 53, 0.3);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 8px 24px rgba(255, 107, 53, 0.45),
    var(--glow-primary);
}
.btn-primary:active {
  transform: translateY(0) scale(0.97);
}
.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(135deg, var(--error), #dc2626);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  border-radius: 99px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 1.5px solid var(--bg);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
  animation: badgePop 0.35s var(--ease-bounce);
}
@keyframes badgePop {
  0% {
    transform: scale(0);
  }
  60% {
    transform: scale(1.25);
  }
  100% {
    transform: scale(1);
  }
} /* ===== SEARCH BAR ENHANCED ===== */
.search-bar {
  background: linear-gradient(180deg, rgba(7, 7, 13, 0.7), rgba(7, 7, 13, 0.4));
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-top: 1px solid var(--glass-border);
  padding: 1rem 0;
  animation: slideDown 0.28s var(--ease-out);
  position: relative;
}
.search-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--secondary),
    transparent
  );
  opacity: 0.5;
}
.search-bar-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.search-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.search-icon-left {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
  flex-shrink: 0;
  transition: color 0.2s;
}
.search-input-wrap:focus-within .search-icon-left {
  color: var(--secondary);
}
.search-input-wrap input {
  padding: 0.78rem 2.8rem 0.78rem 42px;
  width: 100%;
  background: rgba(14, 14, 22, 0.5);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  transition: all 0.2s var(--ease-out);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.search-input-wrap input:focus {
  border-color: var(--secondary);
  box-shadow:
    0 0 0 4px rgba(0, 212, 255, 0.12),
    var(--glow-cyan);
  background: rgba(20, 20, 30, 0.6);
}
#search-clear {
  position: absolute;
  right: 8px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  transition: all 0.18s var(--ease-out);
}
#search-clear:hover {
  background: var(--error);
  color: #fff;
  border-color: var(--error);
  transform: rotate(90deg);
}
.search-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, #ff4500 100%);
  color: #fff;
  padding: 0.78rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 14px rgba(255, 107, 53, 0.3);
}
.search-submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}
.search-submit-btn:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 6px 20px rgba(255, 107, 53, 0.45),
    var(--glow-primary);
  transform: translateY(-1px);
}
.search-submit-btn:hover::before {
  transform: translateX(100%);
}
.search-submit-btn:active {
  transform: translateY(0) scale(0.97);
}
.search-filters-row {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  flex-wrap: wrap;
  padding: 0.15rem 0;
}
.search-filter-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-right: 0.2rem;
}
.search-filter-sep {
  color: var(--border);
  font-size: 0.9rem;
  margin: 0 0.15rem;
}
.search-filter-chip {
  padding: 0.26rem 0.72rem;
  border-radius: 99px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 600;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.search-filter-chip:hover {
  border-color: rgba(255, 107, 53, 0.5);
  color: var(--primary);
  background: rgba(255, 107, 53, 0.08);
  transform: translateY(-1px);
}
.search-filter-chip.active {
  background: linear-gradient(135deg, var(--primary), #ff4500);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 700;
  box-shadow:
    0 4px 12px rgba(255, 107, 53, 0.35),
    var(--glow-primary),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.search-results-summary {
  font-size: 0.8rem;
  color: var(--text-soft);
  font-weight: 600;
  padding: 0.2rem 0;
  animation: fadeIn 0.3s var(--ease-out);
} /* ===== AUTH SOCIAL ===== */
.auth-social-row {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}
.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.78rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: all 0.2s var(--ease-out);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}
.auth-social-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}
.auth-social-btn:hover {
  border-color: rgba(255, 107, 53, 0.5);
  background: rgba(255, 107, 53, 0.08);
  transform: translateY(-1px);
}
.auth-social-btn:hover::before {
  transform: translateX(100%);
}
.auth-google-btn:hover {
  border-color: #4285f4;
  background: rgba(66, 133, 244, 0.08);
  box-shadow: 0 0 16px rgba(66, 133, 244, 0.25);
}
.auth-phone-btn:hover {
  border-color: var(--primary);
  background: rgba(255, 107, 53, 0.08);
  box-shadow: 0 0 16px rgba(255, 107, 53, 0.25);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.6rem 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--glass-border),
    transparent
  );
} /* ===== PASSWORD STRENGTH ===== */
.password-strength-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
  animation: fadeIn 0.25s var(--ease-out);
}
.ps-bar {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.ps-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 99px;
}
.ps-bar div {
  height: 100%;
  border-radius: 99px;
  transition:
    width 0.35s var(--ease-out),
    background 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
  width: 0;
  position: relative;
}
#ps-label {
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
  letter-spacing: 0.04em;
} /* ===== HERO — Arcade Cabinet Style ===== */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, var(--bg) 100%);
} /* Multi-layered background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 80% 80% at 70% 50%,
      rgba(0, 212, 255, 0.14) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 70% at 15% 70%,
      rgba(255, 107, 53, 0.14) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 60% at 50% 0%,
      rgba(168, 85, 247, 0.1) 0%,
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
} /* Perspective grid floor */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 107, 53, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(800px) rotateX(60deg) translateY(35%) scale(2.5);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 40%,
    #000 70%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 40%,
    #000 70%,
    transparent 100%
  );
  animation: gridFloorScroll 8s linear infinite;
}
@keyframes gridFloorScroll {
  0% {
    background-position:
      0 0,
      0 0;
  }
  100% {
    background-position:
      0 50px,
      50px 0;
  }
} /* Scanline overlay only in hero */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.12) 3px,
    rgba(0, 0, 0, 0.12) 4px
  );
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
} /* Floating arcade elements */
.hero-floating {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-floating span {
  position: absolute;
  font-size: 1.6rem;
  opacity: 0.7;
  animation: floatArcade 14s ease-in-out infinite;
  text-shadow: 0 0 12px currentColor;
}
.hero-floating span:nth-child(1) {
  top: 18%;
  left: 8%;
  color: var(--primary);
  animation-delay: 0s;
  animation-duration: 12s;
}
.hero-floating span:nth-child(2) {
  top: 55%;
  left: 14%;
  color: var(--secondary);
  animation-delay: -3s;
  animation-duration: 16s;
  font-size: 1.2rem;
}
.hero-floating span:nth-child(3) {
  top: 25%;
  right: 12%;
  color: var(--neon);
  animation-delay: -6s;
  animation-duration: 14s;
}
@keyframes floatArcade {
  0%,
  100% {
    transform: translate(0, 0) rotate(0);
  }
  25% {
    transform: translate(15px, -25px) rotate(8deg);
  }
  50% {
    transform: translate(-20px, -15px) rotate(-6deg);
  }
  75% {
    transform: translate(10px, 15px) rotate(4deg);
  }
}
.hero-content {
  position: relative;
  z-index: 3;
  padding: 4rem 0 5rem;
  animation: heroReveal 0.9s var(--ease-out) both;
}
@keyframes heroReveal {
  0% {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.12),
    rgba(0, 212, 255, 0.04)
  );
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--secondary);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 18px rgba(0, 212, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: heroBadgeFloat 5s ease-in-out infinite;
}
.hero-badge::before {
  content: "▶";
  font-size: 0.6rem;
  animation: blink 1.2s step-end infinite;
}
@keyframes heroBadgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
.hero-title {
  font-family: "Inter", sans-serif;
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-title > br + span,
.hero-title > span {
  display: inline-block;
}
.hero-title .title-accent {
  color: transparent;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--accent) 50%,
    var(--secondary) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleGradient 6s ease-in-out infinite alternate;
  text-shadow: 0 0 50px rgba(255, 107, 53, 0.35);
  position: relative;
}
@keyframes titleGradient {
  0% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 24px rgba(255, 107, 53, 0.5));
  }
  100% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.5));
  }
}
.hero-subtitle {
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 520px;
  margin-bottom: 2.2rem;
  line-height: 1.7;
} /* Stats — LCD score display with arcade feel */
.hero-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.7rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: all 0.25s var(--ease-out);
}
.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--secondary),
    transparent
  );
  opacity: 0.4;
}
.stat:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: var(--glow-cyan);
}
.stat span {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}
.stat small {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-soft);
  font-size: 0.7rem;
  animation: bounce 2.2s ease-in-out infinite;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  pointer-events: none;
  z-index: 3;
} /* ===== CATEGORY CHIPS ===== */
.category-chips-section {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(7, 7, 13, 0.5);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: relative;
  z-index: 2;
}
.category-chips-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.35;
}
.chips-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.3rem 0;
  scrollbar-width: none;
}
.category-chips-section .chips-scroll {
  justify-content: center;
}
.chips-scroll::-webkit-scrollbar {
  display: none;
} /* Arcade button style chips */
.chip {
  flex-shrink: 0;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.22s var(--ease-out);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 74px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.chip:hover {
  border-color: rgba(255, 107, 53, 0.5);
  color: var(--primary);
  background: rgba(255, 107, 53, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.18);
}
.chip:hover::before {
  opacity: 1;
}
.chip.active {
  background: linear-gradient(135deg, var(--primary) 0%, #ff4500 100%);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow:
    0 6px 22px rgba(255, 107, 53, 0.4),
    var(--glow-primary),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.chip.active::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.4),
    transparent,
    rgba(255, 107, 53, 0.4)
  );
  z-index: -1;
  filter: blur(8px);
}
.subcategory-chips-section {
  padding: 0.6rem 0 0.95rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(7, 7, 13, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  animation: slideDown 0.25s var(--ease-out);
  position: relative;
  z-index: 2;
}
.sub-chip {
  flex-shrink: 0;
  padding: 0.32rem 0.85rem;
  border-radius: 99px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 600;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.sub-chip:hover {
  background: rgba(0, 212, 255, 0.08);
  color: var(--secondary);
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-1px);
}
.sub-chip.active {
  background: linear-gradient(135deg, var(--secondary) 0%, #0099cc 100%);
  color: #000;
  border-color: rgba(255, 255, 255, 0.2);
  font-weight: 700;
  box-shadow:
    0 4px 14px rgba(0, 212, 255, 0.35),
    var(--glow-cyan),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
} /* ===== MAIN CONTENT ===== */
.main-content {
  padding: 2rem 0 4rem;
  position: relative;
  z-index: 1;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.section-title {
  font-family: var(--pixel-font);
  font-size: 0.78rem;
  color: var(--text);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.section-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 8px var(--primary);
  animation: sectionPulse 2s ease-in-out infinite;
}
@keyframes sectionPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}
.sort-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sort-controls select {
  width: auto;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#refresh-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-soft) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.4rem 0.8rem !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s var(--ease-out) !important;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#refresh-btn:hover {
  border-color: rgba(0, 212, 255, 0.5) !important;
  color: var(--secondary) !important;
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.25);
  transform: translateY(-1px);
}
#refresh-btn:active {
  transform: translateY(0) rotate(180deg);
  transition: transform 0.5s var(--ease-out);
}
.view-toggles {
  display: flex;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 0.2rem;
  border: 1px solid var(--glass-border);
}
.view-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition: all 0.2s var(--ease-out);
}
.view-btn:hover {
  color: var(--primary);
  background: rgba(255, 107, 53, 0.08);
}
.view-btn.active {
  background: linear-gradient(135deg, var(--primary), #ff4500);
  color: #fff;
  box-shadow:
    0 0 10px rgba(255, 107, 53, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
} /* ===== PRODUCT GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
} /* Category group headers */
.category-group-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.category-group-header:first-child {
  margin-top: 0;
}
.category-group-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.cgh-emoji {
  font-size: 1.2rem;
  filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.4));
}
.cgh-label {
  font-family: var(--pixel-font);
  font-size: 0.65rem;
  color: var(--text);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.cgh-count {
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  border: 1px solid rgba(255, 107, 53, 0.3);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.18rem 0.55rem;
  border-radius: 99px;
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.2);
}
.cgh-filter-btn {
  margin-left: auto;
  color: var(--secondary);
  font-size: 0.72rem;
  font-weight: 700;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  letter-spacing: 0.02em;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
}
.cgh-filter-btn:hover {
  color: var(--primary);
  background: rgba(255, 107, 53, 0.1);
  transform: translateX(2px);
} /* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--glass-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  content-visibility: auto;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04),
    transparent 50%
  );
  z-index: 1;
}
.product-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  padding: 1px;
  background: linear-gradient(
    135deg,
    transparent,
    rgba(255, 107, 53, 0),
    transparent
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background 0.4s var(--ease-out);
  z-index: 2;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 107, 53, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.product-card:hover::after {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.35),
    transparent 45%,
    rgba(0, 212, 255, 0.2)
  );
} /* Hot card glow with continuous animation */
.product-card[data-hot="true"] {
  border-color: rgba(255, 107, 53, 0.35);
  animation: hotFloat 3.5s ease-in-out infinite;
}
@keyframes hotFloat {
  0%,
  100% {
    box-shadow:
      0 4px 18px rgba(0, 0, 0, 0.35),
      0 0 22px rgba(255, 107, 53, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
  50% {
    box-shadow:
      0 4px 18px rgba(0, 0, 0, 0.35),
      0 0 32px rgba(255, 107, 53, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
}
.discount-badge-card {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 5;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 3px 10px rgba(34, 197, 94, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.discount-anim {
  display: inline-block;
  transition: none;
}
.hot-badge-card {
  position: absolute;
  top: 0.6rem;
  left: 4.2rem;
  z-index: 5;
  background: linear-gradient(135deg, var(--primary), #ff4500);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 3px 10px rgba(255, 107, 53, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: badgeShine 2.5s ease-in-out infinite;
}
.card-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 5;
  background: linear-gradient(135deg, var(--primary) 0%, #ff4500 100%);
  color: #fff;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 4px 12px rgba(255, 107, 53, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: badgeShine 3s ease-in-out infinite;
}
@keyframes badgeShine {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}
.card-store-badge {
  border-radius: 99px;
  padding: 0.22rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.store-aliexpress {
  background: rgba(255, 102, 0, 0.15);
  color: #ff8533;
  border: 1px solid rgba(255, 102, 0, 0.3);
}
.store-amazon {
  background: rgba(255, 153, 0, 0.15);
  color: #ffb84d;
  border: 1px solid rgba(255, 153, 0, 0.3);
}
.store-shein {
  background: rgba(255, 105, 180, 0.15);
  color: #ff8ec5;
  border: 1px solid rgba(255, 105, 180, 0.3);
}
.store-temu {
  background: rgba(255, 165, 0, 0.15);
  color: #ffc266;
  border: 1px solid rgba(255, 165, 0, 0.3);
}
.store-other {
  background: rgba(0, 212, 255, 0.12);
  color: var(--secondary);
  border: 1px solid rgba(0, 212, 255, 0.25);
}
.store-personal {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.condition-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 5;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 3px 10px rgba(245, 158, 11, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.personal-desc {
  font-size: 0.7rem;
  color: var(--text-soft);
  line-height: 1.4;
  margin-top: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-height: 2.8em;
}
.personal-location {
  font-size: 0.68rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.btn-cart {
  background: linear-gradient(135deg, #ff6b35, #e85d2c) !important;
  border-color: rgba(255, 107, 53, 0.3) !important;
  box-shadow:
    0 4px 14px rgba(255, 107, 53, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}
.btn-cart:hover {
  box-shadow:
    0 6px 20px rgba(255, 107, 53, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}
.btn-cart.in-cart {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
  box-shadow:
    0 4px 14px rgba(34, 197, 94, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}
.btn-cart-drawer {
  flex: 1;
  background: linear-gradient(135deg, #ff6b35, #e85d2c) !important;
  color: #fff !important;
  padding: 0.38rem 0.5rem;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  font-size: 0.7rem;
  border: 1px solid rgba(255, 107, 53, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}
.btn-cart-drawer:hover {
  box-shadow: 0 0 16px rgba(255, 107, 53, 0.5);
  filter: brightness(1.1);
}
.btn-cart-drawer.in-cart {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
} /* ===== ADS ===== */
.ad-banner {
  width: 100%;
  max-width: var(--container-w, 1200px);
  margin: 0 auto;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  position: relative;
}
.ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 90px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.banner-link {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  transition: opacity 0.2s;
}
.banner-link:hover {
  opacity: 0.85;
}
.banner-img {
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
}
@media (max-width: 768px) {
  .banner-img {
    max-height: 80px;
  }
}
.ad-group-separator {
  width: 100%;
  margin: 1rem 0;
  padding: 0.25rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.015);
}
.ad-group-separator .ad-placeholder {
  min-height: 60px;
}
/* ====== Google Ad Manager (GAM) ======
   Alturas mínimas reservadas para prevenir CLS mientras los anuncios cargan. */
.ad-banner-gam {
  min-height: 90px;
}
.gam-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}
.gam-slot > div {
  margin: 0 auto;
}
/* Top banner: reservar 90px desktop / 50px mobile */
#ad-banner-gam-top {
  min-height: 90px;
}
#div-gpt-ad-top {
  min-height: 90px;
  min-width: 320px;
}
/* In-feed entre tarjetas: reservar 250px (medium rectangle) */
.gam-slot-feed {
  min-height: 250px;
  margin: 1.5rem 0;
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.015);
  border-radius: var(--radius);
  border: 1px dashed var(--glass-border);
}
#div-gpt-ad-feed {
  min-height: 250px;
}
/* Sticky anchor: GPT (OutOfPageFormat.ANCHOR) inyecta la creatividad fija
   abajo con botón de cierre. No aplicamos position:fixed propio para no
   interferir con el render de GPT; solo dejamos el contenedor discreto. */
#div-gpt-ad-anchor {
  display: block;
}
.section-sponsored {
  margin: 1rem 0 1.5rem;
  padding: 0.8rem 0;
}
.sponsored-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sponsored-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--glass-border), transparent);
}
.sponsored-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.3rem 0 0.6rem;
  scrollbar-width: none;
}
.sponsored-scroll::-webkit-scrollbar {
  display: none;
}
.sponsored-card {
  flex-shrink: 0;
  width: 200px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.sponsored-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
}
.sponsored-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: var(--surface2);
}
.sponsored-card-info {
  padding: 0.5rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}
.sponsored-card-title {
  font-size: 0.7rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sponsored-card-price {
  font-size: 0.78rem;
  color: var(--secondary);
  font-weight: 800;
}
.sponsored-card-label {
  font-size: 0.58rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: auto;
}
@media (max-width: 768px) {
  .ad-banner {
    min-height: 60px;
    padding: 0.3rem 0.5rem;
  }
  .ad-placeholder {
    min-height: 60px;
    font-size: 0.65rem;
  }
  .sponsored-card {
    width: 160px;
  }
  .sponsored-card-img {
    height: 110px;
  }
}
.drawer-condition {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-top: 0.2rem;
}
.drawer-desc {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin: 0.6rem 0;
}
.drawer-location {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 0.35rem;
}
.drawer-contact-alt {
  font-size: 0.78rem;
  color: var(--secondary);
  margin-top: 0.25rem;
  display: block;
}
.card-img-full {
  width: 100%;
  position: relative;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(14, 14, 22, 0.7);
}
.product-card .card-img-full {
  height: auto !important;
  aspect-ratio: 1 / 1;
  max-height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-img-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s var(--ease-out);
  padding: 0;
}
.product-card:hover .card-img-full img {
  opacity: 0.9;
}
.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(
    135deg,
    rgba(20, 20, 30, 0.6),
    rgba(7, 7, 13, 0.4)
  );
}
.card-overlay {
  position: relative;
  z-index: 3;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  pointer-events: auto;
}
.card-overlay::before {
  display: none;
}
.card-overlay-top,
.card-overlay-bottom {
  position: relative;
  z-index: 1;
}
.card-overlay > * {
  pointer-events: auto;
}
.card-overlay-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
  flex-wrap: wrap;
}
.card-overlay-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
}
.card-photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  display: none;
}
.card-blur-strip {
  display: none;
} /* ===== CAROUSEL ===== */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(7, 7, 13, 0.6);
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
}
.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-img-err {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(
    135deg,
    rgba(20, 20, 30, 0.6),
    rgba(7, 7, 13, 0.4)
  );
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(7, 7, 13, 0.7);
  border: 1px solid var(--glass-border);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  opacity: 0.5;
  transition: all 0.2s var(--ease-out);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.carousel:hover .carousel-arrow {
  opacity: 1;
}
.carousel-prev {
  left: 6px;
}
.carousel-next {
  right: 6px;
}
.carousel-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.5);
  transform: translateY(-50%) scale(1.1);
}
.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  padding: 0;
}
.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}
.carousel-dot.active {
  background: var(--primary);
  width: 18px;
  box-shadow: 0 0 8px rgba(255, 107, 53, 0.6);
} /* Drawer carousel */
.carousel-drawer {
  height: 100%;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}
.carousel-drawer .carousel-arrow {
  width: 28px;
  height: 28px;
  font-size: 1.2rem;
  opacity: 0.7;
  transition: opacity 0.2s var(--ease-out);
}
.carousel-drawer:hover .carousel-arrow {
  opacity: 1;
}
.carousel-drawer .carousel-dot {
  width: 6px;
  height: 6px;
}
.carousel-drawer .carousel-dot.active {
  width: 14px;
}
.card-title {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  margin-bottom: 0;
}
.card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  margin-top: 0.1rem;
}
.stars {
  color: #fbbf24;
  font-size: 0.78rem;
  text-shadow: 0 0 6px rgba(251, 191, 36, 0.4);
}
.rating-count {
  color: var(--text-muted);
} /* Price with neon glow */
.card-prices {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: auto;
}
.price-current {
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 16px rgba(255, 107, 53, 0.5);
  letter-spacing: -0.01em;
}
.price-original {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
@keyframes priceDiscountPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(59, 255, 110, 0);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(59, 255, 110, 0.15);
    transform: scale(1.04);
  }
}
.savings-badge {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--warning);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
} /* Arcade 3D Buy Button */
.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, var(--primary) 0%, #ff4500 100%);
  color: #fff;
  padding: 0.45rem 0.85rem;
  height: auto;
  border-radius: var(--radius-sm);
  font-family: var(--pixel-font);
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  border-top: 2px solid rgba(255, 255, 255, 0.25);
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  border-bottom: 3px solid var(--primary-dark);
  border-right: 3px solid var(--primary-dark);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.btn-buy:hover {
  filter: brightness(1.15);
  box-shadow:
    0 0 22px rgba(255, 107, 53, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.4);
}
.btn-buy:active {
  transform: translateY(2px);
  border-top: 1px solid rgba(0, 0, 0, 0.25);
  border-left: 1px solid rgba(0, 0, 0, 0.2);
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  border-right: 2px solid rgba(255, 255, 255, 0.12);
  filter: brightness(0.92);
}
.btn-buy::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: skewX(-25deg);
  animation: arcadeShine 3.5s infinite;
}
.cart-anim {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  font-size: 1.1rem;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(255, 107, 53, 0.6));
}
.btn-buy:hover .cart-anim {
  opacity: 1;
  animation: cartRun 2.5s linear infinite;
}
.btn-text-animated {
  display: inline-flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  width: 100%;
}
.btn-char {
  display: inline-block;
  transition: all 0.2s ease;
}
.btn-buy:hover .btn-char {
  animation: letterEaten 2.5s linear infinite;
  animation-delay: calc((var(--total) - var(--i)) * 0.1s);
}
.card-wishlist-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto !important;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.wl-heart {
  pointer-events: none;
  font-size: 0.85rem;
  line-height: 1;
}
.wl-hitarea {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  touch-action: manipulation;
  -webkit-touch-callout: none;
}
.card-wishlist-btn.wishlisted {
  border-color: var(--error);
}
.card-wishlist-btn.wishlisted .wl-heart {
  color: var(--error);
}
.card-wishlist-btn.wishlisted .wl-heart {
  color: var(--error);
}
.card-wishlist-btn:hover {
  border-color: var(--error);
}
.card-wishlist-btn:hover .wl-heart {
  color: var(--error);
} /* ===== ADMIN BUTTONS ===== */
.admin-only {
  display: none !important;
}
body.admin-mode-active .admin-only {
  display: flex !important;
}
.delete-product-btn {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 10;
  background: linear-gradient(135deg, var(--error), #dc2626);
  border-radius: var(--radius-sm);
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0;
  transition: all 0.2s var(--ease-out);
  box-shadow:
    0 4px 12px rgba(239, 68, 68, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.product-card:hover .delete-product-btn {
  opacity: 1;
}
.delete-product-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.55);
}
.edit-product-btn {
  position: absolute;
  top: 2.55rem;
  left: 0.55rem;
  z-index: 10;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  border-radius: var(--radius-sm);
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: #000;
  border: 1px solid rgba(255, 255, 255, 0.25);
  opacity: 0;
  transition: all 0.2s var(--ease-out);
  box-shadow:
    0 4px 12px rgba(0, 212, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.product-card:hover .edit-product-btn {
  opacity: 1;
}
.edit-product-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.55);
}
body.admin-mode-active #admin-toggle-btn {
  display: inline-flex !important;
} /* ===== CUPÓN ===== */
.coupon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.12),
    rgba(245, 158, 11, 0.04)
  );
  border: 1px dashed rgba(245, 158, 11, 0.4);
  color: var(--warning);
  padding: 0.32rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  margin-top: 0.5rem;
  cursor: default;
  transition: all 0.2s var(--ease-out);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.coupon-badge:hover {
  border-style: solid;
  background: rgba(245, 158, 11, 0.18);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}
.coupon-code {
  font-family: "Courier New", monospace;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
}
.coupon-copy-btn {
  background: rgba(245, 158, 11, 0.15);
  border: none;
  color: var(--warning);
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.18s var(--ease-out);
}
.coupon-copy-btn:hover {
  background: rgba(245, 158, 11, 0.4);
  transform: scale(1.1) rotate(8deg);
} /* ===== COMPARTIR ===== */
.share-wrapper {
  position: absolute;
  top: 0.6rem;
  right: 3.2rem;
  z-index: 6;
}
.card-badge ~ .share-wrapper {
  right: 7.4rem;
}
.card-share-btn {
  background: rgba(7, 7, 13, 0.7);
  border: 1px solid var(--glass-border);
  color: var(--text-soft);
  border-radius: 99px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s var(--ease-out);
  opacity: 0;
}
.product-card:hover .card-share-btn {
  opacity: 1;
}
.card-share-btn:hover {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #000;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.5);
  transform: scale(1.1);
}
.share-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 20, 30, 0.92),
    rgba(7, 7, 13, 0.85)
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius);
  padding: 0.5rem;
  display: flex;
  gap: 0.4rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.95);
  transition: all 0.22s var(--ease-out);
  z-index: 20;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.share-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}
.share-option {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  transition: all 0.18s var(--ease-out);
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.share-option:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}
.share-wa:hover {
  background: linear-gradient(
    135deg,
    rgba(37, 211, 102, 0.25),
    rgba(37, 211, 102, 0.1)
  );
  border-color: rgba(37, 211, 102, 0.5);
  color: #25d366;
  box-shadow: 0 0 14px rgba(37, 211, 102, 0.4);
}
.share-tg:hover {
  background: linear-gradient(
    135deg,
    rgba(34, 158, 217, 0.25),
    rgba(34, 158, 217, 0.1)
  );
  border-color: rgba(34, 158, 217, 0.5);
  color: #229ed9;
  box-shadow: 0 0 14px rgba(34, 158, 217, 0.4);
}
.share-x:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.05)
  );
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.2);
}
.share-copy:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.2),
    rgba(0, 212, 255, 0.05)
  );
  border-color: rgba(0, 212, 255, 0.5);
  color: var(--secondary);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.4);
}
.drawer-share .share-menu {
  position: static;
  opacity: 1;
  pointer-events: all;
  transform: none;
  border: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.drawer-share .share-option {
  width: 44px;
  height: 44px;
  font-size: 1rem;
} /* ===== LIST VIEW ===== */ /* ══════════════════════════════════════════════════════════   LIST VIEW — Reference: 840×360 (ratio 2.333:1)   Image: 40% right | Overlay: 60% left   All sizes are proportional to card width   ══════════════════════════════════════════════════════════ */ /* ── Desktop: max 840px, centered ── */
@media (min-width: 861px) {
  .products-grid.list-view {
    padding: 0 calc(50% - 420px);
  }
} /* ── Base list-view ── */
.products-grid.list-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.products-grid.list-view .product-card {
  width: 840px;
  height: 360px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
  padding: 0;
  background: #000;
  content-visibility: visible;
}
.products-grid.list-view .product-card::before,
.products-grid.list-view .product-card::after {
  display: none;
}
.products-grid.list-view .product-card[data-hot="true"] {
  animation: none;
  border-color: rgba(255, 255, 255, 0.1);
}
.products-grid.list-view .product-card:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.15);
} /* ── Image: 40% right ── */
.products-grid.list-view .card-photo-bg {
  display: block;
  z-index: 0;
}
.products-grid.list-view .card-img-full {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: auto;
  width: 40%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  margin: 0;
  background: transparent;
  display: block;
  z-index: 3;
}
.products-grid.list-view .card-img-full img {
  object-fit: cover;
  padding: 0;
}
.products-grid.list-view .card-img-full .carousel {
  height: 100%;
} /* ── FIX: neutralizar aspect-ratio/height base en list-view ── */
.products-grid.list-view .product-card .card-img-full {
  height: 100% !important;
  aspect-ratio: auto !important;
  max-height: none !important;
}
.products-grid.list-view .card-photo-bg {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  right: 0 !important;
  left: auto !important;
  width: 40% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  z-index: 0 !important;
  display: block !important;
} /* ── Overlay: 60% left ── */
.products-grid.list-view .card-overlay {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 60%;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
  justify-content: flex-end;
  overflow: hidden;
}
.products-grid.list-view .card-overlay::before {
  display: none;
} /* ── Overlay top: title + prices ── */
.products-grid.list-view .card-overlay-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  position: static;
  z-index: auto;
}
.products-grid.list-view .card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f5f5ff;
  line-height: 1.25;
  display: block;
  width: 100%;
  margin: 0;
  text-shadow: none;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.products-grid.list-view .card-prices {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  position: static;
}
.products-grid.list-view .price-current {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f97316;
  text-shadow: none;
}
.products-grid.list-view .price-original {
  font-size: 0.52rem;
  color: #888;
}
.products-grid.list-view .savings-badge {
  display: inline-flex;
  font-size: 0.45rem;
  font-weight: 600;
  color: #fbbf24;
} /* ── Meta: store + rating ── */
.products-grid.list-view .card-overlay-meta {
  position: static;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0;
}
.products-grid.list-view .card-store-badge {
  font-size: 0.5rem;
  padding: 0.06rem 0.25rem;
  border-radius: 99px;
  color: #aaa;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.products-grid.list-view .card-store-badge.store-aliexpress,
.products-grid.list-view .card-store-badge.store-amazon,
.products-grid.list-view .card-store-badge.store-shein,
.products-grid.list-view .card-store-badge.store-temu {
  background: rgba(255, 255, 255, 0.06);
  color: #ccc;
  border-color: rgba(255, 255, 255, 0.1);
}
.products-grid.list-view .card-rating {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  font-size: 0.52rem;
  color: #888;
  margin: 0;
}
.products-grid.list-view .stars {
  color: #fbbf24;
  font-size: 0.6rem;
}
.products-grid.list-view .rating-count {
  font-size: 0.5rem;
  color: #888;
} /* ── Badges ── */
.products-grid.list-view .discount-badge-card {
  top: 12px;
  left: 12px;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
  z-index: 5;
}
.products-grid.list-view .hot-badge-card {
  display: none;
}
.products-grid.list-view .card-badge {
  display: none;
} /* ── Actions: right-aligned ── */
.products-grid.list-view .card-overlay-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-end;
  margin-top: 0;
  padding-top: 0;
}
.products-grid.list-view .card-wishlist-btn {
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #aaa;
  order: 2;
}
.products-grid.list-view .btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 700;
  padding: 0 0.75rem;
  min-width: 120px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-family: inherit;
  box-shadow: none;
  line-height: normal;
  order: 3;
}
.products-grid.list-view .btn-buy:hover {
  filter: brightness(1.1);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}
.products-grid.list-view .btn-buy:active {
  transform: translateY(1px);
  filter: brightness(0.95);
}
.products-grid.list-view .btn-buy::after {
  display: none;
}
.products-grid.list-view .card-wishlist-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  transform: none;
} /* ══════════════════════════════════════════════════════════   LIST VIEW MOBILE — Scaled version of desktop   Reference scale: viewport_width / 840   ══════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .products-grid.list-view {
    padding: 0 0.75rem;
  }
  .products-grid.list-view .product-card {
    width: 100%;
    max-width: 840px;
    height: calc((100vw - 1.5rem) * 360 / 840);
  }
}
@media (max-width: 600px) {
  .products-grid.list-view {
    gap: 0.5rem;
    padding: 0 0.5rem;
  }
  .products-grid.list-view .product-card {
    width: 100%;
    height: calc((100vw - 1rem) * 560 / 840);
    min-height: 200px;
    border-radius: 10px;
  } /* Image: 40% right */
  .products-grid.list-view .card-img-full {
    width: 40%;
    height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    border-radius: 0;
    overflow: hidden;
    margin: 0;
    background: transparent;
    display: block;
    z-index: 3;
  }
  .products-grid.list-view .card-img-full img {
    object-fit: cover;
    padding: 0;
    width: 100%;
    height: 100%;
  }
  .products-grid.list-view .card-img-full .carousel {
    height: 100%;
  }
  .products-grid.list-view .card-photo-bg {
    display: block;
    z-index: 0;
  } /* Overlay: 60% left */
  .products-grid.list-view .card-overlay {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 60%;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 0;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 2;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
  }
  .products-grid.list-view .card-overlay::before {
    display: none;
  } /* Overlay top */
  .products-grid.list-view .card-overlay-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: static;
    z-index: auto;
  } /* Title */
  .products-grid.list-view .card-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: #f5f5ff;
    line-height: 1.2;
    display: block;
    width: 100%;
    margin: 0;
    text-shadow: none;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  } /* Prices */
  .products-grid.list-view .card-prices {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    margin: 0;
    position: static;
  }
  .products-grid.list-view .price-current {
    font-size: 0.75rem;
    font-weight: 800;
    color: #f97316;
    text-shadow: none;
  }
  .products-grid.list-view .price-original {
    font-size: 0.45rem;
    color: #888;
    text-decoration: line-through;
  }
  .products-grid.list-view .savings-badge {
    display: none;
  } /* Meta */
  .products-grid.list-view .card-overlay-meta {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.1rem;
    margin-top: 0;
  }
  .products-grid.list-view .card-store-badge {
    font-size: 0.42rem;
    padding: 0.04rem 0.18rem;
    border-radius: 99px;
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .products-grid.list-view .card-store-badge.store-aliexpress,
  .products-grid.list-view .card-store-badge.store-amazon,
  .products-grid.list-view .card-store-badge.store-shein,
  .products-grid.list-view .card-store-badge.store-temu {
    background: rgba(255, 255, 255, 0.06);
    color: #ccc;
    border-color: rgba(255, 255, 255, 0.1);
  }
  .products-grid.list-view .card-rating {
    display: flex;
    align-items: center;
    gap: 0.06rem;
    font-size: 0.42rem;
    color: #888;
    margin: 0;
  }
  .products-grid.list-view .stars {
    color: #fbbf24;
    font-size: 0.5rem;
  }
  .products-grid.list-view .rating-count {
    font-size: 0.38rem;
    color: #888;
  } /* Actions */
  .products-grid.list-view .card-overlay-actions {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    justify-content: flex-end;
    margin-top: 0;
    padding-top: 0;
  }
  .products-grid.list-view .card-wishlist-btn {
    width: 28px;
    height: 28px;
    font-size: 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #aaa;
    order: 2;
  }
  .products-grid.list-view .btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.42rem;
    font-weight: 700;
    padding: 0 0.45rem;
    min-width: 80px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    font-family: inherit;
    box-shadow: none;
    line-height: normal;
    order: 3;
  }
  .products-grid.list-view .btn-buy:hover {
    filter: brightness(1.1);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
  }
  .products-grid.list-view .btn-buy:active {
    transform: translateY(1px);
    filter: brightness(0.95);
  }
  .products-grid.list-view .btn-buy::after {
    display: none;
  }
  .products-grid.list-view .card-wishlist-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: none;
  } /* Discount badge */
  .products-grid.list-view .discount-badge-card {
    font-size: 0.42rem;
    padding: 0.06rem 0.2rem;
    top: 4px;
    left: 4px;
  } /* Hide non-essential */
  .products-grid.list-view .hot-badge-card {
    display: none;
  }
  .products-grid.list-view .card-badge {
    display: none;
  } /* Share button */
  .products-grid.list-view .share-wrapper {
    position: absolute;
    top: 4px;
    right: 42%;
    z-index: 6;
    width: 24px;
    height: 24px;
  }
  .products-grid.list-view .card-share-btn {
    width: 24px;
    height: 24px;
    font-size: 0.5rem;
  } /* Carousel arrows in 40% image area */
  .products-grid.list-view .carousel-arrow {
    display: none;
  }
  .products-grid.list-view .carousel-dots {
    bottom: 4px;
    gap: 3px;
  }
  .products-grid.list-view .carousel-dot {
    width: 5px;
    height: 5px;
  }
} /* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: fadeIn 0.5s var(--ease-out);
}
.empty-icon {
  font-size: 4rem;
  animation: heroBadgeFloat 3.2s ease-in-out infinite;
  filter: drop-shadow(0 6px 18px rgba(255, 107, 53, 0.4));
}
.empty-state h3 {
  font-family: var(--pixel-font);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  color: var(--text);
  background: linear-gradient(135deg, var(--text), var(--text-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.empty-state p {
  color: var(--text-muted);
  max-width: 380px;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ══ Coupon Generator ══ */
.coupon-gen {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 340px;
  animation: couponFadeIn 0.6s var(--ease-out);
}
.coupon-gen-inner {
  aspect-ratio: 2 / 1;
  background: linear-gradient(145deg, rgba(18,18,32,0.95), rgba(10,10,22,0.98));
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: 16px;
  padding: 1.4rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 30px rgba(255, 107, 53, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.coupon-gen-inner::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: conic-gradient(from 0deg, transparent, rgba(255,107,53,0.3), transparent, rgba(255,107,53,0.15), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  pointer-events: none;
}
.coupon-gen-inner:hover::before {
  opacity: 1;
}
.coupon-gen-inner:hover {
  border-color: rgba(255, 107, 53, 0.5);
  box-shadow:
    0 0 50px rgba(255, 107, 53, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
@keyframes couponGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(255, 107, 53, 0.08); }
  50% { box-shadow: 0 0 60px rgba(255, 107, 53, 0.18); }
}
.coupon-gen-inner {
  animation: couponGlow 3s ease-in-out infinite;
}
@keyframes couponFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.coupon-gen-label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.coupon-gen-display {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
}
.coupon-char {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 52px;
  background: rgba(7,7,13,0.7);
  border: 1px solid rgba(255,107,53,0.2);
  border-radius: 10px;
  font-family: 'Courier New', monospace;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 12px rgba(255,107,53,0.5);
  transition: all 0.15s var(--ease-out);
}
.coupon-char.scramble {
  animation: charScramble 0.08s linear infinite;
}
@keyframes charScramble {
  0%   { transform: translateY(0); }
  25%  { transform: translateY(-3px); }
  50%  { transform: translateY(0); }
  75%  { transform: translateY(2px); }
  100% { transform: translateY(0); }
}
.coupon-char.settle {
  animation: charSettle 0.35s var(--ease-out);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(255,107,53,0.3);
}
@keyframes charSettle {
  0%   { transform: scale(1.3) translateY(-8px); opacity: 0.5; }
  60%  { transform: scale(0.95) translateY(2px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.coupon-gen-btn {
  margin-top: 0.2rem;
  padding: 0.85rem 2.5rem;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary), #ff8a50);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease-out);
  box-shadow: 0 4px 20px rgba(255,107,53,0.3);
}
.coupon-gen-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease-out);
}
.coupon-gen-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 30px rgba(255,107,53,0.45);
}
.coupon-gen-btn:hover::after {
  transform: translateX(100%);
}
.coupon-gen-btn:active {
  transform: scale(0.96);
}
.coupon-gen-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.coupon-gen-footer {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.5px;
}
/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: crtScanIn 0.25s var(--ease-out);
}
@keyframes crtScanIn {
  0% {
    opacity: 0;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
  }
  100% {
    opacity: 1;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}
.modal-box {
  background: linear-gradient(
    160deg,
    rgba(20, 20, 30, 0.95) 0%,
    rgba(7, 7, 13, 0.88) 100%
  );
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  animation: modalReveal 0.35s var(--ease-bounce);
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}
.modal-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary),
    var(--secondary),
    transparent
  );
  opacity: 0.6;
}
@keyframes modalReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.94);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
}
.modal-header h3 {
  font-family: "Inter", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease-out);
  border: 1px solid var(--glass-border);
  font-size: 0.9rem;
}
.modal-close:hover {
  background: var(--error);
  color: #fff;
  border-color: var(--error);
  transform: rotate(90deg);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}
.modal-body {
  padding: 1.5rem;
}
.modal-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  line-height: 1.55;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 0.7rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}
.manual-fields {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.product-type-toggle {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.03);
  width: fit-content;
}
.pt-btn {
  padding: 0.4rem 0.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: var(--text-soft);
  transition: all 0.2s var(--ease-out);
}
.pt-btn.active {
  background: rgba(0, 212, 255, 0.12);
  color: var(--secondary);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.12);
}
.pt-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.personal-field textarea,
.personal-field input {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5ff;
  font-size: 0.8rem;
  outline: none;
  padding: 0.4rem 0.55rem;
  font-family: inherit;
  box-sizing: border-box;
}
.personal-field select {
  width: 100%;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: rgba(7, 7, 13, 0.6);
  color: #f5f5ff;
  font-size: 0.8rem;
  outline: none;
  box-sizing: border-box;
}
.img-upload-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.img-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.img-upload-btn:hover {
  background: rgba(0, 212, 255, 0.08);
  color: var(--secondary);
  border-color: rgba(0, 212, 255, 0.3);
}
.img-upload-status {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  background: rgba(255, 255, 255, 0.02);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.2s var(--ease-out);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.btn-secondary:active {
  transform: translateY(0) scale(0.97);
}
.modal-footer .btn-primary {
  padding: 0.65rem 1.5rem;
}
.modal-footer .btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
#admin-webhook-status {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  margin-top: 0.5rem;
  display: none;
  animation: slideUp 0.3s var(--ease-out);
} /* ===== DRAWER ===== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  display: flex;
  justify-content: flex-end;
  animation: fadeIn 0.22s var(--ease-out);
}
.drawer-box {
  background: linear-gradient(
    180deg,
    rgba(20, 20, 30, 0.85) 0%,
    rgba(7, 7, 13, 0.78) 100%
  );
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid var(--glass-border-strong);
  border-right: none;
  width: 100%;
  max-width: 480px;
  height: calc(100vh - 1.5rem);
  margin: 0.75rem 0;
  overflow: hidden;
  position: relative;
  animation: slideInRight 0.32s var(--ease-drawer);
  box-shadow:
    -24px 0 70px rgba(0, 0, 0, 0.6),
    inset 1px 0 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.drawer-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    var(--primary),
    var(--secondary),
    transparent
  );
  opacity: 0.5;
}
.drawer-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s var(--ease-out);
  z-index: 5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.drawer-close:hover {
  background: var(--error);
  color: #fff;
  border-color: var(--error);
  transform: rotate(90deg);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
}
.drawer-content {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow-y: auto;
  flex: 1;
} /* Compact image area at top */
.drawer-image-area {
  flex-shrink: 0;
  height: 203px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: rgba(7, 7, 13, 0.5);
  border: 1px solid var(--glass-border);
}
.drawer-image-area .carousel,
.drawer-image-area .drawer-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.drawer-image-area .drawer-product-img {
  border: none;
  border-radius: 0;
  background: transparent;
}
.drawer-image-area .carousel-track {
  position: absolute;
  inset: 0;
}
.drawer-image-area .carousel-slide {
  position: absolute;
  inset: 0;
}
.drawer-image-area .carousel-arrow {
  width: 28px;
  height: 28px;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.2s var(--ease-out);
}
.drawer-image-area:hover .carousel-arrow {
  opacity: 1;
}
.drawer-image-area .carousel-dots {
  bottom: 6px;
  gap: 4px;
}
.drawer-image-area .carousel-dot {
  width: 6px;
  height: 6px;
}
.drawer-image-area .carousel-dot.active {
  width: 14px;
}
.drawer-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  background: transparent;
}
.drawer-title {
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.drawer-store-badge {
  font-size: 0.65rem !important;
  padding: 0.18rem 0.55rem !important;
  margin: 0 !important;
}
.drawer-prices {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0;
}
.drawer-price {
  font-family: "Inter", sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 24px rgba(255, 107, 53, 0.45);
  letter-spacing: -0.02em;
  line-height: 1;
}
.drawer-original {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.drawer-extras {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}
.drawer-extras .savings-badge {
  font-size: 0.78rem;
  margin: 0;
}
.drawer-extras .coupon-badge {
  font-size: 0.7rem;
  margin: 0;
  padding: 0.25rem 0.6rem;
}
.drawer-extras .card-rating {
  font-size: 0.72rem;
  margin: 0;
}
.drawer-actions {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  margin: 0;
}
.btn-buy-drawer {
  flex: 1;
  background: linear-gradient(135deg, var(--primary) 0%, #ff4500 100%);
  color: #fff;
  padding: 0.38rem 0.5rem;
  border-radius: var(--radius);
  text-align: center;
  font-family: var(--pixel-font);
  font-size: 0.46rem;
  letter-spacing: 0.03em;
  transition: all 0.2s var(--ease-out);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 14px rgba(255, 107, 53, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-buy-drawer:hover {
  filter: brightness(1.12);
  box-shadow:
    0 6px 20px rgba(255, 107, 53, 0.5),
    var(--glow-primary),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.btn-buy-drawer:active {
  transform: translateY(1px) scale(0.99);
}
.btn-buy-drawer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: skewX(-25deg);
  animation: arcadeShine 3.2s infinite;
}
.btn-wishlist-drawer {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.38rem 0.5rem;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  font-size: 0.7rem;
  transition: all 0.2s var(--ease-out);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-wishlist-drawer:hover {
  border-color: var(--error);
  color: var(--error);
  background: rgba(239, 68, 68, 0.08);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.25);
}
.drawer-share {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.drawer-share .share-menu {
  position: static;
  opacity: 1;
  pointer-events: all;
  transform: none;
  border: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.drawer-share .share-option {
  width: 34px;
  height: 34px;
  font-size: 0.85rem;
}
.drawer-share-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 0.25rem;
}
.drawer-comments-compact {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--glass-border);
  flex: 1;
  min-height: 0;
}
.drawer-comments-compact .comments-header {
  font-size: 0.85rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.drawer-comments-compact .comment-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: none;
  overflow: visible;
  padding: 0;
  flex: 1;
  min-height: 0;
}
.drawer-comments-compact .comment-item {
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  gap: 0.55rem;
}
.drawer-comments-compact .comment-avatar {
  width: 26px;
  height: 26px;
  font-size: 0.75rem;
}
.drawer-comments-compact .comment-author {
  font-size: 0.78rem;
  margin-bottom: 0.1rem;
}
.drawer-comments-compact .comment-date {
  font-size: 0.65rem;
}
.drawer-comments-compact .comment-text {
  font-size: 0.78rem;
  line-height: 1.4;
}
.drawer-comments-compact .comment-input-area {
  margin-top: 0.15rem;
}
.drawer-comments-compact .comment-textarea {
  min-height: 50px;
  padding: 0.55rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}
.drawer-comments-compact .comment-btn-row {
  margin-top: 0;
}
.drawer-comments-compact .comment-btn-row .btn-primary {
  font-size: 0.72rem;
  padding: 0.4rem 0.8rem;
}
.drawer-comments-compact .auth-prompt {
  padding: 0.85rem;
  font-size: 0.8rem;
} /* ===== WISHLIST DRAWER ===== */
.wishlist-drawer-box {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}
.drawer-header h3 {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wishlist-drawer-box .drawer-close {
  position: static;
  margin-left: auto;
}
.wishlist-content {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
}
.wishlist-item {
  display: flex;
  gap: 0.9rem;
  padding: 0.7rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  margin-bottom: 0.7rem;
  align-items: center;
  transition: all 0.2s var(--ease-out);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.wishlist-item:hover {
  border-color: rgba(255, 107, 53, 0.4);
  transform: translateX(2px);
  box-shadow: -2px 4px 12px rgba(0, 0, 0, 0.3);
}
.wishlist-item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}
.wishlist-item-info {
  flex: 1;
  min-width: 0;
}
.wishlist-item-title {
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wishlist-item-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 8px rgba(255, 107, 53, 0.3);
}
.wishlist-item-remove {
  color: var(--text-soft);
  font-size: 1rem;
  padding: 0.25rem;
  transition: all 0.18s var(--ease-out);
  border-radius: var(--radius-sm);
}
.wishlist-item-remove:hover {
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
  transform: scale(1.15) rotate(90deg);
}
.wishlist-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.wishlist-empty::before {
  content: "💔";
  display: block;
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}
/* ===== CART DRAWER ===== */
.cart-footer {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}
.btn-cart-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.btn-cart-order:hover {
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  filter: brightness(1.1);
  transform: translateY(-1px);
  color: #fff;
}
.btn-cart-order:active {
  transform: translateY(0) scale(0.98);
} /* ===== SECRET ADMIN ===== */
.copyright-trigger {
  display: inline-block;
  cursor: pointer;
  user-select: none;
  position: relative;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  transition: all 0.25s var(--ease-out);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}
.copyright-trigger:hover,
.copyright-trigger:focus {
  outline: none;
}
.copyright-trigger:active {
  transform: scale(0.94);
}
.admin-settings-action:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
.admin-settings-action:active {
  transform: translateY(0) scale(0.96);
} /* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 500;
  background: linear-gradient(
    135deg,
    rgba(20, 20, 30, 0.95),
    rgba(7, 7, 13, 0.88)
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius);
  padding: 0.75rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: toastSlideIn 0.4s var(--ease-bounce);
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
} /* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 500;
  background: linear-gradient(
    135deg,
    rgba(17, 17, 25, 0.92),
    rgba(9, 9, 15, 0.85)
  );
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius);
  padding: 0.7rem 1.1rem;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: slideInRight 0.28s var(--ease-out);
  max-width: 300px;
}
.toast.success {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(34, 197, 94, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--success);
}
.toast.error {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(239, 68, 68, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--error);
}
.toast.info {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(0, 212, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--secondary);
}
@keyframes toastSlideIn {
  0% {
    opacity: 0;
    transform: translateX(60px) scale(0.9);
  }
  60% {
    transform: translateX(-4px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
} /* ===== COIN ===== */
.coin-float {
  position: fixed;
  color: var(--warning);
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  pointer-events: none;
  z-index: 9999;
  animation: coinUp 1s var(--ease-out) forwards;
  text-shadow:
    0 0 12px currentColor,
    0 2px 0 #b45309;
} /* ===== FOOTER ===== */
.footer {
  background: linear-gradient(
    180deg,
    rgba(14, 14, 22, 0.3) 0%,
    rgba(7, 7, 13, 0.92) 100%
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--glass-border);
  padding: 2.75rem 0 1.6rem;
  position: relative;
  z-index: 1;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary),
    var(--secondary),
    var(--accent),
    transparent
  );
  opacity: 0.4;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.85rem;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.75rem 0;
  line-height: 1.7;
}
.footer-links h4 {
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-links h4::before {
  content: "";
  width: 3px;
  height: 12px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 2px;
}
.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer-links a {
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: all 0.18s var(--ease-out);
  display: inline-block;
  position: relative;
  padding-left: 0;
}
.footer-links a:hover {
  color: var(--primary);
  transform: translateX(3px);
  text-shadow: 0 0 8px rgba(255, 107, 53, 0.4);
}
.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 1.2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  position: relative;
} /* ===== COMMENTS ===== */
.comments-section {
  margin-top: 2.25rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
}
.comments-header {
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.comment-list::-webkit-scrollbar {
  width: 6px;
}
.comment-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
}
.comment-item {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  display: flex;
  gap: 0.75rem;
  animation: slideUp 0.3s var(--ease-out);
  transition: all 0.2s var(--ease-out);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.comment-item:hover {
  border-color: rgba(255, 107, 53, 0.3);
  background: rgba(255, 107, 53, 0.04);
}
.comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 0.85rem;
  box-shadow:
    0 0 10px rgba(255, 107, 53, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.comment-body {
  flex: 1;
  min-width: 0;
}
.comment-author {
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  gap: 0.5rem;
}
.comment-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}
.comment-text {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
  word-break: break-word;
}
.comment-actions {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.4rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.comment-item:hover .comment-actions,
.comment-item:focus-within .comment-actions {
  opacity: 1;
}
.comment-edit-btn,
.comment-del-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.2rem 0.45rem;
  line-height: 1;
  transition: all 0.15s;
}
.comment-edit-btn:hover,
.comment-del-btn:hover {
  background: rgba(255,255,255,0.12);
}
.comment-edit-textarea {
  margin-top: 0.3rem;
  min-height: 50px;
  font-size: 0.85rem;
  width: 100%;
  background: rgba(7, 7, 13, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.5rem;
  resize: vertical;
  box-sizing: border-box;
}
.comment-input-area {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.comment-textarea {
  width: 100%;
  background: rgba(7, 7, 13, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 0.8rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: all 0.2s var(--ease-out);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.comment-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}
.comment-btn-row {
  display: flex;
  justify-content: flex-end;
}
.auth-prompt {
  text-align: center;
  padding: 1.4rem;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.08),
    rgba(0, 212, 255, 0.02)
  );
  border: 1px dashed rgba(0, 212, 255, 0.3);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-soft);
}
.auth-prompt a {
  color: var(--secondary);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.auth-prompt a:hover {
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  text-decoration: underline;
} /* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes coinUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
  50% {
    transform: translateY(-36px) scale(1.3) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-70px) scale(0.6) rotate(360deg);
  }
}
@keyframes arcadeShine {
  0% {
    left: -100%;
  }
  20% {
    left: 200%;
  }
  100% {
    left: 200%;
  }
}
@keyframes cartRun {
  0% {
    right: -40px;
  }
  80% {
    right: 105%;
  }
  100% {
    right: 140%;
  }
}
@keyframes letterEaten {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  15% {
    transform: translate(4px, -7px) scale(1.15);
  }
  20% {
    opacity: 0;
    transform: translate(14px, 0) scale(0.25) rotate(-18deg);
  }
  85% {
    opacity: 0;
  }
  90% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@keyframes ambientFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(20px, -15px) scale(1.04);
  }
  66% {
    transform: translate(-18px, 12px) scale(0.98);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}
@keyframes arcadeReveal {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.94);
    clip-path: inset(0 0 100% 0);
  }
  60% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    clip-path: inset(0 0 0 0);
  }
}
@keyframes crtFlicker {
  0%,
  100% {
    opacity: 1;
  }
  3%,
  5% {
    opacity: 0.96;
  }
  4% {
    opacity: 0.92;
  }
  43% {
    opacity: 1;
  }
  44% {
    opacity: 0.97;
  }
}
@keyframes pixelGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
  }
}
.card-enter {
  animation: slideUp 0.4s var(--ease-out);
}
.spin {
  animation: spin 0.7s linear infinite;
  display: inline-block;
} /* Stagger entrance for cards */
.products-grid .product-card {
  animation: slideUp 0.45s var(--ease-out) both;
}
.products-grid .product-card:nth-child(1) {
  animation-delay: 0.02s;
}
.products-grid .product-card:nth-child(2) {
  animation-delay: 0.06s;
}
.products-grid .product-card:nth-child(3) {
  animation-delay: 0.1s;
}
.products-grid .product-card:nth-child(4) {
  animation-delay: 0.14s;
}
.products-grid .product-card:nth-child(5) {
  animation-delay: 0.18s;
}
.products-grid .product-card:nth-child(6) {
  animation-delay: 0.22s;
}
.products-grid .product-card:nth-child(7) {
  animation-delay: 0.26s;
}
.products-grid .product-card:nth-child(8) {
  animation-delay: 0.3s;
}
.products-grid .product-card:nth-child(n + 9) {
  animation-delay: 0.34s;
} /* ===== MEDIA QUERIES ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
  .hero-floating span {
    font-size: 1.2rem !important;
  }
}
@media (max-width: 768px) {
  .header-top {
    padding: 0.2rem 0;
  }
  .header-top-inner {
    gap: 1.5rem;
    animation-duration: 18s;
  }
  .header-top-text {
    font-size: 0.6rem;
  }
  .header-main {
    padding: 0.55rem 0;
  }
  .header-inner {
    gap: 0.6rem;
    padding: 0 0.85rem;
  }
  .logo {
    padding: 0.15rem 0.3rem;
  }
  .logo-icon {
    font-size: 1.1rem;
  }
  .logo-text {
    font-size: 0.6rem;
  }
  .header-actions {
    gap: 0.3rem;
  }
  .icon-btn {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }
  .badge {
    min-width: 16px;
    height: 16px;
    font-size: 0.5rem;
    top: -4px;
    right: -4px;
  }
  .btn-primary-sm {
    font-size: 0.68rem;
    padding: 0.35rem 0.75rem;
  }
  .header-actions #user-name-display-header {
    display: none !important;
  }
  .hero {
    min-height: 280px;
    padding: 0.5rem 0;
  }
  .hero-content {
    padding: 1.5rem 0 2rem;
  }
  .hero-badge {
    font-size: 0.6rem;
    padding: 0.3rem 0.7rem;
    margin-bottom: 0.8rem;
  }
  .hero-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem) !important;
    margin-bottom: 0.6rem;
  }
  .hero-subtitle {
    font-size: 0.82rem;
    max-width: 100%;
    margin-bottom: 1.2rem;
  }
  .hero-floating {
    display: none;
  }
  .hero-stats {
    gap: 0.6rem;
  }
  .stat {
    padding: 0.4rem 0.65rem;
  }
  .stat span {
    font-size: 0.85rem;
  }
  .stat small {
    font-size: 0.58rem;
  }
  .hero-scroll-hint {
    display: none;
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0 0.5rem;
  }
  .products-grid:not(.list-view) .product-card {
    contain-intrinsic-size: auto;
    content-visibility: visible;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .category-group-header {
    padding: 0.55rem 0.7rem;
    margin-top: 0.8rem;
  }
  .cgh-emoji {
    font-size: 0.95rem;
  }
  .cgh-label {
    font-size: 0.52rem;
  }
  .cgh-count {
    font-size: 0.6rem;
    padding: 0.12rem 0.4rem;
  }
  .cgh-filter-btn {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .footer-brand {
    grid-column: auto;
  }
  .footer {
    padding: 1.5rem 0 1rem;
  }
  .footer-bottom {
    padding-top: 0.75rem;
    font-size: 0.68rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .toast {
    bottom: 0.6rem;
    right: 0.6rem;
    left: 0.6rem;
    max-width: none;
    font-size: 0.78rem;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius);
  }
  .search-bar {
    padding: 0.5rem 0;
  }
  .search-bar-inner {
    gap: 0.4rem;
  }
  .search-input-row {
    flex-direction: column;
    gap: 0.35rem;
  }
  .search-input-wrap input {
    padding: 0.55rem 2.2rem 0.55rem 34px;
    font-size: 0.85rem;
  }
  .search-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 0.55rem;
  }
  .search-submit-btn span {
    display: none;
  }
  .search-filter-label {
    display: none;
  }
  .search-filters-row {
    gap: 0.2rem;
  }
  .drawer-box {
    max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: 0;
    height: 88vh;
    max-height: 88vh;
  }
  .drawer-content {
    padding: 0.65rem;
  }
  .drawer-image-area {
    height: 210px;
  }
  .drawer-title {
    font-size: 0.9rem;
    line-height: 1.35;
  }
  .drawer-price {
    font-size: 1.3rem;
  }
  .modal-box {
    border-radius: var(--radius);
    margin: 0;
    max-width: 100%;
    width: 100%;
  }
  .section-header {
    padding: 0.55rem 0.65rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }
  .section-title {
    font-size: 0.65rem;
  }
  .section-title::before {
    display: none;
  }
  .sort-controls {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
  }
  .sort-controls #filter-select {
    width: 100%;
    flex: none;
    font-size: 0.7rem;
    padding: 0.3rem 0.45rem;
  }
  .sort-controls #sort-select {
    flex: 1;
    min-width: 0;
    font-size: 0.7rem;
    padding: 0.3rem 0.45rem;
  }
  #refresh-btn {
    font-size: 0.58rem !important;
    padding: 0.22rem 0.38rem !important;
  }
  .view-toggles {
    padding: 0.08rem;
  }
  .view-btn {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }
  .products-grid.list-view .product-card {
    aspect-ratio: auto;
    min-height: 0;
    height: calc((100vw - 1.5rem) * 360 / 840);
    border-radius: 12px;
  }
  .products-grid.list-view .card-overlay {
    padding: 14px 18px;
  }
  .card-overlay {
    padding: 0.5rem 0.55rem 0.55rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    gap: 0.15rem;
  }
  .card-overlay::before {
    background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.8) 40%,
      rgba(0, 0, 0, 0.3) 70%,
      transparent
    );
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .card-title {
    font-size: 0.72rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
  }
  .card-prices {
    gap: 0.25rem;
    margin-top: 0.15rem;
  }
  .price-current {
    font-size: 0.95rem;
    font-weight: 800;
  }
  .price-original {
    font-size: 0.62rem;
  }
  .card-overlay-meta {
    gap: 0.25rem;
    margin-top: 0.1rem;
  }
  .card-store-badge {
    font-size: 0.58rem;
    padding: 0.15rem 0.45rem;
  }
  .card-rating {
    font-size: 0.58rem;
  }
  .stars {
    font-size: 0.68rem;
  }
  .card-overlay-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
  }
  .card-wishlist-btn {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
    order: 1;
  }
  .btn-buy {
    font-size: 0.55rem;
    padding: 0.35rem 0.65rem;
    border-radius: calc(var(--radius-sm) + 1px);
    order: 2;
    width: 100%;
  }
  .discount-badge-card {
    font-size: 0.62rem;
    padding: 0.15rem 0.4rem;
    top: 0.4rem;
    left: 0.4rem;
  }
  .hot-badge-card {
    font-size: 0.52rem;
    padding: 0.12rem 0.38rem;
    top: 0.4rem;
    left: 3rem;
  }
  .card-badge {
    font-size: 0.55rem;
    padding: 0.12rem 0.4rem;
    top: 0.4rem;
    right: 0.4rem;
  }
  .savings-badge {
    font-size: 0.55rem;
  }
  .products-grid:not(.list-view) .card-overlay-meta {
    margin-top: 0;
    justify-content: center;
  }
  .products-grid:not(.list-view) .card-overlay-actions {
    margin-top: auto;
    align-self: center;
    justify-content: center;
  }
  .products-grid:not(.list-view) .savings-badge {
    display: none;
  }
  .products-grid.list-view .product-card {
    min-height: 0;
    aspect-ratio: auto;
  }
  #admin-settings-panel {
    width: calc(100vw - 2rem);
    right: 0.75rem;
    max-width: none;
  }
  .admin-settings-panel-inner {
    grid-template-columns: 1fr 1fr;
  }
  .admin-settings-panel-inner button {
    font-size: 0.65rem;
    padding: 0.35rem;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .products-grid:not(.list-view) {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .product-card {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .header-top-inner {
    gap: 1.2rem;
  }
  .header-top-text {
    font-size: 0.52rem;
  }
  .header-main {
    padding: 0.35rem 0;
  }
  .header-inner {
    gap: 0.35rem;
    padding: 0 0.55rem;
  }
  .logo-icon {
    font-size: 0.9rem;
  }
  .logo-text {
    font-size: 0.48rem;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0 0.4rem;
  }
  .product-card {
    min-height: 320px;
  }
  .sort-controls {
    flex-wrap: wrap;
  }
  .sort-controls select {
    font-size: 0.65rem;
    padding: 0.22rem 0.4rem;
  }
  .stat span {
    font-size: 0.75rem;
  }
  .stat {
    padding: 0.3rem 0.5rem;
  }
  .stat small {
    font-size: 0.5rem;
  }
  .hero-title {
    font-size: 1.3rem !important;
  }
  .hero-subtitle {
    font-size: 0.75rem;
  }
  .hero-badge {
    font-size: 0.52rem;
    padding: 0.22rem 0.55rem;
    margin-bottom: 0.6rem;
  }
  .hero-stats {
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-content {
    padding: 1.2rem 0 1.5rem;
  }
  .hero {
    min-height: 240px;
  }   /* ── Product Cards 480px ── */
  .card-overlay {
    padding: 0.35rem 0.4rem 0.45rem;
    gap: 0.1rem;
  }
  .card-title {
    font-size: 0.58rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card-prices {
    gap: 0.15rem;
    margin-top: 0.05rem;
  }
  .price-current {
    font-size: 0.78rem;
  }
  .price-original {
    font-size: 0.48rem;
  }
  .card-overlay-meta {
    gap: 0.15rem;
    margin-top: 0.05rem;
  }
  .card-store-badge {
    font-size: 0.46rem;
    padding: 0.08rem 0.3rem;
  }
  .card-rating {
    font-size: 0.46rem;
  }
  .stars {
    font-size: 0.52rem;
  }
  .card-overlay-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.15rem;
  }
  .card-wishlist-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.72rem !important;
    background: rgba(255,255,255,.04) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0 !important;
    order: 1;
  }
  .wl-heart {
    font-size: 0.85rem !important;
  }
  .btn-buy {
    font-size: 0.45rem;
    padding: 0.28rem 0.55rem;
    order: 2;
    flex: 1;
    max-width: 140px;
  }
  .discount-badge-card {
    font-size: 0.55rem;
    padding: 0.1rem 0.35rem;
    top: 0.35rem;
    left: 0.35rem;
  }
  .hot-badge-card {
    font-size: 0.48rem;
    padding: 0.1rem 0.32rem;
    top: 0.35rem;
    left: 2.6rem;
  }
  .card-badge {
    font-size: 0.5rem;
    padding: 0.1rem 0.35rem;
    top: 0.35rem;
    right: 0.35rem;
  }
  .savings-badge {
    font-size: 0.5rem;
  }
  .products-grid:not(.list-view) .card-rating,
  .products-grid:not(.list-view) .card-store-badge {
    display: none;
  }
  .footer {
    padding: 1.2rem 0 0.85rem;
  }
  .footer-heading {
    font-size: 0.75rem;
  }
  .footer-link,
  .footer-text {
    font-size: 0.7rem;
  }
  .footer-bottom {
    font-size: 0.62rem;
  }
  .footnotes {
    font-size: 0.52rem;
  }
  .drawer-image-area {
    height: 165px;
  }
  .drawer-header {
    padding: 0.6rem 0.65rem 0.45rem;
  }
  .drawer-title {
    font-size: 0.82rem;
  }
  .drawer-price {
    font-size: 1.15rem;
  }
  .drawer-body {
    padding: 0.45rem 0.65rem 0.65rem;
  }
  .drawer-desc {
    font-size: 0.78rem;
  }
  .toast {
    bottom: 0.5rem;
    right: 0.45rem;
    left: 0.45rem;
    font-size: 0.72rem;
    padding: 0.5rem 0.75rem;
  }
  .modal-inner {
    padding: 0.85rem;
  }
  .modal-title {
    font-size: 1rem;
  }
  .admin-settings-panel-inner {
    grid-template-columns: 1fr;
  }
  .admin-settings-panel-inner button {
    font-size: 0.6rem;
    padding: 0.28rem;
  }
  .section-header {
    padding: 0.35rem 0.45rem;
    gap: 0.25rem;
  }
  .section-title {
    font-size: 0.55rem;
  }
  .sort-controls #filter-select {
    font-size: 0.62rem;
    padding: 0.2rem 0.35rem;
  }
  .sort-controls #sort-select {
    font-size: 0.62rem;
    padding: 0.2rem 0.35rem;
  }
  #refresh-btn {
    font-size: 0.5rem !important;
    padding: 0.18rem 0.32rem !important;
  }
  .category-group-header {
    padding: 0.45rem 0.55rem;
    margin-top: 0.65rem;
  }
  .cgh-emoji {
    font-size: 0.82rem;
  }
  .cgh-label {
    font-size: 0.48rem;
  }
  .cgh-count {
    font-size: 0.52rem;
    padding: 0.1rem 0.38rem;
  }
}
@media (max-width: 360px) {
  .header-top-inner {
    gap: 0.8rem;
    animation-duration: 14s;
  }
  .header-top-text {
    font-size: 0.48rem;
  }
  .logo-icon {
    font-size: 0.78rem;
  }
  .logo-text {
    font-size: 0.4rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0 0.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .products-grid.list-view {
    grid-template-columns: 1fr;
    max-width: none;
  }
  .product-card {
    aspect-ratio: auto;
    min-height: 320px;
  }
  .hero-title {
    font-size: 1.15rem !important;
  }
  .hero-subtitle {
    font-size: 0.7rem;
  }
  .hero {
    min-height: 220px;
  }
  .hero-content {
    padding: 1rem 0 1.2rem;
  }
  .hero-badge {
    font-size: 0.48rem;
    padding: 0.2rem 0.5rem;
  }
  .stat span {
    font-size: 0.7rem;
  }
  .stat {
    padding: 0.28rem 0.45rem;
  }
  .stat small {
    font-size: 0.48rem;
  } /* ── Product Cards 360px ── */
  .products-grid.list-view .product-card {
    min-height: 0;
    border-radius: 8px;
  }
  .products-grid.list-view .card-overlay {
    padding: 8px 10px;
  }
  .card-overlay {
    padding: 0.3rem 0.35rem 0.45rem;
    gap: 0.08rem;
  }
  .card-title {
    font-size: 0.6rem;
  }
  .card-prices {
    gap: 0.15rem;
    margin-top: 0.08rem;
  }
  .price-current {
    font-size: 0.78rem;
  }
  .price-original {
    font-size: 0.5rem;
  }
  .card-overlay-meta {
    gap: 0.15rem;
  }
  .card-store-badge {
    font-size: 0.48rem;
    padding: 0.1rem 0.32rem;
  }
  .card-rating {
    font-size: 0.48rem;
  }
  .stars {
    font-size: 0.55rem;
  }
  .card-overlay-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
  }
  .card-wishlist-btn {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.65rem !important;
    background: rgba(255,255,255,.04) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0 !important;
    order: 1;
  }
  .wl-heart {
    font-size: 0.8rem !important;
  }
  .btn-buy {
    font-size: 0.42rem;
    padding: 0.25rem 0.45rem;
    order: 2;
    width: 100%;
  }
  .discount-badge-card {
    font-size: 0.5rem;
    padding: 0.08rem 0.3rem;
    top: 0.3rem;
    left: 0.3rem;
  }
  .hot-badge-card {
    font-size: 0.44rem;
    padding: 0.08rem 0.28rem;
    top: 0.3rem;
    left: 2.2rem;
  }
  .card-badge {
    font-size: 0.46rem;
    padding: 0.08rem 0.3rem;
    top: 0.3rem;
    right: 0.3rem;
  }
  .products-grid:not(.list-view) .card-rating,
  .products-grid:not(.list-view) .card-store-badge,
  .products-grid:not(.list-view) .savings-badge {
    display: none;
  }
  .drawer-image-area {
    height: 128px;
  }
  .drawer-title {
    font-size: 0.75rem;
  }
  .drawer-price {
    font-size: 0.95rem;
  }
  .drawer-desc {
    font-size: 0.72rem;
  }
  .drawer-content {
    padding: 0.45rem;
  }
  .drawer-header {
    padding: 0.45rem 0.55rem 0.35rem;
  }
  .drawer-body {
    padding: 0.3rem 0.55rem 0.55rem;
  }
  .drawer-actions {
    gap: 0.25rem;
  }
  .drawer-actions .btn-primary,
  .drawer-actions .btn-secondary {
    font-size: 0.62rem;
    padding: 0.35rem;
  }
  .footer {
    padding: 1rem 0 0.75rem;
  }
  .footer-heading {
    font-size: 0.7rem;
  }
  .footer-link,
  .footer-text {
    font-size: 0.65rem;
  }
  .section-header {
    padding: 0.25rem 0.35rem;
    gap: 0.2rem;
  }
  .section-title {
    font-size: 0.5rem;
  }
  .section-title::before {
    display: none;
  }
  .sort-controls #filter-select {
    font-size: 0.55rem;
    padding: 0.18rem 0.3rem;
  }
  .sort-controls #sort-select {
    font-size: 0.55rem;
    padding: 0.18rem 0.3rem;
  }
  #refresh-btn {
    font-size: 0.45rem !important;
    padding: 0.15rem 0.22rem !important;
  }
  .view-btn {
    width: 22px;
    height: 22px;
    font-size: 0.55rem;
  }
  .toast {
    font-size: 0.68rem;
    padding: 0.45rem 0.65rem;
    bottom: 0.4rem;
    right: 0.3rem;
    left: 0.3rem;
  }
  .admin-settings-panel-inner button {
    font-size: 0.52rem;
    padding: 0.22rem;
  }
  .modal-inner {
    padding: 0.65rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media (hover: none) and (pointer: coarse) {
  /* ── Nuclear: mata TODAS las animaciones/transiciones en táctil ── */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    animation-fill-mode: forwards !important;
  }
  * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .scanlines-overlay,
  .scanlines-overlay::after {
    display: none !important;
  }
  body::before,
  body::after {
    display: none !important;
  }
  .hero-floor,
  .hero-floor-inner {
    display: none !important;
  }
  .hero-floating {
    display: none;
  } /* Preserve blur on grid product cards */
  .product-card {
    backdrop-filter: blur(14px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
  } /* Preserve blur on list-view overlay and share menu */
  .products-grid.list-view .card-overlay {
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
  }
  .share-menu {
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
  }
  .product-card:hover {
    transform: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  }
  .product-card:hover::after {
    background: linear-gradient(
      135deg,
      transparent,
      rgba(255, 107, 53, 0),
      transparent
    );
  }
  .card-share-btn {
    opacity: 1;
  }
  .delete-product-btn,
  .edit-product-btn {
    opacity: 1;
  }
  .carousel-arrow {
    display: none !important;
  }
} /* Ocultar flechas del carousel en todos los dispositivos móviles */
@media (max-width: 768px) {
  .carousel-arrow {
    display: none !important;
  }
} /* ══════════════════════════════════════════════════════════   MOBILE: Wishlist button — just the heart emoji, no box   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .card-wishlist-btn {
    background: none !important;
    border: none !important;
    border-radius: 0;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
  }
  .wl-heart {
    font-size: 2.2rem;
    pointer-events: none;
    line-height: 1;
  }
  .wl-hitarea {
    pointer-events: none;
  }
  .card-wishlist-btn.wishlisted {
    border-color: transparent !important;
    background: none !important;
  }
  .card-wishlist-btn.wishlisted .wl-heart {
    color: #ef4444;
  }
  .card-wishlist-btn:hover {
    border-color: transparent !important;
    background: none !important;
  }
} /* ── Profile Drawer ───────────────────────────────────── */
.profile-drawer-box {
  max-width: 340px;
}
.profile-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1.25rem;
  gap: 0.5rem;
}
.profile-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-dark);
  margin-bottom: 0.25rem;
}
.profile-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.profile-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-all;
  text-align: center;
}
.profile-stats {
  display: flex;
  gap: 1rem;
  margin-top: 0.6rem;
  width: 100%;
}
.profile-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.65rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
}
.profile-stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}
.profile-stat small {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.profile-logout-btn {
  width: 100%;
  padding: 0.65rem;
  font-size: 0.82rem;
  margin-top: 0.5rem;
  background: transparent;
  border: 1px solid var(--error);
  color: var(--error);
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}
.profile-logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}
.user-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-dark);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  line-height: 1;
}
.user-avatar-btn:hover {
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
  border-color: var(--primary);
}
@media (max-width: 768px) {
  .profile-drawer-box {
    max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: 0;
    height: auto;
    max-height: 80vh;
  }
  .profile-avatar-large {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }
  .profile-name {
    font-size: 0.95rem;
  }
  .profile-email {
    font-size: 0.7rem;
  }
  .header-actions #user-name-display-header,
  .header-actions #logout-btn {
    display: none !important;
  }
}

/* ===== SKELETON LOADERS ===== */
@keyframes skeletonPulse {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}
.skeleton-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
}
.skeleton-card::before {
  content: '';
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(90deg, rgba(255,255,255,.03) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.03) 75%);
  background-size: 200px 100%;
  animation: skeletonPulse 1.5s infinite;
}
.skeleton-card::after {
  content: '';
  display: block;
  padding: 0.6rem;
}
.skeleton-bar {
  height: 12px;
  margin: 6px 0.6rem;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,.03) 25%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.03) 75%);
  background-size: 200px 100%;
  animation: skeletonPulse 1.5s infinite;
}
.skeleton-bar.w-80 { width: 80%; }
.skeleton-bar.w-60 { width: 60%; }
.skeleton-bar.w-40 { width: 40%; }
