/**
 * 2026 Tricore Info Tech
 * Tricore Recommended Products – Slider Stylesheet
 * Matches the "You Might Also Like" screenshot design.
 */

/* ------------------------------------------------------------------ */
/* Section wrapper                                                      */
/* ------------------------------------------------------------------ */
.tricore-recommended-products-wrapper {
  width: 100%;
  margin: 60px 0 50px 0;
  padding: 0;
  clear: both;
  box-sizing: border-box;
  font-family: inherit;
}

.tricore-recommended-products-wrapper .trp-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ------------------------------------------------------------------ */
/* Section heading                                                      */
/* ------------------------------------------------------------------ */
.tricore-recommended-products-wrapper .trp-header {
  text-align: center;
  margin-bottom: 32px;
}

.tricore-recommended-products-wrapper .trp-main-title {
  font-size: 26px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.2px;
  text-transform: none;
}

/* ------------------------------------------------------------------ */
/* Slider outer – positions prev/next buttons                          */
/* ------------------------------------------------------------------ */
.tricore-recommended-products-wrapper .trp-slider-outer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

/* ------------------------------------------------------------------ */
/* Track wrapper – clips overflow                                       */
/* ------------------------------------------------------------------ */
.tricore-recommended-products-wrapper .trp-track-wrapper {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

/* ------------------------------------------------------------------ */
/* Track – horizontally scrollable strip                               */
/* ------------------------------------------------------------------ */
.tricore-recommended-products-wrapper .trp-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

/* ------------------------------------------------------------------ */
/* Slide                                                               */
/* ------------------------------------------------------------------ */
.tricore-recommended-products-wrapper .trp-slide {
  /* Width controlled by JS – fallback shows 5 */
  flex: 0 0 20%;
  max-width: 20%;
  padding: 0 8px;
  box-sizing: border-box;
}

/* ------------------------------------------------------------------ */
/* Card                                                                */
/* ------------------------------------------------------------------ */
.tricore-recommended-products-wrapper .trp-card {
  position: relative;
  background: #ffffff;
  box-sizing: border-box;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tricore-recommended-products-wrapper .trp-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none !important;
  color: inherit !important;
}

/* ------------------------------------------------------------------ */
/* Badge – top-left overlay matching screenshot                        */
/* ------------------------------------------------------------------ */
.tricore-recommended-products-wrapper .trp-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: #111111;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 0;
}

.tricore-recommended-products-wrapper .trp-badge-sale,
.tricore-recommended-products-wrapper .trp-badge-on-sale,
.tricore-recommended-products-wrapper .trp-badge-discount {
  background: #e84040;
}

.tricore-recommended-products-wrapper .trp-badge-new {
  background: #111111;
}

.tricore-recommended-products-wrapper .trp-badge-outstock {
  background: #888888;
}

/* ------------------------------------------------------------------ */
/* Image – tall portrait to match screenshot                           */
/* ------------------------------------------------------------------ */
.tricore-recommended-products-wrapper .trp-image-wrapper {
  width: 100%;
  /* Portrait aspect ratio matching screenshot (approx 3:4) */
  aspect-ratio: 3 / 4;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #f5f5f5;
}

/* Fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 3 / 4) {
  .tricore-recommended-products-wrapper .trp-image-wrapper {
    height: 360px;
  }
}

.tricore-recommended-products-wrapper .trp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s ease;
  display: block;
}

.tricore-recommended-products-wrapper .trp-card:hover .trp-img {
  transform: scale(1.04);
}

/* ------------------------------------------------------------------ */
/* Info block                                                          */
/* ------------------------------------------------------------------ */
.tricore-recommended-products-wrapper .trp-info-wrapper {
  padding: 12px 2px 10px 2px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  box-sizing: border-box;
}

/* ---- Stars ---- */
.tricore-recommended-products-wrapper .trp-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 6px;
}

/* ---- Reviews hook (nrtreviews / displayProductListReviews / displayProductRating) ---- */
.tricore-recommended-products-wrapper .trp-reviews-hook {
  margin-bottom: 6px;
  line-height: 1.3;
}

