:root {
    --fps-primary: #ffe600;          /* Amarillo oficial Mercado Libre */
    --fps-primary-glow: #ffd100;     /* Amarillo hover */
    --fps-primary-soft: #fffde6;     /* Fondo amarillo suave */
    --fps-accent: #3483fa;           /* Azul de acción Mercado Libre */
    --fps-accent-hover: #2968c8;     /* Azul hover */
    --fps-emerald: #00a650;          /* Verde Mercado Libre éxito / envío gratis */
    --fps-emerald-soft: #ecfdf5;     /* Fondo verde pastel */
    --fps-amber: #ff7733;            /* Naranja Mercado Libre ofertas */
    --fps-danger: #f23d4f;           /* Rojo Mercado Libre */
    --fps-dark-slate: #2d3277;       /* Azul marino profundo corporativo */
    --fps-slate-800: #333333;        /* Texto principal Mercado Libre */
    --fps-slate-600: #666666;        /* Texto secundario */
    --fps-slate-400: #999999;        /* Borde suave */
    --fps-slate-100: #ebebeb;        /* Fondo gris clásico */
    --fps-slate-50: #f5f5f5;         /* Fondo blanco humo */
    --fps-yape: #742284;             /* Púrpura oficial Yape */
    --fps-plin: #00bfa5;             /* Turquesa oficial Plin */
}

/* Badge y Trigger en Header */
.action-button.cart-trigger-btn {
    cursor: pointer;
    user-select: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.action-button.cart-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}
.action-button.cart-trigger-btn:active {
    transform: scale(0.96);
}

/* Animación de brinco / pulso en el icono del carrito del Header */
.cart-badge.pop-anim {
    animation: badgePop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.4);
}
@keyframes badgePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.6); background: #10b981; }
    100% { transform: scale(1); }
}

.cart-icon-bump {
    animation: cartBump 0.4s ease;
}
@keyframes cartBump {
    0% { transform: scale(1); }
    30% { transform: scale(1.25) rotate(-10deg); color: #2563eb; }
    60% { transform: scale(0.95) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Microinteracción en el botón presionado */
.btn-added-success {
    background: #059669 !important;
    color: #ffffff !important;
    transform: scale(0.97);
    box-shadow: 0 0 15px rgba(5, 150, 105, 0.4) !important;
}

/* Toast flotante inteligente con microinteracción y contador */
.cart-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -120%);
    background: #0b1120;
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    z-index: 100005;
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 5px solid #10b981;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    width: auto;
    max-width: 480px;
}
.cart-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}
.toast-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    font-size: 17px;
    flex-shrink: 0;
}
.toast-body-text {
    flex: 1;
    min-width: 0;
}
.toast-body-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.toast-body-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}
.toast-body-subtitle .qty-pill {
    background: #2563eb;
    color: #ffffff;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 11px;
    display: inline-block;
    margin-right: 4px;
}
.toast-actions-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.toast-view-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.toast-view-btn:hover {
    background: #2563eb;
}
.toast-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.toast-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.1);
}

/* Overlay Trasero con Desenfoque */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 17, 32, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Drawer Lateral Ultra Moderno */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    z-index: 99995;
    box-shadow: -12px 0 40px rgba(11, 17, 32, 0.22);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.open {
    transform: translateX(0);
}

/* Cabecera del Drawer con Gradiente Dark */
.cart-header {
    padding: 18px 24px;
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cart-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
}
.cart-header-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}
.cart-header-count {
    background: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.cart-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 15px;
    transition: all 0.2s;
}
.cart-close-btn:hover {
    background: #ef4444;
    color: #ffffff;
    transform: rotate(90deg);
}

/* Barra de Envío Dinámica */
.cart-shipping-meter {
    background: #f8fafc;
    padding: 14px 24px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12.5px;
    color: var(--fps-slate-800);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}
.cart-shipping-meter.unlocked-celebrate {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-bottom-color: #a7f3d0;
    animation: shippingGlowPulse 1.8s infinite alternate ease-in-out;
}
@keyframes shippingGlowPulse {
    0% { box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.15); }
    100% { box-shadow: inset 0 0 24px rgba(16, 185, 129, 0.35); }
}

