input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

@keyframes fade-in {
  from {
      background-color: rgba(0, 0, 0, 0);
  }
  to {
      background-color: rgba(0, 0, 0, 0.8);
  }
}

@keyframes fade-out {
  from {
      background-color: rgba(0, 0, 0, 0.8);
  }
  to {
      background-color: rgba(0, 0, 0, 0);
  }
}

@keyframes slide-in {
  from {
      transform: translateX(500px);
  }
  to {
      transform: translateX(0px);
  }
}

@keyframes slide-out {
  from {
      transform: translateX(0px);
  }
  to {
      transform: translateX(500px);
  }
}


#cart-drawer[data-state="open"] {
  animation: fade-in 0.4s forwards;
}

body.cart-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

#cart-drawer[data-state="closed"] {
  animation: fade-out 0.4s forwards;
}

#cart-drawer[data-state="open"] > div {
  animation: slide-in 0.4s forwards;
}

#cart-drawer[data-state="closed"] > div {
  animation: slide-out 0.4s forwards;
}

.dialog[data-state="open"] {
  animation: fade-in 0.4s forwards;
}

.dialog[data-state="closed"] {
  animation: fade-out 0.4s forwards;
}

.dialog[data-state="open"] > div {
  animation: dialog-in 0.2s forwards;
}

.dialog[data-state="closed"] > div {
  animation: dialog-out 0.2s forwards;
}

@keyframes dialog-in {
  from {
      opacity: 0;
      scale: 50%;
  }
  to {
      opacity: 1;
      scale: 100%;
  }
}

@keyframes dialog-out {
  from {
      opacity: 1;
      scale: 100%;
  }
  to {
      opacity: 0;
      scale: 50%;
  }
}

.reveal-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition-delay: var(--delay, 0s);
}

.reveal-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.centralcart-content iframe {
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  width: 100%;
  height: auto;
}

.grid-background {
  background-image: linear-gradient(to right,hsla(0,0%,100%,.03) 1px,transparent 1px),linear-gradient(to bottom,hsla(0,0%,100%,.03) 1px,transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 85% at 40% 30%, #000 0%, #fff0 110%)
}

.custom-bg-mask {
	mask-image: linear-gradient(hsl(var(--background)), rgba(0, 0, 0, 0.3), rgb(0, 0, 0, 0));
}

@keyframes loading {
  0% {
      left: -50%;
  }

  to {
      left: 100%;
  }
}

.detail-dash {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1) 50%, hsl(var(--foreground) / 0) 0%);
  background-position: center bottom;
  background-size: 16px;
  background-repeat: repeat-x;
  width: 100%;
  height: 1px;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: hsl(var(--primary));
  border-radius: 0.25rem;
}

.animate-float {
  animation: floatRandom 15s ease-in-out infinite;
}

