/* Camerino fotorealistico Sizebay-like + gateway genere */

.rv-gender-gateway {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 1.75rem;
}
@media (max-width: 720px) {
  .rv-gender-gateway { grid-template-columns: 1fr; }
}
.rv-gender-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 11.5rem;
  padding: 1.35rem 1.4rem;
  border-radius: 1.1rem;
  overflow: hidden;
  text-decoration: none;
  color: #1c1b1a;
  border: 1px solid rgba(166, 124, 0, 0.22);
  background: #f4f1ea;
  box-shadow: 0 10px 28px -16px rgba(28, 27, 26, 0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.rv-gender-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(244, 241, 234, 0.2) 55%, rgba(197, 160, 89, 0.08));
  z-index: 0;
}
.rv-gender-card--donna { background: linear-gradient(145deg, #f7f4ef 0%, #efe8df 55%, #f3ebe3 100%); }
.rv-gender-card--uomo { background: linear-gradient(145deg, #f6f5f2 0%, #ebe7df 55%, #f1eee8 100%); }
.rv-gender-card:hover { transform: translateY(-3px); border-color: rgba(197, 160, 89, 0.55); box-shadow: 0 16px 36px -18px rgba(28, 27, 26, 0.28); }
.rv-gender-card__eyebrow,
.rv-gender-card__title,
.rv-gender-card__meta,
.rv-gender-card__cta { position: relative; z-index: 1; }
.rv-gender-card__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b645a;
  margin: 0 0 0.35rem;
}
.rv-gender-card__title {
  font-family: "Playfair Display", "Lora", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0;
  color: #1c1b1a;
}
.rv-gender-card__meta { margin: 0.45rem 0 0; font-size: 0.9rem; color: #6b645a; }
.rv-gender-card__cta { margin-top: 1rem; font-size: 0.86rem; font-weight: 600; color: #a6843d; }

.rv-gender-rail { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0 0 1.1rem; }
.rv-gender-rail__btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1rem; border-radius: 999px;
  border: 1px solid var(--rv-border);
  background: var(--rv-glass-tint, #fff); color: var(--rv-cream);
  text-decoration: none; font-size: 0.9rem; font-weight: 560;
}
.rv-gender-rail__btn.is-active {
  background: #f4f1ea;
  color: #1c1b1a; border-color: rgba(197, 160, 89, 0.55);
}
.rv-gender-rail__count { font-size: 0.75rem; opacity: 0.75; }

.rv-product-fitting-cta {
  margin-top: 1.35rem;
  display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center;
}
.rv-product-fitting-cta--under-price {
  margin-top: 0.85rem;
  margin-bottom: 0.15rem;
}
.rv-product-fitting-cta--under-price .rv-btn-fitting {
  width: 100%;
  max-width: 22rem;
  justify-content: center;
  display: inline-flex;
}
.rv-product-fitting-cta--under-price .rv-product-fitting-cta__note {
  width: 100%;
  max-width: 22rem;
}
.rv-product-fitting-cta .rv-btn-fitting {
  appearance: none;
  border: 1px solid rgba(197, 160, 89, 0.55);
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.18), rgba(197, 160, 89, 0.06));
  color: var(--rv-cream);
  font-weight: 650; font-size: 0.95rem;
  padding: 0.9rem 1.25rem; border-radius: 0.85rem; cursor: pointer;
}
.rv-product-fitting-cta .rv-btn-fitting:hover {
  border-color: var(--rv-gold);
  box-shadow: var(--rv-shadow-gold);
}
.rv-product-fitting-cta__note {
  margin: 0; font-size: 0.82rem; color: var(--rv-muted); max-width: 20rem;
}

/* ===== Modal Sizebay-like ===== */
/* Sopra cart-fab (12040), floating-tools (12050), voice-fab (12060) */
body.rv-vf-open { overflow: hidden; }
.rv-vf {
  position: fixed; inset: 0; z-index: 130000;
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.rv-vf,
.rv-vf * {
  box-sizing: border-box;
}
.rv-vf.is-open { opacity: 1; pointer-events: auto; }
.rv-vf__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 9, 8, 0.72);
  backdrop-filter: blur(8px);
}
.rv-vf__panel {
  position: relative; z-index: 1;
  width: min(840px, 94vw);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: linear-gradient(165deg, #171512 0%, #221e19 50%, #12100e 100%);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 1.2rem;
  color: #f5f0e6;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  padding: 1.1rem 1.15rem 1.2rem;
  transform: translateY(8px) scale(0.985);
  transition: transform 0.28s ease;
}
.rv-vf.is-open .rv-vf__panel { transform: none; }

/* Solo step 3: panel a tutta altezza, stage che riempie */
.rv-vf__panel--look {
  display: flex;
  flex-direction: column;
  width: min(960px, 97vw);
  height: min(88vh, 760px);
  max-height: min(88vh, 760px);
  overflow: hidden;
  padding: 0.75rem 1rem 0.8rem;
}
.rv-vf__panel--look .rv-vf__progress {
  flex: 0 0 auto;
  margin-bottom: 0.75rem;
}
.rv-vf__panel--look .rv-vf__step--look {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.rv-vf__close {
  position: absolute; top: 0.7rem; right: 0.75rem;
  width: 2.2rem; height: 2.2rem; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); color: #fff;
  font-size: 1.35rem; cursor: pointer; z-index: 3;
}

.rv-vf__progress {
  display: flex; align-items: center; gap: 0.45rem;
  margin: 0 0 1.1rem; font-size: 0.78rem;
}
.rv-vf__progress span {
  width: 1.55rem; height: 1.55rem; border-radius: 999px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.55);
}
.rv-vf__progress span.is-active,
.rv-vf__progress span.is-done {
  background: rgba(197, 160, 89, 0.25);
  border-color: rgba(197, 160, 89, 0.7);
  color: #f0d7a4;
}
.rv-vf__progress i {
  flex: 0 0 1.4rem; height: 1px; background: rgba(255, 255, 255, 0.15);
}

.rv-vf__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #c5a059;
}
.rv-vf__title {
  margin: 0;
  font-family: "Playfair Display", "Lora", Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.2;
}
.rv-vf__lead, .rv-vf__meta, .rv-vf__status, .rv-vf__hint-mini {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  color: rgba(245, 240, 230, 0.72);
  line-height: 1.45;
}

.rv-vf__form {
  display: grid; gap: 0.85rem;
  margin: 1.25rem 0 1.35rem;
}
.rv-vf__form label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.75rem;
  font-size: 0.9rem;
}
.rv-vf__form input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: #c5a059;
}
.rv-vf__form select {
  grid-column: 1 / -1;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.55rem;
  padding: 0.55rem 0.7rem;
}

