/* Estilos para el carrito fijo */
.cart-section {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.cart-section.open {
    transform: translateX(0);
}

.cart-container {
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cart-header {
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.cart-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.username-cart {
    color: #007AFF;
}

.cart-summary {
    font-size: 14px;
    color: #666;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    margin: auto 0;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-message {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.empty-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 auto;
}

/* Estilos para cuando el carrito tenga productos */
.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    margin: 20px 0;
}

.cart-footer {
    border-top: 1px solid #eaeaea;
    padding-top: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
}

.total-amount {
    color: #007AFF;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background-color: #007AFF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.checkout-btn:hover {
    background-color: #0066CC;
}


/* Estilos para los items del carrito */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.item-name {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 500;
}

.item-price {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #f5f5f5;
}

.item-quantity {
    min-width: 20px;
    text-align: center;
}


.remove-btn {
    background: none;
    border: none;
    color: #ff3b30;
    font-size: 18px;
    cursor: pointer;
    padding: 0 8px;
}
