.catalogo-hiper-wrapper {
  --ch-cor: #1a1a1a;
  --ch-cor-secundaria: #d4af37;
  font-family: inherit;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 20px;
}
.catalogo-hiper-wrapper * {
  box-sizing: border-box;
}

.ch-cabecalho {
  background-color: var(--ch-cor);
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ch-logo {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  padding: 1px;
  border: 3px solid var(--ch-cor-secundaria);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.ch-dados-loja {
  flex: 1;
  min-width: 160px;
}
.ch-nome-loja {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #fff;
}
.ch-endereco {
  font-size: 12px;
  color: #fff;
  opacity: 0.85;
  margin-bottom: 2px;
}
.ch-contato {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ch-contato a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 1;
}
.ch-contato a:hover {
  opacity: 0.85;
}
.ch-link-whatsapp svg {
  color: #fff;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.ch-busca-wrapper {
  flex: 1 1 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 20px;
  padding-right: 4px;
}
@media (min-width: 600px) {
  .ch-busca-wrapper {
    flex: 0 1 300px;
  }
}
.ch-busca {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  background: transparent;
}
.ch-busca:focus {
  outline: none;
}
.ch-btn-scanner {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--ch-cor-secundaria, #d4af37);
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ch-modal-scanner-conteudo {
  max-width: 420px;
  text-align: center;
}
.ch-modal-scanner-conteudo h3 {
  margin: 0 0 12px;
  font-size: 16px;
}
#ch-scanner-leitor {
  width: 100%;
  min-height: 250px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.ch-scanner-mensagem {
  margin-top: 10px;
  font-size: 13px;
  color: #555;
}
.ch-selos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background: #fff;
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}
.ch-selo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 200px;
  color: var(--ch-cor-secundaria);
}
.ch-selo div {
  display: flex;
  flex-direction: column;
}
.ch-selo strong {
  font-size: 13px;
  color: #222;
}
.ch-selo span {
  font-size: 11px;
  color: #777;
}
.ch-promocoes {
  margin-bottom: 20px;
  background: #1a1a1a;
  border: 2px solid var(--ch-cor-secundaria);
  border-radius: 14px;
  padding: 16px 18px 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.ch-promocoes-titulo {
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--ch-cor-secundaria);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  width: fit-content;
}
.ch-promocoes-titulo:hover {
  text-decoration: underline;
}
.ch-promocoes-titulo-img {
  display: block;
  max-width: 100%;
  max-height: 90px;
}
.ch-promocoes-janela {
  overflow: hidden;
}
.ch-promocoes-lista {
  display: flex;
  gap: 14px;
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}
.ch-promocoes-lista.ch-arrastando {
  cursor: grabbing;
  scroll-behavior: auto;
}
.ch-promocoes-lista::-webkit-scrollbar {
  display: none;
}
.ch-promocoes-lista .ch-promocao-item {
  flex: 0 0 calc(25% - 10.5px);
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.ch-promocoes-lista.ch-sem-scroll {
  justify-content: center;
}
.ch-promocoes-lista.ch-sem-scroll .ch-promocao-item {
  flex: 1 1 0;
  max-width: 200px;
}
@media (max-width: 640px) {
  .ch-promocoes-lista .ch-promocao-item {
    flex: 0 0 calc(50% - 7px);
  }
}
.ch-corpo {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.ch-categorias {
  flex: 0 0 190px;
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}
.ch-categorias .ch-cat-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 6px;
  font-size: 14px;
  color: #444;
  cursor: pointer;
  border-radius: 6px;
}
.ch-categorias .ch-cat-item:hover {
  background: #f4f4f4;
}
.ch-categorias .ch-cat-item.ch-cat-ativa {
  background: var(--ch-cor-secundaria);
  color: #1a1a1a;
  font-weight: bold;
}
.ch-grade {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .ch-corpo {
    flex-direction: column;
  }
  .ch-categorias {
    flex-basis: auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .ch-categorias .ch-cat-item {
    width: auto;
  }
}
.ch-produto {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.ch-produto:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}
.ch-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: #f4f4f4;
  margin-bottom: 8px;
}
.ch-btn-add {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--ch-cor-secundaria);
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.ch-btn-add:hover {
  opacity: 0.9;
}
.ch-linha-preco .ch-acoes {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ch-btn-compartilhar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: var(--ch-cor);
  cursor: pointer;
}
.ch-btn-compartilhar:hover {
  background: #f4f4f4;
}
.ch-badge-qtd {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #e5484d;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.ch-produto img,
.ch-produto .ch-sem-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 13px;
}
.ch-produto h3 {
  font-size: 14px;
  line-height: 1.3;
  margin: 4px 0;
  min-height: 36px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.ch-linha-preco {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.ch-produto .ch-preco {
  font-weight: bold;
  color: var(--ch-cor-secundaria);
  font-size: 16px;
}
.ch-preco-combo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ch-preco-combo .ch-preco-original {
  font-weight: normal;
  font-size: 13px;
  color: #888;
  text-decoration: line-through;
}
.ch-preco-combo .ch-preco-final {
  font-weight: 800;
  color: #e60023;
  font-size: 22px;
  line-height: 1.1;
}
.ch-selo-off {
  display: inline-block;
  background: linear-gradient(135deg, #ff3b3b, #e60023);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.3px;
  padding: 3px 9px;
  border-radius: 10px;
  width: fit-content;
  margin-bottom: 3px;
  box-shadow: 0 2px 5px rgba(230, 0, 35, 0.5);
  animation: ch-pulso-off 1.8s ease-in-out infinite;
}
@keyframes ch-pulso-off {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
#ch-modal-preco .ch-preco-original {
  font-weight: normal;
  font-size: 14px;
  color: #888;
  text-decoration: line-through;
}
#ch-modal-preco .ch-preco-final {
  font-weight: 800;
  color: #e60023;
  font-size: 26px;
}
#ch-modal-preco .ch-selo-off {
  margin-bottom: 4px;
}
.ch-item-carrinho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
}
.ch-item-carrinho .ch-item-nome {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ch-item-qtd-controle {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ch-item-qtd-controle button {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: var(--ch-cor);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.ch-item-qtd-controle button:hover {
  opacity: 0.85;
}
.ch-item-qtd-controle .ch-qtd {
  min-width: 18px;
  text-align: center;
  font-weight: bold;
  font-size: 13px;
}
.catalogo-hiper-wrapper {
  padding-bottom: 60px;
}
.ch-carrinho {
  position: fixed;
  bottom: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid #ddd;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
}
.ch-carrinho-resumo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--ch-cor);
  color: #fff;
  border-radius: 12px 12px 0 0;
  padding: 10px 18px;
  font-size: 14px;
}
.ch-carrinho-resumo strong {
  font-size: 15px;
}
.ch-carrinho-detalhes {
  display: none;
  padding: 14px 18px;
  max-height: 60vh;
  overflow-y: auto;
}
.ch-carrinho.ch-aberto .ch-carrinho-detalhes {
  display: block;
}
#ch-itens-carrinho {
  font-size: 13px;
  max-height: 120px;
  overflow-y: auto;
  margin-bottom: 8px;
}
.ch-forma-pagamento {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ch-forma-pagamento label {
  flex-shrink: 0;
  font-size: 13px;
}
.ch-forma-pagamento select {
  flex: 1;
  padding: 6px;
}
.ch-pedido-mensagem {
  font-size: 13px;
}
.ch-pedido-mensagem:not(:empty) {
  padding: 10px 12px;
  border-radius: 8px;
  margin-top: 4px;
  font-weight: 600;
}
.ch-pedido-mensagem.ch-erro {
  color: #b00020;
  background: #fdeaea;
  border: 1px solid #f3b4b4;
}
.ch-pedido-mensagem.ch-sucesso {
  color: #1b7a3d;
  background: #e8f6ed;
  border: 1px solid #a9ddba;
}
#ch-btn-whatsapp {
  flex-shrink: 0;
  padding: 10px 18px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
#ch-btn-whatsapp:disabled {
  background: #aaa;
  cursor: not-allowed;
}
.ch-produto {
  cursor: pointer;
}
.ch-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ch-modal-fundo {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.ch-modal-conteudo {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 28px;
}
.ch-modal-fechar {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #888;
}
.ch-modal-foto {
  flex: 1 1 260px;
  aspect-ratio: 1 / 1;
  background: #f4f4f4;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ch-modal-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ch-modal-info {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
}
.ch-modal-categoria {
  font-size: 12px;
  color: var(--ch-cor-secundaria);
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 6px;
}
.ch-modal-info h2 {
  font-size: 22px;
  margin: 0 0 6px;
}
.ch-modal-codigo {
  font-size: 13px;
  color: #777;
  margin-bottom: 14px;
}
.ch-modal-descricao {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 16px;
  white-space: pre-line;
}
.ch-modal-preco {
  font-size: 26px;
  font-weight: bold;
  color: var(--ch-cor-secundaria);
  margin-bottom: 16px;
}
#ch-modal-add {
  padding: 14px;
  background: var(--ch-cor);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 15px;
  margin-bottom: 10px;
}
#ch-modal-whatsapp {
  padding: 14px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 15px;
  margin-bottom: 10px;
}
#ch-modal-compartilhar {
  padding: 14px;
  background: #fff;
  color: var(--ch-cor);
  border: 2px solid var(--ch-cor);
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 15px;
}
