/* KEDAICDID R352 — testimonial hover specificity, featured-product rhythm and compact loading indicator. */

/* R352: slim top progress bar; retain the established neon-red treatment. */
#kcd-r351-loading-bar {
  height: 4px !important;
}
#kcd-r351-loading-bar > span {
  border-radius: 0 5px 5px 0 !important;
  box-shadow:
    0 0 4px rgba(255, 23, 23, .95),
    0 0 9px 1px rgba(255, 0, 0, .76),
    0 0 17px 3px rgba(255, 0, 0, .48) !important;
}

/* R352: normalize Best Seller and Product of the Day product cards. */
html:root:root:root:root:root:root:root:root:root:root:root:root
[data-kedaicdid-legacy-root] #beranda :is(#produk-best-seller, #produk-of-the-day) {
  overflow: visible !important;
}
html:root:root:root:root:root:root:root:root:root:root:root:root
[data-kedaicdid-legacy-root] #beranda :is(#produk-best-seller, #produk-of-the-day) header {
  align-items: center !important;
  min-width: 0 !important;
}
html:root:root:root:root:root:root:root:root:root:root:root:root
[data-kedaicdid-legacy-root] #beranda :is(#produk-best-seller, #produk-of-the-day) header > div {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
html:root:root:root:root:root:root:root:root:root:root:root:root
[data-kedaicdid-legacy-root] #beranda :is(#produk-best-seller, #produk-of-the-day) .kcd265-rail {
  align-items: stretch !important;
  padding: 14px 10px 24px !important;
  scroll-padding-inline: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}
html:root:root:root:root:root:root:root:root:root:root:root:root
[data-kedaicdid-legacy-root] #beranda :is(#produk-best-seller, #produk-of-the-day) .kcd265-rail-group {
  align-items: stretch !important;
}
html:root:root:root:root:root:root:root:root:root:root:root:root
[data-kedaicdid-legacy-root] #beranda :is(#produk-best-seller, #produk-of-the-day) .kcd265-product {
  display: flex !important;
  flex: 0 0 320px !important;
  width: 320px !important;
  height: 132px !important;
  min-height: 132px !important;
  max-height: 132px !important;
  box-sizing: border-box !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 15px !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 0 var(--kcd-soft), 0 8px 20px rgba(105, 54, 150, .045) !important;
}
html:root:root:root:root:root:root:root:root:root:root:root:root
[data-kedaicdid-legacy-root] #beranda :is(#produk-best-seller, #produk-of-the-day) .kcd265-product-image {
  flex: 0 0 60px !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 14px !important;
}
html:root:root:root:root:root:root:root:root:root:root:root:root
[data-kedaicdid-legacy-root] #beranda :is(#produk-best-seller, #produk-of-the-day) .kcd265-product-info {
  display: flex !important;
  flex: 1 1 auto !important;
  align-self: stretch !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 0 !important;
  gap: 4px !important;
  overflow: hidden !important;
}
html:root:root:root:root:root:root:root:root:root:root:root:root
[data-kedaicdid-legacy-root] #beranda :is(#produk-best-seller, #produk-of-the-day) .kcd265-product-meta {
  display: block !important;
  max-width: 100% !important;
  min-width: 0 !important;
  font-size: 10px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
html:root:root:root:root:root:root:root:root:root:root:root:root
[data-kedaicdid-legacy-root] #beranda :is(#produk-best-seller, #produk-of-the-day) .kcd265-product-info > strong {
  display: -webkit-box !important;
  min-width: 0 !important;
  min-height: 2.45em !important;
  max-height: 2.45em !important;
  margin: 0 !important;
  overflow: hidden !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-overflow: clip !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.22 !important;
}
html:root:root:root:root:root:root:root:root:root:root:root:root
[data-kedaicdid-legacy-root] #beranda :is(#produk-best-seller, #produk-of-the-day) .kcd265-product-info > b {
  display: block !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}
html:root:root:root:root:root:root:root:root:root:root:root:root
[data-kedaicdid-legacy-root] #beranda :is(#produk-best-seller, #produk-of-the-day) .kcd265-product-cart {
  flex: 0 0 28px !important;
  align-self: center !important;
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
}

