/* carrito.css - Solo estilos del carrito */

:root {
    --primary: #001f3f;
    --secondary: #ff851b;
}

/* Stepper */
.stepper {
    display: flex;
    justify-content: space-between;
    max-width: 600px;
    margin: 40px auto;
    position: relative;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #dee2e6;
    z-index: 1;
}

.step {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-weight: 600;
    color: #adb5bd;
    transition: all 0.3s ease;
}

.step.active {
    border-color: var(--secondary);
    background: var(--secondary);
    color: white;
}

.step.completed {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Welcome Section */
.cart-welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cart-welcome h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cart-welcome .lead {
    font-size: 1.1rem;
    opacity: 0.95;
}

.cart-welcome .btn-light {
    background: white;
    color: #667eea;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cart-welcome .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

/* Cart Summary */
.cart-summary {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.cart-summary h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #666;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    border-top: 2px solid #f0f0f0;
    padding-top: 1rem;
    margin-top: 1rem;
}

.btn-checkout {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: #198754;
    color: white;
    border: none;
    border-radius: 8px;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-checkout:hover {
    background: #146c43;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}
    /* Estilo para el botón eliminar en el carrito */
.delete-btn-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.product-container:hover .delete-btn-overlay {
    opacity: 1;
}

.delete-btn-overlay:hover {
    background: #c82333;
    transform: scale(1.1);
}
/* Controles de cantidad estilo imagen */
.product-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.quantity-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    transition: all 0.2s ease;
}

.quantity-btn:hover:not(:disabled) {
    background: #ff851b;
    border-color: #ff851b;
    color: white;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-value {
    font-weight: 600;
    min-width: 35px;
    text-align: center;
    font-size: 1rem;
    color: #333;
}
/* Estilo para el subtotal */
.subtotal-item {
    font-size: 0.9rem;
    color: #28a745;
    font-weight: 600;
    margin-left: 10px;
}

/* Si está dentro de price-container */
.price-container {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff851b;
}

.subtotal-item {
    font-size: 0.9rem;
    color: #28a745;
    font-weight: 600;
}
/* Empty State */
.cart-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.cart-empty-state h3 {
    color: #666;
    margin-bottom: 1rem;
}

.cart-empty-state .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
}

/* Loading State */
#loading-cart {
    background: white;
    border-radius: 12px;
    padding: 3rem;
}
/* Notificaciones personalizadas */
.custom-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.custom-notification.show {
    transform: translateX(0);
}

.custom-notification.success {
    border-left: 4px solid #28a745;
}
.custom-notification.success .notification-icon {
    color: #28a745;
}

.custom-notification.error {
    border-left: 4px solid #dc3545;
}
.custom-notification.error .notification-icon {
    color: #dc3545;
}

.custom-notification.warning {
    border-left: 4px solid #ffc107;
}
.custom-notification.warning .notification-icon {
    color: #ffc107;
}

.custom-notification.info {
    border-left: 4px solid #17a2b8;
}
.custom-notification.info .notification-icon {
    color: #17a2b8;
}

.notification-icon {
    font-size: 24px;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 14px;
}

.notification-message {
    font-size: 13px;
    color: #666;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    color: #999;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #333;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0,0,0,0.1);
    width: 100%;
    animation: progress 4s linear forwards;
}

.custom-notification.success .notification-progress {
    background: #28a745;
}

.custom-notification.error .notification-progress {
    background: #dc3545;
}

.custom-notification.warning .notification-progress {
    background: #ffc107;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Modal de confirmación personalizado */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-modal.show {
    opacity: 1;
    visibility: visible;
}

.custom-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
}

.custom-modal.show .custom-modal-content {
    transform: scale(1);
}

.custom-modal-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.custom-modal-header i {
    font-size: 48px;
    color: #ffc107;
    margin-bottom: 10px;
}

.custom-modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.custom-modal-body {
    padding: 20px;
    text-align: center;
}

.custom-modal-body p {
    margin: 0;
    font-size: 16px;
    color: #555;
}

.custom-modal-footer {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
}

.modal-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-btn-cancel {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.modal-btn-cancel:hover {
    background: #e9ecef;
}

.modal-btn-confirm {
    background: #dc3545;
    color: white;
}

.modal-btn-confirm:hover {
    background: #c82333;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-welcome {
        padding: 1.5rem;
    }
    
    .cart-welcome h1 {
        font-size: 1.5rem;
    }
    
    .cart-summary {
        position: static;
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .cart-welcome {
        text-align: center;
    }
}