/* Home / New products: category-sized one-row carousel. */
#index .dm-newproducts-footer {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: min(var(--dm-home-content-max, 1440px), 100%);
  margin: 2px auto 0;
  padding: 13px 0 0;
  border-top: 2px solid #cfcfcf;
}

#index .dm-newproducts-footer__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 14px;
  color: #ffffff;
  background: var(--dm-header-action, #008c45);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

#index .dm-newproducts-footer__link:hover,
#index .dm-newproducts-footer__link:focus-visible {
  color: #ffffff;
  background: #303030;
}

#index .ps-newproducts .dm-home-product-rail {
  --dm-newproducts-card-width: calc((100% - 1.5rem) / 2);
  --dm-newproducts-gap: 1.5rem;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  min-width: 0;
}

#index .ps-newproducts .dm-home-product-rail__viewport {
  min-width: 0;
  overflow: hidden;
}

#index
  .ps-newproducts
  .dm-home-product-rail:not(.is-dm-newproducts-carousel-ready),
#index .ps-newproducts .dm-home-product-rail:not(.is-scrollable) {
  grid-template-columns: minmax(0, 1fr);
}

#index
  .ps-newproducts
  .dm-home-product-rail:not(.is-dm-newproducts-carousel-ready)
  .dm-home-product-rail__control,
#index
  .ps-newproducts
  .dm-home-product-rail:not(.is-scrollable)
  .dm-home-product-rail__control {
  display: none;
}

#index .ps-newproducts .dm-home-product-rail .products {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--dm-newproducts-card-width);
  grid-template-columns: none;
  grid-template-rows: auto;
  gap: var(--dm-newproducts-gap);
  padding: 4px 0 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

#index .ps-newproducts .dm-home-product-rail .products::-webkit-scrollbar {
  display: none;
}

#index .ps-newproducts .dm-home-product-rail .products > * {
  min-width: 0;
  scroll-snap-align: start;
}

#index .ps-newproducts .dm-home-product-rail .product-miniature {
  --dm-newproducts-cart-size: 30px;
  --dm-newproducts-action-right: 0.5rem;
  --dm-newproducts-action-top: 0.5rem;
  align-self: start;
  height: auto;
}

#index .ps-newproducts .dm-home-product-rail .product-miniature__inner {
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: var(--bs-border-radius, 8px);
  height: auto;
  min-height: 0;
  overflow: visible;
}

#index .ps-newproducts .dm-home-product-rail .product-miniature__top {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1.05;
  padding: 0;
}

#index
  .ps-newproducts
  .dm-home-product-rail
  .product-miniature__image-container,
#index .ps-newproducts .dm-home-product-rail .product-miniature__image-link,
#index
  .ps-newproducts
  .dm-home-product-rail
  .product-miniature__image-link
  picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#index .ps-newproducts .dm-home-product-rail .product-miniature__image {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  transform: none;
  transform-origin: center;
}

#index .ps-newproducts .dm-home-product-rail .product-miniature__bottom {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--dm-newproducts-cart-size);
  align-items: end;
  justify-content: stretch;
  flex-grow: 0;
  width: 100%;
  min-height: 0;
  column-gap: 0.75rem;
  row-gap: 0.5rem;
  padding: 0.5rem;
}

#index .ps-newproducts .dm-home-product-rail .product-miniature__infos {
  display: contents;
}

#index .ps-newproducts .dm-home-product-rail .product-miniature__title {
  display: -webkit-box;
  grid-column: 1 / -1;
  grid-row: 1;
  overflow: hidden;
  width: 100%;
  min-height: 4.5em;
  max-height: 4.5em;
  margin: 0;
  color: #525252 !important;
  font-size: 1rem;
  font-weight: 400 !important;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

#index .ps-newproducts .dm-home-product-rail .product-miniature__variants {
  grid-column: 1 / -1;
  grid-row: 2;
}

#index .ps-newproducts .dm-home-product-rail .product-miniature__title:visited,
#index .ps-newproducts .dm-home-product-rail .product-miniature__title:hover,
#index .ps-newproducts .dm-home-product-rail .product-miniature__title:focus-visible {
  color: #525252 !important;
  font-weight: 400 !important;
}

