/* Salve este código como produto.css */
@import "/styles.css";

/* --- Wrapper da Página de Produto --- */
.product-page-wrapper {
  background-color: var(
    --green
  ); /* Usa a variável do seu site ou um fallback */
  padding: 120px 0;
}

/* --- Container Principal --- */
.product-container {
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 8px 8px 0px black;
  overflow: hidden;
  max-width: 1000px;
  width: 90%;
  margin: 0 auto;
}

/* --- Colunas de Imagem e Detalhes --- */
.product-image-gallery,
.product-details {
  flex: 1;
  padding: 40px;
  min-width: 300px;
}

.product-image-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
}

#main-product-image {
  max-width: 100%;
  border-radius: 8px;
}

/* --- Detalhes do Produto --- */
.product-details h1 {
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
}

.price {
  font-family: "Work Sans", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--blue, #3681ff);
  margin-bottom: 20px;
}

/* --- Opções de Variação --- */
.product-options {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.option-group label {
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.option-group select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #fff;
  cursor: pointer;
  font-family: "Work Sans", sans-serif;
}

/* --- Status do Estoque --- */
.stock-status {
  margin-bottom: 25px;
  font-weight: 600;
}
.status-in-stock {
  color: var(--green, #44c070);
}
.status-low-stock {
  color: var(--yellow, #fac50c);
}
.status-out-of-stock {
  color: var(--pink, #e03fa1);
}

/* --- Botões de Ação --- */
.action-buttons .btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
  text-decoration: none;
}

.action-buttons .btn-buy {
  background-color: var(--blue, #3681ff);
}
.action-buttons .btn-buy:hover {
  background-color: #2b68cc;
}

.action-buttons .btn-on-demand {
  background-color: #333;
}
.action-buttons .btn-on-demand:hover {
  background-color: #555;
}

.sold-out-message {
  font-weight: 700;
  color: var(--pink, #e03fa1);
  text-align: center;
  padding: 15px;
  background-color: #fdf2f8;
  border: 1px solid var(--pink, #e03fa1);
  border-radius: 6px;
}

.hidden {
  display: none;
}

/* --- Responsividade --- */
@media (max-width: 768px) {
  .product-container {
    flex-direction: column;
  }
  .product-details,
  .product-image-gallery {
    padding: 25px;
  }
  .product-details h1 {
    font-size: 1.8rem;
  }
}

/* Salve as alterações em produto.css */

/* --- (Estilos anteriores permanecem os mesmos) --- */

/* --- NOVOS ESTILOS PARA OPÇÕES DE VARIAÇÃO --- */
.option-group label {
  font-size: 0.9rem;
  margin-bottom: 12px;
  font-weight: 600;
  display: block; /* Garante que a label fique acima das opções */
}

.color-options,
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

/* Estilo das Caixas de Cor (Swatches) */
.color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background-color: #fff;
  cursor: pointer;
  padding: 3px;
  transition: all 0.2s ease-in-out;
}

.color-swatch:hover {
  border-color: #aaa;
}

.color-swatch.selected {
  border-color: var(--blue, #3681ff);
  border-width: 3px;
  transform: scale(1.1);
}

.color-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Estilo das Caixas de Tamanho */
.size-option {
  padding: 8px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.size-option:hover {
  background-color: #f0f0f0;
  border-color: #aaa;
}

.size-option.selected {
  background-color: var(--blue, #3681ff);
  border-color: var(--blue, #3681ff);
  color: #fff;
}

.size-option.disabled {
  background-color: #f9f9f9;
  color: #ccc;
  border-color: #eee;
  cursor: not-allowed;
  text-decoration: line-through;
} /* ========================================================================
   ATUALIZADO: ESTILOS DO MODAL DE ENCOMENDA (CORRIGIDO E MELHORADO)
   ======================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  border-radius: 12px;
  max-width: 500px;
  width: 95%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  /* NOVO: Layout flexível e altura máxima */
  display: flex;
  flex-direction: column;
  max-height: 90vh; /* Ocupa no máximo 90% da altura da tela */
}

/* --- Layout do Modal --- */
.modal-header {
  padding: 20px 30px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0; /* Não encolhe */
  position: relative;
}
.modal-header h2 {
  font-family: var(--font-title);
  margin: 0;
  color: var(--dark);
  font-size: 1.5rem;
}

.modal-body {
  padding: 25px 30px;
  /* MÁGICA ACONTECE AQUI: */
  overflow-y: auto; /* Adiciona scroll SÓ se o conteúdo for maior que o espaço */
  flex-grow: 1; /* Ocupa o espaço disponível */
}

.modal-footer {
  padding: 20px 30px;
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
  flex-shrink: 0; /* Não encolhe */
  text-align: right;
}

.modal-footer .btn {
  width: 100%;
}

.close-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 25px;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
}

/* --- Estilos do Conteúdo --- */
.order-summary {
  background-color: var(--offwhite);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 25px;
}
.order-summary p {
  margin: 5px 0;
  font-size: 0.95rem;
}
.order-summary .price {
  font-weight: 700;
  color: var(--blue);
  font-size: 1.1rem;
  margin-top: 10px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.form-group input[type="text"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

.pix-payment {
  margin-top: 25px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}
.pix-key-wrapper {
  display: flex;
  gap: 10px;
}
.pix-key-wrapper input {
  flex-grow: 1;
  background: #eee;
  font-weight: 600;
  border: 1px solid #ddd;
  color: var(--dark);
  padding: 6px;
  margin: 10px 0px;
}
#copy-pix-button {
  background: var(--dark);
  color: var(--blue);
  border: none;
  padding: 0 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.copy-feedback-hidden {
  display: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  margin-top: 8px;
}

/* MELHORIA: Estilo do input de arquivo */
input[type="file"] {
  display: none;
}
.file-upload-label {
  display: block;
  padding: 12px;
  background-color: #f0f0f0;
  border: 2px dashed #ccc;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.file-upload-label:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.file-upload-label span {
  pointer-events: none; /* Garante que o clique ative o input */
}

.delivery-info {
  margin-top: 25px;
  padding: 15px;
  background: #eef5ff;
  border-left: 4px solid var(--blue);
  font-size: 0.9rem;
}
.delivery-info p {
  margin: 0;
}

.back-to{
  padding: 30px 0px;
}