.shipping-text {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 7px;
    font-size: 12.5px;
}
.shipping-progress-bar {
    width: 100%;
    height: 7px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.shipping-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #059669);
    width: 0%;
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.shipping-progress-fill.celebrate-fill {
    background: linear-gradient(90deg, #059669, #10b981, #34d399);
    background-size: 200% 100%;
    animation: shimmerProgress 1.4s infinite linear;
}
@keyframes shimmerProgress {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.shipping-detail-hint {
    margin-top: 7px;
    font-size: 11.5px;
    color: var(--fps-slate-600);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Badge animado de festejo */
.free-shipping-celebration-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
    animation: bounceInBadge 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes bounceInBadge {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.15); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}

/* Confeti flotante */
.confetti-canvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}
.confetti-piece {
    position: absolute;
    width: 7px;
    height: 10px;
    top: -10px;
    opacity: 0.9;
    animation: confettiFall 2.2s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(130px) rotate(360deg); opacity: 0; }
}

/* Items del Carrito */
.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fafafa;
}
.cart-items-container::-webkit-scrollbar {
    width: 5px;
}
.cart-items-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.cart-empty-state {
    margin: auto;
    text-align: center;
    padding: 40px 20px;
}
.cart-empty-state .empty-icon {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    color: #94a3b8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px auto;
}
.cart-empty-state h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--fps-dark-slate);
    margin-bottom: 6px;
}
.cart-empty-state p {
    font-size: 13.5px;
    color: var(--fps-slate-600);
    margin-bottom: 20px;
}

/* Tarjeta individual de producto */
.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(11, 17, 32, 0.04);
    transition: all 0.2s ease;
}
.cart-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(11, 17, 32, 0.08);
    transform: translateY(-1px);
}
.cart-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #2563eb;
    flex-shrink: 0;
}
.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--fps-dark-slate);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-unit-price {
    font-size: 12px;
    color: var(--fps-slate-600);
    margin-bottom: 8px;
}
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    padding: 3px 6px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    width: fit-content;
}
.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--fps-slate-800);
    transition: all 0.15s ease;
}
.qty-btn:hover {
    background: var(--fps-primary);
    color: #ffffff;
    border-color: var(--fps-primary);
}
.qty-display {
    font-size: 13px;
    font-weight: 800;
    min-width: 20px;
    text-align: center;
    color: var(--fps-dark-slate);
}
.cart-item-subtotal {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.item-total-price {
    font-size: 14.5px;
    font-weight: 900;
    color: #dc2626;
}
.item-delete-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: color 0.15s ease;
}
.item-delete-btn:hover {
    color: #ef4444;
}

/* Footer del Drawer */
.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 -4px 16px rgba(11, 17, 32, 0.04);
}
.cart-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--fps-slate-600);
    margin-bottom: 8px;
}
.cart-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 19px;
    font-weight: 900;
    color: var(--fps-dark-slate);
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed #cbd5e1;
    margin-bottom: 16px;
}
.cart-total-value {
    color: #dc2626;
    letter-spacing: -0.3px;
}

/* Franja con logos oficiales de métodos de pago */
.payment-methods-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 14px;
}
.pay-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 8px;
    letter-spacing: 0.2px;
}
.pay-pill.yape {
    background: #f3e8ff;
    color: #742284;
    border: 1px solid #e9d5ff;
}
.pay-pill.plin {
    background: #e6fffa;
    color: #00897b;
    border: 1px solid #b2f5ea;
}
.pay-pill.card {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.pay-pill.cash {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.cart-action-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-proceed-checkout {
    background: #3483fa;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(52, 131, 250, 0.35);
    margin-bottom: 10px;
}
.btn-proceed-checkout:hover {
    background: #2968c8;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(52, 131, 250, 0.45);
}
.btn-clear-cart {
    background: #f1f5f9;
    color: var(--fps-slate-600);
    font-size: 12px;
    padding: 9px;
    border: 1px solid #e2e8f0;
}
.btn-clear-cart:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* Modal Pasarela / Checkout */
.checkout-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 17, 32, 0.72);
    backdrop-filter: blur(6px);
    z-index: 100005;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.checkout-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.checkout-modal {
    background: #ffffff;
    width: 100%;
    max-width: 530px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(11, 17, 32, 0.35);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.checkout-modal-overlay.active .checkout-modal {
    transform: scale(1);
}
.modal-header {
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
    color: #ffffff;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.modal-header h4 {
    font-size: 17px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-header h4 i {
    color: #38bdf8;
}
.modal-close-btn {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
}
.modal-close-btn:hover {
    background: #ef4444;
}

.modal-body {
    padding: 24px;
}

/* Selector Visual de Método de Pago */
.payment-selector-title {
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--fps-dark-slate);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}
.payment-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.payment-choice-card {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.payment-choice-card:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 17, 32, 0.06);
}
.payment-choice-card.selected {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}
.payment-choice-header {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 800;
    color: var(--fps-dark-slate);
}
.payment-choice-desc {
    font-size: 11.5px;
    color: var(--fps-slate-600);
    line-height: 1.35;
}

/* Caja de Detalle dinámico del método de pago */
.payment-dynamic-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--fps-primary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 22px;
    font-size: 13px;
}

