/* Gambar produk pada daftar POS: utuh, konsisten, dan tidak menempel ke tepi kartu. */
.pos-products .pos-product-grid.list-view .marketplace-card {
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 140px;
}

.pos-products .pos-product-grid.list-view .marketplace-media {
  position: relative;
  width: 112px;
  height: 112px;
  min-height: 112px;
  margin: 13px 10px;
  overflow: hidden;
  border: 1px solid rgba(93, 83, 142, .12);
  border-radius: 15px;
  background:
    radial-gradient(circle at 22% 15%, rgba(255, 255, 255, .96), transparent 38%),
    linear-gradient(145deg, #faf9f5, #f0edf7);
  box-shadow: 0 8px 20px rgba(47, 42, 82, .10), inset 0 1px 0 #fff;
  isolation: isolate;
}

.pos-products .pos-product-grid.list-view .marketplace-media::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .20), transparent 42%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
  pointer-events: none;
}

.pos-products .pos-product-grid.list-view .marketplace-media::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 26px;
  background: linear-gradient(180deg, transparent, rgba(34, 29, 59, .055));
  pointer-events: none;
}

.pos-products .pos-product-grid.list-view .marketplace-media .product-image,
.pos-products .pos-product-grid.list-view .marketplace-media .product-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  padding: 3px;
  border-radius: 14px;
  background: transparent;
  object-fit: contain;
  transition: transform .28s cubic-bezier(.2, .72, .2, 1), filter .28s ease;
}

.pos-products .pos-product-grid.list-view .marketplace-media .product-placeholder {
  display: grid;
  place-items: center;
  color: #9188bc;
}

.pos-products .pos-product-grid.list-view .marketplace-media .marketplace-promo {
  z-index: 3;
  left: 7px;
  bottom: 7px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(82, 100, 232, .94), rgba(112, 77, 218, .94));
  box-shadow: 0 5px 12px rgba(68, 55, 157, .20);
  backdrop-filter: blur(6px);
  font-size: 7.5px;
}

.pos-products .pos-product-grid.list-view .marketplace-content {
  min-height: 140px;
  padding-block: 13px;
  padding-left: 6px;
}

@media (hover: hover) and (pointer: fine) {
  .pos-products .pos-product-grid.list-view .marketplace-card:not(.out-of-stock):hover .product-image {
    transform: scale(1.035);
    filter: saturate(1.03) contrast(1.01);
  }

  .pos-products .pos-product-grid.list-view .marketplace-card:not(.out-of-stock):hover .marketplace-media {
    border-color: rgba(99, 82, 204, .24);
    box-shadow: 0 11px 25px rgba(55, 46, 112, .14), inset 0 1px 0 #fff;
  }
}

@media (max-width: 760px) {
  .pos-products .pos-product-grid.list-view .marketplace-card {
    grid-template-columns: 106px minmax(0, 1fr);
    min-height: 126px;
  }

  .pos-products .pos-product-grid.list-view .marketplace-media {
    width: 88px;
    height: 102px;
    min-height: 102px;
    margin: 11px 8px;
    border-radius: 13px;
  }

  .pos-products .pos-product-grid.list-view .marketplace-content {
    min-height: 126px;
    padding-left: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pos-products .pos-product-grid.list-view .marketplace-media .product-image,
  .pos-products .pos-product-grid.list-view .marketplace-media {
    transition: none !important;
  }
}
