/**
 * Theme Name: Astra Child
 * Theme URI: https://wpastra.com/
 * Description: Tema Filho Oficial para a Loja Virtual FG Impressão
 * Author: FG Impressão
 * Author URI: https://fgimpressao.com/
 * Template: astra
 * Version: 1.4.2
 * Text Domain: astra-child
 */

/* ==========================================================================
   Carrossel de Categorias Móvel e H1 Estratégico (Estilo App)
   ========================================================================== */
.fg-cats-nav-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 0 10px 0;
  box-sizing: border-box;
  min-height: 165px;
  contain-intrinsic-size: 165px;
}

.fg-cats-nav-header {
  text-align: center;
  margin-bottom: 16px;
  padding: 0 16px;
}

.fg-seo-main-h1 {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  margin: 0 0 6px 0;
  line-height: 1.35;
  letter-spacing: -0.3px;
}

@media (min-width: 768px) {
  .fg-seo-main-h1 {
    font-size: 24px;
    margin-bottom: 8px;
  }
}

.fg-cats-nav-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #0284c7;
  background: #e0f2fe;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 4px;
}

.fg-cats-nav-track {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px 16px 16px;
  scrollbar-width: none; /* Firefox */
  min-height: 105px;
}

.fg-cats-nav-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

@media (min-width: 992px) {
  .fg-cats-nav-track {
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    padding: 10px 0 20px 0;
  }
}

.fg-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  flex: 0 0 auto;
  width: 74px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fg-cat-item:hover {
  transform: translateY(-4px);
}

.fg-cat-icon-box {
  position: relative;
  width: 66px;
  height: 66px;
  min-width: 66px;
  min-height: 66px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
  border: 2px solid #e2e8f0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fg-cat-item:hover .fg-cat-icon-box {
  border-color: #0284c7;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.25);
}

.fg-cat-icon-box img {
  width: 66px;
  height: 66px;
  min-width: 66px;
  min-height: 66px;
  max-width: 66px;
  max-height: 66px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.fg-cat-badge {
  position: absolute;
  top: -3px;
  right: -6px;
  background: #ef4444;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
  text-transform: uppercase;
}

.fg-cat-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  text-align: center;
  line-height: 1.25;
  max-width: 78px;
  word-wrap: break-word;
}

.fg-cat-item:hover .fg-cat-name {
  color: #0284c7;
}

/* ==========================================================================
   Carrossel de Banners Hero: Exibição 100% Completa (Contain) no Mobile
   ========================================================================== */
.elementor-element.elementor-element-a03cc0b,
.elementor-element.elementor-element-a03cc0b .elementor-slides {
  min-height: 425px;
}

@media (max-width: 1024px) {
  .elementor-element.elementor-element-a03cc0b,
  .elementor-element.elementor-element-a03cc0b .elementor-slides {
    min-height: 240px;
  }
}

@media (max-width: 767px) {
  .elementor-element.elementor-element-a03cc0b,
  .elementor-element.elementor-element-a03cc0b .elementor-slides,
  .elementor-element.elementor-element-a03cc0b .elementor-slide,
  .elementor-element.elementor-element-a03cc0b .swiper-slide {
    height: auto !important;
    min-height: unset !important;
    aspect-ratio: 2025 / 810 !important;
  }
  .elementor-element.elementor-element-a03cc0b .swiper-slide-bg {
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }
}

/* ==========================================================================
   Estabilização do Logotipo Oficial (Sem distorção ou flash cinza)
   ========================================================================== */
.site-branding .custom-logo,
.ast-site-identity .custom-logo {
  width: 296px !important;
  max-width: 100% !important;
  height: 49px !important;
  max-height: 49px !important;
  object-fit: contain !important;
  aspect-ratio: 296 / 49;
  display: block !important;
}

.site-branding .custom-logo-link {
  display: inline-block;
  line-height: 1;
}

/* ==========================================================================
   Bloco Visual de Regra de Preço (Pix à Vista vs Cartão de Crédito 7%)
   ========================================================================== */
.fg-payment-price-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #10b981;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fg-payment-price-box .fg-pix-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.fg-payment-price-box .fg-pix-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #10b981;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}

.fg-payment-price-box .fg-pix-badge svg {
  width: 13px;
  height: 13px;
  fill: #ffffff;
}

.fg-payment-price-box .fg-pix-amount {
  font-size: 19px;
  font-weight: 800;
  color: #047857;
  letter-spacing: -0.3px;
}

.fg-payment-price-box .fg-pix-label {
  font-size: 13.5px;
  color: #334155;
  font-weight: 500;
}

.fg-payment-price-box .fg-card-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 13px;
  color: #64748b;
  border-top: 1px dashed #e2e8f0;
  padding-top: 8px;
}

.fg-payment-price-box .fg-card-row strong {
  color: #1e293b;
  font-weight: 700;
}

.fg-payment-price-box .fg-card-tag {
  font-size: 11px;
  color: #64748b;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 2px;
}

/* Ocultar caixa de preço do topo em produtos que possuem complementos/adicionais */
.single-product:has(.wc-pao-addons-container) .fg-payment-price-box,
.single-product:has(#product-addons-total) .fg-payment-price-box {
  display: none !important;
}

/* Tag no Catálogo / Vitrine removida */
.fg-loop-pix-tag {
  display: none !important;
}

/* ==========================================================================
   Bloco de Pagamento no Subtotal (WooCommerce Product Add-ons)
   ========================================================================== */
.fg-subtotal-payment-box {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-left: 4px solid #10b981;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0 16px 0;
  display: block !important;
  clear: both !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.fg-subtotal-payment-box .fg-sub-pix {
  font-size: 15px;
  color: #047857;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-weight: 600;
  line-height: 1.4;
}

.fg-subtotal-payment-box .fg-sub-pix .fg-sub-val {
  color: #065f46;
  font-weight: 800;
  font-size: 16px;
}

.fg-subtotal-payment-box .fg-sub-card {
  font-size: 13px;
  color: #475569;
  border-top: 1px dashed #bbf7d0;
  padding-top: 6px;
  margin-top: 6px;
  line-height: 1.4;
}

.fg-subtotal-payment-box .fg-sub-card .fg-sub-val {
  color: #1e293b;
  font-weight: 700;
}

/* ==========================================================================
   Checkout: Correção de Layout e Espaçamentos do Pagamento Asaas (Compacto)
   ========================================================================== */

/* 1. Alinhamento perfeito do Radio Button com o Título do método (Pix e Cartão) */
#payment ul.payment_methods li.wc_payment_method {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  margin-bottom: 12px !important;
}

#payment ul.payment_methods li.wc_payment_method > input[type="radio"] {
  margin: 0 8px 0 0 !important;
  float: none !important;
  display: inline-block !important;
  vertical-align: middle !important;
  width: auto !important;
  height: auto !important;
  cursor: pointer !important;
}

#payment ul.payment_methods li.wc_payment_method > label {
  display: inline-flex !important;
  align-items: center !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  color: #1e293b !important;
  cursor: pointer !important;
  line-height: 1.4 !important;
}

#payment ul.payment_methods li.wc_payment_method > label img {
  max-height: 22px !important;
  width: auto !important;
  margin-left: 8px !important;
  vertical-align: middle !important;
  display: inline-block !important;
}

#payment ul.payment_methods li.wc_payment_method > .payment_box {
  width: 100% !important;
  flex-basis: 100% !important;
  margin-top: 8px !important;
}

/* 2. Caixa de Pagamento Compacta e Elegante */
#payment div.payment_box {
  padding: 14px 16px !important;
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  margin-top: 8px !important;
  margin-bottom: 14px !important;
}

#payment div.payment_box > p:first-child {
  margin: 0 0 12px 0 !important;
  font-size: 13px !important;
  color: #64748b !important;
  line-height: 1.4 !important;
}

/* 3. Espaçamento compacto entre campos do formulário */
#payment .payment_box .form-row {
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
}

#payment .payment_box .form-row label,
.woocommerce-checkout #payment .payment_box .form-row label,
.woocommerce-checkout #payment .asaas-cc-form-wrapper label,
.woocommerce-checkout #payment .asaas_field_cc label,
#asaas-cc-name_field label,
#asaas-cc-number_field label,
#asaas-cc-expiration-month_field label,
#asaas-cc-expiration-year_field label,
#asaas-cc-security-code_field label,
#asaas-cc-installments_field label,
.asaas-installments-row label {
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  pointer-events: auto !important;
  color: #334155 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  margin-bottom: 4px !important;
  line-height: 1.3 !important;
  height: auto !important;
  width: auto !important;
  clip: auto !important;
  clip-path: none !important;
  transform: none !important;
  white-space: normal !important;
}

/* Ocultar label redundante "Data de expiração" para eliminar espaço fantasma */
#assas-cc-expiration-label_field {
  display: none !important;
}

/* 4. Altura dos Inputs e Selects padronizada e moderna (38px) */
#payment .payment_box input.input-text,
#payment .payment_box select {
  width: 100% !important;
  height: 38px !important;
  padding: 7px 11px !important;
  font-size: 13.5px !important;
  line-height: 1.4 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

#payment .payment_box input.input-text:focus,
#payment .payment_box select:focus {
  border-color: #0284c7 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

/* 5. Linha de Data de Validade e Clearfix */
#asaas-cc-expiration_field {
  margin-bottom: 10px !important;
  clear: both !important;
}

#asaas-cc-expiration_field::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}

#asaas-cc-expiration-month_field,
#asaas-cc-expiration-year_field {
  margin-bottom: 0 !important;
}

#payment .payment_box .form-row-first {
  width: 48% !important;
  margin-right: 4% !important;
  float: left !important;
}

#payment .payment_box .form-row-last {
  width: 48% !important;
  margin-right: 0 !important;
  float: right !important;
}

/* 6. CVV e Select de Parcelas com dimensões harmoniosas */
#asaas-cc-security-code_field input {
  max-width: 200px !important;
}

.asaas_field_cc select,
#asaas-cc-installments_field select {
  cursor: pointer !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e') !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 15px !important;
  padding-right: 32px !important;
}

/* ==========================================================================
   Página de Produto Único: Otimização de Layout, Tipografia e Primeira Dobra
   ========================================================================== */

