/* =======================================================
   RESETS E FUNDAÇÕES DO FOOTER
======================================================= */
.main-footer {
  background-color: #000000;
  border-top: 1px solid #111;
  padding: 80px 0 40px 0;
  color: #f1f1f1;
  font-family: "Montserrat", sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr; /* 4 Colunas no Desktop */
  gap: 40px;
  margin-bottom: 60px;
}

/* Branding (Logo e Texto) */
.footer-logo {
  max-width: 80px;
  height: auto;
  margin-bottom: 20px;
  display: block;
}

.brand-statement {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.6;
  margin-bottom: 25px;
}
.brand-statement .white {
  color: #fff;
  font-weight: 600;
}

/* Títulos com Linha Amarela Única */
.footer-title {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
  display: inline-block;
  border-bottom: 2px solid #ffd700;
  padding-bottom: 8px;
  position: relative;
}

/* Remove qualquer elemento ::after extra que possa criar duplicidade */
.footer-title::after {
  display: none !important;
}

/* Links de Navegação */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a {
  color: #aaaaaa !important;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s ease;
}
.footer-col ul li a:hover {
  color: #ffd700 !important;
  padding-left: 5px;
}

/* Canais Diretos (Cartões P&B) */
.contact-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  padding: 12px 15px;
  border-radius: 8px;
  text-decoration: none !important;
  margin-bottom: 12px;
  transition: 0.3s ease;
}
.contact-card:hover {
  border-color: #ffd700;
  background: #111;
  transform: translateX(5px);
}
.icon-box {
  color: #ffd700 !important;
  display: flex;
  align-items: center;
}
.contact-info {
  display: flex;
  flex-direction: column;
}
.contact-info small {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: #555;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.contact-info span {
  font-size: 0.8rem;
  color: #fff !important;
  font-weight: 500;
}

/* Rodapé Final */
.footer-bottom {
  border-top: 1px solid #111;
  padding-top: 40px;
  margin-top: 20px;
}
.bottom-centered-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.copyright p {
  font-size: 0.8rem;
  color: #666;
  letter-spacing: 0.5px;
}
.credits {
  display: flex;
  align-items: center;
  gap: 10px;
}
.credits .muted {
  font-size: 0.6rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.qmax-link {
  color: #fff !important;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  border: 1px solid #222;
  padding: 5px 12px;
  border-radius: 3px;
  transition: 0.3s;
}
.qmax-link:hover {
  border-color: #ffd700;
  color: #ffd700 !important;
}

/* =======================================================
   BOTÕES E SIDEBAR DO CARRINHO (P&B PAI)
======================================================= */
.cart-floating-icon {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  color: #000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
}
.cart-floating-icon:hover {
  transform: scale(1.1);
}
#cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: #000;
  color: #fff;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  border-left: 1px solid #222;
}
.cart-sidebar.open {
  right: 0;
}
.cart-header {
  padding: 30px;
  border-bottom: 1px solid #222;
  display: flex;
  justify-content: space-between;
}
#close-cart {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* Botões do Carrinho P&B */
.cart-actions-top {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 15px;
  border-bottom: 1px solid #333; /* Linha mais clara para separar */
  margin-bottom: 20px;
}
.btn-clear-all {
  background: rgba(255, 255, 255, 0.05); /* Fundo leve para dar corpo */
  border: 1px solid #555; /* Borda mais visível */
  color: #eee; /* Branco quase puro */
  font-size: 0.7rem;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}
.btn-clear-all:hover {
  border-color: #ff4d4d;
  color: #ff4d4d;
  background: rgba(255, 77, 77, 0.1);
  box-shadow: 0 0 15px rgba(255, 77, 77, 0.1);
}

.cart-item {
  background: #111;
  border: 1px solid #222;
  padding: 18px;
  margin-bottom: 12px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-item h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 4px;
}
.cart-item p {
  color: #ffd700; /* Preço se mantém em destaque dourado */
  font-size: 0.9rem;
  font-weight: 700;
}

.btn-remove-item {
  background: rgba(255, 255, 255, 0.1); /* Círculo leve de fundo */
  border: none;
  color: #fff; /* Ícone agora é BRANCO */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
}
.btn-remove-item svg {
  stroke: #fff; /* Força o ícone a ser branco */
  width: 20px;
  height: 20px;
}
.btn-remove-item:hover {
  background: #ff4d4d; /* Fundo fica vermelho vivo */
  color: #fff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3);
}

.cart-footer {
  padding: 30px;
  background: #050505;
  border-top: 1px solid #222;
}
.btn-finalizar-compra {
  display: block;
  width: 100%;
  background: #fff;
  color: #000;
  text-align: center;
  padding: 15px;
  font-weight: 900;
  text-decoration: none;
  border-radius: 4px;
}

/* Overlays e Modais */
.cart-overlay,
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10001;
  display: none;
}
.cart-overlay.open,
.custom-modal-overlay.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.custom-modal {
  background: #000;
  border: 1px solid #222;
  padding: 40px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  color: #fff;
}
.modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}
.btn-confirm {
  background: #fff;
  color: #000;
  border: none;
  padding: 12px 30px;
  font-weight: 900;
  border-radius: 4px;
  cursor: pointer;
}
.btn-cancel {
  background: none;
  color: #555;
  border: none;
  padding: 12px;
  cursor: pointer;
}

/* =======================================================
   RESPONSIVIDADE
======================================================= */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .main-footer {
    padding: 50px 0 30px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .branding {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-logo {
    margin: 0 auto 20px auto;
  }
  .footer-title {
    margin: 0 auto 25px auto;
  }
  .contact-card {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    justify-content: flex-start;
    text-align: left;
  }
}
