/* =========================================================
   MAIS VENDIDOS ABRIGOS — CARROSSEL DE PRODUTOS
   ========================================================= */

.abrigos-bestsellers {
  --products-visible: 7;
  --products-gap: 14px;

  width: 100%;
  padding: 34px 0;
  overflow: hidden;
  background: #fff;
}

.abrigos-bestsellers-container {
  position: relative;
  width: calc(100% - 30px);
  max-width: 1900px;
  margin: 0 auto;
}

.abrigos-bestsellers-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.abrigos-bestsellers-kicker {
  display: block;
  margin-bottom: 4px;
  color: #397636;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.abrigos-bestsellers-title {
  margin: 0;
  color: #1f1f1f;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.15;
}

.abrigos-bestsellers-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.abrigos-bestsellers-all {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  padding: 0 17px;
  border: 1px solid #397636;
  border-radius: 22px;
  color: #397636;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.abrigos-bestsellers-all:hover {
  background: #397636;
  color: #fff;
  text-decoration: none;
}

.abrigos-bestsellers-arrow {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #397636;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.abrigos-bestsellers-arrow:hover:not(:disabled) {
  background: #255622;
  transform: scale(1.05);
}

.abrigos-bestsellers-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}

.abrigos-bestsellers-track {
  display: flex;
  gap: var(--products-gap);
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 3px 2px 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.abrigos-bestsellers-track::-webkit-scrollbar {
  display: none;
}

.abrigos-bestsellers-item {
  flex: 0 0 calc(
    (100% - ((var(--products-visible) - 1) * var(--products-gap)))
    / var(--products-visible)
  );
  width: calc(
    (100% - ((var(--products-visible) - 1) * var(--products-gap)))
    / var(--products-visible)
  );
  min-width: 0;
  scroll-snap-align: start;
}

/* Neutralizar a grelha normal do tema dentro deste módulo */
.abrigos-bestsellers-item > .js-product.product {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.abrigos-bestsellers-item .product-miniature {
  width: 100% !important;
  max-width: 100% !important;
}

.abrigos-bestsellers-item .thumbnail-container {
  width: 100% !important;
  max-width: 100% !important;
  height: 100%;
  margin: 0 !important;
  padding: 8px;
  overflow: hidden;
  border: 1px solid #e4e8e2;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.abrigos-bestsellers-item .thumbnail-container:hover {
  transform: translateY(-4px);
  border-color: #cdd9ca;
  box-shadow: 0 11px 25px rgba(0, 0, 0, 0.13);
}

.abrigos-bestsellers-item .product-thumbnail {
  display: flex;
  width: 100%;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 7px;
  background: #f8faf7;
}

.abrigos-bestsellers-item .product-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.abrigos-bestsellers-item .thumbnail-container:hover .product-thumbnail img {
  transform: scale(1.035);
}

.abrigos-bestsellers-item .product-description {
  position: relative !important;
  bottom: auto !important;
  width: 100% !important;
  min-height: 104px;
  padding: 10px 3px 4px !important;
  background: #fff !important;
}

.abrigos-bestsellers-item .product-title {
  min-height: 39px;
  margin: 0 0 7px !important;
  text-align: left !important;
}

.abrigos-bestsellers-item .product-title a {
  display: -webkit-box;
  overflow: hidden;
  color: #2b2b2b;
  font-size: 13px;
  font-weight: 600;
  line-height: 19px;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.abrigos-bestsellers-item .product-price-and-shipping {
  min-height: 28px;
  margin-top: 4px;
  text-align: left !important;
}

.abrigos-bestsellers-item .price {
  color: #397636;
  font-size: 18px;
  font-weight: 800;
}

.abrigos-bestsellers-item .highlighted-informations {
  position: relative !important;
  bottom: auto !important;
  width: 100% !important;
  height: auto !important;
  padding: 4px 0 0 !important;
  box-shadow: none !important;
}

/* 6 produtos completos */
@media (min-width: 1300px) and (max-width: 1599px) {
  .abrigos-bestsellers {
    --products-visible: 6;
  }
}

/* 5 produtos completos */
@media (min-width: 1100px) and (max-width: 1299px) {
  .abrigos-bestsellers {
    --products-visible: 5;
  }
}

/* 4 produtos completos */
@media (min-width: 768px) and (max-width: 1099px) {
  .abrigos-bestsellers {
    --products-visible: 4;
    --products-gap: 12px;
  }
}

/* 2 produtos completos */
@media (max-width: 767px) {
  .abrigos-bestsellers {
    --products-visible: 2;
    --products-gap: 8px;
    padding: 24px 0;
  }

  .abrigos-bestsellers-container {
    width: calc(100% - 16px);
  }

  .abrigos-bestsellers-heading {
    align-items: center;
    margin-bottom: 14px;
  }

  .abrigos-bestsellers-kicker {
    display: none;
  }

  .abrigos-bestsellers-title {
    font-size: 22px;
  }

  .abrigos-bestsellers-all {
    display: none;
  }

  .abrigos-bestsellers-arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .abrigos-bestsellers-item .thumbnail-container {
    padding: 5px;
    border-radius: 8px;
  }

  .abrigos-bestsellers-item .product-description {
    min-height: 98px;
    padding-top: 8px !important;
  }

  .abrigos-bestsellers-item .product-title a {
    font-size: 12px;
    line-height: 17px;
  }

  .abrigos-bestsellers-item .price {
    font-size: 16px;
  }
}