/* R352: stronger testimonial hover rules beat the old high-specificity transform reset. */
@media (hover: hover) and (pointer: fine) {
  html:root:root:root:root:root:root:root:root:root:root:root:root:root:root
  [data-kedaicdid-legacy-root] :is(#testimoni #testi-container, #beranda .ref-review-rail) .testi-card {
    position: relative !important;
    z-index: 1 !important;
    transform-origin: center center !important;
    transition:
      transform 260ms cubic-bezier(.2, .78, .22, 1),
      box-shadow 260ms cubic-bezier(.2, .78, .22, 1),
      border-color 220ms ease,
      filter 220ms ease !important;
    backface-visibility: hidden !important;
  }

  html:root:root:root:root:root:root:root:root:root:root:root:root:root:root
  [data-kedaicdid-legacy-root] :is(#testimoni #testi-container, #beranda .ref-review-rail) .testi-card:hover {
    z-index: 12 !important;
    translate: none !important;
    scale: none !important;
    transform: translate3d(0, -7px, 0) scale(1.025) !important;
    border-color: rgba(166, 77, 255, .72) !important;
    box-shadow: 0 16px 34px rgba(117, 39, 190, .17), 0 0 0 1px rgba(166, 77, 255, .18) !important;
    filter: saturate(1.04) !important;
  }
}

/* Keep hover expansion inside the horizontal review carousel's scrollport. */
html:root:root:root:root:root:root:root:root:root:root:root:root
[data-kedaicdid-legacy-root] #beranda .ref-review-rail {
  align-items: stretch !important;
  gap: 16px !important;
  padding: 16px 3% 25px !important;
  scroll-padding-inline: 3% !important;
}

/* Home review cards share one height and a stable product/rating baseline. */
html:root:root:root:root:root:root:root:root:root:root:root:root
[data-kedaicdid-legacy-root] #beranda .ref-review-rail .testi-card {
  display: flex !important;
  flex: 0 0 280px !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 280px !important;
  height: 306px !important;
  min-height: 306px !important;
  max-height: 306px !important;
  padding: 18px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  gap: 0 !important;
}
html:root:root:root:root:root:root:root:root:root:root:root:root
[data-kedaicdid-legacy-root] #beranda .ref-review-rail .testi-card > div:first-child {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
html:root:root:root:root:root:root:root:root:root:root:root:root
[data-kedaicdid-legacy-root] #beranda .ref-review-rail .testi-card .tc-head {
  flex: 0 0 auto !important;
  min-height: 30px !important;
  margin: 0 0 10px !important;
}
html:root:root:root:root:root:root:root:root:root:root:root:root
[data-kedaicdid-legacy-root] #beranda .ref-review-rail .testi-card .kcd-review-tags {
  flex: 0 0 auto !important;
  max-height: 54px !important;
  overflow: hidden !important;
  margin: 0 0 8px !important;
}
html:root:root:root:root:root:root:root:root:root:root:root:root
[data-kedaicdid-legacy-root] #beranda .ref-review-rail .testi-card .tc-komen {
  display: -webkit-box !important;
  flex: 0 0 auto !important;
  max-height: 45px !important;
  overflow: hidden !important;
  overflow-wrap: anywhere !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-height: 1.45 !important;
}
html:root:root:root:root:root:root:root:root:root:root:root:root
[data-kedaicdid-legacy-root] #beranda .ref-review-rail .testi-card .kcd-testi-product {
  flex: 0 0 auto !important;
  margin: auto 0 0 !important;
  padding-top: 11px !important;
}
html:root:root:root:root:root:root:root:root:root:root:root:root
[data-kedaicdid-legacy-root] #beranda .ref-review-rail .testi-card .kcd-testi-service {
  display: -webkit-box !important;
  min-height: 36px !important;
  max-height: 36px !important;
  overflow: hidden !important;
  overflow-wrap: anywhere !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-height: 1.35 !important;
}
html:root:root:root:root:root:root:root:root:root:root:root:root
[data-kedaicdid-legacy-root] #beranda .ref-review-rail .testi-card .tc-stars {
  flex: 0 0 auto !important;
  min-height: 22px !important;
  margin: 8px 0 0 !important;
  line-height: 1.2 !important;
}

