/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* Lista de presentes (CPT presente) */
.lista-presentes-grid {
  display: grid;
  grid-template-columns: repeat(var(--presente-colunas, 5), 1fr);
  gap: 30px;
}
.lista-presentes-item {
  text-align: left;
}
.lista-presentes-item__imagem {
  position: relative;
  margin-bottom: 13px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
}
.presente-checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  cursor: pointer;
}
.presente-checkbox input {
  position: absolute;
  opacity: 0;
  width: 28px;
  height: 28px;
  margin: 0;
  cursor: pointer;
}
.presente-checkbox__visual {
  display: block;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid #580002;
  border-radius: 4px;
  transition: background 0.15s ease;
}
.presente-checkbox input:checked + .presente-checkbox__visual {
  background: #580002;
}
.presente-checkbox input:checked + .presente-checkbox__visual::after {
  content: '';
  display: block;
  width: 8px;
  height: 14px;
  margin: 2px auto 0;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
}
.presente-checkbox input:focus-visible + .presente-checkbox__visual {
  outline: 2px solid #580002;
  outline-offset: 2px;
}
.lista-presentes-item__imagem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.lista-presentes-item__titulo {
  margin: 0 0 6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: #363029;
}
.lista-presentes-item__descricao {
  font-size: 14px;
  opacity: 0.8;
}
.lista-presentes-item__valor {
  margin: 6px 0 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: #363029;
}
.lista-presentes-item__botao {
  display: inline-block;
  padding: 10px 24px;
  background: #580002;
  color: #fff;
  border: 1px solid #580002;
  border-radius: 4px;
  font-family: 'Dancing Script', cursive;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lista-presentes-item__botao:hover,
.lista-presentes-item__botao:hover:not(:disabled),
.lista-presentes-item__botao:focus {
  background: #FFF9F5;
  color: #580002 !important;
  border-color: #580002;
}
@media (max-width: 767px) {
  .lista-presentes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .lista-presentes-grid {
    grid-template-columns: 1fr;
  }
}

/* Minicarrinho de presentes selecionados */
.presente-minicart {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
}
.presente-minicart[hidden] {
  display: none;
}
.presente-minicart__barra,
.presente-minicart__barra:hover {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFF9F5 !important;
  border: 1px solid #580002;
  color: #363029 !important;
  border-radius: 30px;
  padding: 10px 18px;
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(54, 48, 41, 0.2);
}
.presente-minicart__total,
.presente-minicart__barra:hover .presente-minicart__total {
  color: #580002 !important;
}
.presente-minicart__seta,
.presente-minicart__barra:hover .presente-minicart__seta {
  font-size: 10px;
  color: #580002 !important;
}
.presente-minicart__finalizar {
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(54, 48, 41, 0.2);
}
.presente-minicart__painel {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: 300px;
  max-height: 320px;
  overflow-y: auto;
  background: #FFF9F5;
  border: 1px solid #E2D9CE;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(54, 48, 41, 0.25);
  padding: 10px;
}
.presente-minicart__painel[hidden] {
  display: none;
}
.presente-minicart__lista {
  list-style: none;
  margin: 0;
  padding: 0;
}
.presente-minicart__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border-bottom: 1px solid #EEE3D8;
  font-size: 13px;
  color: #363029;
}
.presente-minicart__item:last-child {
  border-bottom: none;
}
.presente-minicart__item img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.presente-minicart__item-info {
  flex: 1;
}
.presente-minicart__remover,
.presente-minicart__remover:hover {
  background: none !important;
  border: none;
  color: #580002 !important;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
@media (max-width: 480px) {
  .presente-minicart {
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .presente-minicart__painel {
    width: 100%;
  }
}

/* Modal do presente (QR Code Pix + formulário) */
.presente-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.presente-modal[hidden] {
  display: none;
}
.presente-modal__fundo {
  position: absolute;
  inset: 0;
  background: rgba(54, 48, 41, 0.6);
}
.presente-modal__caixa {
  position: relative;
  background: #FFF9F5;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  padding: 50px 30px 30px 30px;
}
.presente-modal__fechar,
.presente-modal__fechar:hover {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none !important;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #363029 !important;
  z-index: 1;
}
.presente-modal__colunas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.presente-modal__coluna--pix {
  text-align: center;
}
.presente-modal__coluna--form {
  text-align: left;
  border-left: 1px solid #EEE3D8;
  padding-left: 30px;
}
.presente-modal__colunas--uma-coluna {
  grid-template-columns: 1fr;
}
.presente-modal__colunas--uma-coluna .presente-modal__coluna--form {
  border-left: none;
  padding-left: 0;
}
.presente-modal__coluna--form .wpcf7-form p {
  padding-bottom: 16px;
}
@media (max-width: 600px) {
  .presente-modal__colunas {
    grid-template-columns: 1fr;
  }
  .presente-modal__coluna--form {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #EEE3D8;
    padding-top: 20px;
  }
}
.presente-modal__titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: #363029;
  margin: 0 0 4px;
}
.presente-modal__itens {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  text-align: left;
  font-size: 13px;
  color: #363029;
}
.presente-modal__itens li {
  padding: 4px 0;
  border-bottom: 1px solid #EEE3D8;
}
.presente-modal__itens li:last-child {
  border-bottom: none;
}
.presente-modal__valor {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: #580002;
  margin: 0 0 16px;
}
.presente-modal__qr {
  max-width: 230px !important;
  width: 100%;
  height: auto;
}
.presente-modal__sem-pix {
  font-size: 14px;
  color: #580002;
}
.presente-modal__chave-wrap {
  display: flex;
  gap: 6px;
  margin: 12px 0 20px;
}
.presente-modal__chave {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
}
.presente-modal__copiar,
.presente-modal__copiar:hover,
.presente-modal__copiar:focus {
  padding: 8px 14px;
  border: 1px solid #580002;
  background: #fff !important;
  color: #580002 !important;
  border-radius: 4px;
  cursor: pointer;
}
.presente-modal__form {
  text-align: left;
}
.presente-modal__form p {
  margin-bottom: 12px;
}
#presente-modal label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: #363029;
}
#presente-modal input,
#presente-modal textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  margin-top: 8px;
}
.presente-modal__feedback {
  font-size: 13px;
  color: #580002;
  min-height: 18px;
}

#presente-modal .wpcf7-submit {
  border: 1px solid #580002;
  color: #580002;
  max-width: 100px;
}
#presente-modal .wpcf7-submit:hover,
#presente-modal .wpcf7-submit:focus {
  background: #580002;
  color: #FFF;
  max-width: 100px;
}
