/* =========================
   WD Drawer — Botões unificados
   ========================= */

/* container de ações */
body .wd-product-actions {
  margin-top: 8px;
}

/* estilo base comum para os botões do drawer (Ficha Técnica e Comprar) */
.wd-product-tech-download,
body .wd-product-actions .wd-btn-buy,
body .wd-product-actions .wd-btn-view {
  display: inline-block;
  padding: 9px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  transition: transform .12s ease, opacity .12s ease;
  vertical-align: middle;
  cursor: pointer;
  box-sizing: border-box;
}

/* aparência principal (solicitada): texto branco e fundo #54595F */
.wd-product-tech-download,
body .wd-product-actions .wd-btn-buy {
  color: #ffffff;
  background-color: #54595F;
  border: 1px solid rgba(0,0,0,0.06);
}

/* "Ver produto" mantém aparência mais discreta (mantido) */
body .wd-product-actions .wd-btn-view {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255,255,255,0.08);
  margin-left: 8px;
}

/* hover / foco */
.wd-product-tech-download:hover,
body .wd-product-actions .wd-btn-buy:hover,
.wd-product-tech-download:focus,
body .wd-product-actions .wd-btn-buy:focus {
  opacity: 0.95;
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* foco acessível */
.wd-product-tech-download:focus-visible,
body .wd-product-actions .wd-btn-buy:focus-visible {
  outline: 3px solid rgba(84,89,95,0.18);
  outline-offset: 2px;
}

/* pequeno espaçamento ao redor do botão de ficha técnica */
.wd-product-tech {
  margin-top: 8px;
  margin-bottom: 8px;
}

/* responsividade: reduzir padding e fonte em telas pequenas */
@media (max-width:480px){
  .wd-product-tech-download,
  body .wd-product-actions .wd-btn-buy,
  body .wd-product-actions .wd-btn-view {
    padding: 8px 10px;
    font-size: 0.95rem;
  }
}

/* =========================
   Remover barra de rolagem visual do drawer (mantendo scroll funcional)
   ========================= */
.wd-drawer-inner {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
.wd-drawer-inner::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}


/* Override específico dentro do drawer — mais específico que regras genéricas do tema */
@media (max-width: 768px) {
  body .wd-drawer-overlay .wd-drawer .wd-drawer-inner .wd-product-actions .wd-btn-buy,
  body .wd-drawer-overlay .wd-drawer .wd-drawer-inner .wd-product-actions button.wd-btn-buy,
  .wd-drawer .wd-product-actions button.single_add_to_cart_button.wd-btn-buy {
    background-color: #54595F;   /* fundo desejado */
    color: #ffffff;              /* texto branco */
    border: 1px solid rgba(0,0,0,0.06);
  }

  /* manter hover/foco mesmo em mobile */
  body .wd-drawer-overlay .wd-drawer .wd-product-actions .wd-btn-buy:active,
  body .wd-drawer-overlay .wd-drawer .wd-product-actions .wd-btn-buy:focus {
    opacity: 0.95;
    transform: none;
  }
}
