/**
 * v25 — SHOP BY CATEGORY + Loved by Thousands (unique desktop / mobile)
 */

.home-duo-block {
  padding: 12px 10px 16px;
  background: linear-gradient(180deg, #fff 0%, #fff8fb 100%);
}
.home-duo-shell {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.duo-card {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 28px rgba(26, 18, 24, 0.08);
  border: 1px solid rgba(233, 30, 99, 0.1);
}
.duo-card-categories {
  background: linear-gradient(145deg, #fff 0%, #fff5f9 100%);
  padding: 14px 12px 12px;
}
.duo-card-reviews {
  background: linear-gradient(145deg, #1a1218 0%, #2d1a24 55%, #1a1218 100%);
  padding: 14px 12px 12px;
  color: #fff;
}

.duo-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.duo-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a1218;
  line-height: 1.2;
}
.duo-head h2 em {
  font-style: normal;
  color: #e91e63;
}
.duo-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e91e63, #ff6b9d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.duo-head-love h2 {
  color: #fff;
  letter-spacing: 0.06em;
  font-size: 15px;
  text-transform: none;
}
.duo-head-love p {
  margin: 2px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}
.duo-heart {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(233, 30, 99, 0.25);
  border: 1px solid rgba(255, 107, 157, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6b9d;
  font-size: 16px;
  flex-shrink: 0;
}

/* Category tiles — mobile horizontal */
.duo-cat-matrix {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.duo-cat-matrix::-webkit-scrollbar {
  display: none;
}
.duo-cat-tile {
  flex: 0 0 30%;
  min-width: 100px;
  max-width: 120px;
  aspect-ratio: 1;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: block;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.22s ease;
}
.duo-cat-tile:active {
  transform: scale(0.97);
}
.duo-cat-tile .cat-label {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: #fff;
  padding: 3px 8px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  border-radius: 4px;
  color: #1a1218;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.duo-cat-tile .cat-photo-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.duo-cat-tile .cat-overlay {
  position: absolute;
  inset: 0;
}
.duo-cat-tile .cat-emoji {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
}

/* Reviews — mobile horizontal cards */
.love-marquee-viewport {
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.love-marquee-track {
  display: flex;
  gap: 10px;
  padding: 10px;
  animation: loveSlideX 32s linear infinite;
}
.love-marquee-track:hover {
  animation-play-state: paused;
}
@keyframes loveSlideX {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.love-review-card {
  flex: 0 0 78%;
  max-width: 280px;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1218;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.love-review-card .stars {
  color: #ffb300;
  font-size: 11px;
  margin-bottom: 6px;
}
.love-review-card p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.5;
  font-style: italic;
  color: #4a3d44;
}
.love-review-card strong {
  font-size: 11px;
  font-weight: 700;
}

.love-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.love-stats span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}
.love-stats b {
  display: block;
  font-size: 14px;
  color: #ff6b9d;
  margin-bottom: 2px;
}

/* Desktop — side by side, filled panels, no dead gap */
@media (min-width: 1024px) {
  .home-duo-block {
    padding: 16px 20px 20px;
  }
  .home-duo-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: stretch;
  }
  .duo-card-categories,
  .duo-card-reviews {
    min-height: 320px;
    display: flex;
    flex-direction: column;
  }
  .duo-cat-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    flex: 1;
    overflow: visible;
    padding: 0;
  }
  .duo-cat-tile {
    flex: unset;
    min-width: 0;
    max-width: none;
    width: 100%;
    border-radius: 14px;
  }
  .duo-cat-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(233, 30, 99, 0.25);
  }
  .love-marquee-viewport {
    flex: 1;
    min-height: 200px;
    mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  }
  .love-marquee-track {
    flex-direction: column;
    animation: loveSlideY 26s linear infinite;
    padding: 8px 12px;
  }
  @keyframes loveSlideY {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(-50%);
    }
  }
  .love-review-card {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
  }
}

/* Hide legacy split */
.shop-cat-split-section {
  display: none !important;
}