/* 1. Remover Barra Lateral e expandir área útil no Produto, Carrinho, Checkout e Pedido Recebido */
.single-product #secondary,
.woocommerce-cart #secondary,
.woocommerce-checkout #secondary,
.woocommerce-order-received #secondary {
  display: none !important;
}

.single-product #primary,
.woocommerce-cart #primary,
.woocommerce-checkout #primary,
.woocommerce-order-received #primary {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single-product .site-content .ast-container,
.woocommerce-cart .site-content .ast-container,
.woocommerce-checkout .site-content .ast-container,
.woocommerce-order-received .site-content .ast-container {
  max-width: 1240px !important;
  padding: 15px 24px !important;
}

/* 2. Grid de 2 Colunas (Galeria e Compra lado a lado) */
@media (min-width: 922px) {
  .single-product div.product {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 36px !important;
  }
  .single-product div.product .woocommerce-product-gallery {
    width: 44% !important;
    max-width: 480px !important;
    margin: 0 !important;
    float: none !important;
  }
  .single-product div.product .summary.entry-summary {
    flex: 1 !important;
    min-width: 320px !important;
    margin: 0 !important;
    float: none !important;
  }
}

@media (max-width: 921px) {
  .single-product div.product .woocommerce-product-gallery,
  .single-product div.product .summary.entry-summary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
  }
}

/* Garante que abas técnicas fiquem abaixo da primeira dobra */
.single-product div.product .woocommerce-tabs,
.single-product div.product .related.products,
.single-product div.product .upsells.products {
  width: 100% !important;
  flex: 0 0 100% !important;
  margin-top: 30px !important;
}

/* 3. Tipografia e Respiros Compactos */
.single-product .summary .single-product-category {
  display: block;
  margin-bottom: 2px !important;
}
.single-product .summary .single-product-category a {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b !important;
  text-decoration: none;
}
.single-product .summary .single-product-category a:hover {
  color: #0284c7 !important;
}

.single-product .summary h1.product_title.entry-title {
  font-size: 21px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 6px 0 !important;
}

.single-product .summary p.price {
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #059669 !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.2 !important;
}
.single-product .summary p.price .amount {
  font-size: 19px !important;
  font-weight: 700 !important;
}

.single-product .summary .woocommerce-product-details__short-description {
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: #475569 !important;
  margin: 0 0 10px 0 !important;
  padding: 8px 12px !important;
  background: #f8fafc;
  border-left: 3px solid #cbd5e1;
  border-radius: 4px;
}
.single-product .summary .woocommerce-product-details__short-description p {
  margin: 0 0 4px 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
}
.single-product .summary .woocommerce-product-details__short-description p:last-child {
  margin-bottom: 0 !important;
}

/* 4. Formulário de Variações Compacto */
.single-product .summary form.cart {
  margin: 0 0 8px 0 !important;
}
.single-product .summary form.cart .variations {
  margin-bottom: 6px !important;
  width: 100% !important;
  border: none !important;
}
.single-product .summary form.cart .variations tbody,
.single-product .summary form.cart .variations tr,
.single-product .summary form.cart .variations td {
  display: block !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.single-product .summary form.cart .variations td.label {
  margin-bottom: 3px !important;
}
.single-product .summary form.cart .variations td.label label {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.single-product .summary form.cart .variations td.value select {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  padding: 6px 10px !important;
  height: 38px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  color: #1e293b !important;
  max-width: 280px !important;
  width: 100% !important;
}
.single-product .summary form.cart .reset_variations {
  font-size: 11px !important;
  color: #94a3b8 !important;
  margin-left: 8px !important;
  text-decoration: underline !important;
}
.single-product .summary .single_variation {
  margin: 4px 0 !important;
}
.single-product .summary .woocommerce-variation-price .price {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
}
.single-product .summary .woocommerce-variation-availability {
  font-size: 11.5px !important;
  color: #64748b !important;
  margin: 2px 0 4px 0 !important;
}

/* 5. Acabamentos (WC-PAO) em Botões/Chips Compactos */
.single-product .wc-pao-addons-container {
  margin: 8px 0 !important;
  padding: 8px 10px !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.single-product .wc-pao-addon-container {
  margin-bottom: 6px !important;
}
.single-product .wc-pao-addon-container:last-child {
  margin-bottom: 0 !important;
}
.single-product .wc-pao-addon-name {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-bottom: 4px !important;
  display: block !important;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.single-product .wc-pao-addon-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.single-product .wc-pao-addon-wrap > div {
  display: inline-flex !important;
  align-items: center !important;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 9px !important;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  margin: 0 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.single-product .wc-pao-addon-wrap > div:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}
.single-product .wc-pao-addon-wrap > div:has(input:checked) {
  border-color: #0284c7 !important;
  background: #f0f9ff !important;
  box-shadow: 0 0 0 1px #0284c7 !important;
}
.single-product .wc-pao-addon-wrap input[type="radio"] {
  margin: 0 5px 0 0 !important;
  cursor: pointer;
  accent-color: #0284c7;
  width: 14px !important;
  height: 14px !important;
}
.single-product .wc-pao-addon-wrap label {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  cursor: pointer;
  margin: 0 !important;
  line-height: 1.3 !important;
}
.single-product .wc-pao-addon-wrap .wc-pao-addon-price {
  font-size: 11px !important;
  color: #0369a1 !important;
  font-weight: 600 !important;
  margin-left: 2px;
}

/* 6. Dropzone de Arte (WPO) Compacto */
.single-product .wpo-options-container {
  margin: 8px 0 !important;
}
.single-product .wpo-field {
  margin-bottom: 6px !important;
}
.single-product .wpo-choice-label {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-bottom: 3px !important;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.single-product .wpo-file-dropzone.dropzone {
  min-height: 42px !important;
  padding: 6px 12px !important;
  border: 1.5px dashed #0284c7 !important;
  background: #f0f9ff !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
}
.single-product .wpo-file-dropzone .dz-message {
  margin: 0 !important;
}
.single-product .wpo-file-dropzone .dz-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 !important;
  color: #0284c7 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}
.single-product .wpo-file-dropzone .dz-button-icon svg {
  width: 18px !important;
  height: 18px !important;
  fill: #0284c7 !important;
}
.single-product .wpo-field-description {
  font-size: 11px !important;
  line-height: 1.35 !important;
  color: #64748b !important;
  margin: 3px 0 6px 0 !important;
}
.single-product .wpo-field-text input[type="text"] {
  height: 32px !important;
  font-size: 12px !important;
  padding: 3px 8px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  width: 100% !important;
  max-width: 400px !important;
}

/* 7. Quantidade e Botão Adicionar ao Carrinho */
.single-product .woocommerce-variation-add-to-cart {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 8px 0 !important;
}
.single-product .quantity {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
}
.single-product .quantity .qty {
  height: 40px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  width: 55px !important;
  text-align: center;
}
.single-product .ast-qty-placeholder {
  height: 40px !important;
  line-height: 38px !important;
  width: 32px !important;
  text-align: center;
}
.single-product .single_add_to_cart_button {
  height: 40px !important;
  padding: 0 22px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-radius: 6px !important;
  background-color: #059669 !important;
  border: none !important;
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.25) !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
}
.single-product .single_add_to_cart_button:hover {
  background-color: #047857 !important;
  box-shadow: 0 4px 6px rgba(5, 150, 105, 0.35) !important;
}

/* 8. Subtotal & Parcelamento */
.single-product #product-addons-total {
  margin: 8px 0 4px 0 !important;
  padding: 6px 12px !important;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.single-product #product-addons-total .wc-pao-subtotal-line .amount {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}
.single-product .fg-subtotal-payment-box {
  margin-top: 6px !important;
  padding: 6px 12px !important;
}

/* ==========================================================================
   Módulo de Envio de Arte e Observações no Carrinho
   ========================================================================== */

/* 1. Reordenação e alinhamento impecável na coluna do produto */
.woocommerce-cart table.cart td.product-name {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
}

.woocommerce-cart table.cart td.product-name > a {
  order: 1 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  line-height: 1.3 !important;
  margin-bottom: 2px !important;
}

.woocommerce-cart table.cart td.product-name dl.variation {
  order: 2 !important;
  margin: 2px 0 4px 0 !important;
  font-size: 12px !important;
  color: #475569 !important;
}

.woocommerce-cart table.cart td.product-name .wpced-delivery-time {
  order: 3 !important;
  margin: 2px 0 6px 0 !important;
  display: inline-block !important;
}

.woocommerce-cart table.cart td.product-name .fg-cart-art-wrapper {
  order: 4 !important;
  width: 100% !important;
  max-width: 540px !important;
}

.fg-cart-upload-btn-ui:hover {
  background: #f0f9ff !important;
  border-color: #0369a1 !important;
  color: #0369a1 !important;
}

.fg-cart-obs-input:focus {
  border-color: #0284c7 !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15) !important;
}

/* 2. Forçar input file completamente invisível */
.woocommerce table.cart input[type="file"].fg-cart-file-input,
.woocommerce-cart table.cart input[type="file"].fg-cart-file-input,
input[type="file"].fg-cart-file-input {
  display: none !important;
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* 3. Botão de remover arquivo sem herança de botão roxo do Astra */
.fg-btn-remove-art {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #ef4444 !important;
  cursor: pointer !important;
  font-weight: bold !important;
  font-size: 13px !important;
  padding: 0 3px !important;
  margin: 0 0 0 4px !important;
  line-height: 1 !important;
  border-radius: 0 !important;
  min-height: auto !important;
  height: auto !important;
  width: auto !important;
  text-transform: none !important;
}
.fg-btn-remove-art:hover {
  background: transparent !important;
  background-color: transparent !important;
  color: #b91c1c !important;
}

/* 4. Spinner de envio */
.fg-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid #bae6fd;
  border-top-color: #0284c7;
  border-radius: 50%;
  display: inline-block;
  animation: fg-spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes fg-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Checkout: Celular e Telefone lado a lado + Otimização de Campos
   ========================================================================== */
.woocommerce-checkout #billing_cellphone_field {
  width: 48% !important;
  float: left !important;
  clear: left !important;
  margin-right: 4% !important;
  display: inline-block !important;
}

.woocommerce-checkout #billing_phone_field {
  width: 48% !important;
  float: right !important;
  clear: none !important;
  margin-right: 0 !important;
  display: inline-block !important;
}

/* Esconder qualquer resquício do campo de documento duplicado */
#billing_document_field,
.woocommerce-checkout #billing_document_field {
  display: none !important;
}

@media (max-width: 768px) {
  .woocommerce-checkout #billing_cellphone_field,
  .woocommerce-checkout #billing_phone_field {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
    clear: both !important;
  }
}

/* Estilo visual para campos travados (somente leitura) */
#billing_cpf[readonly],
#billing_cnpj[readonly],
.woocommerce-checkout #billing_cpf[readonly],
.woocommerce-checkout #billing_cnpj[readonly] {
  background-color: #f1f5f9 !important;
  cursor: not-allowed !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
  user-select: none !important;
}

