/* Scoped to the product grid on collection pages. Existing mobile layout stays intact. */
.sh-card-source { display: none !important; }
.sh-card-badges, .sh-card-gift { display: none; }

@media (min-width: 992px) {
  .collection .category-products .product-grid-item-lm.sh-card-column {
    display: flex;
    min-width: 0;
  }

  .collection .product-grid-item-lm .product-item[data-sh-card-ready="true"] {
    isolation: isolate;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 380px;
    margin-bottom: 0;
    border: 1px solid rgba(27, 35, 43, .13);
    border-radius: 10px;
    background: linear-gradient(145deg, #fff 0%, #fff 65%, #fbfcfd 100%);
    box-shadow:
      0 2px 5px rgba(18, 28, 38, .07),
      0 9px 18px rgba(18, 28, 38, .10),
      4px 5px 10px rgba(18, 28, 38, .035),
      inset 1px 1px 0 rgba(255, 255, 255, .95);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
  }

  .collection .product-grid-item-lm .product-item[data-sh-card-ready="true"]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(145deg, rgba(255, 255, 255, .55), transparent 50%, rgba(18, 36, 52, .018));
  }

  .collection .product-grid-item-lm .product-item[data-sh-card-ready="true"]::after {
    content: "";
    position: absolute;
    inset: -18% auto -18% -40%;
    z-index: 2;
    width: 38%;
    pointer-events: none;
    transform: translateX(-180%) skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .23), transparent);
    transition: transform .72s ease;
  }

  .collection .product-grid-item-lm .product-item[data-sh-card-ready="true"]:hover,
  .collection .product-grid-item-lm .product-item[data-sh-card-ready="true"]:focus-within {
    transform: translateY(-3px);
    box-shadow:
      0 5px 10px rgba(18, 28, 38, .10),
      0 16px 27px rgba(18, 28, 38, .16),
      5px 6px 11px rgba(18, 28, 38, .045),
      inset 1px 1px 0 #fff;
  }

  .collection .product-grid-item-lm .product-item[data-sh-card-ready="true"]:hover::after,
  .collection .product-grid-item-lm .product-item[data-sh-card-ready="true"]:focus-within::after {
    transform: translateX(440%) skewX(-18deg);
  }

  .collection .product-grid-item-lm .product-item[data-sh-card-ready="true"] .thumb {
    position: relative;
    z-index: 1;
    padding: 7px 8px 0;
  }

  .collection .product-grid-item-lm .product-item[data-sh-card-ready="true"] .item-info {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 2px 9px 11px;
  }

  .collection .product-grid-item-lm .product-item[data-sh-card-ready="true"] .item-title {
    margin: 5px 0 2px;
    font-weight: 400 !important;
    overflow-wrap: anywhere;
  }

  .collection .product-grid-item-lm .product-item[data-sh-card-ready="true"] .item-title a {
    font-weight: 400 !important;
    text-transform: none !important;
    transition: color .2s ease !important;
  }

  .collection .product-grid-item-lm .product-item[data-sh-card-ready="true"] .sale-label {
    display: none !important;
  }

  .collection .product-grid-item-lm .product-item[data-sh-card-ready="true"] .sapo-product-reviews-badge {
    min-height: 18px;
  }

  .collection .product-grid-item-lm .sh-card-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin: 5px 0 0;
  }

  .collection .product-grid-item-lm .sh-card-badge {
    display: block;
    min-width: 0;
    min-height: 47px;
    padding: 5px 6px;
    border-radius: 5px;
    border: 1px solid rgba(25, 25, 25, .68);
    background: transparent;
    color: #242424;
    line-height: 1.22;
    overflow: hidden;
  }

  .collection .product-grid-item-lm .sh-card-badge--blue {
    min-height: 58px;
  }

  .collection .product-grid-item-lm .sh-card-badge--yellow {
    grid-column: 1 / -1;
    min-height: 39px;
  }

  .collection .product-grid-item-lm .sh-card-badge__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 10px;
    font-weight: 600;
    opacity: .91;
    overflow: hidden;
    overflow-wrap: anywhere;
  }

  .collection .product-grid-item-lm .sh-card-badge__value {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    font-size: 11px;
    font-weight: 700;
  }

  .collection .product-grid-item-lm .product-item[data-sh-card-ready="true"] .item-price {
    margin: auto 0 0 !important;
    padding-top: 10px;
    line-height: 1.3;
  }

  .collection .product-grid-item-lm .sh-card-gift {
    display: block;
    margin-top: 3px;
    color: #9d1725;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
  }
}

@media (prefers-reduced-motion: reduce) {
  .collection .product-grid-item-lm .product-item[data-sh-card-ready="true"],
  .collection .product-grid-item-lm .product-item[data-sh-card-ready="true"]::after {
    transition: none;
  }
}