/**
 * v26 — Desktop: slim half-row, 4-cat scroll | testimonial fade one-by-one
 */

.love-fade-viewport,
.love-fade-dots {
  display: none;
}

@media (min-width: 1024px) {
  .home-duo-block {
    padding: 10px 16px 14px !important;
  }
  .home-duo-shell {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    align-items: stretch !important;
    max-width: 1240px !important;
  }
  .duo-card {
    border-radius: 14px !important;
    box-shadow: 0 4px 18px rgba(26, 18, 24, 0.06) !important;
  }
  .duo-card-categories,
  .duo-card-reviews {
    min-height: 0 !important;
    padding: 10px 10px 8px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .duo-head {
    margin-bottom: 8px !important;
  }
  .duo-head h2 {
    font-size: 11px !important;
  }
  .duo-icon {
    width: 26px !important;
    height: 26px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
  }
  .duo-heart {
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
  }
  .duo-head-love h2 {
    font-size: 13px !important;
  }
  .duo-head-love p {
    font-size: 10px !important;
  }

  /* Categories — one row, 4 visible, horizontal scroll */
  .duo-cat-matrix {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
    padding: 0 0 4px !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #f48fb1 transparent;
    flex: 1 !important;
  }
  .duo-cat-matrix::-webkit-scrollbar {
    display: block;
    height: 4px;
  }
  .duo-cat-matrix::-webkit-scrollbar-thumb {
    background: #f48fb1;
    border-radius: 4px;
  }
  .duo-cat-tile {
    flex: 0 0 calc(25% - 6px) !important;
    min-width: calc(25% - 6px) !important;
    max-width: calc(25% - 6px) !important;
    width: calc(25% - 6px) !important;
    aspect-ratio: 1 !important;
    scroll-snap-align: start;
    border-radius: 10px !important;
  }
  .duo-cat-tile .cat-label {
    font-size: 7px !important;
    padding: 2px 6px !important;
  }

  /* Testimonials — fade one at a time (hide marquee) */
  .love-marquee-viewport {
    display: none !important;
  }
  .love-fade-viewport {
    display: flex !important;
    flex: 1;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 120px;
    padding: 4px 6px;
  }
  .love-fade-slide {
    position: absolute;
    inset: 8px 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s;
    pointer-events: none;
    background: #fff;
    color: #1a1218;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
  }
  .love-fade-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 2;
  }
  .love-fade-slide .stars {
    color: #ffb300;
    font-size: 11px;
    margin-bottom: 6px;
  }
  .love-fade-slide p {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.55;
    font-style: italic;
    color: #4a3d44;
  }
  .love-fade-slide strong {
    font-size: 11px;
    font-weight: 700;
    color: #1a1218;
  }
  .love-fade-dots {
    display: flex !important;
    justify-content: center;
    gap: 5px;
    margin-top: 6px;
    padding-top: 4px;
  }
  .love-fade-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: background 0.2s, width 0.2s;
  }
  .love-fade-dot.is-active {
    background: #ff6b9d;
    width: 16px;
    border-radius: 4px;
  }
  .love-stats {
    margin-top: 4px !important;
    padding-top: 6px !important;
    gap: 10px !important;
  }
  .love-stats span {
    font-size: 9px !important;
  }
  .love-stats b {
    font-size: 12px !important;
  }
}

/* Mobile — hide fade slider */
@media (max-width: 1023px) {
  .love-fade-viewport,
  .love-fade-dots {
    display: none !important;
  }
}