/* Checkout: Revisão do Pedido e Contenção Estrita da Tabela */
.woocommerce-checkout table.woocommerce-checkout-review-order-table,
.woocommerce-checkout #order_review table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: auto !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  border-collapse: collapse !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table td {
  box-sizing: border-box !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table th.product-name,
.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-name,
.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name {
  display: table-cell !important;
  width: auto !important;
  max-width: none !important;
  padding: 12px 10px 12px 0 !important;
  vertical-align: top !important;
  text-align: left !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table th.product-total,
.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-total {
  display: table-cell !important;
  width: auto !important;
  padding: 12px 0 !important;
  vertical-align: top !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.woocommerce-checkout #order_review {
  box-sizing: border-box !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

/* ==========================================================================
   Módulo Nativo de Prazo de Produção (Design Moderno e Responsivo)
   ========================================================================== */

/* 1. Badge de Prazo de Produção na Página do Produto */
.fg-single-prod-lead-time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 6px 0;
  padding: 8px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #0284c7;
  border-radius: 6px;
  font-size: 13px;
  color: #334155;
  line-height: 1.35;
}

.fg-single-prod-lead-time .fg-lead-icon {
  font-size: 14px;
  line-height: 1;
}

.fg-single-prod-lead-time .fg-lead-label {
  color: #64748b;
  font-weight: 500;
}

.fg-single-prod-lead-time .fg-lead-val {
  color: #0f172a;
  font-weight: 700;
}

/* 2. Prazo de Produção e Variações no Carrinho e Checkout */
.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-name,
.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name,
.woocommerce-checkout td.product-name {
  display: table-cell !important;
  vertical-align: top !important;
  padding: 10px 10px 10px 0 !important;
}

.woocommerce-checkout td.product-name .fg-checkout-thumb-box {
  grid-column: 1 !important;
  grid-row: 1 / span 10 !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.woocommerce-checkout td.product-name .fg-checkout-thumb-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.woocommerce-checkout td.product-name .fg-checkout-prod-name {
  grid-column: 2 !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
  line-height: 1.35 !important;
}

.woocommerce-checkout td.product-name .product-quantity {
  grid-column: 2 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  color: #64748b !important;
  margin-top: 2px !important;
}

.woocommerce-checkout td.product-name dl.variation,
.woocommerce-cart table.cart td.product-name dl.variation {
  grid-column: 2 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 4px 6px !important;
  margin: 4px 0 0 0 !important;
  width: auto !important;
}

.woocommerce-checkout td.product-name dl.variation dt,
.woocommerce-cart table.cart td.product-name dl.variation dt {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  color: #475569 !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
}

.woocommerce-checkout td.product-name dl.variation dd,
.woocommerce-cart table.cart td.product-name dl.variation dd {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
}

.woocommerce-checkout td.product-name dl.variation dd p,
.woocommerce-cart table.cart td.product-name dl.variation dd p {
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
}

.fg-cart-lead-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 2px 7px !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  line-height: 1.25 !important;
}

/* ==========================================================================
   Página de Pedido Recebido / Thank You (/checkout/order-received/)
   ========================================================================== */

/* 1. Ocultar link 'Adicionar widget' e sidebars vazias do Astra */
.woocommerce-order-received .widget-area,
.woocommerce-order-received #secondary,
.woocommerce-checkout .widget-area,
.woocommerce-checkout #secondary,
.woocommerce-view-order .widget-area,
.woocommerce-view-order #secondary,
.woocommerce-account .widget-area,
.woocommerce-account #secondary,
.ast-separate-container.woocommerce-order-received #secondary,
.ast-separate-container.woocommerce-view-order #secondary,
.ast-separate-container.woocommerce-account #secondary,
a[href*="widgets.php"] {
  display: none !important;
}

/* 2. Preenchimento Total da Largura (padrão idêntico ao Carrinho e Checkout) */
.woocommerce-order-received .woocommerce-order,
.woocommerce-view-order .woocommerce-order,
.woocommerce-account .woocommerce {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 0 35px 0 !important;
}

.woocommerce-order-received #primary,
.woocommerce-order-received .site-main,
.woocommerce-view-order #primary,
.woocommerce-view-order .site-main,
.woocommerce-account #primary,
.woocommerce-account .site-main {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-order-received .site-content .ast-container,
.woocommerce-view-order .site-content .ast-container,
.woocommerce-account .site-content .ast-container {
  max-width: 1240px !important;
  padding: 15px 24px !important;
  width: 100% !important;
}

/* 2.1 Minha Conta: Proporções Perfeitas no Desktop e Mobile */
.woocommerce-account .woocommerce-MyAccount-navigation {
  float: left !important;
  width: 250px !important;
  max-width: 25% !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
  float: right !important;
  width: calc(100% - 280px) !important;
  max-width: calc(100% - 280px) !important;
}

.woocommerce-account .woocommerce::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}

@media (max-width: 840px) {
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation {
    margin-bottom: 24px !important;
  }
}

/* 3. Mensagem de Sucesso Inicial */
.woocommerce-order-received .woocommerce-notice--success,
.woocommerce-order-received p.woocommerce-thankyou-order-received {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #15803d !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  text-align: center !important;
  padding: 16px 20px !important;
  border-radius: 8px !important;
  margin: 15px 0 25px 0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.woocommerce-view-order .woocommerce-MyAccount-content > p:first-of-type {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 14px 18px !important;
  margin: 0 0 24px 0 !important;
  font-size: 14.5px !important;
  color: #334155 !important;
  line-height: 1.5 !important;
}

.woocommerce-view-order .woocommerce-MyAccount-content > p:first-of-type mark {
  background: transparent !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

/* 4. Resumo do Pedido - Alinhamento Perfeito em Linha Única no Desktop */
.woocommerce-order-received ul.woocommerce-order-overview,
.woocommerce-view-order ul.woocommerce-order-overview,
.woocommerce-account ul.woocommerce-order-overview,
ul.woocommerce-order-overview {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: stretch !important;
  gap: 16px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 20px 24px !important;
  margin: 0 0 32px 0 !important;
  list-style: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.woocommerce-order-received ul.woocommerce-order-overview li,
.woocommerce-view-order ul.woocommerce-order-overview li,
.woocommerce-account ul.woocommerce-order-overview li,
ul.woocommerce-order-overview li {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  float: none !important;
  border: none !important;
  border-right: 1px solid #f1f5f9 !important;
  padding: 0 12px 0 0 !important;
  margin: 0 !important;
  font-size: 13px !important;
  color: #64748b !important;
  line-height: 1.4 !important;
  text-transform: none !important;
}

.woocommerce-order-received ul.woocommerce-order-overview li:last-child,
.woocommerce-view-order ul.woocommerce-order-overview li:last-child,
.woocommerce-account ul.woocommerce-order-overview li:last-child,
ul.woocommerce-order-overview li:last-child {
  border-right: none !important;
  padding-right: 0 !important;
}

.woocommerce-order-received ul.woocommerce-order-overview li strong,
.woocommerce-view-order ul.woocommerce-order-overview li strong,
.woocommerce-account ul.woocommerce-order-overview li strong,
ul.woocommerce-order-overview li strong {
  display: block !important;
  font-size: 14.5px !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  margin-top: 5px !important;
  word-break: break-word !important;
}

@media (max-width: 920px) {
  .woocommerce-order-received ul.woocommerce-order-overview,
  .woocommerce-view-order ul.woocommerce-order-overview,
  .woocommerce-account ul.woocommerce-order-overview,
  ul.woocommerce-order-overview {
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding: 16px !important;
  }
  .woocommerce-order-received ul.woocommerce-order-overview li,
  .woocommerce-view-order ul.woocommerce-order-overview li,
  .woocommerce-account ul.woocommerce-order-overview li,
  ul.woocommerce-order-overview li {
    flex: 1 1 calc(50% - 12px) !important;
    min-width: 140px !important;
    border-right: none !important;
    padding: 12px 14px !important;
    background: #f8fafc !important;
    border-radius: 8px !important;
    border: 1px solid #edf2f7 !important;
  }
}

@media (max-width: 520px) {
  .woocommerce-order-received ul.woocommerce-order-overview li,
  .woocommerce-view-order ul.woocommerce-order-overview li,
  .woocommerce-account ul.woocommerce-order-overview li,
  ul.woocommerce-order-overview li {
    flex: 1 1 100% !important;
  }
}

/* 5. Seção Detalhes do Pagamento - Pix Asaas */
.woocommerce-order-received .woocommerce-order-details h2.woocommerce-order-details__title,
.woocommerce-view-order .woocommerce-order-details h2.woocommerce-order-details__title,
.woocommerce-account .woocommerce-order-details h2.woocommerce-order-details__title,
h2.woocommerce-order-details__title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 12px !important;
}

.woocommerce-order-received .woocommerce-order-details ul.order_details,
.woocommerce-view-order .woocommerce-order-details ul.order_details,
.woocommerce-account .woocommerce-order-details ul.order_details,
.woocommerce-order-details ul.order_details {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 22px !important;
  margin: 0 0 35px 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  list-style: none !important;
}

.woocommerce-order-received .woocommerce-order-details ul.order_details > li,
.woocommerce-view-order .woocommerce-order-details ul.order_details > li,
.woocommerce-account .woocommerce-order-details ul.order_details > li,
.woocommerce-order-details ul.order_details > li {
  float: none !important;
  clear: none !important;
  border: none !important;
  border-right: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 14px !important;
  text-transform: none !important;
  color: #334155 !important;
  line-height: 1.5 !important;
}

.woocommerce-order-received .woocommerce-order-details ul.order_details > li:first-child,
.woocommerce-view-order .woocommerce-order-details ul.order_details > li:first-child,
.woocommerce-account .woocommerce-order-details ul.order_details > li:first-child,
.woocommerce-order-details ul.order_details > li:first-child {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0284c7 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

/* Bloco do QR Code e Instruções lado a lado */
.woocommerce-order-received .asaas-pix-instructions,
.woocommerce-view-order .asaas-pix-instructions,
.woocommerce-account .asaas-pix-instructions,
.asaas-pix-instructions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 24px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 20px !important;
}

.woocommerce-order-received .asaas-pix-instructions img.js-pix-qr-code,
.woocommerce-view-order .asaas-pix-instructions img.js-pix-qr-code,
.woocommerce-account .asaas-pix-instructions img.js-pix-qr-code,
.asaas-pix-instructions img.js-pix-qr-code {
  width: 170px !important;
  height: 170px !important;
  max-width: 100% !important;
  background: #ffffff !important;
  padding: 8px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
  flex-shrink: 0 !important;
}

.woocommerce-order-received ol.asaas-pix-instructions__list,
.woocommerce-view-order ol.asaas-pix-instructions__list,
.woocommerce-account ol.asaas-pix-instructions__list,
ol.asaas-pix-instructions__list {
  flex: 1 !important;
  min-width: 240px !important;
  margin: 0 !important;
  padding-left: 20px !important;
  list-style-type: decimal !important;
}

.woocommerce-order-received ol.asaas-pix-instructions__list li,
.woocommerce-view-order ol.asaas-pix-instructions__list li,
.woocommerce-account ol.asaas-pix-instructions__list li,
ol.asaas-pix-instructions__list li {
  float: none !important;
  border: none !important;
  border-right: none !important;
  padding: 0 !important;
  margin-bottom: 6px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  color: #334155 !important;
  line-height: 1.5 !important;
}

.woocommerce-order-received ol.asaas-pix-instructions__list li:last-child,
.woocommerce-view-order ol.asaas-pix-instructions__list li:last-child,
.woocommerce-account ol.asaas-pix-instructions__list li:last-child,
ol.asaas-pix-instructions__list li:last-child {
  color: #dc2626 !important;
  font-weight: 600 !important;
  margin-bottom: 0 !important;
}

/* Bloco Copia e Cola Pix */
.woocommerce-order-received .asaas-pix-copy-to-clipboard,
.woocommerce-view-order .asaas-pix-copy-to-clipboard,
.woocommerce-account .asaas-pix-copy-to-clipboard,
.asaas-pix-copy-to-clipboard {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.woocommerce-order-received .asaas-pix-copy-to-clipboard > div,
.woocommerce-view-order .asaas-pix-copy-to-clipboard > div,
.woocommerce-account .asaas-pix-copy-to-clipboard > div,
.asaas-pix-copy-to-clipboard > div {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
}

.woocommerce-order-received .woocommerce-order-details__asaas-pix-payload,
.woocommerce-view-order .woocommerce-order-details__asaas-pix-payload,
.woocommerce-account .woocommerce-order-details__asaas-pix-payload,
.woocommerce-order-details__asaas-pix-payload,
.asaas-pix-copy-to-clipboard p {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 12px !important;
  color: #475569 !important;
  background: #f1f5f9 !important;
  border: 1px dashed #94a3b8 !important;
  border-radius: 6px !important;
  padding: 10px 14px !important;
  word-break: break-all !important;
  word-wrap: break-word !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  height: auto !important;
  max-height: 70px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  margin: 0 0 10px 0 !important;
  user-select: all !important;
}

.woocommerce-order-received button.woocommerce-order-details__asaas-pix-button,
.woocommerce-view-order button.woocommerce-order-details__asaas-pix-button,
.woocommerce-account button.woocommerce-order-details__asaas-pix-button,
button.woocommerce-order-details__asaas-pix-button,
.asaas-pix-copy-to-clipboard button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 360px !important;
  padding: 12px 20px !important;
  background: #16a34a !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.25) !important;
  margin: 4px 0 0 0 !important;
}

.woocommerce-order-received button.woocommerce-order-details__asaas-pix-button:hover,
.woocommerce-view-order button.woocommerce-order-details__asaas-pix-button:hover,
.woocommerce-account button.woocommerce-order-details__asaas-pix-button:hover,
button.woocommerce-order-details__asaas-pix-button:hover,
.asaas-pix-copy-to-clipboard button:hover {
  background: #15803d !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35) !important;
  transform: translateY(-1px) !important;
}

/* Seção Detalhes do Pagamento - Pix Mercado Pago */
.woocommerce-order-received .mp-details-title,
.woocommerce-view-order .mp-details-title,
.woocommerce-account .mp-details-title,
.mp-details-title {
  font-family: inherit !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 24px 0 14px 0 !important;
}

.woocommerce-order-received .mp-details-pix,
.woocommerce-view-order .mp-details-pix,
.woocommerce-account .mp-details-pix,
.mp-details-pix {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
  padding: 0 !important;
  margin: 0 0 35px 0 !important;
  overflow: hidden !important;
  display: block !important;
  width: 100% !important;
}

.mp-row-checkout-pix {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}

.mp-col-md-4 {
  flex: 1 1 320px !important;
  width: auto !important;
  float: none !important;
  background: #f8fafc !important;
  padding: 24px 26px !important;
  border-right: 1px solid #e2e8f0 !important;
  box-sizing: border-box !important;
}

.mp-col-md-8 {
  flex: 2 1 380px !important;
  width: auto !important;
  float: none !important;
  background: #ffffff !important;
  padding: 26px 30px !important;
  box-sizing: border-box !important;
  border-left: none !important;
}

.mp-details-pix-img {
  width: 130px !important;
  height: auto !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  display: block !important;
}

.mp-details-pix-title {
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 14px 0 !important;
  padding: 0 !important;
}

.mp-steps-congrats {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.mp-details-list {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mp-details-pix-number-p {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  border-radius: 50% !important;
  background: #0284c7 !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  border: none !important;
  line-height: 1 !important;
}

.mp-details-list-description {
  font-family: inherit !important;
  font-size: 13.5px !important;
  color: #334155 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  width: auto !important;
}

.mp-details-pix-amount {
  font-family: inherit !important;
  font-size: 15px !important;
  color: #475569 !important;
  margin: 0 0 6px 0 !important;
  text-align: center !important;
}

.mp-details-pix-qr-value {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #16a34a !important;
  margin-left: 6px !important;
}

.mp-details-pix-qr-title {
  font-family: inherit !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
  text-align: center !important;
}

.mp-details-pix-qr-img {
  width: 175px !important;
  height: 175px !important;
  max-width: 100% !important;
  background: #ffffff !important;
  padding: 8px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  margin: 0 auto 10px auto !important;
  display: block !important;
}

.mp-details-pix-qr-subtitle {
  font-family: inherit !important;
  font-size: 13px !important;
  color: #dc2626 !important;
  font-weight: 600 !important;
  margin: 0 0 18px 0 !important;
  text-align: center !important;
}

.mp-details-pix-container {
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.mp-details-pix-qr-description {
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  margin: 0 0 8px 0 !important;
}

.mp-row-checkout-pix-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mp-qr-input {
  width: 100% !important;
  box-sizing: border-box !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 12px !important;
  color: #475569 !important;
  background: #f1f5f9 !important;
  border: 1px dashed #94a3b8 !important;
  border-radius: 6px !important;
  padding: 10px 14px !important;
  margin: 0 !important;
  height: auto !important;
  line-height: 1.4 !important;
  text-align: left !important;
}

.mp-details-pix-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 360px !important;
  padding: 13px 20px !important;
  background: #16a34a !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.25) !important;
  margin: 8px auto 0 auto !important;
}

.mp-details-pix-button:hover {
  background: #15803d !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35) !important;
  transform: translateY(-1px) !important;
}

.woocommerce-order-received .mp-pix-image-container,
.woocommerce-view-order .mp-pix-image-container,
.woocommerce-account .mp-pix-image-container,
.mp-pix-image-container {
  display: none !important;
}

@media (max-width: 767.98px) {
  .mp-col-md-4 {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 20px !important;
  }
  .mp-col-md-8 {
    width: 100% !important;
    padding: 22px 16px !important;
  }
  .mp-details-pix-img {
    margin: 0 auto 14px auto !important;
  }
  .mp-details-pix-title {
    text-align: center !important;
  }
}

/* 6. Tabela de Detalhes do Pedido */
.woocommerce-order-received table.woocommerce-table--order-details,
.woocommerce-view-order table.woocommerce-table--order-details,
.woocommerce-account table.woocommerce-table--order-details,
table.woocommerce-table--order-details {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  margin-top: 14px !important;
  margin-bottom: 25px !important;
}

.woocommerce-order-received table.woocommerce-table--order-details th,
.woocommerce-view-order table.woocommerce-table--order-details th,
.woocommerce-account table.woocommerce-table--order-details th,
table.woocommerce-table--order-details th {
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 12px 18px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.woocommerce-order-received table.woocommerce-table--order-details td,
.woocommerce-view-order table.woocommerce-table--order-details td,
.woocommerce-account table.woocommerce-table--order-details td,
table.woocommerce-table--order-details td {
  padding: 14px 18px !important;
  border-top: 1px solid #f1f5f9 !important;
  font-size: 14px !important;
  color: #1e293b !important;
}

.woocommerce-order-received table.woocommerce-table--order-details tfoot th,
.woocommerce-order-received table.woocommerce-table--order-details tfoot td,
.woocommerce-view-order table.woocommerce-table--order-details tfoot th,
.woocommerce-view-order table.woocommerce-table--order-details tfoot td,
.woocommerce-account table.woocommerce-table--order-details tfoot th,
.woocommerce-account table.woocommerce-table--order-details tfoot td {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  font-size: 14px !important;
}

.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child td,
.woocommerce-view-order table.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-view-order table.woocommerce-table--order-details tfoot tr:last-child td,
.woocommerce-account table.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-account table.woocommerce-table--order-details tfoot tr:last-child td {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.woocommerce-order-received .wc-item-meta,
.woocommerce-view-order .wc-item-meta,
.woocommerce-account .wc-item-meta,
ul.wc-item-meta {
  margin: 6px 0 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
  font-size: 12.5px !important;
  color: #64748b !important;
}

.woocommerce-order-received .wc-item-meta li,
.woocommerce-view-order .wc-item-meta li,
.woocommerce-account .wc-item-meta li,
ul.wc-item-meta li {
  margin: 3px 0 !important;
  display: flex !important;
  gap: 5px !important;
  align-items: center !important;
}

.woocommerce-order-received .wc-item-meta li strong,
.woocommerce-view-order .wc-item-meta li strong,
.woocommerce-account .wc-item-meta li strong,
ul.wc-item-meta li strong {
  color: #334155 !important;
  font-weight: 600 !important;
}

.woocommerce-order-received .wc-item-meta li p,
.woocommerce-view-order .wc-item-meta li p,
.woocommerce-account .wc-item-meta li p,
ul.wc-item-meta li p {
  margin: 0 !important;
  display: inline !important;
}

/* 7. Botão Cancelar Pedido com Alta Visibilidade e Contraste */
.woocommerce-order-received table.woocommerce-table--order-details th.order-actions--heading,
.woocommerce-view-order table.woocommerce-table--order-details th.order-actions--heading,
.woocommerce-account table.woocommerce-table--order-details th.order-actions--heading,
table.woocommerce-table--order-details th.order-actions--heading {
  vertical-align: middle !important;
  font-weight: 700 !important;
  color: #475569 !important;
  text-transform: uppercase !important;
}

.woocommerce-order-received a.button.cancel,
.woocommerce-order-received a.order-actions-button.cancel,
.woocommerce-order-received a.cancel,
.woocommerce-order-received a[href*="cancel_order"],
.woocommerce-order-received table.woocommerce-table--order-details a.button.cancel,
.woocommerce-order-received table.woocommerce-table--order-details a.order-actions-button.cancel,
.woocommerce-view-order a.button.cancel,
.woocommerce-view-order a.order-actions-button.cancel,
.woocommerce-view-order a.cancel,
.woocommerce-view-order a[href*="cancel_order"],
.woocommerce-view-order table.woocommerce-table--order-details a.button.cancel,
.woocommerce-view-order table.woocommerce-table--order-details a.order-actions-button.cancel,
.woocommerce-account a.button.cancel,
.woocommerce-account a.order-actions-button.cancel,
.woocommerce-table--order-details a.button.cancel,
.woocommerce-table--order-details a.order-actions-button.cancel,
.woocommerce-table--order-details a.cancel,
.woocommerce-table--order-details a[href*="cancel_order"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 10px 20px !important;
  background-color: #dc2626 !important; /* Vermelho vibrante de perigo */
  color: #ffffff !important; /* Texto branco 100% nítido e legível */
  border: 1px solid #b91c1c !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.woocommerce-order-received a.button.cancel:hover,
.woocommerce-order-received a.order-actions-button.cancel:hover,
.woocommerce-order-received a.cancel:hover,
.woocommerce-order-received a[href*="cancel_order"]:hover,
.woocommerce-order-received table.woocommerce-table--order-details a.button.cancel:hover,
.woocommerce-order-received table.woocommerce-table--order-details a.order-actions-button.cancel:hover,
.woocommerce-view-order a.button.cancel:hover,
.woocommerce-view-order a.order-actions-button.cancel:hover,
.woocommerce-view-order a.cancel:hover,
.woocommerce-view-order a[href*="cancel_order"]:hover,
.woocommerce-view-order table.woocommerce-table--order-details a.button.cancel:hover,
.woocommerce-view-order table.woocommerce-table--order-details a.order-actions-button.cancel:hover,
.woocommerce-account a.button.cancel:hover,
.woocommerce-account a.order-actions-button.cancel:hover,
.woocommerce-table--order-details a.button.cancel:hover,
.woocommerce-table--order-details a.order-actions-button.cancel:hover,
.woocommerce-table--order-details a.cancel:hover,
.woocommerce-table--order-details a[href*="cancel_order"]:hover {
  background-color: #b91c1c !important;
  color: #ffffff !important;
  border-color: #991b1b !important;
  box-shadow: 0 4px 10px rgba(185, 28, 28, 0.35) !important;
  transform: translateY(-1px) !important;
}

/* 8. Layout com Foto do Produto nos Detalhes do Pedido */
.woocommerce-table--order-details td.product-name {
  vertical-align: middle !important;
  padding: 16px !important;
}

.woocommerce-table--order-details td.product-total {
  vertical-align: middle !important;
  font-weight: 600 !important;
  color: #1e293b !important;
}

.fg-order-product-layout {
  display: flex !important;
  align-items: flex-start !important;
  gap: 16px !important;
}

.fg-order-item-thumbnail {
  flex-shrink: 0 !important;
  width: 72px !important;
  height: 72px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1px solid #e2e8f0 !important;
  background-color: #f8fafc !important;
  display: block !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.fg-order-item-thumbnail:hover {
  transform: scale(1.03) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.fg-order-item-thumbnail img,
.fg-order-product-thumb-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
}

.fg-order-product-info {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.fg-order-product-info .fg-order-item-title {
  display: inline !important;
}

.fg-order-product-info .fg-order-item-title a {
  font-weight: 600 !important;
  color: #1e293b !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  transition: color 0.2s ease !important;
}

.fg-order-product-info .fg-order-item-title a:hover {
  color: #502bf6 !important;
}

.fg-order-product-info .product-quantity {
  font-weight: 700 !important;
  color: #64748b !important;
  margin-left: 4px !important;
}

.fg-order-product-info ul.wc-item-meta {
  margin-top: 6px !important;
  padding-left: 0 !important;
  list-style: none !important;
}

/* Fallback sem flex layout */
.woocommerce-table--order-details td.product-name:not(:has(.fg-order-product-layout)) .fg-order-item-thumbnail {
  float: left !important;
  margin-right: 16px !important;
  margin-bottom: 8px !important;
}
.woocommerce-table--order-details td.product-name:not(:has(.fg-order-product-layout)) ul.wc-item-meta {
  display: flow-root !important;
}

@media (max-width: 600px) {
  .fg-order-item-thumbnail {
    width: 56px !important;
    height: 56px !important;
  }
  .fg-order-product-layout {
    gap: 12px !important;
  }
}

/* 9. Endereço de Cobrança e Entrega Compacto e Elegante */
.woocommerce-customer-details {
  margin-top: 28px !important;
}

.woocommerce-customer-details h2,
.woocommerce-customer-details .woocommerce-column__title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-bottom: 12px !important;
}

.woocommerce-customer-details address,
.woocommerce-Address address,
.woocommerce-order-received address,
.woocommerce-view-order address,
.woocommerce-account address {
  font-style: normal !important;
  line-height: 1.65 !important;
  color: #334155 !important;
  font-size: 15px !important;
  margin-bottom: 10px !important;
}

.woocommerce-customer-details .woocommerce-customer-details--phone,
.woocommerce-customer-details .woocommerce-customer-details--email {
  margin-top: 5px !important;
  margin-bottom: 3px !important;
  color: #475569 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

/* 10. Card de Suporte e Envio de Arte no WhatsApp */
.fg-order-whatsapp-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 10px !important;
  padding: 18px 22px !important;
  margin: 24px 0 32px 0 !important;
  box-shadow: 0 1px 4px rgba(22, 163, 74, 0.08) !important;
}

.fg-order-whatsapp-left {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  flex: 1 1 auto !important;
}

.fg-order-whatsapp-icon {
  flex-shrink: 0 !important;
  width: 46px !important;
  height: 46px !important;
  background-color: #25d366 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.35) !important;
}

.fg-order-whatsapp-info strong {
  display: block !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #14532d !important;
  line-height: 1.3 !important;
}

.fg-order-whatsapp-info span {
  display: block !important;
  font-size: 13px !important;
  color: #166534 !important;
  margin-top: 3px !important;
}

.fg-order-whatsapp-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background-color: #16a34a !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  padding: 11px 22px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25) !important;
}

.fg-order-whatsapp-btn:hover {
  background-color: #15803d !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.35) !important;
}

@media (max-width: 768px) {
  .fg-order-whatsapp-card {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center !important;
    padding: 16px !important;
  }
  .fg-order-whatsapp-left {
    flex-direction: column !important;
    text-align: center !important;
  }
  .fg-order-whatsapp-btn {
    justify-content: center !important;
    width: 100% !important;
  }
}

/* ==========================================================================
   Botão Flutuante Nativo de WhatsApp (Contexto Dinâmico & Alta Performance)
   ========================================================================== */
.fg-floating-wa {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 99990 !important;
  display: flex !important;
  align-items: center !important;
}

.fg-floating-wa-btn {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.fg-floating-wa-badge {
  background: #ffffff !important;
  color: #0f172a !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  padding: 8px 15px !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid #e2e8f0 !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  transition: all 0.25s ease !important;
  opacity: 0.95 !important;
  line-height: 1.3 !important;
}

.fg-floating-wa-btn:hover .fg-floating-wa-badge {
  opacity: 1 !important;
  transform: translateX(-4px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16) !important;
  border-color: #cbd5e1 !important;
}

.fg-floating-wa-icon {
  width: 58px !important;
  height: 58px !important;
  background-color: #25d366 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45) !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  flex-shrink: 0 !important;
  animation: fg-wa-pulse 2.8s infinite !important;
}

.fg-floating-wa-btn:hover .fg-floating-wa-icon {
  transform: scale(1.1) translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.65) !important;
  background-color: #20ba5a !important;
  animation: none !important;
}

@keyframes fg-wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Evitar sobreposição com o botão 'Voltar ao topo' do Astra */
#ast-scroll-top.ast-scroll-to-top-right {
  bottom: 94px !important;
  right: 28px !important;
  z-index: 99980 !important;
}

/* Mobile: Ocultar badge de texto para não cobrir elementos e ajustar proporções */
@media (max-width: 600px) {
  .fg-floating-wa {
    bottom: 20px !important;
    right: 18px !important;
  }
  .fg-floating-wa-badge {
    display: none !important;
  }
  .fg-floating-wa-icon {
    width: 52px !important;
    height: 52px !important;
  }
  .fg-floating-wa-icon svg {
    width: 28px !important;
    height: 28px !important;
  }
  #ast-scroll-top.ast-scroll-to-top-right {
    bottom: 82px !important;
    right: 21px !important;
  }
}

/* ==========================================================================
   Tabela Nativa de Desconto por Quantidade (Atacado)
   Posicionada abaixo do botão Adicionar ao Carrinho e antes do Simulador de Frete
   ========================================================================== */
.single-product form.cart {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  width: 100% !important;
}

/* 1. Resumo Progressivo (Acima do seletor de quantidade) */
.single-product #fg-bulk-live-preview,
.single-product .fg-bulk-live-preview,
.fg-bulk-live-preview {
  width: 100% !important;
  flex: 0 0 100% !important;
  order: -1 !important;
  clear: both !important;
  margin: 12px 0 16px 0 !important;
  padding: 9px 14px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #0073aa !important;
  border-radius: 6px !important;
  font-size: 13.5px !important;
  color: #334155 !important;
  line-height: 1.4 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.single-product #fg-bulk-live-preview.fg-has-discount,
.single-product .fg-bulk-live-preview.fg-has-discount,
.fg-bulk-live-preview.fg-has-discount {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
  border-left-color: #16a34a !important;
  color: #166534 !important;
}

.fg-bulk-live-header {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  white-space: normal !important;
}

.fg-bulk-live-header strong {
  color: #0f172a !important;
}

.fg-bulk-live-preview.fg-has-discount .fg-bulk-live-header strong {
  color: #15803d !important;
}

/* 2. Quantidade e Botão Adicionar ao Carrinho */
.single-product form.cart .quantity,
.single-product .quantity {
  order: 1 !important;
  margin: 0 12px 0 0 !important;
}

.single-product form.cart .single_add_to_cart_button,
.single-product .single_add_to_cart_button {
  order: 2 !important;
  margin: 0 !important;
}

/* 3. Bloco do Desconto por Quantidade (Abaixo de Adicionar ao Carrinho e antes do Frete) */
.single-product .fg-bulk-pricing-wrapper,
.fg-bulk-pricing-wrapper {
  width: 100% !important;
  flex: 0 0 100% !important;
  order: 3 !important;
  clear: both !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin: 18px 0 18px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

/* 4. Botão Centralizado de Ver / Ocultar Tabela */
.single-product button#fg-bulk-toggle-btn,
.single-product .fg-bulk-toggle-btn,
#fg-bulk-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin: 0 auto !important;
  width: auto !important;
  max-width: 100% !important;
  padding: 10px 22px !important;
  background: var(--ast-global-color-0, #6039f6) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 9999px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(96, 57, 246, 0.25) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  gap: 8px !important;
}

.single-product button#fg-bulk-toggle-btn:hover,
.single-product .fg-bulk-toggle-btn:hover,
#fg-bulk-toggle-btn:hover {
  background: #4f28dc !important;
  box-shadow: 0 4px 10px rgba(96, 57, 246, 0.35) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.single-product button#fg-bulk-toggle-btn:focus,
#fg-bulk-toggle-btn:focus {
  outline: 2px solid #6039f6 !important;
  outline-offset: 2px !important;
}

.single-product button#fg-bulk-toggle-btn .fg-chevron-icon,
#fg-bulk-toggle-btn .fg-chevron-icon {
  width: 15px !important;
  height: 15px !important;
  stroke: #ffffff !important;
  stroke-width: 2.5 !important;
  transition: transform 0.25s ease !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  margin-left: 2px !important;
}

.single-product button#fg-bulk-toggle-btn.fg-is-open .fg-chevron-icon,
#fg-bulk-toggle-btn.fg-is-open .fg-chevron-icon {
  transform: rotate(180deg) !important;
}

/* 5. Conteúdo Expansível da Tabela */
.single-product #fg-bulk-collapsible-content,
#fg-bulk-collapsible-content {
  width: 100% !important;
  margin-top: 14px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

.fg-bulk-subtext {
  display: block !important;
  font-size: 12.5px !important;
  color: #64748b !important;
  margin: 0 0 10px 0 !important;
  text-align: left !important;
}

.fg-bulk-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fg-bulk-pricing-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 0 !important;
  font-size: 13.5px !important;
  border: 1px solid #edf2f7 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}

.fg-bulk-pricing-table thead tr th {
  background: #f8fafc !important;
  color: #334155 !important;
  font-weight: 700 !important;
  text-align: left !important;
  padding: 8px 12px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
}

.fg-bulk-pricing-table tbody tr td {
  padding: 8px 12px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #1e293b !important;
  vertical-align: middle !important;
  transition: background-color 0.2s ease !important;
}

.fg-bulk-pricing-table tbody tr:last-child td {
  border-bottom: none !important;
}

.fg-bulk-pricing-table tbody tr.fg-tier-active td {
  background-color: #f0fdf4 !important;
  color: #166534 !important;
  font-weight: 600 !important;
}

.fg-bulk-pricing-table tbody tr.fg-tier-active .fg-qty-cell strong {
  color: #15803d !important;
}

.fg-bulk-pricing-table .fg-qty-cell {
  white-space: nowrap;
}

.fg-bulk-pricing-table .fg-price-cell {
  white-space: nowrap;
}

.fg-bulk-pricing-table .fg-unit-price {
  font-weight: 700;
  color: #0f172a;
}

.fg-bulk-pricing-table tr.fg-tier-active .fg-unit-price {
  color: #15803d;
  font-size: 14.5px;
}

.fg-bulk-pricing-table .fg-orig-price {
  margin-left: 6px;
  font-size: 12px;
  color: #94a3b8;
}

.fg-bulk-pricing-table .fg-discount-cell {
  text-align: right;
  white-space: nowrap;
}

.fg-save-tag {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.fg-normal-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

/* 6. Simulador de Frete com respiro adequado abaixo da tabela */
.single-product .wc-shipping-simulator-parent-container {
  margin-top: 4px !important;
  margin-bottom: 20px !important;
  width: 100% !important;
  clear: both !important;
}

@media (max-width: 600px) {
  .single-product button#fg-bulk-toggle-btn,
  .single-product .fg-bulk-toggle-btn,
  #fg-bulk-toggle-btn {
    width: 100% !important;
    padding: 10px 16px !important;
    font-size: 12.5px !important;
  }
  .fg-bulk-pricing-table thead tr th,
  .fg-bulk-pricing-table tbody tr td {
    padding: 7px 9px !important;
    font-size: 12px !important;
  }
  .fg-save-tag, .fg-normal-tag {
    font-size: 10px;
    padding: 2px 5px;
  }
}

@media (max-width: 480px) {
  .fg-bulk-live-preview {
    font-size: 11.5px !important;
    padding: 6px 8px !important;
  }
  .fg-bulk-live-header {
    flex-wrap: wrap !important;
    white-space: normal !important;
  }
}



/* ==========================================================================
   Avaliações do Google Nativas (FG Impressão - Alta Performance)
   ========================================================================== */
.fg-reviews-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0 30px 0;
  box-sizing: border-box;
}

.fg-reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background: #ffffff;
  padding: 18px 24px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  flex-wrap: wrap;
  gap: 16px;
}

.fg-reviews-badge {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fg-google-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  flex-shrink: 0;
}

.fg-score-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fg-score-number {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.fg-stars {
  color: #fbbc04;
  font-size: 19px;
  letter-spacing: 2px;
  line-height: 1;
}

.fg-score-subtext {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

.fg-score-subtext strong {
  color: #0f172a;
}

.fg-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: #ffffff !important;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.fg-review-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.fg-reviews-carousel-wrapper {
  position: relative;
  width: 100%;
}

.fg-reviews-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px 4px 16px 4px;
}

.fg-reviews-track::-webkit-scrollbar {
  display: none;
}

.fg-review-card {
  flex: 0 0 320px;
  max-width: 340px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-sizing: border-box;
}

.fg-review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.fg-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.fg-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fg-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f1f5f9;
}

.fg-author-initial {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.fg-author-name {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  line-height: 1.2;
}

.fg-author-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #059669;
  font-weight: 600;
  margin-top: 3px;
}

.fg-card-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.fg-card-stars {
  color: #fbbc04;
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 1;
}

.fg-card-date {
  font-size: 11.5px;
  color: #94a3b8;
}

.fg-card-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: #334155;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fg-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #0f172a;
  transition: all 0.2s ease;
}

.fg-carousel-nav.fg-prev {
  left: -18px;
}

.fg-carousel-nav.fg-next {
  right: -18px;
}

.fg-carousel-nav:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

@media (max-width: 768px) {
  .fg-carousel-nav {
    display: none !important;
  }
  .fg-review-card {
    flex: 0 0 285px;
    padding: 18px;
  }
  .fg-reviews-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .fg-reviews-badge {
    flex-direction: column;
  }
  .fg-reviews-action {
    display: flex;
    justify-content: center;
  }
}


/* ==========================================================================
   BLOG FG IMPRESSÃO - MODERN RESPONSIVE CARDS & ARCHIVE LAYOUT
   ========================================================================== */
body.blog .ast-container,
body.archive.category .ast-container,
body.archive.tag .ast-container {
  max-width: 1240px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 20px 60px 20px !important;
}

body.blog #primary,
body.archive.category #primary,
body.archive.tag #primary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ocultar sidebars e widgets de barra lateral (NUNCA os widgets do cabeçalho) */
body.blog #secondary,
body.blog .sidebar-main,
body.blog #secondary .widget-area,
body.blog .sidebar-main .widget-area,
body.archive.category #secondary,
body.archive.category .sidebar-main,
body.archive.category #secondary .widget-area,
body.archive.category .sidebar-main .widget-area {
  display: none !important;
}

/* Garantir exibição impecável da busca e widgets no cabeçalho */
#masthead .header-widget-area,
#masthead .header-widget-area-inner,
#masthead .header-widget-area.widget-area,
#masthead .dgwt-wcas-search-wrapp {
  display: block !important;
}