#index .ps-newproducts .dm-home-product-rail .product-list-review {
  display: none;
}

#index .ps-newproducts .dm-home-product-rail .product-miniature__prices {
  position: static !important;
  inset: auto !important;
  display: flex;
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  align-items: flex-start;
  justify-content: flex-end;
  justify-self: stretch;
  width: 100% !important;
  min-width: 0;
  height: var(--dm-newproducts-cart-size);
  min-height: var(--dm-newproducts-cart-size);
  max-height: var(--dm-newproducts-cart-size);
  margin: 0;
  color: #525252 !important;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600 !important;
  line-height: 1.5;
  text-align: left;
}

#index .ps-newproducts .dm-home-product-rail .product-miniature__price,
#index .ps-newproducts .dm-home-product-rail .product-miniature__price *,
#index
  .ps-newproducts
  .dm-home-product-rail
  .product-miniature__prices
  .product-price-and-shipping,
#index
  .ps-newproducts
  .dm-home-product-rail
  .product-miniature__prices
  .product-price-and-shipping
  *,
#index .ps-newproducts .dm-home-product-rail .product-miniature__prices .price {
  color: #525252 !important;
  font-weight: 600 !important;
}

#index .ps-newproducts .dm-home-product-rail .product-miniature__actions {
  position: absolute !important;
  top: auto !important;
  right: 0.5rem !important;
  bottom: 0.5rem !important;
  left: auto !important;
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  justify-self: end;
  margin: 0;
}

#index
  .ps-newproducts
  .dm-home-product-rail
  .product-miniature__bottom:has(.product-miniature__variants)
  :is(.product-miniature__prices, .product-miniature__actions) {
  grid-row: 3;
}

#index
  .ps-newproducts
  .dm-home-product-rail
  .product-miniature__prices
  :is(.product-miniature__price, .imaxpreciominimo) {
  margin-right: 0 !important;
  margin-left: 0 !important;
  text-align: left !important;
}

#index
  .ps-newproducts
  .dm-home-product-rail
  .product-miniature__prices
  .imaxpreciominimo {
  white-space: nowrap;
}

#index
  .ps-newproducts
  .dm-home-product-rail
  .product-miniature__discount-price:not(:has(.product-miniature__regular-price)) {
  display: none;
}

#index .ps-newproducts .dm-home-product-rail .product-miniature__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--dm-newproducts-cart-size) !important;
  min-width: var(--dm-newproducts-cart-size) !important;
  height: var(--dm-newproducts-cart-size) !important;
  min-height: var(--dm-newproducts-cart-size) !important;
  padding: 1px !important;
  color: #000000 !important;
  background: transparent !important;
  border: 2px solid #000000 !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  line-height: 1;
  transform: none !important;
}

#index .ps-newproducts .dm-home-product-rail .product-miniature__add:hover,
#index .ps-newproducts .dm-home-product-rail .product-miniature__add:focus-visible {
  color: #ffffff !important;
  background: #000000 !important;
}

#index
  .ps-newproducts
  .dm-home-product-rail
  .product-miniature__add.btn-primary
  i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px !important;
  height: 24px !important;
  margin: 0;
  color: currentColor !important;
  font-size: 24px !important;
  line-height: 1 !important;
}

@media (max-width: 767.98px) {
  #index
    .ps-newproducts
    .dm-home-product-rail
    .product-miniature__title {
    min-height: 4.2em;
    max-height: 4.2em;
    font-size: 0.875rem;
    line-height: 1.4;
  }

  #index
    .ps-newproducts
    .dm-home-product-rail
    .product-miniature__add.btn-primary {
    border-width: 1px !important;
  }

  #index
    .ps-newproducts
    .dm-home-product-rail
    .product-miniature__add.btn-primary
    > .material-symbols-rounded {
    width: 20px !important;
    height: 20px !important;
    font-size: 20px !important;
  }
}

