/* ==========================================================================
   BOXD - Homepage Stylesheet (Jersey 10 Big Typography, Symmetrical Grid & Refined 2px Borders)
   ========================================================================== */

/* Hero Section */
.hero-section {
  position: relative;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  padding: 50px 0 70px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-main) 100%);
  border-bottom: var(--border-pixel);
}

/* Symmetrical 2-Column Hero Grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #f3e8ff;
  border: 1.5px solid #121214;
  box-shadow: 2px 2px 0px #9333ea;
  color: #121214;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.hero-pill-badge i {
  color: #9333ea;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 1px;
  color: #121214;
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  color: #9333ea;
  position: relative;
  display: inline-block;
  text-shadow: 3px 3px 0px #121214;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.35rem;
  color: var(--text-muted);
  line-height: 1.4;
  letter-spacing: 0.5px;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-btn-main {
  height: 48px;
  padding: 0 28px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  min-width: 170px;
  text-align: center;
}

/* Symmetrical 3-Column Stats Row */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  gap: 24px;
  width: 100%;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1.5px dashed #cbd5e1;
}

.hero-stat-item h4 {
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-weight: 900;
  color: #121214;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.hero-stat-item p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ==========================================================================
   3D SHIPPING CRATE / LOOT BOX (Symmetrically Centered)
/* ==========================================================================
   PURE 3D FLOATING LOOT SHOWCASE (Hardware-Accelerated Manga, Shirt & Poster)
   ========================================================================== */
.hero-slideshow-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  z-index: 2;
  perspective: 1400px;
}

.slideshow-aura-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(147, 51, 234, 0.28) 0%, rgba(236, 72, 153, 0.12) 45%, transparent 70%);
  filter: blur(45px);
  z-index: 1;
  pointer-events: none;
}

.slideshow-pedestal-glow {
  position: absolute;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 30px;
  background: radial-gradient(ellipse, rgba(147, 51, 234, 0.4) 0%, rgba(236, 72, 153, 0.2) 50%, transparent 75%);
  filter: blur(12px);
  z-index: 1;
  pointer-events: none;
}

/* Floating Model Header */
.slideshow-floating-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 8px;
  z-index: 4;
}

.model-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #121214;
  background: #ffffff;
  border: 2px solid #121214;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0px #9333ea;
  transition: all 0.3s ease;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9333ea;
  animation: pulseGlow 1.8s infinite;
  display: inline-block;
}

.slideshow-counter {
  font-family: var(--font-code);
  font-size: 1.2rem;
  font-weight: 800;
  color: #121214;
  background: #ffffff;
  border: 2px solid #121214;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  box-shadow: 2px 2px 0px #121214;
  letter-spacing: 0.5px;
}

/* 3D Carousel Stage */
.slideshow-carousel {
  position: relative;
  width: 100%;
  flex: 1;
  perspective: 1400px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.slideshow-card {
  position: absolute;
  width: 440px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease, filter 0.5s ease;
  will-change: transform, opacity;
  cursor: pointer;
  transform-origin: center center;
}

/* Pure 3D Position States */
.slideshow-card.active {
  transform: translate3d(0, 0, 80px) scale(1.05);
  opacity: 1;
  z-index: 5;
  pointer-events: auto;
  filter: none;
}

.slideshow-card.prev {
  transform: translate3d(-110px, 10px, -70px) rotateY(20deg) scale(0.78);
  opacity: 0.35;
  z-index: 2;
  pointer-events: auto;
  filter: blur(1.5px);
}

.slideshow-card.next {
  transform: translate3d(110px, 10px, -70px) rotateY(-20deg) scale(0.78);
  opacity: 0.35;
  z-index: 2;
  pointer-events: auto;
  filter: blur(1.5px);
}

.slideshow-card.hidden {
  transform: translate3d(0, 0, -140px) scale(0.65);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* RTL 3D Carousel Symmetry */
html[dir="rtl"] .slideshow-card.prev {
  transform: translate3d(110px, 10px, -70px) rotateY(-20deg) scale(0.78);
}

html[dir="rtl"] .slideshow-card.next {
  transform: translate3d(-110px, 10px, -70px) rotateY(20deg) scale(0.78);
}

/* Pure 3D Floating Model Wrapper */
.pure-3d-model-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.pure-3d-model-img {
  max-height: 340px;
  max-width: 95%;
  object-fit: contain;
  filter: drop-shadow(0px 18px 24px rgba(18, 18, 20, 0.42));
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slideshow-card.active .pure-3d-model-img {
  animation: pureModelFloat 3.8s ease-in-out infinite;
}

/* Dynamic Ambient Contact Shadow */
.model-ambient-shadow {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  height: 24px;
  background: radial-gradient(ellipse, rgba(18, 18, 20, 0.48) 0%, rgba(18, 18, 20, 0.18) 50%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
  animation: pureShadowPulse 3.8s ease-in-out infinite;
}

/* Controls Bar */
.slideshow-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  z-index: 4;
}

.slideshow-arrow-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid #121214;
  border-radius: var(--radius-sm);
  box-shadow: 2.5px 2.5px 0px #121214;
  cursor: pointer;
  font-size: 1.05rem;
  color: #121214;
  transition: transform 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.slideshow-arrow-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3.5px 3.5px 0px #9333ea;
  background: #f3e8ff;
  color: #9333ea;
}

.slideshow-arrow-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #121214;
}

.slideshow-pills-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 2px solid #121214;
  padding: 4px;
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0px #121214;
}