/* Ocultar barra inferior vazia do cabeçalho desktop para evitar espaços fantasmas */
#ast-desktop-header .ast-below-header-wrap {
  display: none !important;
}

/* Padronizar altura uniforme da barra azul de categorias no desktop */
.ast-desktop .ast-primary-header-bar.main-header-bar {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 38px !important;
}

.fg-blog-hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 16px;
  padding: 36px 32px;
  margin: 20px 0 35px 0;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
}

.fg-blog-hero-badge {
  display: inline-block;
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.fg-blog-hero-title {
  color: #ffffff !important;
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  margin: 0 0 12px 0 !important;
  letter-spacing: -0.02em !important;
}

.fg-blog-hero-desc {
  color: #94a3b8;
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .fg-blog-hero-section {
    padding: 30px 18px;
    margin: 15px 0 25px 0;
  }
  .fg-blog-hero-title {
    font-size: 1.6rem !important;
  }
  .fg-blog-hero-desc {
    font-size: 0.95rem;
  }
}

body.blog #primary .ast-row,
body.archive.category #primary .ast-row,
body.archive.tag #primary .ast-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 32px !important;
  margin: 0 !important;
  width: 100% !important;
}

@media (max-width: 640px) {
  body.blog #primary .ast-row,
  body.archive.category #primary .ast-row,
  body.archive.tag #primary .ast-row {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

body.blog article.ast-article-post,
body.archive.category article.ast-article-post,
body.archive.tag article.ast-article-post {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
  display: flex !important;
  flex-direction: column !important;
}

body.blog article.ast-article-post:hover,
body.archive.category article.ast-article-post:hover,
body.archive.tag article.ast-article-post:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
  border-color: #cbd5e1 !important;
}

