
/* =========================================
   NEVINHA ENXOVAIS
   EXPERIENCIAS.CSS — VERSÃO 1.0

   Estilos das experiências interativas

   01. Estrutura compartilhada
   02. Cama posta interativa
   03. Monte seu enxoval
   04. Descubra seu estilo
   05. Atacado e Hotelaria
   06. Estados e interações
   07. Responsividade — tablets
   08. Responsividade — celulares
   09. Telas pequenas
   10. Acessibilidade

   Dependências:
   - style.css
   - index.html atualizado
========================================= */


/* =========================================
   01. ESTRUTURA COMPARTILHADA
========================================= */

.experience-section {
  position: relative;
  width: 100%;
  padding: 110px 0;
}

.experience-heading {
  max-width: 760px;
  margin: 0 auto 58px;
  text-align: center;
}

.experience-heading h2 {
  margin-bottom: 20px;
  color: var(--primary);
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.16;
}

.experience-heading > p {
  max-width: 620px;
  margin-inline: auto;

  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.experience-note {
  max-width: 700px;
  margin: 26px auto 0;

  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}


/* =========================================
   02. CAMA POSTA INTERATIVA
========================================= */

.interactive-room-section {
  background: var(--hero-background);
}

.interactive-room {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 75px);
}

/* ÁREA DA FOTOGRAFIA */

.room-image-container {
  position: relative;
  isolation: isolate;

  width: 100%;
  aspect-ratio: 5 / 4;

  overflow: hidden;
  border-radius: var(--radius);

  background: #e8e5df;
}

.room-image-container > img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition: transform 650ms cubic-bezier(.2, .7, .2, 1);
}

/* PONTOS INTERATIVOS */

.room-hotspot {
  position: absolute;
  z-index: 3;

  left: var(--hotspot-x, 50%);
  top: var(--hotspot-y, 50%);

  transform: translate(-50%, -50%);

  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);

  box-shadow:
    0 3px 16px rgba(0, 0, 0, 0.15),
    0 0 0 8px rgba(255, 255, 255, 0.18);

  cursor: pointer;

  transition:
    background var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.room-hotspot span {
  display: block;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.room-hotspot:hover,
.room-hotspot:focus-visible {
  background: var(--primary);
  color: var(--white);

  box-shadow:
    0 4px 20px rgba(16, 29, 61, 0.2),
    0 0 0 10px rgba(255, 255, 255, 0.3);
}

.room-hotspot:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 8px;
}

/* INFORMAÇÕES AO LADO DA CAMA */

