* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.cart-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-bottom: 60px;
}

.cart-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cart-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cart-hero p {
    font-size: 18px;
    opacity: 0.95;
}

.cart-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.cart-sections-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

.cart-items-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.cart-section-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f0f0f0;
}

.cart-section-header h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 28px;
    color: #333;
}

.cart-item-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.cart-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #4facfe);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.cart-item:hover::before {
    opacity: 1;
}

.cart-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.cart-item-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.cart-item-type {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.cart-item-price-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-price-original {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.cart-price-current {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cart-qty-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.cart-qty-input {
    width: 60px;
    text-align: center;
    border: 2px solid #e0e0e0;
    padding: 8px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.cart-remove-btn {
    padding: 10px 20px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-remove-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.cart-empty-state {
    text-align: center;
    padding: 80px 20px;
}

.cart-empty-icon {
    font-size: 100px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.cart-empty-text {
    font-size: 22px;
    color: #666;
    margin-bottom: 30px;
}

.cart-empty-btn {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.cart-empty-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.cart-summary {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 20px;
}

.cart-summary-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f0f0f0;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-size: 16px;
}

.cart-summary-row.subtotal {
    color: #666;
}

.cart-summary-row.discount {
    color: #28a745;
    font-weight: 600;
}

.cart-summary-row.total {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    border-top: 3px solid #f0f0f0;
    margin-top: 15px;
    padding-top: 20px;
}

.cart-summary-label {
    font-weight: 600;
}

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

.cart-coupon-section {
    margin: 25px 0;
    display: flex;
    gap: 10px;
}

.cart-coupon-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
}

.cart-coupon-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cart-coupon-input.valid {
    border-color: #28a745;
    background: #d4edda;
}

.cart-coupon-input.invalid {
    border-color: #dc3545;
    background: #f8d7da;
}

.cart-coupon-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.cart-coupon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.cart-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-btn {
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    width: 100%;
}

.cart-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cart-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.cart-btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.cart-btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.coupon-message {
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.coupon-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.coupon-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .cart-sections-wrapper {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-hero h1 {
        font-size: 32px;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .cart-item-image {
        width: 100%;
        height: 200px;
    }
    
    .cart-item-controls {
        width: 100%;
        align-items: center;
    }
    
    .cart-item-quantity {
        width: 100%;
        justify-content: center;
    }
    
    .cart-remove-btn {
        width: 100%;
        justify-content: center;
    }
}