body.blog .ast-article-inner,
body.archive.category .ast-article-inner {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100% !important;
}

body.blog .ast-blog-featured-section,
body.archive.category .ast-blog-featured-section {
  margin: 0 !important;
  width: 100% !important;
}

body.blog .post-thumb-img-content,
body.archive.category .post-thumb-img-content {
  height: 220px !important;
  width: 100% !important;
  overflow: hidden !important;
  background: #f8fafc !important;
  position: relative !important;
  margin: 0 !important;
}

body.blog .post-thumb-img-content a,
body.archive.category .post-thumb-img-content a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

body.blog .post-thumb-img-content img,
body.archive.category .post-thumb-img-content img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.4s ease !important;
}

body.blog article.ast-article-post:hover .post-thumb-img-content img,
body.archive.category article.ast-article-post:hover .post-thumb-img-content img {
  transform: scale(1.05) !important;
}

body.blog .post-content,
body.archive.category .post-content {
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  margin: 0 !important;
  width: 100% !important;
}

body.blog .entry-header.ast-blog-meta-container,
body.archive.category .entry-header.ast-blog-meta-container {
  order: -1 !important;
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
}

body.blog .entry-meta,
body.archive.category .entry-meta {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
}

body.blog .entry-meta .comments-link,
body.archive.category .entry-meta .comments-link {
  display: none !important;
}

