/* Keep the quantity field, cart action and WhatsApp action inside narrow product cards. */
.cart-label-short {
    display: none;
}

.product-card .product-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding-right: 3px;
}

.product-card .product-actions .quick-add-form {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr);
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    gap: 5px;
}

.product-card .product-actions .small-qty {
    width: 40px;
    min-width: 0;
    height: 36px;
    min-height: 36px;
    padding-inline: 3px;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}

.product-card .product-actions .public-cart-btn {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    height: 36px;
    padding: 0 5px;
    gap: 3px;
    font-size: 11px;
    font-weight: 650;
    white-space: nowrap;
}

.product-card .product-actions .public-cart-btn .btn-cart-icon {
    font-size: 14px;
    line-height: 1;
}

.product-card .product-actions .product-wa-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px !important;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0;
}

.product-card .product-actions .product-wa-icon-btn svg {
    width: 19px;
    height: 19px;
}

@media (max-width: 480px) {
    .product-card .product-actions {
        gap: 4px;
        padding-right: 0;
    }

    .product-card .product-actions .quick-add-form {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 4px;
    }

    .product-card .product-actions .small-qty {
        width: 36px;
        height: 36px;
        padding-inline: 1px;
    }

    .product-card .product-actions .public-cart-btn {
        font-size: 11px;
    }

    .product-card .product-actions .cart-label-full {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .product-card .product-actions .cart-label-short {
        display: inline;
    }

    .product-card .product-actions .product-wa-icon-btn {
        flex-basis: 34px;
        width: 34px !important;
        min-width: 34px;
    }
}