.slide-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: transparent;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.slide-pill:hover {
  color: #121214;
  background: #f8fafc;
}

.slide-pill.active {
  background: #121214;
  color: #ffffff;
  border-color: #121214;
  box-shadow: 2px 2px 0px #9333ea;
}

/* Bottom Bar: Progress Track & Hint */
.slideshow-bottom-bar {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.slideshow-progress-track {
  width: 100%;
  max-width: 320px;
  height: 5px;
  background: #e2e8f0;
  border: 1.5px solid #121214;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.slideshow-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #9333ea, #ec4899);
  transition: width 0.1s linear;
}

.slideshow-hint {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #cbd5e1;
  padding: 3px 12px;
  border-radius: var(--radius-sm);
}

.slideshow-hint i {
  color: #9333ea;
}

/* Keyframe Animations */
@keyframes pureModelFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}

@keyframes pureShadowPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.48; }
  50% { transform: translateX(-50%) scale(0.82); opacity: 0.25; }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

/* Responsive Scaling */
@media (max-width: 992px) {
  .hero-slideshow-stage {
    margin-top: 24px;
    height: 480px;
    max-width: 100%;
  }

  .slideshow-card {
    width: 340px;
    height: 320px;
  }

  .pure-3d-model-img {
    max-height: 280px;
  }
}

/* Keyframe Animations */
@keyframes lootFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-1.5deg); }
}

@keyframes shadowPulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(0.85); opacity: 0.2; }
}