body.blog .ast-taxonomy-container.cat-links a,
body.archive.category .ast-taxonomy-container.cat-links a {
  display: inline-block !important;
  background: #e0f2fe !important;
  color: #0369a1 !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s !important;
}

body.blog .ast-taxonomy-container.cat-links a:hover,
body.archive.category .ast-taxonomy-container.cat-links a:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
}

body.blog .entry-title,
body.archive.category .entry-title {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 0 12px 0 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: manual !important;
}

body.blog .entry-title a,
body.archive.category .entry-title a {
  color: #0f172a !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}

body.blog .entry-title a:hover,
body.archive.category .entry-title a:hover {
  color: #0284c7 !important;
}

body.blog .ast-excerpt-container,
body.archive.category .ast-excerpt-container {
  color: #64748b !important;
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
  margin: 0 0 20px 0 !important;
  flex-grow: 1 !important;
}

body.blog .ast-excerpt-container p,
body.archive.category .ast-excerpt-container p {
  margin: 0 !important;
}

body.blog .ast-read-more-container.read-more,
body.archive.category .ast-read-more-container.read-more {
  margin: auto 0 0 0 !important;
  padding: 0 !important;
}

body.blog .ast-read-more-container a,
body.archive.category .ast-read-more-container a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #0284c7 !important;
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
  text-align: center !important;
}

