/* Estilos locais do clone (carrinho, busca, checkout, avisos) */

.gall-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .45);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 9998;
}
.gall-overlay.on { opacity: 1; pointer-events: auto; }

.gall-panel {
  position: fixed; top: 0; right: 0; height: 100%; width: 380px; max-width: 92vw;
  background: #fff; z-index: 9999; display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .28s ease;
  box-shadow: -6px 0 24px rgba(0, 0, 0, .18);
}
.gall-panel.on { transform: translateX(0); }
.gall-panel .panel { height: 100%; display: flex; flex-direction: column; }
.gall-panel .panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid #e6e6e6;
}
.gall-panel .panel-title { font-size: 18px; font-weight: 700; letter-spacing: .04em; color: #222; }
.gall-panel .panel-close {
  cursor: pointer; border: 0; background: none; font-size: 26px; line-height: 1;
  color: #666; padding: 0 4px;
}
.gall-panel .items { flex: 1; overflow-y: auto; padding: 10px 14px; }
.gall-panel .fastCartContent { list-style: none; margin: 0; padding: 0; }
.gall-panel .fastCartContent .gall-vazio { text-align: center; color: #777; padding: 30px 0; font-size: 14px; }

.gall-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid #eee; }
.gall-item__img { width: 78px; height: 78px; flex: 0 0 78px; border-radius: 8px; overflow: hidden; background: #f6f6f6; }
.gall-item__img img { width: 100%; height: 100%; object-fit: contain; }
.gall-item__info { flex: 1; min-width: 0; }
.gall-item__nome {
  display: block; font-size: 12px; color: #333; text-decoration: none; line-height: 1.35;
  margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.gall-item__var { font-size: 11px; color: #888; }
.gall-item__preco { font-size: 14px; font-weight: 700; color: #e70276; margin-top: 4px; }
.gall-item__acoes { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.gall-qtd { display: inline-flex; align-items: center; border: 1px solid #ddd; border-radius: 20px; overflow: hidden; }
.gall-qtd button {
  width: 26px; height: 26px; border: 0; background: #fafafa; cursor: pointer;
  font-size: 15px; line-height: 1; color: #444;
}
.gall-qtd button:hover { background: #f0f0f0; }
.gall-qtd input {
  width: 32px; height: 26px; border: 0; text-align: center; font-size: 12px;
  -moz-appearance: textfield; background: #fff;
}
.gall-qtd input::-webkit-outer-spin-button, .gall-qtd input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gall-remover {
  margin-left: auto; font-size: 11px; color: #999; text-decoration: underline; cursor: pointer;
  background: none; border: 0; padding: 0;
}
.gall-remover:hover { color: #e70276; }
.gall-qtd-fixa { font-size: 11.5px; color: #888; }
.gall-qtd b { min-width: 26px; text-align: center; font-size: 12px; font-weight: 700; color: #333; line-height: 26px; }
.gall-item__preco small { font-size: 11px; font-weight: 400; color: #888; }

.gall-panel .rodape {
  border-top: 1px solid #e6e6e6; padding: 14px 18px 18px; background: #fff;
}
.gall-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.gall-total span:first-child { font-size: 12px; font-weight: 700; letter-spacing: .05em; color: #444; }
.gall-total strong { font-size: 18px; color: #111; }
.gall-total small { display: block; font-size: 11px; color: #7a7a7a; font-weight: 400; }
.gall-limite {
  font-size: 11.5px; line-height: 1.45; color: #7a7a7a; text-align: center;
  background: #faf7f9; border: 1px solid #efe6eb; border-radius: 8px;
  padding: 7px 10px; margin: 0 0 10px;
}
.gall-limite--cheio { color: #a3124f; background: #fff6fa; border-color: #f8cfe2; font-weight: 700; }
.gall-btn {
  display: block; width: 100%; text-align: center; padding: 13px 16px; border-radius: 10px;
  background: #e70276; color: #fff !important; font-weight: 700; font-size: 14px;
  letter-spacing: .04em; text-decoration: none; border: 0; cursor: pointer;
  transition: filter .15s ease;
}
.gall-btn:hover { filter: brightness(1.08); }
.gall-btn--ghost { background: #fff; color: #e70276 !important; border: 1px solid #e70276; margin-top: 8px; }
.gall-btn[disabled] { opacity: .5; cursor: not-allowed; }

.gall-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: #1f1f1f; color: #fff; padding: 12px 20px; border-radius: 30px;
  font-size: 13px; z-index: 10000; opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease; max-width: 90vw; text-align: center;
}
.gall-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- pÃ¡ginas locais ---------- */
.gall-main { max-width: 1180px; margin: 0 auto; padding: 28px 16px 70px; }
.gall-main h1 { font-size: 26px; margin: 0 0 18px; color: #222; }
.gall-main h2 { font-size: 18px; margin: 26px 0 12px; color: #222; }
.gall-migalha { font-size: 12px; color: #888; margin-bottom: 14px; }
.gall-migalha a { color: #888; }
.gall-cart-lista { border: 1px solid #eee; border-radius: 12px; overflow: hidden; }
.gall-cart-linha {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center;
  padding: 14px; border-bottom: 1px solid #f0f0f0;
}
.gall-cart-linha:last-child { border-bottom: 0; }
.gall-cart-linha img { width: 96px; height: 96px; object-fit: contain; background: #fafafa; border-radius: 8px; }
.gall-cart-linha .nome { font-size: 14px; font-weight: 600; color: #222; margin-bottom: 4px; }
.gall-cart-linha .var { font-size: 12px; color: #888; }
.gall-cart-linha .preco { font-size: 15px; font-weight: 700; color: #e70276; white-space: nowrap; }

.gall-resumo {
  border: 1px solid #eee; border-radius: 12px; padding: 18px; background: #fcfcfc; margin-top: 18px;
}
.gall-resumo .linha { display: flex; justify-content: space-between; font-size: 13px; color: #555; padding: 6px 0; }
.gall-resumo .total { border-top: 1px solid #e6e6e6; margin-top: 8px; padding-top: 12px; font-size: 16px; font-weight: 700; color: #111; }

.gall-campo { margin-bottom: 14px; }
.gall-campo label { display: block; font-size: 12px; font-weight: 600; color: #444; margin-bottom: 6px; }
.gall-campo input, .gall-campo select {
  width: 100%; height: 44px; border: 1px solid #dcdcdc; border-radius: 8px; padding: 0 12px;
  font-size: 14px; color: #222; background: #fff; box-sizing: border-box;
}
.gall-campo input:focus, .gall-campo select:focus { outline: 2px solid #f7a8cd; border-color: #e70276; }
.gall-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.gall-grade .gall-campo--full { grid-column: 1 / -1; }
@media (max-width: 720px) { .gall-grade { grid-template-columns: 1fr; } }

.gall-pagamento { display: flex; gap: 10px; flex-wrap: wrap; }
.gall-pagamento label {
  flex: 1; min-width: 140px; border: 1px solid #ddd; border-radius: 10px; padding: 12px;
  cursor: pointer; font-size: 13px; color: #444; display: flex; align-items: center; gap: 8px;
}
.gall-pagamento input { width: auto; height: auto; }
.gall-pagamento label.on { border-color: #e70276; box-shadow: 0 0 0 2px #fce3ef inset; }

.gall-aviso {
  background: #fff6fa; border: 1px solid #f8cfe2; color: #a3124f; border-radius: 10px;
  padding: 12px 14px; font-size: 13px; margin-bottom: 18px;
}
.gall-aviso a { color: #e70276; font-weight: 600; }

.gall-grade-produtos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; margin-top: 10px; }
.gall-card { border: 1px solid #eee; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.gall-card a { text-decoration: none; color: inherit; }
.gall-card img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fafafa; }
.gall-card .n { font-size: 12px; line-height: 1.35; padding: 8px 10px 2px; color: #333; min-height: 40px; }
.gall-card .p { font-size: 14px; font-weight: 700; color: #e70276; padding: 2px 10px 10px; }
.gall-card .p small { display: block; font-weight: 400; font-size: 11px; color: #888; }

.gall-vazio-box { text-align: center; padding: 60px 16px; color: #777; }
.gall-vazio-box a { color: #e70276; font-weight: 600; }

.gall-conta { max-width: 420px; margin: 0 auto; }
.gall-obrigado { text-align: center; padding: 30px 0 10px; }
.gall-obrigado .ok {
  width: 66px; height: 66px; border-radius: 50%; background: #e8f7ee; color: #1a9a45;
  font-size: 34px; line-height: 66px; margin: 0 auto 14px;
}
.gall-obrigado h1 { margin-bottom: 6px; }
.gall-ref { font-size: 13px; color: #666; margin-bottom: 20px; }
@media (max-width: 620px) {
  .gall-cart-linha { grid-template-columns: 72px 1fr; }
  .gall-cart-linha img { width: 72px; height: 72px; }
  .gall-cart-linha .preco { grid-column: 2; }
}

/* ---------- elementos do tema substituidos pelo carrinho local ---------- */
#product-added-to-cart { display: none !important; }
.panel-wrap#panel-cart { display: none !important; }

/* banner de cookies do tema: o clone nao guarda consentimento */
.card.consentimentoCookie { display: none !important; }

/* substitui o calculo de frete por CEP: frete gratis + previsao de data */
.product-data__freight.product-data__frete-gratis{display:block;border:0;padding:0}
.product-data__frete-gratis .product-data__freight__info{display:block}
.product-data__frete-gratis .product-data__freight__title{display:flex;align-items:center;gap:7px;
 font-weight:700;color:#0f8a3d}
.product-data__frete-gratis .frete-ico{flex:0 0 auto;color:#0f8a3d}
.product-data__frete-gratis .product-data__freight__text{display:block;margin-top:3px;color:#4a4a4a}
.product-data__frete-gratis .product-data__freight__text strong{color:#0f8a3d}
.product-data__frete-gratis .frete-previsao{display:inline-block;margin-top:7px;padding:4px 11px;
 border-radius:999px;background:#eaf7ee;color:#0b6b2f;font-size:12px;font-weight:600;line-height:1.5}
.product-data__frete-gratis .frete-previsao strong{font-weight:700}