@keyframes floatRandom {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  20% {
    transform: translate(-6px, -10px) rotate(-1deg);
  }
  40% {
    transform: translate(4px, -5px) rotate(1deg);
  }
  60% {
    transform: translate(-4px, -12px) rotate(-1.5deg);
  }
  80% {
    transform: translate(3px, -7px) rotate(1deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


.gradient-text {
  background: linear-gradient(
    45deg,
    hsl(var(--primary)),
    hsl(var(--primary) / 0.8),
    hsl(var(--primary) / 0.6),
    hsl(var(--primary) / 0.9),
    hsl(var(--primary)),
    hsl(var(--primary) / 0.7),
    hsl(var(--primary) / 0.5),
    hsl(var(--primary) / 0.8)
  );
  background-size: 400% 400%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 3s ease-in-out infinite;
}


.glass {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

.glass::after {
  content: "";
  transition: all 850ms cubic-bezier(.19,1,.22,1);
  background-color: white;
  opacity: .2;
  width: 50px;
  height: 200px;
  position: absolute;
  left: -85px;
  top: -80px;
  z-index: 1;
  transform: rotate(30deg);
  filter: blur(2px);
}

.glass:hover::after {
  left: 130%;
}

.glass-secondary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

.glass-secondary::after {
  content: "";
  transition: all 850ms cubic-bezier(.19,1,.22,1);
  background: linear-gradient(to right, transparent, hsl(var(--secondary) / 0.15), transparent);
  width: 100%;
  height: 200%;
  position: absolute;
  left: -150%;
  top: -50%;
  z-index: 1;
  transform: rotate(30deg);
  filter: blur(10px);
}

.glass-secondary:hover::after {
  left: 150%;
}

.faq-item .faq-content {
  overflow: hidden;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:not([open]) .faq-content {
  height: 0;
}

.faq-item summary {
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
  content: '';
}

/* ═══════════════════════════════════════════════════════
   Site — purple network background (Poppy-style)
   ═══════════════════════════════════════════════════════ */

:root {
  --ec-bg: #080c14;
  --ec-bg-secondary: #0d1420;
  --ec-navbar: rgba(18, 12, 36, 0.48);
  --ec-navbar-hover: rgba(56, 20, 76, 0.52);
  --ec-navbar-border: rgba(236, 72, 153, 0.22);
  --ec-navbar-glass-top: rgba(28, 14, 52, 0.32);
  --ec-navbar-glass-bottom: rgba(10, 12, 24, 0.26);
  --ec-btn-from: #788898;
  --ec-btn-to: #dce8f2;
  --ec-btn-glow: rgba(176, 208, 240, 0.6);
  --ec-btn-border: rgba(208, 224, 240, 0.48);
  --ec-btn-text: #0a0e18;
  --ec-neon: #a855f7;
  --ec-text: #f5f5f5;
  --ec-text-muted: #c9c9d1;
  --ec-border: rgba(168, 85, 247, 0.25);
}

html {
  min-height: 100%;
  background: var(--ec-bg);
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--ec-bg) !important;
  color: var(--ec-text);
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

.site-bg {
  position: fixed;
  left: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  margin: 0;
  padding: 0;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.site-bg-base,
.site-bg-canvas,
#site-bg-network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100lvh;
  background: transparent !important;
}

.site-bg-base {
  z-index: 0;
  background: #080c14;
}

.site-bg-canvas,
#site-bg-network-canvas {
  z-index: 2;
  display: block;
  pointer-events: none;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .site-bg-canvas,
  #site-bg-network-canvas {
    opacity: 0.85;
  }
}

.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  max-width: 56rem;
  margin-inline: auto;
  text-align: center;
}

.hero-social-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  max-width: 100%;
  padding: 0.3125rem 0.875rem 0.3125rem 0.3125rem;
  border-radius: 9999px;
  background: linear-gradient(
    135deg,
    rgba(18, 0, 31, 0.88) 0%,
    rgba(168, 85, 247, 0.14) 100%
  );
  border: 1px solid var(--ec-border);
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-social-avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hero-social-avatar,
.hero-social-more {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  margin-left: -0.4375rem;
  object-fit: cover;
  background: hsl(var(--primary) / 0.35);
}

.hero-social-avatar:first-child {
  margin-left: 0;
}

.hero-social-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -0.4375rem;
  font-size: 0.5625rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #ffffff;
  background: hsl(var(--primary) / 0.55);
}

.hero-social-text {
  font-size: clamp(0.6875rem, 2.4vw, 0.8125rem);
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .hero-social-text {
    white-space: normal;
  }
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1.125rem, 3.5vw, 1.75rem);
  border-radius: calc(var(--radius) * 1.5);
  background: linear-gradient(
    135deg,
    rgba(18, 0, 31, 0.88) 0%,
    rgba(168, 85, 247, 0.12) 100%
  );
  border: 1px solid var(--ec-border);
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  isolation: isolate;
  text-align: center;
}

@media (min-width: 640px) {
  .hero-copy {
    gap: 1.25rem;
    padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.5rem, 4vw, 2rem);
  }
}

.hero-copy .hero-title {
  display: block;
  width: 100%;
  max-width: 100%;
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 8vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #ffffff;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-shadow: none !important;
  filter: none !important;
  -webkit-text-fill-color: #ffffff;
  text-align: center;
}