.room-information {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.room-information h3 {
  max-width: 370px;
  margin-bottom: 20px;

  font-family: var(--font-heading);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.18;

  color: var(--primary);
}

.room-information > p {
  max-width: 390px;
  margin-bottom: 18px;

  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.room-information .room-instruction {
  margin-bottom: 30px;
  padding-left: 16px;

  border-left: 2px solid var(--primary);

  color: #555b65;
  font-size: 13px;
}


/* =========================================
   03. MONTE SEU ENXOVAL
========================================= */

.enxoval-section {
  background: var(--white);
}

.enxoval-builder {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
  align-items: start;
  gap: 30px;
}

/* PAINEL DE ESCOLHA */

.enxoval-selection {
  min-width: 0;
  padding: clamp(24px, 3.5vw, 44px);

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--white);
}

.enxoval-selection > h3 {
  margin-bottom: 25px;

  font-family: var(--font-heading);
  font-size: clamp(25px, 2.5vw, 32px);
  font-weight: 500;

  color: var(--primary);
}

/* ABAS DOS AMBIENTES */

.enxoval-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.enxoval-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  padding: 10px 22px;

  border: 1px solid var(--border);
  border-radius: 4px;

  background: var(--white);
  color: var(--primary);

  font-size: 13px;
  font-weight: 600;

  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.enxoval-tab:hover {
  border-color: var(--primary);
}

.enxoval-tab.is-active,
.enxoval-tab[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.enxoval-instruction {
  margin-bottom: 25px;

  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

/* LISTA DE PRODUTOS */

.enxoval-products {
  display: flex;
  flex-direction: column;
}

.enxoval-product,
.enxoval-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;

  min-width: 0;
  padding: 18px 0;

  border-bottom: 1px solid var(--border);
}

.enxoval-product:first-child,
.enxoval-item:first-child {
  border-top: 1px solid var(--border);
}

.enxoval-product-info,
.enxoval-item-info {
  min-width: 0;
}

.enxoval-product-name,
.enxoval-item-name {
  display: block;

  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.enxoval-product-description,
.enxoval-item-description {
  display: block;
  margin-top: 5px;

  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* CHECKBOX PERSONALIZADO */

.enxoval-product input[type="checkbox"],
.enxoval-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.enxoval-product label,
.enxoval-item label {
  cursor: pointer;
}

/* CONTROLE DE QUANTIDADE */

.enxoval-quantity,
.quantity-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 40px;

  border: 1px solid var(--border);
  border-radius: 4px;

  background: var(--white);
}

.enxoval-quantity button,
.quantity-control button {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  border: none;
  background: transparent;

  color: var(--primary);
  font-size: 18px;
}

.enxoval-quantity button:hover,
.quantity-control button:hover {
  background: var(--soft-background);
}

.enxoval-quantity input,
.quantity-control input {
  width: 45px;
  min-width: 0;
  height: 38px;

  padding: 0 4px;

  border: none;
  border-inline: 1px solid var(--border);
  border-radius: 0;

  background: var(--white);
  color: var(--primary);

  font-size: 13px;
  font-weight: 600;
  text-align: center;

  appearance: textfield;
  -moz-appearance: textfield;
}

.enxoval-quantity input::-webkit-inner-spin-button,
.enxoval-quantity input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* PAINEL DE RESUMO */

.enxoval-summary {
  position: sticky;
  top: calc(var(--header-height) + 24px);

  display: flex;
  flex-direction: column;

  min-width: 0;
  padding: clamp(24px, 3vw, 36px);

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--soft-background);
}

.enxoval-summary h3 {
  margin-bottom: 14px;

  font-family: var(--font-heading);
  font-size: 31px;
  font-weight: 500;

  color: var(--primary);
}

.enxoval-summary > p {
  margin-bottom: 25px;

  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.enxoval-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0;

  min-height: 75px;
}

.enxoval-summary-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;

  padding: 12px 0;
  border-bottom: 1px solid var(--border);

  font-size: 13px;
  line-height: 1.6;
}

.enxoval-summary-item strong {
  color: var(--primary);
  font-weight: 600;
}

.enxoval-summary-item span {
  color: var(--muted);
}

.enxoval-summary-list .empty-state {
  padding: 14px 0;
  font-size: 13px;
}

.enxoval-summary-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;

  margin-top: 22px;
  padding-top: 22px;

  border-top: 1px solid var(--border);
}

.enxoval-summary-footer > p {
  color: var(--muted);
  font-size: 13px;
}

.enxoval-summary-footer > p strong {
  color: var(--primary);
  font-size: 18px;
}

.enxoval-summary-footer .btn {
  width: 100%;
}

.enxoval-summary-footer .text-button {
  align-self: center;
  padding: 6px 12px;
}


/* =========================================
   04. DESCUBRA SEU ESTILO
========================================= */

.style-section {
  background: var(--soft-background);
}

.style-quiz {
  width: min(100%, 760px);
  margin-inline: auto;

  padding: clamp(26px, 5vw, 55px);

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--white);
  box-shadow: 0 14px 45px rgba(16, 29, 61, 0.035);
}

/* CABEÇALHO DO TESTE */

.style-quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 18px;
}

.style-quiz-header .section-eyebrow {
  margin-bottom: 0;
}

#style-progress-text {
  flex-shrink: 0;

  color: var(--muted);
  font-size: 12px;
}

/* BARRA DE PROGRESSO */

.style-progress {
  width: 100%;
  height: 4px;

  overflow: hidden;
  border-radius: 10px;

  background: var(--border);
}

#style-progress-bar {
  width: 0%;
  height: 100%;

  border-radius: inherit;
  background: var(--primary);

  transition: width 400ms ease;
}

/* ÁREA DAS PERGUNTAS */

.style-question-container {
  min-height: 200px;
  padding: 38px 0 26px;
}

.style-question-container h3 {
  margin-bottom: 16px;

  font-family: var(--font-heading);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 500;

  color: var(--primary);
}

.style-question-container > p {
  margin-bottom: 24px;

  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* OPÇÕES DE RESPOSTA */

.style-options,
.style-answer-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;

  margin-top: 25px;
}

