/* product.css — PDP layout & components */

.pdp-body {
  background: #FAFAF7;
}

/* --- HEADER override for PDP: solid white instead of transparent --- */
/* The shared .site-header sits at top:36px to clear the home page's
   brand-switcher bar, which the PDP doesn't have — anchor it flush to top. */
.site-header--solid {
  top: 0;
  background-color: #FFFFFF;
  color: var(--elor-ink);
  border-bottom-color: rgba(13, 8, 5, 0.08);
}

/* --- PDP MAIN LAYOUT --- */

/* El display:grid le ganaría al [hidden] de la UA (gotcha de la casa) —
   sin esta regla el esqueleto vacío se pinta y el populate lo empuja (CLS). */
.pdp[hidden] {
  display: none;
}

.pdp {
  display: grid;
  /* Galería con ancho-tope "tamaño producto" (no full-bleed) + panel; centrado */
  grid-template-columns: minmax(0, 600px) minmax(340px, 440px);
  justify-content: center;
  column-gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px 96px;
  align-items: start;
}

/* Laptop angosta: junta un poco las columnas antes de colapsar */
@media (max-width: 1080px) {
  .pdp {
    column-gap: 40px;
  }
}

@media (max-width: 960px) {
  .pdp {
    grid-template-columns: 1fr;
    padding-top: 80px;
  }
}

@media (max-width: 480px) {
  .pdp {
    padding: 72px 16px 72px;
  }
}

/* --- GALLERY --- */
.pdp__gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

/* TOP: trio de modelo — 1 grande (ancho completo) + 2 en grid */
.pdp__models {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pdp__tile {
  position: relative;
  margin: 0;
  background: #ECEAE3;
  overflow: hidden;
}

.pdp__tile--hero {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 5;
}

.pdp__tile--thumb {
  aspect-ratio: 3 / 4;
}

.pdp__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* BOTTOM: slideshow solo del sombrero (packshots, fade) */
.pdp__hat-slider {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ECEAE3;
  overflow: hidden;
}

.pdp__hat-track {
  position: absolute;
  inset: 0;
}

.pdp__hat-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 420ms var(--easing-editorial);
  pointer-events: none;
}

.pdp__hat-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.pdp__hat-slide .pdp__img {
  object-fit: contain;
  padding: 0;
}

.pdp__hat-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.72);
  color: var(--elor-ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 180ms var(--easing-editorial);
}

.pdp__hat-arrow:hover { background: #FFFFFF; }
.pdp__hat-arrow--prev { left: 12px; }
.pdp__hat-arrow--next { right: 12px; }

.pdp__hat-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0;
  z-index: 2;
}

/* El botón mide 24x24 (target-size WCAG 2.5.8); el punto visible sigue siendo de 8px. */
.pdp__hat-dot {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.pdp__hat-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(13, 8, 5, 0.25);
  transition: background 180ms var(--easing-editorial);
}

.pdp__hat-dot.is-active::before { background: var(--elor-ink); }

.pdp__counter {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(13, 8, 5, 0.7);
  pointer-events: none;
  z-index: 1;
}

/* --- PANEL --- */
.pdp__panel {
  position: sticky;
  top: 80px;
  padding: 8px 8px 0 32px;
}

@media (max-width: 960px) {
  .pdp__panel {
    position: static;
    padding: 32px 8px 0;
  }
  .pdp__panel-inner {
    margin: 0 auto;
  }
}

.pdp__panel-inner {
  max-width: 460px;
}

.pdp__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  letter-spacing: 0.04em;
  margin: 0 0 14px 0;
  color: var(--elor-ink);
  line-height: 1.2;
}

.pdp__reviews {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--elor-ink);
}

.pdp__stars {
  color: var(--elor-ink);
  letter-spacing: 1px;
  font-size: 13px;
}

.pdp__reviews-count {
  /* warm-gray da 3.41:1 sobre el cream; este gris cálido pasa 4.5:1 (a11y pack 07-19) */
  color: #6F6D63;
  font-size: 13px;
}

.pdp__price {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem;
  margin: 0 0 28px 0;
  color: var(--elor-ink);
}

.pdp__currency {
  font-size: 0.75rem;
  color: #6F6D63;
  margin-left: 8px;
  letter-spacing: 0.06em;
}

/* --- OPTIONS (color + size + qty) --- */
.pdp__option {
  margin-bottom: 24px;
}

