/* Reset e Configurações Gerais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #F6F6F6;
  color: #333;
  padding-top: 45px;
}

/* Faixa de Mensagem */
.top-message {
  background-color: #B8A47E;
  color: white;
  text-align: center;
  font-size: 14px;
  padding: 10px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

/* Header */
.main-header {
  background-color: #EAE4D9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 60px;
  position: fixed;
  width: 100%;
  top: 30px;
  z-index: 999;
  min-height: 70px;
  gap: 20px;
  flex-wrap: nowrap;
}

.logo {
  height: 45px;
  object-fit: contain;
  margin: 0;
}

.header-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 20px;
  z-index: 1;
}


.header-links a {
  color: #333;
  text-decoration: none;
  margin: 0 15px;
  font-size: 14px;
  transition: background-color 0.3s, transform 0.1s;
  padding: 10px 15px;
  border-radius: 8px;
}

.header-links a:hover {
  background-color: #D7CBB6;
}

.header-links a:active {
  background-color: #B8A47E;
  transform: scale(0.95);
}

.header-icons {
  position: relative;
}

.header-icons a {
  margin-left: 15px;
  font-size: 20px;
  color: #333;
  position: relative;
  padding: 10px;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.header-icons a:hover {
  background-color: #D7CBB6;
}

.header-icons a:active {
  background-color: #B8A47E;
  transform: scale(0.95);
}

/* Contador do carrinho */
.cart-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: #B72323;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  padding: 2px 6px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  min-height: 18px;
  line-height: 1;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
  z-index: 10;
}

.banner {
  width: 100%;
  max-width: 100%;
  margin: 32px auto;
  overflow: hidden;
  padding: 0;
  margin: 60px auto 10px auto; /* ajuste esse 96px conforme a altura real do seu header */
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* garante que a imagem inteira apareça */
}

/* Catálogo */
.catalogo {
  padding: 2rem 5%;
}

.catalogo h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.2rem;
}

.grid-produtos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Produto Card */
.produto {
  background-color: #fff;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid #D4AF37;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.produto:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Wrapper da imagem */
.img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
}

.primary-img,
.secondary-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease;
}

.primary-img {
  opacity: 1;
  z-index: 1;
}

.secondary-img {
  opacity: 0;
  z-index: 1;
}

.img-wrapper:hover .primary-img {
  opacity: 0;
}

.img-wrapper:hover .secondary-img {
  opacity: 1;
}

/* Badges */
.badge {
  position: absolute;
  top: 8px;
  padding: 4px 8px;
  font-size: 10px;
  color: white;
  border-radius: 4px;
  font-weight: bold;
  z-index: 2;
  white-space: nowrap;
}

.badge.novidade {
  background-color: #B8A47E;
  left: 8px;
}

.badge.mais-vendido {
  background-color: #D4AF37;
  left: 8px;
  top: 28px;
}

/* Nome do produto */
.produto h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* Preço */
.produto p {
  color: #A67C3B;
  font-weight: bold;
  font-size: 0.9rem;
  margin-top: 0.3rem;
  margin-bottom: 0.5rem;
}

