/* ============================================
   LULU SPACE - LISTA DE PRESENTES CSS
   Design: Elegante e Infantil
   ============================================ */

/* ============================================
   HEADER
   ============================================ */

.lista-header {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.lista-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-content {
    flex: 1;
}

.header-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.header-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 5px 0 0 0;
    font-weight: 300;
}

.header-back {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.header-back:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-3px);
}

/* ============================================
   MODAL NOME
   ============================================ */

.nome-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.nome-modal.hidden {
    display: none !important;
}

.nome-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f9 100%);
    border-radius: 25px;
    padding: 40px 30px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nome-modal-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d1b2e;
    margin: 0 0 15px 0;
    font-family: 'Playfair Display', serif;
}

.nome-modal-content p {
    font-size: 1rem;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.nome-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ff69b4;
    border-radius: 15px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.nome-input:focus {
    outline: none;
    border-color: #ff1493;
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.3);
    transform: scale(1.02);
}

.nome-button {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: #ffffff;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.nome-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.4);
}

.nome-button:active {
    transform: translateY(0);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.lista-main {
    padding: 40px 20px;
    background: linear-gradient(to bottom, #faf8f9, #ffffff, #faf8f9);
    min-height: calc(100vh - 100px);
}

/* ============================================
   SAUDAÇÃO (melhorada)
   ============================================ */
.saudacao-section{
  margin: 18px 0 28px;
}

.saudacao-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,105,180,0.22);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.saudacao-title{
  margin:0;
  font-size: 2.0rem;
  font-weight: 800;
  color:#2d1b2e;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.2px;
}

.alterar-nome-btn{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,20,147,0.25);
  background: rgba(255,20,147,0.10);
  color:#ff1493;
  cursor:pointer;
  font-weight: 900;
  transition: transform .2s ease, background .2s ease, filter .2s ease;
}

.alterar-nome-btn i{
  font-size: 14px;
}

.alterar-nome-btn span{
  font-size: 0.95rem;
}

.alterar-nome-btn:hover{
  background: rgba(255,20,147,0.16);
  transform: translateY(-1px);
  filter: brightness(1.02);
}

@media (max-width: 520px){
  .saudacao-title{ font-size: 1.7rem; }
  .alterar-nome-btn{ width: 100%; justify-content:center; }
}

/* ============================================
   SEPARADORES
   ============================================ */

.separador-bonito {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    opacity: 0.8;
}

.separador-linha {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, #ff69b4, transparent);
}

.separador-icon {
    font-size: 1.8rem;
    animation: bounce 2s infinite;
}

/* ============================================
   MENSAGEM
   ============================================ */

.mensagem-section {
    margin: 30px 0;
}

.mensagem-card {
    background: linear-gradient(135deg, #fff5f9 0%, #ffe6f0 100%);
    border-left: 5px solid #ff69b4;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(255, 105, 180, 0.1);
}

.mensagem-destaque {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d1b2e;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.mensagem-subtexto {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
    font-weight: 300;
}

/* ============================================
   TÍTULO LISTA
   ============================================ */

.lista-title-section {
    text-align: center;
    margin: 50px 0 40px 0;
}

.lista-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d1b2e;
    margin: 0 0 10px 0;
    font-family: 'Playfair Display', serif;
}

.lista-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    font-weight: 300;
}

/* ============================================
   GRID DE PRESENTES
   ============================================ */

.presentes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.presente-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid rgba(255, 105, 180, 0.1);
}

.presente-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 105, 180, 0.2);
    border-color: rgba(255, 105, 180, 0.3);
}

.presente-imagem {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe6f0 0%, #ffccdd 100%);
}

.imagem-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 105, 180, 0.3);
    transition: all 0.3s ease;
}

.presente-card:hover .imagem-placeholder {
    transform: scale(1.1);
}

.presente-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.presente-nome {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d1b2e;
    margin: 0 0 8px 0;
}

.presente-descricao {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
    flex: 1;
}

.presente-valor {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff69b4;
    margin: 0 0 15px 0;
}

.presente-btn {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
}

.presente-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.4);
}

.presente-btn:active {
    transform: scale(0.98);
}

/* ============================================
   FOOTER
   ============================================ */

.footer-lista {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fff5f9 0%, #ffe6f0 100%);
    border-radius: 20px;
    margin-top: 40px;
}

.footer-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d1b2e;
    margin: 0 0 10px 0;
}

.footer-subtext {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    font-weight: 300;
}


/* ============================================
   HEADER 
   ============================================ */
/* ===== Header actions bonito (2 botões) ===== */
.header-actions-compact{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  margin-top: 10px;
}

