/* TORUNNO mobile repair, based on the uploaded live header and the handoff's
   source selectors. Only affects the homepage hero label and shop product grid
   on mobile. */
@media (max-width: 700px) {
  /* The label is generated by torunno-mobile-reference-layout.css as an
     absolutely positioned ::before overlay. Do not let it sit on the artwork. */
  body main > section.classic-hero .classic-hero-image::before {
    content: none !important;
    display: none !important;
  }

  /* The shop uses .product-grid.classic-shop-grid with direct .product-card
     children. Let the grid and every card grow to fit all text before footer. */
  body main .product-grid.classic-shop-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto !important;
    grid-auto-flow: row !important;
    grid-auto-rows: auto !important;
    align-items: start !important;
    align-content: start !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
    row-gap: 28px !important;
    column-gap: 14px !important;
    padding-bottom: 34px !important;
  }

  body main .product-grid.classic-shop-grid > .product-card {
    display: flex !important;
    flex-direction: column !important;
    align-self: start !important;
    position: relative !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body main .product-grid.classic-shop-grid > .product-card > .product-image-wrap {
    display: block !important;
    flex: 0 0 auto !important;
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body main .product-grid.classic-shop-grid > .product-card > .product-meta {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    gap: 5px !important;
    padding: 11px 0 0 !important;
    white-space: normal !important;
  }

  body main .product-grid.classic-shop-grid .product-meta > div,
  body main .product-grid.classic-shop-grid .product-name,
  body main .product-grid.classic-shop-grid .product-name a {
    display: block !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    line-height: 1.4 !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
  }

  body main .product-grid.classic-shop-grid .product-name {
    margin: 4px 0 0 !important;
  }

  body main .product-grid.classic-shop-grid .product-price {
    display: block !important;
    position: static !important;
    width: 100% !important;
    padding-top: 5px !important;
    white-space: normal !important;
    line-height: 1.4 !important;
  }

  body main .product-grid.classic-shop-grid .price-old {
    text-align: left !important;
  }

  body main .site-footer {
    clear: both !important;
    position: relative !important;
    z-index: 0 !important;
  }
}