.pdp__option-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.pdp__option-label {
  font-size: 13px;
  margin: 0 0 10px 0;
  color: var(--elor-ink);
  font-weight: 400;
}

.pdp__option-value {
  font-weight: 500;
}

.pdp__size-chart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 8, 5, 0.04);
  border: 1px solid rgba(13, 8, 5, 0.22);
  padding: 7px 12px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--elor-ink);
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.pdp__size-chart-trigger:hover {
  background: rgba(13, 8, 5, 0.09);
  border-color: rgba(13, 8, 5, 0.38);
}

/* --- SWATCHES --- */
.pdp__swatches {
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pdp__swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(13, 8, 5, 0.18);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform 180ms var(--easing-editorial);
}

.pdp__swatch:hover {
  transform: scale(1.06);
}

.pdp__swatch.is-selected {
  box-shadow:
    0 0 0 2px #FFFFFF inset,
    0 0 0 1px var(--elor-ink);
}

.pdp__swatch:focus-visible {
  outline: 2px solid var(--elor-ink);
  outline-offset: 3px;
}

/* --- SIZE PILLS --- */
.pdp__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pdp__size {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 12px 16px;
  border: 1px solid rgba(13, 8, 5, 0.25);
  background: #FFFFFF;
  color: var(--elor-ink);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 180ms var(--easing-editorial), background 180ms var(--easing-editorial);
  min-width: 80px;
  text-align: center;
}

.pdp__size:hover {
  border-color: var(--elor-ink);
}

.pdp__size.is-selected {
  border-color: var(--elor-ink);
  border-width: 2px;
  padding: 11px 15px;
}

.pdp__size--sold-out {
  color: var(--elor-warm-gray);
  position: relative;
  cursor: not-allowed;
  background: #F5F4EF;
}

.pdp__size--sold-out::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 1px;
  background: var(--elor-warm-gray);
  transform: rotate(-12deg);
  transform-origin: center;
}

.pdp__size--sold-out:hover {
  border-color: rgba(13, 8, 5, 0.25);
}

/* --- QTY STEPPER --- */
.pdp__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(13, 8, 5, 0.25);
  border-radius: 6px;
  overflow: hidden;
  user-select: none;
}

.pdp__qty-btn {
  background: #FFFFFF;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 18px;
  color: var(--elor-ink);
  cursor: pointer;
  transition: background 180ms var(--easing-editorial);
}

.pdp__qty-btn:hover {
  background: #F5F4EF;
}

.pdp__qty-value {
  min-width: 48px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

/* --- ACTIONS --- */
.pdp__actions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdp__cta {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 16px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 180ms var(--easing-editorial), color 180ms var(--easing-editorial), border-color 180ms var(--easing-editorial);
  border: 1px solid var(--elor-ink);
  background: #FFFFFF;
  color: var(--elor-ink);
  text-align: center;
  width: 100%;
  display: inline-block;
}

.pdp__cta:hover {
  background: #F5F4EF;
}

.pdp__cta--customize {
  /* same as default outline */
}

.pdp__cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pdp__cta--outline {
  background: #FFFFFF;
  color: var(--elor-ink);
}

.pdp__cta--solid {
  background: var(--elor-ink);
  color: #FFFFFF;
}

.pdp__cta--solid:hover {
  background: #1F1410;
}

.pdp__cta--shop-pay {
  background: #5A31F4;
  color: #FFFFFF;
  border-color: #5A31F4;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  letter-spacing: 0;
}

.pdp__cta--shop-pay:hover {
  background: #4A21E0;
  border-color: #4A21E0;
}

.pdp__cta-pre {
  font-weight: 500;
}

.pdp__cta-shop {
  font-family: var(--font-body);
  font-weight: 700;
  font-style: italic;
  font-size: 16px;
}

.pdp__cta-pay {
  font-family: var(--font-body);
  font-weight: 700;
  font-style: italic;
  font-size: 11px;
  background: #FFFFFF;
  color: #5A31F4;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 2px;
}

.pdp__payment-link {
  display: inline-block;
  text-align: center;
  font-size: 13px;
  color: var(--elor-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin: 4px auto 0;
  width: 100%;
}

.pdp__payment-link--inline {
  display: inline;
  margin: 0;
}

.pdp__installments {
  font-size: 13px;
  color: var(--elor-ink);
  line-height: 1.6;
  margin: 16px 0 0;
  text-align: center;
}

.pdp__shop-pay-pill {
  background: #5A31F4;
  color: #FFFFFF;
  font-weight: 700;
  font-style: italic;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.pdp__shop-pay-pill span {
  font-size: 9px;
  background: #FFFFFF;
  color: #5A31F4;
  padding: 1px 3px;
  border-radius: 2px;
  margin-left: 2px;
}

/* --- RULES + sections below --- */
.pdp__rule {
  border: none;
  border-top: 1px solid rgba(13, 8, 5, 0.12);
  margin: 32px 0;
}

.pdp__h2 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 12px 0;
}

.pdp__confidence p,
.pdp__description p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--elor-ink);
  margin: 0 0 12px 0;
}