.rv-vf__models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.1rem 0 1.25rem;
}
.rv-vf__gender {
  margin: 0.15rem 0 0.85rem;
}
.rv-vf__gender > span {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(245, 240, 230, 0.78);
}
.rv-vf__gender-btns {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.45rem;
}
.rv-vf__gender-btns button {
  appearance: none;
  flex: 1;
  cursor: pointer;
  color: #f5f0e6;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.7rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
}
.rv-vf__gender-btns button.is-active {
  border-color: rgba(197, 160, 89, 0.85);
  box-shadow: 0 0 0 1px rgba(197, 160, 89, 0.35);
}
.rv-vf__models--compact { margin: 0.75rem 0; }
.rv-vf-model {
  appearance: none; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.85rem; padding: 0.4rem;
  cursor: pointer; color: #f5f0e6; text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.rv-vf-model:hover { transform: translateY(-2px); }
.rv-vf-model.is-active {
  border-color: rgba(197, 160, 89, 0.75);
  box-shadow: 0 0 0 1px rgba(197, 160, 89, 0.35);
}
.rv-vf-model__thumb {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 0.55rem;
  background: #1a1712 center/cover no-repeat;
}
.rv-vf-model__label {
  display: block; margin-top: 0.4rem;
  font-size: 0.82rem; font-weight: 600;
}

.rv-vf__btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.1rem; border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f5f0e6; text-decoration: none;
  font-size: 0.9rem; font-weight: 650; cursor: pointer;
}
.rv-vf__btn--primary {
  background: linear-gradient(135deg, #c5a059, #a6843d);
  border-color: transparent; color: #1c1b1a;
}
.rv-vf__actions {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
}

.rv-vf__look-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 0.85rem;
  align-items: stretch;
}
.rv-vf__panel--look .rv-vf__look-grid {
  flex: 1 1 auto;
  min-height: 0;
  /* colonna stage un filo più stretta → aspect più verticale, meno crop testa */
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 1fr);
}
@media (max-width: 820px) {
  .rv-vf__look-grid {
    grid-template-columns: 1fr;
  }
  .rv-vf__panel--look .rv-vf__look-grid {
    grid-template-rows: minmax(260px, 46vh) auto;
  }
  .rv-vf__models { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.rv-vf__measure-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}
@media (max-width: 720px) {
  .rv-vf__measure-grid { grid-template-columns: 1fr; }
}
.rv-vf__preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.rv-vf__preview {
  flex: 1;
  min-height: 240px;
  border-radius: 0.9rem;
  border: 1px solid rgba(197, 160, 89, 0.35);
  background: #1a1712 center/cover no-repeat;
  transition: background-image 0.25s ease, border-color 0.2s ease;
}
.rv-vf__preview-label {
  font-size: 0.75rem;
  color: rgba(245, 240, 230, 0.65);
  text-align: center;
}
.rv-vf__build-hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: rgba(240, 215, 164, 0.92);
  line-height: 1.35;
}
.rv-vf__build-hint strong { color: #f5e6c2; }
.rv-vf__form--compact label { margin-bottom: 0.35rem; }
.rv-vf__form--compact { gap: 0.35rem; }

.rv-vf__stage {
  position: relative;
  width: 100%;
  min-height: 320px;
  height: min(52vh, 480px);
  border-radius: 1rem;
  overflow: hidden;
  background: #9a9a9a;
  border: 1px solid rgba(197, 160, 89, 0.18);
  touch-action: pan-y;
  user-select: none;
}
.rv-vf__panel--look .rv-vf__stage {
  height: 100%;
  min-height: 0;
  max-height: none;
}
.rv-vf__stage.is-filled {
  background: #8e8e8e;
}
.rv-vf__stage.is-orbit {
  cursor: grab;
  touch-action: none;
}
.rv-vf__stage.is-orbit.is-dragging { cursor: grabbing; }
.rv-vf__stage.is-loading::after {
  content: "Caricamento look…";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(12, 11, 10, 0.45);
  font-size: 0.9rem; color: #e8c98a;
  z-index: 2;
  pointer-events: none;
}
.rv-vf__look-frame {
  position: absolute;
  /* riempie tutto lo stage; la barra 360° flotta sopra */
  inset: 0;
  overflow: hidden;
  box-sizing: border-box;
  background: #8e8e8e;
  z-index: 0;
  pointer-events: none;
}
.rv-vf__look {
  display: block;
  width: 100%;
  height: 100%;
  /* corpo intero: niente crop gambe (cover tagliava metà polpaccio) */
  object-fit: contain;
  object-position: center center;
  background: #8e8e8e;
  transition: transform 0.22s ease;
  will-change: transform;
  pointer-events: none;
  transform-origin: 50% 50%;
}
.rv-vf__pairs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.35rem;
  scrollbar-width: thin;
}
.rv-vf-pair {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f0e6;
  border-radius: 0.65rem;
  padding: 0.35rem;
  min-width: 4.6rem;
  max-width: 5.6rem;
  cursor: pointer;
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.25;
}
.rv-vf-pair.is-active {
  border-color: rgba(197, 160, 89, 0.8);
  box-shadow: 0 0 0 1px rgba(197, 160, 89, 0.3);
}
.rv-vf-pair__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 0.4rem;
  background: #1a1712 center/cover no-repeat;
  margin-bottom: 0.25rem;
}
.rv-vf-pair__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rv-vf__pair-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.rv-vf__side {
  min-height: 0;
  overflow: auto;
  padding-right: 0.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.rv-vf__orbit {
  position: absolute;
  left: 0.45rem; right: 0.45rem; bottom: 0.45rem;
  z-index: 5;
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.75rem;
  background: rgba(10, 9, 8, 0.72);
  border: 1px solid rgba(197, 160, 89, 0.35);
  backdrop-filter: blur(6px);
  pointer-events: auto;
}
.rv-vf__orbit[hidden] { display: none !important; }
.rv-vf__orbit-btn {
  appearance: none;
  width: 2.1rem; height: 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(197, 160, 89, 0.45);
  background: rgba(255, 255, 255, 0.06);
  color: #f0d7a4;
  font-size: 1.35rem; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.rv-vf__orbit-btn:hover { border-color: #c5a059; }
.rv-vf__orbit-mid {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 0.25rem; align-items: center;
}
.rv-vf__orbit-label {
  font-size: 0.72rem;
  color: rgba(245, 240, 230, 0.82);
  letter-spacing: 0.02em;
  text-align: center;
}
.rv-vf__orbit-dots {
  display: flex; flex-wrap: wrap; gap: 0.28rem; justify-content: center;
}
.rv-vf__orbit-dot {
  appearance: none;
  width: 0.45rem; height: 0.45rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}
.rv-vf__orbit-dot.is-active {
  background: #c5a059;
  box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.25);
}
.rv-vf__ref {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(197, 160, 89, 0.28);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.03);
}
.rv-vf__ref[hidden] { display: none; }
.rv-vf__ref-label {
  width: 100%;
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(197, 160, 89, 0.95);
}
.rv-vf__ref-img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: 0.45rem;
  background: #222;
}
.rv-vf__badge {
  position: absolute; left: 0.7rem; top: 0.7rem;
  padding: 0.3rem 0.6rem; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(197, 160, 89, 0.4);
  font-size: 0.7rem; color: #f0d7a4;
}

.rv-vf__sizebox {
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.35);
  display: flex; justify-content: space-between; align-items: baseline;
}
.rv-vf__sizebox span { font-size: 0.82rem; color: rgba(245, 240, 230, 0.7); }
.rv-vf__sizebox strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem; color: #f0d7a4;
}
.rv-vf__fit { margin-top: 0.35rem; }
.rv-vf__fit-head { font-size: 0.82rem; color: rgba(245, 240, 230, 0.7); margin-bottom: 0.35rem; }
.rv-vf__fit-track {
  height: 0.45rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); overflow: hidden;
}
.rv-vf__fit-track i {
  display: block; height: 100%; width: 70%;
  background: linear-gradient(90deg, #a6843d, #e0c07a);
  border-radius: inherit;
}
