/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jul 02 2026 | 08:41:15 */
/* === Fix: Sem scroll horizontal no mobile ===
   Impede que o site arraste para o lado em dispositivos móveis */
@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  body * {
    max-width: 100% !important;
  }

  /* Exceções: elementos que precisam de scroll horizontal (tabelas, etc.) */
  body table,
  body .woocommerce-cart-form,
  body pre {
    max-width: 100% !important;
    overflow-x: auto !important;
  }
}

/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jun 19 2026 | 19:53:21 */
/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jun 19 2026 | 19:51:35 */
/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jun 19 2026 | 19:48:02 */
/* === Fix 1: Consistent product image sizes on category/shop pages ===
   Targets both simple (.type-product) AND variable (.type-variable) products
   Specificity (0,5,4) overrides post-8454.css (0,5,2) */
.woocommerce ul.products li.product.type-product a img.attachment-woocommerce_thumbnail,
.woocommerce-page ul.products li.product.type-product a img.attachment-woocommerce_thumbnail,
.woocommerce ul.products li.product.type-variable a img.attachment-woocommerce_thumbnail,
.woocommerce-page ul.products li.product.type-variable a img.attachment-woocommerce_thumbnail {
  object-fit: contain !important;
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  height: auto !important;
}

/* === Fix 2: Variable product add to cart button on mobile === */
@media (max-width: 767px) {
  .woocommerce-variation-add-to-cart.variations_button {
    flex-wrap: wrap !important;
    align-items: center !important;
  }
  .woocommerce-variation-add-to-cart.variations_button .tinv-wraper {
    order: 3 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    margin-top: 10px !important;
    margin-left: 0 !important;
  }
  .woocommerce-variation-add-to-cart.variations_button .quantity {
    flex: 0 0 auto !important;
    order: 1 !important;
  }
  .woocommerce-variation-add-to-cart.variations_button button.single_add_to_cart_button {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    order: 2 !important;
    min-width: 0 !important;
  }
}

/* === Fix: Produtos Relacionados - Mobile 2 colunas ===
   Grid 2 colunas com imagens proporcionais e tipografia correcta */
@media (max-width: 767px) {
  .related.products ul.products.columns-4,
  .related.products ul.products.columns-3,
  .related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .related.products ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Imagem proporcional e bem dimensionada */
  .related.products ul.products li.product a img {
    width: 100% !important;
    height: 140px !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* Título */
  .related.products ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 13px !important;
    line-height: 1.3 !important;
    margin: 8px 0 4px !important;
    padding: 0 4px !important;
  }

  /* Preço */
  .related.products ul.products li.product .price {
    font-size: 13px !important;
    padding: 0 4px !important;
  }

  /* Botão adicionar ao carrinho */
  .related.products ul.products li.product .add_to_cart_button,
  .related.products ul.products li.product .button {
    font-size: 0px !important;
    padding: 8px 4px !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 8px !important;
  }

  /* Título da secção */
  .related.products > h2 {
    font-size: 22px !important;
    margin-bottom: 16px !important;
  }

  /* Grid Produtos Relacionados: forçar 2 colunas (Elementor columns-4 não responsivo) */
  .woocommerce .related ul.products,
  .woocommerce .upsells ul.products,
  .woocommerce .related ul.products.elementor-grid,
  .elementor-element-w-related ul.products,
  .elementor-element-w-related .elementor-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .woocommerce .related,
  .woocommerce .upsells {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }


  /* Grid listagem produtos: forçar 2 colunas (Elementor columns-4 não colapsa) */
  .woocommerce ul.products.elementor-grid,
  .elementor-products-grid ul.products.elementor-grid,
  .elementor-element-1428c343 ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Container pai — evitar overflow horizontal */
  .woocommerce.columns-4 {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }

}