/* MARIVO FOOD V55.28.6 — one weight/sales-unit label and no duplicate footer.
   Genuine descriptions use the spare space beneath the image on mobile.
   Desktop catalogue appearance and cart calculations remain unchanged. */

#productsScreen .product-media-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}
#productsScreen .product-media-col > .product-art { width: 100%; }
#productsScreen .product-media-description { display: none; }

@media (max-width: 899px) {
  #productsScreen .product-card {
    /* Both columns grow only with actual content, not placeholder unit notes. */
    align-items: start;
  }
  #productsScreen .product-media-col {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    gap: 6px;
  }
  /* V55.28.4 previously targeted an image that was a direct card child. */
  #productsScreen .product-media-col > .product-art {
    grid-column: auto;
    grid-row: auto;
    align-self: start;
    width: 100%;
    height: clamp(128px, 36vw, 178px);
    min-height: 0;
    padding: 4px;
    border: 1px solid #e5eef0;
    border-radius: 13px;
    background: linear-gradient(155deg, #fff, #f2f9fa);
    flex: 0 0 auto;
  }
  #productsScreen .product-body {
    grid-column: 2;
    grid-row: 1;
  }
  #productsScreen .product-description-desktop { display: none; }
  #productsScreen .product-pack {
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  #productsScreen .product-media-description {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    min-width: 0;
    padding: 0 2px 1px;
  }
  #productsScreen .product-media-description .product-description-text {
    display: -webkit-box;
    order: initial;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 10.8px;
    line-height: 1.34;
    color: #527182;
    overflow-wrap: anywhere;
  }
  #productsScreen .product-media-description .product-description-text.is-expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
  }
  #productsScreen .product-media-description .product-description-toggle {
    order: initial;
    align-self: start;
    margin: 0;
    padding: 1px 0;
    font-size: 10.5px;
    line-height: 1.3;
    color: #007e81;
    min-height: 20px;
  }
  #productsScreen .product-media-description .product-description-toggle[hidden] {
    display: none !important;
  }
}

@media (max-width: 359px) {
  #productsScreen .product-media-col > .product-art { height: 128px; }
  #productsScreen .product-media-description .product-description-text { font-size: 10.3px; }
}
