/* Mobile product-card layout repair for shop/category pages. */
@media (max-width: 640px) {
  body.shop-page .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  body.shop-page .product-grid > .card {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  body.shop-page .product-grid > .card .card-foot,
  body.shop-page .product-grid > .card .card-title-text,
  body.shop-page .product-grid > .card .card-price {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
  }
  body.shop-page .product-grid > .card .card-title-text {
    line-height: 1.35 !important;
  }
  body.shop-page .product-grid > .card .card-actions-muslim-abaya {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: auto !important;
    padding-top: 12px !important;
    box-sizing: border-box !important;
  }
  body.shop-page .product-grid > .card .card-actions-muslim-abaya > .muslim-abaya-btn-cart,
  body.shop-page .product-grid > .card .card-actions-muslim-abaya > .muslim-abaya-btn-msg {
    display: flex !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 42px !important;
    height: auto !important;
    padding: 9px 8px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
    line-height: 1.25 !important;
    font-size: 12px !important;
  }
  body.shop-page .wrap,
  body.shop-page > main {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}
@media (max-width: 360px) {
  body.shop-page .product-grid { gap: 7px !important; }
  body.shop-page .product-grid > .card .card-actions-muslim-abaya > .muslim-abaya-btn-cart,
  body.shop-page .product-grid > .card .card-actions-muslim-abaya > .muslim-abaya-btn-msg {
    font-size: 11px !important;
    min-height: 40px !important;
  }
}
