/* Match the former POS new-products block on phones while reusing the
   storefront's product miniatures and carousel. */
body#index .ps-newproducts .new-products__heading {
  text-align: center;
}

body#index .ps-newproducts .new-products__heading .section-title {
  margin-bottom: 15px;
  font: 500 32px/1.1 Poppins, sans-serif;
  text-transform: capitalize;
}

body#index .ps-newproducts .new-products__description {
  margin: 0 0 30px;
  color: #929292;
  font: 400 12px/20px Poppins, sans-serif;
}

body#index .ps-newproducts .new-products__mobile-title {
  display: none;
}

body#index .ps-newproducts .featured-products__previous[hidden],
body#index .ps-newproducts .featured-products__next[hidden] {
  display: none !important;
}

@media (min-width: 768px) {
  body#index .ps-newproducts {
    margin-top: -44px;
  }

  body#index .ps-newproducts .new-products__heading .section-title {
    margin-bottom: 46px;
    color: #222;
    font: 400 48px/1.08 "IBM Plex Serif", serif;
    text-transform: none;
  }

  body#index .ps-newproducts .new-products__description,
  body#index .ps-newproducts .featured-products__previous,
  body#index .ps-newproducts .featured-products__next,
  body#index .ps-newproducts .featured-products__desktop-list .product-miniature__quickview-button,
  body#index .ps-newproducts .featured-products__desktop-list .product-miniature__quickview-touch {
    display: none !important;
  }

  body#index .ps-newproducts .featured-products__desktop-list {
    width: calc(100% - 230px);
    max-width: none;
    padding: 3px 0 33px;
  }

  body#index .ps-newproducts .featured-products__desktop-list .product-miniature {
    flex: 0 0 25%;
    width: 25%;
    padding-left: 0;
  }

  body#index .ps-newproducts .featured-products__desktop-list .product-miniature__inner {
    width: calc(100% + 28px);
    max-width: 287px;
  }

  body#index .ps-newproducts .featured-products__desktop-list .product-miniature__top,
  body#index .ps-newproducts .featured-products__desktop-list .product-miniature__image-container,
  body#index .ps-newproducts .featured-products__desktop-list .product-miniature__image-link,
  body#index .ps-newproducts .featured-products__desktop-list .product-miniature__image-container picture,
  body#index .ps-newproducts .featured-products__desktop-list .product-miniature__image {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  body#index .ps-newproducts .featured-products__desktop-list .product-miniature__title {
    width: 250px;
    max-width: 100%;
  }

  body#index .ps-newproducts .featured-products__desktop-list .product-flags {
    padding: 0;
  }

  body#index .ps-newproducts .featured-products__desktop-list .comments_note {
    min-height: 18px;
  }

  body#index .ps-newproducts .featured-products__desktop-list .product-miniature__prices {
    gap: 15px;
  }

  body#index .ps-newproducts .featured-products__desktop-list .product-miniature__regular-price {
    color: #222;
    opacity: .5;
  }

}

@media (max-width: 767.98px) {
  body#index .ps-newproducts {
    margin-top: -100px;
    overflow: hidden;
  }

  body#index .ps-newproducts .featured-products__previous,
  body#index .ps-newproducts .featured-products__next,
  body#index .ps-newproducts .featured-products__mobile-list .product-miniature form,
  body#index .ps-newproducts .featured-products__mobile-list .product-miniature button {
    display: none !important;
  }

  body#index .ps-newproducts .new-products__desktop-title,
  body#index .ps-newproducts .new-products__description {
    display: none;
  }

  body#index .ps-newproducts .new-products__mobile-title {
    display: inline;
  }

  body#index .ps-newproducts .new-products__heading {
    width: calc(100% + 30px);
    margin-left: -15px;
  }

  body#index .ps-newproducts .new-products__heading .section-title {
    margin-bottom: 30px;
    color: #222;
    font: 400 30px/33px "IBM Plex Serif", serif;
    text-align: center;
    text-transform: none;
  }

  body#index .ps-newproducts .featured-products__mobile-list {
    width: calc(100% + 60px);
    margin-left: -30px;
  }

  body#index .ps-newproducts .featured-products__mobile-list .products {
    overscroll-behavior-x: contain;
  }

  body#index .ps-newproducts .featured-products__mobile-list .product-flags {
    padding: 0 0 0 23px;
  }

  body#index .ps-newproducts .featured-products__mobile-list .product-flags .badge.discount {
    min-width: 40px;
    height: 33px;
    padding: 5px;
    background: #fff;
    font: 500 11px/21px Poppins, sans-serif;
  }

  body#index .ps-newproducts .featured-products__mobile-list .product-miniature__prices {
    gap: 15px;
  }

  body#index .ps-newproducts .featured-products__mobile-list .product-miniature__price {
    font: 500 14px/15.4px Poppins, sans-serif;
  }

  body#index .ps-newproducts .featured-products__mobile-list .product-miniature__regular-price {
    color: #222;
    font: 300 14px/15.4px Poppins, sans-serif;
    text-decoration: line-through;
    opacity: .5;
  }
}

@media (max-width: 359.98px) {
  body#index .ps-newproducts .featured-products__mobile-list .product-miniature__top,
  body#index .ps-newproducts .featured-products__mobile-list .product-miniature__image-container,
  body#index .ps-newproducts .featured-products__mobile-list .product-miniature__image-link,
  body#index .ps-newproducts .featured-products__mobile-list .product-miniature__image-container picture,
  body#index .ps-newproducts .featured-products__mobile-list .product-miniature__image {
    height: 200px;
  }
}
