/*
 * AL-HIJRA CARPETS | Spesialis Karpet Masjid
 * PATCH V1.5.3 - Katalog 2 produk per baris pada mobile
 * KHUSUS: /spesialis-karpet-masjid/
 * Tidak memengaruhi katalog /products.php, portfolio dan homepage.
 */
@media screen and (max-width: 650px) {
  /* Hanya grid koleksi karpet; portfolio/layanan tetap mengikuti layout awal */
  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }

  .product-grid > .card {
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px;
  }

  .product-grid > .card .card-image {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #edf1ec;
    flex-shrink: 0;
  }

  .product-grid > .card .card-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
  }

  .product-grid > .card .card-image .placeholder {
    width: 100%;
    height: 100%;
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    padding: 10px;
  }

  .product-grid > .card .card-body {
    padding: 13px 11px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
  }

  .product-grid > .card .card-tag {
    align-self: flex-start;
    margin-bottom: 9px;
    padding: 5px 7px;
    font-size: 9px;
    line-height: 1.3;
    max-width: 100%;
  }

  .product-grid > .card h3 {
    margin: 0 0 9px;
    font-size: clamp(12px, 3.35vw, 15px);
    line-height: 1.4;
    font-weight: 700;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }

  .product-grid > .card .card-body > p {
    margin: 0 0 11px;
    font-size: 11px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  .product-grid > .card .product-price {
    margin: auto 0 12px;
    padding-top: 10px;
    font-size: clamp(13px, 3.7vw, 16px);
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .product-grid > .card .product-price small {
    display: block;
    font-size: 10px;
    line-height: 1.45;
    font-weight: 500;
  }

  .product-grid > .card .card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 42px;
    width: 100%;
    margin-top: 0;
    padding: 8px 5px;
    border: 1px solid var(--green, #075c49);
    border-radius: 6px;
    background: var(--green, #075c49);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    text-decoration: none;
  }
  .product-grid > .card .card-link:focus-visible {
    outline: 3px solid var(--gold, #c7a568);
    outline-offset: 2px;
  }
}
