/* ===== RECENTLY VIEWED ===== */
.rv {
  padding: 56px 0 48px;
  background: linear-gradient(180deg, #fbf6f8 0%, #f6edf1 100%);
  border-top: 1px solid #efe3e9;
  border-bottom: 1px solid #efe3e9;
}
.rv[hidden] { display: none; }

.rv-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.rv-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #9a7b4f;
  margin-bottom: 8px;
}
.rv-title {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.1;
  color: #3a0f27;
}
.rv-title em { font-style: italic; color: #9a7b4f; }
.rv-rule {
  display: block;
  width: 64px;
  height: 1px;
  background: #c9a96e;
  margin-top: 14px;
}

.rv-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.rv-count { font-size: 13px; color: #746872; }
.rv-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid #d9c9d1;
  background: #fff;
  color: #3a0f27;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.rv-arrow:hover { background: #3a0f27; color: #fff; border-color: #3a0f27; transform: translateY(-1px); }
.rv-clear {
  border: 0;
  background: none;
  font-size: 13px;
  color: #746872;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.rv-clear:hover { color: #3a0f27; }

.rv-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 22px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rv-track::-webkit-scrollbar { display: none; }

.rv-card {
  position: relative;
  flex: 0 0 210px;
  scroll-snap-align: start;
  display: block;
  background: #fff;
  border: 1px solid #efe3e9;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 22px rgba(58, 15, 39, .07);
  transition: transform .35s ease, box-shadow .35s ease;
}
.rv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(58, 15, 39, .16);
}

.rv-img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f1e8ec;
}
.rv-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s ease;
}
.rv-card:hover .rv-img img { transform: scale(1.07); }

.rv-tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 11px;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #3a0f27;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
}

.rv-cta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(0deg, rgba(36, 10, 25, .82), rgba(36, 10, 25, 0));
  transform: translateY(100%);
  transition: transform .35s ease;
}
.rv-card:hover .rv-cta { transform: translateY(0); }

.rv-body { padding: 14px 16px 18px; }
.rv-name {
  margin: 0 0 6px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  color: #24151e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}
.rv-price {
  font-size: 15px;
  font-weight: 600;
  color: #3a0f27;
  letter-spacing: .02em;
}

@media (max-width: 700px) {
  .rv { padding: 40px 0 32px; }
  .rv-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .rv-arrow { display: none; }
  .rv-card { flex-basis: 156px; border-radius: 14px; }
  .rv-name { font-size: 16px; }
  .rv-cta { display: none; }
  .rv-track { gap: 14px; }
}
.account-wrap { position: relative; display: inline-flex; }
.account-menu {
  position: absolute; top: 100%; right: 0;
  min-width: 190px; padding: 14px 16px;
  background: #fff; border: 1px solid #efe3e9; border-radius: 12px;
  box-shadow: 0 14px 34px rgba(58,15,39,.14);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 60; display: flex; flex-direction: column; gap: 6px;
}
.account-wrap:hover .account-menu,
.account-wrap:focus-within .account-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.account-hi { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #9a7b4f; }
.account-menu strong { font-size: 15px; color: #3a0f27; margin-bottom: 6px; word-break: break-all; }
.account-menu a { font-size: 14px; color: #24151e; text-decoration: none; padding: 5px 0; }
.account-menu a:hover { color: #3a0f27; text-decoration: underline; }
@media (max-width: 900px) { .account-menu { display: none; } }