

/* ============================================ */
/* RESET Y ESTILOS BASE DEL CARRITO            */
/* ============================================ */
.carrito-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    transition: all 0.5s ease !important;
}

.carrito-header {
    margin-bottom: 30px !important;
}

.carrito-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    margin-bottom: 5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #fff !important;
}

.carrito-title i {
    color: #e94560 !important;
}

.carrito-subtitle {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 16px !important;
}

.carrito-subtitle strong {
    color: #e94560 !important;
}

/* Mensajes */
.mensaje-exito,
.mensaje-error {
    padding: 12px 20px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 14px !important;
}

.mensaje-exito {
    background: rgba(39, 174, 96, 0.1) !important;
    color: #27ae60 !important;
    border: 1px solid rgba(39, 174, 96, 0.15) !important;
}

.mensaje-error {
    background: rgba(231, 76, 60, 0.1) !important;
    color: #e74c3c !important;
    border: 1px solid rgba(231, 76, 60, 0.15) !important;
}

/* Carrito Vacío */
.empty-cart {
    text-align: center !important;
    padding: 80px 20px !important;
    color: rgba(255, 255, 255, 0.3) !important;
}

.empty-cart i {
    font-size: 80px !important;
    display: block !important;
    margin-bottom: 20px !important;
    color: rgba(255, 255, 255, 0.05) !important;
}

.empty-cart h2 {
    font-size: 28px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-bottom: 10px !important;
}

.empty-cart p {
    color: rgba(255, 255, 255, 0.2) !important;
    margin-bottom: 25px !important;
}

.btn-ver-productos {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: linear-gradient(135deg, #e94560, #c23152) !important;
    color: #fff !important;
    padding: 14px 35px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
}

.btn-ver-productos:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3) !important;
}

/* Acciones Superiores */
.carrito-acciones-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
    flex-wrap: wrap !important;
}

.btn-seguir-comprando {
    background: rgba(255, 255, 255, 0.03) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.3s !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.btn-seguir-comprando:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    transform: translateX(-3px) !important;
}

.btn-vaciar {
    background: rgba(231, 76, 60, 0.08) !important;
    color: #e74c3c !important;
    border: 1px solid rgba(231, 76, 60, 0.1) !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-vaciar:hover:not(:disabled) {
    background: rgba(231, 76, 60, 0.15) !important;
    transform: translateY(-2px) !important;
}

.btn-vaciar:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.btn-vaciar.vaciando {
    background: rgba(231, 76, 60, 0.2) !important;
}

/* Tabla */
.carrito-table-wrapper {
    overflow-x: auto !important;
    margin-bottom: 20px !important;
    background: #1a1a2e !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.carrito-table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #1a1a2e !important;
}

.carrito-table thead {
    background: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.carrito-table thead th {
    padding: 15px 20px !important;
    text-align: left !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.carrito-fila {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.carrito-fila:hover {
    background: rgba(255, 255, 255, 0.02) !important;
}

.carrito-fila:last-child {
    border-bottom: none !important;
}

.carrito-table tbody td {
    padding: 15px 20px !important;
    vertical-align: middle !important;
}

/* Producto Info */
.producto-info {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    padding: 5px 0 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    color: inherit !important;
}

.producto-info:hover {
    background: rgba(233, 69, 96, 0.05) !important;
    transform: translateX(5px) !important;
}

.producto-info img {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s !important;
    flex-shrink: 0 !important;
}

.producto-info:hover img {
    border-color: rgba(233, 69, 96, 0.3) !important;
    transform: scale(1.05) !important;
}

.producto-nombre {
    font-weight: 600 !important;
    color: #fff !important;
    margin-bottom: 2px !important;
    transition: color 0.3s !important;
}

.producto-info:hover .producto-nombre {
    color: #e94560 !important;
}

.producto-categoria {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.3) !important;
    margin-bottom: 4px !important;
}

.stock-info {
    font-size: 12px !important;
}

.stock-disponible {
    color: #27ae60 !important;
}

.stock-bajo {
    color: #f39c12 !important;
}

.stock-agotado {
    color: #e74c3c !important;
}

/* Precios */
.precio-unitario {
    font-weight: 600 !important;
    color: #fff !important;
    font-size: 16px !important;
}

.subtotal {
    font-weight: 700 !important;
    color: #e94560 !important;
    font-size: 16px !important;
    transition: all 0.3s !important;
}

/* Cantidad */
.cantidad-control {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.btn-cantidad {
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
}

.btn-cantidad:hover:not(:disabled) {
    background: rgba(233, 69, 96, 0.15) !important;
    border-color: rgba(233, 69, 96, 0.2) !important;
}

.btn-cantidad:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}

.cantidad-input {
    width: 50px !important;
    padding: 6px 8px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
    -moz-appearance: textfield !important;
}

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

.cantidad-input:focus {
    outline: none !important;
    border-color: #e94560 !important;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1) !important;
}

.cantidad-input:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}

/* Botón Eliminar */
.btn-eliminar {
    background: rgba(231, 76, 60, 0.08) !important;
    color: #e74c3c !important;
    border: 1px solid rgba(231, 76, 60, 0.1) !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    font-size: 14px !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-eliminar:hover:not(:disabled) {
    background: rgba(231, 76, 60, 0.15) !important;
    transform: scale(1.05) !important;
}

.btn-eliminar:active:not(:disabled) {
    transform: scale(0.95) !important;
}

.btn-eliminar:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}

.btn-eliminar.eliminando {
    background: rgba(231, 76, 60, 0.2) !important;
    pointer-events: none !important;
}

/* Resumen */
.carrito-resumen-wrapper {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 20px !important;
}

.resumen-card {
    background: #1a1a2e !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 25px 30px !important;
    width: 100% !important;
    max-width: 400px !important;
}

.resumen-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    color: #fff !important;
}

.resumen-fila {
    display: flex !important;
    justify-content: space-between !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
}

.resumen-fila:last-of-type {
    border-bottom: none !important;
}

.resumen-label {
    color: rgba(255, 255, 255, 0.4) !important;
}

.resumen-valor {
    color: #fff !important;
    font-weight: 500 !important;
}

.envio-gratis {
    color: #27ae60 !important;
}

.resumen-total {
    margin-top: 10px !important;
    padding-top: 15px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.resumen-valor-total {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #e94560 !important;
}

/* Botón Checkout */
.btn-checkout {
    display: block !important;
    width: 100% !important;
    margin-top: 20px !important;
    padding: 14px !important;
    background: linear-gradient(135deg, #e94560, #c23152) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    text-align: center !important;
    text-decoration: none !important;
    font-family: 'Inter', sans-serif !important;
}

.btn-checkout:hover:not(:disabled) {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3) !important;
}

.btn-checkout:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    .carrito-table thead th,
    .carrito-table tbody td {
        padding: 10px !important;
    }
    
    .producto-info img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .producto-nombre {
        font-size: 14px !important;
    }
    
    .cantidad-input {
        width: 40px !important;
        padding: 4px !important;
        font-size: 12px !important;
    }
    
    .btn-cantidad {
        width: 28px !important;
        height: 28px !important;
        font-size: 10px !important;
    }
    
    .resumen-card {
        max-width: 100% !important;
    }
    
    .carrito-acciones-top {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .btn-vaciar,
    .btn-seguir-comprando {
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .producto-info {
        gap: 10px !important;
    }
    
    .producto-info img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .producto-nombre {
        font-size: 12px !important;
    }
    
    .producto-categoria {
        font-size: 10px !important;
    }
    
    .subtotal,
    .precio-unitario {
        font-size: 14px !important;
    }
}