/* Make the nrtreviews stars wrapper visible and inline */
.tricore-recommended-products-wrapper .trp-reviews-hook .reviews_note,
.tricore-recommended-products-wrapper .trp-reviews-hook .product-rating,
.tricore-recommended-products-wrapper .trp-reviews-hook .js-review-avgs {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #666;
}

/* Star fill bar */
.tricore-recommended-products-wrapper .trp-reviews-hook .star_content {
  font-size: 13px;
}

/* Review count number */
.tricore-recommended-products-wrapper .trp-reviews-hook .nb-reviews,
.tricore-recommended-products-wrapper .trp-reviews-hook .r-nbr,
.tricore-recommended-products-wrapper .trp-reviews-hook .r-unit,
.tricore-recommended-products-wrapper .trp-reviews-hook .goto-product-review-tab {
  font-size: 11px;
  color: #999999;
  text-decoration: none !important;
}

/* ---- Product title ---- */
.tricore-recommended-products-wrapper .trp-product-title {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.45;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
  transition: color 0.2s ease;
}

.tricore-recommended-products-wrapper .trp-card:hover .trp-product-title {
  color: #000000;
}

/* ---- Price row ---- */
.tricore-recommended-products-wrapper .trp-price-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: auto;
  flex-wrap: wrap;
}

.tricore-recommended-products-wrapper .trp-regular-price {
  font-size: 12px;
  color: #999999;
  text-decoration: line-through;
}

.tricore-recommended-products-wrapper .trp-price {
  font-size: 14px;
  font-weight: 700;
  color: #111111;
}

/* ------------------------------------------------------------------ */
/* Navigation arrows                                                   */
/* ------------------------------------------------------------------ */
.tricore-recommended-products-wrapper .trp-nav {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid #d0d0d0;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #444444;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  padding: 0;
  outline: none;
  z-index: 5;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.tricore-recommended-products-wrapper .trp-nav:hover {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.tricore-recommended-products-wrapper .trp-nav:disabled {
  opacity: 0.3;
  cursor: default;
  box-shadow: none;
}

.tricore-recommended-products-wrapper .trp-nav-prev {
  margin-right: 12px;
}

.tricore-recommended-products-wrapper .trp-nav-next {
  margin-left: 12px;
}

/* ------------------------------------------------------------------ */
/* Dot indicators                                                      */
/* ------------------------------------------------------------------ */
.tricore-recommended-products-wrapper .trp-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
}

.tricore-recommended-products-wrapper .trp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0d0d0;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.tricore-recommended-products-wrapper .trp-dot.trp-dot-active {
  background: #111111;
  transform: scale(1.25);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 1399px) {
  .tricore-recommended-products-wrapper .trp-image-wrapper {
    min-height: 240px;
  }
}

@media (max-width: 1199px) {
  .tricore-recommended-products-wrapper .trp-image-wrapper {
    min-height: 220px;
  }
  .tricore-recommended-products-wrapper .trp-main-title {
    font-size: 23px;
  }
}

@media (max-width: 991px) {
  .tricore-recommended-products-wrapper .trp-slide {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
  .tricore-recommended-products-wrapper .trp-image-wrapper {
    min-height: 200px;
  }
  .tricore-recommended-products-wrapper .trp-main-title {
    font-size: 21px;
  }
}

@media (max-width: 767px) {
  .tricore-recommended-products-wrapper {
    margin: 40px 0 30px 0;
  }
  .tricore-recommended-products-wrapper .trp-slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .tricore-recommended-products-wrapper .trp-image-wrapper {
    min-height: 180px;
  }
  .tricore-recommended-products-wrapper .trp-nav {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }
  .tricore-recommended-products-wrapper .trp-nav-prev { margin-right: 6px; }
  .tricore-recommended-products-wrapper .trp-nav-next { margin-left:  6px; }
}

@media (max-width: 479px) {
  .tricore-recommended-products-wrapper {
    margin: 30px 0 20px 0;
  }
  .tricore-recommended-products-wrapper .trp-slide {
    flex: 0 0 66.666%;
    max-width: 66.666%;
  }
  .tricore-recommended-products-wrapper .trp-image-wrapper {
    min-height: 160px;
  }
  .tricore-recommended-products-wrapper .trp-main-title {
    font-size: 19px;
  }
}
