/* ================================================================
   Home Page - Official Merch Carousel Section
   ================================================================ */

.home-merch-section {
  background: #ffffff;
  padding: 60px 0;
  overflow: hidden;
}

/* Header row: title + dots + nav + Shop All */
.home-merch-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.home-merch-sub {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
}
.home-merch-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Dot indicators */
.home-merch-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0d0d8;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.hm-dot--active {
  background: #6b0f2b;
  transform: scale(1.3);
}

/* Nav buttons */
.home-merch-navs { display: flex; gap: 6px; }
.home-merch-nav {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid #e8e8ec;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1a1a2e;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.home-merch-nav:hover { background: #6b0f2b; color: #fff; border-color: #6b0f2b; }

/* ---- 4-column grid ---- */
.home-merch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  /* clip so slide animation doesn't overflow */
  overflow: hidden;
}

/* ---- Slide animations ---- */
@keyframes hm-slide-in-left {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes hm-slide-in-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes hm-slide-out-left {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-40px); }
}
@keyframes hm-slide-out-right {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

.hm-slide-in-left  .home-merch-card--anim { animation: hm-slide-in-left  0.32s ease both; }
.hm-slide-in-right .home-merch-card--anim { animation: hm-slide-in-right 0.32s ease both; }
.hm-slide-out-left  { animation: hm-slide-out-left  0.22s ease forwards; }
.hm-slide-out-right { animation: hm-slide-out-right 0.22s ease forwards; }

/* Stagger the cards */
.home-merch-card--anim:nth-child(1) { animation-delay: 0s; }
.home-merch-card--anim:nth-child(2) { animation-delay: 0.05s; }
.home-merch-card--anim:nth-child(3) { animation-delay: 0.1s; }
.home-merch-card--anim:nth-child(4) { animation-delay: 0.15s; }

/* ---- Individual card ---- */
.home-merch-card {
  background: #f5f6fa;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.home-merch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.home-merch-card__img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eeeeee;
}
.home-merch-card__img-wrap a { display: block; height: 100%; }
.home-merch-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.home-merch-card:hover .home-merch-card__img { transform: scale(1.06); }

.home-merch-badge {
  position: absolute;
  z-index: 2;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
  line-height: 1.4;
}
.home-merch-badge--sale { top: 8px; left: 8px; background: #e94560; color: #fff; }
.home-merch-badge--new  { top: 8px; right: 8px; background: #16a34a; color: #fff; }

.home-merch-card__body { padding: 12px 14px 16px; flex: 1; }

.home-merch-card__cat {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa;
  margin-bottom: 4px;
}

.home-merch-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 6px;
}
.home-merch-card__name a { color: inherit; text-decoration: none; }
.home-merch-card__name a:hover { color: #e94560; }

.home-merch-card__stars {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-bottom: 7px;
}

.home-merch-card__prices { display: flex; align-items: baseline; gap: 7px; }
.home-merch-card__price  { font-size: 1rem; font-weight: 800; color: #6b0f2b; }
.home-merch-card__orig   { font-size: 0.8125rem; color: #bbb; text-decoration: line-through; }

/* ---- CTA Banner ---- */
.home-merch-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #3d0818 0%, #6b0f2b 50%, #9b1a45 100%);
  border-radius: 14px;
  padding: 24px 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.home-merch-cta__text { display: flex; flex-direction: column; gap: 4px; }
.home-merch-cta__text strong { font-size: 1.125rem; font-weight: 800; color: #fff; }
.home-merch-cta__text span   { font-size: 0.875rem; color: rgba(255,255,255,0.65); }
.home-merch-cta__btn {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #6b0f2b;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: background 0.2s ease, color 0.2s ease;
}
.home-merch-cta__btn:hover { background: #e94560; color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 1100px) { .home-merch-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  {
  .home-merch-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .home-merch-header { flex-direction: column; gap: 10px; }
}
@media (max-width: 480px)  { .home-merch-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 600px)  {
  .home-merch-cta { flex-direction: column; align-items: flex-start; padding: 20px; }
}