.hero-copy .hero-title *,
.hero-copy .hero-title .hero-highlight,
.hero-copy .hero-title .gradient-text {
  font-weight: inherit;
  color: inherit;
  -webkit-text-fill-color: inherit;
  background: none !important;
  background-image: none !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  animation: none !important;
  filter: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

.hero-copy .hero-title .hero-highlight,
.hero-copy .hero-title .gradient-text {
  font-weight: 800;
  color: var(--ec-neon);
  -webkit-text-fill-color: var(--ec-neon);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.6;
  color: var(--ec-text-muted);
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════
   EndyCraft — navbar, footer, buttons, cards
   ═══════════════════════════════════════════════════════ */

.navbar-network,
.navbar-glass {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  background-color: transparent !important;
  background-image: linear-gradient(
    180deg,
    var(--ec-navbar-glass-top) 0%,
    var(--ec-navbar-glass-bottom) 100%
  ) !important;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(236, 72, 153, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 24px rgba(0, 0, 0, 0.15);
}

.top-announce-glass {
  background-color: rgba(28, 14, 52, 0.28) !important;
  background-image: linear-gradient(
    180deg,
    rgba(28, 14, 52, 0.34) 0%,
    rgba(10, 12, 24, 0.22) 100%
  ) !important;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(236, 72, 153, 0.2);
  color: #e8e8f0 !important;
}

.navbar-network::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(168, 85, 247, 0.08) 0%,
    transparent 42%,
    rgba(233, 30, 99, 0.05) 100%
  );
}

.site-footer,
.footer-glass {
  background-color: transparent !important;
  background-image: linear-gradient(
    180deg,
    rgba(10, 12, 24, 0.26) 0%,
    rgba(28, 14, 52, 0.32) 100%
  ) !important;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-top: 1px solid rgba(236, 72, 153, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 -4px 24px rgba(0, 0, 0, 0.15);
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(233, 30, 99, 0.05) 0%,
    transparent 58%,
    rgba(168, 85, 247, 0.08) 100%
  );
}

.site-footer .border-t {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.site-footer > div {
  position: relative;
  z-index: 1;
}

.btn-primary,
.categories-badge {
  background: linear-gradient(135deg, var(--ec-btn-from) 0%, #a8b8c8 48%, var(--ec-btn-to) 100%);
  background-color: var(--ec-btn-from);
  color: var(--ec-btn-text);
  border: 1px solid var(--ec-btn-border);
  box-shadow:
    0 2px 14px rgba(120, 152, 184, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transition:
    box-shadow 0.25s ease,
    transform 0.2s ease,
    filter 0.2s ease,
    border-color 0.2s ease;
}

.categories-badge {
  box-shadow:
    0 2px 16px rgba(140, 172, 204, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:hover:not(:disabled),
.categories-badge:hover {
  filter: brightness(1.08);
  border-color: rgba(232, 240, 248, 0.72);
  box-shadow:
    0 0 26px var(--ec-btn-glow),
    0 0 10px rgba(220, 236, 255, 0.35),
    0 4px 16px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(14, 18, 28, 0.68);
  border-color: rgba(176, 196, 216, 0.28);
  color: var(--ec-text);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(32, 40, 54, 0.88);
  border-color: rgba(200, 220, 240, 0.45);
  box-shadow: 0 0 16px rgba(176, 196, 216, 0.14);
}

.btn-outline {
  border-color: rgba(176, 196, 216, 0.32);
  color: var(--ec-text);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(176, 196, 216, 0.08);
  border-color: rgba(200, 220, 240, 0.48);
  box-shadow: 0 0 14px rgba(176, 196, 216, 0.12);
}

#categories .grid > a {
  background: rgba(27, 3, 48, 0.55);
  border-color: var(--ec-border) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#categories .grid > a:hover {
  border-color: rgba(168, 85, 247, 0.45) !important;
  box-shadow:
    0 0 28px rgba(168, 85, 247, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.25);
}

#categories .grid > a h3 {
  color: var(--ec-text);
}

#categories .grid > a p {
  color: var(--ec-text-muted);
}

.text-muted-foreground {
  color: var(--ec-text-muted);
}

.footer-bg {
  display: none;
}

.navbar-inner {
  position: relative;
  z-index: 3;
  padding: 0.875rem 1rem;
  padding-top: calc(0.875rem + env(safe-area-inset-top, 0px));
}

@media (min-width: 640px) {
  .navbar-inner {
    padding: 1.125rem 1rem;
    padding-top: calc(1.125rem + env(safe-area-inset-top, 0px));
  }
}

.navbar-row {
  min-height: 2.75rem;
  align-items: center;
}

@media (min-width: 640px) {
  .navbar-row {
    min-height: 3rem;
  }
}

/* ═══════════════════════════════════════════════════════
   Text & Search
   ═══════════════════════════════════════════════════════ */
.navbar-network .navbar-brand {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.navbar-search {
  color: var(--ec-text);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(8, 10, 22, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.navbar-network .navbar-search::placeholder {
  color: rgba(201, 201, 209, 0.55);
}

.navbar-network button[class*="border"] {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ec-text);
  background: rgba(8, 10, 22, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.navbar-network button[class*="border"]:hover {
  background: rgba(56, 20, 76, 0.42);
  border-color: rgba(236, 72, 153, 0.32);
}

.navbar-search:focus-visible {
  outline: none;
  border-color: rgba(255, 46, 122, 0.5) !important;
  box-shadow:
    0 0 0 2px rgba(168, 85, 247, 0.22),
    0 0 18px rgba(255, 46, 122, 0.18);
}

/* ═══════════════════════════════════════════════════════
   Mobile — layout fixes (iOS Safari)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  html,
  body {
    background-color: var(--ec-bg) !important;
    width: 100%;
    max-width: 100%;
  }

  .site-shell,
  .site-shell > main,
  .site-shell > footer {
    background: transparent !important;
  }

  .site-bg {
    top: -30vh;
    height: calc(130vh + env(safe-area-inset-top, 0px));
    height: calc(130lvh + env(safe-area-inset-top, 0px));
  }

  .hero-section {
    min-height: 0;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  #navbar-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 50;
  }

  #cart-drawer {
    z-index: 60;
  }
}

@media (min-width: 1024px) {
  .site-bg {
    top: 0;
    height: 100vh;
    height: 100dvh;
  }
}