/* Category + search listings, desktop: outline Add to cart (same look as mobile) and a subtle sale countdown line.
   Loaded only on category/search pages from layout-both-columns.tpl. Mobile keeps ift-mobile-product-lists.css. */
@media (min-width: 576px) {
  html body .products-grid .product-miniature .ift-product-card-cta:has(.price-countdown-wrapper) {
    overflow: visible;
    box-shadow: none;
    border-radius: 0;
  }

  html body .products-grid .product-miniature .product-add-cart .btn.btn-product-list.add-to-cart,
  html body .products-grid .product-miniature .ift-product-card-cta:has(.price-countdown-wrapper) .product-add-cart .btn-product-list.add-to-cart {
    border: 1.5px solid #0f172a !important;
    border-radius: 9px !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #0f172a !important;
    font-weight: 700;
    transform: none !important;
    filter: none !important;
    transition: background-color .15s ease, color .15s ease;
  }
  html body .products-grid .product-miniature .product-add-cart .btn.btn-product-list.add-to-cart .fa {
    color: inherit !important;
  }
  html body .products-grid .product-miniature .product-add-cart .btn.btn-product-list.add-to-cart:hover,
  html body .products-grid .product-miniature .product-add-cart .btn.btn-product-list.add-to-cart:focus-visible {
    background: #0f172a !important;
    color: #fff !important;
  }

  /* countdown: dark band across the bottom of the product photo, "Sale ends in 10d 11h 14m" */
  html body .products-grid .product-miniature .product-description {
    position: relative !important;
  }
  html body .products-grid .product-miniature .ift-product-card-cta,
  html body .products-grid .product-miniature .price-countdown-wrapper {
    position: static !important;
  }
  html body .products-grid .product-miniature .ift-sale-timer__bar {
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 100%;
    z-index: 4;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    overflow: hidden;
    background: #0f172a !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 12.5px;
    font-weight: 600;
    text-transform: none !important;
    letter-spacing: 0 !important;
  }
  html body .products-grid .product-miniature .ift-sale-timer__label {
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    width: auto !important;
    height: auto !important;
    color: #fff !important;
    font-size: 12.5px !important;
    font-weight: 600;
    line-height: 1.2;
    text-transform: none !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
  }
  html body .products-grid .product-miniature .ift-sale-timer__label .fa {
    color: #fbbf24 !important;
    font-size: 12px !important;
  }
  html body .products-grid .product-miniature .ift-sale-timer__label .time-txt {
    display: none !important;
  }
  html body .products-grid .product-miniature .ift-sale-timer__label::after {
    content: "Sale ends in";
  }
  html body .products-grid .product-miniature .ift-sale-timer__digits {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #fff !important;
    font-weight: 800;
    white-space: nowrap;
  }
  html body .products-grid .product-miniature .ift-sale-timer__digits .countdown-time-group {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    font-size: 0 !important;
  }
  html body .products-grid .product-miniature .ift-sale-timer__digits .countdown-second {
    display: none !important;
  }
  html body .products-grid .product-miniature .ift-sale-timer__digits .countdown-time {
    min-width: 0 !important;
    margin: 0 0 0 4px !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
    font-size: 13px !important;
    font-variant-numeric: tabular-nums;
  }
  html body .products-grid .product-miniature .ift-sale-timer__digits .countdown-days .countdown-time {
    margin-left: 0 !important;
  }
  html body .products-grid .product-miniature .ift-sale-timer__digits .countdown-time::after {
    margin-left: 1px;
    font-weight: 500;
  }
  html body .products-grid .product-miniature .countdown-days .countdown-time::after { content: "d"; }
  html body .products-grid .product-miniature .countdown-hours .countdown-time::after { content: "h"; }
  html body .products-grid .product-miniature .countdown-minutes .countdown-time::after { content: "m"; }
}
