/* ==========================================
   MARKETPLACE CART STYLES
   ========================================== */

.cart-store-group {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
}

.cart-store-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
    margin-bottom: 15px;
}

.cart-store-header i {
    color: #ff4500;
    font-size: 18px;
}

.store-name {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.store-items-count {
    font-size: 12px;
    color: #666;
}

.card-mini-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.card-mini-product:last-child {
    border-bottom: none;
}

.mini-product__variants {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.variant-tag {
    background: #e0e0e0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #555;
}

.cart-store-subtotal {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid #ddd;
    font-weight: bold;
}

.store-subtotal-value {
    color: #ff4500;
}

/* Notificaciones */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.cart-notification.show {
    transform: translateX(0);
}

.cart-notification--success {
    border-left: 4px solid #28a745;
}

.cart-notification--error {
    border-left: 4px solid #dc3545;
}

.cart-notification i {
    font-size: 20px;
}

.cart-notification--success i {
    color: #28a745;
}

.cart-notification--error i {
    color: #dc3545;
}

/* Loader del checkout */
.checkout-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loader-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff4500;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .cart-store-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-notification {
        right: 10px;
        left: 10px;
        width: auto;
    }
}