/* Tablet and mobile keep each carousel card compact without clipping its contents. */
@media (max-width: 1100px) {
  html:root:root:root:root:root:root:root:root:root:root:root:root
  [data-kedaicdid-legacy-root] #beranda :is(#produk-best-seller, #produk-of-the-day) .kcd265-product {
    flex-basis: 280px !important;
    width: 280px !important;
    height: 120px !important;
    min-height: 120px !important;
    max-height: 120px !important;
    gap: 11px !important;
    padding: 13px !important;
  }
  html:root:root:root:root:root:root:root:root:root:root:root:root
  [data-kedaicdid-legacy-root] #beranda :is(#produk-best-seller, #produk-of-the-day) .kcd265-product-image {
    flex-basis: 54px !important;
    width: 54px !important;
    height: 54px !important;
  }
  html:root:root:root:root:root:root:root:root:root:root:root:root
  [data-kedaicdid-legacy-root] #beranda .ref-review-rail .testi-card {
    flex-basis: 260px !important;
    width: 260px !important;
    height: 292px !important;
    min-height: 292px !important;
    max-height: 292px !important;
  }
}

@media (max-width: 700px) {
  html:root:root:root:root:root:root:root:root:root:root:root:root
  [data-kedaicdid-legacy-root] #beranda :is(#produk-best-seller, #produk-of-the-day) .kcd265-rail {
    padding: 10px 6px 20px !important;
  }
  html:root:root:root:root:root:root:root:root:root:root:root:root
  [data-kedaicdid-legacy-root] #beranda :is(#produk-best-seller, #produk-of-the-day) .kcd265-product {
    flex-basis: min(78vw, 290px) !important;
    width: min(78vw, 290px) !important;
    height: 108px !important;
    min-height: 108px !important;
    max-height: 108px !important;
    gap: 9px !important;
    padding: 11px !important;
    border-radius: 15px !important;
  }
  html:root:root:root:root:root:root:root:root:root:root:root:root
  [data-kedaicdid-legacy-root] #beranda :is(#produk-best-seller, #produk-of-the-day) .kcd265-product-image {
    flex-basis: 46px !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 11px !important;
  }
  html:root:root:root:root:root:root:root:root:root:root:root:root
  [data-kedaicdid-legacy-root] #beranda :is(#produk-best-seller, #produk-of-the-day) .kcd265-product-info > strong {
    font-size: 11px !important;
    min-height: 2.45em !important;
    max-height: 2.45em !important;
  }
  html:root:root:root:root:root:root:root:root:root:root:root:root
  [data-kedaicdid-legacy-root] #beranda :is(#produk-best-seller, #produk-of-the-day) .kcd265-product-info > b {
    font-size: 12px !important;
  }
  html:root:root:root:root:root:root:root:root:root:root:root:root
  [data-kedaicdid-legacy-root] #beranda .ref-review-rail {
    padding: 12px 18px 22px !important;
    gap: 12px !important;
  }
  html:root:root:root:root:root:root:root:root:root:root:root:root
  [data-kedaicdid-legacy-root] #beranda .ref-review-rail .testi-card {
    flex-basis: 238px !important;
    width: 238px !important;
    height: 270px !important;
    min-height: 270px !important;
    max-height: 270px !important;
    padding: 14px !important;
    border-radius: 16px !important;
  }
  html:root:root:root:root:root:root:root:root:root:root:root:root
  [data-kedaicdid-legacy-root] #beranda .ref-review-rail .testi-card .tc-name {
    font-size: 13px !important;
  }
  html:root:root:root:root:root:root:root:root:root:root:root:root
  [data-kedaicdid-legacy-root] #beranda .ref-review-rail .testi-card .tc-time {
    font-size: 8px !important;
  }
  html:root:root:root:root:root:root:root:root:root:root:root:root
  [data-kedaicdid-legacy-root] #beranda .ref-review-rail .testi-card .kcd-review-tags span {
    max-width: 100% !important;
    font-size: 8px !important;
  }
  html:root:root:root:root:root:root:root:root:root:root:root:root
  [data-kedaicdid-legacy-root] #beranda .ref-review-rail .testi-card .kcd-testi-service {
    font-size: 11px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:root:root:root:root:root:root:root:root:root:root:root:root:root:root
  [data-kedaicdid-legacy-root] :is(#testimoni #testi-container, #beranda .ref-review-rail) .testi-card,
  html:root:root:root:root:root:root:root:root:root:root:root:root:root:root
  [data-kedaicdid-legacy-root] :is(#testimoni #testi-container, #beranda .ref-review-rail) .testi-card:hover {
    transform: none !important;
    transition: none !important;
    filter: none !important;
  }
}