body.blog .ast-read-more-container a:hover,
body.archive.category .ast-read-more-container a:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

/* ==========================================================================
   14. Estilização Moderna do Widget de Categorias e Barra Lateral
   ========================================================================== */

/* Títulos dos Widgets da Barra Lateral */
/* Container de Card dos Widgets na Barra Lateral */
#secondary .widget,
#secondary .widget_block {
  background: #ffffff !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
  padding: 22px 18px !important;
  margin-bottom: 24px !important;
  box-sizing: border-box !important;
}

/* Títulos dos Widgets da Barra Lateral */
#secondary .widget .widget-title,
#secondary .widget-title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em !important;
  padding-bottom: 11px !important;
  margin-bottom: 16px !important;
  position: relative !important;
  border-bottom: 2px solid #f1f5f9 !important;
}

#secondary .widget .widget-title::after,
#secondary .widget-title::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -2px !important;
  width: 36px !important;
  height: 2.5px !important;
  background: #0284c7 !important;
  border-radius: 2px !important;
}

/* Reset de listas da barra lateral */
#secondary .widget_block ul,
#secondary .wc-block-product-categories-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#secondary .wc-block-product-categories-list-item {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Links das Categorias Principais (Nível 0) */
#secondary .wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item > a,
#secondary .wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item > a:link,
#secondary .wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item > a:visited {
  display: flex !important;
  align-items: center !important;
  padding: 7px 10px !important;
  margin-bottom: 2px !important;
  border-radius: 7px !important;
  font-size: 0.90rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
  text-decoration: none !important;
  background-color: transparent !important;
  transition: all 0.18s ease !important;
}

#secondary .wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item > a::before {
  content: "" !important;
  display: inline-block !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #cbd5e1 !important;
  margin-right: 9px !important;
  flex-shrink: 0 !important;
  transition: all 0.18s ease !important;
}

#secondary .wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item > a:hover {
  background-color: #f0f9ff !important;
  color: #0284c7 !important;
  padding-left: 13px !important;
}

#secondary .wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item > a:hover::before {
  background: #0284c7 !important;
  transform: scale(1.3) !important;
}

/* Subcategorias Hierárquicas (Nível 1) */
#secondary .wc-block-product-categories-list--depth-1 {
  margin: 2px 0 6px 14px !important;
  padding-left: 10px !important;
  border-left: 2px solid #e2e8f0 !important;
}

#secondary .wc-block-product-categories-list--depth-1 > .wc-block-product-categories-list-item > a,
#secondary .wc-block-product-categories-list--depth-1 > .wc-block-product-categories-list-item > a:link,
#secondary .wc-block-product-categories-list--depth-1 > .wc-block-product-categories-list-item > a:visited {
  display: flex !important;
  align-items: center !important;
  padding: 5px 8px !important;
  margin-bottom: 2px !important;
  border-radius: 5px !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: #64748b !important;
  text-decoration: none !important;
  background-color: transparent !important;
  transition: all 0.18s ease !important;
}

#secondary .wc-block-product-categories-list--depth-1 > .wc-block-product-categories-list-item > a::before {
  content: "›" !important;
  display: inline-block !important;
  margin-right: 6px !important;
  color: #94a3b8 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  transition: all 0.18s ease !important;
}

#secondary .wc-block-product-categories-list--depth-1 > .wc-block-product-categories-list-item > a:hover {
  background-color: #f8fafc !important;
  color: #0284c7 !important;
  padding-left: 11px !important;
}

#secondary .wc-block-product-categories-list--depth-1 > .wc-block-product-categories-list-item > a:hover::before {
  color: #0284c7 !important;
}

/* ==========================================================================
   Breadcrumbs Modernos (Blog e Páginas Institucionais)
   ========================================================================== */
.fg-breadcrumbs {
  font-size: 0.84rem !important;
  color: #64748b !important;
  margin-bottom: 22px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  line-height: 1.4 !important;
}

.fg-breadcrumbs a {
  color: #64748b !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.15s ease !important;
}

.fg-breadcrumbs a:hover {
  color: #0284c7 !important;
}

.fg-breadcrumbs .separator {
  color: #cbd5e1 !important;
  margin: 0 2px !important;
  font-weight: 400 !important;
  user-select: none !important;
}