#index
  .ps-newproducts
  .dm-home-product-rail
  :is(
    .contenedor-imaxmodificaproductofront-features-position-9,
    .contenedor-imaxmodificaproductofront-features-position-10,
    .imaxmodificaproductofront-features.imaxmodificaproductofront-features-position-9,
    .imaxmodificaproductofront-features.imaxmodificaproductofront-features-position-10
  ) {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

#index .ps-newproducts .dm-home-product-rail__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 26px;
  height: 42px;
  padding: 0;
  color: rgba(31, 31, 31, 0.72);
  background: transparent;
  border: 0;
  border-radius: 0;
  transform: translateY(-50%);
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

#index .ps-newproducts .dm-home-product-rail__control--prev {
  left: -28px;
}

#index .ps-newproducts .dm-home-product-rail__control--next {
  right: -28px;
}

#index .ps-newproducts .dm-home-product-rail__control:hover,
#index .ps-newproducts .dm-home-product-rail__control:focus-visible {
  color: #1f1f1f;
}

#index .ps-newproducts .dm-home-product-rail__control:disabled {
  pointer-events: none;
  opacity: 0.28;
}

#index .ps-newproducts .dm-home-product-rail__control .material-icons {
  font-size: 28px;
  line-height: 1;
}

#index
  .ps-newproducts
  .dm-home-product-rail
  :is(.product-miniature__wishlist-mount, .product-miniature__top .wishlist-button) {
  box-sizing: border-box !important;
  display: block !important;
  position: absolute !important;
  top: var(--dm-newproducts-action-top) !important;
  right: var(--dm-newproducts-action-right) !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 25 !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  transform: none !important;
}

#index
  .ps-newproducts
  .dm-home-product-rail
  :is(.product-miniature__wishlist-mount, .product-miniature__top .wishlist-button)
  :is(.wishlist-button, .wishlist-button-add) {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0.375rem !important;
  margin: 0 !important;
  color: #212529 !important;
  background: var(--bs-body-bg, #ffffff) !important;
  border: 0 !important;
  border-radius: var(--bs-border-radius-sm, 4px) !important;
  box-shadow: none !important;
  transform: none !important;
}

#index
  .ps-newproducts
  .dm-home-product-rail
  :is(.product-miniature__wishlist-mount, .product-miniature__top .wishlist-button)
  :is(.wishlist-button, .wishlist-button-add):is(:hover, :focus-visible) {
  color: #ffffff !important;
  background: #707070 !important;
  outline: 0 !important;
}

/* blockwishlist can mount the button directly in the image thumbnail. */
#index
  .ps-newproducts
  .dm-home-product-rail
  .product-miniature__image-container
  > .wishlist-button-add {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  top: var(--dm-newproducts-action-top) !important;
  right: var(--dm-newproducts-action-right) !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 25 !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0.375rem !important;
  margin: 0 !important;
  color: #212529 !important;
  background: var(--bs-body-bg, #ffffff) !important;
  border: 0 !important;
  border-radius: var(--bs-border-radius-sm, 4px) !important;
  box-shadow: none !important;
  transform: none !important;
}

#index
  .ps-newproducts
  .dm-home-product-rail
  .product-miniature__image-container
  > .wishlist-button-add:is(:hover, :focus-visible) {
  color: #ffffff !important;
  background: #707070 !important;
  outline: 0 !important;
}

@media (min-width: 768px) {
  #index .ps-newproducts .dm-home-product-rail {
    --dm-newproducts-card-width: min(calc((100% - 4.5rem) / 4), 230px);
  }
}

@media (min-width: 992px) {
  #index .ps-newproducts .dm-home-product-rail {
    --dm-newproducts-card-width: min(calc((100% - 4.5rem) / 4), 230px);
  }

  #index .ps-newproducts .dm-home-product-rail .product-miniature {
    --dm-newproducts-cart-size: 43.2px;
  }

  #index
    .ps-newproducts
    .dm-home-product-rail
    .product-miniature__add.btn-primary
    i {
    width: 28.8px !important;
    height: 28.8px !important;
  }
}

@media (min-width: 1200px) {
  #index .ps-newproducts .dm-home-product-rail {
    --dm-newproducts-card-width: min(calc((100% - 4.5rem) / 4), 230px);
  }
}

@media (max-width: 575.98px) {
  #index .ps-newproducts .dm-home-product-rail__control {
    display: none;
  }
}
