/* ================================
   PRODUCT LIST / CARD GRID STYLES
   ================================ */

/* Make columns equal height (add `align-items-stretch` on the .row in HTML) */
#paginated-products-wrapper .col-6,
#paginated-products-wrapper .col-md-4,
#paginated-products-wrapper .col-lg-3 {
  display: flex;
}

/* Card shell */
.product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  transition: box-shadow .2s ease;
}
.product-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* Square image area with white “letterbox” background */
.product-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Divider */
.product-card hr {
  margin: .5rem 0;
}

/* Card body flex so text stays aligned & consistent height */
.product-card .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: .75rem .9rem 1rem;
}

/* Titles & text truncation */
.card-title,
.card-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: .4rem;
}
.card-title {
  font-size: .9rem;
  font-weight: 600;
}
.card-text {
  font-size: .8rem;
  color: #666;
}

@media (min-width: 768px) {
  .card-title { font-size: 1rem; }
  .card-text  { font-size: .9rem; }
}
@media (min-width: 992px) {
  .card-title { font-size: 1.05rem; }
  .card-text  { font-size: 1rem; }
}


/* ================================
   LOADING STATE
   ================================ */
.loading-placeholder {
  width: 100%;
  text-align: center;
  padding: 3rem 0;
  font-size: 1rem;
  color: #666;
}
