/* ===================================
   HOME PAGE STYLES
   Anime Weebs - Homepage Styling
   =================================== */

/* ===================================
   MODERN JAPANESE HERO CAROUSEL
   =================================== */

.jp-hero-carousel {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: -2rem;
  margin-bottom: 2rem;
  background: #000;
  overflow: hidden;
}

.jp-slide {
  position: relative;
  height: 600px;
  padding: 3rem 0;
  display: flex;
  align-items: center;
}

/* Slide Backgrounds */
.jp-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #000 0%, #1a1a1a 50%, #000 100%);
  z-index: 1;
}

.jp-slide-1 .jp-slide-bg {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

.jp-slide-2 .jp-slide-bg {
  background: linear-gradient(135deg, #1a1a1a 0%, #000 50%, #1a1a1a 100%);
}

.jp-slide-3 .jp-slide-bg {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 50%, #000 100%);
}

/* Japanese Pattern Overlay */
.jp-slide-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(220, 53, 69, 0.02) 2px,
      rgba(220, 53, 69, 0.02) 4px);
  z-index: 2;
  pointer-events: none;
}

.jp-slide .container {
  position: relative;
  z-index: 3;
}

/* Japanese Badge */
.jp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: 3px solid #000;
  box-shadow:
    0 0 0 2px #dc3545,
    0 8px 25px rgba(220, 53, 69, 0.4);
  position: relative;
  overflow: hidden;
}

.jp-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

.jp-kanji {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.jp-text {
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Title Styling */
.jp-title {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  margin: 0;
}

.jp-title-line {
  display: block;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -2px;
}

.jp-title-line.accent {
  color: #dc3545;
  text-shadow:
    0 0 30px rgba(220, 53, 69, 0.5),
    4px 4px 0 rgba(0, 0, 0, 0.3);
}

/* Description */
.jp-description {
  font-size: 1.125rem;
  color: #ccc;
  line-height: 1.8;
  max-width: 500px;
}

/* CTA Buttons */
.jp-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.jp-btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0;
  border: 3px solid #000;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.jp-btn-primary {
  background: #dc3545;
  color: #fff;
  box-shadow:
    0 0 0 2px #dc3545,
    6px 6px 0 rgba(0, 0, 0, 0.3);
}

.jp-btn-primary:hover {
  background: #c82333;
  color: #fff;
  transform: translate(-3px, -3px);
  box-shadow:
    0 0 0 2px #c82333,
    9px 9px 0 rgba(0, 0, 0, 0.4);
}

.jp-btn-secondary {
  background: #000;
  color: #fff;
  box-shadow:
    0 0 0 2px #fff,
    6px 6px 0 rgba(220, 53, 69, 0.3);
}

.jp-btn-secondary:hover {
  background: #fff;
  color: #000;
  transform: translate(-3px, -3px);
  box-shadow:
    0 0 0 2px #fff,
    9px 9px 0 rgba(220, 53, 69, 0.4);
}

.jp-btn-danger {
  background: #dc3545;
  color: #fff;
  box-shadow:
    0 0 0 2px #dc3545,
    6px 6px 0 rgba(0, 0, 0, 0.3);
}

.jp-btn-danger:hover {
  background: #fff;
  color: #dc3545;
  transform: translate(-3px, -3px);
  box-shadow:
    0 0 0 2px #dc3545,
    9px 9px 0 rgba(0, 0, 0, 0.4);
}

/* Hero Image Frame */
.jp-hero-image {
  position: relative;
  padding: 2rem;
  max-width: 650px;
  margin: 0 auto;
}

.jp-frame {
  position: relative;
  border: 5px solid #fff;
  box-shadow:
    0 0 0 10px #000,
    0 0 0 15px #dc3545,
    0 20px 50px rgba(220, 53, 69, 0.4);
  overflow: hidden;
}

.jp-frame img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(0.2) brightness(1.1);
  transition: transform 0.5s ease;
}

.jp-frame:hover img {
  transform: scale(1.05);
}

/* Products Grid for Slide 2 - Carousel specific */
.jp-slide-2 .jp-products-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  grid-template-rows: repeat(2, 1fr) !important;
  gap: 2.5rem !important;
  padding: 1.5rem !important;
  max-width: 525px !important;
  margin: 0 auto !important;
}

.jp-slide-2 .jp-product-card {
  position: relative;
  border: 3px solid #fff;
  box-shadow:
    0 0 0 5px #000,
    0 0 0 8px #dc3545,
    0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: all 0.3s ease;
  aspect-ratio: 1;
}

.jp-slide-2 .jp-product-card:hover {
  transform: translate(-3px, -3px);
  box-shadow:
    0 0 0 5px #000,
    0 0 0 8px #dc3545,
    6px 16px 40px rgba(220, 53, 69, 0.4);
}

.jp-slide-2 .jp-product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.jp-slide-2 .jp-slide-2 .jp-product-card:hover img {
  transform: scale(1.1);
}

.jp-slide-2 .jp-product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #dc3545;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

/* Mystery Box for Slide 3 */
.jp-mystery-box {
  position: relative;
  padding: 2rem;
  max-width: 550px;
  margin: 0 auto;
}

.jp-box-frame {
  position: relative;
  border: 5px solid #dc3545;
  box-shadow:
    0 0 0 10px #000,
    0 0 0 15px #dc3545,
    0 0 50px rgba(220, 53, 69, 0.6),
    0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: all 0.3s ease;
}

.jp-box-frame:hover {
  transform: translate(-5px, -5px);
  box-shadow:
    0 0 0 10px #000,
    0 0 0 15px #dc3545,
    0 0 70px rgba(220, 53, 69, 0.8),
    10px 30px 60px rgba(0, 0, 0, 0.6);
}

.jp-box-frame img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.9);
  transition: all 0.5s ease;
}

.jp-box-frame:hover img {
  filter: brightness(1.1);
  transform: scale(1.05);
}

