/* Keep each product, its specifications and price together on small screens. */
@media (max-width: 768px) {
  .product-grid,
  .catalog .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    min-width: 0;
    max-width: 100%;
  }

  .product-grid .product-card,
  .catalog .product-grid .product-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px;
    box-sizing: border-box;
  }

  .product-grid .card-photo {
    width: 100%;
    min-width: 0;
    height: clamp(220px, 65vw, 280px);
    aspect-ratio: auto;
  }

  .product-grid .card-photo img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .product-grid .card-info {
    min-width: 0;
    padding: 4px 4px 6px;
  }

  .product-grid .card-info h3 {
    min-height: 0;
    max-height: none;
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.55;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .product-grid .model,
  .product-grid .card-color,
  .product-grid .card-pricing .fine {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .product-grid .tags {
    min-width: 0;
    flex-wrap: wrap;
    gap: 5px;
  }

  .product-grid .tags span {
    min-width: 0;
    max-width: 100%;
    padding: 5px 7px;
    font-size: 12px;
    line-height: 1.55;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .product-grid .card-pricing > div {
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    font-size: 14px;
  }

  .product-grid .card-pricing strong {
    min-width: 0;
    max-width: 100%;
    font-size: 21px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .catalog .filter-tabs,
  .catalog-category-links {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 8px;
    white-space: normal;
    overflow: visible;
  }

  .catalog .filter-tabs > *,
  .catalog-category-links > a {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Exact LG full model codes may wrap inside the existing related-product grid. */
.related-products > a { min-width: 0; }
.related-products span, .related-products strong { overflow-wrap: anywhere; }