.pdp__description p:last-child {
  margin-bottom: 0;
}

/* --- MODAL (size chart) --- */
.pdp__modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pdp__modal[hidden] {
  display: none;
}

.pdp__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 8, 5, 0.4);
  backdrop-filter: blur(2px);
}

.pdp__modal-panel {
  position: relative;
  background: #FFFFFF;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px 40px 40px;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(13, 8, 5, 0.18);
  z-index: 1;
}

.pdp__modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--elor-ink);
  cursor: pointer;
  padding: 4px 8px;
}

.pdp__modal-title {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  letter-spacing: 0.02em;
}

.pdp__modal-sub {
  font-size: 13px;
  color: var(--elor-warm-gray);
  line-height: 1.6;
  margin: 0 0 28px;
}

.pdp__measure-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
  margin: 0 0 32px;
}

.pdp__measure-step {
  margin: 0;
}

.pdp__measure-step img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.pdp__measure-step figcaption {
  font-size: 13px;
  color: var(--elor-ink);
  line-height: 1.5;
  margin-top: 10px;
  letter-spacing: 0.01em;
}

.pdp__measure-step-num {
  font-weight: 600;
  margin-right: 4px;
}

.pdp__measure-table-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--elor-warm-gray);
  margin: 0 0 14px;
}

@media (max-width: 600px) {
  .pdp__measure-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.pdp__size-table {
  overflow-x: auto;
}

.pdp__size-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pdp__size-table th,
.pdp__size-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(13, 8, 5, 0.08);
}

.pdp__size-table th {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--elor-warm-gray);
  font-weight: 600;
}

/* --- TOAST --- */
.pdp__toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--elor-ink);
  color: #FFFFFF;
  font-size: 13px;
  padding: 14px 22px;
  border-radius: 4px;
  z-index: 200;
  opacity: 0;
  transition: opacity 240ms var(--easing-editorial), transform 240ms var(--easing-editorial);
  pointer-events: none;
}

.pdp__toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pdp__toast[hidden] {
  display: none;
}

/* --- 404 fallback (handle inválido) --- */
.pdp-404 {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pdp-404[hidden] {
  display: none;
}

.pdp-404__inner {
  max-width: 460px;
  text-align: center;
}

.pdp-404__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: 0.04em;
  margin: 0 0 16px;
  color: var(--elor-ink);
}

.pdp-404__copy {
  font-size: 14px;
  line-height: 1.7;
  color: var(--elor-ink);
  margin: 0 0 28px;
}

.pdp-404__cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 16px 32px;
  border-radius: 4px;
  border: 1px solid var(--elor-ink);
  background: var(--elor-ink);
  color: #FFFFFF;
  text-decoration: none;
  transition: background 180ms var(--easing-editorial);
}

.pdp-404__cta:hover {
  background: #1F1410;
}

/* --- CUSTOMIZER ("Personaliza tu sombrero") --- */
.pdp__cz-panel {
  max-width: 560px;
}

.pdp__cz-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 20px;
}

.pdp__cz-frame {
  position: relative;
  flex: 1;
  margin: 0;
  aspect-ratio: 1 / 1;
  background: #F5F4EF;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp__cz-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pdp__cz-frame.is-missing {
  background: repeating-linear-gradient(45deg, #F0EEE7, #F0EEE7 12px, #EBE8E0 12px, #EBE8E0 24px);
}

.pdp__cz-missing {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--elor-warm-gray);
  line-height: 1.5;
}

.pdp__cz-missing[hidden] {
  display: none;
}

/* Iniciales grabadas a fuego sobre el fieltro. El anclaje (top/left) marca la
   base de la corona — donde las marcan de verdad (ver refs AML / FV / ELÓR).
   El centrado y el ajuste fino del usuario van por transform desde el JS. */
.pdp__cz-mark {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: top 200ms var(--easing-editorial), left 200ms var(--easing-editorial);
}

