/* =========================================================
   SHOP FLOW FIX - ÓPTICA MIRA
   Botones productos + filtros sin salto + notificación
========================================================= */

.shop-sidebar .filter-chip {
    width: 100%;
    margin-bottom: 9px;
    border: 0;
    text-align: left;
    cursor: pointer;
}

.product-card .product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
}

.product-card .product-actions form {
    margin: 0;
}

.product-card .product-actions .btn-small,
.product-card .product-actions a.btn-small {
    width: 100%;
    min-height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    text-align: center;
    font-size: .86rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
}

.product-card .btn-cart-add {
    background: linear-gradient(135deg, #c4922f, #e0b75a) !important;
    color: #25170e !important;
}

.product-card .btn-buy-now {
    background: #4b2c1d !important;
    color: #fff8ec !important;
}

.product-card .btn-view-product {
    background: rgba(255, 250, 241, .95) !important;
    color: #3f2b1f !important;
    border: 1px solid rgba(128, 91, 44, .22) !important;
}

.product-card .product-bottom {
    align-items: stretch !important;
    flex-direction: column !important;
}

.om-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 9999;
    transform: translate(-50%, 18px);
    padding: 14px 20px;
    border-radius: 999px;
    background: #3f2b1f;
    color: #fff8ec;
    font-weight: 900;
    box-shadow: 0 18px 46px rgba(77, 48, 24, .24);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

.om-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.product-card[hidden] {
    display: none !important;
}

/* En escritorio, si hay espacio, botones más compactos y bonitos */
@media (min-width: 821px) {
    .product-card .product-actions {
        gap: 7px;
    }
}

/* En móvil de 3 columnas los botones quedan compactos */
@media (max-width: 560px) {
    .product-card .product-actions {
        gap: 5px;
    }

    .product-card .product-actions .btn-small,
    .product-card .product-actions a.btn-small {
        min-height: 28px;
        font-size: .66rem;
        padding: 0 6px;
    }

    .om-toast {
        left: 14px;
        right: 14px;
        bottom: 16px;
        transform: translateY(18px);
        text-align: center;
        border-radius: 18px;
    }

    .om-toast.show {
        transform: translateY(0);
    }
}

/* Mercado Pago + checkout/envío */
.checkout-form select,
.checkout-form input[type="file"] {
    width: 100%;
}
.payment-result-box {
    margin: 70px auto;
    padding: 42px;
}
.product-actions {
    display: grid;
    gap: 8px;
    width: 100%;
}
.product-actions form,
.product-actions a {
    width: 100%;
}
.product-actions .btn-small {
    width: 100%;
}
.btn-cart-add {
    background: #4b2c1d !important;
    color: #fff8ec !important;
}
.btn-buy-now {
    background: linear-gradient(135deg, #c4922f, #e0b75a) !important;
    color: #25170e !important;
}
.btn-view-product {
    background: rgba(255,250,241,.92) !important;
    color: #3f2b1f !important;
    border: 1px solid rgba(128,91,44,.22);
}
.product-detail-buy-form {
    display: grid;
    gap: 16px;
}
.product-detail-buy-form .prescription-inline {
    display: grid;
    gap: 8px;
    width: 100%;
}
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.detail-actions .btn-primary,
.detail-actions .btn-secondary {
    min-height: 48px;
}
@media (max-width:560px) {
    .product-actions .btn-small {
        min-height: 31px !important;
        font-size: .68rem !important;
        padding: 0 5px !important;
    }
    .product-actions { gap: 5px; }
}
