/* ============================================================
   ZARTTE BRASÍLIA — modal.css  (modal de produto)
   ============================================================ */

/* Overlay */
.modal-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.aberto {
  opacity: 1; pointer-events: all;
}

/* Painel */
.modal {
  background: #fff;
  width: 100%; max-width: 800px; max-height: 90vh;
  overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
}
.modal-overlay.aberto .modal {
  transform: translateY(0);
}

/* Coluna da foto */
.modal__foto {
  background: #f5f5f5;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 32px; min-height: 360px;
  position: sticky; top: 0; align-self: start;
}
.modal__foto img {
  max-width: 100%; max-height: 380px;
  object-fit: contain;
}
.modal__foto-placeholder {
  width: 100%; height: 300px;
  display: flex; align-items: center; justify-content: center;
  color: #ccc; font-size: 0.8rem;
}

/* Coluna do conteúdo */
.modal__conteudo {
  padding: 40px 36px;
  display: flex; flex-direction: column; gap: 0;
}

.modal__cat {
  font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase;
  color: #999; margin-bottom: 8px; display: block;
}
.modal__nome {
  font-size: 1.6rem; font-weight: 700; color: #111;
  line-height: 1.2; margin-bottom: 16px;
}
.modal__desc {
  font-size: 0.88rem; color: #555; line-height: 1.75;
  margin-bottom: 24px; padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.modal__bloco { margin-bottom: 20px; }
.modal__bloco-titulo {
  font-size: 0.62rem; letter-spacing: 3px; text-transform: uppercase;
  color: #999; margin-bottom: 8px; display: block;
}
.modal__bloco-texto {
  font-size: 0.85rem; color: #444; line-height: 1.7;
}

/* CTA */
.modal__cta {
  display: flex; align-items: center; justify-content: space-between;
  background: #111; color: #fff;
  padding: 16px 24px; margin-top: auto; padding-top: 28px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; transition: background 0.2s;
  gap: 12px;
}
.modal__cta:hover { background: #333; }
.modal__cta svg { flex-shrink: 0; }

/* Fechar */
.modal__fechar {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border: none;
  background: rgba(0,0,0,0.08); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; border-radius: 2px; z-index: 2;
}
.modal__fechar:hover { background: rgba(0,0,0,0.15); }
.modal__fechar svg { color: #333; }

/* Mobile — bottom sheet */
@media (max-width: 640px) {
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal {
    grid-template-columns: 1fr; max-height: 88vh;
    border-radius: 0;
  }
  .modal__foto { min-height: 220px; padding: 28px; position: relative; }
  .modal__conteudo { padding: 28px 24px; }
}