.pdp__cz-mark[hidden] {
  display: none;
}

.pdp__cz-mark--front  { top: 54%;   left: 50%; }
.pdp__cz-mark--side   { top: 60.8%; left: 47.2%; }
.pdp__cz-mark--threeq { top: 44%;   left: 50%; }
.pdp__cz-mark--back   { top: 57.7%; left: 50%; }

/* Look "branded": marrón quemado que se funde en el fieltro (multiply) + deboss
   (luz abajo, sombra arriba) para que se lea hundido/chamuscado, no pegado. */
.pdp__cz-mark-text {
  font-family: 'Saira Extra Condensed', var(--font-body);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #2A1A0C;
  opacity: 0.86;
  mix-blend-mode: multiply;
  text-shadow:
    0 0.5px 0.5px rgba(255, 248, 235, 0.45),
    0 -0.5px 0.5px rgba(0, 0, 0, 0.45);
  filter: blur(0.25px);
  transform: rotate(-0.5deg);
}

.pdp__cz-arrow {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(13, 8, 5, 0.15);
  background: #FFFFFF;
  color: var(--elor-ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms var(--easing-editorial), border-color 160ms var(--easing-editorial);
}

.pdp__cz-arrow:hover {
  background: #F5F4EF;
  border-color: var(--elor-ink);
}

.pdp__cz-view-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--elor-warm-gray);
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 10px;
  border-radius: 3px;
}

.pdp__cz-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 22px;
}

.pdp__cz-field-label {
  display: block;
  font-family: var(--font-label, var(--font-body));
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--elor-warm-gray);
  margin-bottom: 8px;
  font-weight: 600;
}

.pdp__cz-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 20px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
  border: 1px solid rgba(13, 8, 5, 0.2);
  border-radius: 4px;
  background: #FFFFFF;
  color: var(--elor-ink);
}

.pdp__cz-input:focus {
  outline: none;
  border-color: var(--elor-ink);
}

.pdp__cz-pos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pdp__cz-pos-btn {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 10px;
  border: 1px solid rgba(13, 8, 5, 0.2);
  border-radius: 4px;
  background: #FFFFFF;
  color: var(--elor-ink);
  cursor: pointer;
  transition: background 160ms var(--easing-editorial), border-color 160ms var(--easing-editorial);
}

.pdp__cz-pos-btn:hover {
  background: #F5F4EF;
}

.pdp__cz-pos-btn.is-active {
  background: var(--elor-ink);
  color: #FFFFFF;
  border-color: var(--elor-ink);
}

.pdp__cz-nudge {
  display: flex;
  gap: 8px;
}

.pdp__cz-nudge-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(13, 8, 5, 0.2);
  border-radius: 4px;
  background: #FFFFFF;
  color: var(--elor-ink);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background 140ms var(--easing-editorial), border-color 140ms var(--easing-editorial);
}

.pdp__cz-nudge-btn:hover {
  background: #F5F4EF;
  border-color: var(--elor-ink);
}

.pdp__cz-nudge-btn:active {
  background: var(--elor-ink);
  color: #FFFFFF;
}

.pdp__cz-nudge-btn--reset {
  margin-left: auto;
  font-size: 15px;
  color: var(--elor-warm-gray);
}

.pdp__cz-ribbons {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pdp__cz-ribbon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(13, 8, 5, 0.15);
  cursor: pointer;
  padding: 0;
  transition: transform 140ms var(--easing-editorial);
}

.pdp__cz-ribbon:hover {
  transform: scale(1.08);
}

.pdp__cz-ribbon.is-selected {
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3.5px var(--elor-ink);
}

.pdp__cz-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdp__cz-summary {
  margin: 0;
  font-size: 13px;
  color: var(--elor-ink);
  text-align: center;
  min-height: 18px;
}

.pdp__cz-add {
  width: 100%;
}

.pdp__cz-cita {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #f4eee2;
  border: 1px solid var(--elor-ink);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--elor-ink);
  text-align: center;
  cursor: pointer;
  padding: 12px 14px;
  transition: background 0.18s ease, color 0.18s ease;
}
.pdp__cz-cita:hover {
  background: var(--elor-ink);
  color: #fff;
}
.pdp__cz-cita-icon {
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}
.pdp__cz-cita-text {
  text-align: left;
}