.style-option,
.style-answer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;

  min-height: 70px;
  padding: 18px;

  border: 1px solid var(--border);
  border-radius: 4px;

  background: var(--white);
  color: var(--text);

  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;

  transition:
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
}

.style-option:hover,
.style-answer:hover {
  border-color: var(--primary);
  background: var(--soft-background);
}

.style-option.is-selected,
.style-option[aria-pressed="true"],
.style-answer.is-selected,
.style-answer[aria-pressed="true"] {
  border-color: var(--primary);
  background: #f1f3f7;
  color: var(--primary);
}

/* NAVEGAÇÃO DO TESTE */

.style-quiz-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;

  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* RESULTADO */

.style-result {
  padding-top: 32px;
}

.style-result h3 {
  margin-bottom: 18px;

  font-family: var(--font-heading);
  font-size: clamp(29px, 3vw, 38px);
  font-weight: 500;

  color: var(--primary);
}

.style-result > p {
  margin-bottom: 25px;

  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.style-result-products {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-bottom: 28px;
}

.style-result-products a,
.style-result-products span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 38px;
  padding: 8px 15px;

  border: 1px solid var(--border);
  border-radius: 4px;

  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.style-result-products a:hover {
  border-color: var(--primary);
  background: var(--soft-background);
}

.style-result .btn {
  margin-right: 10px;
  margin-bottom: 10px;
}


/* =========================================
   05. ATACADO E HOTELARIA
========================================= */

.business-section {
  padding: 110px 0;
  background: var(--white);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.business-card {
  display: flex;
  flex-direction: column;

  min-width: 0;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--white);
  overflow: hidden;

  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.business-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 29, 61, 0.055);
}

/* FOTOGRAFIAS */

.business-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;

  overflow: hidden;
  background: var(--soft-background);
}

.business-card-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition: transform 650ms cubic-bezier(.2, .7, .2, 1);
}

.business-card:hover .business-card-image img {
  transform: scale(1.035);
}

/* CONTEÚDO */

.business-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;

  padding: clamp(26px, 3.5vw, 42px);
}

.business-card-content h3 {
  margin-bottom: 20px;

  font-family: var(--font-heading);
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 500;

  color: var(--primary);
}

