/* ===================================
   HOME PAGE STYLES
   Stamp and Bake - 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;
  /* No bottom margin. The hero is a full-bleed dark band and the section
     under it has 80px of its own top padding, so 2rem of body white in
     between read as a seam across the page rather than as spacing. */
  margin-bottom: 0;
  background: #5e3040;
  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, #5e3040 0%, #5e3040 50%, #5e3040 100%);
  z-index: 1;
}

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

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

.jp-slide-3 .jp-slide-bg {
  background: linear-gradient(135deg, #5e3040 0%, #5e3040 50%, #5e3040 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(201, 58, 99, 0.02) 2px,
      rgba(201, 58, 99, 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, #e8829f 0%, #d76b8c 100%);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: 3px solid #5e3040;
  box-shadow:
    0 0 0 2px #e8829f,
    0 8px 25px rgba(201, 58, 99, 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: none;
}

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

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

.jp-title-line.accent {
  color: #e8829f;
  /* The 30px pink halo that used to sit under these two lines is gone - it
     blurred the letterforms of a display face that is already carrying the
     slide. The hard 4px offset stays: that is the shadow, not the glow. */
  text-shadow: 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: none;
  letter-spacing: 1px;
  border-radius: 0;
  border: 3px solid #5e3040;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

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

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

.jp-btn-secondary {
  background: #5e3040;
  color: #fff;
  box-shadow:
    0 0 0 2px #fff,
    6px 6px 0 rgba(201, 58, 99, 0.3);
}

.jp-btn-secondary:hover {
  background: #fff;
  color: #5e3040;
  transform: translate(-3px, -3px);
  box-shadow:
    0 0 0 2px #fff,
    9px 9px 0 rgba(201, 58, 99, 0.4);
}

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

.jp-btn-danger:hover {
  background: #fff;
  color: #e8829f;
  transform: translate(-3px, -3px);
  box-shadow:
    0 0 0 2px #e8829f,
    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 #5e3040,
    0 0 0 15px #e8829f,
    0 20px 50px rgba(201, 58, 99, 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 #5e3040,
    0 0 0 8px #e8829f,
    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 #5e3040,
    0 0 0 8px #e8829f,
    6px 16px 40px rgba(201, 58, 99, 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: #e8829f;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  border: 2px solid #5e3040;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.jp-quality-panel {
  position: relative;
  padding: 2rem;
  max-width: 550px;
  margin: 0 auto;
}

.jp-box-frame {
  position: relative;
  border: 5px solid #e8829f;
  box-shadow:
    0 0 0 10px #5e3040,
    0 0 0 15px #e8829f,
    0 0 50px rgba(201, 58, 99, 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 #5e3040,
    0 0 0 15px #e8829f,
    0 0 70px rgba(201, 58, 99, 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(201, 58, 99, 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;
  /* Held in a variable so the coarse-pointer compensation further down cannot
     drift away from the value it is compensating for. */
  --jp-indicator-offset: 1.5rem;
  bottom: var(--jp-indicator-offset);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

/* Override Bootstrap carousel indicator defaults.
   The button is a 40 x 24px tap target; the 2px bar is drawn by ::after,
   centred inside it, so the control stays hittable on touch. */
#heroCarousel .jp-indicators button,
.jp-hero-carousel .jp-indicators button {
  width: 40px !important;
  height: 24px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  min-width: 40px !important;
  max-width: 40px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  opacity: 1 !important;
}

/* The bar itself - the track */
.jp-indicators button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  margin-top: -1px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
}

/* ...and the pink progress fill that rides on top of it */
.jp-indicators button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  margin-top: -1px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: #e8829f;
  transition: width 0.3s ease;
  z-index: 1;
}

/* On touch the 24px-tall control is under the 44px minimum. Grow the hit
   area only - the bar is drawn by ::after at top:50%, so it stays centred
   inside the taller button, and the container's offset is trimmed by the
   10px the button gains above it so the bars do not visibly move. */
@media (max-width: 991.98px) and (pointer: coarse) {
  #heroCarousel .jp-indicators button,
  .jp-hero-carousel .jp-indicators button {
    /* min- and max-height are pinned to 24px alongside height in the rule
       above, so raising height alone changes nothing - the max clamps it
       straight back. All three have to move together. */
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }

  /* Derived from the variable rather than repeating the number: written as a
     literal 3rem this lost to the max-width:991px rule further down the file,
     which sets the offset for the very range this block targets, so the
     compensation never actually applied. */
  .jp-indicators {
    bottom: calc(var(--jp-indicator-offset) - 10px);
  }}

.jp-indicators button.active::after {
  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: #5e3040;
  color: #fff;
  width: 60px;
  height: 60px;
  border: 3px solid #e8829f;
  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 #5e3040,
    0 8px 20px rgba(0, 0, 0, 0.5);
}

.jp-control:hover {
  background: #e8829f;
  transform: translateY(-50%) scale(1.1);
  box-shadow:
    0 0 0 2px #5e3040,
    0 0 30px rgba(201, 58, 99, 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;
    /* Same seam as on desktop - the section below brings its own padding. */
    margin-bottom: 0;
  }

  /* 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, #e8829f 0%, #d76b8c 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(201, 58, 99, 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 #5e3040,
      0 0 0 4px #e8829f,
      0 5px 15px rgba(201, 58, 99, 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: #e8829f;
    color: #fff;
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 3px;
  }

  .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-quality-panel {
    order: -1 !important;
  }

  .jp-slide-3 .jp-quality-panel .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 #5e3040,
      0 0 0 6px #e8829f,
      0 8px 20px rgba(201, 58, 99, 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-quality-panel {
    display: block !important;
    margin-top: 1.5rem;
    padding: 0 1rem;
    max-width: 100%;
  }

  .jp-quality-panel .jp-box-frame {
    border: 2px solid #e8829f;
    box-shadow:
      0 0 0 4px #5e3040,
      0 0 0 6px #e8829f,
      0 8px 20px rgba(201, 58, 99, 0.3);
    max-width: 400px;
    margin: 0 auto;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5e3040;
  }

  .jp-quality-panel .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 {
    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-quality-panel .jp-box-frame img {
    width: 100% !important;
    height: 100% !important;
  }

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

  .jp-hero-image,
  .jp-quality-panel {
    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 {
    --jp-indicator-offset: 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 #5e3040,
      0 6px 20px rgba(201, 58, 99, 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, #5e3040 0%, #78485a 100%);
}@keyframes scanlines {
  0% {
    transform: translateY(0);
  }

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

.carousel-slide.slide-savings {
  background: linear-gradient(135deg, #78485a 0%, #5e3040 100%);
}

.carousel-slide.slide-releases {
  background: linear-gradient(135deg, #5e3040 0%, #78485a 100%);
}

/* Carousel Badges */
.carousel-badge-premium {
  background: linear-gradient(135deg, #e8829f 0%, #d76b8c 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: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 15px rgba(201, 58, 99, 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 {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

@keyframes takeMeTherePulse {

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

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

/* 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: none;
  text-shadow:
    3px 3px 0 rgba(201, 58, 99, 0.8),
    6px 6px 0 rgba(0, 0, 0, 0.5),
    0 0 30px rgba(201, 58, 99, 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);
}

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

.deal-badge .discount-number {
  font-size: 4rem;
  color: #e8829f;
  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, #5e3040 0%, #78485a 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 #e8829f;
  position: relative;
  overflow: hidden;
}

.featured-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 58, 99, 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: #e8829f;
  text-transform: none;
  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, #e8829f, transparent);
}

.featured-title-main {
  font-size: 4rem;
  font-weight: 900;
  color: #5e3040;
  line-height: 1;
  text-transform: none;
  letter-spacing: -2px;
  position: relative;
  background: linear-gradient(135deg, #5e3040 0%, #78485a 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, #e8829f 0%, #d76b8c 100%);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  box-shadow: 0 2px 10px rgba(201, 58, 99, 0.3);
}

/* The frame itself is products.css's - both stylesheets load on every page
   that shows a card, and these higher-specificity copies were quietly winning
   with a different height. Only the tint is set here. */
.product-card .product-image-wrapper {
  background: #f8f9fa;
}

.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: #5e3040;
  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 {
  /* light rose on white is only 2.58:1 - use the deeper rose */
  color: var(--brand-pink-deep);
  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: #e8829f !important;
  border-color: #e8829f !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, #e8829f 0%, #d76b8c 100%);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: none;
  box-shadow: 0 4px 15px rgba(201, 58, 99, 0.4);
  animation: pulse 2s ease-in-out infinite;
  margin-bottom: 1rem;
}

.arrivals-title {
  font-size: 4rem;
  font-weight: 900;
  color: #5e3040;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -2px;
  text-transform: none;
  background: linear-gradient(135deg, #5e3040 0%, #333 50%, #5e3040 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);
}

/* ===================================
   THEME & OCCASION 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 THEME & OCCASION SECTION
   =================================== */

.theme-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, #5e3040 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: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

/* Theme Cards */
.theme-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%;
}

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

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

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

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

.theme-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;
}

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

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

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

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

.theme-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #5e3040;
  margin-bottom: 0.5rem;
}

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

/* More Occasions Button */
.more-themes-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-themes-btn:hover {
  background: #e8829f;
  border-color: #e8829f;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201, 58, 99, 0.3);
}

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

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

/* Responsive Adjustments */
@media (max-width: 768px) {
  .theme-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;
  }

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

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

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

  .more-themes-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;
  }

  /* 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;
  }

  /* Height deliberately not set: the frame is a square that follows the
     column width, so it needs no per-breakpoint pixel value. */
  body .featured-products-section .product-image-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    background: #f0f0f0 !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: #e8829f !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;
  }

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

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

  .theme-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;
  }

  /* 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;
  }  /* 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 .card-title {
    font-size: 0.8rem !important;
  }

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

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

  .theme-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: #5e3040;
  font-size: 2rem;
  font-weight: 900;
  text-transform: none;
  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: #5e3040;
  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: #5e3040;
}

.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: #5e3040;
  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: #5e3040;
}

.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: #5e3040;
  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: none;
}

.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: #e8829f;
  border-radius: 2px;
}

.home-recommended-section-jp .jp-title-main {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: #5e3040;
  text-transform: none;
  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, #5e3040 0%, #e8829f 50%, #5e3040 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: #e8829f;
  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;
}

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

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

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

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

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

/* 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;
  }}

/* 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;
  }}

/* 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;
  }}

/* ===================================
   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: #5e3040;
  text-transform: none;
  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: #e8829f;
}

.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: none;
  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: none;
  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: #e8829f;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.hashtag:hover {
  border-color: #e8829f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 58, 99, 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;
  }}


/* ===================================================================
   "YOU MAY ALSO LIKE" CARDS - shared with the product page
   -------------------------------------------------------------------
   product-detail.css's recommendation carousel, re-emitted under the
   jp-home- names the homepage markup uses. The homepage carried its own
   drifted clone of the same component: 360px cards with a fixed 380px
   image box, against the product page's 300px cards with a square 1:1 box.

   The prefix stays rather than the markup switching to the plain .jp-
   names, because products.css declares its OWN .jp-product-card,
   .jp-product-image and .jp-product-name and IS loaded on the homepage -
   the bare names would pick those up instead of these.

   The section shell and its heading are NOT from the product page: it has
   no equivalent rules for them, so they stay as they were.
   =================================================================== */

.jp-home-carousel-wrapper {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 3rem;
}
.jp-home-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: #fff;
  color: var(--pd-plum, #5e3040);
  border: 1px solid var(--pd-line-strong, #ddcdd4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  z-index: 10;
  box-shadow: var(--pd-shadow, 0 1px 3px rgba(94, 48, 64, 0.07));
}
.jp-home-carousel-nav:hover {
  border-color: var(--pd-rose, #c9557a);
  color: var(--pd-rose, #c9557a);
  box-shadow: var(--pd-shadow-lift, 0 10px 28px rgba(94, 48, 64, 0.12));
}
.jp-home-carousel-nav i {
  font-size: 1.15rem;
}
.jp-home-carousel-prev { left: 0.25rem; }
.jp-home-carousel-next { right: 0.25rem; }
.jp-home-carousel-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: 0.5rem 0.25rem 1.5rem;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.jp-home-carousel-container::-webkit-scrollbar {
  display: none;
}
.jp-home-product-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--pd-line, #ece4e7);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.jp-home-product-card:hover {
  transform: translateY(-4px);
  border-color: var(--pd-line-strong, #ddcdd4);
  box-shadow: var(--pd-shadow-lift, 0 10px 28px rgba(94, 48, 64, 0.12));
}
.jp-home-product-image-container {
  position: relative;
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
  background: var(--pd-surface, #fbf8f9);
  border-radius: 0;
}
.jp-home-product-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.jp-home-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.jp-home-product-card:hover .jp-home-product-image {
  transform: scale(1.06);
}
.jp-home-product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(74, 34, 49, 0.78);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s 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.5rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}
.jp-home-view-product i {
  font-size: 1.6rem;
  color: #fff;
}
.jp-home-rating-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #fff;
  color: var(--pd-ink, #4a2231);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.8rem;
  box-shadow: var(--pd-shadow, 0 1px 3px rgba(94, 48, 64, 0.07));
  z-index: 10;
}
.jp-home-rating-badge i {
  color: #f0b429;
  font-size: 0.8em;
}
.jp-home-product-info {
  padding: 1.15rem 1.25rem 1.25rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.jp-home-series-tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.4rem;
  background: var(--pd-tint, #fdf4f7);
  color: var(--pd-rose, #c9557a);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  border: none;
}
.jp-home-series-tag i {
  font-size: 0.85em;
}
.jp-home-product-name {
  display: -webkit-box;
  color: var(--pd-ink, #4a2231);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.45;
  margin-bottom: 1rem;
  text-decoration: none;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.85rem;
  transition: color 0.2s ease;
}
.jp-home-product-name:hover {
  color: var(--pd-rose, #c9557a);
}
.jp-home-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--pd-line, #ece4e7);
  border-radius: 0;
}
.jp-home-price-tag {
  display: flex;
  flex-direction: column;
}
.jp-home-price-value {
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.jp-home-footer-cart-form {
  margin: 0;
}
.jp-home-add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--pd-plum, #5e3040);
  color: #fff;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}
.jp-home-add-to-cart-btn i {
  font-size: 0.95rem;
}
.jp-home-add-to-cart-btn:hover {
  background: var(--pd-ink, #4a2231);
  color: #fff;
}
.jp-home-add-to-cart-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.jp-home-add-to-cart-btn.success-state {
  background: #2f7d4f !important;
  color: #fff !important;
}
.jp-home-add-to-cart-btn .spinner {
  animation: pdSpin 0.8s linear infinite;
}
.jp-home-carousel-dots {
  display: none;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0 0;
}
.jp-home-carousel-dot {
  width: 7px;
  height: 7px;
  background: var(--pd-line-strong, #ddcdd4);
  border-radius: 999px;
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
  border: none;
}
.jp-home-carousel-dot.active {
  background: var(--pd-rose, #c9557a);
  width: 20px;
}

@media (max-width: 1199.98px) {
.jp-home-carousel-prev { left: 0; }
.jp-home-carousel-next { right: 0; }
}

@media (max-width: 991.98px) {
.jp-home-carousel-wrapper {
    padding: 0 1.5rem;
  }
.jp-home-carousel-nav {
    display: none;
  }
.jp-home-carousel-dots {
    display: flex;
  }
.jp-home-product-card {
    flex: 0 0 270px;
  }
}

@media (max-width: 767.98px) {
.jp-home-carousel-wrapper {
    padding: 0 1rem;
  }
.jp-home-carousel-container {
    gap: 1rem;
    scroll-snap-type: x mandatory;
  }
.jp-home-product-card {
    flex: 0 0 min(78vw, 300px);
  }
.jp-home-product-info {
    padding: 1rem 1.1rem 1.1rem;
  }
.jp-home-product-name {
    font-size: 0.92rem;
    min-height: 2.65rem;
  }
.jp-home-add-to-cart-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
.main-image,
  .main-image:hover,
  .jp-home-product-image,
  .jp-home-product-card:hover .jp-home-product-image,
  .jp-home-product-card:hover {
    transform: none;
  }
.tab-pane,
  .share-copy.copied i,
  .jp-home-add-to-cart-btn .spinner {
    animation: none;
  }
}
