/* rp-recommendations: CSS da seção (o <style> de sections/rp-recommendations.liquid). */
rp-recommendations.rp-rec {
  display: block;
  padding: 56px 0 64px;
  background: #fff;
  --rp-rec-ink: #171717;
}

rp-recommendations.rp-rec[data-loaded="false"] { padding: 0; }

.rp-rec__wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

.rp-rec__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px;
}

.rp-rec__heading {
  margin: 0;
  padding: 0;
  font-family: "RP Awesome Serif Trial", Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: normal;
  text-transform: none;
  color: var(--rp-rec-1);
}

.rp-rec__title {
  display: inline-block;
  padding: .04em .08em .12em 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .8) 0 .6px, transparent 1.3px),
    linear-gradient(100deg, var(--rp-rec-1) 0%, var(--rp-rec-2) 50%, var(--rp-rec-3) 100%);
  background-size: 8px 8px, 220% 100%;
  background-position: 0 0, 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: rp-rec-shimmer 7s ease-in-out infinite alternate;
}

.rp-rec__title em,
.rp-rec__title i {
  font-family: inherit;
  font-style: italic;
  font-weight: 400;
  color: inherit;
  -webkit-text-fill-color: inherit;
}

@keyframes rp-rec-shimmer {
  from { background-position: 0 0, 0% 50%; }
  to { background-position: 8px 8px, 100% 50%; }
}

.rp-rec__nav { display: flex; gap: 8px; }

.rp-rec .rp-rec__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid #f0e3e5;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  color: #2b1720;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

.rp-rec .rp-rec__arrow[disabled] { opacity: .35; cursor: default; }
.rp-rec .rp-rec__arrow:focus-visible { outline: 2px solid var(--rp-rec-1); outline-offset: 2px; }

.rp-rec__track {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}

.rp-rec__track::-webkit-scrollbar { display: none; }
.rp-rec__track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.rp-rec__track.is-dragging a { pointer-events: none; }

.rp-rec__item {
  flex: 0 0 calc((100% - 48px) / 4);
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  scroll-snap-align: start;
}

.rp-rec__item::before { content: none; }

.rp-rec__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  background: #f3f3f5;
}

.rp-rec .rp-rec__media-link { position: absolute; inset: 0; display: block; }

.rp-rec .rp-rec__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform .6s ease, opacity .45s ease;
}

.rp-rec .rp-rec__img--alt { opacity: 0; }

.rp-rec .rp-rec__quick {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 14px rgba(43, 23, 32, .12);
  color: #2b1720;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.rp-rec .rp-rec__quick:focus-visible { outline: 2px solid var(--rp-rec-1); outline-offset: 2px; }
.rp-rec .rp-rec__quick:active { transform: scale(.94); }
.rp-rec__icon { display: block; }
.rp-rec__icon--check { display: none; }
.rp-rec .rp-rec__quick.is-added { background: #2b1720; color: #fff; }
.rp-rec .rp-rec__quick.is-added .rp-rec__icon--plus { display: none; }
.rp-rec .rp-rec__quick.is-added .rp-rec__icon--check { display: block; }
.rp-rec .rp-rec__quick.is-loading .rp-rec__icon { display: none; }
.rp-rec .rp-rec__quick.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.5px solid #2b1720;
  border-right-color: transparent;
  border-radius: 50%;
  animation: rp-rec-spin .7s linear infinite;
}

@keyframes rp-rec-spin { to { transform: rotate(360deg); } }

.rp-rec__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #624c50;
}

.rp-rec .rp-rec__name {
  display: -webkit-box;
  margin: 14px 0 6px;
  overflow: hidden;
  font-family: "RP Awesome Serif Trial", Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--rp-rec-ink);
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rp-rec__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--rp-rec-ink);
}

.rp-rec__compare { font-weight: 400; text-decoration: line-through; }
.rp-rec__sale { color: #b00000; }

.rp-rec__options {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .02em;
  color: #8a7b7e;
}

.rp-rec__bar {
  position: relative;
  height: 3px;
  margin: 24px 0 0;
  border-radius: 10px;
  background: rgba(43, 23, 32, .08);
  cursor: pointer;
  touch-action: none;
}

.rp-rec__bar[hidden] { display: none; }

.rp-rec__drag {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--rp-rec-1), var(--rp-rec-2));
}

.rp-rec__status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (hover: hover) and (pointer: fine) {
  .rp-rec .rp-rec__arrow:not([disabled]):hover { background: #fff5f6; border-color: #f4cfd3; }
  .rp-rec__item:hover .rp-rec__img { transform: scale(1.1); }
  .rp-rec__item:hover .rp-rec__img--alt { opacity: 1; }
  .rp-rec .rp-rec__quick:hover { background: #f4cfd3; }
  .rp-rec .rp-rec__name:hover { text-decoration: underline; text-underline-offset: 3px; }
}

@media (max-width: 989px) {
  .rp-rec__item { flex-basis: calc((100% - 32px) / 3); }
}

@media (max-width: 749px) {
  rp-recommendations.rp-rec { padding: 40px 0 48px; }
  .rp-rec__nav { display: none; }
  .rp-rec__top { margin-bottom: 18px; }
  .rp-rec__track { gap: 12px; }
  .rp-rec__item { flex-basis: 46%; }
  .rp-rec .rp-rec__name { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .rp-rec__title { animation: none; }
  .rp-rec .rp-rec__img,
  .rp-rec .rp-rec__quick,
  .rp-rec .rp-rec__arrow { transition: none; }
}
