/* ===================================================================
   PRECIOSO DESIGN — STYLE.CSS (VERSÃO FINAL E CORRIGIDA)
   - Removidas duplicatas e regras antigas.
   - Layout da página do carrinho e modal ajustados.
   =================================================================== */

/* Paleta / Vars */
:root {
  --roxo-suave: #A95FC6;
  --amarelo-pastel: #FFE082;
  --fundo: #FFF7FB;
  --texto: #333;
  --texto-suave: #666;
  --whatsapp-green: #25D366;
  --borda-suave: #eee;
}

/* Reset / base */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: var(--fundo); color: var(--texto); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.sidebar-open { overflow: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; width: 100%; }
section { padding: 60px 20px; }

/* Header */
header { background: var(--roxo-suave); color: #fff; padding: 0px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,.1); }
.header-content { display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo { height: 87px; }


/* ===============================
   CARRINHO DO HEADER — PADRÃO
   =============================== */

/* Escondido em TODAS as páginas */
header .cart-icon-container {
  display: none;
  position: relative;
  cursor: pointer;
  font-size: 24px;
  color: #fff;
}


/* Visível SOMENTE no index */
.home-page header .cart-icon-container {
  display: flex;
  align-items: center;
}


.header-content nav .nav-links { list-style: none; display: flex; gap: 20px; align-items: center; }
.header-content nav .nav-links a { color: #fff; text-decoration: none; font-weight: 600; padding: 5px 10px; border-radius: 5px; transition: .3s; }
.header-content nav .nav-links a:hover,
.header-content nav .nav-links .active { color: var(--amarelo-pastel); background: rgba(255,255,255,.1); }



/* Toggle (hambúrguer) */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; z-index: 2105; padding: 6px; border-radius: 6px; }
.menu-toggle span { width: 28px; height: 3px; background: #fff; margin: 4px 0; border-radius: 2px; transition: .3s; }

/* ===============================
   MENU MOBILE — ESTILO APP
   =============================== */

#menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease;
}

#menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Bottom Sheet */
#mobile-menu {
  position: fixed;
  left: 0;
  bottom: 0;

  width: 100%;
  max-height: 85vh;

  background: linear-gradient(
    135deg,
    rgba(169, 95, 198, 0.65),
    rgba(214, 138, 221, 0.45)
  );

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-radius: 22px 22px 0 0;
  box-shadow: 0 -15px 40px rgba(0,0,0,.45);

  z-index: 2102;
  padding: 20px 0 25px;

  display: flex;
  flex-direction: column;
  overflow-y: auto;

  transform: translateY(100%);
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}

#mobile-menu.open {
  transform: translateY(0);
}

/* Indicador de arraste */
#mobile-menu::before {
  content: "";
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  margin: 8px auto 16px;
}

/* Links */
#mobile-menu .nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}

#mobile-menu .nav-links li {
  width: 100%;
}

#mobile-menu .nav-links a {
  padding: 18px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;

  display: flex;
  align-items: center;

  border-bottom: 1px solid rgba(255,255,255,0.18);
  transition: background .3s, transform .3s;
}

#mobile-menu .nav-links a:hover {
  background: rgba(255,255,255,0.2);
  transform: translateX(6px);
}

/* Botão fechar */
#mobile-menu .nav-close-btn {
  align-self: center;
  margin-top: 12px;

  width: 50px;
  height: 50px;
  border-radius: 50%;

  background: rgba(255,255,255,0.2);
  border: none;

  color: #fff;
  font-size: 34px;
  cursor: pointer;

  transition: background .3s, transform .3s;
}

#mobile-menu .nav-close-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

/* Toggle */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }


    /* Carrinho do header apenas no index (mobile) */
  .home-page header .cart-icon-container {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .header-content nav .nav-links {
    display: none !important;
  }
}