.business-card-content > p {
  max-width: 480px;
  margin-bottom: 28px;

  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.business-card-content .btn {
  margin-top: auto;
}


/* =========================================
   06. ESTADOS E INTERAÇÕES
========================================= */

/* Estados de carregamento */

.experience-loading {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 100px;
  padding: 30px;

  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Avisos e mensagens auxiliares */

.experience-feedback {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* Controles com foco visível */

.enxoval-tab:focus-visible,
.enxoval-quantity button:focus-visible,
.quantity-control button:focus-visible,
.style-option:focus-visible,
.style-answer:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}


/* =========================================
   07. RESPONSIVIDADE — TABLETS
========================================= */

@media (max-width: 1100px) {

  .experience-section,
  .business-section {
    padding: 90px 0;
  }

  .interactive-room {
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
    gap: 30px;
  }

  .enxoval-builder {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 20px;
  }

  .enxoval-selection,
  .enxoval-summary {
    padding: 25px;
  }
}


/* =========================================
   08. RESPONSIVIDADE — CELULARES
========================================= */

@media (max-width: 767px) {

  .experience-section,
  .business-section {
    padding: 75px 0;
  }

  .experience-heading {
    margin-bottom: 36px;
  }

  .experience-heading h2 {
    margin-bottom: 15px;
    font-size: clamp(31px, 8vw, 39px);
  }

  .experience-heading > p {
    font-size: 14px;
    line-height: 1.75;
  }

  /* CAMA POSTA */

  .interactive-room {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .room-image-container {
    aspect-ratio: 4 / 5;
  }

  .room-hotspot {
    width: 38px;
    height: 38px;

    box-shadow:
      0 3px 12px rgba(0, 0, 0, 0.14),
      0 0 0 6px rgba(255, 255, 255, 0.18);
  }

  .room-hotspot span {
    font-size: 21px;
  }

  .room-information h3 {
    font-size: 32px;
  }

  .room-information > p {
    font-size: 14px;
  }

  /* MONTE SEU ENXOVAL */

  .enxoval-builder {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .enxoval-selection,
  .enxoval-summary {
    padding: 24px 20px;
  }

  .enxoval-selection > h3 {
    font-size: 27px;
  }

  .enxoval-tabs {
    gap: 8px;
  }

  .enxoval-tab {
    flex: 1 1 90px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .enxoval-summary {
    position: static;
  }

  .enxoval-summary h3 {
    font-size: 28px;
  }

  .enxoval-product,
  .enxoval-item {
    gap: 12px;
  }

  .enxoval-product-name,
  .enxoval-item-name {
    font-size: 13px;
  }

  /* TESTE DE ESTILO */

  .style-quiz {
    padding: 26px 20px;
  }

  .style-quiz-header {
    align-items: flex-start;
  }

  .style-quiz-header .section-eyebrow {
    max-width: 160px;
    line-height: 1.5;
  }

  .style-question-container {
    min-height: 170px;
    padding: 30px 0 20px;
  }

  .style-question-container h3 {
    font-size: 28px;
  }

  .style-options,
  .style-answer-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .style-option,
  .style-answer {
    min-height: 58px;
    padding: 15px;
  }

  .style-quiz-actions {
    justify-content: stretch;
  }

  .style-quiz-actions .btn {
    flex: 1;
  }

  .style-result .btn {
    width: 100%;
    margin-right: 0;
  }

  /* ATACADO E HOTELARIA */

  .business-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .business-card-image {
    aspect-ratio: 4 / 3;
  }

  .business-card-content {
    padding: 28px 24px;
  }

  .business-card-content h3 {
    font-size: 32px;
  }

  .business-card-content > p {
    font-size: 14px;
  }

  .business-card-content .btn {
    width: 100%;
  }
}


/* =========================================
   09. TELAS MUITO PEQUENAS
========================================= */

@media (max-width: 360px) {

  .experience-section,
  .business-section {
    padding: 60px 0;
  }

  .experience-heading h2 {
    font-size: 30px;
  }

  .room-hotspot {
    width: 34px;
    height: 34px;
  }

  .enxoval-selection,
  .enxoval-summary,
  .style-quiz {
    padding: 22px 16px;
  }

  .enxoval-tabs {
    gap: 6px;
  }

  .enxoval-tab {
    padding: 9px 7px;
    font-size: 11px;
  }

  .enxoval-quantity button,
  .quantity-control button {
    width: 32px;
  }

  .enxoval-quantity input,
  .quantity-control input {
    width: 35px;
  }
}


/* =========================================
   10. ACESSIBILIDADE
========================================= */

@media (prefers-reduced-motion: reduce) {

  .room-image-container > img,
  .room-hotspot,
  #style-progress-bar,
  .business-card,
  .business-card-image img,
  .enxoval-tab,
  .style-option,
  .style-answer {
    animation: none !important;
    transition: none !important;
  }
}

/* Evita animações de hover em dispositivos
   que utilizam principalmente toque. */

@media (hover: none) {

  .business-card:hover,
  .room-hotspot:hover {
    transform: none;
  }

  .business-card:hover .business-card-image img {
    transform: none;
  }

  
/* =========================================
   AMBIENTE INTERATIVO — CONTROLES DE ZOOM
========================================= */

.room-zoom-layer {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  transform-origin: center center;
  will-change: transform;

  touch-action: pan-y;
}

.room-zoom-layer > img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.room-zoom-layer .room-hotspot {
  z-index: 3;
}

.room-image-container.is-zoomed {
  cursor: grab;
  touch-action: none;
}

.room-image-container.is-zoomed .room-zoom-layer {
  touch-action: none;
}

.room-image-container.is-dragging {
  cursor: grabbing;
}

.room-zoom-controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 10;

  display: flex;
  align-items: center;
  gap: 5px;

  padding: 5px;

  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 5px;

  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);

  backdrop-filter: blur(8px);
}

.room-zoom-controls button {
  display: grid;
  place-items: center;

  width: 35px;
  height: 35px;

  padding: 0;
  border: none;
  border-radius: 3px;

  background: transparent;
  color: var(--primary);

  font-family: var(--font-body);
  font-size: 21px;
  line-height: 1;

  transition: background 200ms ease;
}

.room-zoom-controls button:hover:not(:disabled) {
  background: var(--soft-background);
}

.room-zoom-controls button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .room-zoom-controls {
    right: 10px;
    bottom: 10px;
  }

  .room-zoom-controls button {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .room-zoom-layer {
    transition: none;
  }
}

}
