:root {
    --gradient-primary: linear-gradient(135deg, #4f008c 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #6b21a8 0%, #9333ea 100%);
    --gradient-success: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --gradient-light: linear-gradient(135deg, #f8f4ff 0%, #ede9fe 100%);
    --shadow-soft: 0 4px 15px rgba(79, 0, 140, 0.1);
    --shadow-hover: 0 8px 25px rgba(79, 0, 140, 0.2);
    --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.08);
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-redesign-container {
    background: var(--gradient-light);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    margin-bottom: 20px;
}

.progress-bar-wrapper {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.progress-bar-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    right: 25px;
    left: 25px;
    height: 3px;
    background: #e5e7eb;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.progress-step .step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #9ca3af;
    font-size: 20px;
    transition: var(--transition-smooth);
    border: 3px solid white;
    box-shadow: var(--shadow-card);
}

.progress-step.active .step-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
}

.progress-step.completed .step-icon {
    background: var(--gradient-success);
    color: white;
}

.progress-step .step-label {
    margin-top: 10px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
}

.progress-step.active .step-label {
    color: #4f008c;
    font-weight: 600;
}

.cart-product-card {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    border: 1px solid #f3f4f6;
}

.cart-product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: rgba(79, 0, 140, 0.2);
}

.product-main-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.product-image-wrapper {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #f3f4f6;
    transition: var(--transition-smooth);
}

.cart-product-card:hover .product-image-wrapper {
    border-color: #7c3aed;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    flex: 1;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 5px;
    line-height: 1.4;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    margin-top: 5px;
}

.product-badge i {
    font-size: 10px;
}

.product-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px dashed #e5e7eb;
    flex-wrap: wrap;
    gap: 10px;
}

.price-display {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 2px;
}

.price-value {
    font-size: 16px;
    font-weight: 700;
    color: #4f008c;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f9fafb;
    border-radius: 30px;
    padding: 5px;
    border: 2px solid #e5e7eb;
    transition: var(--transition-smooth);
}

.quantity-control:hover {
    border-color: #7c3aed;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.qty-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(79, 0, 140, 0.3);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

.qty-value {
    width: 50px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    background: transparent;
    border: none;
}

.total-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.total-label {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 2px;
}

.total-value {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
}

.delete-product-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fecaca;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.delete-product-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    border-color: #dc2626;
    transform: scale(1.1);
}

.cart-summary-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-soft);
    margin-top: 20px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.cart-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.summary-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-title i {
    color: #4f008c;
}

.coupon-section {
    background: var(--gradient-light);
    border-radius: var(--border-radius-md);
    padding: 15px;
    margin-bottom: 20px;
}

.coupon-input-wrapper {
    display: flex;
    gap: 10px;
}

.coupon-input-wrapper input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    transition: var(--transition-smooth);
}

.coupon-input-wrapper input:focus {
    border-color: #7c3aed;
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.coupon-btn {
    padding: 12px 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.coupon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 0, 140, 0.3);
}

.coupon-btn.has-coupon {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-row.total-row {
    margin-top: 15px;
    padding-top: 20px;
    border-top: 2px dashed #e5e7eb;
    border-bottom: none;
}

.summary-row .label {
    color: #6b7280;
    font-size: 14px;
}

.summary-row .value {
    font-weight: 600;
    color: #1f2937;
}

.summary-row.discount-row .value {
    color: #059669;
}

.summary-row.total-row .label {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.summary-row.total-row .value {
    font-size: 22px;
    font-weight: 700;
    color: #4f008c;
}

.checkout-btn {
    width: 100%;
    padding: 18px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.checkout-btn:hover::before {
    left: 100%;
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(79, 0, 140, 0.4);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px;
    background: var(--gradient-light);
    border-radius: var(--border-radius-sm);
    min-width: 100px;
    transition: var(--transition-smooth);
}

.trust-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.trust-badge i {
    font-size: 24px;
    color: #4f008c;
}

.trust-badge span {
    font-size: 11px;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    flex-wrap: wrap;
}

.payment-methods img {
    height: 30px;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.payment-methods img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.empty-cart-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
}

.empty-cart-message i {
    font-size: 80px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.empty-cart-message h3 {
    font-size: 24px;
    color: #374151;
    margin-bottom: 10px;
}

.empty-cart-message p {
    color: #9ca3af;
    margin-bottom: 25px;
}

.empty-cart-message .btn-shop {
    padding: 15px 40px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.empty-cart-message .btn-shop:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(79, 0, 140, 0.4);
}

@media (max-width: 768px) {
    .cart-redesign-container {
        padding: 15px;
    }
    
    .progress-bar-wrapper {
        padding: 15px;
    }
    
    .progress-step .step-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .progress-step .step-label {
        font-size: 11px;
    }
    
    .cart-product-card {
        padding: 15px;
    }
    
    .product-main-info {
        flex-direction: column;
        text-align: center;
    }
    
    .product-image-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .product-actions-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .price-display, .total-display {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .quantity-control {
        width: 100%;
        justify-content: center;
    }
    
    .delete-product-btn {
        width: 100%;
        border-radius: var(--border-radius-sm);
        padding: 12px;
    }
    
    .cart-summary-card {
        padding: 20px;
    }
    
    .coupon-input-wrapper {
        flex-direction: column;
    }
    
    .trust-badges {
        gap: 10px;
    }
    
    .trust-badge {
        min-width: 80px;
        padding: 10px;
    }
    
    .trust-badge i {
        font-size: 20px;
    }
    
    .checkout-btn {
        padding: 15px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .progress-steps::before {
        display: none;
    }
    
    .progress-step {
        flex: none;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .qty-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .qty-value {
        width: 40px;
        font-size: 16px;
    }
}

.applied-coupon-banner {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: var(--border-radius-md);
    padding: 15px 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid #28a745;
}

.applied-coupon-banner .coupon-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.applied-coupon-banner i {
    font-size: 24px;
    color: #155724;
}

.applied-coupon-banner .coupon-text {
    color: #155724;
    font-weight: 600;
}

.applied-coupon-banner .discount-amount {
    font-size: 18px;
    font-weight: 700;
    color: #155724;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