/* Botões */
.btn { display: inline-block; background: var(--amarelo-pastel); color: #000; padding: 12px 30px; border: 0; border-radius: 30px; text-decoration: none; font-weight: 700; transition: .3s; cursor: pointer; font-family: 'Poppins', sans-serif; text-align: center; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 10px rgba(0,0,0,.15); }
.btn.btn-grande { padding: 15px 40px; font-size: 1.1em; }
.btn-whatsapp { background: var(--whatsapp-green); color: #fff; }
.btn-whatsapp:hover { background: #1ebe5b; }
.btn-add-to-cart { background: var(--roxo-suave); color: #fff; }
.btn-add-to-cart:hover { background: #934db0; }
.btn:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }

/* Carrinho Lateral (Painel) */
.cart-icon-container { position: relative; cursor: pointer; font-size: 24px; color: #fff; }
.cart-count { position: absolute; top: -8px; right: -5px; background: var(--amarelo-pastel); color: #000; font-size: 12px; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cart-sidebar { position: fixed; top: 0; right: -100%; width: 100%; max-width: 400px; height: 100%; background: #fff; box-shadow: -5px 0 15px rgba(0,0,0,.15); z-index: 2200; transition: right .4s ease-in-out; display: flex; flex-direction: column; }
.cart-sidebar.open { right: 0; }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--borda-suave); }
.close-cart-btn { background: none; border: none; font-size: 28px; cursor: pointer; }
.cart-items { flex-grow: 1; overflow-y: auto; padding: 10px 20px; }
.cart-item { display: flex; align-items: center; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; margin-right: 15px; }
.cart-item-info { flex-grow: 1; }
.remove-item-btn { background: none; border: none; color: #ff4d4d; cursor: pointer; font-size: 20px; }
.cart-footer { padding: 20px; border-top: 1px solid var(--borda-suave); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.2em; font-weight: 700; margin-bottom: 20px; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 2150; opacity: 0; visibility: hidden; transition: opacity .4s ease; }
.cart-overlay.show { opacity: 1; visibility: visible; }
.cart-empty-message { text-align: center; padding-top: 50px; }
.cart-empty-message p { margin-bottom: 20px; font-size: 1.1em; }

/* Conteúdo Geral e Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-top: 30px; }
.card { background: #fff; border-radius: 15px; border: 1px solid var(--borda-suave); box-shadow: 0 2px 10px rgba(0,0,0,.05); display: flex; flex-direction: column; text-align: center; transition: .3s; position: relative; overflow: hidden; }
.card a { text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-5px); box-shadow: 0 4px 12px rgba(0,0,0,.10); }
.card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .3s ease; }
.card a:hover img { transform: scale(1.05); }
.card h3 { padding: 15px 15px 5px; font-size: 1.2em; color: var(--roxo-suave); min-height: 58px; }
.card p { padding: 0 15px 15px; font-size: .95em; color: var(--texto-suave); flex-grow: 1; }
.card .preco-produto { font-size: 1.2em; font-weight: 600; color: var(--texto); padding-bottom: 10px; }
.card .card-actions { padding: 0 15px 20px; }
.banner { padding: 100px 20px; background: linear-gradient(to right, var(--roxo-suave), #d68add); color: #fff; text-align: center; }
.contato, .sobre, .politica, .faq, .promocoes, .produtos, .feedbacks, .cta { text-align: center; }
h1, h2 { color: var(--roxo-suave); }
h1 { font-size: 2.2em; margin-bottom: 10px; }
h2 { font-size: 2em; margin-bottom: 20px; }
.banner h1 { color: #fff; }
section > .container > p { font-size: 1.1em; margin-bottom: 30px; max-width: 700px; margin-inline: auto; }
.feedbacks .card { background: #f9f2fd; }
.cta { background: var(--roxo-suave); color: #fff; }
.cta h1, .cta h2 { color: #fff; }
.cta .btn { background: #fff; color: var(--roxo-suave); }
.filtros { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.filtro-btn { background: #fff; color: var(--roxo-suave); font-weight: 600; border: 1px solid var(--roxo-suave); padding: 10px 20px; border-radius: 25px; }
.filtro-btn.ativo, .filtro-btn:hover { background: var(--roxo-suave); color: #fff; }
.selo-promocao { position: absolute; top: 10px; left: -30px; background: var(--amarelo-pastel); color: #333; padding: 5px 30px; font-weight: 700; font-size: 0.9em; transform: rotate(-45deg); box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
/* Substitua a regra antiga por esta */
.preco-produto .preco-antigo,
.preco-destaque .preco-antigo {
    text-decoration: line-through;
    color: #999;
    font-size: 0.8em;
    margin-right: 8px;
}
/* Página de Detalhe do Produto */
#detalhe-produto-container { padding: 40px 0 60px; }
.produto-detalhe-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.produto-imagem-container img { width: 100%; border-radius: 15px; box-shadow: 0 5px 25px rgba(0,0,0,.08); aspect-ratio: 1/1; object-fit: cover; }
.produto-info h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); text-align: left; line-height: 1.2; }
.produto-info .preco-destaque { font-size: clamp(1.7rem, 4vw, 2.2rem); font-weight: 600; margin: 10px 0 25px; text-align: left; color: var(--roxo-suave); }
.produto-info .info-subtitle { font-size: 1.2em; font-weight: 600; margin-bottom: 15px; text-align: left; border-bottom: 2px solid var(--borda-suave); padding-bottom: 8px; }
.produto-info p { line-height: 1.7; text-align: left; color: var(--texto-suave); }
.detalhes-produto-wrapper { margin-top: 30px; }
.variacoes-container { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 30px; }
.variacao-item { cursor: pointer; text-align: center; border: 2px solid #ddd; border-radius: 10px; padding: 5px; transition: .3s; position: relative; }
.variacao-item.selected { border-color: var(--roxo-suave); box-shadow: 0 0 10px rgba(169,95,198,.3); transform: scale(1.05); }
.variacao-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.variacao-item span { display: block; font-size: .9em; margin-top: 5px; color: var(--texto-suave); }
.compra-actions { display: flex; flex-direction: column; gap: 20px; }
.quantity-selector { display: flex; align-items: center; }
.quantity-selector button { width: 40px; height: 40px; border: 1px solid #ccc; background: #fff; font-size: 1.5em; cursor: pointer; border-radius: 50%; }
.quantity-selector input { width: 60px; height: 40px; text-align: center; border: 1px solid #ccc; border-left: none; border-right: none; font-size: 1.2em; -moz-appearance: textfield; }
.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.produtos-relacionados { background: #fdfcff; padding-top: 50px; padding-bottom: 70px; border-top: 1px solid var(--borda-suave); }
.link-voltar { display: inline-block; margin-bottom: 25px; font-weight: 600; color: var(--texto-suave); text-decoration: none; transition: color .3s; }
.link-voltar:hover { color: var(--roxo-suave); }
@media (max-width: 992px) { .produto-detalhe-grid { gap: 30px; } }
@media (max-width: 768px) {
  .produto-detalhe-grid { grid-template-columns: 1fr; }
  .produto-info h1, .produto-info .preco-destaque, .produto-info .info-subtitle, .produto-info p { text-align: center; }
  .variacoes-container { justify-content: center; }
  .compra-actions { align-items: center; }
  .compra-actions .btn-add-to-cart { width: 100%; max-width: 400px; }
}

/* Página de Personalização */
.personalizar { text-align: center; }
.progress { display: flex; justify-content: space-between; margin: 30px 0; border-bottom: 2px solid #ddd; }
.progress span { flex: 1; text-align: center; padding: 10px; font-weight: 600; color: #aaa; position: relative; }
.progress span::before { content: attr(data-icon); font-size: 20px; display: block; margin-bottom: 5px; }
.progress span.active { color: var(--roxo-suave); border-bottom: 3px solid var(--roxo-suave); }
.step { display: none; }
.step.active { display: block; animation: fadeIn .5s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.step h2 { margin-top: 20px; }
.personalizar form select, .personalizar form textarea { width: 100%; max-width: 500px; padding: 12px; font-size: 1em; border-radius: 8px; border: 1px solid #ccc; margin: 0 auto 20px; display: block; }
.visual-preview { margin: 20px auto; }
#modelo-preview img { max-width: 200px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.carrossel { display: flex; gap: 15px; justify-content: center; overflow-x: auto; padding: 10px; }
.carrossel-item { cursor: pointer; text-align: center; border: 2px solid #ddd; border-radius: 10px; padding: 5px; transition: .3s; }
.carrossel-item.tema-selecionado { border-color: var(--roxo-suave); box-shadow: 0 0 10px rgba(169,95,198,.5); }
.carrossel-item img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; }
.carrossel-item span { display: block; font-size: .9em; margin-top: 5px; color: #555; }
.buttons { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.btn.voltar { background: var(--borda-suave); color: #555; }
.alert-box { max-width: 500px; margin: 15px auto; background: #fff3cd; padding: 15px; border-radius: 8px; color: #856404; }
.confirmation { display: none; text-align: center; color: var(--roxo-suave); font-weight: 600; margin-top: 20px; }

/* Página de Contato */
.contato .grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; text-align: left; align-items: flex-start; }
.contato-form form { display: flex; flex-direction: column; gap: 15px; }
.contato-form label { font-weight: 600; margin-bottom: -5px; }
.contato-form input, .contato-form textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; font-family: 'Poppins', sans-serif; font-size: 1em; }
.contato-form input:focus, .contato-form textarea:focus { border-color: var(--roxo-suave); box-shadow: 0 0 5px rgba(169,95,198,.5); outline: none; }
.contato-info { background: #f9f2fd; padding: 30px; border-radius: 15px; }
.contato-info h3 { margin-bottom: 15px; }
.contato-info a { color: var(--roxo-suave); text-decoration: none; }
.contato-info a:hover { text-decoration: underline; }
@media (max-width: 992px) { .contato .grid { grid-template-columns: 1fr; } .contato-info { margin-top: 20px; } }

@media (max-width: 768px) {
  /* Removemos o fundo branco, a borda e a sombra do container externo */
  .pesquisa-container {
    position: sticky;
    top: 70px;
    z-index: 1200;
    background: transparent; /* Fundo transparente */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 10px 15px;
    margin: 0;
    border-bottom: none; /* Remove a linha debaixo */
  }

  /* Estilizamos apenas o campo de busca arredondado */
  .pesquisa-container input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid var(--borda-suave);
    background: #fff; /* O branco fica só dentro do campo */
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Sombra leve para dar profundidade */
    outline: none;
  }
}
/* Utilitários (Toast, Topo, FAB) */
.toast-notification { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); background: var(--whatsapp-green); color: #fff; padding: 15px 25px; border-radius: 50px; font-weight: 700; box-shadow: 0 4px 15px rgba(0,0,0,.2); z-index: 2000; transition: bottom .5s ease; }
.toast-notification.show { bottom: 30px; }
#btnTopo { position: fixed; bottom: 36px; right: 20px; display: none; background: var(--roxo-suave); color: #fff; border: 0; border-radius: 50%; width: 50px; height: 50px; font-size: 24px; cursor: pointer; box-shadow: 0 4px 8px rgba(0,0,0,.3); z-index: 999; line-height: 50px; text-align: center; }
#btnTopo:hover { transform: scale(1.1); }
.cart-fab-container { position: fixed; bottom: 90px; right: 20px; z-index: 998; width: 60px; height: 60px; background: var(--roxo-suave); border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,.25); display: none; align-items: center; justify-content: center; transition: transform .3s ease; cursor: pointer; }
@media (max-width: 768px) {
  .cart-fab-container { display: flex; }
  header .cart-icon-container { display: none; }
}
.cart-fab-container:hover { transform: scale(1.1); }
.cart-fab-container .fas.fa-shopping-cart { font-size: 24px; color: #fff; }
.cart-fab-container .cart-count { top: -5px; right: -5px; width: 22px; height: 22px; font-size: 11px; border: 2px solid #fff; }

/* Estilos para a Página de Carrinho (VERSÃO CORRIGIDA E REFINADA) */
.carrinho-page { padding: 40px 20px 60px; }
.carrinho-page h1 { text-align: center; margin-bottom: 40px; display: flex; align-items: center; justify-content: center; gap: 15px; }
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: flex-start; }
.cart-table-header { display: grid; grid-template-columns: 3fr 1.5fr 1fr 0.5fr; gap: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--borda-suave); color: var(--texto-suave); font-weight: 600; text-transform: uppercase; font-size: 0.9em; }
.header-qty, .header-subtotal { text-align: center; }
.cart-page-item { display: grid; grid-template-columns: 3fr 1.5fr 1fr 0.5fr; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--borda-suave); }
.cart-page-item:last-child { border-bottom: none; }
.item-product { display: flex; align-items: center; gap: 15px; }
.item-product img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--borda-suave); }
.item-product-info h3 { font-size: 1.1em; margin-bottom: 5px; }
.item-product-info p { color: var(--texto-suave); font-size: 0.9em; }
.item-quantidade { display: flex; align-items: center; justify-content: center; }
.item-quantidade input { width: 45px; text-align: center; border: 1px solid #ccc; height: 40px; font-size: 1.1em; -moz-appearance: textfield; }
.item-quantidade input::-webkit-outer-spin-button, .item-quantidade input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.item-quantidade button { width: 40px; height: 40px; border: 1px solid #ccc; background: transparent; cursor: pointer; font-size: 1.5em; line-height: 1; }
.item-quantidade button:first-child { border-radius: 8px 0 0 8px; }
.item-quantidade button:last-child { border-radius: 0 8px 8px 0; }
.item-quantidade input { border-left: none; border-right: none; }
.item-subtotal { text-align: center; font-weight: 600; font-size: 1.1em; }
.item-remover { text-align: right; }
.item-remover .remove-item-btn { font-size: 24px; }
.cart-summary { background: var(--fundo); padding: 30px; border-radius: 15px; position: sticky; top: 100px; }
.cart-summary h2 { text-align: center; margin-bottom: 20px; }
.summary-total { display: flex; justify-content: space-between; font-size: 1.5em; font-weight: 700; margin-bottom: 25px; }
.cart-summary .btn { width: 100%; padding: 15px; font-size: 1.1em; }
@media (max-width: 992px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; margin-top: 30px; }
}
@media (max-width: 768px) {
  .cart-table-header { display: none; }
  .cart-page-item { grid-template-columns: 1fr 1fr; grid-template-areas: "product product" "qty subtotal" "remove remove"; gap: 20px; }
  .item-product { grid-area: product; }
  .item-quantidade { grid-area: qty; justify-content: flex-start; }
  .item-subtotal { grid-area: subtotal; text-align: right; }
  .item-remover { grid-area: remove; text-align: left; }
}

/* Modal de Confirmação (VERSÃO CORRIGIDA E REFORÇADA) */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px); }
.modal-content { background: #fff; padding: 30px 40px; border-radius: 15px; max-width: 500px; width: 100%; position: relative; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.2); animation: fadeInModal 0.3s ease; }
@keyframes fadeInModal { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.modal-content h2 { margin-bottom: 10px; color: var(--roxo-suave); }
.modal-content p { margin-bottom: 25px; color: var(--texto-suave); }
.close-modal-btn { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 28px; cursor: pointer; color: #aaa; }
.modal-summary { text-align: left; margin-bottom: 30px; background: var(--fundo); padding: 15px; border-radius: 8px; }
.modal-summary ul { list-style: none; padding: 0; margin: 0; }
.modal-summary li { padding: 5px 0; border-bottom: 1px solid var(--borda-suave); }
.modal-summary li:last-child { border-bottom: none; }
.modal-total { text-align: right; margin-top: 15px; font-size: 1.2em; }
.modal-actions { display: flex; justify-content: center; gap: 15px; }
.btn.btn-secondary { background: #e0e0e0; color: #333; }
.btn.btn-secondary:hover { background: #ccc; }

/* Rodapé */
footer { padding: 40px 20px; margin-top: 40px; background: #333; color: #fff; text-align: center; }
.footer-content { max-width: 1200px; margin: 0 auto; }
.social-icons { margin-bottom: 20px; }
.social-icons a { color: #fff; font-size: 24px; margin: 0 10px; transition: color 0.3s; }
.social-icons a:hover { color: var(--amarelo-pastel); }
.footer-content p { font-size: 0.9em; color: #ccc; }


/* ===== [COMPLEMENTO CSS] suporte à conexão com produtos.js ===== */
.file-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:10px 0 5px}
.status-pill{display:inline-flex;align-items:center;gap:6px;background:#eef;border:1px solid #cfe3ff;color:#334;padding:6px 10px;border-radius:999px;font-size:.9em}
#file-preview{width:100%;min-height:180px;background:#2d333b;color:#cdd9e5;font-family:monospace;padding:12px;border-radius:8px;border:none;white-space:pre;overflow:auto}
.btn-sec{background:#eee}
.btn-roxo{background:var(--roxo-suave);color:#fff}
.helper{font-size:.9em;color:#555;margin-top:8px}
.divider{margin:20px 0;border:0;border-top:1px solid #f0f0f0}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.faq-card {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--borda-suave);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  font-size: 1.05em;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--roxo-suave);
}

.faq-question i {
  transition: transform .3s;
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  color: var(--texto-suave);
}





/* ===== SOBRE ===== */
.grid-sobre {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.sobre-item {
  background: #fff;
  padding: 30px 25px;
  border-radius: 15px;
  border: 1px solid var(--borda-suave);
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}

.sobre-item i {
  font-size: 32px;
  color: var(--roxo-suave);
  margin-bottom: 15px;
}

.sobre-item h3 {
  margin-bottom: 10px;
}

.sobre-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 15px rgba(0,0,0,.08);
}

.historia {
  margin-top: 60px;
  background: #fff;
  padding: 35px;
  border-radius: 15px;
  border: 1px solid var(--borda-suave);
  text-align: left;
}

.historia h2 {
  text-align: center;
  margin-bottom: 20px;
}


/* =========================================================
   LOJA — UX MOBILE (BUSCA + CATEGORIAS)
========================================================= */

@media (max-width: 768px) {

  /* Barra de busca flutuante */
  .pesquisa-container {
    position: sticky;
    top: 70px; /* abaixo do header */
    z-index: 1200;
    background: rgba(rgba(255,255,255,.1));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 12px;
    margin: 0 -15px 12px;
    border-bottom: 1px solid rgba(0,0,0,.08);
  }

  .pesquisa-container input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 999px;
    border: 1px solid var(--borda-suave);
    font-size: 1rem;
  }

  /* Categorias em scroll horizontal */
  .filtros {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 12px 14px;
    margin: 0 -15px 10px;
    scrollbar-width: none;
  }

  .filtros::-webkit-scrollbar {
    display: none;
  }

  .filtro-btn {
    flex: 0 0 auto;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(0,0,0,.1);
    background: #fff;
    color: var(--roxo-suave);
    white-space: nowrap;
    transition: background .25s, color .25s;
  }

  .filtro-btn.ativo {
    background: var(--roxo-suave);
    color: #fff;
    border-color: var(--roxo-suave);
  }

}




/* =========================================================
   CATEGORIAS — BOTÃO FLUTUANTE + BOTTOM SHEET (MOBILE)
========================================================= */

@media (max-width: 768px) {

  /* Botão flutuante */
  .btn-categorias-fab {
    position: fixed;
    right:220;
    bottom: 40px;
    z-index: 1300;
    padding: 14px 18px;
    border-radius: 999px;
    background: var(--roxo-suave);
    color: #fff;
    font-weight: 600;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    cursor: pointer;
  }

  /* Container de categorias vira bottom-sheet */
  .filtros {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    z-index: 1400;

    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,.25);

    transition: bottom .35s ease;
  }

  .filtros.aberto {
    bottom: 0;
  }

  .filtro-btn {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
  }

}




/* =========================================================
   PRODUTO DETALHE — SLIDER DE VARIAÇÕES (SWIPE)
========================================================= */

.variacao-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 12px;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.variacao-slider::-webkit-scrollbar {
  display: none;
}

.variacao-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  justify-content: center;
}

.variacao-slide img {
  width: 100%;
  max-width: 380px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,.15);
}

/* =========================================================
   PRODUTO DETALHE — TEXTO EXTRA (MOBILE)
   "Você também pode adicionar foto ou nome!"
========================================================= */

@media (max-width: 768px) {

  /* Ajusta o container de ações de compra */
  .produto-info .compra-actions {
    position: relative;
    padding-bottom: 12px;
  }

  /* Texto de detalhe / observação */
  .produto-info .detalhes-extra,
  .produto-info .info-extra,
  .produto-info p:last-of-type {
    margin-top: 12px;
    margin-bottom: 8px;
    padding: 10px 14px;
    background: rgba(170, 110, 200, 0.08); /* roxo suave */
    border-left: 4px solid var(--roxo-suave);
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: center;
    color: #6a2c91;
  }

}


/* =========================================================
   HOME — CAPA (HERO)
========================================================= */

.banner-capa {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-image: url("imagens/canecas-geral/15.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

/* Overlay para leitura */
.banner-capa::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45),
    rgba(0,0,0,0.65)
  );
  z-index: 0;
}

.banner-capa .container {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.banner-capa h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.banner-capa p {
  font-size: 1.1rem;
  margin-bottom: 28px;
  opacity: 0.95;
}

/* MOBILE */
@media (max-width: 768px) {
  .banner-capa {
    min-height: 70vh;
    text-align: center;
  }

  .banner-capa .container {
    max-width: 100%;
    padding: 0 16px;
  }
}


/* Botão "aba" no canto direito — Funciona em Desktop e Mobile */
.cart-tab-button {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--roxo-suave);
  color: white;
  width: 30px; /* Ligeiramente maior para facilitar o toque no mobile */
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 40px 0 0 40px;
  cursor: pointer;
  z-index: 2050; /* Garante que fica acima de outros elementos, mas abaixo do menu mobile */
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.cart-tab-button i {
  font-size: 18px;
  margin-bottom: 5px;
}

.cart-tab-button .cart-count {
  background: var(--amarelo-pastel);
  color: #000;
  font-size: 11px;
  font-weight: bold;
  min-width: 20px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ajuste opcional: Se o botão sobrepuser algo importante no mobile, 
   pode baixar um pouco a posição vertical */
@media (max-width: 768px) {
  .cart-tab-button {
    top: 60%; /* Desce um pouco para não bater no botão de categorias */
  }
}

.btn-voltar-estilizado {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--roxo-suave);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  margin-bottom: 20px;
  border: 1px solid #eee;
}

.btn-voltar-estilizado:hover {
  background: var(--roxo-suave);
  color: #fff;
  transform: translateX(-5px);
  box-shadow: 0 6px 15px rgba(169, 95, 198, 0.2);
}

/* Esconder o botão flutuante do carrinho apenas na Home */
.home-page .cart-tab-button {
  display: none !important;
}

/* Ajuste para o carrinho do Header no mobile (para ele ser o acesso principal) */
@media (max-width: 768px) {
  .header-content {
    display: flex;
    justify-content: center; /* Centraliza a logo horizontalmente */
    align-items: center;
    min-height: 80px;
    position: relative; /* Necessário para os absolutos funcionarem */
  }

  .logo {
    height: 81px; /* Tamanho ajustado para mobile */
    display: block;
    margin: 0 auto;
  }

  

  /* Menu no canto direito */
  .menu-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex !important;
  }
}

/* =========================================================
   LOJA — BARRA DE BUSCA (FIX FINAL)
   Página: produtos.html
========================================================= */

/* Container da busca */
.produtos-page .pesquisa-container {
  position: sticky;
  top: 80px; /* abaixo do header */
  z-index: 1200;

  margin: 0 auto 20px;
  padding: 10px 15px;

  background: transparent;
}

/* Campo de busca */
.produtos-page .pesquisa-container input {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;

  display: block;
  padding: 14px 22px;

  border-radius: 999px;
  border: 1px solid var(--borda-suave);
  background: #fff;

  font-size: 1rem;
  font-family: 'Poppins', sans-serif;

  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  outline: none;

  transition: box-shadow .25s, border-color .25s;
}

/* Focus */
.produtos-page .pesquisa-container input:focus {
  border-color: var(--roxo-suave);
  box-shadow: 0 0 0 3px rgba(169,95,198,.2);
}

/* MOBILE */
@media (max-width: 768px) {

  .produtos-page .pesquisa-container {
    top: 70px;
    padding: 8px 12px;
  }

  .produtos-page .pesquisa-container input {
    max-width: 100%;
    font-size: 0.95rem;
  }

}


/* =========================================================
   ANIMAÇÃO E ESTILO DA "ESPIADINHA" (SWIPE HINT)
   ========================================================= */

.swipe-hint {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 2200;
  pointer-events: none;
  opacity: 0;
  animation: fadeInOutHint 3.5s ease-in-out forwards;
}

.swipe-hint span {
  font-size: 32px;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
  animation: handMoveVertical 1.5s infinite;
}

/* Para o carrinho (horizontal) mudamos a animação */
.cart-sidebar .swipe-hint span {
  animation: handMoveHorizontal 1.5s infinite;
}

.swipe-hint small {
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
}

/* Animações */
@keyframes fadeInOutHint {
  0% { opacity: 0; transform: translate(-50%, 20px); }
  15% { opacity: 1; transform: translate(-50%, 0); }
  85% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -20px); }
}

@keyframes handMoveVertical {
  0% { transform: translateY(0); }
  50% { transform: translateY(30px); }
  100% { transform: translateY(0); }
}

@keyframes handMoveHorizontal {
  0% { transform: translateX(0); }
  50% { transform: translateX(40px); }
  100% { transform: translateX(0); }
}

/* Ajustes de Transição para o Swipe Realista */
#mobile-menu, .cart-sidebar {
  will-change: transform;
}

/* =====================================================
   CARD PRODUTO — CONTEXTO DOS SELOS (LOJA)
===================================================== */
.card.produto {
  position: relative;
}

/* =====================================================
   SELO DE DESCONTO (%) — LOJA
   CANTO SUPERIOR DIREITO
===================================================== */
.selo-desconto {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;

  background: linear-gradient(135deg, #e53935, #ff7043);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 8px;
  z-index: 7;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

/* =====================================================
   PRODUTO DETALHE — CONTEXTO DA IMAGEM
===================================================== */
.produto-imagem-container {
  position: relative;
}

#imagemSwipe {
  position: relative;
}

/* =====================================================
   SELO DE DESCONTO — PRODUTO DETALHE
   CANTO INFERIOR DIREITO
===================================================== */
.selo-desconto-detalhe {
  position: absolute;
  bottom: 14px;
  right: 14px;
  top: auto;
  left: auto;

  background: linear-gradient(135deg, #e53935, #ff7043);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 8px;
  z-index: 7;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

/* =====================================================
   ANIMAÇÃO DO SELO (DETALHE)
===================================================== */
@keyframes popDesconto {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.selo-desconto-detalhe.animar {
  animation: popDesconto 0.45s ease-out;
}

/* =====================================================
   BLOCO PREÇO + ECONOMIA
===================================================== */
.preco-destaque {
  margin-bottom: 4px;
  color: #6a1bb1;
  font-size: 1.4rem;
  font-weight: 800;
}

.preco-antigo {
  color: #9e9e9e;
  font-size: 0.85rem;
  margin-right: 6px;
}

.produto-economia {
  display: inline-block;
  margin-top: 6px;
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* =====================================================
   MOBILE — AJUSTES FINOS
===================================================== */
@media (max-width: 768px) {
  .selo-desconto {
    top: 10px;
    right: 10px;
  }

  .selo-desconto-detalhe {
    bottom: 10px;
    right: 10px;
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .selo-desconto-detalhe.animar {
    animation-duration: 0.35s;
  }

  .produto-economia {
    font-size: 0.8rem;
    margin-top: 4px;
  }
}

/* =====================================================
   VARIAÇÕES
===================================================== */
#variacoes-wrapper {
  margin-top: 18px;
}


.destaque-home h2 {
  margin-bottom: 16px;
}



.p-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: opacity 0.3s ease-in-out;
}



/* ===============================
   CMS — CARD MAIS COMPACTO
=============================== */
.p-card {
  display: flex;
  flex-direction: column;
}

.p-card .info {
  padding: 10px;
  font-size: 0.85rem;
}

.p-card .info b {
  display: block;
  font-size: 0.9rem;
  line-height: 1.2;
}

.p-card small {
  color: #777;
  font-size: 0.75rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}



/* =========================================================
   HOME — CARROSSEL DE PRODUTOS EM DESTAQUE
========================================================= */

.home-produtos {
  margin-top: 40px;
}

/* Container do carrossel */
#produtos-destaque {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 5px 30px;
}

/* Remove scrollbar visual */
#produtos-destaque::-webkit-scrollbar {
  display: none;
}
#produtos-destaque {
  scrollbar-width: none; /* Firefox */
}

/* =========================================================
   CARD PADRÃO (DESTAQUE)
========================================================= */

.home-produtos .card.produto {
  flex: 0 0 260px;          /* largura fixa do card */
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 16px;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}

.home-produtos .card.produto:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

/* =========================================================
   IMAGEM DO PRODUTO
========================================================= */

.home-produtos .card.produto img {
  width: 100%;
  height: 200px;
  object-fit: contain;   /* não corta */
  display: block;
  margin: 0 auto 12px;
}

/* =========================================================
   TEXTO / PREÇO
========================================================= */

.home-produtos .card.produto h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.home-produtos .preco-produto {
  font-weight: 700;
  color: #6a1bb1;
  margin-bottom: 8px;
}

.home-produtos .preco-antigo {
  font-size: 0.75rem;
  color: #999;
  margin-right: 6px;
}

/* =========================================================
   BOTÃO
========================================================= */

.home-produtos .card-actions {
  margin-top: 10px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {
  #produtos-destaque {
    gap: 14px;
  }

  .home-produtos .card.produto {
    flex: 0 0 220px;
    padding: 14px;
  }

  .home-produtos .card.produto img {
    height: 160px;
  }
}



/* ===== BULK PREVIEW CONTAINER ===== */
.bulk-preview-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

/* ===== ITEM ===== */
.bulk-preview-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  transition: 0.15s;
}

.bulk-preview-item:hover {
  background: #f5ebfa;
  border-color: var(--primary);
}

/* ===== IMAGEM ===== */
.bulk-preview-item img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #eee;
}

/* ===== TEXTO ===== */
.bulk-preview-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.bulk-preview-info b {
  font-size: 0.85rem;
}

.bulk-preview-info small {
  font-size: 0.7rem;
  color: #777;
}

/* ===== TAGS ===== */
.bulk-preview-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.bulk-tag {
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}

.bulk-tag.destaque {
  background: #fef3c7;
  color: #92400e;
}

.bulk-tag.promo {
  background: #dcfce7;
  color: #166534;
}
