/* CSS para produtos relacionados customizados */
/* CORREÇÃO DEFINITIVA - DUPLA BARRA DE ROLAGEM WOOCOMMERCE */
html, body {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
	margin: 0 !important;
}

.elementor-section, 
.elementor-container, 
.elementor-row {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

.site, 
.site-content, 
.woocommerce, 
.woocommerce-page {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

.elementor-page,
.elementor-default {
    overflow-x: hidden !important;
}

/* CORREÇÃO GAP FOOTER - Elementos específicos encontrados */
#included-files-fie-on-wp-footer {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    display: none !important; /* Este é um elemento de debug, pode ser escondido */
}

#elementor-device-mode {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.widget_shopping_cart_live_region {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* GARANTIR QUE NADA APAREÇA APÓS O FOOTER */
footer ~ * {
    margin: 0 !important;
    padding: 0 !important;
}

/* ELEMENTOS DE DEBUG/DESENVOLVIMENTO */
#included-files-fie-on-wp-footer,
[id*="fie-on-wp"],
.screen-reader-text {
    margin: 0 !important;
    padding: 0 !important;
}

.custom-related-slider-container {
  margin: 40px 0;
}

.related-slider-title {
  font-family: "Poppins";
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #412d1e;
  text-transform: uppercase;
}

/* Container principal do produto */
.related-product-card {
  width: 100%;
  height: 113px;
  background: #fffdf5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 72px 1fr 60px;
  grid-template-rows: 1fr;
  align-items: stretch;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-right: 62px;
}

.related-product-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Container da imagem - primeira coluna do grid */
.product-image {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.product-image img {
  width: 36px;
  height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.no-image {
  width: 36px;
  height: 60px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 10px;
  text-align: center;
}

/* Container das informações - segunda coluna do grid */
.product-info {
  grid-column: 2;
  grid-row: 1;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: #412d1e;
}

.product-title a {
  color: #412d1e;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-title a:hover {
  color: #dba718;
}

.product-price {
  font-size: 14px;
  font-weight: 700;
  color: #412d1e;
  font-family: "Poppins";
  margin: 0;
}

.product-price .woocommerce-Price-amount {
  color: #412d1e;
}

/* Container do botão - terceira coluna do grid */
.product-action {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.add-to-cart-btn {
  width: 48px;
  height: 48px;
  background: url("http://localhost:10063/wp-content/uploads/2025/07/group-130.png")
    no-repeat center center;
  background-size: 48px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
}

.add-to-cart-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.add-to-cart-btn span {
  display: none;
}

/* Navegação do Swiper */
.custom-related-swiper {
  position: relative;
  padding: 0 50px;
}

.swiper-button-next,
.swiper-button-prev {
  color: #666 !important;
  width: 35px !important;
  height: 35px !important;
  margin-top: -17px !important;
  background: white;
  border-radius: 35%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #dba718 !important;
  transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 14px !important;
  font-weight: 600;
}

.swiper-button-next {
  right: 10px !important;
}

.swiper-button-prev {
  left: 10px !important;
}

/* Paginação */
.swiper-pagination {
  position: static !important;
  margin-top: 20px;
  text-align: center;
}

.swiper-pagination-bullet {
  background: #ccc !important;
  opacity: 1 !important;
  margin: 0 4px !important;
}

.swiper-pagination-bullet-active {
  background: #007cba !important;
}

/* Responsividade com Grid */
@media (max-width: 768px) {
  .related-product-card {
    width: 100%;
    max-width: 567px;
    height: 113px;
    grid-template-columns: 72px 1fr 60px;
  }

  .custom-related-swiper {
    padding: 0 20px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

@media (max-width: 480px) {
  .related-product-card {
    height: 100px;
    grid-template-columns: 60px 1fr 50px;
  }

  .product-image img {
    width: 30px;
    height: 50px;
  }

  .product-info {
    padding: 10px 15px;
  }

  .product-title {
    font-size: 12px;
  }

  .product-price {
    font-size: 14px;
  }

  .add-to-cart-btn {
    width: 35px;
    height: 35px;
    background-size: 20px 20px;
  }
}

.swiper custom-related-swiper {
  background: green !important;
}