/* Opções em grid */
.opcoes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.opcoes-grid label {
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  color: white;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.opcoes-grid select, 
.opcoes-grid input[type="number"] {
  width: 100%;
  padding: 5px 6px;
  font-size: 12px;
  border: 1px solid #D4AF37;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, opacity 0.3s ease;
  opacity: 0;
}

.produto:hover .opcoes-grid label,
.produto:hover .opcoes-grid select, 
.produto:hover .opcoes-grid input[type="number"] {
  opacity: 1;
  color: #666;
}

.opcoes-grid select:focus,
.opcoes-grid input[type="number"]:focus {
  border-color: #B8860B;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
}

.produto button {
  width: 100%;
  padding: 8px;
  font-size: 13px;
  border: none;
  border-radius: 6px;
  margin-top: 8px;
  font-weight: 700;
  transition: background-color 0.3s, transform 0.1s, color 0.3s ease;
  opacity: 0;
  pointer-events: auto;
}

.produto:hover button {
  opacity: 1;
}

.produto:hover button:not(.btn-indisponivel) {
  background-color: #D4AF37;
  color: white;
  pointer-events: auto;
  cursor: pointer;
}

.produto:hover button:not(.btn-indisponivel):active {
  transform: scale(0.95);
}

.produto:hover button.btn-indisponivel {
  background-color: #999 !important;
  color: white !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  opacity: 1;
  font-weight: 700;
  transform: none !important;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 2rem 5%;
  background-color: #f9f5ed;
  border-top: 1px solid #ccc;
  flex-wrap: wrap;
}

.footer-coluna {
  flex: 1;
  min-width: 200px;
  text-align: left;
}

.footer-coluna h3 {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  color: #333;
}

.footer-coluna p {
  font-size: 0.8rem;
  color: #555;
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-coluna a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}

.footer-coluna a:hover {
  color: #b72323;
  text-decoration: underline;
}

/* 🔥 Controle dos ícones forçado */
.footer-coluna i svg {
  stroke-width: 0.8;
}

.footer-rodape {
  text-align: center;
  background-color: #f3efe5;
  padding: 1.5rem 5%;
  font-size: 0.75rem;
  color: #888;
  border-top: 1px solid #ddd;
  margin-top: 20px;
}

.footer-rodape a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-rodape a:hover {
  color: #b72323;
  text-decoration: underline;
}

/* ==================== CARRINHO ==================== */

.carrinho-container {
  display: flex;
  gap: 30px;
  padding: 80px 5% 2rem 5%;
}

.col-carrinho {
  flex: 7;
}

.col-resumo {
  flex: 3;
  align-self: flex-start;
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* FRETE GRÁTIS */
.frete-gratis-wrapper {
  margin-bottom: 2rem;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(10px);
  animation: fadeSlideIn 0.6s forwards ease;
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mensagem-frete-gratis {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #555;
}

.barra-progresso {
  position: relative;
  background: #ccc;
  height: 12px;
  border-radius: 6px;
}

.progresso {
  background: black;
  height: 100%;
  width: 0%;
  transition: width 0.4s ease, background-color 0.4s ease;
  border-radius: 6px;
}

.icone-wrapper {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  background: black;
  border-radius: 50%;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  z-index: 10;
  right: -12px;
  transition: right 0.4s ease;
}

.icone-frete {
  font-size: 14px;
  color: white;
  transition: color 0.3s ease;
}

.frete-ativado .progresso {
  background: #2e7d32 !important;
}

.frete-ativado .icone-wrapper {
  background: #2e7d32 !important;
}

.frete-ativado .icone-frete {
  color: white !important;
}

/* Resumo */
.resumo-carrinho {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.resumo-carrinho h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Checkout Form */
#form-checkout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#form-checkout label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}

#form-checkout input {
  padding: 10px;
  border: 1px solid #D4AF37;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#form-checkout input:focus {
  outline: none;
  border-color: #B8860B;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
}

.resumo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  gap: 10px;
}

.resumo-item .resumo-label {
  width: 80px;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: #555;
  font-weight: 700;
}

.resumo-item span {
  font-weight: bold;
  font-size: 1rem;
  color: #A67C3B;
}

.total-final .total {
  font-size: 1.1rem;
  color: #333;
  font-weight: 800;
}

.total-final span {
  color: #B72323;
  font-size: 1.3rem;
  font-weight: 800;
}

/* Inputs e botões 50/50 */
.cupom-box, .frete-box {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

/* INPUTS maiores */
.cupom-box input,
.frete-box input {
  width: 70%;
  padding: 8px;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 36px;
}

/* BOTÕES menores com cinza premium */
.cupom-box button,
.frete-box button {
  width: 30%;
  padding: 8px;
  font-size: 0.8rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  background: #999999;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
  height: 36px;
}

.cupom-box button:hover,
.frete-box button:hover {
  background: #777777;
}

.cupom-box button:active,
.frete-box button:active {
  transform: scale(0.96);
}


/* Mensagens de cupom e frete */
.msg-cupom,
.msg-frete {
  display: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  margin-top: -0.5rem;
}

.msg-cupom.erro,
.msg-frete.erro {
  background-color: #ffe5e5;
  color: #b72323;
  border: 1px solid #b72323;
}

.msg-cupom.sucesso,
.msg-frete.sucesso {
  background-color: #e5ffe8;
  color: #2e7d32;
  border: 1px solid #2e7d32;
}

/* ==================== ITENS DO CARRINHO ==================== */

.lista-carrinho .item-carrinho {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.lista-carrinho .item-carrinho:not(:last-child) {
  margin-bottom: 1rem;
}

.img-carrinho {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
}

.info-item {
  flex: 1;
}

.info-item h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.info-item p {
  font-size: 0.8rem;
  color: #555;
}

.controle-qtd {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Botões de quantidade */
.btn-qtd {
  background: #ebebeb;
  color: #444;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s, transform 0.1s;
}

.btn-qtd:hover {
  background: #d5d5d5;
}

.btn-qtd:active {
  transform: scale(0.96);
}

.btn-qtd:disabled {
  background: #f2f2f2;
  color: #aaa;
  cursor: not-allowed;
  opacity: 0.7;
}


.subtotal {
  width: 80px;
  font-weight: bold;
  color: #A67C3B;
  text-align: right;
}

.btn-remover {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #B72323;
  padding: 5px;
  transition: transform 0.1s;
}

.btn-remover:active {
  transform: scale(0.9);
}

/* ==================== BOTÕES DE AÇÃO DO CARRINHO ==================== */
.resumo-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1.5rem;
}

/* Botão Finalizar */
.btn-finalizar {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  background: #2e7d32;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
}

.btn-finalizar:hover {
  background: #256528;
}

.btn-finalizar:active {
  transform: scale(0.96);
}

.btn-finalizar:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
  opacity: 1;
}

/* Botão Continuar Comprando */
.btn-continuar {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-weight: 700;
  background: #ebebeb;
  color: #333333;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
}

.btn-continuar:hover {
  background: #e0e0e0;
}

.btn-continuar:active {
  transform: scale(0.96);
}

/* Botão Aplicar Cupom */
.cupom-box button {
  width: 100%;
  padding: 8px;
  font-size: 0.85rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  background: #999999;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
}

.cupom-box button:hover {
  background: #777777;
}

.cupom-box button:active {
  transform: scale(0.96);
}

/* Botão Calcular Frete */
.frete-box button {
  width: 100%;
  padding: 8px;
  font-size: 0.85rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  background: #999999;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
}

.frete-box button:hover {
  background: #777777;
}

.frete-box button:active {
  transform: scale(0.96);
}

/* === BOTÃO PIX COPIAR === */
#pixQRCode {
  text-align: center;
  margin-top: 1.5rem;
}

#pixQRCodeImg {
  max-width: 260px;
  height: auto;
  margin: 0 auto 1rem;
}

#pix-copy-btn {
  background-color: #2e7d32;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

#pix-copy-btn:hover {
  background-color: #256528;
}