/* Panel del personalizador para productos solo-cita (Marfil/Jazmin). */
.pdp__cz-cita-only {
  padding: 6px 0 4px;
}
.pdp__cz-cita-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 18px;
}
.pdp__cz-cita-lead {
  font-family: var(--font-label, var(--font-body));
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--elor-ink);
  margin: 0 0 12px;
  text-align: center;
}
.pdp__cz-cita-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--elor-ink);
  text-align: center;
  margin: 0 0 16px;
}

/* ====== Cita virtual de personalización (Marfil/Jazmin) ====== */
.cita { color: var(--elor-ink); }

.cita__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0 0 12px;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--elor-warm-gray);
  cursor: pointer;
  transition: color 0.18s ease;
}
.cita__back:hover { color: var(--elor-ink); }

.cita__hero {
  position: relative;
  margin: 0 0 18px;
  border-radius: 8px;
  overflow: hidden;
}
.cita__hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.cita__hero-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 20px 16px;
  background: linear-gradient(to top, rgba(13, 8, 5, 0.78) 0%, rgba(13, 8, 5, 0.32) 55%, rgba(13, 8, 5, 0) 100%);
  color: #fff;
}
.cita__hero-kicker {
  display: block;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--elor-camel);
  margin: 0 0 4px;
}
.cita__hero-hook {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0;
}
.cita__hero-hook strong { font-weight: 400; font-style: italic; }

.cita__intro {
  font-size: 14px;
  line-height: 1.7;
  color: var(--elor-warm-gray);
  max-width: 46ch;
  margin: 0 0 6px;
}

.cita__step {
  margin: 0 0 24px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(13, 8, 5, 0.08);
}

.cita__label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--elor-ink);
  margin: 0 0 16px;
}
.cita__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0;
  color: var(--elor-cognac);
  flex: 0 0 auto;
}
.cita__opt {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--elor-tan);
}

/* Días — fila con scroll horizontal */
.cita__days {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 90%, transparent 100%);
          mask-image: linear-gradient(to right, #000 90%, transparent 100%);
}
.cita__days::-webkit-scrollbar { display: none; }
.cita__day {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 60px;
  padding: 11px 13px;
  background: var(--elor-paper);
  border: 1px solid rgba(13, 8, 5, 0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.cita__day:hover { border-color: var(--elor-cognac); transform: translateY(-1px); }
.cita__day-dow {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cita__day-date { font-size: 11px; color: var(--elor-warm-gray); }
.cita__day.is-selected {
  background: var(--elor-ink);
  border-color: var(--elor-ink);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(13, 8, 5, 0.45);
}
.cita__day.is-selected .cita__day-date { color: rgba(255, 255, 255, 0.72); }

/* Horarios — grilla de pastillas */
.cita__times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
  gap: 8px;
  min-height: 42px;
}
.cita__time {
  padding: 11px 10px;
  background: var(--elor-paper);
  border: 1px solid rgba(13, 8, 5, 0.12);
  border-radius: 8px;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--elor-ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.cita__time:hover { border-color: var(--elor-cognac); background: #faf5ec; }
.cita__time.is-selected {
  background: var(--elor-ink);
  border-color: var(--elor-ink);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(13, 8, 5, 0.45);
}
.cita__tz {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--elor-tan);
  margin: 14px 0 0;
}
.cita__hint {
  font-size: 13px;
  color: var(--elor-warm-gray);
  margin: 4px 0;
}
.cita__hint--err { color: var(--elor-cognac); }

/* Plataforma — segmentado */
.cita__platforms { display: flex; gap: 9px; }
.cita__platform {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 12px;
  background: var(--elor-paper);
  border: 1px solid rgba(13, 8, 5, 0.12);
  border-radius: 10px;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--elor-ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.cita__platform::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--elor-tan);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cita__platform:hover { border-color: var(--elor-cognac); transform: translateY(-1px); }
.cita__platform.is-selected {
  background: var(--elor-ink);
  border-color: var(--elor-ink);
  color: #fff;
}
.cita__platform.is-selected::before { background: var(--elor-camel); border-color: var(--elor-camel); }

/* Campos */
.cita__brief,
.cita__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--elor-ink);
  background: var(--elor-paper);
  border: 1px solid rgba(13, 8, 5, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cita__brief { resize: vertical; line-height: 1.55; }
.cita__fields { display: flex; flex-direction: column; gap: 10px; }
.cita__brief:focus,
.cita__input:focus {
  outline: none;
  background: #fff;
  border-color: var(--elor-cognac);
  box-shadow: 0 0 0 3px rgba(150, 100, 60, 0.1);
}
.cita__brief::placeholder,
.cita__input::placeholder { color: var(--elor-tan); }

/* Footer pegajoso con el CTA de pago */
.cita__footer {
  position: sticky;
  bottom: -40px;
  margin: 28px -40px -40px;
  padding: 18px 40px 26px;
  background: #fff;
  box-shadow: 0 -12px 20px -12px rgba(13, 8, 5, 0.14);
}
.cita__pay {
  width: 100%;
  padding: 16px;
  background: var(--elor-ink);
  border: 1px solid var(--elor-ink);
  border-radius: 8px;
  font-family: var(--font-label);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.cita__pay:not(:disabled):hover {
  background: var(--elor-atelier);
  border-color: var(--elor-atelier);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -12px rgba(13, 8, 5, 0.5);
}
.cita__pay:disabled {
  background: var(--elor-tan);
  border-color: var(--elor-tan);
  color: rgba(255, 255, 255, 0.85);
  cursor: not-allowed;
}
.cita__fineprint {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--elor-warm-gray);
  text-align: center;
  margin: 12px 0 0;
}

/* ====== Pantalla 2 — el obsequio (voz editorial Dior) ====== */
.citagift__hero {
  position: relative;
  margin: 0 0 22px;
  border-radius: 8px;
  overflow: hidden;
}
.citagift__hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 420px;
  object-fit: cover;
  object-position: center 38%;
}
.citagift__hero-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 52px 22px 18px;
  background: linear-gradient(to top, rgba(13, 8, 5, 0.7) 0%, rgba(13, 8, 5, 0.16) 58%, rgba(13, 8, 5, 0) 100%);
}
.citagift__kicker {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--elor-camel);
}
.citagift__body {
  text-align: center;
  padding: 0 4px;
  margin: 0 0 6px;
}
.citagift__ornament {
  display: block;
  font-size: 17px;
  line-height: 1;
  color: var(--elor-cognac);
  margin: 2px 0 16px;
}
.citagift__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 6.4vw, 2.1rem);
  line-height: 1.16;
  letter-spacing: 0.01em;
  color: var(--elor-ink);
  margin: 0 0 18px;
}
.citagift__title em { font-style: italic; color: var(--elor-cognac); }
.citagift__lede {
  font-size: 15px;
  line-height: 1.72;
  color: var(--elor-warm-gray);
  max-width: 42ch;
  margin: 0 auto 20px;
}
.citagift__lede strong { color: var(--elor-ink); font-weight: 500; font-style: italic; }
.citagift__detail {
  font-family: var(--font-label);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--elor-tan);
  max-width: 34ch;
  margin: 0 auto;
  padding: 15px 0 2px;
  border-top: 1px solid rgba(13, 8, 5, 0.1);
}

