/* KARIMAE v11.13 - Mobile product card action overflow fix.
   Keep two product columns; stack actions within each narrow card.
   Loaded AFTER simple-v10.css to override its mobile flex row. */
@media (max-width: 599px) {
  .product-card,
  .product-card .card-body {
    min-width: 0 !important;
  }

  .product-card .card-footer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 7px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-top: auto !important;
    padding: 10px 0 0 !important;
  }

  .product-card .card-footer > .button,
  .product-card .card-footer > .button.compare-button {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 36px !important;
    padding: 7px 6px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
    writing-mode: horizontal-tb !important;
  }

  .product-card .card-footer > .button svg {
    flex-shrink: 0 !important;
    width: 13px !important;
    height: 13px !important;
  }
}
@media (max-width: 359px) {
  .product-card .card-footer > .button,
  .product-card .card-footer > .button.compare-button {
    font-size: 10px !important;
    padding-inline: 4px !important;
  }
}