@keyframes holoSweep {
  0%, 100% { transform: rotate(25deg) translateY(-80%); }
  50% { transform: rotate(25deg) translateY(80%); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

/* Responsive Scaling */
@media (max-width: 992px) {
  .hero-slideshow-stage {
    margin-top: 30px;
    max-width: 100%;
  }

  .slideshow-carousel {
    height: 400px;
  }

  .slideshow-card {
    width: 320px;
    height: 380px;
  }
}

/* ==========================================================================
   HOW IT WORKS / 4-STAGE PROCESS (Symmetrical Centered Layout)
   ========================================================================== */
.steps-section {
  padding: 80px 0;
  position: relative;
  background: #ffffff;
  border-top: var(--border-pixel);
  border-bottom: var(--border-pixel);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 800;
  background: #f3e8ff;
  border: 1.5px solid #121214;
  box-shadow: 2px 2px 0px #9333ea;
  border-radius: var(--radius-sm);
  padding: 4px 16px;
  margin-bottom: 14px;
  letter-spacing: 0.8px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 3.2rem;
  line-height: 1.2;
  letter-spacing: 1px;
  color: #121214;
  margin-bottom: 12px;
}

.section-desc {
  font-family: var(--font-body);
  font-size: 1.35rem;
  color: var(--text-muted);
}

/* Perfectly Symmetrical 4-Card Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  align-items: stretch;
}

.step-card {
  background: #ffffff;
  border: var(--border-pixel);
  box-shadow: var(--shadow-pixel);
  border-radius: var(--radius-sm);
  padding: 36px 20px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  transition: transform 0.1s, box-shadow 0.1s;
}

.step-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0px #9333ea;
  background: #faf5ff;
}

.step-num-bubble {
  width: 44px;
  height: 44px;
  background: #121214;
  color: #f3e8ff;
  border: 1.5px solid #121214;
  box-shadow: 2px 2px 0px #9333ea;
  border-radius: var(--radius-sm);
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-pixel-icon {
  width: 76px;
  height: 76px;
  background: #fdf4ff;
  border: 2px solid #121214;
  box-shadow: 3px 3px 0px #9333ea;
  border-radius: var(--radius-sm, 4px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 6px;
  box-sizing: border-box;
  transition: all 0.16s cubic-bezier(0.18, 0.9, 0.32, 1.25);
}

.step-pixel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  transition: transform 0.16s cubic-bezier(0.18, 0.9, 0.32, 1.25);
}

.step-card:hover .step-pixel-icon {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 4px 4px 0px #121214;
  background: #f3e8ff;
}

.step-card:hover .step-pixel-img {
  transform: scale(1.08);
}

.step-title {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  color: #121214;
}

.step-desc {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================================
   CURATED BOXES & FEATURED PRODUCTS GRID
   ========================================================================== */
.showcase-section {
  padding: 80px 0;
}

.category-filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-pill {
  padding: 8px 20px;
  background: #ffffff;
  border: 1.5px solid #121214;
  box-shadow: var(--shadow-pixel-sm);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  transition: transform 0.1s, box-shadow 0.1s;
}

.filter-pill:hover,
.filter-pill.active {
  background: #121214;
  color: #ffffff;
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0px #9333ea;
  border-color: #121214;
}

/* Responsive Dynamic Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

@media (min-width: 1360px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 22px;
  }
}

@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 340px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Product Card - Sleek Compact Anime Merch Card */
.product-card {
  background: #ffffff;
  border: var(--border-pixel);
  box-shadow: 3px 3px 0px #121214;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px #9333ea;
}

.product-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-bottom: var(--border-pixel);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.product-card-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.08));
}

.product-card:hover .product-card-img {
  transform: scale(1.06);
}

.product-badge-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  background: #9333ea;
  color: #ffffff;
  border: 1.5px solid #121214;
  box-shadow: 1px 1px 0px #000;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.product-fandom-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: #ffffff;
  border: 1.5px solid #121214;
  box-shadow: 1px 1px 0px #000;
  border-radius: 2px;
  padding: 2px 7px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  color: #121214;
}

.product-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #9333ea;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 2px;
  letter-spacing: 0.6px;
}

.product-card-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #121214;
  line-height: 1.25;
  margin-bottom: 10px;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.product-card-title a:hover {
  color: #9333ea;
}

.product-card-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1.5px dashed #cbd5e1;
}

.product-price-box {
  display: flex;
  flex-direction: column;
}

.product-price-curr {
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: #121214;
}

.product-price-old {
  font-family: var(--font-body);
  font-size: 1.0rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.product-quick-add-btn {
  width: 36px;
  height: 36px;
  background: #9333ea;
  border: var(--border-pixel);
  box-shadow: 2px 2px 0px #121214;
  border-radius: var(--radius-sm);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: transform 0.1s, box-shadow 0.1s;
}

.product-quick-add-btn:hover {
  background: #a855f7;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #121214;
}

.product-quick-add-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #121214;
}

/* Compact rules on smaller screens */
@media (max-width: 520px) {
  .product-card-body {
    padding: 10px;
  }
  .product-card-title {
    font-size: 1.15rem;
    min-height: 32px;
  }
  .product-price-curr {
    font-size: 1.25rem;
  }
  .product-quick-add-btn {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
  .product-badge-tag,
  .product-fandom-tag {
    font-size: 0.8rem;
    padding: 1px 5px;
    top: 6px;
    left: 6px;
  }
  .product-fandom-tag {
    top: auto;
    bottom: 6px;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    align-items: center;
  }
  .hero-subtitle {
    margin: 0 auto 32px;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats-row {
    justify-content: center;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.6rem;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
