/**
 * Estilos para Carrito Múltiple
 * Soporta hasta 6 actividades en el carrito
 * Colores Nattivus: Rojo (#dc3545), Blanco (#fff), Negro (#212529)
 */

/* Container del carrito */
.cart-items-container {
    max-height: calc(100vh - 400px);
    overflow-y: auto;
}

/* Item individual del carrito */
.cart-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    position: relative;
}

.cart-item:hover {
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.1);
}

.cart-item:last-child {
    margin-bottom: 0;
}

/* Badge de marketplace */
.cart-item-marketplace-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-turitop { background: #17a2b8; color: white; }
.badge-tourcms { background: #28a745; color: white; }
.badge-bokun { background: #6f42c1; color: white; }
.badge-fareharbor { background: #fd7e14; color: white; }
.badge-interrias { background: #e83e8c; color: white; }
.badge-standard { background: #6c757d; color: white; }

/* Imagen del item */
.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

/* Contenido del item */
.cart-item-content {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-details {
    font-size: 0.85rem;
    color: #6c757d;
}

.cart-item-details i {
    width: 16px;
    color: #dc3545;
}

/* Precio del item */
.cart-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark, #444444);
    white-space: nowrap;
}

/* Botón eliminar */
.cart-item-remove {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.cart-item-remove:hover {
    background: #dc3545;
    color: white;
}

/* Contador de items */
.cart-items-count {
    background: #dc3545;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Botón agregar más */
.cart-add-more {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
    display: block;
    text-decoration: none;
}

.cart-add-more:hover {
    border-color: #dc3545;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.cart-add-more i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}

.cart-add-more.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Resumen de precios */
.cart-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.cart-summary-row.total {
    border-top: 2px solid #dee2e6;
    margin-top: 12px;
    padding-top: 16px;
    font-size: 1.2rem;
    font-weight: 700;
}

.cart-summary-row.total .cart-total-amount {
    color: var(--dark, #444444);
    font-size: 1.4rem;
}

/* Timer compacto para sidebar */
.cart-timer-sidebar {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 10px;
    padding: 16px;
    color: white;
    margin-bottom: 20px;
}

.cart-timer-sidebar .timer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.cart-timer-sidebar .timer-display {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    font-family: 'Segoe UI', monospace;
    letter-spacing: 2px;
}

.cart-timer-sidebar .timer-info {
    font-size: 0.75rem;
    text-align: center;
    margin-top: 8px;
    opacity: 0.9;
}

/* Animación cuando queda poco tiempo */
.cart-timer-sidebar.warning {
    animation: timer-pulse 1s infinite;
}

@keyframes timer-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Responsive */
@media (max-width: 768px) {
    .cart-item {
        padding: 12px;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-title {
        font-size: 0.9rem;
    }
    
    .cart-timer-sidebar .timer-display {
        font-size: 1.5rem;
    }
}

/* Carrito vacío */
.cart-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.cart-empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 12px;
}

.cart-empty-text {
    color: #6c757d;
    margin-bottom: 24px;
}

.cart-empty-button {
    display: inline-block;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.cart-empty-button:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

/* Número de item */
.cart-item-number {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #dc3545;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