.jp-box-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(220, 53, 69, 0.3) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* Modern Indicators */
.jp-indicators {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

/* Override Bootstrap carousel indicator defaults */
#heroCarousel .jp-indicators button,
.jp-hero-carousel .jp-indicators button {
  width: 40px !important;
  height: 2px !important;
  background: rgba(255, 255, 255, 0.3) !important;
  border: none !important;
  border-radius: 2px !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 40px !important;
  max-width: 40px !important;
  min-height: 2px !important;
  max-height: 2px !important;
  opacity: 1 !important;
}

.jp-indicators button {
  width: 40px !important;
  height: 2px !important;
  background: rgba(255, 255, 255, 0.3) !important;
  border: none !important;
  border-radius: 2px !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 40px !important;
  max-width: 40px !important;
  min-height: 2px !important;
  max-height: 2px !important;
}

.jp-indicators button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #dc3545;
  transition: width 0.3s ease;
}

.jp-indicators button.active {
  background: rgba(255, 255, 255, 0.5);
}

.jp-indicators button.active::before {
  width: 100%;
}

/* Modern Controls */
.jp-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #000;
  color: #fff;
  width: 60px;
  height: 60px;
  border: 3px solid #dc3545;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow:
    0 0 0 2px #000,
    0 8px 20px rgba(0, 0, 0, 0.5);
}

.jp-control:hover {
  background: #dc3545;
  transform: translateY(-50%) scale(1.1);
  box-shadow:
    0 0 0 2px #000,
    0 0 30px rgba(220, 53, 69, 0.6);
}

.jp-prev {
  left: 2rem;
}

.jp-next {
  right: 2rem;
}

