/* Kartu pemilih produk POS: informasi harga dan stok yang mudah dipindai. */
.pos-products .product-grid:not(.list-view) {
  grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
  gap: 13px;
}

.pos-products .marketplace-card {
  border-color: rgba(94, 87, 126, .15);
  border-radius: 15px;
  box-shadow: 0 9px 24px rgba(48, 44, 72, .075), inset 0 1px 0 #fff;
}

.pos-products .marketplace-media {
  aspect-ratio: 1.08 / 1;
}

.pos-products .marketplace-card .stock-badge {
  top: 8px;
  right: 8px;
  padding: 5px 8px;
  font-size: 8.5px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(21,83,65,.11);
}

.pos-products .marketplace-promo {
  padding: 5px 9px;
  border-radius: 0 7px 0 0;
  font-size: 8.5px;
  letter-spacing: .45px;
}

.pos-products .marketplace-content {
  display: flex;
  min-height: 196px;
  padding: 11px 12px 12px;
  flex-direction: column;
}

.pos-products .marketplace-card .product-brand-row {
  display: flex;
  min-height: 24px;
  margin-bottom: 7px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.pos-products .marketplace-card .product-brand {
  overflow: hidden;
  max-width: calc(100% - 48px);
  padding: 4px 7px;
  border: 1px solid #e7e2ff;
  border-radius: 6px;
  color: #6255c9;
  background: #f6f3ff;
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-products .marketplace-card .spec-btn {
  display: inline-flex;
  min-height: 24px;
  padding: 3px 5px;
  align-items: center;
  gap: 3px;
  border-radius: 6px;
  color: #72798a;
  font-size: 8.5px;
  font-weight: 650;
}

.pos-products .marketplace-card .spec-btn .icon {
  width: 11px;
  height: 11px;
}

.pos-products .marketplace-card h4 {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 10px;
  overflow: hidden;
  color: #272d3d;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.45;
  letter-spacing: -.012em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pos-products .marketplace-price-panel {
  padding-top: 9px;
  border-top: 1px solid rgba(103,95,136,.10);
}

.pos-products .price-caption,
.pos-products .meta-label {
  display: block;
  color: #8a90a0;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.pos-products .marketplace-price-row {
  min-height: 39px;
  margin-top: 2px;
}

.pos-products .marketplace-card .product-price {
  color: #5d5fe5;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.pos-products .marketplace-card .marketplace-add {
  width: 34px;
  height: 34px;
  min-height: 34px;
  flex-basis: 34px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(85,75,205,.25), inset 0 1px 0 rgba(255,255,255,.22);
}

.pos-products .marketplace-card .marketplace-add .icon {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.pos-products .marketplace-card .product-meta {
  display: grid;
  margin-top: 9px;
  grid-template-columns: minmax(0, 1.25fr) minmax(64px, .75fr);
  gap: 7px;
  color: #555d70;
  font-size: 9px;
}

.pos-products .marketplace-card .wholesale,
.pos-products .marketplace-card .stock-unit {
  display: flex;
  min-width: 0;
  min-height: 57px;
  padding: 7px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #e3def8;
  border-radius: 8px;
  background: linear-gradient(145deg, #faf8ff, #f4f1ff);
}

.pos-products .marketplace-card .wholesale {
  max-width: none;
  overflow: visible;
  color: #554ab8;
  text-overflow: initial;
  white-space: normal;
}

.pos-products .marketplace-card .stock-unit {
  border-color: #e5e8ee;
  color: #3e4959;
  background: linear-gradient(145deg, #fffefa, #f8f7f3);
}

.pos-products .marketplace-card .product-meta strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-products .marketplace-card .product-meta small {
  display: block;
  margin-top: 3px;
  color: #858b99;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.2;
}

.pos-products .marketplace-card .retail-only {
  color: #596173;
  border-color: #e5e8ee;
  background: linear-gradient(145deg, #fffefa, #f8f7f3);
}

.pos-products .product-grid.list-view .marketplace-card {
  grid-template-columns: 106px minmax(0, 1fr);
  min-height: 112px;
}

.pos-products .product-grid.list-view .marketplace-media {
  width: 106px;
  height: 112px;
}

.pos-products .product-grid.list-view .marketplace-content {
  display: grid;
  min-height: 112px;
  padding: 10px 12px;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .8fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 14px;
}

.pos-products .product-grid.list-view .product-brand-row,
.pos-products .product-grid.list-view h4 { grid-column: 1; }
.pos-products .product-grid.list-view .marketplace-price-panel { grid-column: 2; grid-row: 1 / span 2; padding: 0 0 0 12px; border-top: 0; border-left: 1px solid rgba(103,95,136,.10); }
.pos-products .product-grid.list-view .product-meta { grid-column: 1 / -1; margin-top: 6px; grid-template-columns: minmax(150px,220px) minmax(90px,130px); }
.pos-products .product-grid.list-view .wholesale,
.pos-products .product-grid.list-view .stock-unit { min-height: 48px; }

@media (max-width: 760px) {
  .pos-products .product-grid:not(.list-view) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .pos-products .marketplace-content { min-height: 188px; padding: 9px; }
  .pos-products .marketplace-card h4 { min-height: 39px; font-size: 10.5px; }
  .pos-products .marketplace-card .product-price { font-size: 14px; }
  .pos-products .marketplace-card .product-meta { grid-template-columns: 1fr; }
  .pos-products .marketplace-card .wholesale,
  .pos-products .marketplace-card .stock-unit { min-height: 50px; }
}

@media (min-width: 761px) and (max-width: 1190px) {
  .pos-products .product-grid:not(.list-view) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .pos-products .marketplace-card,
  .pos-products .marketplace-add { transition: none; }
}
