/*
 * Rubroo — arquivos de categoria WooCommerce.
 * Corrige o grid do widget Elementor sem alterar a consulta de produtos.
 */

body.tax-product_cat.rubroo-category-ready {
  background: #fff;
}

body.tax-product_cat .elementor-element-4c2634a {
  padding-top: clamp(32px, 5vw, 68px) !important;
  padding-bottom: clamp(56px, 7vw, 96px) !important;
}

body.tax-product_cat .rubroo-archive-heading {
  width: 100% !important;
  margin: 0 0 clamp(30px, 4vw, 52px) !important;
  padding: 0 0 26px !important;
  border-bottom: 1px solid var(--rb-ink, #0b0b0b);
}

body.tax-product_cat .rubroo-archive-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--rb-red, #b31831);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.tax-product_cat .rubroo-archive-heading .elementor-heading-title {
  margin: 0 !important;
  color: var(--rb-ink, #0b0b0b) !important;
  font-size: clamp(44px, 6.5vw, 88px) !important;
  font-weight: 900 !important;
  letter-spacing: -.055em !important;
  line-height: .9 !important;
  text-transform: uppercase !important;
}

body.tax-product_cat .rubroo-archive-count {
  display: block;
  margin-top: 14px;
  color: var(--rb-muted, #6d6962);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body.tax-product_cat .elementor-widget-woocommerce-products,
body.tax-product_cat .elementor-widget-woocommerce-products > .elementor-widget-container,
body.tax-product_cat .elementor-widget-woocommerce-products .woocommerce {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

body.tax-product_cat .elementor-widget-woocommerce-products .woocommerce[class*="columns-"] {
  columns: auto !important;
  column-count: auto !important;
  column-width: auto !important;
}

body.tax-product_cat .elementor-widget-woocommerce-products .woocommerce-ordering {
  float: none !important;
  width: min(100%, 300px) !important;
  margin: 0 0 28px auto !important;
}

body.tax-product_cat .elementor-widget-woocommerce-products .woocommerce-ordering select {
  width: 100% !important;
  min-height: 46px !important;
  padding: 0 44px 0 14px !important;
  border: 1px solid var(--rb-line, #dedbd4) !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background-color: #fff !important;
  color: var(--rb-ink, #0b0b0b) !important;
  font: inherit !important;
  font-size: 13px !important;
}

body.tax-product_cat .elementor-widget-woocommerce-products ul.products.elementor-grid {
  display: grid !important;
  columns: auto !important;
  column-count: auto !important;
  column-width: auto !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(36px, 4vw, 58px) clamp(18px, 2.4vw, 32px) !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.tax-product_cat .elementor-widget-woocommerce-products ul.products.elementor-grid::before,
body.tax-product_cat .elementor-widget-woocommerce-products ul.products.elementor-grid::after {
  display: none !important;
  content: none !important;
}

body.tax-product_cat .elementor-widget-woocommerce-products ul.products.elementor-grid > li.product {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  float: none !important;
  clear: none !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 0 22px !important;
  overflow: hidden !important;
  border-bottom: 1px solid var(--rb-line, #dedbd4) !important;
  background: #fff !important;
  text-align: left !important;
}

body.tax-product_cat .elementor-widget-woocommerce-products li.product .woocommerce-LoopProduct-link {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  color: var(--rb-ink, #0b0b0b) !important;
  text-decoration: none !important;
}

body.tax-product_cat .elementor-widget-woocommerce-products li.product img {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 3 / 4 !important;
  margin: 0 0 20px !important;
  object-fit: cover !important;
  object-position: center !important;
  background: #f2f1ef !important;
  transition: transform .35s ease !important;
}

body.tax-product_cat .elementor-widget-woocommerce-products li.product:hover img {
  transform: scale(1.015) !important;
}

body.tax-product_cat .elementor-widget-woocommerce-products li.product .woocommerce-loop-product__title {
  width: 100% !important;
  min-height: 2.5em !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: var(--rb-ink, #0b0b0b) !important;
  font-size: clamp(16px, 1.25vw, 19px) !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
  line-height: 1.22 !important;
  text-align: left !important;
}

body.tax-product_cat .elementor-widget-woocommerce-products li.product .star-rating {
  margin: 0 0 13px !important;
  color: var(--rb-red, #b31831) !important;
  font-size: 13px !important;
}

body.tax-product_cat .elementor-widget-woocommerce-products li.product .price,
body.tax-product_cat .elementor-widget-woocommerce-products li.product .woo-custom-installments-group,
body.tax-product_cat .elementor-widget-woocommerce-products li.product .woo-custom-installments-group-main-price {
  width: 100% !important;
  margin: 0 !important;
  color: var(--rb-ink, #0b0b0b) !important;
  font-size: 17px !important;
  font-weight: 850 !important;
  text-align: left !important;
}

body.tax-product_cat .elementor-widget-woocommerce-products li.product .woo-custom-installments-offer,
body.tax-product_cat .elementor-widget-woocommerce-products li.product .woo-custom-installments-card-container,
body.tax-product_cat .elementor-widget-woocommerce-products li.product .affirm-as-low-as {
  display: none !important;
}

body.tax-product_cat .elementor-widget-woocommerce-products li.product .button {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  align-self: flex-start !important;
  justify-content: center !important;
  min-height: 42px !important;
  margin: 18px 0 0 !important;
  padding: 11px 16px !important;
  border: 1px solid var(--rb-red, #b31831) !important;
  border-radius: 0 !important;
  background: var(--rb-red, #b31831) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
}

body.tax-product_cat .elementor-widget-woocommerce-products li.product .button:hover {
  border-color: var(--rb-ink, #0b0b0b) !important;
  background: var(--rb-ink, #0b0b0b) !important;
}

body.tax-product_cat .woocommerce nav.woocommerce-pagination {
  margin-top: 48px !important;
}

@media (max-width: 900px) {
  body.tax-product_cat .elementor-widget-woocommerce-products ul.products.elementor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.tax-product_cat .elementor-widget-woocommerce-products .woocommerce-ordering {
    margin-left: 0 !important;
  }
}

@media (max-width: 600px) {
  body.tax-product_cat .elementor-element-4c2634a {
    padding-inline: 16px !important;
  }

  body.tax-product_cat .rubroo-archive-heading .elementor-heading-title {
    font-size: clamp(42px, 15vw, 64px) !important;
  }

  body.tax-product_cat .elementor-widget-woocommerce-products ul.products.elementor-grid {
    grid-template-columns: 1fr !important;
    gap: 34px !important;
  }

  body.tax-product_cat .elementor-widget-woocommerce-products .woocommerce-ordering {
    width: 100% !important;
  }

  body.tax-product_cat .elementor-widget-woocommerce-products li.product .woocommerce-loop-product__title {
    min-height: 0 !important;
    font-size: 18px !important;
  }
}