.modal-form-group {
    margin-bottom: 15px;
}
.modal-form-group label {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--fps-slate-800);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.modal-input, .modal-select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.2s;
    background: #ffffff;
}
.modal-input:focus, .modal-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.checkout-summary-strip {
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.checkout-summary-strip .title {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
}
.checkout-summary-strip .amount {
    font-size: 22px;
    font-weight: 900;
    color: #38bdf8;
    letter-spacing: -0.3px;
}

.modal-footer {
    padding: 18px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    position: sticky;
    bottom: 0;
    z-index: 10;
}
.btn-complete-payment {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
    flex: 2;
    margin-bottom: 0;
}
.btn-complete-payment:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.45);
}

/* ========================================================
   RESPONSIVE MOBILE BREAKPOINTS (100% ADAPTABLE EN CELULARES Y TABLETS)
   ======================================================== */
@media (max-width: 768px) {
    /* Drawer ocupa toda la pantalla en móvil de manera natural */
    .cart-drawer {
        max-width: 100%;
        width: 100%;
    }
    .cart-header {
        padding: 14px 18px;
    }
    .cart-header-title {
        font-size: 15.5px;
        gap: 9px;
    }
    .cart-header-icon-box {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    .cart-shipping-meter {
        padding: 12px 18px;
        font-size: 12px;
    }
    .cart-items-container {
        padding: 14px 16px;
        gap: 10px;
    }
    .cart-item {
        padding: 10px 12px;
        gap: 10px;
    }
    .cart-item-icon {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }
    .cart-item-title {
        font-size: 13px;
        max-width: 150px;
    }
    .cart-footer {
        padding: 16px 18px;
    }
    .cart-summary-total {
        font-size: 17px;
        margin-bottom: 12px;
    }
    .payment-methods-strip {
        padding: 8px 10px;
        gap: 4px;
    }
    .pay-pill {
        font-size: 10px;
        padding: 3px 6px;
    }

    /* Modal de Checkout en móvil */
    .checkout-modal-overlay {
        padding: 0;
        align-items: flex-end; /* Efecto bottom sheet en celulares */
    }
    .checkout-modal {
        max-width: 100%;
        width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }
    .checkout-modal-overlay.active .checkout-modal {
        transform: translateY(0);
    }
    .modal-header {
        padding: 16px 20px;
    }
    .modal-header h4 {
        font-size: 15px;
    }
    .modal-body {
        padding: 18px 20px;
    }
    .payment-options-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .payment-choice-card {
        padding: 10px 12px;
    }
    .modal-footer {
        padding: 14px 20px;
    }

    /* Toast flotante en móvil (siempre visible arriba al agregar productos) */
    .cart-toast {
        top: 14px;
        left: 50%;
        right: auto;
        bottom: auto;
        width: calc(100% - 24px);
        max-width: 420px;
        padding: 12px 14px;
        border-radius: 14px;
    }
    .toast-body-title {
        max-width: 190px;
    }
}

@media (max-width: 380px) {
    .cart-item-title {
        max-width: 120px;
    }
    .toast-view-btn {
        padding: 5px 8px;
        font-size: 11px;
    }
}
