/* CM-003 shop catalogue product presentation */

.shop-catalogue-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.shop-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.product-image-wrap {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f9fbf8 0%, #eef4ee 100%);
  border-bottom: 1px solid var(--line);
}

/* Neutralise legacy decorative pseudo-elements used by the old hard-coded cards. */
.product-image-wrap::before,
.product-image-wrap::after {
  display: none !important;
  content: none !important;
}

.shop-product-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  padding: 0;
  background: transparent;
}

.shop-product-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 72% 20%, rgba(201,223,117,.65), transparent 28%),
    linear-gradient(145deg, #176b49, #0d2e22);
}

.shop-product-fallback span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.product-image-wrap.image-missing .shop-product-image { display: none; }
.product-image-wrap.image-missing .shop-product-fallback { display: flex; }

.shop-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.shop-card-foot {
  margin-top: auto;
}

.shop-card[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .shop-grid { grid-template-columns: 1fr; }
  .product-image-wrap,
  .shop-product-image {
    min-height: 210px;
    height: 210px;
  }
}
