/**
 * Onsus Product Filter — Recently Viewed Carousel Styles
 * Shares the product card classes (.opf-product-card etc.) from
 * tf-product-filter.css. Only carousel-specific styles live here.
 */

/* =========================================================================
   1. Wrapper
   ====================================================================== */
.opf-rv-wrap {
  --opf-rv-arrow-color: #EB4F08;
  --opf-rv-arrow-bg:    #ffffff;
  --opf-rv-arrow-size:  40px;
  position: relative;
  width: 100%;
}

/* =========================================================================
   2. Section header / title
   ====================================================================== */
.opf-rv-header {
  margin-bottom: 24px;
}

.opf-rv-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px;
  line-height: 1.3;
}

/* Accent underline separator */
.opf-rv-header.has-sep::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: #EB4F08;
  border-radius: 2px;
  margin-top: 6px;
}

/* =========================================================================
   3. Carousel shell
   ====================================================================== */
.opf-rv-carousel-outer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.opf-rv-viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

/* Track — flex row; JS sets transform: translateX() */
.opf-rv-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* Individual slide */
.opf-rv-slide {
  flex-shrink: 0;
  /* Width is set by JS based on slidesVisible and gap */
}

/* =========================================================================
   4. Navigation arrows
   ====================================================================== */
.opf-rv-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width:  var(--opf-rv-arrow-size);
  height: var(--opf-rv-arrow-size);
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.10);
  background: var(--opf-rv-arrow-bg);
  color: var(--opf-rv-arrow-color);
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  padding: 0;
  line-height: 1;
}
.opf-rv-arrow svg { pointer-events: none; }
.opf-rv-arrow:hover {
  background: var(--opf-rv-arrow-color);
  color: #fff;
  box-shadow: 0 4px 14px rgba(235,79,8,.30);
  transform: scale(1.08);
}
.opf-rv-arrow:active { transform: scale(.96); }
.opf-rv-arrow:disabled,
.opf-rv-arrow.is-disabled {
  opacity: .35;
  pointer-events: none;
}

/* =========================================================================
   5. Dots pagination
   ====================================================================== */
.opf-rv-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.opf-rv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
  display: inline-block;
  flex-shrink: 0;
}
.opf-rv-dot.is-active {
  background: #EB4F08;
  transform: scale(1.4);
}
.opf-rv-dot:hover { background: #EB4F08; opacity: .7; }

/* =========================================================================
   6. Empty state
   ====================================================================== */
.opf-rv-empty {
  font-size: 14px;
  color: #888899;
  font-style: italic;
  text-align: center;
  padding: 32px 0;
  margin: 0;
}

/* =========================================================================
   7. Responsive tweaks
   ====================================================================== */
@media (max-width: 767px) {
  .opf-rv-title { font-size: 18px; }
  .opf-rv-arrow { display: none; }   /* hide arrows on very small screens — swipe only */
}