/* Animations */
@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .jp-hero-carousel {
    margin-top: 0;
    margin-bottom: 1.5rem;
  }

  /* Force all slides to same height */
  .jp-slide {
    min-height: 600px !important;
    max-height: 600px !important;
    height: 600px !important;
    padding: 2rem 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .jp-slide .container {
    width: 100% !important;
  }

  .jp-slide .row {
    width: 100% !important;
    margin: 0 !important;
  }

  /* Reorder first slide: Title, Image, Buttons */
  .jp-slide-1 .row {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Hide the text column initially, we'll show individual items */
  .jp-slide-1 .col-lg-6:first-child {
    display: contents !important;
  }

  .jp-slide-1 .col-lg-6:last-child {
    order: 2 !important;
    width: 100% !important;
  }

  .jp-slide-1 .jp-content {
    display: contents !important;
  }

  .jp-slide-1 .jp-badge {
    display: none !important;
  }

  .jp-slide-1 .jp-title {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 1rem !important;
    order: 1 !important;
    text-align: center;
    width: 100%;
  }

  .jp-slide-1 .jp-title-line {
    display: inline !important;
    margin-right: 0.5rem;
  }

  .jp-slide-1 .jp-description {
    display: none !important;
  }

  .jp-slide-1 .jp-hero-image {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .jp-slide-1 .jp-cta-group {
    order: 3 !important;
    margin-top: 1rem !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    justify-content: center !important;
    width: 100%;
    flex-wrap: nowrap !important;
  }

  .jp-slide-1 .jp-btn {
    flex: 1 1 0 !important;
    padding: 0.7rem 0.5rem !important;
    font-size: 0.7rem !important;
    white-space: nowrap !important;
    min-width: 0 !important;
    max-width: 48% !important;
  }

  .jp-slide-1 .jp-btn i {
    font-size: 0.75rem !important;
    margin-right: 0.25rem !important;
  }

  /* Slide 2 - Latest Releases Mobile/Tablet */
  .jp-slide-2 {
    height: auto !important;
    min-height: 600px !important;
  }

  .jp-slide-2 .row {
    display: flex !important;
    flex-direction: column !important;
  }

  .jp-slide-2 .col-lg-6 {
    width: 100% !important;
  }

  .jp-slide-2 .col-lg-6.order-lg-2 {
    order: 1 !important;
  }

  .jp-slide-2 .col-lg-6.order-lg-1 {
    order: 2 !important;
  }

  .jp-slide-2 .jp-content {
    order: 3 !important;
  }

  .jp-slide-2 .jp-badge {
    display: none !important;
  }

  .jp-slide-2 .jp-title {
    display: block !important;
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .jp-slide-2 .jp-description {
    display: none !important;
  }

  .jp-slide-2 .jp-content {
    display: flex !important;
    flex-direction: column !important;
  }

  .jp-slide-2 .jp-content .jp-btn {
    display: none !important;
  }

  .jp-slide-2 .jp-products-grid {
    margin-bottom: 1.5rem;
  }

  /* Add button below products grid */
  .jp-slide-2 .col-lg-6.order-lg-1::after {
    content: 'Explore Now →';
    display: block;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    margin: 0 auto;
    max-width: 200px;
    cursor: pointer;
  }

  /* Show products grid on mobile */
  .jp-slide-2 .jp-products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
    padding: 0 1.5rem 0 1.5rem !important;
    max-width: 350px !important;
    margin: 0 auto !important;
  }

  .jp-slide-2 .jp-product-card {
    position: relative;
    border: 2px solid #fff;
    box-shadow:
      0 0 0 2px #000,
      0 0 0 4px #dc3545,
      0 5px 15px rgba(220, 53, 69, 0.3);
    overflow: hidden;
    aspect-ratio: 1;
  }

  .jp-slide-2 .jp-product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .jp-slide-2 .jp-product-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #dc3545;
    color: #fff;
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 3px;
  }

  /* Slide 3 - Mystery Boxes Mobile/Tablet */
  .jp-slide-3 .row {
    display: flex !important;
    flex-direction: column !important;
  }

  .jp-slide-3 .col-lg-6 {
    width: 100% !important;
  }

  .jp-slide-3 .jp-badge {
    display: none !important;
  }

  .jp-slide-3 .jp-title {
    font-size: 1.5rem;
    line-height: 1.1;
    margin-bottom: 0.75rem;
  }

  .jp-slide-3 .jp-description {
    font-size: 0.75rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
  }

  .jp-slide-3 .jp-btn {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.75rem !important;
    margin-bottom: 1.25rem !important;
  }

  .jp-slide-3 .jp-mystery-box {
    order: -1 !important;
  }

  .jp-slide-3 .jp-mystery-box .jp-box-frame {
    max-width: 380px !important;
    height: 260px !important;
    margin-bottom: 0 !important;
  }

  .jp-slide-2 .jp-btn {
    order: 3 !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.85rem !important;
    margin: 1rem auto 1.5rem auto !important;
    display: inline-block !important;
  }

  /* Mobile/Tablet specific image styling */
  .jp-hero-image {
    display: block !important;
    margin-top: 1.5rem;
    padding: 0 1rem;
    max-width: 100%;
  }

  .jp-hero-image .jp-frame {
    border: 2px solid #fff;
    box-shadow:
      0 0 0 4px #000,
      0 0 0 6px #dc3545,
      0 8px 20px rgba(220, 53, 69, 0.3);
    max-width: 400px;
    margin: 0 auto;
    height: 250px;
    overflow: hidden;
  }

  .jp-hero-image .jp-frame img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .jp-mystery-box {
    display: block !important;
    margin-top: 1.5rem;
    padding: 0 1rem;
    max-width: 100%;
  }

  .jp-mystery-box .jp-box-frame {
    border: 2px solid #dc3545;
    box-shadow:
      0 0 0 4px #000,
      0 0 0 6px #dc3545,
      0 8px 20px rgba(220, 53, 69, 0.3);
    max-width: 400px;
    margin: 0 auto;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
  }

  .jp-mystery-box .jp-box-frame img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  /* Hide products grid on mobile/tablet */
  .jp-products-grid {
    display: none !important;
  }

  /* Mobile content styling */
  .jp-content {
    text-align: center;
    padding: 0 1rem;
    max-width: 100%;
  }

  .jp-badge {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
  }

  .jp-kanji {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    margin-right: 0.75rem;
  }

  .jp-title {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .jp-title-line {
    display: block;
  }

  .jp-description {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
  }

  /* Mobile buttons - side by side on tablet */
  .jp-cta-group {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .jp-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.85rem;
    flex: 0 1 auto;
    white-space: nowrap;
  }

  /* Indicators */
  .jp-indicators {
    bottom: 1.5rem;
    gap: 0.5rem;
  }

  .jp-indicators button {
    width: 35px;
    height: 2px;
  }
}

@media (max-width: 576px) {

  /* Force all slides to same height on small mobile */
  .jp-slide {
    min-height: 550px !important;
    max-height: 550px !important;
    height: 550px !important;
    padding: 1.5rem 0 !important;
  }

  .jp-badge {
    padding: 0.4rem 1.25rem;
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
  }

  .jp-kanji {
    width: 28px;
    height: 28px;
    font-size: 1rem;
    margin-right: 0.6rem;
  }

  .jp-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .jp-description {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    max-width: 95%;
  }

  /* Smaller images on small mobile */
  .jp-hero-image .jp-frame {
    max-width: 100% !important;
    height: 200px !important;
  }

  .jp-hero-image .jp-frame img,
  .jp-mystery-box .jp-box-frame img {
    width: 100% !important;
    height: 100% !important;
  }

  .jp-mystery-box .jp-box-frame {
    max-width: 100% !important;
    height: 200px !important;
  }

  .jp-hero-image,
  .jp-mystery-box {
    padding: 0 0.75rem;
    margin-top: 1rem;
  }

  /* Stack buttons vertically on small mobile */
  .jp-cta-group {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .jp-btn {
    padding: 0.8rem 1.75rem;
    font-size: 0.8rem;
    min-width: 220px;
  }

  .jp-control {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .jp-prev {
    left: 0.5rem;
  }

  .jp-next {
    right: 0.5rem;
  }

  .jp-indicators {
    bottom: 1rem;
    gap: 0.4rem;
  }

  .jp-indicators button {
    width: 30px;
    height: 2px;
  }
}

/* TABLET ONLY - Make Latest Releases images bigger (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .jp-slide-2 .jp-products-grid {
    max-width: 450px !important;
    gap: 1.5rem !important;
  }

  .jp-slide-2 .jp-product-card {
    border: 3px solid #fff;
    box-shadow:
      0 0 0 3px #000,
      0 6px 20px rgba(220, 53, 69, 0.35);
  }

  /* Make hero image bigger on tablet */
  .jp-hero-image .jp-frame {
    max-width: 500px !important;
    height: 320px !important;
  }
}

/* OLD CAROUSEL STYLES (Keep for backwards compatibility if needed) */
.deals-carousel-section {
  margin: 0;
  padding: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* Carousel Slides */
.carousel-slide {
  height: 450px;
}

.carousel-slide.slide-hero {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.carousel-slide.slide-hero .overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.7) 100%);
}

.carousel-slide.slide-delivery {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.carousel-slide.slide-mystery {
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.carousel-slide.slide-mystery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(0deg,
      rgba(220, 53, 69, 0.03) 0px,
      rgba(220, 53, 69, 0.03) 1px,
      transparent 1px,
      transparent 2px);
  animation: scanlines 8s linear infinite;
  pointer-events: none;
}

@keyframes scanlines {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(100px);
  }
}

.carousel-slide.slide-savings {
  background: linear-gradient(135deg, #2d2d2d 0%, #000000 100%);
}

.carousel-slide.slide-releases {
  background: linear-gradient(135deg, #000000 0%, #2d2d2d 100%);
}

/* Carousel Badges */
.carousel-badge-premium {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 15px rgba(220, 53, 69, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.carousel-badge-premium::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.carousel-badge-mystery {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.carousel-badge {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* Mystery Box Container with Image */
.mystery-box-container {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border: 5px solid #dc3545;
  box-shadow:
    0 0 30px rgba(220, 53, 69, 0.5),
    10px 10px 0 rgba(0, 0, 0, 0.3);
  background: #000;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.mystery-box-container:hover {
  transform: translate(-3px, -3px);
  box-shadow:
    0 0 40px rgba(220, 53, 69, 0.7),
    13px 13px 0 rgba(0, 0, 0, 0.4);
}

.mystery-box-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: all 0.3s ease;
  filter: brightness(0.9);
}

.mystery-box-container:hover .mystery-box-image {
  filter: brightness(0.7);
}

.mystery-box-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.mystery-box-container:hover .mystery-box-overlay {
  opacity: 1;
  transform: translateY(0);
}

.mystery-box-overlay .mystery-kanji {
  display: none;
}

.mystery-box-overlay .mystery-text {
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

@keyframes takeMeTherePulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Mystery Icon Badge - Keep for backwards compatibility */
.mystery-icon-badge {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem 2rem;
  border: 3px solid #dc3545;
  position: relative;
  box-shadow: 0 8px 30px rgba(220, 53, 69, 0.4);
}

.mystery-kanji {
  font-size: 5rem;
  font-weight: 900;
  color: #dc3545;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
  animation: mysteryPulse 2s ease-in-out infinite;
}

.mystery-text {
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.mystery-accent {
  font-size: 3rem;
  color: #dc3545;
  position: absolute;
  top: 1rem;
  right: 1rem;
  animation: mysteryRotate 3s linear infinite;
}

@keyframes mysteryPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes mysteryRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Carousel Typography - Japanese Inspired */
.carousel-slide h2.display-3 {
  font-size: 4rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow:
    3px 3px 0 rgba(220, 53, 69, 0.8),
    6px 6px 0 rgba(0, 0, 0, 0.5),
    0 0 30px rgba(220, 53, 69, 0.5);
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.carousel-slide h2.display-4 {
  font-size: 3rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
}

.carousel-slide .lead {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Poppins', sans-serif;
}

.carousel-slide .lead.hero-lead {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.8;
  letter-spacing: 0.5px;
  text-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(0, 0, 0, 0.5);
  font-family: 'Poppins', sans-serif;
  position: relative;
}

/* Carousel Buttons */
.carousel-slide .btn {
  border-radius: 50px;
  padding: 0.75rem 2.5rem;
  font-weight: 700;
}

.carousel-slide .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
}

/* Deal Badge */
.deal-badge {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Recent Product Cards for Latest Releases Slide */
.recent-product-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recent-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.recent-product-card img {
  transition: transform 0.3s ease;
}

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

.recent-product-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.recent-product-overlay .badge {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Mobile Latest Releases Styling */
.mobile-latest-releases {
  height: 100%;
  padding: 2rem 1rem;
}

.mobile-releases-title h2 {
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin-bottom: 0;
}

.mobile-releases-products {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.mobile-recent-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.mobile-recent-card:hover {
  transform: translateY(-3px);
}

.mobile-recent-card img {
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.mobile-recent-card:hover img {
  transform: scale(1.05);
}

.mobile-releases-button {
  margin-top: 1rem;
}

.mobile-releases-button .btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
  transition: all 0.3s ease;
}

.mobile-releases-button .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

/* Mobile Mystery Boxes Styling */
.mobile-mystery-boxes {
  height: 100%;
  padding: 2rem 1rem;
}

.mobile-mystery-title h2 {
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin-bottom: 0;
}

.mobile-mystery-product {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.mobile-mystery-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.mobile-mystery-card:hover {
  transform: translateY(-3px);
}

.mobile-mystery-card img {
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.mobile-mystery-card:hover img {
  transform: scale(1.05);
}

.mystery-product-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.mystery-product-overlay .badge {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mobile-mystery-button {
  margin-top: 1rem;
}

.mobile-mystery-button .btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
  transition: all 0.3s ease;
}

.mobile-mystery-button .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.deal-badge i {
  font-size: 4rem;
}

.deal-badge .discount-number {
  font-size: 4rem;
  color: #dc3545;
  font-weight: 900;
}

.deal-badge .discount-text {
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 700;
}

.deal-badge .discount-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

.deal-badge .info-text {
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 700;
  margin-top: 1rem;
}

/* Featured Products Section */
.featured-products-section {
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
}

/* 5 Column Grid Layout */
@media (min-width: 992px) {
  .col-lg-2-4 {
    flex: 0 0 auto;
    width: 20%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .col-md-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }
}

@media (max-width: 767px) {
  .col-6 {
    flex: 0 0 auto;
    width: 50%;
  }
}

/* Featured Badge Styling */
.featured-badge-wrapper {
  display: inline-block;
  /* animation: float 3s ease-in-out infinite; */
  /* REMOVED: Distracting on mobile */
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.featured-badge {
  background: linear-gradient(135deg, #000 0%, #2d2d2d 100%);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid #dc3545;
  position: relative;
  overflow: hidden;
}

.featured-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.3), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* Featured Title Styling */
.featured-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.featured-title-top {
  font-size: 1.2rem;
  font-weight: 600;
  color: #dc3545;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  display: inline-block;
}

.featured-title-top::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #dc3545, transparent);
}

.featured-title-main {
  font-size: 4rem;
  font-weight: 900;
  color: #000;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -2px;
  position: relative;
  background: linear-gradient(135deg, #000 0%, #2d2d2d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Featured Subtitle */
.featured-subtitle {
  font-size: 1.15rem;
  color: #666;
  max-width: 650px;
  margin: 0 auto;
  font-weight: 500;
  line-height: 1.6;
}

/* Product Card */
.product-card {
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.product-card .product-ribbon {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

.product-card .product-image-wrapper {
  overflow: hidden;
  background: #f8f9fa;
  position: relative;
  width: 100%;
}

.product-card .product-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

.product-card .product-overlay {
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1 !important;
}

.product-card .product-overlay .btn {
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
}

.product-card .card-body {
  padding: 1.25rem;
}

.product-card .card-title {
  color: #000;
  font-size: 1rem;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card .card-text.price {
  color: #dc3545;
  font-size: 1.3rem;
}

.product-card .btn-dark {
  border-radius: 50px;
  padding: 0.65rem;
  transition: all 0.3s ease;
  font-weight: 600;
}

.product-card .btn-dark:hover {
  background: #dc3545 !important;
  border-color: #dc3545 !important;
  transform: scale(1.02);
}

/* View All Button */
.view-all-btn {
  border-radius: 50px;
  padding: 0.75rem 3rem;
  border-width: 2px;
  transition: all 0.3s ease;
}

/* ===================================
   NEW ARRIVALS SECTION - Horizontal Scroll
   =================================== */

.new-arrivals-section {
  background: #fff;
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

/* Arrivals Header */
.arrivals-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
  animation: pulse 2s ease-in-out infinite;
  margin-bottom: 1rem;
}

.arrivals-title {
  font-size: 4rem;
  font-weight: 900;
  color: #000;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #000 0%, #333 50%, #000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.arrivals-subtitle {
  font-size: 1.2rem;
  color: #666;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

.arrivals-view-all {
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.arrivals-view-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===================================
   ANIME SERIES SECTION
   =================================== */

/* Responsive Design */
@media (max-width: 768px) {
  .carousel-slide h2.display-3 {
    font-size: 2.5rem !important;
  }

  .carousel-slide h2.display-4 {
    font-size: 2rem !important;
  }

  .carousel-slide .lead {
    font-size: 1rem !important;
  }

  .product-card:hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 576px) {
  .carousel-slide h2.display-3 {
    font-size: 2rem !important;
  }

  .carousel-slide h2.display-4 {
    font-size: 1.75rem !important;
  }

  .carousel-slide .btn {
    padding: 0.6rem 1.5rem !important;
  }
}

/* ===================================
   SHOP BY ANIME SERIES SECTION
   =================================== */

.anime-series-section {
  background: #fff;
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

/* Series Header */
.series-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #000 0%, #333 100%);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.series-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: #000;
  line-height: 1.2;
  letter-spacing: -1px;
}

.series-subtitle {
  font-size: 1.2rem;
  color: #666;
  font-weight: 400;
}

/* Anime Cards */
.anime-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: #fff;
  height: 100%;
}

.anime-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.anime-card-image {
  position: relative;
  overflow: hidden;
  height: 300px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.anime-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.anime-card:hover .anime-card-image img {
  transform: scale(1.1);
}

.anime-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.anime-card:hover .anime-card-overlay {
  opacity: 1;
}

.anime-card-overlay .btn {
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 700;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.anime-card:hover .anime-card-overlay .btn {
  transform: translateY(0);
}

.anime-card-content {
  padding: 1.5rem;
  text-align: center;
}

.anime-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.5rem;
}

.anime-card-text {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0;
}

/* More Anime Button */
.more-anime-btn {
  border-radius: 50px;
  padding: 1rem 2.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.more-anime-btn:hover {
  background: #dc3545;
  border-color: #dc3545;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

.more-anime-btn i {
  transition: transform 0.3s ease;
}

.more-anime-btn:hover i {
  transform: rotate(90deg);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .anime-series-section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .new-arrivals-section {
    padding-top: 2rem !important;
    padding-bottom: 3rem !important;
  }

  .series-title {
    font-size: 2.5rem;
  }

  .anime-card-image {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .series-title {
    font-size: 2rem;
  }

  .anime-card-image {
    height: 200px;
  }

  .more-anime-btn {
    padding: 0.85rem 2rem;
    font-size: 1rem;
  }
}

/* ===================================
   MOBILE HERO SECTION IMAGES
   =================================== */
/* Version: 2.3 - Tablet 3 Per Row Fix */

@media (max-width: 767px) {

  /* Latest Releases - Product Grid on Mobile */
  .hero-product-grid {
    margin-top: 2rem;
  }

  .hero-product-grid .col-6 {
    padding: 0.25rem;
  }

  .hero-product-grid .recent-product-card img {
    height: 100px !important;
    border-radius: 8px;
  }

  .hero-product-grid .recent-product-overlay {
    opacity: 1;
  }

  /* Mystery Box on Mobile */
  .hero-mystery-box {
    margin-top: 2rem;
  }

  .hero-mystery-box .mystery-box-container {
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-mystery-box .mystery-box-image {
    height: 280px;
    width: 100%;
    object-fit: cover;
  }

  .hero-mystery-box .mystery-box-overlay {
    opacity: 0.9;
  }

  /* Bestsellers - Match Competitor Layout */
  body .featured-products-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 2rem !important;
  }

  body .featured-products-section .container-fluid {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    max-width: 100% !important;
  }

  body .featured-products-section .mx-auto {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
  }

  body .featured-products-section .row.g-4 {
    margin-left: -0.25rem !important;
    margin-right: -0.25rem !important;
    row-gap: 0.75rem !important;
  }

  body .featured-products-section .col-6 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    flex: 0 0 auto !important;
    width: 50% !important;
    max-width: 50% !important;
  }

  body .featured-products-section .product-card {
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  body .featured-products-section .product-image-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    height: 220px !important;
    background: #f0f0f0 !important;
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
  }

  body .featured-products-section .product-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 220px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
    display: block !important;
  }

  body .featured-products-section .card-body {
    padding: 0.5rem 0.6rem 0.6rem 0.6rem !important;
  }

  body .featured-products-section .card-title {
    font-size: 0.85rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.3rem !important;
    padding: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 2.125rem !important;
    max-height: 2.125rem !important;
    font-weight: 600 !important;
  }

  body .featured-products-section .text-warning,
  body .featured-products-section .text-muted {
    font-size: 0.75rem !important;
  }

  body .featured-products-section .card-text.price {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
  }

  body .featured-products-section .product-price {
    font-size: 0.95rem !important;
    important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
    color: #dc3545 !important;
  }

  body .featured-products-section .btn {
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
    width: 100% !important;
    border-radius: 6px !important;
  }

  /* Hide Featured badge on mobile */
  .product-ribbon {
    display: none !important;
  }

  /* Hide quick view overlay on mobile */
  body .featured-products-section .product-overlay {
    display: none !important;
  }

  /* Anime series cards - smaller text on mobile */
  .anime-card-title {
    font-size: 0.95rem !important;
    margin-bottom: 0.3rem !important;
  }

  .anime-card-text {
    font-size: 0.75rem !important;
  }

  .anime-card-content {
    padding: 0.6rem !important;
  }
}

/* ===================================
   TABLET RESPONSIVE (768px - 991px)
   =================================== */

@media (min-width: 768px) and (max-width: 991px) {

  /* Bestsellers - 3 products per row on tablet - WIDER CARDS */
  body .featured-products-section .container-fluid {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  body .featured-products-section .row.g-4 {
    margin-left: -0.25rem !important;
    margin-right: -0.25rem !important;
    row-gap: 0.75rem !important;
  }

  /* Maximum specificity to override Bootstrap col-md-4 */
  html body .featured-products-section .row.g-4>.col-6.col-md-4,
  html body .featured-products-section .row.g-4>div.col-6,
  html body .featured-products-section .row.g-4>div.col-md-4,
  html body .featured-products-section .row>.col-6,
  html body .featured-products-section .row>.col-md-4 {
    flex: 0 0 auto !important;
    width: 33.333333% !important;
    max-width: 33.333333% !important;
    min-width: 33.333333% !important;
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
  }

  body .featured-products-section .product-card {
    padding: 0 !important;
    margin: 0 !important;
  }

  body .featured-products-section .card-body {
    padding: 0.5rem !important;
  }

  body .featured-products-section .product-image {
    height: 200px !important;
  }

  /* Hide Featured badge on tablet */
  .product-ribbon {
    display: none !important;
  }

  /* Hide 10th product using dedicated class - MAXIMUM SPECIFICITY */
  html body div.tablet-hide-product,
  html body .tablet-hide-product,
  div.tablet-hide-product.col-6.col-md-4,
  .featured-products-section .tablet-hide-product,
  .row .tablet-hide-product {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -99999px !important;
  }
}

/* ===================================
   SMALL MOBILE RESPONSIVE (< 576px)
   =================================== */

@media (max-width: 576px) {

  /* Smaller images on very small screens */
  .hero-product-grid .recent-product-card img {
    height: 80px !important;
  }

  .hero-mystery-box .mystery-box-container {
    max-width: 220px;
  }

  .hero-mystery-box .mystery-box-image {
    height: 220px;
  }

  /* Even more compact on small screens */
  body .featured-products-section .container-fluid {
    padding-left: 0.4rem !important;
    padding-right: 0.4rem !important;
  }

  body .featured-products-section .row.g-4 {
    margin-left: -0.2rem !important;
    margin-right: -0.2rem !important;
    row-gap: 0.6rem !important;
  }

  body .featured-products-section .col-6 {
    padding-left: 0.2rem !important;
    padding-right: 0.2rem !important;
  }

  body .featured-products-section .product-image-wrapper {
    height: 160px !important;
  }

  body .featured-products-section .product-image {
    height: 100% !important;
    min-height: 160px !important;
  }

  body .featured-products-section .card-title {
    font-size: 0.8rem !important;
  }

  body .featured-products-section .product-price {
    font-size: 0.85rem !important;
  }

  /* Anime series cards - even smaller on small screens */
  .anime-card-title {
    font-size: 0.9rem !important;
  }

  .anime-card-text {
    font-size: 0.7rem !important;
  }
}

/* ===================================
   YOU MAY ALSO LIKE SECTION
   =================================== */

.recommended-section {
  margin-top: 0;
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: #f8f9fa;
}

.recommended-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.recommended-section .section-header h2 {
  color: #000;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.recommended-section .header-line {
  width: 100px;
  height: 4px;
  background: #28a745;
  margin: 0 auto;
}

/* Desktop Grid Layout */
.recommended-grid .recommended-product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.recommended-grid .recommended-product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: #28a745;
}

.recommended-grid .recommended-product-image-wrapper {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #f8f9fa;
}

.recommended-grid .recommended-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.recommended-grid .recommended-product-card:hover .recommended-product-image {
  transform: scale(1.15);
}

.recommended-grid .recommended-product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.recommended-grid .recommended-product-card:hover .recommended-product-overlay {
  opacity: 1;
}

.recommended-grid .recommended-product-overlay .btn {
  border-radius: 50px;
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.recommended-grid .recommended-product-info {
  padding: 1.25rem;
  background: #fff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.recommended-grid .recommended-product-name {
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.recommended-grid .recommended-product-price {
  color: #28a745;
  font-weight: 900;
  font-size: 1.2rem;
}

.recommended-grid .recommended-product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffc107;
}

.recommended-grid .recommended-product-rating span {
  color: #000;
}

.recommended-grid .recommended-product-rating.text-muted {
  color: #999 !important;
}

.recommended-grid .recommended-product-rating.text-muted i {
  color: #ccc;
}

/* Custom column for 5 items per row on XL screens */
.col-xl-2-4 {
  flex: 0 0 auto;
  width: 20%;
}

/* Mobile Horizontal Scroll Container */
.recommended-section .horizontal-scroll-wrapper {
  position: relative;
  margin: 0 -1rem;
  padding: 1rem 0;
}

.recommended-section .horizontal-scroll-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #28a745 #f0f0f0;
}

.recommended-section .horizontal-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.recommended-section .horizontal-scroll-container::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

.recommended-section .horizontal-scroll-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
  border-radius: 10px;
  transition: background 0.3s ease;
}

.recommended-section .horizontal-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #28a745;
}

/* Horizontal Product Card (Mobile Only) */
.recommended-section .horizontal-product-card {
  flex: 0 0 280px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.recommended-section .horizontal-product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: #28a745;
}

/* Horizontal Product Image */
.recommended-section .horizontal-product-image-wrapper {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #f8f9fa;
}

.recommended-section .horizontal-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.recommended-section .horizontal-product-card:hover .horizontal-product-image {
  transform: scale(1.15);
}

/* Horizontal Product Overlay */
.recommended-section .horizontal-product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.recommended-section .horizontal-product-card:hover .horizontal-product-overlay {
  opacity: 1;
}

.recommended-section .horizontal-product-overlay .btn {
  border-radius: 50px;
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Horizontal Product Info */
.recommended-section .horizontal-product-info {
  padding: 1.25rem;
  background: #fff;
}

.recommended-section .horizontal-product-name {
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recommended-section .horizontal-product-price {
  color: #28a745;
  font-weight: 900;
  font-size: 1.2rem;
}

.recommended-section .horizontal-product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffc107;
}

.recommended-section .horizontal-product-rating span {
  color: #000;
}

.recommended-section .horizontal-product-rating.text-muted {
  color: #999 !important;
}

.recommended-section .horizontal-product-rating.text-muted i {
  color: #ccc;
}

/* Responsive for You May Also Like */
@media (max-width: 1199px) {
  .col-xl-2-4 {
    width: 25%;
    /* 4 items per row on large screens */
  }
}

@media (max-width: 991px) {
  .col-xl-2-4 {
    width: 33.333333%;
    /* 3 items per row on medium screens */
  }
}

@media (max-width: 768px) {
  .recommended-section .horizontal-product-card {
    flex: 0 0 200px;
  }

  .recommended-section .horizontal-product-image-wrapper {
    height: 200px;
  }

  .recommended-section .horizontal-product-info {
    padding: 1rem;
  }

  .recommended-section .horizontal-product-name {
    font-size: 0.85rem;
  }

  .recommended-section .horizontal-product-price {
    font-size: 1rem;
  }

  .recommended-section .section-header h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .recommended-section .horizontal-product-card {
    flex: 0 0 160px;
  }

  .recommended-section .horizontal-product-image-wrapper {
    height: 160px;
  }

  .recommended-section .horizontal-product-info {
    padding: 0.75rem;
  }

  .recommended-section .horizontal-product-name {
    font-size: 0.75rem;
  }

  .recommended-section .horizontal-product-price {
    font-size: 0.9rem;
  }

  .recommended-section .section-header h2 {
    font-size: 1.25rem;
  }
}

/* ===================================
   HOMEPAGE JAPANESE STYLE CAROUSEL
   Enhanced 'You May Also Like' Section
   =================================== */

.home-recommended-section-jp {
  margin-top: 2rem;
  padding: 3rem 0;
  background: #ffffff;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
}

/* Japanese Section Header */
.home-recommended-section-jp .jp-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.home-recommended-section-jp .jp-header-badge {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.home-recommended-section-jp .jp-header-badge .jp-kanji {
  font-size: 1.2rem;
  margin-right: 0.5rem;
  font-weight: 900;
}

.home-recommended-section-jp .jp-section-title {
  margin: 0 0 2.5rem 0;
  position: relative;
  padding-bottom: 1.5rem;
}

.home-recommended-section-jp .jp-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #dc3545;
  border-radius: 2px;
}

.home-recommended-section-jp .jp-title-main {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 4px;
  line-height: 1.2;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.home-recommended-section-jp .jp-title-sub {
  display: block;
  font-size: 1.2rem;
  color: #666;
  font-weight: 400;
  letter-spacing: 2px;
}

.home-recommended-section-jp .jp-header-line {
  width: 120px;
  height: 5px;
  background: linear-gradient(90deg, #000 0%, #dc3545 50%, #000 100%);
  margin: 1.5rem auto 0;
  border-radius: 10px;
  position: relative;
}

.home-recommended-section-jp .jp-header-line::before,
.home-recommended-section-jp .jp-header-line::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: #dc3545;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.home-recommended-section-jp .jp-header-line::before {
  left: -15px;
}

.home-recommended-section-jp .jp-header-line::after {
  right: -15px;
}

/* Carousel Wrapper */
.jp-home-carousel-wrapper {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* Navigation Arrows (Desktop) */
.jp-home-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: #000;
  color: #fff;
  border: 3px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.jp-home-carousel-nav:hover {
  background: #dc3545;
  border-color: #dc3545;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 35px rgba(220, 53, 69, 0.3);
}

.jp-home-carousel-nav i {
  font-size: 1.5rem;
  font-weight: 900;
}

.jp-home-carousel-prev {
  left: -30px;
}

.jp-home-carousel-next {
  right: -30px;
}

/* Carousel Container */
.jp-home-carousel-container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 2rem 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}

.jp-home-carousel-container::-webkit-scrollbar {
  display: none;
}

/* Japanese Product Card */
.jp-home-product-card {
  flex: 0 0 360px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid transparent;
  position: relative;
  scroll-snap-align: start;
}

.jp-home-product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #000 0%, #dc3545 50%, #000 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.jp-home-product-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  border-color: #000;
}

.jp-home-product-card:hover::before {
  opacity: 1;
}

/* Product Image Container */
.jp-home-product-image-container {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
}

.jp-home-product-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.jp-home-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.jp-home-product-card:hover .jp-home-product-image {
  transform: scale(1.15);
}

/* Product Overlay */
.jp-home-product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(220, 53, 69, 0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.jp-home-product-card:hover .jp-home-product-overlay {
  opacity: 1;
}

.jp-home-view-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: slideUpFadeHome 0.5s ease forwards;
}

.jp-home-view-product i {
  font-size: 2.5rem;
  color: #fff;
}

@keyframes slideUpFadeHome {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Quick Add Button */
.jp-home-quick-add-form {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 15;
}

.jp-home-quick-add-btn {
  width: 50px;
  height: 50px;
  background: #fff;
  color: #000;
  border: 3px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.jp-home-quick-add-btn i {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.jp-home-quick-add-btn:hover {
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.jp-home-quick-add-btn:hover i {
  transform: scale(1.1);
}

.jp-home-quick-add-btn.loading {
  background: #ffc107;
  border-color: #ffc107;
  color: #000;
}

.jp-home-quick-add-btn.success {
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

.jp-home-quick-add-btn.error {
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

/* Rating Badge */
.jp-home-rating-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 193, 7, 0.95);
  color: #000;
  padding: 0.5rem 0.75rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
  z-index: 10;
}

.jp-home-rating-badge i {
  color: #000;
  font-size: 0.85rem;
}

/* Product Info */
.jp-home-product-info {
  padding: 1.75rem;
  background: #fff;
}

/* Series Tag */
.jp-home-series-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0f0f0;
  color: #000;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

.jp-home-product-card:hover .jp-home-series-tag {
  background: #000;
  color: #fff;
  border-color: #000;
}

.jp-home-series-tag i {
  font-size: 0.85rem;
}

/* Product Name */
.jp-home-product-name {
  display: block;
  color: #000;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3rem;
  transition: color 0.3s ease;
}

.jp-home-product-name:hover {
  color: #28a745;
}

/* Product Footer */
.jp-home-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 2px solid #f0f0f0;
}

.jp-home-price-tag {
  display: flex;
  flex-direction: column;
}

.jp-home-price-value {
  color: #dc3545;
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
}

/* View Details Button */
.jp-home-view-details {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #000;
  color: #fff;
  padding: 0.7rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #000;
}

.jp-home-view-details:hover {
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
  transform: translateX(5px);
}

.jp-home-view-details i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.jp-home-view-details:hover i {
  transform: translateX(5px);
}

/* Add to Cart Button in Footer */
.jp-home-footer-cart-form {
  margin: 0;
}

.jp-home-add-to-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #000;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid #000;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 160px;
}

.jp-home-add-to-cart-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.jp-home-add-to-cart-btn:hover {
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
  transform: scale(1.05);
}

.jp-home-add-to-cart-btn:hover i {
  transform: scale(1.1);
}

.jp-home-add-to-cart-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.jp-home-add-to-cart-btn.success-state {
  background: #28a745 !important;
  border-color: #28a745 !important;
  color: #fff !important;
  transform: scale(1.05);
}

/* Carousel Dots (Mobile) */
.jp-home-carousel-dots {
  display: none;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem 0;
}

.jp-home-carousel-dot {
  width: 12px;
  height: 12px;
  background: #d0d0d0;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.jp-home-carousel-dot.active {
  background: #dc3545;
  transform: scale(1.3);
  border-color: #dc3545;
}

/* Spinner Animation */
.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Laptop screens (992px - 1600px) - Keep arrows closer */
@media (min-width: 992px) and (max-width: 1600px) {
  .jp-home-carousel-prev {
    left: 0;
  }

  .jp-home-carousel-next {
    right: 0;
  }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  .home-recommended-section-jp {
    padding: 3rem 0;
  }

  .home-recommended-section-jp .jp-section-header {
    margin-bottom: 2.5rem;
    padding: 0 1rem;
  }

  .home-recommended-section-jp .jp-title-main {
    font-size: 2rem;
  }

  .home-recommended-section-jp .jp-title-sub {
    font-size: 1rem;
  }

  .jp-home-carousel-wrapper {
    padding: 0;
    overflow: visible;
  }

  /* Hide desktop navigation arrows */
  .jp-home-carousel-nav {
    display: none;
  }

  /* Show dots on tablet */
  .jp-home-carousel-dots {
    display: flex;
  }

  .jp-home-carousel-container {
    gap: 1.5rem;
    padding: 1.5rem 0 1.5rem 1rem;
    scroll-padding-left: 1rem;
  }

  .jp-home-product-card {
    flex: 0 0 calc(70vw);
    max-width: 360px;
  }

  .jp-home-product-image-container {
    height: 340px;
  }

  .jp-home-product-info {
    padding: 1.5rem;
  }

  .jp-home-price-value {
    font-size: 1.35rem;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .home-recommended-section-jp {
    padding: 2.5rem 0;
    margin-top: 3rem;
  }

  .home-recommended-section-jp .jp-section-header {
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .home-recommended-section-jp .jp-header-badge {
    padding: 0.4rem 1.2rem;
    font-size: 0.75rem;
  }

  .home-recommended-section-jp .jp-header-badge .jp-kanji {
    font-size: 1rem;
  }

  .home-recommended-section-jp .jp-title-main {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .home-recommended-section-jp .jp-title-sub {
    font-size: 0.9rem;
    letter-spacing: 1.5px;
  }

  .home-recommended-section-jp .jp-header-line {
    width: 80px;
    height: 4px;
  }

  .jp-home-carousel-wrapper {
    padding: 0;
    overflow: visible;
  }

  /* Hide desktop navigation arrows */
  .jp-home-carousel-nav {
    display: none;
  }

  /* Show dots on mobile */
  .jp-home-carousel-dots {
    display: flex;
  }

  .jp-home-carousel-container {
    gap: 1rem;
    padding: 1rem 0 1rem 1rem;
    scroll-padding-left: 1rem;
  }

  /* Bigger cards on mobile - show next card peeking */
  .jp-home-product-card {
    flex: 0 0 calc(85vw);
    max-width: 420px;
  }

  .jp-home-product-image-container {
    height: 220px;
  }

  .jp-home-product-info {
    padding: 0.6rem;
  }

  .jp-home-series-tag {
    font-size: 0.7rem;
    padding: 0.35rem 0.8rem;
  }

  .jp-home-product-name {
    font-size: 0.85rem;
    line-height: 1.25;
    margin-bottom: 0.4rem;
    height: 2.125rem;
    max-height: 2.125rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .jp-home-price-value {
    font-size: 0.95rem;
  }

  .jp-home-add-to-cart-btn {
    padding: 0.65rem 1.2rem;
    font-size: 0.75rem;
    min-width: 145px;
  }

  .jp-home-add-to-cart-btn i {
    font-size: 1rem;
  }

  .jp-home-quick-add-btn {
    width: 45px;
    height: 45px;
  }

  .jp-home-quick-add-btn i {
    font-size: 1.2rem;
  }

  .jp-home-rating-badge {
    padding: 0.4rem 0.65rem;
    font-size: 0.85rem;
  }
}

/* Extra Small Mobile (< 400px) */
@media (max-width: 399px) {
  .home-recommended-section-jp .jp-title-main {
    font-size: 1.3rem;
  }

  .home-recommended-section-jp .jp-title-sub {
    font-size: 0.85rem;
  }

  .jp-home-product-card {
    flex: 0 0 calc(100vw - 2.5rem);
  }

  .jp-home-product-image-container {
    height: 280px;
  }

  .jp-home-product-name {
    font-size: 0.95rem;
  }

  .jp-home-price-value {
    font-size: 1.15rem;
  }
}

/* ===================================
   INSTAGRAM FEED SECTION - Task 18
   =================================== */

.instagram-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 4rem 0;
  margin-top: 3rem;
}

.instagram-header {
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title i {
  color: #E4405F;
  /* Instagram brand color */
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

.instagram-tag {
  font-weight: 700;
  color: #dc3545;
}

.instagram-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(228, 64, 95, 0.3);
}

.instagram-follow-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(228, 64, 95, 0.5);
  color: #fff;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .instagram-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.instagram-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.instagram-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.instagram-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.instagram-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.instagram-item:hover .instagram-image {
  transform: scale(1.1);
}

.instagram-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(240, 148, 51, 0.9) 0%, rgba(230, 104, 60, 0.9) 25%, rgba(220, 39, 67, 0.9) 50%, rgba(204, 35, 102, 0.9) 75%, rgba(188, 24, 136, 0.9) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
}

.instagram-item:hover .instagram-overlay {
  opacity: 1;
}

.instagram-overlay i {
  font-size: 3rem;
}

.instagram-overlay span {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.instagram-cta {
  margin-top: 3rem;
}

.instagram-cta-text {
  font-size: 1.15rem;
  color: #333;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.instagram-hashtags {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hashtag {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  color: #dc3545;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.hashtag:hover {
  border-color: #dc3545;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

/* Hide desktop-only items on mobile */
@media (max-width: 767px) {
  .instagram-item.desktop-only {
    display: none;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .instagram-follow-btn {
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
  }

  .instagram-cta-text {
    font-size: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .instagram-item.desktop-only:nth-child(n+4) {
    display: none;
  }
}