#pix-copy-btn:active {
  transform: scale(0.97);
}

.modal-opcoes .btn-pagamento + .btn-pagamento {
  margin-top: 12px;
}

.banner-desktop {
  display: block;
}

.banner-mobile {
  display: none;
}

@media (max-width: 768px) {
  .banner-desktop {
    display: none;
  }

  .banner-mobile {
    display: block;
  }
}


/* ============ RECOMENDAÇÃO HORIZONTAL COMPACTA ============ */

.recomendacao-horizontal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: #fff;
  border: 1px solid #e3d9c5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  min-height: 120px;
}

.recomendacao-horizontal.mostrar {
  opacity: 1;
  transform: translateY(0);
}

.recomendacao-horizontal img.recom-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

.recomendacao-horizontal .recom-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
}

.recomendacao-horizontal .recom-titulo {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.recomendacao-horizontal .recom-nome {
  font-size: 0.9rem;
  font-weight: 500;
  color: #444;
  margin: 0;
}

.recomendacao-horizontal .recom-preco {
  font-size: 0.9rem;
  color: #A67C3B;
  font-weight: bold;
  margin: 0;
}

.recomendacao-horizontal .recom-var {
  font-size: 0.8rem;
  color: #555;
  margin: 0;
}

.recomendacao-horizontal button {
  width: fit-content;
  padding: 8px 12px;
  font-size: 13px;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  background-color: #D4AF37;
  color: white;
  cursor: pointer;
  margin-top: 0.4rem;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.recomendacao-horizontal button:hover {
  background-color: #c29c2f;
}

.recomendacao-horizontal button:active {
  transform: scale(0.96);
}

.recomendacao-horizontal button.indisponivel {
  background-color: #999 !important;
  color: white !important;
  cursor: not-allowed !important;
}

.box-carrinho {
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.box-carrinho h2 {
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

.container-feedback {
  max-width: 500px;
  margin: 8rem auto;
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  background-color: #fff;
}

.btn-voltar {
  margin-top: 1.5rem;
  display: inline-block;
  background-color: #b72323;
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-voltar:hover {
  background-color: #8c1a1a;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #D4AF37;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.breadcrumb {
  padding: 5rem 5% 0 5%;
  font-size: 0.85rem; /* ajuste conforme quiser */
  color: #666;        /* cor mais discreta */
  font-weight: 500;   /* opcional para dar leve destaque */
}

.frete-box,
#frete-section {
  transition: all 0.3s ease;
}

.menu-toggle {
  display: none; 
}

/* Visibilidade por dispositivo */
.header-mobile-row,
.logo-mobile,
.header-icons-mobile {
  display: none;
}

.logo-desktop,
.header-icons-desktop {
  display: flex;
  align-items: center;
}

/* Ícone do carrinho - DESKTOP */
.header-icons-desktop a {
  margin-left: 15px;
  font-size: 20px;
  color: #333;
  position: relative;
  padding: 10px;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.header-icons-desktop a:hover {
  background-color: #D7CBB6;
}

.header-icons-desktop a:active {
  background-color: #B8A47E;
  transform: scale(0.95);
}

/* Ícone do carrinho - MOBILE */
.header-icons-mobile a {
  margin-left: 15px;
  font-size: 20px;
  color: #333;
  position: relative;
  padding: 10px;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

#cart-float-btn.show {
  display: flex !important;
  opacity: 1;
  transform: translateY(0);
}

.header-icons-mobile a:hover {
  background-color: #D7CBB6;
}

.header-icons-mobile a:active {
  background-color: #B8A47E;
  transform: scale(0.95);
}

/* === HEADERS VISIBILIDADE === */
.header-mobile {
  display: none;
}

.header-desktop {
  display: block;
}

.logo {
  height: 45px;
  object-fit: contain;
}

#cart-float-btn {
  display: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (max-width: 768px) {
  #cart-float-btn {
    display: flex;
  }
}

/* ===== MODAL DE SELEÇÃO DE PAGAMENTO ===== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-container {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.modal-container h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
}

.modal-text {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.modal-opcoes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-pagamento {
  padding: 12px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  background-color: #D4AF37;
  color: white;
  transition: background-color 0.3s ease, transform 0.1s ease;
  width: 100%;
}

.btn-pagamento.btn-pix {
  background-color: #2e7d32;
}

.btn-pagamento:hover {
  opacity: 0.9;
}

.btn-pagamento:active {
  transform: scale(0.97);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #333;
}

.modal-loading {
  margin-top: 1.5rem;
  text-align: center;
}

.modal-loading p {
  margin-top: 0.8rem;
  color: #555;
  font-weight: 500;
  font-size: 0.95rem;
}

.hidden {
  display: none !important;
}

.pix-brick-container {
  min-height: 300px;
  padding: 1rem;
  background-color: #f9f5ed;
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .header-desktop {
    display: none;
  }

  .header-mobile {
    display: block;
    width: 100%;
    background-color: #f3efe5;
  }

  .top-message {
    background-color: #B8A47E;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    line-height: 1.2;
    margin: 0;
position: static;
  }

  .header-mobile-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px 20px;
  }

  .menu-toggle {
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
  }

  .logo-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .header-icons-mobile {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .header-links-mobile {
    display: none;
    flex-direction: column;
    background-color: #f3efe5;
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    gap: 8px;
  }

  .header-links-mobile.active {
    display: flex;
    margin-bottom: 0px;
  }

.header-links-mobile a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-family: 'Lato', sans-serif;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.header-links-mobile a:hover {
  color: #b72323; /* ou algum tom dourado que você use */
}


  .banner {
    margin-top: 0;
    position: static;
  }

  .grid-produtos {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .carrinho-container {
    flex-direction: column;
  }

  .col-carrinho,
  .col-resumo {
    width: 100%;
  }

  .recomendacao-horizontal {
    flex-direction: column;
    align-items: flex-start;
  }

  .recomendacao-horizontal img.recom-img {
    width: 100%;
    height: auto;
  }

  .recomendacao-horizontal .recom-info {
    width: 100%;
  }

  .resumo-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cupom-box,
  .frete-box {
    flex-direction: column;
  }

  .cupom-box input,
  .frete-box input,
  .cupom-box button,
  .frete-box button {
    width: 100%;
  }

  .btn-finalizar,
  .btn-continuar {
    font-size: 1rem;
    padding: 12px;
  }

  .item-carrinho {
    flex-direction: column;
    align-items: flex-start;
  }

  .img-carrinho {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }

  .subtotal {
    width: 100%;
    text-align: left;
    margin-top: 0.5rem;
  }

  .controle-qtd {
    margin-top: 0.5rem;
  }

/* Responsividade do Modal */
.modal-container {
  width: 90%;
  padding: 1.5rem 1rem;
}

.modal-container h2 {
  font-size: 1.3rem;
}

.modal-text {
  font-size: 0.9rem;
}

.btn-opcao {
  font-size: 0.95rem;
  padding: 10px;
}

#cart-float-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #f3efe5;
  border: 1px solid #D4AF37;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: translateY(30px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  text-decoration: none;
}

#cart-float-btn.show {
  opacity: 1;
  transform: translateY(0);
}

#cart-float-btn:hover {
  transform: scale(1.05);
  background-color: #e4dcc7;
}

#cart-float-btn .material-icons {
  font-size: 28px;
  color: #333;
}

/* Badge do botão flutuante */
#cart-float-btn .cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #B72323;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  padding: 2px 6px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  min-height: 18px;
  line-height: 1;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

}