/* Secundario calmado del fork de compra: "Prefiero llevarlo tal cual" — sin culpa,
   sin peso. Subrayado quieto que no compite con el botón héroe sólido. */
.citagift__plain {
  display: block;
  width: 100%;
  margin: 14px 0 0;
  padding: 6px 0;
  background: none;
  border: none;
  font-family: var(--font-label);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--elor-warm-gray);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(13, 8, 5, 0.18);
  cursor: pointer;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
.citagift__plain:hover {
  color: var(--elor-ink);
  text-decoration-color: var(--elor-cognac);
}

/* ====== Pantalla 3 — cabecera compacta de reserva ====== */
.cita__head { margin: 4px 0 18px; }
.cita__head-kicker {
  display: block;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--elor-cognac);
  margin: 0 0 6px;
}
.cita__head-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--elor-ink);
  margin: 0;
}
.cita__head-title em { font-style: italic; }

/* ====== Entrada escalonada (deleite al abrir cada pantalla) ====== */
@media (prefers-reduced-motion: no-preference) {
  .cita__head,
  .cita__intro,
  .cita__step,
  .citagift__hero,
  .citagift__body {
    animation: citaRise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .cita__intro { animation-delay: 0.06s; }
  .cita__step:nth-of-type(1) { animation-delay: 0.12s; }
  .cita__step:nth-of-type(2) { animation-delay: 0.18s; }
  .cita__step:nth-of-type(3) { animation-delay: 0.24s; }
  .cita__step:nth-of-type(4) { animation-delay: 0.30s; }
  .citagift__body { animation-delay: 0.1s; }
}
@keyframes citaRise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .pdp__cz-arrow {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .pdp__cz-mark-text {
    font-size: 14px;
  }
}
