/* ==========================================================================
   /vat-pham — product listing.
   Extends assets/css/ute-shell.css (body.ute-page).
   ========================================================================== */

body.product-list-page .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

/* Product media is squarer than an event banner so items read as merchandise. */
body.product-list-page .product-grid .ute-card-media,
body.product-list-page .product-grid .ute-card-media--empty {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f2f7fc, #e3eef9);
}

body.product-list-page .product-grid .ute-card-media img {
  object-fit: cover;
}

body.product-list-page .product-grid .ute-card-body {
  padding: 17px 17px 18px;
}

body.product-list-page .product-grid .ute-card-title {
  font-size: 1rem;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

body.product-list-page .product-grid .ute-card-text {
  min-height: 2.6em;
  margin-bottom: 14px;
  font-size: 0.78rem;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* Price block. */
body.product-list-page .product-price {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin: 0 0 13px;
}

body.product-list-page .product-price strong {
  color: var(--ute-orange-dark);
  font-size: 1.28rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

body.product-list-page .product-price small {
  color: var(--ute-subtle);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Stock indicator. */
body.product-list-page .product-stock {
  display: grid;
  gap: 6px;
  margin: 0 0 13px;
}

body.product-list-page .product-stock-head {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  color: var(--ute-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

body.product-list-page .product-stock-head b {
  color: var(--ute-navy-deep);
  font-weight: 800;
}

body.product-list-page .product-stock-bar {
  position: relative;
  height: 6px;
  overflow: hidden;
  background: #e9f0f7;
  border-radius: 999px;
}

body.product-list-page .product-stock-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  background: linear-gradient(90deg, var(--ute-blue), var(--ute-blue-bright));
  border-radius: 999px;
}

body.product-list-page .product-stock--low .product-stock-bar span {
  background: linear-gradient(90deg, var(--ute-orange-dark), var(--ute-orange));
}

body.product-list-page .product-stock--out .product-stock-bar span {
  background: #c6d0da;
}

body.product-list-page .product-stock--low .product-stock-head b {
  color: var(--ute-orange-dark);
}

/* Compact meta row for date / booth. */
body.product-list-page .product-grid .ute-meta {
  gap: 8px;
  padding-top: 12px;
}

body.product-list-page .product-grid .ute-meta-item {
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
}

body.product-list-page .product-grid .ute-meta-icon {
  width: 26px;
  height: 26px;
  font-size: 0.85rem;
}

body.product-list-page .product-foot {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

body.product-list-page .product-foot .ute-card-cta {
  margin-top: 0;
}

body.product-list-page .product-buy {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  background: linear-gradient(115deg, var(--ute-navy), var(--ute-blue));
  border: 0;
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(11, 98, 196, 0.2);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.product-list-page .product-buy:hover {
  background: linear-gradient(115deg, var(--ute-orange-dark), var(--ute-orange));
  box-shadow: 0 10px 22px rgba(244, 123, 32, 0.26);
  transform: translateY(-1px);
}

body.product-list-page .product-buy:disabled {
  color: var(--ute-subtle);
  background: #e8eef4;
  box-shadow: none;
  cursor: not-allowed;
}

@media (max-width: 1200px) {
  body.product-list-page .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  body.product-list-page .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  body.product-list-page .product-grid {
    grid-template-columns: 1fr;
  }

  body.product-list-page .product-foot {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  body.product-list-page .product-buy {
    justify-content: center;
  }

  body.product-list-page .product-foot .ute-card-cta {
    align-self: flex-end;
  }
}