.header-link-pill{
  background: rgba(255,255,255,0.22);
  color:#fff;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-width: 190px;   /* deixa os dois com cara de “par” */
  height: 44px;       /* mesma altura */
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.header-link-pill i{
  font-size: 16px;
  opacity: 0.95;
}

.header-link-pill:hover{
  background: rgba(255,255,255,0.30);
  transform: translateY(-2px);
}

.header-back-center{
  display:flex;
  justify-content:center;
  align-items:center;
  margin: 12px auto 0;
  width: fit-content;
}

/* Mobile: ocupa a largura e fica bem alinhado */
@media (max-width: 520px){
  .header-actions-compact{
    gap:10px;
    padding: 0 8px;
  }
  .header-link-pill{
    min-width: 0;
    flex: 1;
  }
}


.badge{
  background:#ffffff;
  color:#ff1493;
  font-weight:800;
  border-radius:999px;
  padding:2px 8px;
  font-size:0.8rem;
  line-height:1.2;
}

/* ===== Botão remover item do carrinho (o X visível) ===== */
.cart-remove{
  background: #ff1493;
  color: #fff;
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(255, 20, 147, 0.25);
}
.cart-remove:hover{
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Botões .header-link dentro dos modais (fundo claro) */
.nome-modal-content .header-link{
  background: rgba(255, 105, 180, 0.12);
  color: #ff1493;
  border: 1px solid rgba(255, 105, 180, 0.35);
  backdrop-filter: none;
}

.nome-modal-content .header-link:hover{
  background: rgba(255, 105, 180, 0.18);
  transform: translateY(-1px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .lista-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .header-title {
        font-size: 1.6rem;
    }

    .header-back {
        width: 100%;
        justify-content: center;
    }

    .saudacao-title {
        font-size: 2rem;
    }

    .alterar-nome-btn {
        position: static;
        margin-top: 15px;
    }

    .presentes-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .lista-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .lista-header {
        padding: 20px 16px;
    }

    .header-title {
        font-size: 1.4rem;
    }

    .header-subtitle {
        font-size: 0.9rem;
    }

    .saudacao-title {
        font-size: 1.6rem;
    }

    .presentes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .presente-imagem {
        height: 150px;
    }

    .imagem-placeholder {
        font-size: 3rem;
    }

    .presente-nome {
        font-size: 1.1rem;
    }

    .presente-valor {
        font-size: 1.3rem;
    }

    .lista-title {
        font-size: 1.6rem;
    }

    .lista-subtitle {
        font-size: 1rem;
    }

    .mensagem-card {
        padding: 20px;
    }

    .mensagem-destaque {
        font-size: 1.1rem;
    }

    .mensagem-subtexto {
        font-size: 0.95rem;
    }

    .separador-bonito {
        gap: 15px;
        margin: 30px 0;
    }

    .separador-icon {
        font-size: 1.5rem;
    }
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}


/* ============================================
   MODAL CARRINHO (SEM INLINE)
   ============================================ */

#carrinho-modal.nome-modal{
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
}

.carrinho-content{
  max-width: 520px;
  width: 100%;
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fff7fb 100%);
  border: 1px solid rgba(255, 105, 180, 0.25);
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}

/* título e texto */
.carrinho-content h2{
  margin: 0 0 6px 0;
  font-size: 1.35rem;
  font-weight: 900;
  color: #2d1b2e;
}

.carrinho-content p{
  margin: 0 0 14px 0;
  color: #6a4a62;
  font-weight: 500;
}

/* lista dos itens */
.carrinho-itens{
  max-height: 46vh;
  overflow: auto;
  padding-right: 6px;
}

/* footer total + pagar */
.carrinho-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 105, 180, 0.22);
}

.carrinho-total{
  font-weight: 900;
  color: #2d1b2e;
}

.carrinho-total #carrinho-total{
  color: #ff1493;
}

/* botão pagar */
.carrinho-pagar{
  width: auto;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
  border: 0;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(255, 20, 147, 0.25);
  transition: transform .2s ease, filter .2s ease;
  white-space: nowrap;
}

.carrinho-pagar:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
}

/* botão continuar escolhendo (sem header-link) */
.carrinho-continuar{
  margin-top: 12px;
  width: 100%;
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 20, 147, 0.25);
  background: rgba(255, 20, 147, 0.10);
  color: #ff1493;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.carrinho-continuar:hover{
  background: rgba(255, 20, 147, 0.16);
  transform: translateY(-1px);
}

/* mobile */
@media (max-width: 520px){
  .carrinho-content{
    padding: 18px;
    border-radius: 18px;
  }
  .carrinho-itens{
    max-height: 52vh;
  }
  .carrinho-footer{
    flex-direction: column;
    align-items: stretch;
  }
  .carrinho-pagar{
    width: 100%;
  }
}

/* ============================================
   FILTROS (categoria + preço)
   ============================================ */
.filtros-section{
  margin: 12px 0 22px;
}

.filtros-wrap{
  display:flex;
  gap:12px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
}

.filtro{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.60);
  border: 1px solid rgba(255,105,180,0.25);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.filtro i{
  color:#ff1493;
  font-size: 14px;
}

.filtro select{
  border: 0;
  outline: none;
  background: transparent;
  font-weight: 800;
  color:#2d1b2e;
  cursor:pointer;
  padding-right: 6px;
}

.filtro-vazio{
  margin-top: 12px;
  text-align:center;
  font-weight: 800;
  color:#6a4a62;
  background: rgba(255,20,147,0.08);
  border: 1px dashed rgba(255,20,147,0.25);
  padding: 12px;
  border-radius: 16px;
}

.hidden{ display:none !important; }

/* Modal de compras: limita altura do conteúdo */
#compras-modal .nome-modal-content{
  max-height: 80vh;          /* não deixa estourar a tela */
  overflow: hidden;          /* impede rolagem do modal inteiro */
  display: flex;
  flex-direction: column;
}

/* A área de resultados vira uma "lista" com scroll */
#compras-resultado{
  margin-top: 16px;
  overflow-y: auto;
  max-height: 45vh;          /* ajusta conforme preferir */
  padding-right: 6px;        /* evita texto encostar na barra */
}
