/* Mobile catalogue only. Preserve desktop layouts and order-detail lists. */
@media (max-width: 767px) {
  #main .category-mosaic {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 12px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }
  #main .category-mosaic .category-tile {
    min-width: 0;
    width: 100%;
    min-height: 0;
    height: clamp(166px, 45vw, 260px);
    aspect-ratio: auto;
    border-radius: 15px;
    scroll-snap-align: none;
  }
  #main .category-tile__content {
    left: 10px;
    right: 10px;
    bottom: 12px;
    grid-template-columns: minmax(0, 1fr) 12px;
    gap: 7px 5px;
  }
  #main .category-tile__content strong {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    font-size: clamp(11px, 3vw, 12px);
    line-height: 1.28;
    letter-spacing: -.015em;
    overflow-wrap: anywhere;
  }
  #main .category-tile__content svg { grid-column: 1; grid-row: 1; width: 14px; height: 16px; }
  #main .category-tile__content svg:last-child { grid-column: 2; width: 12px; height: 15px; }

  #main .home-product-grid,
  #main .product-grid,
  #main .featured-grid,
  #main .related-products--live .related-products__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
  #main .product-card { display: flex; flex-direction: column; height: 100%; min-width: 0; border-radius: 14px; }
  #main .product-card__media { height: auto; min-height: 0; width: 100%; aspect-ratio: 1; }
  #main .product-card__body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 11px 10px 12px; }
  #main .product-card__category { max-width: 100%; margin-bottom: 8px; padding: 4px 6px; font-size: 8px; line-height: 1.3; letter-spacing: .025em; overflow-wrap: anywhere; }
  #main .product-card h3 {
    display: -webkit-box;
    min-height: 2.7em;
    max-height: 2.7em;
    margin-bottom: 12px;
    font-size: clamp(11.5px, 3.1vw, 13px);
    line-height: 1.35;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-wrap: pretty;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  #main .product-card__description { display: none; }
  #main .product-card__footer { flex-direction: column; align-items: stretch; gap: 9px; margin-top: auto; padding-top: 10px; }
  #main .product-card .price { min-width: 0; gap: 4px; }
  #main .product-card .price strong { font-size: 14px; }
  #main .product-card .price del { font-size: 10px; }
  #main .product-cart-button { min-height: 44px; padding: 9px 6px; gap: 5px; border-radius: 9px; font-size: 11px; line-height: 1.3; white-space: nowrap; }
  #main .product-cart-button svg { width: 15px; height: 15px; }
  #main .product-card__media .badge { top: 8px; left: 7px; max-width: calc(100% - 14px); padding: 4px 6px; font-size: 7px; }

  #main .routine-builder__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; border: 0; }
  #main .routine-builder__steps > article { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; margin: 0; padding: 11px 10px 12px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: white; }
  #main .routine-builder__steps > article > :is(.product-photo, .product-visual) { align-self: center; flex: none; width: calc(100% + 20px); max-width: none; height: auto; min-height: 0; aspect-ratio: 1; margin: -11px -10px 11px; border-radius: 13px 13px 0 0; object-fit: cover; transform: none; }
  #main .routine-builder__steps .routine-step { position: absolute; z-index: 1; top: 8px; left: 8px; width: auto; padding: 3px 5px; border-radius: 6px; background: #ffffffe6; font-size: 9px; }
  #main .routine-builder__steps > article > div { min-width: 0; }
  #main .routine-builder__steps .eyebrow { max-width: 100%; margin-bottom: 8px; font-size: 8px; line-height: 1.4; letter-spacing: .025em; overflow-wrap: anywhere; }
  #main .routine-builder__steps h2 { min-height: 2.7em; margin-bottom: 10px; font-size: clamp(11.5px, 3.1vw, 13px); line-height: 1.35; overflow-wrap: anywhere; }
  #main .routine-builder__steps article p:not(.eyebrow) { display: none; }
  #main .routine-builder__steps article strong { display: block; margin-bottom: 12px; font-size: 14px; }
  #main .routine-builder__steps article > button { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 44px; margin-top: auto; padding: 8px 4px; border-radius: 9px; font-size: 11px; line-height: 1.3; white-space: nowrap; }
  #main .routine-builder__steps article > button svg { flex: none; width: 14px; height: 14px; }
}
