/*
 * AL-HIJRA OFFICIAL / KARPET MASJID
 * Katalog Mobile 2 Kolom - V1.5.1
 * Berlaku hanya untuk listing /products.php di lebar <=650px.
 * Tidak mengubah halaman detail, admin, checkout, atau SEO.
 */
@media screen and (max-width: 650px) {
  .catalog-area .container {
    width: calc(100% - 24px);
  }

  .catalog-area .product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
  }

  .catalog-area .product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 10px;
  }

  .catalog-area .product-card .gallery-unit {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
  }

  .catalog-area .product-card .gallery-card {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0;
  }

  .catalog-area .product-card .gallery-track {
    width: 100%;
    height: 100%;
  }

  .catalog-area .product-card .gallery-slide {
    min-width: 0;
    padding: 4px;
  }

  .catalog-area .product-card .gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .catalog-area .product-card .gallery-placeholder {
    padding: 7px;
    font-size: 11px;
    line-height: 1.5;
  }

  .catalog-area .product-card .gallery-arrow {
    width: 29px;
    height: 29px;
    font-size: 21px;
  }

  .catalog-area .product-card .gallery-prev { left: 4px; }
  .catalog-area .product-card .gallery-next { right: 4px; }

  .catalog-area .product-card .gallery-counter {
    right: 5px;
    bottom: 5px;
    padding: 4px 6px;
    font-size: 9px;
  }

  .catalog-area .product-card .product-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    padding: 11px 9px 12px;
  }

  .catalog-area .product-card .product-brand {
    font-size: 9px;
    letter-spacing: .35px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .catalog-area .product-card .catalog-attribute {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    min-width: 0;
    margin: 4px 0;
    font-size: 10px;
    line-height: 1.45;
  }

  .catalog-area .product-card .product-info h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: 4.05em;
    margin: 8px 0;
    font-size: 12.5px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .catalog-area .product-card .product-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 3em;
    margin: 3px 0 9px;
    font-size: 10px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .catalog-area .product-card .product-price {
    margin: auto 0 10px;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .catalog-area .product-card .product-price small {
    display: block;
    font-size: 9px;
    line-height: 1.4;
  }

  .catalog-area .product-card .product-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 8px 5px;
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }

  .catalog-area .product-card .detail-note {
    margin: 7px 0 0;
    font-size: 9px;
    line-height: 1.4;
  }
}
