/* Estilos para el Carrito de Compras Global - SASOC */

/* Botón en el Navbar Header */
#sasoc-cart-nav-btn {
    transition: all 0.2s ease-in-out;
    border-radius: 8px;
}

#sasoc-cart-nav-btn:hover {
    background-color: rgba(162, 36, 36, 0.08);
}

#sasoc-cart-nav-btn:hover i {
    color: #000000 !important;
}

#sasoc-cart-nav-badge {
    box-shadow: 0 2px 4px rgba(162, 36, 36, 0.3);
}

/* Ocultar Botón Flotante (FAB) heredado */
.cart-fab {
    display: none !important;
}

/* Offcanvas / Drawer del Carrito */
.cart-drawer {
    width: 420px !important;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-drawer-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.cart-drawer-title {
    font-weight: 700;
    color: #2c3e50;
}

.cart-item-list {
    overflow-y: auto;
    flex-grow: 1;
    padding: 1.5rem;
}

/* Items del Carrito */
.cart-item {
    display: flex;
    gap: 15px;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
    position: relative;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #f5f5f5;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cart-item-meta {
    font-size: 0.8rem;
    color: #777777;
    margin-bottom: 6px;
}

.cart-item-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #A22424;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    padding-left: 8px;
}

.cart-item-remove, .cart-item-modify {
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 1rem;
    padding: 4px;
}

.cart-item-remove:hover {
    color: #e74c3c;
}

.cart-item-modify:hover {
    color: #3498db;
}

/* Footer del Carrito */
.cart-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #fdfdfd;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cart-summary-label {
    font-weight: 500;
    color: #666;
}

.cart-summary-value {
    font-weight: 700;
    color: #333;
}

.cart-total-price {
    font-size: 1.4rem;
    color: #A22424;
}

/* Campos de Asistentes Dinámicos */
.attendee-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    transition: border-color 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.attendee-card:focus-within {
    border-color: #A22424;
}

.attendee-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.attendee-card-title i {
    color: #A22424;
}

/* Efectos visuales de cargando */
.cart-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-in {
    animation: slideIn 0.3s ease forwards;
}

/* Sección de Cupones en el Carrito */
.cart-coupon-section {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 12px;
}

.cart-coupon-badge {
    background-color: rgba(40, 167, 69, 0.1) !important;
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #28a745 !important;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35em 0.6em;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 4px;
    margin-bottom: 4px;
}

.cart-coupon-remove-btn {
    background: none;
    border: none;
    padding: 0;
    color: #28a745;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    transition: color 0.15s ease;
}

.cart-coupon-remove-btn:hover {
    color: #dc3545;
}

