/* LYA mobile-overlap v4: keep listing details in their own column and preserve complete images. */
@media (width <= 850px) {
  .category-products {
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
  }
  .category-product {
    display: grid !important;
    grid-template-columns: 104px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 14px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 24px 0 !important;
    overflow: visible !important;
  }
  .category-product > div:nth-child(2) {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
  }
  .category-product > div:nth-child(2) > strong,
  .category-product > div:nth-child(2) > small {
    display: block !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }
  .category-product > div:nth-child(2) > details.product-details,
  .category-product .product-details {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 14px 0 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
  }
  .category-product .product-details summary {
    display: block !important;
    width: 100% !important;
    margin: 0 0 12px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  .category-product .product-details p,
  .category-product .product-details ul {
    width: 100% !important;
    max-width: 100% !important;
    margin: 12px 0 16px !important;
    overflow-wrap: anywhere !important;
  }
  .category-product-media {
    width: 104px !important;
    height: 138px !important;
    min-height: 138px !important;
    align-self: start !important;
    overflow: hidden !important;
    border-radius: 12px !important;
  }
  .category-product-media .expandable-media,
  .category-product-media .visual {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    background-color: #fffaf6 !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    border-radius: 12px !important;
  }
  .category-product > div:last-child {
    grid-column: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    padding-top: 10px !important;
    flex-wrap: wrap !important;
  }
  .category-product .preorder-button {
    max-width: 100% !important;
    margin-left: auto !important;
  }
  .gift-options {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 14px !important;
    overflow: visible !important;
  }
  .gift-options > label,
  .gift-options > .gift-product-choice {
    width: 100% !important;
    min-width: 0 !important;
  }
  .gift-options > label {
    grid-template-columns: 18px 76px minmax(0, 1fr) auto !important;
    column-gap: 10px !important;
    min-height: 98px !important;
    padding: 10px 0 !important;
  }
  .gift-options > label .gift-option-media {
    width: 76px !important;
    min-width: 76px !important;
    height: 96px !important;
    overflow: hidden !important;
    border-radius: 10px !important;
  }
  .gift-options > label .gift-option-media .expandable-media,
  .gift-options > label .gift-option-media .visual {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    background-color: #fffaf6 !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
  }
  .gift-options > .gift-product-choice > label {
    grid-template-columns: 18px 88px minmax(0, 1fr) auto !important;
    column-gap: 10px !important;
    min-height: 120px !important;
    padding: 10px 0 !important;
  }
  .gift-options > .gift-product-choice .gift-product-media {
    width: 88px !important;
    min-width: 88px !important;
    height: 112px !important;
    overflow: hidden !important;
    border-radius: 10px !important;
  }
  .gift-options > .gift-product-choice .gift-product-media .expandable-media,
  .gift-options > .gift-product-choice .gift-product-media .visual {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    background-color: #fffaf6 !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
  }
  .gift-options > label > span,
  .gift-options > label > b,
  .gift-options > .gift-product-choice > label > span,
  .gift-options > .gift-product-choice > label > b {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }
  .gift-options > label > b,
  .gift-options > .gift-product-choice > label > b {
    justify-self: end !important;
    white-space: nowrap !important;
    font-size: 11px !important;
  }
}
@media (width <= 390px) {
  .category-product {
    grid-template-columns: 88px minmax(0, 1fr) !important;
    gap: 10px !important;
  }
  .category-product-media {
    width: 88px !important;
    height: 120px !important;
    min-height: 120px !important;
  }
  .gift-options > label {
    grid-template-columns: 16px 64px minmax(0, 1fr) auto !important;
    column-gap: 8px !important;
  }
  .gift-options > label .gift-option-media {
    width: 64px !important;
    min-width: 64px !important;
    height: 84px !important;
  }
  .gift-options > .gift-product-choice > label {
    grid-template-columns: 16px 76px minmax(0, 1fr) auto !important;
    column-gap: 8px !important;
  }
  .gift-options > .gift-product-choice .gift-product-media {
    width: 76px !important;
    min-width: 76px !important;
    height: 98px !important;
  }
}
