/* Electromania custom styles */
:root {
  --red:#dc2626; --blue:#2563eb; --black:#111827; --white:#ffffff;
}
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; }
.font-display { font-family: 'Fredoka', 'Comic Sans MS', sans-serif; }

/* Marquee */
.marquee { display:inline-block; animation: marquee 30s linear infinite; }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* Pop animation */
.animate-pop { animation: popIn .4s cubic-bezier(.175,.885,.32,1.275); }
@keyframes popIn { from{transform:scale(.7);opacity:0} to{transform:scale(1);opacity:1} }

/* Floating toys */
.floaty { animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-15px) rotate(5deg)} }

/* Product card */
.product-card { transition: transform .3s ease, box-shadow .3s ease; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(168,85,247,.25); }
.product-card .img-wrap img { transition: transform .5s ease; }
.product-card:hover .img-wrap img { transform: scale(1.1); }

/* Badge */
.badge-sale { background: #dc2626; }
.badge-new { background: #2563eb; }
.badge-hot { background: #111827; color:#fff; }

/* Buttons */
.btn-gradient { background: #dc2626; transition: background .2s; }
.btn-gradient:hover { background: #b91c1c; }
@keyframes grad { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }

/* Hero slider */
.hero-slider { position:relative; overflow:hidden; }
.hero-slide { display:none; }
.hero-slide.active { display:block; }

/* Category card */
.cat-card { transition: all .3s ease; }
.cat-card:hover { transform: scale(1.05) rotate(-2deg); }

/* Star rating */
.stars { color:#dc2626; }

/* Cart drawer not used; page instead */

/* Scrollbar */
::-webkit-scrollbar { width:8px; height:8px; }
::-webkit-scrollbar-thumb { background: #dc2626; border-radius:4px; }

/* Loader handled by toyzone.css for ultra-fancy splash screen */
#pageLoader { position:fixed; inset:0; z-index:99999; display:flex; align-items:center; justify-content:center; }
#pageLoader.hide { opacity:0; pointer-events:none; }

/* Confetti canvas */
#confetti { position:fixed; inset:0; pointer-events:none; z-index:9998; }

/* 3D carousel perspective */
.carousel-3d { perspective: 1200px; }
.carousel-3d .swiper-slide { transform-style: preserve-3d; width: 300px; }
.trendSwiper .swiper-slide { width: 300px; }

/* Rich text (WordPress-style descriptions) */
.rich-content { font-size: 15px; line-height: 1.75; color: #374151; }
.rich-content > *:first-child { margin-top: 0; }
.rich-content > *:last-child { margin-bottom: 0; }
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  color: #111827;
  font-weight: 700;
  line-height: 1.3;
  margin: 1.1em 0 .5em;
}
.rich-content h2 { font-size: 1.4rem; color: #1d4ed8; }
.rich-content h3 { font-size: 1.2rem; color: #dc2626; }
.rich-content h4 { font-size: 1.05rem; }
.rich-content p { margin: .7em 0; }
.rich-content ul, .rich-content ol { margin: .7em 0 .7em 1.4em; }
.rich-content ul { list-style: disc; }
.rich-content ol { list-style: decimal; }
.rich-content li { margin: .35em 0; }
.rich-content strong, .rich-content b { font-weight: 800; color: #111827; }
.rich-content a { color: #dc2626; text-decoration: underline; }
.rich-content a:hover { color: #1d4ed8; }
.rich-content img { max-width: 100%; height: auto; border-radius: 12px; margin: .8em 0; display: block; }
.rich-content blockquote {
  margin: 1em 0; padding: .6em 1em; border-left: 4px solid #dc2626;
  background: #f9fafb; color: #4b5563; border-radius: 0 10px 10px 0;
}
.rich-content table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px; }
.rich-content th, .rich-content td { border: 1px solid #e5e7eb; padding: 8px 10px; text-align: left; }
.rich-content th { background: #f3f4f6; font-weight: 700; }
.rich-content hr { border: 0; border-top: 1px solid #e5e7eb; margin: 1.2em 0; }
.rich-content iframe { max-width: 100%; border-radius: 12px; }
.rich-content code, .rich-content pre {
  background: #f3f4f6; border-radius: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 13px;
}
.rich-content code { padding: 2px 5px; }
.rich-content pre { padding: 12px 14px; overflow-x: auto; }
