/* Prottoymart Build 72 — scoped stability rules.
   Loaded after the older theme overrides so these rules remain deterministic. */

.pm-product-card-v2 {
    height: 100%;
}

.pm-product-card-v2 > .p-md-3,
.pm-product-card-v2 > .p-2 {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
}

.pm-product-card-v2 .pm-card-actions-v2 {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 6px !important;
}

.pm-product-card-v2 .pm-card-actions-v2 > * {
    min-width: 0 !important;
}

.pm-product-card-v2 .pm-card-add-to-cart,
.pm-product-card-v2 .pm-card-order-now {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.pm-recovered-variation {
    min-height: 40px;
    border-radius: 6px;
}

.pm-footer-social-column {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pm-footer-social-column .pm-footer-socials {
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.pm-order-summary-card .table td,
.pm-order-details-card .table td,
.pm-order-details-card .table th {
    vertical-align: top !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.pm-order-summary-card .pm-order-note-row td:last-child {
    white-space: pre-wrap !important;
}

@media (max-width: 767.98px) {
    .pm-footer-social-column {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .pm-footer-social-column ul.pm-footer-socials {
        display: flex !important;
        width: max-content !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .pm-order-summary-card {
        padding: 16px !important;
    }

    .pm-order-summary-card .table {
        margin-bottom: 8px !important;
    }

    .pm-order-summary-card .table td:first-child {
        width: 42% !important;
        min-width: 112px;
        padding-right: 8px !important;
    }

    .pm-order-summary-card .table td:last-child {
        width: 58% !important;
    }
}
