/* Estilo global + y - productos: home, catálogo y producto */

.product-qty-control,
.product-card .product-qty-control,
.producto-layout .product-qty-control {
    display: grid !important;
    grid-template-columns: 40px minmax(46px, 1fr) 40px !important;
    gap: 8px !important;
    align-items: center !important;
    width: 100% !important;
    margin: 8px 0 10px !important;
}

.product-qty-control button,
.product-card .product-qty-control button,
.producto-layout .product-qty-control button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: #1f4e79 !important;
    color: #ffffff !important;
    font-size: 1.22rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: grid !important;
    place-items: center !important;
    box-shadow: 0 8px 18px rgba(31,78,121,.16) !important;
}

.product-qty-control input,
.product-card .product-qty-control input,
.producto-layout .product-qty-control input {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border: 1px solid #eadfc8 !important;
    border-radius: 13px !important;
    background: #fffdf7 !important;
    color: #102033 !important;
    text-align: center !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    outline: none !important;
    appearance: textfield !important;
    -moz-appearance: textfield !important;
}

.product-qty-control input::-webkit-outer-spin-button,
.product-qty-control input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.product-card .card-buttons {
    margin-top: 6px !important;
}

.product-card .product-body {
    gap: 9px !important;
}

.toast-msg {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999999;
    max-width: min(340px, calc(100% - 44px));
    padding: 14px 18px;
    border-radius: 16px;
    color: #fff;
    font-weight: 900;
    background: #2f5d50;
    box-shadow: 0 18px 35px rgba(0,0,0,.18);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.toast-msg.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-msg.error {
    background: #b54624;
}

@media (max-width: 520px) {
    .product-qty-control,
    .product-card .product-qty-control,
    .producto-layout .product-qty-control {
        grid-template-columns: 38px minmax(44px, 1fr) 38px !important;
        gap: 7px !important;
    }

    .product-qty-control button,
    .product-card .product-qty-control button,
    .producto-layout .product-qty-control button,
    .product-qty-control input,
    .product-card .product-qty-control input,
    .producto-layout .product-qty-control input {
        height: 38px !important;
        min-height: 38px !important;
    }
}