.fg-breadcrumbs .current {
  color: #0f172a !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   Layout Editorial do Post Individual (Título primeiro, Imagem contida)
   ========================================================================== */
.single-post .entry-header {
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 24px !important;
}

.single-post .entry-header .entry-title {
  order: 1 !important;
  margin-bottom: 12px !important;
  font-size: 2.1rem !important;
  line-height: 1.25 !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  letter-spacing: -0.015em !important;
}

.single-post .entry-header .entry-meta {
  order: 2 !important;
  margin-bottom: 22px !important;
  font-size: 0.88rem !important;
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.single-post .entry-header .entry-meta a {
  color: #0284c7 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

.single-post .entry-header .post-thumb-img-content.post-thumb {
  order: 3 !important;
  width: 100% !important;
  max-height: 420px !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  margin-bottom: 30px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.single-post .entry-header .post-thumb-img-content.post-thumb img {
  max-width: 100% !important;
  max-height: 420px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 12px !important;
  display: block !important;
  margin: 0 auto !important;
}

/* ==========================================================================
   Artigos Relacionados (Cards Padronizados Modernos)
   ========================================================================== */
.ast-single-related-posts-container {
  margin-top: 48px !important;
  padding-top: 28px !important;
  border-top: 1px solid #e2e8f0 !important;
}

.ast-related-posts-title-section {
  margin-bottom: 24px !important;
  position: relative !important;
  border-bottom: 2px solid #f1f5f9 !important;
  padding-bottom: 12px !important;
}

.ast-related-posts-title-section .ast-related-posts-title {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
  letter-spacing: -0.01em !important;
  display: inline-block !important;
}

.ast-related-posts-title-section::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -2px !important;
  width: 44px !important;
  height: 3px !important;
  background: #0284c7 !important;
  border-radius: 2px !important;
}

.ast-related-posts-wrapper {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 24px !important;
}

@media (max-width: 768px) {
  .ast-related-posts-wrapper {
    grid-template-columns: 1fr !important;
  }
}

.ast-related-post {
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  transition: all 0.22s ease !important;
}

.ast-related-post:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
  border-color: #cbd5e1 !important;
}

.ast-related-posts-inner-section,
.ast-related-post-content {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.ast-related-post-featured-section {
  width: 100% !important;
  height: 200px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #f1f5f9 !important;
  overflow: hidden !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ast-related-post-featured-section .post-thumb-img-content,
.ast-related-post-featured-section .post-thumb,
.ast-related-post-featured-section a {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ast-related-post-featured-section img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  transition: transform 0.25s ease !important;
}

.ast-related-post:hover .ast-related-post-featured-section img {
  transform: scale(1.04) !important;
}

.ast-related-post .related-entry-header {
  padding: 18px 20px 20px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

.ast-related-post .ast-related-post-title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin-bottom: 12px !important;
}

.ast-related-post .ast-related-post-title a {
  color: #0f172a !important;
  text-decoration: none !important;
  transition: color 0.18s ease !important;
}

.ast-related-post .ast-related-post-title a:hover {
  color: #0284c7 !important;
}

.ast-related-post .entry-meta {
  margin-top: auto !important;
  font-size: 0.82rem !important;
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.ast-related-post .entry-meta a {
  color: #0284c7 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.ast-related-post .entry-meta .comments-link {
  display: none !important;
}


/* Padronizacao Visual Unificada dos Blocos de CTA nos Posts do Blog */
.single-post .fg-cta-box,
.fg-blog-article-content .fg-cta-box,
.entry-content .fg-cta-box {
  background: #0f172a !important;
  padding: 38px 24px !important;
  border-radius: 14px !important;
  margin: 40px 0 !important;
  text-align: center !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3) !important;
  border: 1px solid #1e293b !important;
  box-sizing: border-box !important;
}

.single-post .fg-cta-box h3,
.single-post .fg-cta-box h4,
.fg-blog-article-content .fg-cta-box h3,
.fg-blog-article-content .fg-cta-box h4 {
  color: #ffffff !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.single-post .fg-cta-box p,
.fg-blog-article-content .fg-cta-box p {
  color: #cbd5e1 !important;
  max-width: 620px !important;
  margin: 0 auto 24px auto !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

.single-post .fg-cta-box .fg-cta-actions,
.fg-blog-article-content .fg-cta-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 20px !important;
}

.single-post .fg-cta-box a.fg-btn-primary,
.fg-blog-article-content a.fg-btn-primary,
a.fg-btn-primary {
  display: inline-block !important;
  background: #0284c7 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  margin: 4px !important;
  font-size: 1rem !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3) !important;
  transition: all 0.2s ease !important;
  border: none !important;
}

.single-post .fg-cta-box a.fg-btn-primary:hover,
.fg-blog-article-content a.fg-btn-primary:hover,
a.fg-btn-primary:hover {
  background: #0369a1 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.45) !important;
}

.single-post .fg-cta-box a.fg-btn-secondary,
.single-post .fg-cta-box a.fg-btn-whatsapp,
.fg-blog-article-content a.fg-btn-secondary,
.fg-blog-article-content a.fg-btn-whatsapp,
a.fg-btn-secondary,
a.fg-btn-whatsapp {
  display: inline-block !important;
  background: #16a34a !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  margin: 4px !important;
  font-size: 1rem !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3) !important;
  transition: all 0.2s ease !important;
  border: none !important;
}

.single-post .fg-cta-box a.fg-btn-secondary:hover,
.single-post .fg-cta-box a.fg-btn-whatsapp:hover,
.fg-blog-article-content a.fg-btn-secondary:hover,
.fg-blog-article-content a.fg-btn-whatsapp:hover,
a.fg-btn-secondary:hover,
a.fg-btn-whatsapp:hover {
  background: #15803d !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.45) !important;
}

.single-post .fg-store-pickup-box,
.single-post .fg-contact-footer,
.fg-blog-article-content .fg-store-pickup-box,
.fg-blog-article-content .fg-contact-footer {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #0284c7 !important;
  border-radius: 10px !important;
  padding: 22px 26px !important;
  margin: 36px 0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02) !important;
}

.single-post .fg-store-pickup-box h4,
.single-post .fg-contact-footer h4,
.fg-blog-article-content .fg-store-pickup-box h4,
.fg-blog-article-content .fg-contact-footer h4 {
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
}

.single-post .fg-store-pickup-box p,
.single-post .fg-contact-footer p,
.fg-blog-article-content .fg-store-pickup-box p,
.fg-blog-article-content .fg-contact-footer p {
  color: #475569 !important;
  margin: 0 !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
}

/* ==========================================================================
   FG 404 FULL-WIDTH PAGE ENHANCEMENT
   ========================================================================== */
body.error404 #content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
body.error404 #content .ast-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
}
body.error404 #primary,
body.error404 #main {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
body.error404 #secondary,
body.error404 .sidebar-main {
  display: none !important;
}

/* ==========================================================================
   TABELAS RESPONSIVAS NOS ARTIGOS DO BLOG
   ========================================================================== */
.fg-table-wrapper,
.entry-content .fg-table-wrapper,
.single-post .wp-block-table,
.fg-blog-article-content .wp-block-table {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  margin: 28px 0 !important;
  padding-bottom: 6px !important;
  display: block !important;
  box-sizing: border-box !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

.fg-table-wrapper::-webkit-scrollbar,
.wp-block-table::-webkit-scrollbar {
  height: 6px;
}
.fg-table-wrapper::-webkit-scrollbar-track,
.wp-block-table::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.fg-table-wrapper::-webkit-scrollbar-thumb,
.wp-block-table::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.fg-table-wrapper::-webkit-scrollbar-thumb:hover,
.wp-block-table::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.single-post .entry-content table:not(.shop_table):not(.woocommerce-checkout-review-order-table),
.single-post .wp-block-table table,
.fg-table-wrapper table,
.fg-blog-article-content table,
.fg-specs-table {
  width: 100% !important;
  min-width: 620px !important;
  border-collapse: collapse !important;
  background: #ffffff !important;
  margin: 0 !important;
  font-size: 0.92rem !important;
  line-height: 1.5 !important;
  box-sizing: border-box !important;
}

.single-post .entry-content table:not(.shop_table):not(.woocommerce-checkout-review-order-table) th,
.single-post .wp-block-table table th,
.fg-table-wrapper table th,
.fg-blog-article-content table th,
.fg-specs-table th {
  background: #f8fafc !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  padding: 13px 16px !important;
  text-align: left !important;
  border-bottom: 2px solid #cbd5e1 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.02em;
  white-space: nowrap !important;
}

.single-post .entry-content table:not(.shop_table):not(.woocommerce-checkout-review-order-table) td,
.single-post .wp-block-table table td,
.fg-table-wrapper table td,
.fg-blog-article-content table td,
.fg-specs-table td {
  padding: 13px 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #334155 !important;
  vertical-align: middle !important;
}

.single-post .entry-content table:not(.shop_table):not(.woocommerce-checkout-review-order-table) tr:nth-child(even) td,
.single-post .wp-block-table table tr:nth-child(even) td,
.fg-table-wrapper table tr:nth-child(even) td,
.fg-blog-article-content table tr:nth-child(even) td,
.fg-specs-table tr:nth-child(even) td {
  background: #fafbfc !important;
}

.single-post .entry-content table:not(.shop_table):not(.woocommerce-checkout-review-order-table) tr:hover td,
.single-post .wp-block-table table tr:hover td,
.fg-table-wrapper table tr:hover td,
.fg-blog-article-content table tr:hover td,
.fg-specs-table tr:hover td {
  background: #f1f5f9 !important;
}

/* Reset e contencao rigorosa para tabelas de Checkout e Carrinho WooCommerce */
.woocommerce-checkout table.woocommerce-checkout-review-order-table,
.woocommerce-checkout #order_review table,
.woocommerce-checkout table.shop_table,
.woocommerce-cart table.shop_table,
.woocommerce-page table.shop_table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: auto !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  border-collapse: collapse !important;
}

@media (max-width: 768px) {
  .single-post .entry-content,
  .single-post .ast-article-single,
  .fg-blog-article-content {
    overflow-x: hidden !important;
  }
  .fg-table-wrapper::after {
    content: "Arraste lateralmente para ver a tabela completa \2192";
    display: block;
    padding: 8px 14px;
    font-size: 0.78rem;
    color: #64748b;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: right;
    font-weight: 600;
  }
}

/* ==========================================================================
   CONVERSAO E CONFIANCA (UX, PRODUTOS, CARRINHO E CHECKOUT)
   ========================================================================== */

/* Selos de Confianca na Pagina de Produto */
.fg-product-trust-badges {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 22px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.fg-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.fg-trust-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.fg-trust-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.fg-trust-text strong {
  font-size: 0.88rem;
  color: #0f172a;
  font-weight: 700;
}

.fg-trust-text span {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 2px;
}

/* Barra Fixa Mobile Add-to-Cart (Sticky CTA) */
.fg-mobile-sticky-bar {
  display: none;
}

@media (max-width: 768px) {
  .fg-mobile-sticky-bar {
    display: block;
    position: fixed;
    bottom: -80px;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    padding: 10px 14px;
    box-sizing: border-box;
    transition: bottom 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid #e2e8f0;
  }

  .fg-mobile-sticky-bar.fg-sticky-visible {
    bottom: 0;
  }

  .fg-sticky-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
  }

  .fg-sticky-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
  }

  .fg-sticky-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    line-height: 1.25;
  }

  .fg-sticky-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .fg-sticky-price {
    font-size: 0.84rem;
    font-weight: 800;
    color: #2563eb;
    margin-top: 2px;
  }

  .fg-sticky-btn {
    background: #2563eb !important;
    color: #ffffff !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
  }
}
